UNPKG

2.65 MBJavaScriptView Raw
1var _typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function e(t,n,r){function i(o,s){var c=window.define;if(window.define=void 0,!n[o]){if(!t[o]){var l="function"==typeof require&&require;if(!s&&l)return l(o,!0);if(a)return a(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var d=n[o]={exports:{}};t[o][0].call(d.exports,function(e){var n=t[o][1][e];return i(n||e)},d,d.exports,e,t,n,r)}return window.define=c,n[o].exports}for(var a="function"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(e,t,n){"use strict";function r(e,t,n){var r=t.apiRoot;return{getProducts:function(){var t=r+"account/products"+n.current();return e.get(t)}}}r.$inject=["$http","InsightsConfig","AccountService"],e("./").factory("Account",r)},{"./":15}],2:[function(e,t,n){"use strict";function r(e,t){var n=t.apiRoot;return{get:function(){return e.get(n+"account/settings")},update:function(t){return e.post(n+"account/settings",t)}}}r.$inject=["$http","InsightsConfig"],e("./").factory("AccountSettings",r)},{"./":15}],3:[function(e,t,n){"use strict";function r(e,t,n,r,i){function o(){return e.get(s+"acks?include=rule"+r.current("&")).success(function(e){c.length=0,Array.prototype.push.apply(c,e),angular.extend(l,a(c,"rule_id"))})}var s=i.apiRoot,c=[],l={},u=!1;return n.$on("reload:data",o),{init:function(){u||(o(),u=!0)},acks:c,ackMap:l,createAck:function(i){var a=t.defer();return e.post(s+"acks"+r.current(),{rule_id:i.rule_id||i.id}).success(function(e){c.push(e),l[e.rule_id]=e,n.$broadcast("reload:data"),a.resolve(e)}),a.promise},deleteAck:function(t){return e.delete(s+"acks/"+t.id+r.current()).success(function(){for(var e=c.length,r=0;r<e;r++)if(c[r].id===t.id)return c.splice(r,1),delete l[t.rule_id],void n.$broadcast("reload:data")})},reload:o}}r.$inject=["$http","$q","$rootScope","AccountService","InsightsConfig"];var i=e("./"),a=e("lodash/keyBy");i.factory("Ack",r)},{"./":15,"lodash/keyBy":523}],4:[function(e,t,n){"use strict";function r(e,t){var n=t.apiRoot;return{reports:function(){return e.get(n+"analytics/reports")},systems:function(){return e.get(n+"analytics/systems")}}}r.$inject=["$http","InsightsConfig"],e("./").factory("Analytic",r)},{"./":15}],5:[function(e,t,n){"use strict";function r(e,t){var n=t.apiRoot,r={};return r.getAnnouncements=function(t){var r=a(n+"announcements");return t&&r.addSearch(t),e.get(r.toString())},r.byId=function(t){return e.get(n+"announcements/"+t)},r.bySlug=function(t){return e.get(n+"announcements/"+t)},r.createAnnouncement=function(t){return e.post(n+"announcements?internal=true",t)},r.updateAnnouncement=function(t){return e.put(n+"announcements/"+t.id,t)},r.deleteAnnouncement=function(t){return e.delete(n+"announcements/"+t.id)},r.acknowledge=function(t){return e.post(n+"announcements/"+t.id+"/ack")},r}r.$inject=["$http","InsightsConfig"];var i=e("./"),a=e("urijs");i.factory("Announcement",r)},{"./":15,urijs:831}],6:[function(e,t,n){"use strict";function r(e,t,n){var r=n.apiRoot;return{getArticles:function(){return e.get(r+"articles")},get:function(t){return e.get(r+"articles/"+(t||n.overviewKey))},update:function(t,i){return e.put(r+"articles/"+(t||n.overviewKey),i)},preview:function(t){return e.post(r+"articles/preview",t)}}}r.$inject=["$http","AccountService","InsightsConfig"],e("./").factory("Article",r)},{"./":15}],7:[function(e,t,n){"use strict";function r(e){var t={};return t.subscribe=function(){var t=a("/api").segment("redhat_node").segment("2184921").segment("subscribe").toString();return e.post(t).then(function(e){return e.data})},t}r.$inject=["$http"];var i=e("./"),a=e("urijs");i.factory("Blog",r)},{"./":15,urijs:831}],8:[function(e,t,n){"use strict";function r(e,t,n,r){var i,a,o=n.apiRoot;return t.$on("reload:data",function(){i=null}),{clusters:a,getClusters:function(){if(i)return i;var n=o+"systems?type=cluster&product=osp"+r.current("&");return i=e.get(n).then(function(e){return a=e.data,t.$broadcast("clusters:loaded",a),e})},getClusterReports:function(t){return e.get(o+"reports?system_id="+t+"&type=all&product=osp")}}}r.$inject=["$http","$rootScope","InsightsConfig","AccountService"],e("./").factory("Cluster",r)},{"./":15}],9:[function(e,t,n){"use strict";function r(e,t,n){var r=t.apiRoot;return{getDigest:function(t){var i=r+"digests/"+t+n.current();return e.get(i)},getDigestsByType:function(t){var i=r+"digests?remote_branch=-2&digest_type_id="+t+n.current("&");return e.get(i)}}}r.$inject=["$http","InsightsConfig","AccountService"],e("./").factory("Digest",r)},{"./":15}],10:[function(e,t,n){"use strict";function r(e,t){var n=t.apiRoot,r={};return r.getEvaluationStatus=function(){var t=a(n).segment("evaluation").segment("status").toString();return e.get(t).then(function(e){return e.data})},r.activate=function(t){var r=a(n).segment("evaluation").toString();return e.post(r,{type:t}).then(function(e){return e.data})},r}r.$inject=["$http","InsightsConfig"];var i=e("./"),a=e("urijs");i.factory("Evaluation",r)},{"./":15,urijs:831}],11:[function(e,t,n){"use strict";function r(e,t){var n=t.apiRoot,r={};return r.create=function(t){var r=a(n).segment("evaluation_invite").toString();return e.post(r,t).then(function(e){return e.data})},r.getAll=function(){var t=a(n).segment("evaluation_invite").toString();return e.get(t).then(function(e){return e.data})},r}r.$inject=["$http","InsightsConfig"];var i=e("./"),a=e("urijs");i.factory("EvaluationInvite",r)},{"./":15,urijs:831}],12:[function(e,t,n){"use strict";function r(e,t,n,r){return{getReports:function(e,i,o,s){var c=a(t.apiRoot);c.segment("exports"),c.segment("reports"),e&&c.addSearch("topic",e),i&&c.addSearch("rules",i),o&&c.addSearch("group",o),void 0!==s&&c.addSearch("stale",s),c.addSearch(n.queryParam()),r.location.assign(c.toString())},getSystems:function(e,i,o){var s=a(t.apiRoot);s.segment("exports"),s.segment("systems"),e&&s.addSearch("group",e),void 0!==i&&s.addSearch("stale",i),o&&s.addSearch("search",o),s.addSearch(n.queryParam()),r.location.assign(s.toString())}}}r.$inject=["$http","InsightsConfig","AccountService","$window"];var i=e("./"),a=e("urijs");i.factory("Export",r)},{"./":15,urijs:831}],13:[function(e,t,n){"use strict";function r(e,t){var n=t.apiRoot;return{sendFeedback:function(t){var r=n+"feedback";return e.post(r,t)}}}r.$inject=["$http","InsightsConfig"],e("./").factory("Feedback",r)},{"./":15}],14:[function(e,t,n){"use strict";function r(e,t,n,r,i){function a(){return e.get(l+"groups?include=systems"+i.current("&")).success(function(e){u.length=0,Array.prototype.push.apply(u,e)})}function o(e,t){for(var n=u.length,r=0;r<n;r++)if(u[r].id===e.id)for(var i=u[r].systems.length,a=0;a<i;a++)if(u[r].systems[a].system_id===t.system_id)return void u[r].systems.splice(a,1)}function s(t,n){return o(t,n),e.delete(l+"groups/"+t.id+"/systems/"+n.system_id+i.current())}function c(e){for(var t=u.length,n=0;n<t;n++)if(u[n].id===e.id)return void u.splice(n,1)}var l=r.apiRoot,u=[],d={},p=!1;return n.$on("reload:data",a),{init:function(){p||(a(),p=!0)},groups:u,current:function(){return d},appendCurrentGroup:function(e){var t=d;return t&&t.id&&(e+="&group="+t.id),e},setCurrent:function(e){d=e||{},n.$broadcast("group:change",e)},removeSystem:s,removeSystems:function(e,n){var r=[];return angular.forEach(n,function(t){r.push(s(e,{system_id:t}))}),t.all(r)},addSystems:function(t,n){return t.systems||(t.systems=[]),Array.prototype.push.apply(t.systems,n),e.put(l+"groups/"+t.id+"/systems"+i.current(),n)},createGroup:function(n){var r=t.defer();return e.post(l+"groups"+i.current(),n).then(function(e){n.display_name="";var t=e.data;201===e.status&&(t.systems=[],u.push(t)),r.resolve(t)}),r.promise},deleteGroup:function(t){return c(t),e.delete(l+"groups/"+t.id+i.current())},reload:a,queryParam:function(){return d&&d.id?{group:d.id}:{}}}}r.$inject=["$http","$q","$rootScope","InsightsConfig","AccountService"],e("./").factory("Group",r)},{"./":15}],15:[function(e,t,n){"use strict";t.exports=angular.module("insights.api",[]),function(){var t=e("./index.js");t.account_settings=e("./account_settings.js"),t.account=e("./account.js"),t.ack=e("./ack.js"),t.analytic=e("./analytic.js"),t.announcement=e("./announcement.js"),t.article=e("./article.js"),t.blog=e("./blog.js"),t.cluster=e("./cluster.js"),t.digest=e("./digest.js"),t.evaluation_invite=e("./evaluation_invite.js"),t.evaluation=e("./evaluation.js"),t.export=e("./export.js"),t.feedback=e("./feedback.js"),t.group=e("./group.js"),t.index=e("./index.js"),t.maintenance=e("./maintenance.js"),t.messaging=e("./messaging.js"),t.permission=e("./permission.js"),t.plugin=e("./plugin.js"),t.policy=e("./policy.js"),t.report=e("./report.js"),t.rule=e("./rule.js"),t.stats=e("./stats.js"),t.subset=e("./subset.js"),t.system=e("./system.js"),t.topic=e("./topic.js"),t.user_permissions=e("./user_permissions.js"),t.user_settings=e("./user_settings.js"),t.user=e("./user.js"),t.webhooks=e("./webhooks.js")}()},{"./account.js":1,"./account_settings.js":2,"./ack.js":3,"./analytic.js":4,"./announcement.js":5,"./article.js":6,"./blog.js":7,"./cluster.js":8,"./digest.js":9,"./evaluation.js":10,"./evaluation_invite.js":11,"./export.js":12,"./feedback.js":13,"./group.js":14,"./index.js":15,"./maintenance.js":16,"./messaging.js":17,"./permission.js":18,"./plugin.js":19,"./policy.js":20,"./report.js":21,"./rule.js":22,"./stats.js":23,"./subset.js":24,"./system.js":25,"./topic.js":26,"./user.js":27,"./user_permissions.js":28,"./user_settings.js":29,"./webhooks.js":30}],16:[function(e,t,n){"use strict";function r(e,t,n,r,i,s,c){function l(t){return e.get(u+"maintenance?filter="+t+n.current("&")).success(i.readArray(i.readPlan))}var u=t.apiRoot,d={};return d.getFutureMaintenancePlans=function(){return l("future")},d.getPastMaintenancePlans=function(){return l("past")},d.getOverdueMaintenancePlans=function(){return l("overdue")},d.getMaintenancePlans=function(){return e.get(u+"maintenance"+n.current()).then(function(e){return e.data.forEach(i.readPlan),e.data})},d.getMaintenancePlan=function(t){return e.get(u+"maintenance/"+t+n.current()).success(i.readPlan)},d.silence=function(e){return d.updatePlan(e.maintenance_id,{silenced:!0})},d.createPlan=function(t){return e.post(u+"maintenance"+n.current(),t)},d.updatePlan=function(t,r){return e.put(u+"maintenance/"+t+n.current(),r).then(function(){c.$broadcast(s.planner.planChanged,t)})},d.deletePlan=function(t){return e.delete(u+"maintenance/"+t.maintenance_id+n.current()).then(function(){c.$broadcast(s.planner.planDeleted,t.maintenance_id)})},d.addAction=function(t,r){return e.post(u+"maintenance/"+t+"/actions?report="+r+n.current("&"))},d.deleteAction=function(t,r){return e.delete(u+"maintenance/"+t+"/actions/"+r+n.current())},d.deleteActions=function(t,r){var i={delete:a(r,"id")};return e.put(u+"maintenance/"+t+n.current(),i)},d.exportPlan=function(e){var t=u+"maintenance/"+e+"?accept=csv"+n.current("&");r.location.assign(t)},d.generatePlaybook=function(t,r){r=r||{};var i=o(u);return i.segment("maintenance"),i.segment(String(t)),i.segment("playbook"),i.addSearch(n.queryParam()),e.post(i.toString(),r)},d.downloadPlaybook=function(t){var r=o(u);return r.segment("maintenance"),r.segment(String(t)),r.segment("playbook"),r.addSearch(n.queryParam()),e.get(r.toString())},d.SUGGESTION=Object.freeze({PROPOSED:"proposed",ACCEPTED:"accepted",REJECTED:"rejected"}),d.getPlayMetadata=function(t){var r=o(u);return r.segment("maintenance"),r.segment(String(t)),r.segment("playbook"),r.segment("plays"),r.addSearch(n.queryParam()),e.get(r.toString())},d.saveResolutionPreference=function(t,r,i,a){var s=o(u);return s.segment("maintenance"),s.segment(String(t)),s.segment("playbook"),s.segment("plays"),s.segment(r),s.segment(String(i)),s.addSearch(n.queryParam()),e.put(s.toString(),{resolution_type:a})},d}r.$inject=["$http","InsightsConfig","AccountService","$window","DataUtils","Events","$rootScope"];var i=e("./"),a=e("lodash/map"),o=e("urijs");i.factory("Maintenance",r)},{"./":15,"lodash/map":527,urijs:831}],17:[function(e,t,n){"use strict";function r(e,t){function n(){return e.get(a+"messaging/campaigns")}function r(t){return e.post(a+"messaging/users",t)}function i(){return e.post(a+"messaging/optin",{autoOptedIn:!0})}var a=t.apiRoot;return{getCampaigns:n,saveCampaigns:r,saveOptedIn:i}}r.$inject=["$http","InsightsConfig"],e("./").factory("Messaging",r)},{"./":15}],18:[function(e,t,n){"use strict";function r(e,t){var n=t.apiRoot+"permissions/:permissionId",r={permissionId:"@id"},i=e(n,r);return i.init=function(){i.initial=i.query().$promise},i}r.$inject=["$resource","InsightsConfig"],e("./").factory("Permission",r)},{"./":15}],19:[function(e,t,n){"use strict";function r(e,t){return{update:function(n,r){return e.put(t.apiRoot+"plugins/"+n,r)}}}r.$inject=["$http","InsightsConfig"],e("./").factory("Plugin",r)},{"./":15}],20:[function(e,t,n){"use strict";function r(e,t,n){var r=n.apiRoot;return{getAll:function(n){var i=a(r);return i.segment("policies"),i.addSearch(t.queryParam()),n&&i.addSearch(n),e.get(i.toString())},getPolicy:function(n){var i=a(r);return i.segment("policies"),i.segment(n),i.addSearch(t.queryParam()),e.get(i.toString())},getPolicyResults:function(n,i){var o=a(r);return o.segment("policies"),o.segment(n),o.segment("results"),o.addSearch(t.queryParam()),i&&o.addSearch(i),e.get(o.toString())},update:function(n,i){var o=a(r);return o.segment("policies"),o.segment(n),o.addSearch(t.queryParam()),e.patch(o.toString(),i)}}}r.$inject=["$http","AccountService","InsightsConfig"];var i=e("./"),a=e("urijs");i.factory("Policy",r)},{"./":15,urijs:831}],21:[function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s,c){var l,u=r.apiRoot;return t.$on("reload:data",function(){l=null}),{groupByHost:function(){return e.get(u+"reports?accept=host"+i.current("&"))},exportReports:function(e){var t=r.apiPrefix+"v1/",o=t+"reports?accept=csv"+i.current("&");e&&(o+="&category="+e),o=a.appendCurrentGroup(o),n.location.assign(o)},ruleReports:function(t,n){t=encodeURIComponent(t);var r=n?"rule_id=":"rule=",o=u+"reports?"+r+t+i.current("&");return o=a.appendCurrentGroup(o),n&&(o+="&"+n+"=true"),o=s.appendProductToUrl(o,"all"),e.get(o)},headReports:function(t){var n=u+"reports";return n+=i.current("?"),n=o.addQueryToUrl(n,t),e.head(n)},getAllReports:function(){return e.get(u+"reports?type=all&expand=system,rule"+i.current("&")).then(function(e){return e.data.resources.forEach(c.readReport),e.data.resources})},getReportsLatest:function(t){var n=u+"reports";return n+=i.current("?"),n=o.addQueryToUrl(n,t),e.get(n)},getReports:function(t){return t=t||"rhel",e.get(u+"reports?product="+t+i.current("&")).success(c.readArray(c.readReport))}}}r.$inject=["$http","$rootScope","$window","InsightsConfig","AccountService","Group","Utils","PreferenceService","DataUtils"],e("./").factory("Report",r)},{"./":15}],22:[function(e,t,n){"use strict";function r(e,t,n,r,i,o,s){var c=i.apiRoot;return{getRulesLatest:function(t){var r=c+"rules";return r+=n.current("?"),r=s.addQueryToUrl(r,t),e.get(r)},plugins:function(){return e.get(c+"rules?plugins=true")},summary:function(){var t=c+"rules?summary=true"+n.current("&");return t=o.appendProductToUrl(t,"all"),e.get(t)},admin:function(){return e.get(c+"rules/admin?internal=true")},create:function(t){return e.post(c+"rules?internal=true",t)},update:function(e){throw new Error("updates not supported")},delete:function(t){var n=encodeURIComponent(t.rule_id);return e.delete(c+"rules/"+n+"?internal=true")},preview:function(t,n){return e.post(c+"rules/preview?internal=true",{rule:t,debug:n})},byId:function(t,n){return t=encodeURIComponent(t),e.get(c+"rules/"+t,{cache:!0!==n})},getAvailableTags:function(){return e.get(c+"rules/tags")},deleteTag:function(t){return e.delete(c+"rules/tags/"+encodeURIComponent(t))},updateTag:function(e){throw new Error("updates not supported")},exportRules:function(){t.location.assign(c+"rules/admin?internal=true&accept=csv")},listAnsibleResolutions:function(t,n){var r=a(c);return r.segment("rules"),r.segment(t),r.segment("ansible-resolutions"),r.segment(String(n)),e.get(r.toString())},getRulesWithHits:function(t){var i=a(c);return i.segment("rules"),i.addSearch("report_count","gt0"),i.addSearch(n.queryParam()),void 0!==t&&i.addSearch({group:t}),e.get(i.toString()).success(function(e){e.resources.forEach(r.readRule)})}}}r.$inject=["$http","$window","AccountService","DataUtils","InsightsConfig","PreferenceService","Utils"];var i=e("./"),a=e("urijs");i.factory("Rule",r)},{"./":15,urijs:831}],23:[function(e,t,n){"use strict";function r(e,t,n,r){function i(e,i){var o=a(t.apiRoot);return o.segment("stats"),e&&o.segment(e),o.addSearch(n.queryParam()),o.addSearch(r.queryParam()),i&&o.addSearch(i),o.toString()}return{getAll:function(t){return e.get(i(null,t))},getSystems:function(t){return e.get(i("systems",t))},getRules:function(t){return e.get(i("rules",t))}}}r.$inject=["$http","InsightsConfig","AccountService","Group"];var i=e("./"),a=e("urijs");i.factory("Stats",r)},{"./":15,urijs:831}],24:[function(e,t,n){"use strict";function r(e,t,n,r){var i=t.apiRoot;return{create:function(t,r){var o=a(i);return o.segment("subsets"),o.addSearch(n.queryParam()),e.post(o.toString(),{branch_id:t,system_ids:r})},getRulesWithHits:function(t){var o=a(i);return o.segment("subsets"),o.segment(t),o.segment("rules"),o.addSearch("report_count","gt0"),o.addSearch(n.queryParam()),e.get(o.toString()).success(function(e){e.resources.forEach(r.readRule)})}}}r.$inject=["$http","InsightsConfig","AccountService","DataUtils"];var i=e("./"),a=e("urijs");i.factory("Subset",r)},{"./":15,urijs:831}],25:[function(e,t,n){"use strict";function r(e,t,n,r,i,s,c,l,u,d,p){function f(e){return e.product_code===u.docker.code?e.role===u.docker.roles.host.code?(e.imageClass=u.docker.roles.host.icon,e.displayName=u.docker.roles.host.fullName,e.displayNameShort=u.docker.shortName2+" "+u.docker.roles.host.shortName):e.role===u.docker.roles.container.code?(e.imageClass=u.docker.roles.container.icon,e.displayName=u.docker.roles.container.fullName,e.displayNameShort=u.docker.roles.container.shortName):e.role===u.docker.roles.image.code&&(e.imageClass=u.docker.roles.image.icon,e.displayName=u.docker.roles.image.fullName,e.displayNameShort=u.docker.shortName2+" "+u.docker.roles.image.shortName):e.product_code===u.ocp.code?e.role===u.ocp.roles.cluster.code?(e.imageClass=u.ocp.roles.cluster.icon,e.displayName=u.ocp.roles.cluster.fullName,e.displayNameShort=u.ocp.shortName+" "+u.ocp.roles.cluster.shortName):e.role===u.ocp.roles.master.code?(e.imageClass=u.ocp.roles.master.icon,e.displayName=u.ocp.roles.master.fullName,e.displayNameShort=u.ocp.shortName+" "+u.ocp.roles.master.shortName):e.role===u.ocp.roles.node.code&&(e.imageClass=u.ocp.roles.node.icon,e.displayName=u.ocp.roles.node.fullName,e.displayNameShort=u.ocp.shortName+" "+u.ocp.roles.node.shortName):e.product_code===u.osp.code?e.role===u.osp.roles.controller.code?(e.imageClass=u.osp.roles.controller.icon,e.displayName=u.osp.roles.controller.fullName,e.displayNameShort=u.osp.shortName+" "+u.osp.roles.controller.shortName):e.role===u.osp.roles.compute.code?(e.imageClass=u.osp.roles.compute.icon,e.displayName=u.osp.roles.compute.fullName,e.displayNameShort=u.osp.shortName+" "+u.osp.roles.compute.shortName):e.role===u.osp.roles.director.code?(e.imageClass=u.osp.roles.director.icon,e.displayName=u.osp.roles.director.fullName,e.displayNameShort=u.osp.shortName+" "+u.osp.roles.director.shortName):e.role===u.osp.roles.cluster.code&&(e.imageClass=u.osp.roles.cluster.icon,e.displayName=u.osp.roles.cluster.fullName,e.displayNameShort=u.osp.shortName+" "+u.osp.roles.cluster.shortName):e.product_code===u.rhev.code?e.role===u.rhev.roles.manager.code?(e.imageClass=u.rhev.roles.manager.icon,e.displayName=u.rhev.roles.manager.fullName,e.displayNameShort=u.rhev.shortName+" "+u.rhev.roles.manager.shortName):e.role===u.rhev.roles.hypervisor.code?(e.imageClass=u.rhev.roles.hypervisor.icon,e.displayName=u.rhev.roles.hypervisor.fullName,e.displayNameShort=u.rhev.shortName+" "+u.rhev.roles.hypervisor.shortName):e.role===u.rhev.roles.cluster.code&&(e.imageClass=u.rhev.roles.cluster.icon,e.displayName=u.rhev.roles.cluster.fullName,e.displayNameShort=u.rhev.shortName+" "+u.rhev.roles.cluster.shortName):e.product_code===u.rhel.code&&(e.imageClass=u.rhel.icon,e.displayName=u.rhel.fullName,e.displayNameShort=u.rhel.shortName),e}function h(e){for(var t=0;t<e.length;t++)e[t]=f(e[t]);return e}var m,g,v=r.apiRoot;return n.$on("reload:data",function(){m=null}),{ackStaleSystems:function(){var t=v+"systems/stale/ack";return t+=i.current("?"),e.put(t)},getSingleSystem:function(t){var n=v+"systems/"+t;return n+=i.current("?"),e.get(n)},getSystemTypes:function(){var t=v+"system_types";return e.get(t).then(function(e){return h(e.data),e})},getSystems:function(){var t;return m||(t=v+"systems"+i.current(),m=e.get(t))},getSystemLinks:function(t,n){var r=v+"systems/"+encodeURIComponent(t)+"/links";return r+=i.current("?"),r=c.addQueryToUrl(r,n),e.get(r)},headSystemsLatest:function(t){var n=v+"systems";return n+=i.current("?"),n=c.addQueryToUrl(n,t),e.head(n)},getSystemsLatest:function(t){var n=v+"systems";return n+=i.current("?"),n=c.addQueryToUrl(n,t),e.get(n)},getSystemStatus:function(t){var n;return!t&&g?g:(n=v+"systems/status"+i.current(),n=d.appendProductToUrl(n,"machine"),g=e.get(n))},getSystemSummary:function(t){var n,r=v+"systems?summary=true"+i.current("&");return r=d.appendProductToUrl(r,"machine"),n=s.current(),n&&n.id&&(r+="&group="+n.id),r=c.addQueryToUrl(r,t),e.get(r)},getSystemReports:function(t){return e.get(v+"systems/"+encodeURIComponent(t)+"/reports"+i.current()).success(function(e){e.reports.forEach(function(e){return p.readRule(e.rule)})})},getSystemMetadata:function(t){return e.get(v+"systems/"+encodeURIComponent(t)+"/metadata"+i.current())},deleteSystem:function(t){return g=null,e.delete(v+"systems/"+encodeURIComponent(t)+i.current())},populateOCPDeployments:function(){var e={product_code:"ocp",role:"cluster"};return this.getSystemsLatest(e).then(function(e){var t,n;e&&e.data&&e.data.resources&&(n=e.data.resources,n.splice(0,0,{display_name:"All Deployments",system_id:"all"}),l.setOCPDeployments(n),l.getSelectedOCPDeployment().system_id?(t=a(l.getOCPDeployments(),{system_id:l.getSelectedOCPDeployment().system_id}),l.setSelectedOCPDeployment(t)):l.setSelectedOCPDeployment(n[0]))})},populateOSPDeployments:function(){var e={product_code:"osp",role:"cluster"};return this.getSystemsLatest(e).then(function(e){var t,n;e&&e.data&&e.data.resources&&(n=e.data.resources,n.splice(0,0,{display_name:"All Deployments",system_id:"all"}),l.setOSPDeployments(n),l.getSelectedOSPDeployment().system_id?(t=a(l.getOSPDeployments(),{system_id:l.getSelectedOSPDeployment().system_id}),l.setSelectedOSPDeployment(t)):l.setSelectedOSPDeployment(n[0]))})},populateDockerHosts:function(){var e={product_code:"docker",role:"host"};return this.getSystemsLatest(e).then(function(e){var t,n;e&&e.data&&e.data.resources&&(n=e.data.resources,n.splice(0,0,{hostname:"All Hosts",system_id:"all"}),l.setDockerHosts(n),l.getSelectedDockerHost().system_id?(t=a(l.getDockerHosts(),{system_id:l.getSelectedDockerHost().system_id}),l.setSelectedDockerHost(t)):l.setSelectedDockerHost(n[0]))})},getProductSpecificData:function(){var e;return"docker"===l.getSelectedProduct()?this.populateDockerHosts():"osp"===l.getSelectedProduct()?this.populateOSPDeployments():(e=t.defer(),e.resolve(),e.promise)},getSystemGroups:function(t){var n=o(r.apiRoot);return n.segment("systems"),n.segment(t),n.segment("groups"),n.addSearch(i.queryParam()),e.get(n.toString())},update:function(t,n){var r=o(v);return r.segment("systems"),r.segment(t),r.addSearch(i.queryParam()),e.put(r.toString(),n)},getSystemPolicies:function(t){var n=o(v);return n.segment("systems"),n.segment(t),n.segment("policies"),n.addSearch(i.queryParam()),e.get(n.toString())}}}r.$inject=["$http","$q","$rootScope","InsightsConfig","AccountService","Group","Utils","FilterService","Products","PreferenceService","DataUtils"];var i=e("./"),a=e("lodash/find"),o=e("urijs");i.factory("System",r)},{"./":15,"lodash/find":497,urijs:831}],26:[function(e,t,n){"use strict";function r(e,t,n,r,i){var o=n.apiRoot;return{getAll:function(t,n){var s=t||{},c=a(o+"topics"+r.current()).addSearch(s);return angular.isDefined(n)&&c.addSearch("limit",n),c.addSearch(i.queryParam()),e.get(c.toString())},admin:function(){return e.get(o+"topics/admin")},get:function(t,n,s){var c=a(o+"topics/"+t+r.current());return n&&c.addSearch("product",n),s&&c.addSearch("include",s),c.addSearch(i.queryParam()),e.get(c.toString())},create:function(t){return e.post(o+"topics",t)},update:function(t){return e.put(o+"topics/"+t.id,t)},preview:function(t){return e.post(o+"topics/preview",t)},remove:function(t){return e.delete(o+"topics/"+t)}}}r.$inject=["$http","$q","InsightsConfig","AccountService","Group"];var i=e("./"),a=e("urijs");i.factory("Topic",r)},{"./":15,urijs:831}],27:[function(e,t,n){"use strict";function r(e,t,n,r,i,s){function c(){return r.absUrl().indexOf("insightsbeta")>-1}function l(){t.get(i.apiRoot+"me").success(function(t){angular.extend(d,t),d.permissions=a(d.permissions,"code"),d.is_super=d.is_internal,d.current_entitlements&&d.current_entitlements.unlimitedRHEL&&(d.current_entitlements.systemLimitReached=!1),null!==window.localStorage.getItem("insights:user:isInternal")&&!0===d.is_super&&(d.is_internal="true"===window.localStorage.getItem("insights:user:isInternal")),d.loaded=!0,s.set("loaded",!0,!1),o.tryFakeUser(d),e.$broadcast("user:loaded"),"true"===window.localStorage.getItem("tapi:demo")&&(d.is_internal=!1,d.demo_mode=!0),u.resolve(d)})}var u,d={loaded:!1};return{init:function(){return angular.isDefined(u)||(u=n.defer(),l()),u.promise},current:d,asyncCurrent:function(e){if(d&&d.loaded)return e(d);u&&u.promise&&u.promise.then(e)},isOnOSPWhitelist:function(){var e=!1;return!!c()&&(d&&d.current_entitlements&&(e=d.current_entitlements.whitelist.osp),e)}}}r.$inject=["$rootScope","$http","$q","$location","InsightsConfig","PreferenceService"];var i=e("./"),a=e("lodash/keyBy"),o={};o.tryFakeUser=function(e){var t;try{t=JSON.parse(window.localStorage.getItem("insights:fake:entitlements")),void 0!==t&&null!==t&&(e.current_entitlements=t)}catch(e){}},i.factory("User",r)},{"./":15,"lodash/keyBy":523}],28:[function(e,t,n){"use strict";function r(e,t){var n=t.apiRoot+"user_permissions/:userPermissionId",r={userPermissionId:"@id"},i=e(n,r);return i.init=function(){i.initial=i.query().$promise},i}r.$inject=["$resource","InsightsConfig"],e("./").service("UserPermissions",r)},{"./":15}],29:[function(e,t,n){"use strict";function r(e,t){var n=t.apiRoot;return{update:function(t){return e.post(n+"me/settings",t)}}}r.$inject=["$http","InsightsConfig"],e("./").factory("UserSettings",r)},{"./":15}],30:[function(e,t,n){"use strict";function r(e,t,n){function r(e){var n=a(i);return n.segment("webhooks"),e&&n.segment(String(e)),n.addSearch(t.queryParam()),n}var i=n.apiRoot;return{get:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=r(t);return n&&i.addSearch("include","status"),e.get(i.toString())},create:function(t){return e.post(r().toString(),o(t,s))},ping:function(){return e.post(r("ping").toString())},update:function(t){return e.put(r(t.id).toString(),o(t,s))},delete:function(t){return e.delete(r(t.id).toString())}}}r.$inject=["$http","AccountService","InsightsConfig"];var i=e("./"),a=e("urijs"),o=e("lodash/pick"),s=["active","url","firehose","event_types","certificate"];i.factory("Webhooks",r)},{"./":15,"lodash/pick":538,urijs:831}],31:[function(e,t,n){"use strict";function r(e){e.state("app",{templateUrl:"js/states/base/base.html",abstract:!0,controller:"AppCtrl"}),e.state("info",{templateUrl:"js/states/base/info.html",abstract:!0})}r.$inject=["$stateProvider"],t.exports=r},{}],32:[function(e,t,n){"use strict";function r(e,t,n,r,i){var a=window.sessionStorage.getItem(n.acctKey);e.showAccountSelector=function(){var t=e.user,n=i.PERMS;return!(!t||!t.permissions)&&(!!t.permissions[n.SU]||!!t.permissions[n.ACCOUNT_SWITCHER])},e.Utils=r,e.accountChange=function(e){e&&(window.sessionStorage.setItem(n.acctKey,e),window.location.reload())},e.reset=function(){e.user&&(e.account_number=e.user.account_number,e.user.is_internal&&(e.account_number=""+e.user.account_number),e.accountChange(e.account_number))},"true"===window.localStorage.getItem("tapi:demo")&&(a="6"),a&&(e.account_number=a),t.asyncCurrent(function(){e.user=t.current,e.isInternal!==e.user.is_internal&&(e.isInternal=e.user.is_internal),a||(e.account_number=e.user.account_number)}),e.changeInternal=function(){e.user.isInternal=e.isInternal,window.localStorage.setItem("insights:user:isInternal",JSON.stringify(e.user.isInternal)),window.location.reload()}}function i(){return{templateUrl:"js/components/accountSelect/accountSelect.html",restrict:"E",controller:r}}r.$inject=["$scope","User","InsightsConfig","Utils","PermissionService"],e("../").directive("accountSelect",i)},{"../":83}],33:[function(e,t,n){"use strict";function r(e,t,n){e.myActions=n.actions,t.$on("$stateChangeStart",function(){n.clear()})}function i(){return{templateUrl:"js/components/actionbar/actionbar.html",restrict:"E",replace:!0,controller:r}}r.$inject=["$scope","$rootScope","ActionbarService"],e("../").directive("actionbar",i)},{"../":83}],34:[function(e,t,n){"use strict";function r(e,t,n){e.goBack=function(){"app.actions-rule"===t.current.name?t.go("app.topic",{id:n.category}):"app.topic"===t.current.name&&t.go("app.actions")},e.$on("telemetry:esc",function(t){t.defaultPrevented||e.goBack()})}function i(){return{restrict:"EC",scope:{},controller:r}}r.$inject=["$scope","$state","$stateParams"],e("../../").directive("actionsBack",i)},{"../../":83}],35:[function(e,t,n){"use strict";function r(e,t,n){e.crumbs=n.crumbs,e.getCrumbs=n.get,e.crumbClick=function(e){t.go(e.state,e.params)}}function i(){return{templateUrl:"js/components/actions/actionsBreadcrumbs/actionsBreadcrumbs.html",restrict:"E",replace:!0,controller:r}}r.$inject=["$scope","$state","ActionsBreadcrumbs"],e("../../").directive("actionsBreadcrumbs",i)},{"../../":83}],36:[function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s,c,l,u,d,p,f,h,m,g,v,b,y,x,M,_,w,A,S,k,$,T){function C(){a.checkboxes.update(a.ruleSystems),a.checkboxes.totalChecked>0&&(a.noSystemsSelected=!1),a.allSelected=a.checkboxes.totalChecked>0&&!a.checkboxes.indeterminate,a.allSelected||(a.reallyAllSelected=!1)}function E(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return a.loadingSystems=!0,t&&a.pager.reset(),x.getActionsRulePage(e,a.pager).then(function(){a.ruleSystems=x.getRuleSystems(),a.totalRuleSystems=x.getTotalRuleSystems(),a.loadingSystems=!1})}function O(){a.loading=!0,a.loadingSystems=!0;var e=d.init(),n=w.get(s.category).success(function(e){l.setCrumb({label:e.title,state:"app.topic",params:{id:e.slug?e.slug:e.id}},1)}),i=M.getProductSpecificData(),o=x.initActionsRule(a.pager).then(function(){var e=x.getRuleDetails();e&&(a.ruleDetails=e,l.setCrumb({label:e.description,params:{category:s.category,rule:e.rule_id}},2)),a.ruleSystems=x.getRuleSystems(),a.totalRuleSystems=x.getTotalRuleSystems(),a.loadingSystems=!1});r.all([_.getSystemTypesAsync(),e,n,i,o]).finally(function(){a.loading=!1;var e=t.search().machine;if(e){var n={system_id:e};f.showSystemModal(n,!0)}})}function z(){A.asyncCurrent(function(){a.isInternal=A.current.is_internal}),a.checkboxes.reset(),a.predicate="toString",a.reverse=!1,u.setQueryParam("sort_field",a.predicate),u.setQueryParam("sort_direction",N[a.reverse]),a.pager=new S.Pager,a.pager.currentPage=t.search().page?t.search().page:a.pager.currentPage,a.pager.perPage=t.search().pageSize?t.search().pageSize:a.pager.perPage,O()}
2function L(){return a.reallyAllSelected?x.getAllSystems().filter(function(e){return!a.checkboxes.items.hasOwnProperty(e.system_id)||a.checkboxes.items.hasOwnProperty(e.system_id)&&!0===a.checkboxes.items[e.system_id]}):a.checkboxes.getSelected(a.ruleSystems)}var N={false:"ASC",true:"DESC"};a.allSelected=!1,a.config=p,a.getListType=h.getType,a.listTypes=h.types(),a.loading=!0,a.noSystemsSelected=!1,a.permalink=g.make,a.predicate="toString",a.reallyAllSelected=!1,a.reverse=!1,a.ruleSystems=[],a.QuickFilters=b,u.parseBrowserQueryParams(),u.setShowFilters(!1),u.setSearchTerm(""),a.setNoSystemsSelected=function(e){a.noSystemsSelected=e,e&&c(function(){a.permalink("noSystemsSelected",!0,50,500)},100)},a.$on("group:change",E),a.$on("filterService:doFilter",function(){"app.actions-rule"===o.current.name&&E()}),l.init(s),x.setRule(s.rule),a.loading=!0,a.loadingSystems=!0,a.search=function(e){u.setSearchTerm(e),u.doFilter()},a.checkboxes=new S.Checkboxes("system_id"),a.$watchCollection("checkboxes.items",C),a.plans=m.plans,a.showSystem=function(e){f.showSystemModal(e)},a.paginate=function(){a.pager.update(),t.search("page",a.pager.currentPage),t.search("pageSize",a.pager.perPage),E(!0,!1).then(function(){a.reallyAllSelected?a.checkboxes.checkboxChecked(!0,a.ruleSystems):a.checkboxes.reset()})},i.$on("productFilter:change",function(){"app.actions-rule"===o.current.name&&E()}),i.$on("reload:data",E),i.$on("group:change",E),a.$on("account:change",E),p.authenticate&&!v.get("loaded")?i.$on("user:loaded",z):z(),a.addToPlan=function(e){return function(){var t=a.checkboxes.getSelected(a.ruleSystems);if(a.setNoSystemsSelected(0===t.length),t.length)return e.apply(null,arguments)}}(function(e){var t=L();if(t.length){var n=x.getRuleDetails();m.showMaintenanceModal(t,n,e)}}),a.sort=function(e){return e===a.predicate?a.reverse=!a.reverse:(a.reverse=!1,"last_check_in"===e&&(a.reverse=!a.reverse)),a.predicate=e,u.setQueryParam("sort_field",a.predicate),u.setQueryParam("sort_direction",N[a.reverse]),a.resetPaging(),a.loadingSystems=!0,x.sortActionsRulePage(a.pager,a.predicate,a.reverse).then(function(){a.ruleSystems=x.getRuleSystems(),a.totalRuleSystems=x.getTotalRuleSystems(),a.loadingSystems=!1})},a.resetPaging=function(){a.checkboxes.reset(),a.pager.reset()},a.selectAll=function(){a.reallyAllSelected&&a.pager.perPage<a.totalRuleSystems&&(a.reallyAllSelected=!1)},a.reallySelectAll=function(){a.allSelected=!0,a.reallyAllSelected=!0,E(!1,!1)},a.deselectAll=function(){a.reallyAllSelected=!1,a.allSelected=!1,a.checkboxes.reset()},a.numberOfSelected=function(){if(a.reallyAllSelected){var e=x.getAllSystems();return e?e.length:0}return a.checkboxes.totalChecked},a.isIncident=d.isIncident,p.allowExport&&k.addExportAction(function(){$.getReports(null,s.rule,T.current().id)})}r.$inject=["$filter","$location","$modal","$q","$rootScope","$scope","$state","$stateParams","$timeout","ActionsBreadcrumbs","FilterService","IncidentsService","InsightsConfig","InventoryService","ListTypeService","MaintenanceService","PermalinkService","PreferenceService","QuickFilters","Report","RhaTelemetryActionsService","System","SystemsService","Topic","User","Utils","ActionbarService","Export","Group"],e("../../").controller("ActionsRuleCtrl",r)},{"../../":83}],37:[function(e,t,n){"use strict";function r(){return{templateUrl:"js/components/actions/actionsRuleFilters/actionsRuleFilters.html",restrict:"E",replace:!0}}e("../../").directive("actionsRuleFilters",r)},{"../../":83}],38:[function(e,t,n){"use strict";function r(e){window.setTimeout(e,1)}function i(e,t){return e/t*100}function a(e){return{low:i(e.info,e.total),medium:i(e.warn,e.total),high:i(e.error,e.total),critical:i(e.critical,e.total)}}function o(e){e.loaded=!1,e.max=0,e.$watchCollection("stats.rules",function(t){t&&(e.loaded=!1,r(function(){e.percentages=a(t),e.loaded=!0}))})}function s(){return{templateUrl:"js/components/actions/severitySummary/severitySummary.html",restrict:"E",scope:{stats:"="},controller:o}}o.$inject=["$scope"],e("../../").directive("severitySummary",s)},{"../../":83}],39:[function(e,t,n){"use strict";function r(){return{templateUrl:"js/components/actions/systemSummary/systemSummary.html",restrict:"E",scope:{stats:"="},link:function(e){e.loaded=!1,e.ratio=0,e.$watch("stats.systems",function(t){t&&t.total&&(e.ratio=100*t.affected/t.total,e.loaded=!0)},!0)}}}e("../../").directive("systemSummary",r)},{"../../":83}],40:[function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s,c){e.params={showAll:!0},a.init(e.params),e.announcements=a.announcements,e.canCreate=!1,e.permalink=s.make,n.announcementId&&r(function(){e.permalink(n.announcementId.toString(),10,30)},100),e.reload=function(){a.reload(e.params)},e.ackAnnouncement=function(e){a.acknowledge(e)},e.editAnnouncement=function(e){t.go("app.edit-announcement",{id:e.id})},e.deleteAnnouncement=function(e){i().then(function(){a.deleteAnnouncement(e)})},o.asyncCurrent(function(t){e.canCreate=t&&t.is_internal&&c.has(t,c.PERMS.CREATE_ANNOUNCEMENT)})}function i(){return{templateUrl:"js/components/announcements/announcementsScroll/announcementsScroll.html",restrict:"E",replace:!0,controller:r}}r.$inject=["$scope","$state","$stateParams","$timeout","sweetAlert","AnnouncementService","User","PermalinkService","PermissionService"],e("../../").directive("announcementsScroll",i)},{"../../":83}],41:[function(e,t,n){"use strict";function r(e,t){var n=t.getString("Use the Planner to generate an Ansible Playbook."),r=t.getString("This rule has Ansible support."),i=t.getString("This rules does not have Ansible support");e.$watch("value",function(t){t?e.white?(e.icon="static/images/l_ansible-white.svg",e.svgClass="white"):(e.icon="static/images/l_ansible-blue.svg",e.svgClass="supported",e.supportText="Ansible supported"):(e.icon="static/images/l_ansible-unsupported.svg",e.svgClass="unsupported",e.supportText="Ansible unsupported"),(e.showTooltip||void 0===e.showTooltip)&&(t?(e.tooltip=r,(e.showPlannerLine||void 0===e.showPlannerLine)&&(e.tooltip+=" "+n)):e.tooltip=i)}),e.supportText=e.positive?"Ansible unsupported":"Ansible supported"}function i(){return{scope:{value:"<",showTooltip:"<",showPlannerLine:"<",white:"<",hideLabel:"<"},templateUrl:"js/components/ansibleIcon/ansibleIcon.html",restrict:"E",replace:!0,controller:r}}r.$inject=["$scope","gettextCatalog"],e("../").directive("ansibleIcon",i)},{"../":83}],42:[function(e,t,n){"use strict";function r(e,t){e.switchVersion=function(e){e?t.goToBeta():t.goToStable()},e.switchStatus=function(){var t=window.localStorage.getItem("betaOptIn");t="false"===t,window.localStorage.setItem("betaOptIn",t),e.isOptedIn=t},e.leaveBeta=function(){e.switchStatus(!1),e.switchVersion(!1)},e.isOnBeta=function(){return window.insightsGlobal.isBeta},e.isOptedIn=JSON.parse(window.localStorage.getItem("betaOptIn"))}function i(){return{templateUrl:"js/components/betaSwitchButton/betaSwitchButton.html",restrict:"E",controller:r,replace:!0}}r.$inject=["$scope","BetaRedirectService"],e("../").directive("betaSwitchButton",i)},{"../":83}],43:[function(e,t,n){"use strict";function r(e,t,n,r,i){function a(){t.loadingAnnouncements=!0,i.init().then(function(){t.items=i.announcements.slice(0,i.announcements.length<7?i.announcements.length:6),t.unackedCount=i.unseen.count,t.loadingAnnouncements=!1})}switch(t.loadingAnnouncements=!0,t.selectAnnouncement=function(e){n.go("app.announcements",{announcementId:e.id})},t.ack=function(e){t.loadingAnnouncements=!0,i.acknowledge(e).then(function(){t.selectAnnouncement(e),t.loadingAnnouncements=!1})},t.type){case"announcements":a()}e.$on("announcement:changed",function(){a()})}function i(){return{templateUrl:"js/components/bullhorn/bullhorn.html",restrict:"E",replace:!0,scope:{type:"@type",icon:"@icon"},controller:r}}r.$inject=["$rootScope","$scope","$state","Announcement","AnnouncementService"],e("../").directive("bullhorn",i)},{"../":83}],44:[function(e,t,n){"use strict";function r(){return{templateUrl:"js/components/buttons/button-split/button-split.html",restrict:"E",replace:!0,controller:angular.noop,controllerAs:"ctrl",scope:{disabled:"=?ngDisabled"},transclude:{main:"buttonSplitMain",items:"buttonSplitItem"},link:function(e,t,n,r){r.classes=n.class,e.$watch("disabled",function(e){r.disabled=e})}}}function i(){return{templateUrl:"js/components/buttons/button-split/button-split-main.html",restrict:"E",replace:!1,transclude:!0,require:"^buttonSplit",link:function(e,t,n,r){e.ctrl=r}}}function a(){return{templateUrl:"js/components/buttons/button-split/button-split-item.html",restrict:"E",replace:!0,transclude:!0,require:"^buttonSplit"}}var o=e("../../");o.directive("buttonSplit",r),o.directive("buttonSplitItem",a),o.directive("buttonSplitMain",i)},{"../../":83}],45:[function(e,t,n){"use strict";function r(e,t,n,r){var i={},a={};i.toggleContent=function(){e.collapsed=!e.collapsed},e.collapsed=!angular.isDefined(e.initCollapsed)||Boolean(e.initCollapsed),t.generateAccessors(e,a),e.toggleContent=function(){e.expandable&&r.when(e.onToggle({ctx:{collapsing:!e.collapsed}})).then(i.toggleContent)},e.$on(n.cards.expandAll,function(){e.collapsed&&e.toggleContent()}),e.$on(n.cards.collapseAll,function(){e.collapsed||e.toggleContent()}),this.api=e}function i(e,t,n,r){e.card=r.api}function a(e,t,n,r){e.card=r.api}function o(e,t,n,r){e.card=r.api}function s(e,t,n,r){e.card=r.api}function c(){return{templateUrl:"js/components/card/card.html",restrict:"E",replace:!0,transclude:!0,controller:r,scope:{expandable:"@",initCollapsed:"=",onToggle:"&"},link:function(e,t){!function(e,t,n,r){e.$watch(n,function(e){e?t.addClass(r):t.removeClass(r)})}(e,t,"!collapsed","expanded")}}}function l(){return{templateUrl:"js/components/card/cardHeader.html",restrict:"E",replace:!0,transclude:!0,link:i,require:"^card"}}function u(){return{templateUrl:"js/components/card/cardHeaderExpandable.html",restrict:"E",replace:!0,transclude:!0,link:a,require:"^card"}}function d(){return{templateUrl:"js/components/card/cardContent.html",restrict:"E",replace:!0,transclude:!0,link:o,require:"^card"}}function p(){return{templateUrl:"js/components/card/cardFooter.html",restrict:"E",replace:!0,transclude:!0,link:s,require:"^card"}}s.$inject=["scope","element","attrs","card"],o.$inject=["scope","element","attrs","card"],a.$inject=["scope","element","attrs","card"],i.$inject=["scope","element","attrs","card"],r.$inject=["$scope","Utils","Events","$q"];var f=e("../");f.directive("card",c),f.directive("cardHeader",l),f.directive("cardHeaderExpandable",u),f.directive("cardContent",d),f.directive("cardFooter",p)},{"../":83}],46:[function(e,t,n){"use strict";function r(e,t,n,r,i,a,u,d,p,f,h,m){e.getSystemName=r.getSystemDisplayName,e.hostnameTitle=null,e.selected=!1,e.plans=h.plans.all,e.config=m,e.systemHostnameHover=function(t){var n=t.relatedTarget;!e.hostnameTitle&&n.offsetWidth<n.scrollWidth&&(e.hostnameTitle=e.system.hostname)},e.toggleContent=function(t){if(!t.collapsing){var n={includeSelf:!1};e.loading=!0,a.getSystemLinks(e.system.system_id,n).then(function(t){var n,r;t&&t.data&&t.data.resources&&d.getSystemTypesAsync().then(function(i){e.links=t.data.resources,n=l(e.links,function(e){return e.system_type_id}),r=[o(i,{product_code:u.osp.code,role:u.osp.roles.cluster.code}),o(i,{product_code:u.rhev.code,role:u.rhev.roles.cluster.code}),o(i,{product_code:u.ocp.code,role:u.ocp.roles.cluster.code}),o(i,{product_code:u.osp.code,role:u.osp.roles.director.code}),o(i,{product_code:u.rhev.code,role:u.rhev.roles.manager.code}),o(i,{product_code:u.ocp.code,role:u.ocp.roles.master.code}),o(i,{product_code:u.docker.code,role:u.docker.roles.host.code}),o(i,{product_code:u.osp.code,role:u.osp.roles.compute.code}),o(i,{product_code:u.osp.code,role:u.osp.roles.controller.code}),o(i,{product_code:u.rhev.code,role:u.rhev.roles.hypervisor.code}),o(i,{product_code:u.docker.code,role:u.docker.roles.container.code}),o(i,{product_code:u.docker.code,role:u.docker.roles.image.code}),o(i,{product_code:u.ocp.code,role:u.ocp.roles.node.code}),o(i,{product_code:u.rhel.code,role:u.rhel.roles.host.code})],e.linkGroups=c(n,function(e,t){return{priority:s(r,{id:parseInt(t)}),system_type_id:t,members:e}})})}).then(function(){e.loading=!1})}},e.getGroupPriority=function(e){return e.priority},e.hasFamilyMembers=function(){return!!(e.links&&e.links.length>0)},e.showActions=function(){i.showSystemModal(e.system)},e.unregister=function(){d.unregisterSelectedSystems([e.system])},n.asyncCurrent(function(){e.isInternal=n.current.is_internal})}function i(){return{templateUrl:"js/components/card/systemCard/systemCard.html",restrict:"E",replace:!0,controller:r,scope:{rule:"=",system:"=",checkboxes:"=",selectableVal:"=selectable",checkboxTooltipExp:"&checkboxTooltip"},link:function(e,t,n){n.checkboxTooltip?e.checkboxTooltip=e.checkboxTooltipExp({defaultTooltip:"Select System"}):e.checkboxTooltip="Select System",angular.isDefined(e.selectableVal)?e.selectable=e.selectableVal:e.selectable=!0}}}r.$inject=["$scope","$modal","User","Utils","InventoryService","System","Products","SystemsService","$q","AnsibleService","MaintenanceService","InsightsConfig"];var a=e("../../"),o=e("lodash/find"),s=e("lodash/findIndex"),c=e("lodash/map"),l=e("lodash/groupBy");a.animation(".slide",["$timeout",function(e){return{beforeAddClass:function(e,t,n){"ng-hide"===t?jQuery(e).slideUp(n):"no-border-bottom"===t&&jQuery(e).addClass("no-border-bottom")},removeClass:function(t,n,r){function i(){jQuery(t).css("overflow","visible"),r()}"ng-hide"===n?jQuery(t).hide().slideDown(i):"no-border-bottom"===n&&(jQuery(t).addClass("no-border-bottom"),e(function(){jQuery(t).removeClass("no-border-bottom")},399))}}}]),a.directive("systemCard",i)},{"../../":83,"lodash/find":497,"lodash/findIndex":498,"lodash/groupBy":503,"lodash/map":527}],47:[function(e,t,n){"use strict";function r(){return{scope:{category:"="},templateUrl:"js/components/categoryIcon/categoryIcon.html",restrict:"E",replace:!0}}e("../").directive("categoryIcon",r)},{"../":83}],48:[function(e,t,n){"use strict";function r(e,t,n){function r(){return"true"===window.localStorage.getItem("tapi:demo")}e.user=t.current,e.tmp={apiPrefix:n.apiPrefix,apiVersion:n.apiVersion,entitlements:{}},e.presets={apiPrefix:{default:n.defaultApiPrefix,local:"local/"},apiVersions:["v1","v2","v3"],entitlements:{paid:{unlimitedRHEL:!1,whitelist:{rhel:!1,osp:!1},totalRHEL:32,skus:[{skuName:"MCT3292",quantity:2,system_count:1,unlimited:!1}],activeSystemCount:1,systemLimitReached:!1},paidWithFewSystems:{unlimitedRHEL:!1,whitelist:{rhel:!1,osp:!1},totalRHEL:9,skus:[{skuName:"MCT3292",quantity:2,system_count:1,unlimited:!1}],activeSystemCount:1,systemLimitReached:!1},unpaid:{activeSystemCount:1,skus:[{skuName:"SER0482",quantity:2,system_count:0,unlimited:!1}],systemLimitReached:!1,totalRHEL:8,unlimitedRHEL:!1,whitelist:{osp:!1,rhel:!1}},unpaidSystemLimitReached:{activeSystemCount:10,skus:[{skuName:"SER0482",quantity:2,system_count:0,unlimited:!1}],systemLimitReached:!0,totalRHEL:10,unlimitedRHEL:!1,whitelist:{osp:!1,rhel:!1}},whitelisted:{whitelist:{rhel:!0,osp:!0}}}},e.getPretty=function(e){return JSON.stringify(e,null,2)},e.setEntitlements=function(){e.user.current_entitlements=e.presets.entitlements[e.tmp.tmpEnt],window.localStorage.setItem("insights:fake:entitlements",JSON.stringify(e.user.current_entitlements))},e.setEntitlementsByKey=function(t){var n;try{n=JSON.parse(e.tmp.entitlements[t]),e.user.current_entitlements[t]=n}catch(e){}},e.save=function(){window.localStorage.setItem("insights:apiVersion",e.tmp.apiVersion),window.localStorage.setItem("insights:apiPrefix",e.tmp.apiPrefix),window.location.reload()},e.injectNewKey=function(){e.user.current_entitlements[e.newKey]={}},e.getDemoModeButtonText=function(){return r()?"Disable Demo Mode":"Enable Demo Mode"},e.demoModeButtonOnClick=function(){r()?window.localStorage.setItem("tapi:demo",!1):window.localStorage.setItem("tapi:demo",!0),window.location.reload()}}function i(){return{templateUrl:"js/components/config/dev/dev.html",restrict:"E",scope:!1,controller:r}}r.$inject=["$scope","User","InsightsConfig"],e("../../").directive("configDev",i)},{"../../":83}],49:[function(e,t,n){"use strict";function r(e,t){t.getCampaigns().success(function(t){e.campaigns=t}),e.save=function(n){t.saveCampaigns(e.campaigns).then(function(){n.$setPristine()})}}function i(){return{templateUrl:"js/components/config/messaging/messaging.html",restrict:"EA",scope:{},controller:r}}r.$inject=["$scope","Messaging"],e("../../").directive("configMessaging",i)},{"../../":83}],50:[function(e,t,n){"use strict";function r(e,t,n,r,i,a){var l={};e.newPermission={},l.removeAll=function(n){var i=[];n.forEach(function(e){i.push(r.delete({userPermissionId:e.id}).$promise)}),t.all(i).finally(function(){e.init()})},e.isCreating=!1,e.addNewPermission=function(){var t;e.newPermission.permission_id=e.tmpPermission.id,t=new r(e.newPermission),t.$save().finally(function(){e.init()})},e.removeSingle=function(t){e.removeAll([{id:t.id}])},e.removeAll=function(e){var t={confirmButtonText:"Yes, delete it!"};e[0].sso_username===a.current.sso_username&&(t.text="Delete yourself?? Remember... no dumb here!"),n(t).then(function(){l.removeAll(e)})},e.init=function(){i.query().$promise.then(function(t){e.permissions=t}),r.query().$promise.then(function(t){e.users=c(s(t,"sso_username")),e.userMap=o(t,function(e){return e.sso_username})})},e.init()}function i(){return{templateUrl:"js/components/config/permissions/permissions.html",restrict:"EA",scope:!1,controller:r}}r.$inject=["$scope","$q","sweetAlert","UserPermissions","Permission","User"];var a=e("../../"),o=e("lodash/groupBy"),s=e("lodash/map"),c=e("lodash/uniq");a.directive("configPermissions",i)},{"../../":83,"lodash/groupBy":503,"lodash/map":527,"lodash/uniq":556}],51:[function(e,t,n){"use strict";function r(e,t){e.loading=!0,t.get().success(function(t){e.settings=t}).finally(function(){e.loading=!1}),e.save=function(){e.loading=!0,t.update(e.settings).catch(function(){window.alert("Only an org admin is allowed to change this setting")}).finally(function(){e.loading=!1})}}function i(){return{templateUrl:"js/components/config/settings/settings.html",restrict:"EA",scope:{},controller:r}}r.$inject=["$scope","AccountSettings"],e("../../").directive("configSettings",i)},{"../../":83}],52:[function(e,t,n){"use strict";function r(e,t,n,r,i,a,s){t.loader=new a.Loader(!1),t.init=t.loader.bind(function(){return s.get().then(function(e){t.webhooks=e.data})}),t.activeChanged=s.update,t.delete=function(e){i({html:r.getString("Webhook configuration will be lost")}).then(function(){return s.delete(e)}).then(t.init)},t.ping=function(){s.ping().then(function(){n(t.init,5e3)})},t.isPingable=function(){return o(t.webhooks,"active")},t.init()}function i(){return{templateUrl:"js/components/config/webhooks/webhooks.html",restrict:"E",scope:{},controller:r}}r.$inject=["$q","$scope","$timeout","gettextCatalog","sweetAlert","Utils","Webhooks"];var a=e("../../"),o=e("lodash/some");a.directive("configWebhooks",i)},{"../../":83,"lodash/some":544}],53:[function(e,t,n){"use strict";function r(){return{templateUrl:"js/components/content-info/content-info.html",restrict:"EC",transclude:!0,replace:!0}}e("../").directive("contentInfo",r)},{"../":83}],54:[function(e,t,n){"use strict";function r(e){e.$watch("account_number",function(t){e.demoAccountEnabled="6"===t}),e.toggleDemoAccount=function(){e.demoAccountEnabled?e.accountChange(e.user.account_number):e.accountChange("6")},e.showDemoSwitcher=function(){return e.user&&e.user.is_internal}}function i(){return{templateUrl:"js/components/demoAccountSwitcher/demoAccountSwitcher.html",controller:r,replace:!0}}r.$inject=["$scope"],e("../").directive("demoAccountSwitcher",i)},{"../":83}],55:[function(e,t,n){"use strict";function r(e){var t=s.select("[digest-key="+e.digestKey+"] .digest-graph").append("div").style({width:"100%",height:"400px"}).node();o.newPlot(t,e.digest.data,e.digest.layout,e.digest.options),window.addEventListener("resize",function(){o.Plots.resize(t)}),l('a[data-toggle="tab"]').on("shown.bs.tab",function(){o.Plots.resize(t)}),e.toggleTrace=function(e){e.enable=!e.enabled;var n=!!e.enabled||"legendonly";o.restyle(t,"visible",[n],[e.index])},c.initTraces(e,t)}function i(){return{templateUrl:"js/components/digest/digestGraph.html",restrict:"E",controller:r,replace:!0,scope:{dropDown:"@",digest:"=",digestKey:"@",width:"@",chartType:"@"}}}r.$inject=["$scope"];var a=e("../"),o=e("plotly.js/lib/index-basic"),s=o.d3,c={},l=window.jQuery;c.initTraces=function(e){var t=l("#metrics g.traces");e.traces=[],e.digest.data.forEach(function(n,r){var i={index:r,legendElement:l(t[r]),name:n.name,enabled:!0};e.traces.push(i),i.legendElement.click(function(){i.enabled=!i.enabled,e.$apply()})})},a.directive("digestGraph",i)},{"../":83,"plotly.js/lib/index-basic":572}],56:[function(e,t,n){"use strict";function r(e,t){return{restrict:"AC",link:function(){t.on("keydown",function(t){27===t.keyCode&&e.$broadcast("telemetry:esc")})}}}r.$inject=["$rootScope","$document"],e("../").directive("escKey",r)},{"../":83}],57:[function(e,t,n){"use strict";function r(e,t){e.expand=!0,e.onClick=function(){var n=e.expand?t.cards.expandAll:t.cards.collapseAll;e.$broadcast(n),e.expand=!e.expand}}function i(){return{templateUrl:"js/components/expandAllButton/expandAllButton.html",restrict:"E",replace:!0,controller:r}}r.$inject=["$scope","Events"],e("../").directive("expandAllButton",i)},{"../":83}],58:[function(e,t,n){"use strict";function r(e,t,n,r,i){e.openFeedbackPage=function(){i.asyncCurrent(function(e){r.open({templateUrl:"js/components/feedback/feedbackModal.html",windowClass:"system-modal ng-animate-enabled",backdropClass:"ng-animate-enabled",controller:"feedbackModalCtrl",resolve:{feedbackInfo:function(){return{fromPage:n.url(),fromState:t.current.name,user:e}}}})})}}function i(){return{templateUrl:"js/components/feedback/feedbackButton.html",restrict:"E",controller:r,replace:!0}}r.$inject=["$scope","$state","$location","$modal","User"],e("../").directive("feedbackButton",i)},{"../":83}],59:[function(e,t,n){"use strict";function r(e,t,n,r){e.feedbackInfo=n,e.isError=!1,e.setEmailOverride=function(){e.emailOverride=!0},e.isCommentPopulated=function(){return""!==e.comment&&void 0!==e.comment},e.submitForm=function(){var t={comment:e.comment,email:e.feedbackInfo.user.email,from_page:n.fromPage};r.sendFeedback(t).success(function(){e.close()}).catch(function(){e.isError=!0})},e.close=function(){t.dismiss("close")}}r.$inject=["$scope","$modalInstance","feedbackInfo","Feedback"],e("../").controller("feedbackModalCtrl",r)},{"../":83}],60:[function(e,t,n){"use strict";function r(e,t,n,r,i,a){function s(){return t.selected.tag}t.options=[{id:"all",label:r.getString("All"),withActions:!0,withoutActions:!0,tag:null},{id:"affected",label:r.getString("Affected"),withActions:!0,withoutActions:!1,tag:r.getString("Health: Affected")},{id:"healthy",label:r.getString("Healthy"),withActions:!1,withoutActions:!0,tag:r.getString("Health: Healthy")}],t.select=function(r){var o="all"!==r.id?r.id:null;t.selected=r,n.search("systemHealth",o),a.doFilter(),e.$broadcast(i.filters.tag,s(),i.filters.actionsSelect),e.$broadcast(i.filters.actionsSelect,r)},t.$on(i.filters.reset,function(){t.select(o(t.options,function(e){return"all"===e.id}))}),t.$on(i.filters.removeTag,function(e,n){n===i.filters.actionsSelect&&t.select(o(t.options,function(e){return"all"===e.id}))}),function(){var r=n.search();r.systemHealth?t.select(o(t.options,function(e){return e.id===r.systemHealth})):t.select(o(t.options,function(e){return"all"===e.id})),e.$broadcast(i.filters.tag,s(),i.filters.actionsSelect)}()}function i(){return{templateUrl:"js/components/filterComponents/actionsSelect/actionsSelect.html",restrict:"E",controller:r,scope:{}}}r.$inject=["$rootScope","$scope","$location","gettextCatalog","Events","FilterService"];var a=e("../../"),o=e("lodash/find");a.directive("actionsSelect",i)},{"../../":83,"lodash/find":497}],61:[function(e,t,n){"use strict";function r(e,t,n,r,i,a){n.options={0:{label:r.getString("All"),tag:null},1:{label:r.getString("Today"),tag:r.getString("Age: Today")}};for(var o=[7,15,30,90],s=0;s<o.length;s++){var c=o[s];n.options[c]={label:r.getString("Last "+c+" Days"),tag:r.getString("Age: "+c+" Days")}}n.select=function(e){n.selected=n.options[e],a.setAge(e),a.doFilter(),t.$broadcast(i.filters.tag,n.selected.tag,i.filters.age)},function(){var r=e.search()[i.filters.age]||a.getAge();n.selected=n.options[r]||n.options[0],t.$broadcast(i.filters.tag,n.selected.tag,i.filters.age)}(),n.$on(i.filters.reset,function(){n.select(0)}),n.$on(i.filters.removeTag,function(e,t){t===i.filters.age&&n.select(0)})}function i(){return{templateUrl:"js/components/filterComponents/ageSelect/ageSelect.html",restrict:"E",controller:r,scope:{}}}r.$inject=["$location","$rootScope","$scope","gettextCatalog","Events","FilterService"],e("../../").directive("ageSelect",i)},{"../../":83}],62:[function(e,t,n){"use strict";function r(e,t,n,r,i,a){function o(){n.showAnsibleSupport="all",n.filterAnsibleSupport(n.showAnsibleSupport),e.search(r.filters.ansibleSupport,null)}function s(){return a[n.showAnsibleSupport].tag}n.AnsibleSupportFilters=a,n.filterAnsibleSupport=function(a){n.showAnsibleSupport=a,i.setAnsibleSupport(a),i.doFilter(),"all"===n.showAnsibleSupport?e.search(r.filters.ansibleSupport,null):e.search(r.filters.ansibleSupport,n.showAnsibleSupport),t.$broadcast(r.filters.tag,s(),r.filters.ansibleSupport),t.$broadcast(r.filters.ansibleSupport,n.showAnsibleSupport)},n.$on(r.filters.reset,function(){o()}),n.$on(r.filters.removeTag,function(e,n){n===r.filters.ansibleSupport&&(o(),t.$broadcast(n,"all"))}),function(){n.showAnsibleSupport=e.search()[r.filters.ansibleSupport]?e.search()[r.filters.ansibleSupport]:i.getAnsibleSupport(),t.$broadcast(r.filters.tag,s(),r.filters.ansibleSupport)}()}function i(){return{templateUrl:"js/components/filterComponents/ansibleSupportTriState/ansibleSupportTriState.html",restrict:"E",replace:!0,controller:r}}r.$inject=["$location","$rootScope","$scope","Events","FilterService","AnsibleSupportFilters"],e("../../").directive("ansibleSupportTriState",i)},{"../../":83}],63:[function(e,t,n){"use strict";function r(e,t,n,r,i,a){function o(){return n.selected.tag}n.options={all:{label:r.getString("All"),tag:null},availability:{label:r.getString("Availability"),tag:r.getString("Category: Availability")},stability:{label:r.getString("Stability"),tag:r.getString("Category: Stability")},performance:{label:r.getString("Performance"),tag:r.getString("Category: Performance")},security:{label:r.getString("Security"),tag:r.getString("Category: Security")}},n.select=function(e){n.selected=n.options[e],a.setCategory(e),a.doFilter(),t.$broadcast(i.filters.tag,o(),i.filters.categorySelect)},function(){var r=e.search().category?e.search().category:a.getCategory();n.selected=n.options[r],t.$broadcast(i.filters.tag,o(),i.filters.categorySelect)}(),n.$on(i.filters.reset,function(){n.select("all")}),n.$on(i.filters.removeTag,function(e,t){t===i.filters.categorySelect&&n.select("all")})}function i(){return{templateUrl:"js/components/filterComponents/categorySelect/categorySelect.html",restrict:"E",controller:r,scope:{}}}r.$inject=["$location","$rootScope","$scope","gettextCatalog","Events","FilterService"],e("../../").directive("categorySelect",i)},{"../../":83}],64:[function(e,t,n){"use strict";function r(e,t,n,r,i){function a(){return t.selected.tag}t.options=[{id:"all",label:n.getString("All"),online:!0,offline:!0,tag:null},{id:"online",label:n.getString("Checking In"),online:!0,offline:!1,tag:n.getString("Status: Checking In")},{id:"offline",label:n.getString("Stale"),online:!1,offline:!0,tag:n.getString("Status: Stale")}],t.select=function(n){t.selected=n,i.setOnline(n.online),i.setOffline(n.offline),i.doFilter(),e.$broadcast(r.filters.tag,a(),r.filters.checkInSelect)},function(){if(t.selected=o(t.options,{online:i.getOnline(),offline:i.getOffline()}),!t.selected)throw new Error("Invalid online selector state: "+i.getOnline()+":"+i.getOffline());e.$broadcast(r.filters.tag,a(),r.filters.checkInSelect)}(),t.$on(r.filters.reset,function(){t.select(o(t.options,function(e){return"all"===e.id}))}),t.$on(r.filters.removeTag,function(e,n){n===r.filters.checkInSelect&&t.select(o(t.options,function(e){return"all"===e.id}))})}function i(){return{templateUrl:"js/components/filterComponents/checkInSelect/checkInSelect.html",restrict:"E",controller:r,scope:{}}}r.$inject=["$rootScope","$scope","gettextCatalog","Events","FilterService"];var a=e("../../"),o=e("lodash/find");a.directive("checkInSelect",i)},{"../../":83,"lodash/find":497}],65:[function(e,t,n){"use strict";function r(e,t){e.getShowFilters=t.getShowFilters,e.toggleShowFilters=t.toggleShowFilters}function i(){return{templateUrl:"js/components/filterComponents/filterButton/filterButton.html",restrict:"E",replace:!0,controller:r}}r.$inject=["$scope","FilterService"],e("../../").directive("filterButton",i)},{"../../":83}],66:[function(e,t,n){"use strict";function r(){}function i(){return{templateUrl:"js/components/filterComponents/hideIgnoredToggle/hideIgnoredToggle.html",restrict:"E",controller:r}}e("../../").directive("hideIgnoredToggle",i)},{"../../":83}],67:[function(e,t,n){"use strict";function r(e,t,n,r,i,a){function o(){return n.selected.tag}n.options=r,n.select=function(r){n.selected=n.options[r],a.setImpact(r),a.doFilter(),0===r?e.search(i.filters.impact,null):e.search(i.filters.impact,r),t.$broadcast(i.filters.tag,o(),i.filters.impact),t.$broadcast(i.filters.impact)},function(){var r=e.search()[i.filters.impact]?e.search()[i.filters.impact]:a.getImpact();n.selected=n.options[r],t.$broadcast(i.filters.tag,o(),i.filters.impact)}(),n.$on(i.filters.reset,function(){n.select(0)}),n.$on(i.filters.removeTag,function(e,t){t===i.filters.impact&&n.select(0)})}function i(){return{templateUrl:"js/components/filterComponents/impactSelect/impactSelect.html",restrict:"E",controller:r,scope:{}}}r.$inject=["$location","$rootScope","$scope","ImpactFilters","Events","FilterService"],e("../../").directive("impactSelect",i)},{"../../":83}],68:[function(e,t,n){"use strict";function r(e,t,n,r,i,a){function o(){n.filterIncidents("all"),e.search(r.filters.incident,null)}function s(){var e=i[n.showIncidents].tag;return"all"===n.showIncidents&&(e=null),e}n.incidentFilters=i,n.filterIncidents=function(i){n.showIncidents=i,a.setIncidents(i),a.doFilter(),"all"===n.showIncidents?e.search(r.filters.incident,null):e.search(r.filters.incident,n.showIncidents),t.$broadcast(r.filters.tag,s(),r.filters.incident),t.$broadcast(r.filters.incident,n.showIncidents)},n.$on(r.filters.reset,function(){o()}),n.$on(r.filters.removeTag,function(e,n){n===r.filters.incident&&(o(),t.$broadcast(n,"all"))}),function(){n.showIncidents=e.search()[r.filters.incident]?e.search()[r.filters.incident]:a.getIncidents(),t.$broadcast(r.filters.tag,s(),r.filters.incident)}()}function i(){return{templateUrl:"js/components/filterComponents/incidentsTriState/incidentsTriState.html",restrict:"E",controller:r,replace:!0}}r.$inject=["$location","$rootScope","$scope","Events","IncidentFilters","FilterService"],e("../../").directive("incidentsTriState",i)},{"../../":83}],69:[function(e,t,n){"use strict";function r(e,t,n,r,i,a){function o(){return n.selected.tag}n.options=r,n.select=function(r){n.selected=n.options[r],a.setLikelihood(r),a.doFilter(),0===r?e.search(i.filters.likelihood,null):e.search(i.filters.likelihood,r),t.$broadcast(i.filters.tag,o(),i.filters.likelihood),t.$broadcast(i.filters.likelihood)},function(){var r=e.search()[i.filters.likelihood]?e.search()[i.filters.likelihood]:a.getLikelihood();n.selected=n.options[r],t.$broadcast(i.filters.tag,o(),i.filters.likelihood)}(),n.$on(i.filters.reset,function(){n.select(0)}),n.$on(i.filters.removeTag,function(e,t){t===i.filters.likelihood&&n.select(0)})}function i(){return{
3templateUrl:"js/components/filterComponents/likelihoodSelect/likelihoodSelect.html",restrict:"E",controller:r,scope:{}}}r.$inject=["$location","$rootScope","$scope","LikelihoodFilters","Events","FilterService"],e("../../").directive("likelihoodSelect",i)},{"../../":83}],70:[function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){function c(){s.setRolesQueryParam("manager","inventoryRHEVManagers"),s.setRolesQueryParam("hypervisor","inventoryRHEVHypervisors")}function l(){s.setRolesQueryParam("host","inventoryDockerHosts"),s.setRolesQueryParam("container","inventoryDockerContainers"),s.setRolesQueryParam("image","inventoryDockerImages")}function u(){s.setRolesQueryParam("director","inventoryOSPDirector"),s.setRolesQueryParam("cluster","inventoryOSPCluster"),s.setRolesQueryParam("compute","inventoryOSPCompute"),s.setRolesQueryParam("controller","inventoryOSPController")}function d(){s.setRolesQueryParam("director","inventoryOCPDirector"),s.setRolesQueryParam("master","inventoryOCPMaster"),s.setRolesQueryParam("node","inventoryOCPNodes")}function p(){n.getProducts().then(function(n){e.products=n.data,n.data&&n.data.length<=1?s.setRHELOnly(!0):(s.setRHELOnly(!1),e.products.splice(0,0,"all")),t.$broadcast(r.filters.populatedProducts)})}e.products=[],e.getSelectedProduct=s.getSelectedProduct,e.getRHELOnly=s.getRHELOnly,e.getProductLabel=function(e){return"all"===e?"All Platforms":e===o.rhel.code?o.rhel.fullName:e===o.osp.code?o.osp.fullName:e===o.rhev.code?o.rhev.fullName:e===o.ocp.code?o.ocp.fullName:e===o.docker.code?o.docker.fullName:void 0},e.doSelectProduct=function(e){s.setSelectedProduct(e),t.$broadcast(r.checkboxes.reset),e===o.rhev.code?(s.setParentNode(null),c(),s.doFilter()):e===o.docker.code?i.populateDockerHosts().then(function(){l(),s.doFilter()}):e===o.ocp.code?i.populateOCPDeployments().then(function(){d(),s.doFilter()}):e===o.osp.code?i.populateOSPDeployments().then(function(){u(),s.doFilter()}):(s.setParentNode(null),s.doFilter())},t.$on("reload:data",p),p()}function i(){return{templateUrl:"js/components/filterComponents/productSelect/productSelect.html",restrict:"E",controller:r}}r.$inject=["$scope","$rootScope","Account","Events","System","SystemsService","Products","FilterService"],e("../../").directive("productSelect",i)},{"../../":83}],71:[function(e,t,n){"use strict";function r(e,t,n,r,i){function a(){return n.selected.tag}n.options={all:{label:r.getString("All"),tag:null},1:{label:r.getString("Very Low"),tag:r.getString("Risk of Change: Very Low")},2:{label:r.getString("Low"),tag:r.getString("Risk of Change: Low")},3:{label:r.getString("Moderate"),tag:r.getString("Risk of Change: Moderate")},4:{label:r.getString("High"),tag:r.getString("Risk of Change: High")}},n.select=function(r){n.selected=n.options[r],e.search("riskOfChange",r),"All"===r&&delete e.search().riskOfChange,t.$broadcast(i.filters.tag,a(),i.filters.riskOfChangeSelect),t.$broadcast(i.filters.riskOfChangeSelect,r)},function(){var r=e.search().riskOfChange||"all";n.selected=n.options[r],t.$broadcast(i.filters.tag,a(),i.filters.riskOfChangeSelect)}(),n.$on(i.filters.reset,function(){n.select("all")}),n.$on(i.filters.removeTag,function(e,r){r===i.filters.riskOfChangeSelect&&(n.select("all"),t.$broadcast(r,"all"))})}function i(){return{templateUrl:"js/components/filterComponents/riskOfChangeSelect/riskOfChangeSelect.html",restrict:"E",controller:r,scope:{}}}r.$inject=["$location","$rootScope","$scope","gettextCatalog","Events"],e("../../").directive("riskOfChangeSelect",i)},{"../../":83}],72:[function(e,t,n){"use strict";function r(e,t,n,r,i,a){function o(){n.filterRuleStatus("all")}function s(){return i[n.showRuleStatus].tag}n.RuleStatusFilters=i,n.filterRuleStatus=function(i){n.showRuleStatus=i,a.setRuleStatus(i),a.doFilter(),"all"===i?e.search(r.filters.ruleStatus,null):e.search(r.filters.ruleStatus,n.showRuleStatus),t.$broadcast(r.filters.tag,s(),r.filters.ruleStatus),t.$broadcast(r.filters.ruleStatus,n.showRuleStatus)},n.$on(r.filters.reset,function(){o()}),n.$on(r.filters.removeTag,function(e,n){n===r.filters.ruleStatus&&(o(),t.$broadcast(n,"all"))}),function(){n.showRuleStatus=e.search()[r.filters.ruleStatus]?e.search()[r.filters.ruleStatus]:a.getRuleStatus(),t.$broadcast(r.filters.tag,s(),r.filters.ruleStatus)}()}function i(){return{templateUrl:"js/components/filterComponents/ruleStatusTriState/ruleStatusTriState.html",restrict:"E",replace:!0,controller:r}}r.$inject=["$location","$rootScope","$scope","Events","RuleStatusFilters","FilterService"],e("../../").directive("ruleStatusTriState",i)},{"../../":83}],73:[function(e,t,n){"use strict";function r(e,t,n,r){function i(){e.onSearch&&e.onSearch({model:e.model||""})}function a(){e.model="",i()}e.placeholder=e.placeholder||n.getString("Search…"),e.model=t.search().search_term||null,e.searching=function(){if(e.model&&e.model.length>0)return!0},e.resetSearch=function(){e.$broadcast(r.filters.reset)},e.keyPressed=function(t){13===t.keyCode&&(e.change.cancel&&e.change.cancel(),i())};var c=function(){if(e.throttle){var t=parseInt(e.throttle);if(isNaN(t))throw new Error("Unknown throttle value "+e.throttle);return t}return s}();e.change=0===c?i:o(function(t){return function(){var n=e.$root.$$phase;"$apply"===n||"$digest"===n?t():e.$apply(t)}}(i),c,{leading:!1,trailing:!0}),e.$on("group:change",a),e.$on(r.filters.reset,a)}function i(){return{templateUrl:"js/components/filterComponents/searchBox/searchBox.html",restrict:"E",replace:!0,controller:r,scope:{placeholder:"@",model:"=?ngModel",onSearch:"&?",throttle:"@",isFullLength:"="}}}r.$inject=["$scope","$location","gettextCatalog","Events"];var a=e("../../"),o=e("lodash/throttle"),s=500;a.directive("searchBox",i)},{"../../":83,"lodash/throttle":551}],74:[function(e,t,n){"use strict";function r(e,t,n,r,i,a,s,c){function l(){var t=a.find(function(t){return t.value===e.search()[i.filters.totalRisk]});return"All"===n.selected.value&&(t=null),t?t.tag:null}function u(e){a.map(function(e){return e.value}).forEach(function(t){t===e?c.setState("severityFilters"+t,!0):c.setState("severityFilters"+t,!1)})}function d(){var e=o(n.options,function(e){return"All"===e.value});n.select(e)}n.options=a,n.label="All",n.select=function(r){n.selected=r,n.label=r.label,u(r.value),s.doFilter(),"All"===n.selected.value?delete e.search()[i.filters.totalRisk]:e.search(i.filters.totalRisk,n.selected.value),t.$broadcast(i.filters.tag,l(),i.filters.totalRisk),t.$broadcast(i.filters.totalRisk,n.selected.value)},n.$on(i.filters.removeTag,function(e,n){n===i.filters.totalRisk&&(d(),t.$broadcast(n,"All"))}),n.$on(i.filters.reset,function(){d()}),function(){n.selected=o(n.options,function(t){return t.value===e.search()[i.filters.totalRisk]}),n.selected=n.selected?n.selected:o(n.options,function(e){return"All"===e.value}),n.label=n.selected.label,u(n.selected.value),t.$broadcast(i.filters.tag,l(),i.filters.totalRisk)}()}function i(){return{templateUrl:"js/components/filterComponents/totalRiskSelect/totalRiskSelect.html",restrict:"E",controller:r,scope:{},replace:!0}}r.$inject=["$location","$rootScope","$scope","gettextCatalog","Events","Severities","FilterService","MultiButtonService"];var a=e("../../"),o=e("lodash/find");a.directive("totalRiskSelect",i)},{"../../":83,"lodash/find":497}],75:[function(e,t,n){"use strict";function r(e){return function(t){return e.trustAsHtml(t)}}function i(){function e(e){return e.toString().toLowerCase().replace(/\b([a-z])/g,function(e){return e.toUpperCase()})}return function(t){var n=[];return t=void 0===t||null===t?"":t,Array.isArray(t)?(angular.forEach(t,function(t){n.push(e(t))}),n):e(t)}}function a(){return function(e,t,n){return e?e!==t||n?e===t&&n?"sort-desc":"":"sort-asc":""}}function o(){return function(e,t,n){var r=b(e,t);return n?r.reverse():r}}function s(){return function(e,t){return t=parseInt(t,10),e?e.slice(t):[]}}function c(){return function(e){return e?e.replace("Red Hat Enterprise Linux","RHEL"):e}}function l(){return function(e){return e=isNaN(e)?0:Math.max(0,Math.min(1,e)),{width:Math.round(100*e)+"%"}}}function u(){return function(e){return e.isCheckingIn?"text-success":"text-danger"}}function d(){return function(e,t,n){var r=M(e);return n&&(r=r.tz(n)),r.format(t)}}function p(e,t,n){function r(e){return e&&"string"!=typeof e&&(e=e.toString()),e&&e.toLowerCase().indexOf(n.toLowerCase())>-1}function i(e){return function(t){return r(t[e])}}function a(e,t){return function(n){return _(n[e],t).some(r)}}if(!t||!x(t))return[];if(!n)return t;var o=[i("maintenance_id"),i("name"),function(e){return null===e.name&&r("Unnamed plan")},function(t){return r(e("date")(t.start,"fullDate"))},a("systems","hostname"),a("systems","display_name"),a("rules","description"),a("rules","rule_id")],s=w(o);return t.filter(s)}function f(){return function(e){return M(e).fromNow()}}function h(e){return function(t){return e.getSystemDisplayName(t)}}function m(e){return e.forEach(function(e){return e.month=M(e.start).format("YYYY-MM")}),$(k(A(e,"month")),["0.month"],["desc"])}function g(e,t,n){for(var r=S(e,t),i=arguments.length,a=Array(i>3?i-3:0),o=3;o<i;o++)a[o-3]=arguments[o];return a.forEach(function(e){return n.$on(e,function(){return r.cache.clear()})}),r}h.$inject=["Utils"],r.$inject=["$sce"];var v=e("../"),b=e("lodash/sortBy"),y=e("lodash/isEmpty"),x=e("lodash/isArray"),M=e("moment-timezone"),_=e("lodash/map"),w=e("lodash/overSome"),A=e("lodash/groupBy"),S=e("lodash/memoize"),k=e("lodash/values"),$=e("lodash/orderBy"),T=e("lodash/partial");v.filter("trust_html",r),v.filter("titlecase",i),v.filter("sortClass",a),v.filter("productShortName",c),v.filter("orderObjectBy",o),v.filter("offset",s),v.filter("toWidth",l),v.filter("checkInStyle",u),v.filter("moment",d),v.filter("getSystemDisplayName",h),v.filter("isEmpty",function(){return y}),v.filter("timeAgo",f),v.filter("searchMaintenancePlans",["$filter","$rootScope","Events",function(e,t,n){return g(T(p,e),function(e,t){return t+"|"+_(e,"maintenance_id").join(",")},t,n.planner.plansLoaded)}]),v.filter("groupPlans",["$rootScope","Events",function(e,t){return g(m,function(e){return _(e,function(e){return e.maintenance_id+":"+e.start}).join(",")},e,t.planner.plansLoaded)}])},{"../":83,"lodash/groupBy":503,"lodash/isArray":509,"lodash/isEmpty":513,"lodash/map":527,"lodash/memoize":530,"lodash/orderBy":534,"lodash/overSome":535,"lodash/partial":536,"lodash/sortBy":545,"lodash/values":559,"moment-timezone":562}],76:[function(e,t,n){"use strict";function r(e,t){o.getString=function(n){return n+" "+e.difference+" "+t.getString("points")},o.init=function(){return e.current<250&&(e.current=250),e.current>850&&(e.current=850),(e.difference>600||e.difference<-600)&&(e.difference=0),e.rotate=.3*(e.current-250),e.difference>0?(e.diffClass="increase",void(e.tooltip=o.getString(t.getString("Your score has increased by")))):e.difference<0?(e.diffClass="decrease",void(e.tooltip=o.getString(t.getString("Your score has decreased by")))):0===e.difference?(e.diffClass=null,void(e.tooltip=t.getString("Your score has not changed"))):void 0},e.$watch("current",o.init),e.$watch("difference",o.init)}function i(){return{templateUrl:"js/components/gaugeMarker/gaugeMarker.html",restrict:"E",controller:r,replace:!0,scope:{current:"<",difference:"<"}}}r.$inject=["$scope","gettextCatalog"];var a=e("../"),o={};a.directive("gaugeMarker",i)},{"../":83}],77:[function(e,t,n){"use strict";function r(){return{templateUrl:"js/components/gettingStartedTabs/gettingStartedTabs.html",restrict:"ECA",replace:!0}}e("../").directive("gettingStartedTabs",r)},{"../":83}],78:[function(e,t,n){"use strict";function r(e,t,n,r,i,a,u,d,p,f,h){f.init(),n._groups=f.groups,n.groups=n._groups,n.group=f.current(),n.dropdown=!1,n.searching=!1,n.resetFilter=function(){n.$broadcast(p.filters.reset)},n.hideSelectedGroup=function(e){return!n.group||!n.group.display_name||n.group.display_name!==e.display_name},n.showSelectedGroup=function(e){return!(!n.group||!n.group.display_name||n.group.display_name!==e.display_name)},n.showAllSystems=function(){return!(!n.group||!n.group.display_name||n.searching)},n.searchGroups=function(e){if(n.searching=!0,e){var t=e.toLowerCase();n.groups=s(n._groups,function(e){return e.display_name.toLowerCase().indexOf(t)>-1})}else n.groups=n._groups,n.searching=!1},n.triggerChange=function(e){d.localStorage.setItem(l,e,!0),f.setCurrent(e)},e.$on("group:change",function(e,t){n.group=t}),n.$on("account:change",function(){n.triggerChange(null)}),n.isGroupSelected=function(){return!o(n.group)},n.$on(p.filters.reset,function(){n.group=f.current(),n.groups=n._groups}),n.createGroup=function(){h.createGroup().then(function(e){var t=a.getString("Use <strong>Actions</strong> dropdown in the inventory to add systems to the <code>{{name}}</code> group",{name:c(e.display_name)});return u({title:a.getString("Group created"),confirmButtonText:a.getString("OK"),type:"info",html:t,showCancelButton:!1})}).then(function(){"app.inventory"!==r.current.name&&r.go("app.inventory")})},n.toggleDropdown=function(){n.dropdown=!n.dropdown},n.keypress=function(e){27===e.which&&(n.$broadcast(p.filters.reset),n.dropdown&&(n.dropdown=!1,angular.element(document.getElementById("global-filter-dropdown")).removeClass("open")))},n.deleteGroup=h.deleteGroup,function(){var e=d.localStorage.getItem(l,!0);e&&e.id&&n.triggerChange(e)}()}function i(){return{templateUrl:"js/components/groupSelect/groupSelect.html",restrict:"E",replace:!0,controller:r,scope:{round:"=",disabled:"<"}}}r.$inject=["$rootScope","$q","$scope","$state","$timeout","gettextCatalog","sweetAlert","Utils","Events","Group","GroupService"];var a=e("../"),o=e("lodash/isEmpty"),s=e("lodash/filter"),c=e("lodash/escape"),l="insights:groupStash";a.directive("groupSelect",i)},{"../":83,"lodash/escape":494,"lodash/filter":496,"lodash/isEmpty":513}],79:[function(e,t,n){"use strict";function r(e,t,n,r){t.tooltip=n.getString("This is an incident. An incident means that this has already occurred."),r.init().then(function(){t.isIncident=r.isIncident(t.ruleId)&&e.isBeta})}function i(){return{templateUrl:"js/components/incident/incidentIcon/incidentIcon.html",restrict:"E",replace:!0,controller:r,scope:{ruleId:"="}}}r.$inject=["$rootScope","$scope","gettextCatalog","IncidentsService"],e("../../").directive("incidentIcon",i)},{"../../":83}],80:[function(e,t,n){"use strict";function r(e,t,n){function r(){t.loading=!0,i().finally(function(){return t.loading=!1})}function i(){return n.init().then(function(){t.incidentCount=n.incidentRulesWithHitsCount})}r(),t.$on("group:change",function(){r()})}function i(){return{controller:r,templateUrl:"js/components/incident/incidentLite/incidentLite.html",restrict:"E",replace:!1}}r.$inject=["$q","$scope","IncidentsService"],e("../../").directive("incidentLite",i)},{"../../":83}],81:[function(e,t,n){"use strict";function r(){return{templateUrl:"js/components/incident/incidentSummary/incidentSummary.html",restrict:"E",scope:{incidentCount:"<",incidentSystemCount:"<",ruleHits:"<"}}}e("../../").directive("incidentSummary",r)},{"../../":83}],82:[function(e,t,n){"use strict";function r(){return{restrict:"A",link:function(e,t,n){e.$watch(n.ngIndeterminate,function(e){t.prop("indeterminate",!!e)})}}}e("../").directive("ngIndeterminate",r)},{"../":83}],83:[function(e,t,n){"use strict";t.exports=angular.module("insights.components",[]),function(){var t=e("./index.js");t.accountSelect={"accountSelect.directive":e("./accountSelect/accountSelect.directive.js")},t.actionbar={"actionbar.directive":e("./actionbar/actionbar.directive.js")},t.actions={actionsBack:{"actionsBack.directive":e("./actions/actionsBack/actionsBack.directive.js")},actionsBreadcrumbs:{"actionsBreadcrumbs.directive":e("./actions/actionsBreadcrumbs/actionsBreadcrumbs.directive.js")},actionsRule:{"actionsRule.controller":e("./actions/actionsRule/actionsRule.controller.js")},actionsRuleFilters:{"actionsRuleFilters.controller":e("./actions/actionsRuleFilters/actionsRuleFilters.controller.js")},severitySummary:{"severitySummary.directive":e("./actions/severitySummary/severitySummary.directive.js")},systemSummary:{"systemSummary.directive":e("./actions/systemSummary/systemSummary.directive.js")}},t.announcements={announcementsScroll:{"announcementsScroll.directive":e("./announcements/announcementsScroll/announcementsScroll.directive.js")}},t.ansibleIcon={"ansibleIcon.directive":e("./ansibleIcon/ansibleIcon.directive.js")},t.betaSwitchButton={"betaSwitchButton.directive":e("./betaSwitchButton/betaSwitchButton.directive.js")},t.bullhorn={"bullhorn.directive":e("./bullhorn/bullhorn.directive.js")},t.buttons={"button-split":{"button-split.directive":e("./buttons/button-split/button-split.directive.js")}},t.card={"card.directive":e("./card/card.directive.js"),systemCard:{"systemCard.directive":e("./card/systemCard/systemCard.directive.js")}},t.categoryIcon={"categoryIcon.directive":e("./categoryIcon/categoryIcon.directive.js")},t.config={dev:{"dev.directive":e("./config/dev/dev.directive.js")},messaging:{"messaging.directive":e("./config/messaging/messaging.directive.js")},permissions:{"permissions.directive":e("./config/permissions/permissions.directive.js")},settings:{"settings.directive":e("./config/settings/settings.directive.js")},webhooks:{"webhooks.directive":e("./config/webhooks/webhooks.directive.js")}},t["content-info"]={"content-info.directive":e("./content-info/content-info.directive.js")},t.demoAccountSwitcher={"demoAccountSwitcher.directive":e("./demoAccountSwitcher/demoAccountSwitcher.directive.js")},t.digest={"digestGraph.directive":e("./digest/digestGraph.directive.js")},t.escKey={"escKey.directive":e("./escKey/escKey.directive.js")},t.expandAllButton={"expandAllButton.directive":e("./expandAllButton/expandAllButton.directive.js")},t.feedback={"feedbackButton.directive":e("./feedback/feedbackButton.directive.js"),"feedbackModal.directive":e("./feedback/feedbackModal.directive.js")},t.filterComponents={actionsSelect:{"actionsSelect.directive":e("./filterComponents/actionsSelect/actionsSelect.directive.js")},ageSelect:{"ageSelect.directive":e("./filterComponents/ageSelect/ageSelect.directive.js")},ansibleSupportTriState:{"ansibleSupportTriState.controller":e("./filterComponents/ansibleSupportTriState/ansibleSupportTriState.controller.js")},categorySelect:{"categorySelect.directive":e("./filterComponents/categorySelect/categorySelect.directive.js")},checkInSelect:{"checkInSelect.directive":e("./filterComponents/checkInSelect/checkInSelect.directive.js")},filterButton:{"filterButton.directive":e("./filterComponents/filterButton/filterButton.directive.js")},hideIgnoredToggle:{"hideIgnoredToggle.directive":e("./filterComponents/hideIgnoredToggle/hideIgnoredToggle.directive.js")},impactSelect:{"impactSelect.directive":e("./filterComponents/impactSelect/impactSelect.directive.js")},incidentsTriState:{"incidentsTriState.controller":e("./filterComponents/incidentsTriState/incidentsTriState.controller.js")},likelihoodSelect:{"likelihoodSelect.directive":e("./filterComponents/likelihoodSelect/likelihoodSelect.directive.js")},productSelect:{"productSelect.directive":e("./filterComponents/productSelect/productSelect.directive.js")},riskOfChangeSelect:{"riskOfChangeSelect.directive":e("./filterComponents/riskOfChangeSelect/riskOfChangeSelect.directive.js")},ruleStatusTriState:{"ruleStatusTriState.controller":e("./filterComponents/ruleStatusTriState/ruleStatusTriState.controller.js")},searchBox:{"searchBox.directive":e("./filterComponents/searchBox/searchBox.directive.js")},totalRiskSelect:{"totalRiskSelect.controller":e("./filterComponents/totalRiskSelect/totalRiskSelect.controller.js")}},t.filters={filters:e("./filters/filters.js")},t.gaugeMarker={"gaugeMarker.directive":e("./gaugeMarker/gaugeMarker.directive.js")},t.gettingStartedTabs={"gettingStartedTabs.directive":e("./gettingStartedTabs/gettingStartedTabs.directive.js")},t.groupSelect={"groupSelect.directive":e("./groupSelect/groupSelect.directive.js")},t.incident={incidentIcon:{"incidentIcon.directive":e("./incident/incidentIcon/incidentIcon.directive.js")},incidentLite:{"incidentLite.directive":e("./incident/incidentLite/incidentLite.directive.js")},incidentSummary:{"incidentSummary.directive":e("./incident/incidentSummary/incidentSummary.directive.js")}},t.indeterminate={"indeterminate.directive":e("./indeterminate/indeterminate.directive.js")},t.index=e("./index.js"),t.insightsTagline={"insightsTagline.directive":e("./insightsTagline/insightsTagline.directive.js")},t.inventory={inventoryActions:{"inventoryActions.directive":e("./inventory/inventoryActions/inventoryActions.directive.js")},inventoryFilters:{"inventoryFilters.directive":e("./inventory/inventoryFilters/inventoryFilters.directive.js")},system:{"system.directive":e("./inventory/system/system.directive.js")}},t.linkGroup={"linkGroup.directive":e("./linkGroup/linkGroup.directive.js")},t.listType={"listType.directive":e("./listType/listType.directive.js")},t.maintenance={expandableSystemList:{expandableSystemList:e("./maintenance/expandableSystemList/expandableSystemList.js")},maintenanceCategorySelect:{"maintenanceCategorySelect.directive":e("./maintenance/maintenanceCategorySelect/maintenanceCategorySelect.directive.js")},maintenanceModal:{"maintenanceModal.directive":e("./maintenance/maintenanceModal/maintenanceModal.directive.js")},maintenancePlan:{"maintenancePlan.directive":e("./maintenance/maintenancePlan/maintenancePlan.directive.js")},maintenanceTable:{"maintenanceTable.controller":e("./maintenance/maintenanceTable/maintenanceTable.controller.js"),"maintenanceTable.directive":e("./maintenance/maintenanceTable/maintenanceTable.directive.js"),"maintenanceTableFooter.directive":e("./maintenance/maintenanceTable/maintenanceTableFooter.directive.js")},planList:{"planList.directive":e("./maintenance/planList/planList.directive.js")},resolutionModal:{"resolutionModal.controller":e("./maintenance/resolutionModal/resolutionModal.controller.js")}},t.misc={trimmedText:{"trimmedText.directive":e("./misc/trimmedText/trimmedText.directive.js")}},t.mitigationTrend={"mitigationTrend.directive":e("./mitigationTrend/mitigationTrend.directive.js")},t.namespace={"namespace.directive":e("./namespace/namespace.directive.js")},t.notifications={"notifications.directive":e("./notifications/notifications.directive.js")},t.overview={articleModal:{articleModal:e("./overview/articleModal/articleModal.js")},widgets:{goals:{goalsBar:{"goalsBar.directive":e("./overview/widgets/goals/goalsBar/goalsBar.directive.js")},goalsGauge:{"goalsGauge.directive":e("./overview/widgets/goals/goalsGauge/goalsGauge.directive.js")},"goalsLite.directive":e("./overview/widgets/goals/goalsLite.directive.js")},handcraftedContent:{"handcraftedContent.directive":e("./overview/widgets/handcraftedContent/handcraftedContent.directive.js")},highPrio:{"highPrio.directive":e("./overview/widgets/highPrio/highPrio.directive.js")},maintenancePlanLite:{"maintenancePlanLite.directive":e("./overview/widgets/maintenancePlanLite/maintenancePlanLite.directive.js"),maintenancePlanLiteTable:{"maintenancePlanLiteTable.directive":e("./overview/widgets/maintenancePlanLite/maintenancePlanLiteTable/maintenancePlanLiteTable.directive.js")}},newRules:{"newRules.directive":e("./overview/widgets/newRules/newRules.directive.js")},newSystems:{"newSystems.directive":e("./overview/widgets/newSystems/newSystems.directive.js")}}},t.pageHeader={"pageHeader.directive":e("./pageHeader/pageHeader.directive.js")},t.platformFilter={"platformFilter.directive":e("./platformFilter/platformFilter.directive.js")},t.policies={policiesModal:{"policiesModal.directive":e("./policies/policiesModal/policiesModal.directive.js")}},t["primary-nav"]={"primary-nav.directive":e("./primary-nav/primary-nav.directive.js")},t.recommendedKbase={"recommendedKbase.directive":e("./recommendedKbase/recommendedKbase.directive.js")},t.relativeHash={"relativeHash.directive":e("./relativeHash/relativeHash.directive.js")},t.renameableProperty={"renameableProperty.directive":e("./renameableProperty/renameableProperty.directive.js")},t.rhDonut={"rhDonut.directive":e("./rhDonut/rhDonut.directive.js")},t.riskOfChange={"riskOfChange.directive":e("./riskOfChange/riskOfChange.directive.js")},t.rule={ruleBreadcrumb:{"ruleBreadcrumb.directive":e("./rule/ruleBreadcrumb/ruleBreadcrumb.directive.js")},ruleFilter:{"ruleFilter.directive":e("./rule/ruleFilter/ruleFilter.directive.js")},ruleGroupCard:{"ruleGroupCard.directive":e("./rule/ruleGroupCard/ruleGroupCard.directive.js")},ruleListSimple:{"ruleListSimple.directive":e("./rule/ruleListSimple/ruleListSimple.directive.js")},ruleReason:{"ruleReason.directive":e("./rule/ruleReason/ruleReason.directive.js")},ruleResolution:{"ruleResolution.directive":e("./rule/ruleResolution/ruleResolution.directive.js")},ruleSummaries:{"ruleSummaries.directive":e("./rule/ruleSummaries/ruleSummaries.directive.js")},ruleSummary:{"ruleSummary.directive":e("./rule/ruleSummary/ruleSummary.directive.js")},ruleToggle:{"ruleToggle.directive":e("./rule/ruleToggle/ruleToggle.directive.js")}},t.ruleStateIcon={"ruleStateIcon.directive":e("./ruleStateIcon/ruleStateIcon.directive.js")},t.severityIcon={"allSeverityIcons.directive":e("./severityIcon/allSeverityIcons.directive.js"),"severityIcon.directive":e("./severityIcon/severityIcon.directive.js")},t.simpleSelect={"simpleSelect.directive":e("./simpleSelect/simpleSelect.directive.js")},t.statusIcon={"statusIcon.directive":e("./statusIcon/statusIcon.directive.js")},t.stickyNav={"stickyNav.directive":e("./stickyNav/stickyNav.directive.js")},t.system={addSystemModal:{"addSystemModal.controller":e("./system/addSystemModal/addSystemModal.controller.js")},systemModal:{"systemModal.controller":e("./system/systemModal/systemModal.controller.js")},systemTable:{"systemTable.directive":e("./system/systemTable/systemTable.directive.js")}},t.systemMetadata={"systemMetadata.directive":e("./systemMetadata/systemMetadata.directive.js")},t.tableFilters={"tableFilters.controller":e("./tableFilters/tableFilters.controller.js")},t.targetBlank={"targetBlank.directive":e("./targetBlank/targetBlank.directive.js")},t.timeRange={"timeRange.directive":e("./timeRange/timeRange.directive.js")},t.topbar={alerts:{"alerts.directive":e("./topbar/alerts/alerts.directive.js")},"topbar.directive":e("./topbar/topbar.directive.js")},t.topics={otherTopic:{"otherTopic.directive":e("./topics/otherTopic/otherTopic.directive.js")},topicAdminHelpBar:{"topicAdminHelpBar.directive":e("./topics/topicAdminHelpBar/topicAdminHelpBar.directive.js")},topicDetails:{"topicDetails.directive":e("./topics/topicDetails/topicDetails.directive.js")},topicPreviewModal:{topicPreviewModal:e("./topics/topicPreviewModal/topicPreviewModal.js")},topicRuleFilters:{"topicRuleFilters.controller":e("./topics/topicRuleFilters/topicRuleFilters.controller.js")},topicRuleList:{"topicRuleList.directive":e("./topics/topicRuleList/topicRuleList.directive.js")}},t.typeIcon={"typeIcon.directive":e("./typeIcon/typeIcon.directive.js")},t["ui-bootstrap-custom"]=e("./ui-bootstrap-custom.js"),t.userInfo={"userInfo.directive":e("./userInfo/userInfo.directive.js")},t.viewSystemGroups={"viewSystemGroups.directive":e("./viewSystemGroups/viewSystemGroups.directive.js")},t.webhooks={webhookStatusIcon:{"webhookStatusIcon.directive":e("./webhooks/webhookStatusIcon/webhookStatusIcon.directive.js")}},t.yesNo={"yesNo.directive":e("./yesNo/yesNo.directive.js")}}()},{"./accountSelect/accountSelect.directive.js":32,"./actionbar/actionbar.directive.js":33,"./actions/actionsBack/actionsBack.directive.js":34,"./actions/actionsBreadcrumbs/actionsBreadcrumbs.directive.js":35,"./actions/actionsRule/actionsRule.controller.js":36,"./actions/actionsRuleFilters/actionsRuleFilters.controller.js":37,"./actions/severitySummary/severitySummary.directive.js":38,"./actions/systemSummary/systemSummary.directive.js":39,"./announcements/announcementsScroll/announcementsScroll.directive.js":40,"./ansibleIcon/ansibleIcon.directive.js":41,"./betaSwitchButton/betaSwitchButton.directive.js":42,"./bullhorn/bullhorn.directive.js":43,"./buttons/button-split/button-split.directive.js":44,"./card/card.directive.js":45,"./card/systemCard/systemCard.directive.js":46,"./categoryIcon/categoryIcon.directive.js":47,"./config/dev/dev.directive.js":48,"./config/messaging/messaging.directive.js":49,"./config/permissions/permissions.directive.js":50,"./config/settings/settings.directive.js":51,"./config/webhooks/webhooks.directive.js":52,"./content-info/content-info.directive.js":53,"./demoAccountSwitcher/demoAccountSwitcher.directive.js":54,"./digest/digestGraph.directive.js":55,"./escKey/escKey.directive.js":56,"./expandAllButton/expandAllButton.directive.js":57,"./feedback/feedbackButton.directive.js":58,"./feedback/feedbackModal.directive.js":59,"./filterComponents/actionsSelect/actionsSelect.directive.js":60,"./filterComponents/ageSelect/ageSelect.directive.js":61,"./filterComponents/ansibleSupportTriState/ansibleSupportTriState.controller.js":62,"./filterComponents/categorySelect/categorySelect.directive.js":63,"./filterComponents/checkInSelect/checkInSelect.directive.js":64,"./filterComponents/filterButton/filterButton.directive.js":65,"./filterComponents/hideIgnoredToggle/hideIgnoredToggle.directive.js":66,"./filterComponents/impactSelect/impactSelect.directive.js":67,"./filterComponents/incidentsTriState/incidentsTriState.controller.js":68,"./filterComponents/likelihoodSelect/likelihoodSelect.directive.js":69,"./filterComponents/productSelect/productSelect.directive.js":70,"./filterComponents/riskOfChangeSelect/riskOfChangeSelect.directive.js":71,"./filterComponents/ruleStatusTriState/ruleStatusTriState.controller.js":72,"./filterComponents/searchBox/searchBox.directive.js":73,"./filterComponents/totalRiskSelect/totalRiskSelect.controller.js":74,"./filters/filters.js":75,"./gaugeMarker/gaugeMarker.directive.js":76,"./gettingStartedTabs/gettingStartedTabs.directive.js":77,"./groupSelect/groupSelect.directive.js":78,"./incident/incidentIcon/incidentIcon.directive.js":79,"./incident/incidentLite/incidentLite.directive.js":80,"./incident/incidentSummary/incidentSummary.directive.js":81,"./indeterminate/indeterminate.directive.js":82,"./index.js":83,"./insightsTagline/insightsTagline.directive.js":84,"./inventory/inventoryActions/inventoryActions.directive.js":85,"./inventory/inventoryFilters/inventoryFilters.directive.js":86,"./inventory/system/system.directive.js":87,"./linkGroup/linkGroup.directive.js":88,"./listType/listType.directive.js":89,"./maintenance/expandableSystemList/expandableSystemList.js":90,"./maintenance/maintenanceCategorySelect/maintenanceCategorySelect.directive.js":91,"./maintenance/maintenanceModal/maintenanceModal.directive.js":92,"./maintenance/maintenancePlan/maintenancePlan.directive.js":93,"./maintenance/maintenanceTable/maintenanceTable.controller.js":94,"./maintenance/maintenanceTable/maintenanceTable.directive.js":95,"./maintenance/maintenanceTable/maintenanceTableFooter.directive.js":96,"./maintenance/planList/planList.directive.js":97,"./maintenance/resolutionModal/resolutionModal.controller.js":98,"./misc/trimmedText/trimmedText.directive.js":99,"./mitigationTrend/mitigationTrend.directive.js":100,"./namespace/namespace.directive.js":101,"./notifications/notifications.directive.js":102,"./overview/articleModal/articleModal.js":103,"./overview/widgets/goals/goalsBar/goalsBar.directive.js":104,"./overview/widgets/goals/goalsGauge/goalsGauge.directive.js":105,"./overview/widgets/goals/goalsLite.directive.js":106,"./overview/widgets/handcraftedContent/handcraftedContent.directive.js":107,"./overview/widgets/highPrio/highPrio.directive.js":108,"./overview/widgets/maintenancePlanLite/maintenancePlanLite.directive.js":109,"./overview/widgets/maintenancePlanLite/maintenancePlanLiteTable/maintenancePlanLiteTable.directive.js":110,"./overview/widgets/newRules/newRules.directive.js":111,"./overview/widgets/newSystems/newSystems.directive.js":112,
4"./pageHeader/pageHeader.directive.js":113,"./platformFilter/platformFilter.directive.js":114,"./policies/policiesModal/policiesModal.directive.js":115,"./primary-nav/primary-nav.directive.js":116,"./recommendedKbase/recommendedKbase.directive.js":117,"./relativeHash/relativeHash.directive.js":118,"./renameableProperty/renameableProperty.directive.js":119,"./rhDonut/rhDonut.directive.js":120,"./riskOfChange/riskOfChange.directive.js":121,"./rule/ruleBreadcrumb/ruleBreadcrumb.directive.js":122,"./rule/ruleFilter/ruleFilter.directive.js":123,"./rule/ruleGroupCard/ruleGroupCard.directive.js":124,"./rule/ruleListSimple/ruleListSimple.directive.js":125,"./rule/ruleReason/ruleReason.directive.js":126,"./rule/ruleResolution/ruleResolution.directive.js":127,"./rule/ruleSummaries/ruleSummaries.directive.js":128,"./rule/ruleSummary/ruleSummary.directive.js":129,"./rule/ruleToggle/ruleToggle.directive.js":130,"./ruleStateIcon/ruleStateIcon.directive.js":131,"./severityIcon/allSeverityIcons.directive.js":132,"./severityIcon/severityIcon.directive.js":133,"./simpleSelect/simpleSelect.directive.js":134,"./statusIcon/statusIcon.directive.js":135,"./stickyNav/stickyNav.directive.js":136,"./system/addSystemModal/addSystemModal.controller.js":137,"./system/systemModal/systemModal.controller.js":138,"./system/systemTable/systemTable.directive.js":139,"./systemMetadata/systemMetadata.directive.js":140,"./tableFilters/tableFilters.controller.js":141,"./targetBlank/targetBlank.directive.js":142,"./timeRange/timeRange.directive.js":143,"./topbar/alerts/alerts.directive.js":144,"./topbar/topbar.directive.js":145,"./topics/otherTopic/otherTopic.directive.js":146,"./topics/topicAdminHelpBar/topicAdminHelpBar.directive.js":147,"./topics/topicDetails/topicDetails.directive.js":148,"./topics/topicPreviewModal/topicPreviewModal.js":149,"./topics/topicRuleFilters/topicRuleFilters.controller.js":150,"./topics/topicRuleList/topicRuleList.directive.js":151,"./typeIcon/typeIcon.directive.js":152,"./ui-bootstrap-custom.js":153,"./userInfo/userInfo.directive.js":154,"./viewSystemGroups/viewSystemGroups.directive.js":155,"./webhooks/webhookStatusIcon/webhookStatusIcon.directive.js":156,"./yesNo/yesNo.directive.js":157}],84:[function(e,t,n){"use strict";function r(){return{templateUrl:"js/components/insightsTagline/insightsTagline.html",restrict:"EC",replace:!0}}e("../").directive("insightsTagline",r)},{"../":83}],85:[function(e,t,n){"use strict";function r(e,t,n,r,i,a,d,p,f,h,m,g,v,b){e.listTypes=m.types(),e.listType=m.getType,e.config=g,e.plans=a.plans,e.getSortLabel=function(t){return o(e.sortItems,{field:t}).label},e.$watch("checkboxes.items",function(){e.systemsToAction().length&&!e.isUnregistrableSelected()?e.unregisterButtonTooltip=p.getString("Selected systems cannot be unregistered alone. Remove their respective deployment."):e.unregisterButtonTooltip=null},!0),e.doUnregisterSelected=function(){function t(){i.unregisterSelectedSystems(a[0])}var r=e.systemsToAction(),a=s(r,e.canUnregisterSystem);if(a[1].length){var o=c(a[1],"system_type_id");o=l(o,function(e){var t=e[0];return{name:h[t.product_code].roles[t.role].fullName,count:e.length}}),f.renderTemplate(u,{roles:o,validCount:a[0].length}).then(function(e){var t={title:p.getPlural(a[1].length,"1 system cannot be unregistered","{{count}} systems cannot be unregistered",{count:a[1].length}),html:e};return n(t)}).then(t)}else t()},e.isUnregistrableSelected=function(){return e.systemsToAction().filter(e.canUnregisterSystem).length>0},e.isFixableSelected=function(){return e.systemsToAction().some(function(e){return e.report_count})},e.sortItems=[{field:"toString",label:p.getString("Name")},{field:"created_at",label:p.getString("Registration Date")},{field:"last_check_in",label:p.getString("Last Check In")},{field:"report_count",label:p.getString("Number of Actions")},{field:"system_type_id",label:p.getString("Type")}],e.sortLabel="Hostname",e.addToPlan=function(t){var n=e.systemsToAction();n.length&&a.showMaintenanceModal(n,null,t)},e.systemsToAction=function(){return e.reallyAllSelected?e.allSystems.filter(function(t){return!e.checkboxes.items.hasOwnProperty(t.system_id)||e.checkboxes.items.hasOwnProperty(t.system_id)&&!0===e.checkboxes.items[t.system_id]}):e.checkboxes.getSelected(e.systems)},e.removeFromGroup=function(){v.removeSystems(v.current(),l(e.systemsToAction(),"system_id")).then(e.reloadInventory)},e.groupSystems=b.groupSystems}function i(){return{templateUrl:"js/components/inventory/inventoryActions/inventoryActions.html",restrict:"E",replace:!0,controller:r}}r.$inject=["$scope","$rootScope","sweetAlert","FilterService","SystemsService","MaintenanceService","$timeout","gettextCatalog","TemplateService","Products","ListTypeService","InsightsConfig","Group","GroupService"];var a=e("../../"),o=e("lodash/find"),s=e("lodash/partition"),c=e("lodash/groupBy"),l=e("lodash/map"),u="js/components/inventory/inventoryActions/unregisterConflict.html";a.directive("inventoryActions",i)},{"../../":83,"lodash/find":497,"lodash/groupBy":503,"lodash/map":527,"lodash/partition":537}],86:[function(e,t,n){"use strict";function r(){return{templateUrl:"js/components/inventory/inventoryFilters/inventoryFilters.html",restrict:"E",replace:!0}}e("../../").directive("inventoryFilters",r)},{"../../":83}],87:[function(e,t,n){"use strict";function r(){}function i(){return{templateUrl:"js/components/inventory/system/system.html",restrict:"E",replace:!0,controller:r}}e("../../").directive("system",i)},{"../../":83}],88:[function(e,t,n){"use strict";function r(e,t,n,r){e.collapsed=!0,e.toggleCollapsed=function(){e.collapsed=!e.collapsed},e.hasReports=function(){var t=!1;return e.group.forEach(function(e){e.report_count>0&&!t&&(t=!0)}),t},r.getSystemTypeAsync(e.typeid).then(function(t){var n="";t&&(n=e.group.length+" "+t.displayName,1!==e.group.length&&(n+="s")),e.linkGroupText=n}),e.getLinkReportCount=function(e){var t=e.report_count,n="";return void 0!==t&&null!==t&&(n=t+" Action",1!==t&&(n+="s")),n},e.getLinkStatus=function(e){return e.report_count>0?'["fa-exclamation-circle", "fail"]':'["fa-check-circle", "success"]'},e.getLinkName=function(e){return void 0!==e.display_name&&null!==e.display_name&&""!==e.display_name?e.display_name:e.hostname},e.goToSystem=function(e){n.showSystemModal(e)}}function i(){return{templateUrl:"js/components/linkGroup/linkGroup.html",restrict:"E",controller:r,scope:{group:"=",typeid:"="}}}r.$inject=["$scope","$state","InventoryService","SystemsService"],e("../").directive("linkGroup",i)},{"../":83}],89:[function(e,t,n){"use strict";function r(e,t){e.setListType=t.setType,e.getListType=t.getType,e.listTypes=t.types()}function i(){return{templateUrl:"js/components/listType/listType.html",restrict:"E",replace:!0,transclude:!0,controller:r}}r.$inject=["$scope","ListTypeService"],e("../").directive("listType",i)},{"../":83}],90:[function(e,t,n){"use strict";function r(e,t,n){e.toggle=function(){e.limit=e.limit?void 0:3},e.toggle(),e.InventoryService=n}function i(){return{templateUrl:"js/components/maintenance/expandableSystemList/expandableSystemList.html",restrict:"E",controller:r,replace:!0,scope:{systems:"<"}}}r.$inject=["$scope","gettextCatalog","InventoryService"],e("../../").directive("expandableSystemList",i)},{"../../":83}],91:[function(e,t,n){"use strict";function r(e,t,n,r,i,a,s){function c(e){return e.tag}r.options=[{id:"all",label:i.getString("All"),tag:null},{id:"suggested",label:i.getString("Suggestions"),tag:i.getString("Maintenance: Suggestions")},{id:"past",label:i.getString("Past plans"),tag:i.getString("Maintenance: Past plans")},{id:"unscheduled",label:i.getString("Not scheduled plans"),tag:i.getString("Maintenance: Not scheduled plans")},{id:"future",label:i.getString("Future plans"),tag:i.getString("Maintenance: Future plans")}],r.plans=s.plans,r.select=function(t){t&&t.id&&(r.selected=t,"all"===t.id?e.search("maintenanceCategory",null):e.search("maintenanceCategory",t.id),r.onSelect({category:t.id}),n.$broadcast(a.filters.tag,c(t),a.filters.maintenanceCategorySelect))},r.$on(a.filters.reset,function(){r.select(o(r.options,{id:"all"}))}),r.$on(a.filters.removeTag,function(e,t){t===a.filters.maintenanceCategorySelect&&r.select(o(r.options,{id:"all"}))}),r.select(o(r.options,{id:r.category}))}function i(){return{templateUrl:"js/components/maintenance/maintenanceCategorySelect/maintenanceCategorySelect.html",restrict:"E",controller:r,replace:!0,scope:{category:"=",onSelect:"&"}}}r.$inject=["$location","$timeout","$rootScope","$scope","gettextCatalog","Events","MaintenanceService"];var a=e("../../"),o=e("lodash/find");a.directive("maintenanceCategorySelect",i)},{"../../":83,"lodash/find":497}],92:[function(e,t,n){"use strict";function r(e,t,n,r,i,a,f,h,m,g,v,b,y,x,M,_,w,A,S){function k(){e.plan=e.newPlan?{}:e.selected.plan,e.mode===p.multi?e.tableParams=C():e.tableParams=T(),e.$broadcast(A.planner.reloadTable)}function $(e,t){var n=e.getAvailableActions;e.getAvailableActions=function(){return n.call(e).then(function(e){return e.forEach(function(e){e.selected=t(e)}),e})}}function T(){e.noActions=!1;var t=null;if(e.mode===p.system){var n=e.selected.system;!e.newPlan&&e.selected.plan&&e.selected.plan.systems&&(n=o(e.selected.plan.systems,{system_id:n.system_id})||n),t=a.actionTableParams(n,e.getPlan(),n.actions,e.loader),r&&$(t,function(e){return e.rule.rule_id===r.rule_id})}else if(e.mode===p.rule){var c=r;!e.newPlan&&e.selected.plan&&e.selected.plan.rules&&(c=o(e.selected.plan.rules,{id:r.rule_id})||c),t=a.systemTableParams(c,e.getPlan(),c.actions,e.loader);var l=s(i,"system_id"),d=t.getAvailableActions;t.getAvailableActions=function(){return d.call(t).then(function(e){return e.filter(function(e){return e.system.system_id in l})})},$(t,u(!0)),t.getActions=u([])}var f=t.update;return t.update=function(n){return e.selected.plan&&!e.newPlan?a.promptResolutionIfNeeded(function(){return f.call(t,n)},e.selected.plan):a.promptResolutionIfNeeded(function(){return a.plans.create({name:e.newPlanAlias,add:n}).then(function(t){return e.selected.plan=t,t})})},t}function C(){var t=E();return{getActions:function(){return[]},getAvailableActions:function(){return t},implicitOrder:{predicate:"rule.severityNum",reverse:!0},save:function(t){var n=l(t,function(e){return e.systemIds?c(e.systemIds,function(t){return{system_id:t,rule_id:e.rule.rule_id}}):e.groupId?[{group_id:e.groupId,rule_id:e.rule.rule_id}]:[{rule_id:e.rule.rule_id}]}),r={name:e.newPlanAlias,add:n};return!e.newPlan&&e.selected.plan?a.promptResolutionIfNeeded(function(){return a.plans.update(e.selected.plan,r)},e.selected.plan):a.promptResolutionIfNeeded(function(){return a.plans.create(r).then(function(t){return e.selected.plan=t,t})})}}}function E(){if("preselected"===e.systemSelection){e.fixableSystems=e.systems.filter(function(e){return e.report_count>0});return z(c(e.fixableSystems,"system_id"))}if("all"===e.systemSelection)return _.getRulesWithHits().then(function(t){return e.noActions=0===t.data.resources.length,c(t.data.resources,O())});if("group"===e.systemSelection){if(!e.selected.group||!e.selected.group.id)throw new Error("No group selected");return _.getRulesWithHits(e.selected.group.id).then(function(t){return e.noActions=0===t.data.resources.length,c(t.data.resources,O(null,e.selected.group.id))})}throw new Error("Unexpected systemSelection value: "+e.systemSelection)}function O(e,t){return function(n){var r={id:n.rule_id,display:n.description,mid:n.rule_id,rule:n,done:!1};return e&&(r.systemIds=e),t&&(r.groupId=t),r}}function z(t){return 0===t.length?(e.noActions=!0,b.resolve([])):M.create(null,t).then(function(n){return M.getRulesWithHits(n.data.hash).then(function(n){return e.noActions=0===n.data.resources.length,c(n.data.resources,O(t))})})}if(e.MODES=p,e.tableEdit=!0,e.selected={},e.plans=a.plans,e.loader=new h.Loader,e.loadingSystems=!1,e.rule=r,e.systems=i,e.Group=w,e.config=S,angular.isObject(x)?(e.newPlan=!1,a.plans.load().then(function(){e.selected.plan=o(a.plans.all,{maintenance_id:x.maintenance_id})})):e.newPlan=!0!==x,i&&1===i.length&&(e.selected.system=i[0]),!r&&i)1===i.length?(i=!1,e.mode=p.system,e.systemSelection="system"):(e.mode=p.multi,e.systemSelection="preselected");else if(r&&i)e.mode=p.rule,e.systemSelection="preselected";else{if(r||i)throw new Error("Invalid parameters "+r+", "+i);e.mode=p.multi,e.systemSelection="all"}w.groups.length&&S.isGroupsEnabled&&(w.current().id?(e.systemSelection="group",e.selected.group=w.current()):e.selected.group=d(w.groups,["display_name","id"])[0]),e.getPlan=function(){return!e.newPlan&&e.selected.plan?e.selected.plan:{}},e.$watchGroup(["selected.plan","newPlan","selected.group","selected.system"],k),e.systemSelectionChanged=function(t){if(e.systemSelection=t,"system"===t)return e.mode=p.system,e.tableParams=null,void(e.selected.system&&k());e.mode=p.multi,k()},e.close=function(){n.dismiss("close")},e.postSave=function(){n.close(),m.go("app.maintenance",{maintenance_id:e.selected.plan.maintenance_id})},e.$watch("plans.all",function(){a.plans.future&&(e.availablePlans=a.plans.future.concat(a.plans.unscheduled),!e.selected.plan&&e.availablePlans.length&&(e.selected.plan=e.availablePlans[0]))}),e.planGroupFn=function(e){return e.start?g.getString("Future plans"):g.getString("Not scheduled plans")},e.planOrderFn=function(e){return d(e,["items.length"])},e.getPlanName=function(e){return e.name&&e.name.length?e.name:g.getString("Unnamed plan")},e.searchSystems=function(t){var n={page_size:30,page:0,report_count:"gt0"};t&&t.length&&(n.search_term=t);var r=String(t);return e.loadingSystems=r,f.getSystemsLatest(n).then(function(t){e.availableSystems=t.data.resources}).finally(function(){e.loadingSystems===r&&(e.loadingSystems=!1)})},e.searchSystems().then(function(){e.availableSystems.length&&!e.selected.system&&(e.selected.system=d(e.availableSystems,["toString","system_id"])[0])}),a.plans.load(!1),v.suppressEscNavigation(n)}function i(){return{templateUrl:"js/components/maintenance/maintenanceModal/maintenanceModal.html",restrict:"E",controller:r,replace:!0}}r.$inject=["$scope","$rootScope","$modalInstance","rule","systems","MaintenanceService","System","Utils","$state","gettextCatalog","ModalUtils","$q","DataUtils","existingPlan","Subset","Rule","Group","Events","InsightsConfig"];var a=e("../../"),o=e("lodash/find"),s=e("lodash/keyBy"),c=e("lodash/map"),l=e("lodash/flatMap"),u=e("lodash/constant"),d=e("lodash/sortBy"),p={rule:"rule",system:"system",multi:"multi"};a.directive("maintenanceModal",i),a.controller("maintenanceModalCtrl",r)},{"../../":83,"lodash/constant":488,"lodash/find":497,"lodash/flatMap":499,"lodash/keyBy":523,"lodash/map":527,"lodash/sortBy":545}],93:[function(e,t,n){"use strict";function r(e,t,n,r){this.active=!1,this.plan=e,this.Maintenance=t,this.Utils=n,this.cb=r}function i(e,t,n,i,o,s,x,_,w,A,S,k,$,T,C,E,O,z){function L(e,t){return t?u(i.plan.rules,{id:e.rule_id}):u(i.plan.systems,{system_id:e.system_id})}function N(){i.error=null,i.ansibleSupport=f(i.plan.actions,"rule.ansible")}function P(e){i.edit.isActive(i.plan.maintenance_id)&&46===e.keyCode&&i.delete()}i.pager=new z.Pager(10),i.loader=new z.Loader,i.exportPlan=C.exportPlan,i.error=null,i.MaintenanceService=E,i.ansibleRunner=T.ansibleRunner,i.editDateTooltip=w.getString("Date, time and duration of a maintenance window can be defined here. If a maintenance window for this plan is set then Insights will verify that all the actions in this plan are resolved once the window ends. Insights will warn you this plan is not fully resolved when the maintenance window ends.");var I=w.getString("Current Group");i.editBasic=new r(i.plan,C,z,i.loader.bind(function(e,t,n,r,a){return i.plan.description=t,C.updatePlan(i.plan.maintenance_id,{name:e,description:t,start:n,end:r}).then(function(){a.active=!1,z.datesEqual(i.plan.end,r)&&z.datesEqual(i.plan.start,n)?(i.plan.name=e,a.plan=i.plan):i.loadPlans(!0).then(function(){i.scrollToPlan(i.plan.maintenance_id)})})})),i.removeActions=i.loader.bind(function(e){return E.plans.update(i.plan,{delete:l(e,"id")})}),i.silence=i.loader.bind(function(){i.plan.silenced=!0,C.silence(i.plan).then(function(){i.edit.isActive(i.plan.maintenance_id)&&i.edit.toggle(i.plan.maintenance_id)})}),i.delete=function(){A({text:w.getString("You will not be able to recover this maintenance plan")}).then(i.loader.bind(function(){return i.edit.deactivate(i.plan.maintenance_id),C.deletePlan(i.plan)}))},i.showSystemModal=E.showSystemModal,i.addSystem=new a(i),i.addRule=new a(i),i.systemTableParams=E.systemTableParams,i.actionTableParams=E.actionTableParams,i.tableParams=function(e,t,n){var r=L(e,t),a=r?r.actions:[],o=n?i.loader:void 0;return t?E.systemTableParams(r||e,i.plan,a,o):E.actionTableParams(r||e,i.plan,a,o)},i.minimize=function(){x(function(){i.error=null,i.edit.deactivate(i.plan.maintenance_id)})},i.export=function(){C.exportPlan(i.plan.maintenance_id)},i.downloadPlaybook=function(){i.ansibleSupport&&(i.selectTab&&i.selectTab("playbook"),C.downloadPlaybook(i.plan.maintenance_id).then(function(e){if(200===e.status){var t=e.headers("content-disposition"),n=p(t).filename.replace(/"/g,""),r=new Blob([e.data],{type:e.headers("content-type")});d.saveAs(r,n)}}))},i.runPlaybook=function(t){if(i.ansibleRunner)return i.ansibleRunner(e,i.plan.maintenance_id,t)},i.dateChanged=function(e,t,n){n&&i.editBasic.dateChanged(t)},i.minimize=function(){i.editBasic.active&&i.editBasic.toggle(),i.error=null,i.edit.deactivate(i.plan.maintenance_id)},i.$on("telemetry:esc",function(e){e.defaultPrevented||g.isVisible()||i.edit.isActive(i.plan.maintenance_id)&&!i.editBasic.active&&(i.error=null,i.edit.deactivate(i.plan.maintenance_id))}),i.update=i.loader.bind(function(e){return i.error=null,C.updatePlan(i.plan.maintenance_id,e)}),i.hidden=function(e){function t(){var t={hidden:e};i.plan.suggestion===C.SUGGESTION.REJECTED&&(t.suggestion=C.SUGGESTION.PROPOSED),i.update(t).then(function(){c(i.plan,t),n.$broadcast(k.planner.planChanged,i.plan.maintenance_id)})}e?t():A({text:w.getString("You are about to send a plan suggestion to the customer.")}).then(t)},i.accept=function(){var e={suggestion:C.SUGGESTION.ACCEPTED};i.update(e).then(function(){c(i.plan,e),n.$broadcast(k.planner.planChanged,i.plan.maintenance_id),i.scrollToPlan(i.plan.maintenance_id)})},i.reject=function(){var e={suggestion:C.SUGGESTION.REJECTED};i.update(e).then(function(){c(i.plan,e),i.plan.hidden=!0,n.$broadcast(k.planner.planChanged,i.plan.maintenance_id),E.plans.suggested.length||i.setCategory("unscheduled")})},i.isReadOnly=function(){return i.plan.isReadOnly()&&!i.isInternal},i.registerGroupChangeListener=function(e){var t=n.$on("group:change",function(){e.refreshItems&&e.refreshItems()});i.$on("$destroy",t)},i.groupBySystemType=function(e){var t=$.current();return void 0!==t.display_name&&u(t.systems,{system_id:e.system_id})?I+": "+t.display_name:h(O.getSystemTypeUnsafe(e.system_type_id),"displayName")},i.groupFilter=function(e){return m(e,[function(e){return!e.name.startsWith(I)},"name"])},i.$watch("plan.actions",N),i.playbookTabLoader=new z.Loader(!1),i.prepareAnsibleTab=i.playbookTabLoader.bind(function(){return O.getSystemTypesAsync().then(function(){return C.getPlayMetadata(i.plan.maintenance_id)}).then(function(e){i.plays=e.data,i.plays.forEach(function(e){e.systemType=O.getSystemTypeUnsafe(e.system_type_id),e.systems=l(v(i.plan.actions,function(t){return t.rule.rule_id===e.rule.rule_id&&t.system.system_type_id===e.system_type_id}),"system")}),i.systemsToReboot=y(b(v(i.plays,"ansible_resolutions[0].needs_reboot"),"systems"),"system_id")})}),i.setupTabActivator=function(e){e.$watch("tabs",function(e){e&&(i.selectTab=function(t,n){var r=M[t];void 0!==r&&(e[r].select(),n||i.tabSelected(t))})})},i.tabSelected=function(){i.tabSelected=function(e){o.transitionTo(o.current,{maintenance_id:s.maintenance_id,tab:e},{notify:!1,reload:!1,location:"replace"})},s.maintenance_id&&s.tab&&i.selectTab&&i.selectTab(s.tab,!0)},i.resolutionModal=function(e){return E.resolutionModal(i.plan,e,0,0).then(i.prepareAnsibleTab)},i.addActions=function(){return E.showMaintenanceModal(null,null,i.plan).then(i.prepareAnsibleTab)},i.allowRebootChanged=function(){return C.updatePlan(i.plan.maintenance_id,{allow_reboot:i.plan.allow_reboot})},_.on("keydown",P),i.$on("$destroy",function(){_.off("keydown",P)})}function a(e){var t=this;t.reset(),e.$watch("edit.isActive(plan.maintenance_id)",function(){t.reset()})}function o(e){function t(t,n){for(var r=e[0].getElementsByClassName(n),i=0;i<r.length;i++)if(r.item(i).contains(t.target))return!0}return{templateUrl:"js/components/maintenance/maintenancePlan/maintenancePlan.html",restrict:"E",controller:i,replace:!0,link:function(n,r){function i(i){if(!n.editBasic.active&&!(t(i,"modal")||t(i,"swal2-container")||t(i,"top-bar")||i.target.classList.contains("action")||i.target.parentElement&&i.target.parentElement.classList.contains("action"))){var a=r[0].contains(i.target),o=e[0].body.contains(i.target),s=n.edit.isActive(n.plan.maintenance_id);s&&e[0].getElementsByClassName("ui-select-choices-row").length||(!s&&a?n.edit.activate(n.plan.maintenance_id):o&&!t(i,"plan-wrap")&&Object.keys(n.edit.items).length&&n.edit.reset())}}e.on("click",i),n.$on("$destroy",function(){e.off("click",i)})}}}o.$inject=["$document"],i.$inject=["$location","$modal","$rootScope","$scope","$state","$stateParams","$timeout","$document","gettextCatalog","sweetAlert","DataUtils","Events","Group","InsightsConfig","Maintenance","MaintenanceService","SystemsService","Utils"];var s=e("../../"),c=e("lodash/assign"),l=e("lodash/map"),u=e("lodash/find"),d=e("file-saver"),p=e("parse-http-header"),f=e("lodash/some"),h=e("lodash/get"),m=e("lodash/sortBy"),g=e("sweetalert2"),v=e("lodash/filter"),b=e("lodash/flatMap"),y=e("lodash/uniqBy"),x=e("moment-timezone"),M={undefined:0,systems:1,playbook:2};r.prototype.init=function(){if(this.plan)if(this.name=this.plan.name,this.description=this.plan.description,this.plan.start){this.start=x(this.plan.start);var e=this.start;this.time=new Date(e.year(),e.month(),e.day(),e.hour(),e.minute()),this.duration=Math.round((this.plan.end-this.plan.start)/6e4)}else this.start=null,this.time=null,this.duration=null;else this.name="",this.description="",this.start=x().startOf("day"),this.dateChanged(this.start)},r.prototype.dateChanged=function(e){e&&!this.time&&(this.time=new Date(this.start.year(),this.start.month(),this.start.day(),22,0),this.duration=60,this.sync())},r.prototype.sync=function(){this.start&&this.time&&(this.start.hours(this.time.getHours()),this.start.minutes(this.time.getMinutes()))},r.prototype.toggle=function(){this.active||this.init(),this.active=!this.active},r.prototype.getStart=function(){return this.start?this.start.clone().toDate():null},r.prototype.getEnd=function(){return this.start?this.start.clone().add(Math.max(this.duration,1),"m").toDate():null},r.prototype.save=function(){if(this.sync(),this.cb)return this.cb(this.name,this.description,this.getStart(),this.getEnd(),this)},a.prototype.reset=function(){this.selected=null},s.directive("maintenancePlan",o)},{"../../":83,"file-saver":268,"lodash/assign":484,"lodash/filter":496,"lodash/find":497,"lodash/flatMap":499,"lodash/get":502,"lodash/map":527,"lodash/some":544,"lodash/sortBy":545,"lodash/uniqBy":557,"moment-timezone":562,"parse-http-header":567,sweetalert2:825}],94:[function(e,t,n){"use strict";function r(e,t,n,r,i,l,u){function d(){m.filter={},p()}function p(){e.item&&(m.params=e.paramsCallback(),m.savedActions=m.params.getActions(),e.checkboxes.items={},m.savedActions.forEach(function(t){e.checkboxes.items[t.id]=!0,angular.isDefined(t._type)||(t._type=r.MAINTENANCE_ACTION_TYPE.PLANNED)}),g())}function f(){m.orderedActions=t("orderBy")(m.filteredActions,["_type",m.sorter.reverse?"-"+m.sorter.predicate:m.sorter.predicate]),m.pager.reset(),m.page()}function h(){var t=m.actions.filter(function(t){return t._type!==r.MAINTENANCE_ACTION_TYPE.PLANNED&&e.checkboxes.isChecked(t.id)}),n=m.actions.filter(function(t){return t._type===r.MAINTENANCE_ACTION_TYPE.PLANNED&&!e.checkboxes.isChecked(t.id)});return m.params.save(t,n).then(function(){if(e.edit=!1,e.onSave)return e.onSave()})}var m=this;m.params=e.paramsCallback(),m.pager=new n.Pager,m.sorter=new n.Sorter(m.params.implicitOrder,f),m.showSystemModal=r.showSystemModal,m.loader=new n.Loader(!1),e.checkboxes=new n.Checkboxes,e.checkboxRowClick=function(t,n){e.edit&&e.checkboxes.rowClick(t,n)},e.checkboxUpdate=function(){e.checkboxes.update(m.filteredActions)},e.$watchCollection("checkboxes.items",e.checkboxUpdate),e.checkboxChecked=function(){if(e.checkboxes.checked){var t=s(m.filteredActions,"_type")[r.MAINTENANCE_ACTION_TYPE.PLANNED_ELSEWHERE];if(t)return i({title:l.getString("Select overlapping actions?"),text:l.getPlural(t,"This selection contains an action that is already part of another plan. Do you want to include this action?","This selection contains {{count}} actions that are already part of another plan. Do you want to include these actions?",{count:t}),cancelButtonText:l.getString("No")}).then(function(){return m.filteredActions}).catch(function(){return c(m.filteredActions,{_type:r.MAINTENANCE_ACTION_TYPE.PLANNED_ELSEWHERE})}).then(function(t){e.checkboxes.checkboxChecked(e.checkboxes.checked,t)})}e.checkboxes.checkboxChecked(e.checkboxes.checked,m.filteredActions)},e.$on(u.planner.reloadTable,d),e.$watchGroup(["item","edit"],d);var g=m.loader.bind(function(){if(m.actions=m.savedActions,m.doFilter(),e.edit)return m.params.getAvailableActions().then(function(t){var n=o(m.savedActions,"id");t=t.filter(function(e){return!(e.id in n)}),t.forEach(function(t){angular.isDefined(t._type)||(t._type=r.MAINTENANCE_ACTION_TYPE.AVAILABLE),t.selected&&(e.checkboxes.items[t.id]=!0)}),m.actions=m.savedActions.concat(t),m.doFilter()})});m.doFilter=function(){a(m.filter)?m.filteredActions=m.actions:m.filteredActions=t("filter")(m.actions,m.filter),e.checkboxUpdate(),f()},m.page=function(){m.pager.update();var e=t("offset")(m.orderedActions,m.pager.offset);e=t("limitTo")(e,m.pager.perPage),m.data=e},m.params.loader?m.save=m.params.loader.bind(h):m.save=m.loader.bind(h),m.cancel=function(){if(e.edit=!1,e.onCancel)return e.onCancel()}}r.$inject=["$scope","$filter","Utils","MaintenanceService","sweetAlert","gettextCatalog","Events"];var i=e("../../"),a=e("lodash/isEmpty"),o=e("lodash/keyBy"),s=e("lodash/countBy"),c=e("lodash/reject");i.controller("MaintenanceTableCtrl",r)},{"../../":83,"lodash/countBy":489,"lodash/isEmpty":513,"lodash/keyBy":523,"lodash/reject":542}],95:[function(e,t,n){"use strict";function r(e){return function(){return{restrict:"E",controller:"MaintenanceTableCtrl",controllerAs:"table",scope:{paramsCallback:"&params",edit:"=",item:"=",onSave:"&",onCancel:"&"},templateUrl:"js/components/maintenance/maintenanceTable/"+e,replace:!0}}}var i=e("../../");i.directive("maintenanceTableSystems",r("maintenanceTableSystems.html")),i.directive("maintenanceTableActions",r("maintenanceTableActions.html")),i.directive("maintenanceTableMulti",r("maintenanceTableMulti.html"))},{"../../":83}],96:[function(e,t,n){"use strict";e("../../").directive("maintenanceTableFooter",function(){return{restrict:"A",templateUrl:"js/components/maintenance/maintenanceTable/maintenanceTableFooter.html"}})},{"../../":83}],97:[function(e,t,n){"use strict";function r(e,t,n,r,i){function a(t){e.$parent.$watch(t,function(n){e[t]=n})}r.asyncCurrent(function(){e.isInternal=r.current.is_internal}),a("edit"),a("loadPlans"),a("scrollToPlan"),e.$watchCollection("plans",function(){e.pager.reset()}),t.$on(n.planner.openPlan,function(t,n){var r=s(e.plans,["start","maintenance_id"],["desc","desc"]),i=o(r,function(e){return e.maintenance_id.toString()===n});if(-1!==i){var a=Math.floor(i/e.pager.perPage)+1;a!==e.pager.currentPage&&(e.pager.currentPage=a,e.pager.update())}}),e.pager=new i.Pager(e.pageSize||c)}function i(){return{templateUrl:"js/components/maintenance/planList/planList.html",restrict:"E",controller:r,replace:!0,scope:{plans:"<",group:"<?",pageSize:"<?"}}}r.$inject=["$scope","$rootScope","Events","User","Utils"];var a=e("../../"),o=e("lodash/findIndex"),s=e("lodash/orderBy"),c=8;a.directive("planList",i)},{"../../":83,"lodash/findIndex":498,"lodash/orderBy":534}],98:[function(e,t,n){"use strict";function r(e,t,n,r,i,c){t.MINIMUM_NUMBER_OF_ITEMS=t.listLimit=5,t.params=c,t.selected={},i.getSystemTypeAsync(c.play.system_type_id).then(function(e){t.systemType=e}),t.systems=o(a(c.plan.actions,function(e){return e.rule.id===c.play.rule.rule_id&&e.system.system_type_id===c.play.system_type_id}),"system"),t.selected.resolutionType=c.play.ansible_resolutions[0].resolution_type,t.resolutions=s(c.play.ansible_resolutions,"resolution_type"),t.save=function(){n.saveResolutionPreference(c.plan.maintenance_id,c.play.rule.rule_id,c.play.system_type_id,t.selected.resolutionType).then(function(){e.close()})},t.range=function(e){return new Array(e)},t.cancel=function(){e.dismiss("close")},r.suppressEscNavigation(e)}r.$inject=["$modalInstance","$scope","Maintenance","ModalUtils","SystemsService","params"];var i=e("../../"),a=e("lodash/filter"),o=e("lodash/map"),s=e("lodash/sortBy");i.controller("ResolutionModal",r)},{"../../":83,"lodash/filter":496,"lodash/map":527,"lodash/sortBy":545}],99:[function(e,t,n){"use strict";function r(e){e.showTooltip=!1,e.text.length>e.length?(e.trimmedText=e.text.slice(0,e.length)+"…",e.showTooltip=!0):e.trimmedText=e.text}function i(){return{templateUrl:"js/components/misc/trimmedText/trimmedText.html",restrict:"E",replace:!0,transclude:!0,controller:r,scope:{length:"@",text:"@"}}}r.$inject=["$scope"],e("../../").directive("trimmedText",i)},{"../../":83}],100:[function(e,t,n){"use strict";function r(){o.generate({bindto:".mitigation-chart",size:{width:400,height:300},data:{columns:[["Security",30,200,100,400,150,250],["Availability",50,20,10,40,15,25],["Stability",130,150,200,300,200,100],["Performance",230,190,300,500,300,400]],type:"spline"}})}function i(){return{templateUrl:"js/components/mitigationTrend/mitigationTrend.html",restrict:"E",controller:r,replace:!0}}var a=e("../"),o=e("c3");a.directive("mitigationTrend",i)},{"../":83,c3:264}],101:[function(e,t,n){"use strict";function r(e,t){var n=this;e.$on("$stateChangeSuccess",function(){n.current="insights-"+t.current.name.replace(/\./g,"-")})}function i(){return{restrict:"A",controller:r,controllerAs:"insightsNamespacer"}}r.$inject=["$scope","$state"],e("../").directive("insightsNamespacer",i)},{"../":83}],102:[function(e,t,n){"use strict";function r(e,t,n){e.alerts=n.alerts,e.dismiss=function(n,r){e.alerts.splice(n,1),"http"===r&&t.reload()}}function i(){return{templateUrl:"js/components/notifications/notifications.html",restrict:"C",replace:!0,controller:r}}r.$inject=["$scope","$state","AlertService"],e("../").directive("rhaNotifications",i)},{"../":83}],103:[function(e,t,n){"use strict";function r(e,t,n,r,i,s){e.selected={},e.close=function(){n.dismiss("close")},e.save=function(){t.update(e.selected.article.id,e.article).then(e.close)},e.preview=function(){r.preview(e.article).then(function(t){e.previewData=t.data})},e.load=function(t){r.get(t).then(function(t){e.article=a(t.data,["title","content"])})},r.getArticles().then(function(t){var n={id:i.overviewKey};e.articles=t.data,o(e.articles,n)||(e.articles.push(n),e.selected.article=n)}),e.$watch("selected.article",function(t){t&&t.id&&(e.load(t.id),e.previewData=null)}),e.selected.article=t.article,s.suppressEscNavigation(n)}r.$inject=["$scope","OverviewService","$modalInstance","Article","InsightsConfig","ModalUtils"];var i=e("../../"),a=e("lodash/pick"),o=e("lodash/find");i.controller("ArticleModalCtrl",r)},{"../../":83,"lodash/find":497,"lodash/pick":538}],104:[function(e,t,n){"use strict";function r(e,t){e.buildBar=function(n){e.chartMax=n.chartMax,e.goalsBar=o.generate({bindto:t[0].getElementsByClassName("bar-chart-wrapper")[0],size:{height:200,width:100},bar:{width:{ratio:.5
5},expand:!0},data:{columns:[["maxSystems",n.chartMax],["systemsRegistered",n.systemCount<=n.chartMax?n.systemCount:n.chartMax]],type:"bar"},axis:{x:{show:!1},y:{show:!1}},legend:{show:!1},grid:{x:{show:!0},y:{show:!0}},tooltip:{format:{},contents:function(e){var t;return t='<div class="'+this.CLASS.tooltip+'"><text class="goal-bar-tooltip">Register more systems to complete the goal</text></div>',e[1].value!=e[0].value?t:""}}}),e.$watch("systemCount",function(t){void 0!==t&&e.goalsBar.load({columns:[["maxSystems",e.chartMax],["systemsRegistered",t<=e.chartMax?t:e.chartMax]]})})}}function i(){return{templateUrl:"js/components/goals/goalsBar/goalsBar.html",restrict:"E",replace:!0,controller:r}}r.$inject=["$scope","$element"];var a=e("../../../../"),o=e("c3");a.directive("goalsBar",i)},{"../../../../":83,c3:264}],105:[function(e,t,n){"use strict";function r(e,t){e.buildGauge=function(n){n.getGaugeNumber().then(function(r){e.goalsGauge=s.putGaugeOnPage(t,r,n.getGaugeMax()),s.updateScope(e,r,n.getGaugeMax())}),e.$on("account:change",function(){e.gaugeMax=n.getGaugeMax(),n.getGaugeNumber().then(function(t){e.goalsGauge.load({columns:[["systems",t]]}),s.updateScope(e,t,n.getGaugeMax())})})}}function i(){return{templateUrl:"js/components/overview/widgets/goals/goalsGauge/goalsGauge.html",restrict:"E",replace:!0,scope:!0,controller:r}}r.$inject=["$scope","$element"];var a=e("../../../../"),o=e("c3"),s={};s.putGaugeOnPage=function(e,t,n){return o.generate({bindto:e[0].getElementsByClassName("chart-wrapper")[0],size:{height:80,width:80},gauge:{width:10,max:n,expand:!0,label:{format:function(e){return e+"/"+n},show:!1},fullCircle:!0,startingAngle:-Math.PI/2},data:{columns:[["systems",t]],type:"gauge"},color:{pattern:["#FF0000","#F97600","#F6C600","#0095DB"],threshold:{values:[n/4,2*n/4,3*n/4,n]}}})},s.updateScope=function(e,t,n){e.gaugeNumber=t,e.gaugeMax=n},a.directive("goalsGauge",i)},{"../../../../":83,c3:264}],106:[function(e,t,n){"use strict";function r(e,t,n,r,i,a,s,c){var l={};t.getMaxFreeSystems=function(){return t.maxFreeSystems},t.gettingStartedLink=a.gettingStartedLink,l.getSevCount=function(e,t){return o(t,function(t,n){return n.severity===e?t+1:0},0)},l.getActionsData=function(){t.loading=!0;var n=[],i=c.getRules().then(function(e){t.securityErrors=e.data.security,t.stabilityErrors=e.data.stability});n.push(i);var a=c.getSystems().then(function(e){return e.data.total}),o=r.getEvaluationStatus().then(function(e){return a.then(function(n){var r=e.current;if(t.systemCount=n,t.maxFreeSystems=r?r.systems:0,t.systemLimitReached=n>=t.maxFreeSystems,r){var i=new Date(Date.parse(r.created_at));i.setDate(i.getDate()+r.duration),t.expiration=i.toDateString()}})});n.push(o),e.all(n).finally(function(){t.loading=!1}),t.getSystemCount=function(){return a}},t.$on("account:change",function(){l.getActionsData()}),l.getActionsData()}function i(){return{templateUrl:"js/components/overview/widgets/goals/goalsLite.html",restrict:"E",controller:r,replace:!0}}r.$inject=["$q","$scope","System","Evaluation","HttpHeaders","InsightsConfig","Report","Stats"];var a=e("../../../"),o=e("lodash/reduce");a.directive("goalsLite",i)},{"../../../":83,"lodash/reduce":541}],107:[function(e,t,n){"use strict";function r(e,t,n){e.accountNumber=t.number,e.overview=n}function i(){return{templateUrl:"js/components/overview/widgets/handcraftedContent/handcraftedContent.html",restrict:"E",replace:!0,scope:{},controller:r}}r.$inject=["$scope","AccountService","OverviewService"],e("../../../").directive("handcraftedContent",i)},{"../../../":83}],108:[function(e,t,n){"use strict";function r(e,t){e.loading=!0,e.refresh=function(){e.loading=!0,e.items={},t.getSystemStatus(!0).then(function(t){t.data&&t.data.stale&&(e.items.staleSystems=t.data.stale),e.loading=!1})},e.itemCount=function(){return Object.keys(e.items).length},e.$on("account:change",e.refresh),e.refresh()}function i(){return{templateUrl:"js/components/overview/widgets/highPrio/highPrio.html",restrict:"E",replace:!0,scope:{},controller:r}}r.$inject=["$scope","System"],e("../../../").directive("highPrio",i)},{"../../../":83}],109:[function(e,t,n){"use strict";function r(e,t,n,r){e.MaintenanceService=n,e.plans=n.plans,e.duration=function(e,t){return o.duration(o(t).diff(o(e))).asMinutes()},e.silence=function(e){return e.silenced=!0,t.silence(e)},e.getFirstSuggestion=function(){return s(n.plans.suggested,{hidden:!1})},e.openPlan=function(e){r.go("app.maintenance",{maintenance_id:e.maintenance_id})}}function i(){return{templateUrl:"js/components/overview/widgets/maintenancePlanLite/maintenancePlanLite.html",restrict:"E",replace:!1,transclude:!0,scope:!0,controller:r}}r.$inject=["$scope","Maintenance","MaintenanceService","$state"];var a=e("../../../"),o=e("moment-timezone"),s=e("lodash/find");a.directive("maintenancePlanLite",i)},{"../../../":83,"lodash/find":497,"moment-timezone":562}],110:[function(e,t,n){"use strict";function r(){return{templateUrl:"js/components/overview/widgets/maintenancePlanLite/maintenancePlanLiteTable/maintenancePlanLiteTable.html",restrict:"E",replace:!0,scope:!0,link:function(e,t,n){e.plans=e.$parent.$eval(n.plans),angular.isDefined(n.overdue)&&(e.overdue=e.$parent.$eval(n.overdue))}}}e("../../../../").directive("maintenancePlanLiteTable",r)},{"../../../../":83}],111:[function(e,t,n){"use strict";function r(e,t,n){e.loader=new n.Loader(!1);var r=e.loader.bind(function(){return t.getRulesLatest({publish_date:"-15days"}).then(function(t){e.rules=t.data.resources})});e.$on("account:change",r),r()}function i(){return{templateUrl:"js/components/overview/widgets/newRules/newRules.html",restrict:"EC",transclude:!0,replace:!1,scope:{},controller:r}}r.$inject=["$scope","Rule","Utils"],e("../../../").directive("newRules",i)},{"../../../":83}],112:[function(e,t,n){"use strict";function r(e,t,n,r){e.loader=new n.Loader(!1),e.showSystemModal=r.showSystemModal;var i=e.loader.bind(function(){return t.populateNewestSystems().then(function(){e.systems=t.getNewestSystems()})});e.$on("account:change",i),e.$on("group:change",i),i()}function i(){return{templateUrl:"js/components/overview/widgets/newSystems/newSystems.html",restrict:"EC",transclude:!0,replace:!1,scope:{},controller:r}}r.$inject=["$scope","SystemsService","Utils","InventoryService"],e("../../../").directive("newSystems",i)},{"../../../":83}],113:[function(e,t,n){"use strict";function r(e,t){!function(){e.titleTranslated=t.getString(e.title)}()}function i(){return{transclude:!0,templateUrl:"js/components/pageHeader/pageHeader.html",restrict:"E",replace:!0,controller:r,scope:{title:"@",icon:"@"}}}r.$inject=["$scope","gettextCatalog"],e("../").directive("pageHeader",i)},{"../":83}],114:[function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s,c,l,u){function d(){return[{product:r.rhel,displayName:r.rhel.fullName,doFilter:function(){t.setSelectedProduct(r.rhel.code)}},{product:r.docker,displayName:r.docker.fullName,subFilters:[{displayName:r.docker.roles.host.shortName,doFilter:function(){t.setSelectedProduct(r.docker.code),n.setState("inventoryDockerContainers",!1),n.setState("inventoryDockerImages",!1),n.setState("inventoryDockerHosts",!0)}},{displayName:r.docker.roles.container.shortName,doFilter:function(){t.setSelectedProduct(r.docker.code),n.setState("inventoryDockerContainers",!0),n.setState("inventoryDockerImages",!1),n.setState("inventoryDockerHosts",!1)}},{displayName:r.docker.roles.image.shortName,doFilter:function(){t.setSelectedProduct(r.docker.code),n.setState("inventoryDockerContainers",!1),n.setState("inventoryDockerImages",!0),n.setState("inventoryDockerHosts",!1)}}],doFilter:function(){t.setSelectedProduct(r.docker.code),n.setState("inventoryDockerContainers",!0),n.setState("inventoryDockerImages",!0),n.setState("inventoryDockerHosts",!0)}},{product:r.ocp,displayName:r.ocp.fullName,subFilters:[{displayName:r.ocp.roles.cluster.shortName,doFilter:function(){t.setSelectedProduct(r.ocp.code),n.setState("inventoryOCPMasters",!1),n.setState("inventoryOCPNodes",!1),n.setState("inventoryOCPClusters",!0)}},{displayName:r.ocp.roles.master.shortName,doFilter:function(){t.setSelectedProduct(r.ocp.code),n.setState("inventoryOCPMasters",!0),n.setState("inventoryOCPNodes",!1),n.setState("inventoryOCPClusters",!1)}},{displayName:r.ocp.roles.node.shortName,doFilter:function(){t.setSelectedProduct(r.ocp.code),n.setState("inventoryOCPMasters",!1),n.setState("inventoryOCPNodes",!0),n.setState("inventoryOCPClusters",!1)}}],doFilter:function(){t.setSelectedProduct(r.ocp.code),n.setState("inventoryOCPMasters",!0),n.setState("inventoryOCPNodes",!0),n.setState("inventoryOCPClusters",!0)}},{product:r.rhev,displayName:r.rhev.fullName,subFilters:[{displayName:r.rhev.roles.cluster.shortName,doFilter:function(){t.setSelectedProduct(r.rhev.code),n.setState("inventoryRHEVManagers",!1),n.setState("inventoryRHEVHypervisors",!1),n.setState("inventoryRHEVClusters",!0)}},{displayName:r.rhev.roles.manager.shortName,doFilter:function(){t.setSelectedProduct(r.rhev.code),n.setState("inventoryRHEVManagers",!0),n.setState("inventoryRHEVHypervisors",!1),n.setState("inventoryRHEVClusters",!1)}},{displayName:r.rhev.roles.hypervisor.shortName,doFilter:function(){t.setSelectedProduct(r.rhev.code),n.setState("inventoryRHEVManagers",!1),n.setState("inventoryRHEVHypervisors",!0),n.setState("inventoryRHEVClusters",!1)}}],doFilter:function(){t.setSelectedProduct(r.rhev.code),n.setState("inventoryRHEVManagers",!0),n.setState("inventoryRHEVHypervisors",!0),n.setState("inventoryRHEVClusters",!0)}},{product:r.osp,displayName:r.osp.fullName,subFilters:[{displayName:r.osp.roles.cluster.shortName,doFilter:function(){t.setSelectedProduct(r.osp.code),n.setState("inventoryOSPCluster",!0),n.setState("inventoryOSPDirector",!1),n.setState("inventoryOSPCompute",!1),n.setState("inventoryOSPController",!1)}},{displayName:r.osp.roles.director.shortName,doFilter:function(){t.setSelectedProduct(r.osp.code),n.setState("inventoryOSPCluster",!1),n.setState("inventoryOSPDirector",!0),n.setState("inventoryOSPCompute",!1),n.setState("inventoryOSPController",!1)}},{displayName:r.osp.roles.compute.shortName,doFilter:function(){t.setSelectedProduct(r.osp.code),n.setState("inventoryOSPCluster",!1),n.setState("inventoryOSPDirector",!1),n.setState("inventoryOSPCompute",!0),n.setState("inventoryOSPController",!1)}},{displayName:r.osp.roles.controller.shortName,doFilter:function(){t.setSelectedProduct(r.osp.code),n.setState("inventoryOSPCluster",!1),n.setState("inventoryOSPDirector",!1),n.setState("inventoryOSPCompute",!1),n.setState("inventoryOSPController",!0)}}],doFilter:function(){t.setSelectedProduct(r.osp.code),n.setState("inventoryOSPCluster",!0),n.setState("inventoryOSPDirector",!0),n.setState("inventoryOSPCompute",!0),n.setState("inventoryOSPController",!0)}}]}function p(t){var n=[];for(var o in r)if(t.includes(o))for(var c=0;c<i.length;c++){var u=i[c];if("all"!==u){var d=r[o].code;e.summaryCounts[d]={};var p=a.headReports({product_code:d,category:u}).then(function(t,n){return function(r){e.summaryCounts[t][n]=r.headers(s.resourceCount)}}(d,u));n.push(p)}}return l.all(n).then(function(){e.loadingSummary=!1})}function f(t){var n=[];for(var i in r)if(t.includes(i)){e.summaryCounts[i]={};var a=r[i].roles;for(var c in a)n.push(function(t,n){return o.headSystemsLatest({product_code:t,role:n}).then(function(r){e.summaryCounts[t][n]=r.headers(s.resourceCount)})}(i,c))}return l.all(n).then(function(){e.loadingSummary=!1})}function h(t){e.summaryType===c.summaryTypes.systems?f(t):e.summaryType===c.summaryTypes.categories&&p(t)}function m(){e.platforms=[],u.getPlatforms().then(function(t){var n=d();e.platforms=n.filter(function(e){return t.includes(e.product.code)}),h(t)}),e.getSelectedProduct=t.getSelectedProduct}e.summaryTypes=c.summaryTypes,e.loadingSummary=!0,e.summaryCounts={},e.$on("group:change",m),e.$on("account:change",m),e.getSummaryItems=function(t){var n=[];if(e.summaryType===c.summaryTypes.systems)for(var i in r[t].roles){var a=r[t].roles[i];n.push(e.summaryCounts[t][a.code]+" "+a.shortName+"s")}else e.summaryType===c.summaryTypes.categories&&(n.push(e.summaryCounts[t].stability+" Stability"),n.push(e.summaryCounts[t].performance+" Performance"),n.push(e.summaryCounts[t].security+" Security"),n.push(e.summaryCounts[t].availability+" Availability"));return n},e.getFilterIconClass=function(e){return e.icon},e.getPlatform=function(e){return r[e]},e.selectFilter=function(e){e.active=!0,e.doFilter(),t.doFilter()},e.viewAll=function(){t.setSelectedProduct("all"),n.setState("inventoryRHEVManagers",!0),n.setState("inventoryRHEVHypervisors",!0),n.setState("inventoryRHEVClusters",!0),n.setState("inventoryDockerContainers",!0),n.setState("inventoryDockerImages",!0),n.setState("inventoryDockerHosts",!0),n.setState("inventoryOSPCluster",!0),n.setState("inventoryOSPDirector",!0),n.setState("inventoryOSPCompute",!0),n.setState("inventoryOSPController",!0),t.doFilter()},e.selectSubFilter=function(t){e.selectFilter(t)},e.getImage=function(){var t=e.getSelectedProduct();return!(!t||"all"===t)&&"static/images/l_"+t+".svg"},m()}function i(){return{templateUrl:"js/components/platformFilter/platformFilter.html",restrict:"E",replace:!0,controller:r,scope:{summaryType:"="}}}r.$inject=["$scope","FilterService","MultiButtonService","Products","Categories","Report","System","HttpHeaders","QuickFilters","$q","PlatformService"],e("../").directive("platformFilter",i)},{"../":83}],115:[function(e,t,n){"use strict";function r(e,t,n){t.loading=!0,t.policyId=e.path().split("/").pop(),n.getSystemPolicies(t.systemId).then(function(e){t.policies=o(e.data.resources,[function(e){return t.policyId&&t.policyId===e.policy_id?0:1},"policy_id"]),t.loading=!1})}function i(){return{templateUrl:"js/components/policies/policiesModal/policiesModal.html",restrict:"E",controller:r,replace:!0,scope:{systemId:"<"}}}r.$inject=["$location","$scope","System"];var a=e("../../"),o=e("lodash/sortBy");a.directive("policiesModal",i)},{"../../":83,"lodash/sortBy":545}],116:[function(e,t,n){"use strict";function r(e,t,n,r,i,a){function o(){i.asyncCurrent(function(t){var n=window.sessionStorage.getItem(r.acctKey)||t.account_number;e.canSeePolicies=s[n]})}var s={540155:!0,540694:!0,901578:!0};e.canSeePolicies=!1,e.isHidden=!1,e.utils=t,e.state=n,e.config=r,e.doLogout=a.standardLogout,e.isPortal=r.isPortal,e.toggleNav=function(){e.isHidden=!e.isHidden},e.states={rules:["app.rules","app.admin-topic","app.edit-topic"],actions:["app.actions","app.actions-rule","app.topic"],config:["app.config","app.config-webhook-edit"],policies:["app.view-policy","app.list-policies"]},e.isActive=function(e){return{current:e.some(function(e){return n.is(e)})}},e.$on("account:change",o),o()}function i(){return{templateUrl:"js/components/primary-nav/primary-nav.html",restrict:"E",replace:!0,controller:r}}r.$inject=["$scope","Utils","$state","InsightsConfig","User","InsightsJwt"],e("../").directive("primaryNav",i)},{"../":83}],117:[function(e,t,n){"use strict";function r(e,t,n,r){n.fetchRelatedSolution&&(e.showLabel=!angular.isDefined(e.showLabelParam)||e.showLabelParam,e.loading=!1,e.node&&(o[e.node]?(e.solution={},e.solution.viewUri=o[e.node].viewUri,e.solution.title=e.kcsTitle||o[e.node].title):(e.loading=!0,r.searchById(e.node).then(function(t){t.length&&(e.solution={},e.solution.viewUri=t[0].viewUri||t[0].view_uri,e.solution.title=e.kcsTitle||t[0].title,o[e.node]={title:t[0].title,viewUri:e.solution.viewUri})}).finally(function(){e.loading=!1}))))}function i(){return{scope:{node:"=",showLabelParam:"=showLabel",kcsTitle:"@"},templateUrl:"js/components/recommendedKbase/recommendedKbase.html",restrict:"EC",controller:r}}r.$inject=["$scope","$http","InsightsConfig","StrataService"];var a=e("../"),o={};a.directive("recommendedKbase",i)},{"../":83}],118:[function(e,t,n){"use strict";function r(e){return{link:function(t,n,r){r.href?(i(n,r.href),t.$watch(function(){return window.location.pathname},function(){i(n,r.href)})):a(n,r),r.permalink&&n.bind("click",function(t){t.ctrlKey||t.metaKey||(t.stopPropagation(),e.make(r.href,!0))})}}}function i(e,t){e[0].href=window.location.pathname+t}function a(e,t){var n=t.$observe("href",function(t){i(e,t),n()})}r.$inject=["PermalinkService"],e("../").directive("relativeHash",r)},{"../":83}],119:[function(e,t,n){"use strict";function r(e,t,n,r,i){function a(){t.edit.name=t.value}function o(e){return function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];t.$evalAsync(function(){return e.apply(void 0,r)})}}t.edit={value:!1},a(),t.rename=function(){function r(){l(),e.off("click",t.submit),c(),t.edit.value=!1}var s=o(function(){a(),r()});t.submit=o(function(e){if("click"!==e.type||"edit-toggle"!==e.target.id&&"renameable-property-input"!==e.target.id&&"frozen"!==t.edit.value){var n=t.edit.name&&t.edit.name.length?t.edit.name:null;if(n===t.value||!n&&!t.allowNull)return s();t.edit.value="frozen",t.updateFunction({newValue:n}).then(function(){t.value=n,a(),r()}).catch(function(){a(),r()})}}),t.edit.value=!0,e.on("click",t.submit);var c=t.$on("telemetry:esc",s),l=i.preventModalCloseOnEsc(t.$parent);n(function(){return e[0].getElementById("renameable-property-input").focus()})}}function i(){return{templateUrl:"js/components/renameableProperty/renameableProperty.html",restrict:"E",controller:r,replace:!0,scope:{value:"<",updateFunction:"&",allowNull:"<"}}}r.$inject=["$document","$scope","$timeout","$window","ModalUtils"],e("../").directive("renameableProperty",i)},{"../":83}],120:[function(e,t,n){"use strict";function r(e){return o.generate({bindto:".rha-telemetry-donut",size:{width:320,height:320},pie:{label:{threshold:.07}},data:{columns:[],colors:{Availability:"#1F77B4",Performance:"#2c96cb",Security:"#6d868d",Stability:"#46b631"},type:"pie"},legend:{show:!1},tooltip:{format:{name:e,value:function(e,t){return t>=.07?e:e+" ("+s.format("0.3p")(t)+")"}}}})}function i(e,t,n,i,a,o){return{restrict:"C",replace:!0,link:function(t){n.setDonutChart(r(n.mapName));var i=o.filter(function(e){return"all"!==e}),s=function(t){function r(e){return".c3-arc-"+e.replace(/[|._]/g,"-")}if(t){var o=n.getDonutChart(),s=i.map(function(e){return[c(e),t[e]]}).filter(function(e){return e[1]>0});!function(t,n){o.load({columns:t,unload:n,done:function(){angular.forEach(t,function(t){var n=t[0],i=r(n),o=document.querySelector(i);angular.element(o).on("touchend click",function(){e.go("app.topic",{id:n.toLowerCase(),product:a.getSelectedProduct()})})})}})}(s,i.map(c))}};t.$on("filterService:doFilter",s),t.$watchCollection("stats.rules",s)}}}i.$inject=["$state","$timeout","RhaTelemetryActionsService","Stats","FilterService","Categories"];var a=e("../"),o=e("c3"),s=e("d3"),c=e("lodash/capitalize");a.directive("rhaTelemetryDonut",i)},{"../":83,c3:264,d3:265,"lodash/capitalize":485}],121:[function(e,t,n){"use strict";function r(){return{scope:{changeRisk:"<",hideLabel:"<"},templateUrl:"js/components/riskOfChange/riskOfChange.html",restrict:"E",replace:!0}}e("../").directive("riskOfChange",r)},{"../":83}],122:[function(e,t,n){"use strict";function r(){return{templateUrl:"js/components/rule/ruleBreadcrumb/ruleBreadcrumb.html",restrict:"ECA"}}e("../../").directive("ruleBreadcrumb",r)},{"../../":83}],123:[function(e,t,n){"use strict";function r(){return{templateUrl:"js/components/rule/ruleFilter/ruleFilter.html",restrict:"E"}}e("../../").directive("ruleFilter",r)},{"../../":83}],124:[function(e,t,n){"use strict";function r(e,t,n,r){function i(t){e.$evalAsync(function(){c&&(t.keyCode===a&&e.previous(),t.keyCode===o&&e.next())})}function s(){e.swapping=!0,t(function(){e.swapping=!1},0)}var c=!1;e.config=r,e.setActive=function(e){c=e},n.on("keydown",i),e.$on("$destroy",function(){n.off("keydown",i)}),e.index=0,e.$watch("plugin",function(t){t&&(e.rule=t.rules[e.index])}),e.hasNext=function(){return e.index+1<e.plugin.rules.length},e.next=function(){e.hasNext()&&(e.index++,e.rule=e.plugin.rules[e.index],s())},e.hasPrevious=function(){return e.index>0},e.previous=function(){e.hasPrevious()&&(e.index--,e.rule=e.plugin.rules[e.index],s())}}function i(){return{templateUrl:"js/components/rule/ruleGroupCard/ruleGroupCard.html",restrict:"E",scope:{plugin:"="},controller:r}}r.$inject=["$scope","$timeout","$document","InsightsConfig"];var a=37,o=39;e("../../").directive("ruleGroupCard",i)},{"../../":83}],125:[function(e,t,n){"use strict";function r(){return{templateUrl:"js/components/rule/ruleListSimple/ruleListSimple.html",restrict:"E",scope:{rules:"=",onDelete:"&",onSelect:"&",order:"="},link:function(e,t,n){e.readOnly=!n.onDelete,e.$watch("rules",function(){e.limit=10})}}}e("../../").directive("ruleListSimple",r)},{"../../":83}],126:[function(e,t,n){"use strict";function r(){return{templateUrl:"js/components/rule/ruleReason/ruleReason.html",restrict:"EC"}}e("../../").directive("ruleReason",r)},{"../../":83}],127:[function(e,t,n){"use strict";function r(e,t){t.getSystemNameFromId=function(t){var n=e.getSystemNames();return n&&n.hasOwnProperty(t)?n[t]:t}}function i(){return{templateUrl:"js/components/rule/ruleResolution/ruleResolution.html",restrict:"EC",replace:!0,controller:r}}r.$inject=["RhaTelemetryActionsService","$scope"],e("../../").directive("ruleResolution",i)},{"../../":83}],128:[function(e,t,n){"use strict";function r(e,t,n,r,i,a,s){e.getLoadingMessage=function(){return e.system.toString?r.getString("Loading report(s) for {{name}}…",{name:e.system.toString}):r.getString("Loading report(s)…")},e.rule?e.rule_id=e.rule:e.rule_id=t.rule,e.machineId&&!e.system.__fake&&(e.rule_id&&(e.ruleFilter=!0),e.system&&(e.system.reports=[],function(){e.loading.isLoading=!0,i.getSystemReports(e.machineId).success(function(t){angular.extend(e.system,t),e.system.reports=o(e.system.reports,[function(t){return e.rule_id&&e.rule_id===t.rule_id?0:1},"rule.severityNum","rule.resolution_risk"],["asc","desc","asc"]),e.loading.isLoading=!1}).error(function(t,n,r,i){s.getReportsErrorCallback&&(e.errorMessage=s.getReportsErrorCallback(t,n,r,i)),e.loading.isLoading=!1})}()))}function i(){return{controller:r,templateUrl:"js/components/rule/ruleSummaries/ruleSummaries.html",restrict:"EC",scope:{system:"=",machineId:"=",rule:"=",ruleFilter:"=",loading:"="}}}r.$inject=["$scope","$stateParams","$location","gettextCatalog","System","Report","InsightsConfig"];var a=e("../../"),o=e("lodash/orderBy");a.directive("ruleSummaries",i)},{"../../":83,"lodash/orderBy":534}],129:[function(e,t,n){"use strict";function r(e,t){e.config=t,e.show={moreInfo:!1},e.initCollapsed=!1,(e.ruleFilter&&e.ruleId&&e.ruleId!==e.report.rule_id||!e.ruleFilter&&!e.ruleId)&&(e.initCollapsed=!0),e.resetShowMore=function(t){t.collapsing&&(e.show.moreInfo=!1)}}function i(){return{controller:r,templateUrl:"js/components/rule/ruleSummary/ruleSummary.html",restrict:"E",scope:{report:"=",rule:"=",ruleId:"=",ruleFilter:"=",loading:"="}}}r.$inject=["$scope","InsightsConfig"],e("../../").directive("ruleSummary",i)},{"../../":83}],130:[function(e,t,n){"use strict";function r(e,t,n,r){function i(){e.text=r.getString("Ignore Rule"),e.rule&&e.rule.ack_id&&(e.text=r.getString("Unignore Rule"))}e.ackAction=function(){e.rule&&e.rule.ack_id?(t.deleteAck({id:e.rule.ack_id}),e.rule.ack_id=null):t.createAck(e.rule).then(function(t){e.rule.ack_id=t.id})},i(),e.$watch("rule.ack_id",i)}function i(){return{templateUrl:"js/components/rule/ruleToggle/ruleToggle.html",restrict:"E",scope:{rule:"="},controller:r}}r.$inject=["$scope","Ack","InsightsConfig","gettextCatalog"],e("../../").directive("ruleToggle",i)},{"../../":83}],131:[function(e,t,n){"use strict";function r(){return{scope:{state:"="},templateUrl:"js/components/ruleStateIcon/ruleStateIcon.html",restrict:"E",replace:!0}}e("../").directive("ruleStateIcon",r)},{"../":83}],132:[function(e,t,n){"use strict";function r(){return{scope:{rule:"<"},templateUrl:"js/components/severityIcon/allSeverityIcons.html",restrict:"E",replace:!0}}e("../").directive("allSeverityIcons",r)},{"../":83}],133:[function(e,t,n){"use strict";function r(e,t){var n={};n.iconClass=function(e){switch(e){case 1:return"low";case 2:return"med";case 3:return"high";case 4:return"critical";default:return"unknown"}},n.checkTypes=function(){if(e.type&&e.type){if(o(n.typeMap,e.type))return;throw new Error("Invalid severity-icon type selected! "+e.type)}throw new Error("No severity-icon type selected! "+e.type)},n.typeMap={impact:t.getString("Impact"),likelihood:t.getString("Likelihood"),severity:t.getString("Total Risk")},n.sevClassMap={INFO:n.iconClass(1),WARN:n.iconClass(2),ERROR:n.iconClass(3),CRITICAL:n.iconClass(4),UNKNOWN:n.iconClass(-1),1:n.iconClass(1),2:n.iconClass(2),3:n.iconClass(3),4:n.iconClass(4)},n.numberToStringMap={1:t.getString("Low"),2:t.getString("Medium"),3:t.getString("High"),4:t.getString("Critical"),INFO:t.getString("Low"),WARN:t.getString("Medium"),ERROR:t.getString("High"),CRITICAL:t.getString("Critical"),UNKNOWN:t.getString("Unknown")},e.getClass=function(e){return"severity"===e?"total-risk":e},e.init=function(){n.checkTypes(),e.severity||(e.severity="UNKNOWN"),e.type&&!e.label&&(e.label=n.typeMap[e.type]),e.tooltip=n.typeMap[e.type]+": "+n.numberToStringMap[e.severity],e.sevClass=n.sevClassMap[e.severity]}}function i(){return{scope:{type:"@",label:"@",severity:"<"},templateUrl:"js/components/severityIcon/severityIcon.html",restrict:"E",replace:!0,controller:r}}r.$inject=["$scope","gettextCatalog"];var a=e("../"),o=e("lodash/has");a.directive("severityIcon",i)},{"../":83,"lodash/has":504}],134:[function(e,t,n){"use strict";function r(e){function t(){void 0===e.model&&e.options&&e.options.length&&(e.selected=o(e.options,{id:null}))}e.$watch("options",t),e.$watch("model",function(n){e.selected=o(e.options,function(e){return String(e.id).toLowerCase()===String(n).toLowerCase()}),t()}),e.select=function(t){e.selected=t,e.model=t.id}}function i(){return{scope:{model:"=",options:"=",disabled:"="},templateUrl:"js/components/simpleSelect/simpleSelect.html",restrict:"E",replace:!0,controller:r}}r.$inject=["$scope"];var a=e("../"),o=e("lodash/find");a.directive("simpleSelect",i)},{"../":83,"lodash/find":497}],135:[function(e,t,n){"use strict";function r(e){e.statusClass="",e.status?e.statusClass="fa-check-circle-o":e.statusClass="fa-circle-o"}function i(){return{scope:{status:"="},templateUrl:"js/components/statusIcon/statusIcon.html",restrict:"E",replace:!0,controller:r}}r.$inject=["$scope"],e("../").directive("statusIcon",i)},{"../":83}],136:[function(e,t,n){"use strict";function r(e,t,n,r){var i=document.body.scrollTop,a=n.getBoundingClientRect(),o=a.top+document.body.scrollTop+r,s=t.getBoundingClientRect(),c=s.top+i+s.height,l=i+document.body.offsetHeight,u="",d="";i<o?(u="absolute-top",d="absolute-bottom fixed-bottom"):l>c?(u="absolute-bottom",d="absolute-top fixed-bottom"):(u="fixed-bottom",d="absolute-top absolute-bottom"),e.addClass(u).removeClass(d)}function i(e){var t,n=document.body.scrollTop,r=e[0];void 0===e.originalOffset?(e.removeClass("stuck"),t=r.getBoundingClientRect().top,e.originalOffset=t+n):t=r.getBoundingClientRect().top,n>=e.originalOffset?e.addClass("stuck"):e.removeClass("stuck")}function a(e,t,n,a){e&&t&&n?r(e,t,n,a):e&&i(e)}function o(e){function t(e){return e&&"resize"===e.type&&delete n.originalOffset,a(n,r,i,o)}var n,r,i,o,s;e.child&&(n=angular.element(document.querySelector(e.child)),r=document.querySelector(e.parent),i=document.querySelector(e.sibling),o=e.offset,void 0===o&&(o=0),o=parseInt(o,10),s=angular.element(window),s.on("scroll",t),s.on("resize",t),e.$on("$destroy",function(){s.off("scroll",t),s.off("resize",t)}))}function s(){return{restrict:"CA",scope:{parent:"@",child:"@",sibling:"@",offset:"@"},link:o}}o.$inject=["$scope"],e("../").directive("stickyNav",s)},{"../":83}],137:[function(e,t,n){"use strict";function r(e,t,n){e.close=function(){t.dismiss("close")},e.gettingStartedLink=n.gettingStartedLink}r.$inject=["$scope","$modalInstance","InsightsConfig"],e("../../").controller("AddSystemModalCtrl",r)},{"../../":83}],138:[function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s,c,l,u,d){function p(){i.dismiss("close")}e.activeTab="system",e.report={},e.modal=i,e.setActive=function(t){e.activeTab=t},e.system=o,e.rule=s,e.loading={isLoading:!0},!1===o&&(e.system={hostname:"this.is.a.fake.system",machine_id:"fakemachineidfakemachineidfakemachineid",__fake:!0}),e.close=p,l.setMachine(e.system.system_id),d.suppressEscNavigation(i);var f=t.$on("$stateChangeStart",p),h=t.$on("telemetry:esc",function(e){return e.preventDefault(),!1});i.result.then(angular.noop,function(){r(function(){h(),f()})}),e.$on("modal.closing",function(){l.setMachine(null),h()}),e.getUUID=function(){return e.system.machine_id?e.system.machine_id:e.system.system_id},function(){u.getSystemPolicies(e.system.system_id).then(function(t){e.hasPolicies=t.data.total>0,e.activeTab=a||e.activeTab})}()}r.$inject=["$scope","$rootScope","$location","$timeout","$modalInstance","activeTab","system","rule","AnalyticsService","FilterService","System","ModalUtils"],e("../../").controller("SystemModalCtrl",r)},{"../../":83}],139:[function(e,t,n){"use strict";function r(e,t,n,r,i,a){function c(){if(u&&u.length){var t=o(e.group.systems,"system_id");e.systems=s(u,function(e){return!!t[e.system_id]}),t=null,e.filterSystems()}}function l(){var t=r.itemsChanged(e._filteredSystems,e.checkboxes.items);e.totalChecked=t.totalChecked,e.indeterminate=t.indeterminate,angular.isDefined(t.checked)&&(e.checkboxes.checked=t.checked)}var u,d,p=e.type;e._filteredSystems=[],e.indeterminate=!1,e.items=[10,25,50,100],e.itemsPerPage=10,e.title=a("in"===p?"Systems in This Group":"Available Systems"),e.currentPage=1,e.total=0,e.maxPages=4,e.systemFilter="",e.checkboxes={checked:!1,items:{}},e.filterSystems=function(){e.filteredSystems=i("filter")(e.systems,{hostname:e.systemsFilter}),e.total=e.filteredSystems.length};var f=r.resetChecked(e.checkboxes);e.pageChanged=f,e.addSystems=function(){var t=[],r=o(e._filteredSystems,"system_id");for(var i in e.checkboxes.items)e.checkboxes.items[i]&&r[i]&&t.push(r[i]);n.addSystems(e.group,t),f()},e.removeSystems=function(){var t=[];for(var r in e.checkboxes.items)e.checkboxes.items[r]&&t.push(r);n.removeSystems(e.group,t),f()},e.rowClick=function(t){if(t.shiftKey&&"mousedown"===t.type)return t.preventDefault(),!1;var n=t.currentTarget;if(!d)return void(d=n);t.shiftKey&&r.selectBetween(n,d,e.checkboxes.items),d=n},"in"===p?(e.systems=e.group.systems,e.filterSystems(),e.$watchCollection("group.systems",function(){e.filterSystems()})):(t.getSystems(!1).success(function(e){u=e.resources,c()}),e.$watchCollection("group.systems",c)),e.$watch("checkboxes.checked",function(t){r.checkboxChecked(t,e._filteredSystems,e.checkboxes.items)}),e.$watchCollection("checkboxes.items",l)}function i(){return{templateUrl:"js/components/system/systemTable/systemTable.html",restrict:"E",scope:{group:"=",type:"@"},controller:r}}r.$inject=["$scope","System","Group","Utils","$filter","gettext"];var a=e("../../"),o=e("lodash/keyBy"),s=e("lodash/reject");a.directive("systemTable",i)},{"../../":83,"lodash/keyBy":523,"lodash/reject":542}],140:[function(e,t,n){"use strict";function r(e,t,n,r,i,a){function s(){var e=o(l,{noData:!1,category:"system"});e||(e=o(l,{noData:!1})),a(function(){e&&(t.getData(e),angular.element(document.getElementById(e.category+"-tab")).click(),t.expanded=!0)},0)}var c=null,l=void 0;t.config=n,t.rowLimit=3,t.expanded=!1,t.loading=!1,t.hovering=!1,t.showAll=!1,t.tabsContent={system:null,network:null},t.system&&t.system.system_id&&(t.loading=!0,r.getSystemMetadata(t.system.system_id).then(function(e){t.initialMetadata=i.getInitialSystemMetadata(t.system,e.data),l=i.getSystemMetadata(t.system,e.data),t.loading=!1})),t.getSystemType=function(){return o(l,{category:"system"}).type},t.hasMetadata=function(){return void 0!==o(l,{noData:!1})},t.setDefaultTab=function(){0===t.system.report_count&&s()},t.toggleExpanded=function(){t.hovering||!t.expanded?s():(t.showAll=!1,t.expanded=!t.expanded)},
6t.disableTab=function(e){var t=o(l,{category:e});return!!t&&t.noData},t.showExpandTableBtn=function(){var e=t.tabsContent[c];return!(!e||e.noData)&&e.data.length>t.rowLimit},t.toggleExpandTable=function(){t.showAll=!t.showAll},t.toggleHovering=function(){t.hovering=!t.hovering},t.getData=function(e,n){if(c===e)c=null,angular.element(document.getElementById(e+"-tab")).removeClass("active"),angular.element(document.getElementById(""+e)).removeClass("active"),n.stopPropagation(),n.preventDefault();else if(c=e,!t.tabsContent[e]){var r=o(l,{category:e});r&&!r.noData&&(t.tabsContent[e]=r)}},t.getUUID=function(){return t.system.machine_id?t.system.machine_id:t.system.system_id},t.rename=function(n){return r.update(t.system.system_id,{display_name:n}).then(function(n){t.system.display_name=n.data.display_name,e.$broadcast("reload:data")})},t.networkSorter=function(e){return parseInt(e.port)}}function i(){return{templateUrl:"js/components/systemMetadata/systemMetadata.html",restrict:"E",controller:r,scope:{system:"="}}}r.$inject=["$rootScope","$scope","InsightsConfig","System","SystemsService","$timeout"];var a=e("../"),o=e("lodash/find");a.directive("systemMetadata",i)},{"../":83,"lodash/find":497}],141:[function(e,t,n){"use strict";function r(e,t,n,r,i,a){i.removeFilter=function(e){delete i.tags[e],r.$broadcast(a.filters.removeTag,e)},i.hasTags=function(){return Object.keys(i.tags).length>0},i.$on(a.filters.tag,function(e,t,n){i.tags[n]=t,null===t&&delete i.tags[n]}),s.toggleTray=function(){i.open=!i.open,i.$digest()},e.bind("show.bs.collapse",s.toggleTray),e.bind("hidden.bs.collapse",s.toggleTray),function(){i.tags={}}()}function i(){return{templateUrl:"js/components/tableFilters/tableFilters.html",restrict:"E",replace:!0,transclude:!0,controller:r}}function a(){return{templateUrl:"js/components/tableFilters/tableFiltersContent.html",restrict:"E",replace:!0,transclude:!0,require:"^tableFilters"}}r.$inject=["$element","$location","$q","$rootScope","$scope","Events"];var o=e("../"),s={};o.directive("tableFilters",i),o.directive("tableFiltersContent",a)},{"../":83}],142:[function(e,t,n){"use strict";function r(e){function t(e){for(var t=e.querySelectorAll("a"),n=0;n<t.length;n++)t[n].target="_blank"}return{link:function(n,r){e(function(){r&&r[0]&&t(r[0])},0,!1)}}}r.$inject=["$timeout"],e("../").directive("targetBlank",r)},{"../":83}],143:[function(e,t,n){"use strict";function r(e,t){return e.year()===t.year()&&e.month()===t.month()&&e.date()===t.date()}function i(e){function t(){e.startTime=s(e.start),e.endTime=s(e.end),e.timezone&&(e.startTime=e.startTime.tz(e.timezone),e.endTime=e.endTime.tz(e.timezone));var t=s(e.start);e.startDate=!1,e.endDate=!1,r(t,e.startTime)||(e.startDate=e.startTime.format(i)),r(t,e.endTime)||(e.endDate=e.endTime.format(i)),e.startTime=e.startTime.format(n),e.endTime=e.endTime.format(n)}var n="LT",i="MMM D";t(),e.$watchGroup(["start","end","timezone"],t)}function a(){return{templateUrl:"js/components/timeRange/timeRange.html",restrict:"E",controller:i,replace:!0,scope:{start:"=start",end:"=end",timezone:"=?timezone"}}}i.$inject=["$scope"];var o=e("../"),s=e("moment-timezone");o.directive("timeRange",a)},{"../":83,"moment-timezone":562}],144:[function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s,c){function l(){t.loading=!0,o.removeAll("stale"),a.getSystemStatus(!0).then(function(e){e.data&&e.data.hasOwnProperty("stale")&&e.data.hasOwnProperty("ackedStale")&&e.data.stale-e.data.ackedStale>0&&o.push({type:"stale",msg:i.getPlural(e.data.stale-e.data.ackedStale,"1 new system not checking in","{{count}} new systems not checking in",{count:e.data.stale-e.data.ackedStale}),acked:!1,icon:"fa-server",onAck:u,onSelect:p})}).finally(function(){t.loading=!1})}function u(){return a.ackStaleSystems().then(l)}function d(){c.setOnline(!1),c.setOffline(!0),c.setQueryParam("sort_field","last_check_in"),c.setQueryParam("sort_dir","ASC"),n.go("app.inventory",r.search())}function p(e){!1===e.acked?u().then(d):d()}t.service=o,l(),s.plans.load()}function i(){return{templateUrl:"js/components/topbar/alerts/alerts.html",restrict:"E",replace:!0,scope:{icon:"@icon"},controller:r}}r.$inject=["$rootScope","$scope","$state","$location","gettextCatalog","System","TopbarAlertsService","MaintenanceService","FilterService"],e("../../").directive("alerts",i)},{"../../":83}],145:[function(e,t,n){"use strict";function r(e,t,n){function r(){e.disabled=o(s,n.current.name)}e.gettingStartedLink=t.gettingStartedLink,e.isPortal=t.isPortal,e.isGroupsEnabled=t.isGroupsEnabled,e.$on("$stateChangeSuccess",r),r()}function i(){return{templateUrl:"js/components/topbar/topbar.html",restrict:"E",controller:r,replace:!1}}r.$inject=["$scope","InsightsConfig","$state"];var a=e("../"),o=e("lodash/includes"),s=["app.config","app.digests","app.rules"];a.directive("topbar",i)},{"../":83,"lodash/includes":507}],146:[function(e,t,n){"use strict";function r(e){return{templateUrl:"js/components/topics/otherTopic/otherTopic.html",restrict:"E",replace:!0,transclude:!1,scope:{topic:"="},link:function(t){t.getSelectedProduct=e.getSelectedProduct}}}r.$inject=["FilterService"],e("../../").directive("otherTopic",r)},{"../../":83}],147:[function(e,t,n){"use strict";function r(e){return{scope:!0,templateUrl:"js/components/topics/topicAdminHelpBar/topicAdminHelpBar.html",restrict:"E",replace:!0,link:function(t,n,r){function i(e){var n=a.selectionStart,r=a.value;r||(r="");var i=r.substring(0,n),o=r.substring(n);a.value=i+e+o,a.selectionStart=a.selectionEnd=n+e.length,t.topic.content=a.value}var a;if(angular.forEach(e.find("textarea"),function(e){e.id===r.textArea&&(a=e)}),!a)throw new Error("Unable to find text area with id: "+r.textArea);t.help={show:!1},t.help.appendInterpolation=function(e){var t="topic.actions.totalCount";e&&(t=e.target.text.trim()),i("{{= "+t+" }}")},t.help.appendConditional=function(){i("\n{{? topic.actions.totalCount}}\nActions found!\n{{??}}\nNo actions found!\n{{?}}\n")},t.help.interpolations=[],t.help.createInterpolations=function(){if(t.topic&&t.topic.rules){var e=[{key:"systems.totalCount",value:"Number of systems with a given product (or all systems combined if no product selected)"},{key:"systems.affectedCount",value:"Number of systems affected by this topic"},{key:"product.code",value:"Product code (rhel, rhev, osp or docker)"},{key:"topic.rules.totalCount",value:"Number of rules that belong to this topic"},{key:"topic.rules.ackedCount",value:"Number of rules that belong to this topic and are ignored (acked) by the customer"},{key:"topic.actions.totalCount",value:"Number of actions (rule violations on systems) for this topic"}],n=[{key:"topic.rule.actionCount",value:"Number of actions for the given rule"},{key:"topic.rule.description",value:"Name of the rule"},{key:"topic.rule.link",value:"Link to a page for the given rule"},{key:"topic.rule.category",value:"Rule category (Security, Performance, Availability or Stability)"},{key:"topic.rule.severity",value:"Rule severity (ERROR, WARN, INFO)"},{key:"topic.rule.acked",value:"Indicated whether this rule has been ignored (acked) by the user"}];if("explicit"===t.ruleBinding&&1===t.topic.rules.length)t.help.interpolations=e.concat(n);else{var r=t.selectedRule;t.help.interpolations=e.concat([{key:"topic.rules.byId['"+r+"'].actionCount",value:n[0].value},{key:"topic.rules.byId['"+r+"'].description",value:n[1].value},{key:"topic.rules.byId['"+r+"'].link",value:n[2].value},{key:"topic.rules.byId['"+r+"'].category",value:n[3].value},{key:"topic.rules.byId['"+r+"'].severity",value:n[4].value},{key:"topic.rules.byId['"+r+"'].acked",value:n[5].value}])}}},t.$watchCollection("topic.rules",t.help.createInterpolations),t.$watch("selectedRule",t.help.createInterpolations)}}}r.$inject=["$document"],e("../../").directive("topicAdminHelpBar",r)},{"../../":83}],148:[function(e,t,n){"use strict";function r(e){return{templateUrl:"js/components/topics/topicDetails/topicDetails.html",restrict:"E",replace:!0,scope:{topic:"="},link:function(t){e.$watch("isContentManager",function(e){t.isContentManager=e})}}}r.$inject=["$rootScope"],e("../../").directive("topicDetails",r)},{"../../":83}],149:[function(e,t,n){"use strict";function r(e,t,n,r,i,s,c){e.summary=r,e.details=i,e.editData=!1,e.loader=new c.Loader,e.topic={};var l=e.loader.bind(function(t){return n.preview(t).then(function(t){e.topic=t.data,e.topic.rules.forEach(s.readRule),e.sampleData={rules:a(e.topic.rules),systems:{affectedCount:e.topic.affectedSystemCount}}},function(t){404===t.status&&(e.topic=null)})});e.updateSampleData=function(){var n=o(t,["title","content","summary","alwaysShow","tag","category","rules"]);n.overrides={rules:e.sampleData.rules.map(function(e){return{rule_id:e.rule_id,hitCount:e.hitCount,acked:e.acked}}),systems:e.sampleData.systems},l(n)},l(t)}r.$inject=["$scope","topic","Topic","summary","details","DataUtils","Utils"];var i=e("../../"),a=e("lodash/cloneDeep"),o=e("lodash/pick");i.controller("TopicPreviewModalCtrl",r)},{"../../":83,"lodash/cloneDeep":487,"lodash/pick":538}],150:[function(e,t,n){"use strict";function r(){return{templateUrl:"js/components/topics/topicRuleFilters/topicRuleFilters.html",restrict:"E",replace:!0}}e("../../").directive("topicRuleFilters",r)},{"../../":83}],151:[function(e,t,n){"use strict";function r(e,t,n,r,i,a,c,l,u,d,p,f){function h(){r.showRulesWithNoHits=!1,r.hiddenCount=0,a[c.filters.totalRisk]&&"All"!==a[c.filters.totalRisk]&&t.search(c.filters.totalRisk,a[c.filters.totalRisk]),r.filterIncidents=t.search()[c.filters.incident]||"all",r.totalRisk=t.search()[c.filters.totalRisk]||"All",r.riskOfChange=t.search().riskOfChange||"all"}function m(e){e&&(r.filteredRules=g(r.topic.rules),v(r.filteredRules))}function g(e){return"incidents"===r.filterIncidents?e=s(e,function(e){return l.isIncident(e.rule_id)}):"nonIncidents"===r.filterIncidents&&(e=s(e,function(e){return!l.isIncident(e.rule_id)})),"All"!==r.totalRisk&&(e=s(e,function(e){return e.severity===r.totalRisk})),"all"!==r.riskOfChange&&(e=s(e,function(e){return e.resolution_risk===parseInt(r.riskOfChange)})),e}function v(e){if(r.showRulesWithNoHits)r.plugins=p.groupRulesByPlugin(e);else{var t=o(e,function(e){return e.hitCount&&!e.acked});r.plugins=p.groupRulesByPlugin(t[0]),r.hiddenCount=t[1].length}}function b(){r.topic.rules=e("orderBy")(r.topic.rules,["_type",r.sorter.reverse?"-"+r.sorter.predicate:r.sorter.predicate]),r.filteredRules=g(r.topic.rules),v(r.filteredRules)}r.config=u,r.listTypes=d.types(),r.getListType=d.getType,r.sorter=new f.Sorter({predicate:["acked","hitCount === 0","-severityNum","-hitCount"],reverse:!1},b),r.filterZero=function(e){return!!(r.showRulesWithNoHits||e.hitCount>0&&!e.acked)},n.$on("account:change",h),r.$watch("topic",function(e){r.showRulesWithNoHits=e&&0===e.hitCount,m(e)}),r.$on(c.filters.incident,function(e,t){r.filterIncidents=t,m(r.topic)}),r.$on(c.filters.totalRisk,function(e,t){r.totalRisk=t,m(r.topic)}),r.$on(c.filters.riskOfChangeSelect,function(e,t){r.riskOfChange=t,m(r.topic)}),r.$on(c.filters.reset,function(){r.filterIncidents="all",r.totalRisk="All",m(r.topic)}),r.showAll=function(){r.showRulesWithNoHits=!0,m(r.topic)},r.viewImpactedSystems=function(e,t){i.go("app.actions-rule",{category:e,rule:t})},r.checkIncident=function(e){return l.isIncident(e)&&n.isBeta},h()}function i(){return{templateUrl:"js/components/topics/topicRuleList/topicRuleList.html",restrict:"E",replace:!0,controller:r,scope:{topic:"="}}}r.$inject=["$filter","$location","$rootScope","$scope","$state","$stateParams","Events","IncidentsService","InsightsConfig","ListTypeService","RuleService","Utils"];var a=e("../../"),o=e("lodash/partition"),s=e("lodash/filter");a.directive("topicRuleList",i)},{"../../":83,"lodash/filter":496,"lodash/partition":537}],152:[function(e,t,n){"use strict";function r(e,t){e.systemTypeIcon="",e.systemTypeDisplayName="",e.systemTypeDisplayNameShort="",t.getSystemTypeAsync(e.typeId).then(function(t){t&&(e.systemTypeIcon=t.imageClass,e.systemTypeDisplayName=t.displayName,e.systemTypeDisplayNameShort=t.displayNameShort)})}function i(){return{scope:{typeId:"=",includeText:"="},templateUrl:"js/components/typeIcon/typeIcon.html",restrict:"EC",replace:!0,controller:r}}r.$inject=["$scope","SystemsService"],e("../").directive("typeIcon",i)},{"../":83}],153:[function(e,t,n){angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.collapse","ui.bootstrap.alert","ui.bootstrap.dropdown","ui.bootstrap.position","ui.bootstrap.modal","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.bindHtml","ui.bootstrap.tabs"]),angular.module("ui.bootstrap.tpls",["template/alert/alert.html","template/modal/backdrop.html","template/modal/window.html","template/pagination/pager.html","template/pagination/pagination.html","template/tooltip/tooltip-html-popup.html","template/tooltip/tooltip-html-unsafe-popup.html","template/tooltip/tooltip-popup.html","template/tooltip/tooltip-template-popup.html","template/tabs/tab.html","template/tabs/tabset.html"]),angular.module("ui.bootstrap.collapse",[]).directive("collapse",["$animate",function(e){return{link:function(t,n,r){function i(){n.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),e.addClass(n,"in",{to:{height:n[0].scrollHeight+"px"}}).then(a)}function a(){n.removeClass("collapsing"),n.css({height:"auto"})}function o(){if(!n.hasClass("collapse")&&!n.hasClass("in"))return s();n.css({height:n[0].scrollHeight+"px"}).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),e.removeClass(n,"in",{to:{height:"0"}}).then(s)}function s(){n.css({height:"0"}),n.removeClass("collapsing"),n.addClass("collapse")}t.$watch(r.collapse,function(e){e?o():i()})}}}]),angular.module("ui.bootstrap.alert",[]).controller("AlertController",["$scope","$attrs",function(e,t){e.closeable=!!t.close,this.close=e.close}]).directive("alert",function(){return{restrict:"EA",controller:"AlertController",templateUrl:"template/alert/alert.html",transclude:!0,replace:!0,scope:{type:"@",close:"&"}}}).directive("dismissOnTimeout",["$timeout",function(e){return{require:"alert",link:function(t,n,r,i){e(function(){i.close()},parseInt(r.dismissOnTimeout,10))}}}]),angular.module("ui.bootstrap.dropdown",["ui.bootstrap.position"]).constant("dropdownConfig",{openClass:"open"}).service("dropdownService",["$document","$rootScope",function(e,t){var n=null;this.open=function(t){n||(e.bind("click",r),e.bind("keydown",i)),n&&n!==t&&(n.isOpen=!1),n=t},this.close=function(t){n===t&&(n=null,e.unbind("click",r),e.unbind("keydown",i))};var r=function(e){if(n&&(!e||"disabled"!==n.getAutoClose())){var r=n.getToggleElement();if(!(e&&r&&r[0].contains(e.target))){var i=n.getDropdownElement();e&&"outsideClick"===n.getAutoClose()&&i&&i[0].contains(e.target)||(n.isOpen=!1,t.$$phase||n.$apply())}}},i=function(e){27===e.which?(n.focusToggleElement(),r()):n.isKeynavEnabled()&&/(38|40)/.test(e.which)&&n.isOpen&&(e.preventDefault(),e.stopPropagation(),n.focusDropdownEntry(e.which))}}]).controller("DropdownController",["$scope","$attrs","$parse","dropdownConfig","dropdownService","$animate","$position","$document","$compile","$templateRequest",function(e,t,n,r,i,a,o,s,c,l){var u,d,p=this,f=e.$new(),h=r.openClass,m=angular.noop,g=t.onToggle?n(t.onToggle):angular.noop,v=!1,b=!1;this.init=function(r){p.$element=r,t.isOpen&&(d=n(t.isOpen),m=d.assign,e.$watch(d,function(e){f.isOpen=!!e})),v=angular.isDefined(t.dropdownAppendToBody),b=angular.isDefined(t.keyboardNav),v&&p.dropdownMenu&&(s.find("body").append(p.dropdownMenu),r.on("$destroy",function(){p.dropdownMenu.remove()}))},this.toggle=function(e){return f.isOpen=arguments.length?!!e:!f.isOpen},this.isOpen=function(){return f.isOpen},f.getToggleElement=function(){return p.toggleElement},f.getAutoClose=function(){return t.autoClose||"always"},f.getElement=function(){return p.$element},f.isKeynavEnabled=function(){return b},f.focusDropdownEntry=function(e){var t=p.dropdownMenu?angular.element(p.dropdownMenu).find("a"):angular.element(p.$element).find("ul").eq(0).find("a");switch(e){case 40:angular.isNumber(p.selectedOption)?p.selectedOption=p.selectedOption===t.length-1?p.selectedOption:p.selectedOption+1:p.selectedOption=0;break;case 38:if(!angular.isNumber(p.selectedOption))return;p.selectedOption=0===p.selectedOption?0:p.selectedOption-1}t[p.selectedOption].focus()},f.getDropdownElement=function(){return p.dropdownMenu},f.focusToggleElement=function(){p.toggleElement&&p.toggleElement[0].focus()},f.$watch("isOpen",function(t,n){if(v&&p.dropdownMenu){var r=o.positionElements(p.$element,p.dropdownMenu,"bottom-left",!0),s={top:r.top+"px",display:t?"block":"none"};p.dropdownMenu.hasClass("dropdown-menu-right")?(s.left="auto",s.right=window.innerWidth-(r.left+p.$element.prop("offsetWidth"))+"px"):(s.left=r.left+"px",s.right="auto"),p.dropdownMenu.css(s)}if(a[t?"addClass":"removeClass"](p.$element,h).then(function(){angular.isDefined(t)&&t!==n&&g(e,{open:!!t})}),t)p.dropdownMenuTemplateUrl&&l(p.dropdownMenuTemplateUrl).then(function(e){u=f.$new(),c(e.trim())(u,function(e){var t=e;p.dropdownMenu.replaceWith(t),p.dropdownMenu=t})}),f.focusToggleElement(),i.open(f);else{if(p.dropdownMenuTemplateUrl){u&&u.$destroy();var d=angular.element('<ul class="dropdown-menu"></ul>');p.dropdownMenu.replaceWith(d),p.dropdownMenu=d}i.close(f),p.selectedOption=null}angular.isFunction(m)&&m(e,t)}),e.$on("$locationChangeSuccess",function(){"disabled"!==f.getAutoClose()&&(f.isOpen=!1)}),e.$on("$destroy",function(){f.$destroy()})}]).directive("dropdown",function(){return{controller:"DropdownController",link:function(e,t,n,r){r.init(t),t.addClass("dropdown")}}}).directive("dropdownMenu",function(){return{restrict:"AC",require:"?^dropdown",link:function(e,t,n,r){if(r){var i=n.templateUrl;i&&(r.dropdownMenuTemplateUrl=i),r.dropdownMenu||(r.dropdownMenu=t)}}}}).directive("keyboardNav",function(){return{restrict:"A",require:"?^dropdown",link:function(e,t,n,r){t.bind("keydown",function(e){if(-1!==[38,40].indexOf(e.which)){e.preventDefault(),e.stopPropagation();var n=angular.element(t).find("a");switch(e.keyCode){case 40:angular.isNumber(r.selectedOption)?r.selectedOption=r.selectedOption===n.length-1?r.selectedOption:r.selectedOption+1:r.selectedOption=0;break;case 38:r.selectedOption=0===r.selectedOption?0:r.selectedOption-1}n[r.selectedOption].focus()}})}}}).directive("dropdownToggle",function(){return{require:"?^dropdown",link:function(e,t,n,r){if(r){t.addClass("dropdown-toggle"),r.toggleElement=t;var i=function(i){i.preventDefault(),t.hasClass("disabled")||n.disabled||e.$apply(function(){r.toggle()})};t.bind("click",i),t.attr({"aria-haspopup":!0,"aria-expanded":!1}),e.$watch(r.isOpen,function(e){t.attr("aria-expanded",!!e)}),e.$on("$destroy",function(){t.unbind("click",i)})}}}}),angular.module("ui.bootstrap.position",[]).factory("$position",["$document","$window",function(e,t){function n(e,n){return e.currentStyle?e.currentStyle[n]:t.getComputedStyle?t.getComputedStyle(e)[n]:e.style[n]}function r(e){return"static"===(n(e,"position")||"static")}var i=function(t){for(var n=e[0],i=t.offsetParent||n;i&&i!==n&&r(i);)i=i.offsetParent;return i||n};return{position:function(t){var n=this.offset(t),r={top:0,left:0},a=i(t[0]);a!=e[0]&&(r=this.offset(angular.element(a)),r.top+=a.clientTop-a.scrollTop,r.left+=a.clientLeft-a.scrollLeft);var o=t[0].getBoundingClientRect();return{width:o.width||t.prop("offsetWidth"),height:o.height||t.prop("offsetHeight"),top:n.top-r.top,left:n.left-r.left}},offset:function(n){var r=n[0].getBoundingClientRect();return{width:r.width||n.prop("offsetWidth"),height:r.height||n.prop("offsetHeight"),top:r.top+(t.pageYOffset||e[0].documentElement.scrollTop),left:r.left+(t.pageXOffset||e[0].documentElement.scrollLeft)}},positionElements:function(e,t,n,r){var i,a,o,s,c=n.split("-"),l=c[0],u=c[1]||"center";i=r?this.offset(e):this.position(e),a=t.prop("offsetWidth"),o=t.prop("offsetHeight");var d={center:function(){return i.left+i.width/2-a/2},left:function(){return i.left},right:function(){return i.left+i.width}},p={center:function(){return i.top+i.height/2-o/2},top:function(){return i.top},bottom:function(){return i.top+i.height}};switch(l){case"right":s={top:p[u](),left:d[l]()};break;case"left":s={top:p[u](),left:i.left-a};break;case"bottom":s={top:p[l](),left:d[u]()};break;default:s={top:i.top-o,left:d[u]()}}return s}}}]),angular.module("ui.bootstrap.modal",[]).factory("$$stackedMap",function(){return{createNew:function(){var e=[];return{add:function(t,n){e.push({key:t,value:n})},get:function(t){for(var n=0;n<e.length;n++)if(t==e[n].key)return e[n]},keys:function(){for(var t=[],n=0;n<e.length;n++)t.push(e[n].key);return t},top:function(){return e[e.length-1]},remove:function(t){for(var n=-1,r=0;r<e.length;r++)if(t==e[r].key){n=r;break}return e.splice(n,1)[0]},removeTop:function(){return e.splice(e.length-1,1)[0]},length:function(){return e.length}}}}}).directive("modalBackdrop",["$animate","$modalStack",function(e,t){function n(n,r,i){i.modalInClass&&(e.addClass(r,i.modalInClass),n.$on(t.NOW_CLOSING_EVENT,function(t,n){var a=n();e.removeClass(r,i.modalInClass).then(a)}))}return{restrict:"EA",replace:!0,templateUrl:"template/modal/backdrop.html",compile:function(e,t){return e.addClass(t.backdropClass),n}}}]).directive("modalWindow",["$modalStack","$q","$animate",function(e,t,n){return{restrict:"EA",scope:{index:"@"},replace:!0,transclude:!0,templateUrl:function(e,t){return t.templateUrl||"template/modal/window.html"},link:function(r,i,a){i.addClass(a.windowClass||""),r.size=a.size,r.close=function(t){var n=e.getTop();n&&n.value.backdrop&&"static"!=n.value.backdrop&&t.target===t.currentTarget&&(t.preventDefault(),t.stopPropagation(),e.dismiss(n.key,"backdrop click"))},r.$isRendered=!0;var o=t.defer();a.$observe("modalRender",function(e){"true"==e&&o.resolve()}),o.promise.then(function(){a.modalInClass&&(n.addClass(i,a.modalInClass),r.$on(e.NOW_CLOSING_EVENT,function(e,t){var r=t();n.removeClass(i,a.modalInClass).then(r)}));var t=i[0].querySelectorAll("[autofocus]");t.length?t[0].focus():i[0].focus();var o=e.getTop();o&&e.modalRendered(o.key)})}}}]).directive("modalAnimationClass",[function(){return{compile:function(e,t){t.modalAnimation&&e.addClass(t.modalAnimationClass)}}}]).directive("modalTransclude",function(){return{link:function(e,t,n,r,i){i(e.$parent,function(e){t.empty(),t.append(e)})}}}).factory("$modalStack",["$animate","$timeout","$document","$compile","$rootScope","$q","$$stackedMap",function(e,t,n,r,i,a,o){function s(){for(var e=-1,t=g.keys(),n=0;n<t.length;n++)g.get(t[n]).value.backdrop&&(e=n);return e}function c(e,t){var r=n.find("body").eq(0),i=g.get(e).value;g.remove(e),u(i.modalDomEl,i.modalScope,function(){r.toggleClass(m,g.length()>0)}),l(),t&&t.focus?t.focus():r.focus()}function l(){if(p&&-1==s()){var e=f;u(p,f,function(){e=null}),p=void 0,f=void 0}}function u(t,n,r){function i(){i.done||(i.done=!0,e.leave(t),n.$destroy(),r&&r())}var o,s=null,c=function(){return o||(o=a.defer(),s=o.promise),function(){o.resolve()}};return n.$broadcast(v.NOW_CLOSING_EVENT,c),a.when(s).then(i)}function d(e,t,n){return!e.value.modalScope.$broadcast("modal.closing",t,n).defaultPrevented}var p,f,h,m="modal-open",g=o.createNew(),v={NOW_CLOSING_EVENT:"modal.stack.now-closing"},b=0;return i.$watch(s,function(e){f&&(f.index=e)}),n.bind("keydown",function(e){var t=g.top();if(t&&t.value.keyboard)switch(e.which){case 27:e.preventDefault(),i.$apply(function(){v.dismiss(t.key,"escape key press")});break;case 9:v.loadFocusElementList(t);var n=!1;e.shiftKey?v.isFocusInFirstItem(e)&&(n=v.focusLastFocusableElement()):v.isFocusInLastItem(e)&&(n=v.focusFirstFocusableElement()),n&&(e.preventDefault(),e.stopPropagation())}}),v.open=function(e,t){var a=n[0].activeElement;g.add(e,{deferred:t.deferred,renderDeferred:t.renderDeferred,modalScope:t.scope,backdrop:t.backdrop,keyboard:t.keyboard});var o=n.find("body").eq(0),c=s();if(c>=0&&!p){f=i.$new(!0),f.index=c;var l=angular.element('<div modal-backdrop="modal-backdrop"></div>');l.attr("backdrop-class",t.backdropClass),t.animation&&l.attr("modal-animation","true"),p=r(l)(f),o.append(p)}var u=angular.element('<div modal-window="modal-window"></div>');u.attr({"template-url":t.windowTemplateUrl,"window-class":t.windowClass,size:t.size,index:g.length()-1,animate:"animate"}).html(t.content),t.animation&&u.attr("modal-animation","true");var d=r(u)(t.scope);g.top().value.modalDomEl=d,g.top().value.modalOpener=a,o.append(d),o.addClass(m),v.clearFocusListCache()},v.close=function(e,t){var n=g.get(e);return n&&d(n,t,!0)?(n.value.deferred.resolve(t),c(e,n.value.modalOpener),!0):!n},v.dismiss=function(e,t){var n=g.get(e);return n&&d(n,t,!1)?(n.value.deferred.reject(t),c(e,n.value.modalOpener),!0):!n},v.dismissAll=function(e){for(var t=this.getTop();t&&this.dismiss(t.key,e);)t=this.getTop()},v.getTop=function(){return g.top()},v.modalRendered=function(e){var t=g.get(e);t&&t.value.renderDeferred.resolve()},v.focusFirstFocusableElement=function(){return h.length>0&&(h[0].focus(),!0)},v.focusLastFocusableElement=function(){return h.length>0&&(h[h.length-1].focus(),!0)},v.isFocusInFirstItem=function(e){return h.length>0&&(e.target||e.srcElement)==h[0]},v.isFocusInLastItem=function(e){return h.length>0&&(e.target||e.srcElement)==h[h.length-1]},v.clearFocusListCache=function(){h=[],b=0},v.loadFocusElementList=function(e){if((void 0===h||!h.length0)&&e){var t=e.value.modalDomEl;t&&t.length&&(h=t[0].querySelectorAll("a[href], area[href], input:not([disabled]), button:not([disabled]),select:not([disabled]), textarea:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable=true]"))}},v}]).provider("$modal",function(){var e={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$injector","$rootScope","$q","$templateRequest","$controller","$modalStack",function(t,n,r,i,a,o){function s(e){return e.template?r.when(e.template):i(angular.isFunction(e.templateUrl)?e.templateUrl():e.templateUrl)}function c(e){var n=[];return angular.forEach(e,function(e){(angular.isFunction(e)||angular.isArray(e))&&n.push(r.when(t.invoke(e)))}),n}var l={};return l.open=function(t){var i=r.defer(),l=r.defer(),u=r.defer(),d={result:i.promise,opened:l.promise,rendered:u.promise,close:function(e){return o.close(d,e)},dismiss:function(e){return o.dismiss(d,e)}};if(t=angular.extend({},e.options,t),t.resolve=t.resolve||{},!t.template&&!t.templateUrl)throw new Error("One of template or templateUrl options is required.");var p=r.all([s(t)].concat(c(t.resolve)));return p.then(function(e){var r=(t.scope||n).$new();r.$close=d.close,r.$dismiss=d.dismiss;var s,c={},l=1;t.controller&&(c.$scope=r,c.$modalInstance=d,angular.forEach(t.resolve,function(t,n){c[n]=e[l++]}),s=a(t.controller,c),t.controllerAs&&(t.bindToController&&angular.extend(s,r),r[t.controllerAs]=s)),o.open(d,{scope:r,deferred:i,renderDeferred:u,content:e[0],animation:t.animation,backdrop:t.backdrop,keyboard:t.keyboard,backdropClass:t.backdropClass,windowClass:t.windowClass,windowTemplateUrl:t.windowTemplateUrl,size:t.size})},function(e){i.reject(e)}),p.then(function(){l.resolve(!0)},function(e){l.reject(e)}),d},l}]};return e}),angular.module("ui.bootstrap.pagination",[]).controller("PaginationController",["$scope","$attrs","$parse",function(e,t,n){var r=this,i={$setViewValue:angular.noop},a=t.numPages?n(t.numPages).assign:angular.noop;this.init=function(o,s){i=o,this.config=s,i.$render=function(){r.render()},t.itemsPerPage?e.$parent.$watch(n(t.itemsPerPage),function(t){r.itemsPerPage=parseInt(t,10),e.totalPages=r.calculateTotalPages()}):this.itemsPerPage=s.itemsPerPage,e.$watch("totalItems",function(){e.totalPages=r.calculateTotalPages()}),e.$watch("totalPages",function(t){a(e.$parent,t),e.page>t?e.selectPage(t):i.$render()})},this.calculateTotalPages=function(){var t=this.itemsPerPage<1?1:Math.ceil(e.totalItems/this.itemsPerPage);return Math.max(t||0,1)},this.render=function(){e.page=parseInt(i.$viewValue,10)||1},e.selectPage=function(t,n){(!e.ngDisabled||!n)&&e.page!==t&&t>0&&t<=e.totalPages&&(n&&n.target&&n.target.blur(),i.$setViewValue(t),i.$render())},e.getText=function(t){return e[t+"Text"]||r.config[t+"Text"]},e.noPrevious=function(){return 1===e.page},e.noNext=function(){return e.page===e.totalPages}}]).constant("paginationConfig",{itemsPerPage:10,boundaryLinks:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0}).directive("pagination",["$parse","paginationConfig",function(e,t){return{restrict:"EA",scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@",ngDisabled:"="},require:["pagination","?ngModel"],controller:"PaginationController",templateUrl:"template/pagination/pagination.html",replace:!0,link:function(n,r,i,a){function o(e,t,n){return{number:e,text:t,active:n}}function s(e,t){var n=[],r=1,i=t,a=angular.isDefined(u)&&u<t;a&&(d?(r=Math.max(e-Math.floor(u/2),1),(i=r+u-1)>t&&(i=t,r=i-u+1)):(r=(Math.ceil(e/u)-1)*u+1,i=Math.min(r+u-1,t)));for(var s=r;s<=i;s++){var c=o(s,s,s===e);n.push(c)}if(a&&!d){if(r>1){var l=o(r-1,"...",!1);n.unshift(l)}if(i<t){var p=o(i+1,"...",!1);n.push(p)}}return n}var c=a[0],l=a[1];if(l){var u=angular.isDefined(i.maxSize)?n.$parent.$eval(i.maxSize):t.maxSize,d=angular.isDefined(i.rotate)?n.$parent.$eval(i.rotate):t.rotate;n.boundaryLinks=angular.isDefined(i.boundaryLinks)?n.$parent.$eval(i.boundaryLinks):t.boundaryLinks,n.directionLinks=angular.isDefined(i.directionLinks)?n.$parent.$eval(i.directionLinks):t.directionLinks,c.init(l,t),i.maxSize&&n.$parent.$watch(e(i.maxSize),function(e){u=parseInt(e,10),c.render()});var p=c.render;c.render=function(){p(),n.page>0&&n.page<=n.totalPages&&(n.pages=s(n.page,n.totalPages))}}}}}]).constant("pagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("pager",["pagerConfig",function(e){return{restrict:"EA",scope:{totalItems:"=",previousText:"@",nextText:"@"},require:["pager","?ngModel"],controller:"PaginationController",templateUrl:"template/pagination/pager.html",replace:!0,link:function(t,n,r,i){var a=i[0],o=i[1];o&&(t.align=angular.isDefined(r.align)?t.$parent.$eval(r.align):e.align,a.init(o,e))}}}]),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.bindHtml"]).provider("$tooltip",function(){function e(e){var t=/[A-Z]/g;return e.replace(t,function(e,t){return(t?"-":"")+e.toLowerCase()})}var t={placement:"top",animation:!0,popupDelay:0,useContentExp:!1},n={mouseenter:"mouseleave",click:"click",focus:"blur"},r={};this.options=function(e){angular.extend(r,e)},this.setTriggers=function(e){angular.extend(n,e)},this.$get=["$window","$compile","$timeout","$document","$position","$interpolate",function(i,a,o,s,c,l){return function(i,u,d,p){function f(e){var t=e||p.trigger||d;return{show:t,hide:n[t]||t}}p=angular.extend({},t,r,p);var h=e(i),m=l.startSymbol(),g=l.endSymbol(),v="<div "+h+'-popup title="'+m+"title"+g+'" '+(p.useContentExp?'content-exp="contentExp()" ':'content="'+m+"content"+g+'" ')+'placement="'+m+"placement"+g+'" popup-class="'+m+"popupClass"+g+'" animation="animation" is-open="isOpen"origin-scope="origScope" ></div>';return{restrict:"EA",compile:function(e,t){var n=a(v);return function(e,t,r,a){function l(){E.isOpen?h():d()}function d(){C&&!e.$eval(r[u+"Enable"])||(y(),E.popupDelay?k||(k=o(m,E.popupDelay,!1),k.then(function(e){e()})):m()())}function h(){e.$apply(function(){g()})}function m(){return k=null,S&&(o.cancel(S),S=null),(p.useContentExp?E.contentExp():E.content)?(v(),w.css({top:0,left:0,display:"block"}),E.$digest(),O(),E.isOpen=!0,E.$apply(),O):angular.noop}function g(){E.isOpen=!1,o.cancel(k),k=null,E.animation?S||(S=o(b,500)):b()}function v(){w&&b(),A=E.$new(),w=n(A,function(e){$?s.find("body").append(e):t.after(e)}),p.useContentExp&&A.$watch("contentExp()",function(e){z(),!e&&E.isOpen&&g()})}function b(){S=null,w&&(w.remove(),w=null),A&&(A.$destroy(),A=null)}function y(){x(),M(),_()}function x(){E.popupClass=r[u+"Class"]}
7function M(){var e=r[u+"Placement"];E.placement=angular.isDefined(e)?e:p.placement}function _(){var e=r[u+"PopupDelay"],t=parseInt(e,10);E.popupDelay=isNaN(t)?p.popupDelay:t}var w,A,S,k,$=!!angular.isDefined(p.appendToBody)&&p.appendToBody,T=f(void 0),C=angular.isDefined(r[u+"Enable"]),E=e.$new(!0),O=function(){if(w){var e=c.positionElements(t,w,E.placement,$);e.top+="px",e.left+="px",w.css(e)}},z=function(){o(O,0,!1)};E.origScope=e,E.isOpen=!1,E.contentExp=function(){return e.$eval(r[i])},p.useContentExp||r.$observe(i,function(e){E.content=e,z(),!e&&E.isOpen&&g()}),r.$observe("disabled",function(e){e&&E.isOpen&&g()}),r.$observe(u+"Title",function(e){E.title=e,z()}),r.$observe(u+"Placement",function(){E.isOpen&&o(function(){M(),m()()},0,!1)});var L=function(){t.unbind(T.show,d),t.unbind(T.hide,h)};!function(){var e=r[u+"Trigger"];L(),T=f(e),T.show===T.hide?t.bind(T.show,l):(t.bind(T.show,d),t.bind(T.hide,h))}();var N=e.$eval(r[u+"Animation"]);E.animation=angular.isDefined(N)?!!N:p.animation;var P=e.$eval(r[u+"AppendToBody"]);$=angular.isDefined(P)?P:$,$&&e.$on("$locationChangeSuccess",function(){E.isOpen&&g()}),e.$on("$destroy",function(){o.cancel(S),o.cancel(k),L(),b(),E=null})}}}}}]}).directive("tooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(e,t,n,r){return{link:function(i,a,o){var s,c,l,u=i.$eval(o.tooltipTemplateTranscludeScope),d=0,p=function(){c&&(c.remove(),c=null),s&&(s.$destroy(),s=null),l&&(e.leave(l).then(function(){c=null}),c=l,l=null)};i.$watch(t.parseAsResourceUrl(o.tooltipTemplateTransclude),function(t){var o=++d;t?(r(t,!0).then(function(r){if(o===d){var i=u.$new(),c=r,f=n(c)(i,function(t){p(),e.enter(t,a)});s=i,l=f,s.$emit("$includeContentLoaded",t)}},function(){o===d&&(p(),i.$emit("$includeContentError",t))}),i.$emit("$includeContentRequested",t)):p()}),i.$on("$destroy",p)}}}]).directive("tooltipClasses",function(){return{restrict:"A",link:function(e,t,n){e.placement&&t.addClass(e.placement),e.popupClass&&t.addClass(e.popupClass),e.animation()&&t.addClass(n.tooltipAnimationClass)}}}).directive("tooltipPopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-popup.html"}}).directive("tooltip",["$tooltip",function(e){return e("tooltip","tooltip","mouseenter")}]).directive("tooltipTemplatePopup",function(){return{restrict:"EA",replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"template/tooltip/tooltip-template-popup.html"}}).directive("tooltipTemplate",["$tooltip",function(e){return e("tooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("tooltipHtmlPopup",function(){return{restrict:"EA",replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-popup.html"}}).directive("tooltipHtml",["$tooltip",function(e){return e("tooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]).directive("tooltipHtmlUnsafePopup",function(){return{restrict:"EA",replace:!0,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"template/tooltip/tooltip-html-unsafe-popup.html"}}).value("tooltipHtmlUnsafeSuppressDeprecated",!1).directive("tooltipHtmlUnsafe",["$tooltip","tooltipHtmlUnsafeSuppressDeprecated","$log",function(e,t,n){return t||n.warn("tooltip-html-unsafe is now deprecated. Use tooltip-html or tooltip-template instead."),e("tooltipHtmlUnsafe","tooltip","mouseenter")}]),angular.module("ui.bootstrap.bindHtml",[]).value("$bindHtmlUnsafeSuppressDeprecated",!1).directive("bindHtmlUnsafe",["$log","$bindHtmlUnsafeSuppressDeprecated",function(e,t){return function(n,r,i){t||e.warn("bindHtmlUnsafe is now deprecated. Use ngBindHtml instead"),r.addClass("ng-binding").data("$binding",i.bindHtmlUnsafe),n.$watch(i.bindHtmlUnsafe,function(e){r.html(e||"")})}}]),angular.module("ui.bootstrap.tabs",[]).controller("TabsetController",["$scope",function(e){var t=this,n=t.tabs=e.tabs=[];t.select=function(e){angular.forEach(n,function(t){t.active&&t!==e&&(t.active=!1,t.onDeselect())}),e.active=!0,e.onSelect()},t.addTab=function(e){n.push(e),1===n.length&&!1!==e.active?e.active=!0:e.active?t.select(e):e.active=!1},t.removeTab=function(e){var i=n.indexOf(e);if(e.active&&n.length>1&&!r){var a=i==n.length-1?i-1:i+1;t.select(n[a])}n.splice(i,1)};var r;e.$on("$destroy",function(){r=!0})}]).directive("tabset",function(){return{restrict:"EA",transclude:!0,replace:!0,scope:{type:"@"},controller:"TabsetController",templateUrl:"template/tabs/tabset.html",link:function(e,t,n){e.vertical=!!angular.isDefined(n.vertical)&&e.$parent.$eval(n.vertical),e.justified=!!angular.isDefined(n.justified)&&e.$parent.$eval(n.justified)}}}).directive("tab",["$parse","$log",function(e,t){return{require:"^tabset",restrict:"EA",replace:!0,templateUrl:"template/tabs/tab.html",transclude:!0,scope:{active:"=?",heading:"@",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},link:function(n,r,i,a,o){n.$watch("active",function(e){e&&a.select(n)}),n.disabled=!1,i.disable&&n.$parent.$watch(e(i.disable),function(e){n.disabled=!!e}),i.disabled&&(t.warn('Use of "disabled" attribute has been deprecated, please use "disable"'),n.$parent.$watch(e(i.disabled),function(e){n.disabled=!!e})),n.select=function(){n.disabled||(n.active=!0)},a.addTab(n),n.$on("$destroy",function(){a.removeTab(n)}),n.$transcludeFn=o}}}]).directive("tabHeadingTransclude",[function(){return{restrict:"A",require:"^tab",link:function(e,t,n,r){e.$watch("headingElement",function(e){e&&(t.html(""),t.append(e))})}}}]).directive("tabContentTransclude",function(){function e(e){return e.tagName&&(e.hasAttribute("tab-heading")||e.hasAttribute("data-tab-heading")||"tab-heading"===e.tagName.toLowerCase()||"data-tab-heading"===e.tagName.toLowerCase())}return{restrict:"A",require:"^tabset",link:function(t,n,r){var i=t.$eval(r.tabContentTransclude);i.$transcludeFn(i.$parent,function(t){angular.forEach(t,function(t){e(t)?i.headingElement=t:n.append(t)})})}}}),angular.module("template/alert/alert.html",[]).run(["$templateCache",function(e){e.put("template/alert/alert.html",'<div class="alert" ng-class="[\'alert-\' + (type || \'warning\'), closeable ? \'alert-dismissible\' : null]" role="alert">\n <button ng-show="closeable" type="button" class="close" ng-click="close($event)">\n <span aria-hidden="true">&times;</span>\n <span class="sr-only">Close</span>\n </button>\n <div ng-transclude></div>\n</div>\n')}]),angular.module("template/modal/backdrop.html",[]).run(["$templateCache",function(e){e.put("template/modal/backdrop.html",'<div class="modal-backdrop"\n modal-animation-class="fade"\n modal-in-class="in"\n ng-style="{\'z-index\': 1040 + (index && 1 || 0) + index*10}"\n></div>\n')}]),angular.module("template/modal/window.html",[]).run(["$templateCache",function(e){e.put("template/modal/window.html",'<div modal-render="{{$isRendered}}" tabindex="-1" role="dialog" class="modal"\n modal-animation-class="fade"\n modal-in-class="in"\n ng-style="{\'z-index\': 1050 + index*10, display: \'block\'}" ng-click="close($event)">\n <div class="modal-dialog" ng-class="size ? \'modal-\' + size : \'\'"><div class="modal-content" modal-transclude></div></div>\n</div>\n')}]),angular.module("template/pagination/pager.html",[]).run(["$templateCache",function(e){e.put("template/pagination/pager.html",'<ul class="pager">\n <li ng-class="{disabled: noPrevious(), previous: align}"><a href ng-click="selectPage(page - 1, $event)">{{::getText(\'previous\')}}</a></li>\n <li ng-class="{disabled: noNext(), next: align}"><a href ng-click="selectPage(page + 1, $event)">{{::getText(\'next\')}}</a></li>\n</ul>')}]),angular.module("template/pagination/pagination.html",[]).run(["$templateCache",function(e){e.put("template/pagination/pagination.html",'<ul class="pagination">\n <li ng-if="::boundaryLinks" ng-class="{disabled: noPrevious()||ngDisabled}"><a href ng-click="selectPage(1, $event)">{{::getText(\'first\')}}</a></li>\n <li ng-if="::directionLinks" ng-class="{disabled: noPrevious()||ngDisabled}"><a href ng-click="selectPage(page - 1, $event)">{{::getText(\'previous\')}}</a></li>\n <li ng-repeat="page in pages track by $index" ng-class="{active: page.active,disabled: ngDisabled&&!page.active}"><a href ng-click="selectPage(page.number, $event)">{{page.text}}</a></li>\n <li ng-if="::directionLinks" ng-class="{disabled: noNext()||ngDisabled}"><a href ng-click="selectPage(page + 1, $event)">{{::getText(\'next\')}}</a></li>\n <li ng-if="::boundaryLinks" ng-class="{disabled: noNext()||ngDisabled}"><a href ng-click="selectPage(totalPages, $event)">{{::getText(\'last\')}}</a></li>\n</ul>\n')}]),angular.module("template/tooltip/tooltip-html-popup.html",[]).run(["$templateCache",function(e){e.put("template/tooltip/tooltip-html-popup.html",'<div class="tooltip"\n tooltip-animation-class="fade"\n tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner" ng-bind-html="contentExp()"></div>\n</div>\n')}]),angular.module("template/tooltip/tooltip-html-unsafe-popup.html",[]).run(["$templateCache",function(e){e.put("template/tooltip/tooltip-html-unsafe-popup.html",'<div class="tooltip"\n tooltip-animation-class="fade"\n tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner" bind-html-unsafe="content"></div>\n</div>\n')}]),angular.module("template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(e){e.put("template/tooltip/tooltip-popup.html",'<div class="tooltip"\n tooltip-animation-class="fade"\n tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner" ng-bind="content"></div>\n</div>\n')}]),angular.module("template/tooltip/tooltip-template-popup.html",[]).run(["$templateCache",function(e){e.put("template/tooltip/tooltip-template-popup.html",'<div class="tooltip"\n tooltip-animation-class="fade"\n tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner"\n tooltip-template-transclude="contentExp()"\n tooltip-template-transclude-scope="originScope()"></div>\n</div>\n')}]),angular.module("template/tabs/tab.html",[]).run(["$templateCache",function(e){e.put("template/tabs/tab.html",'<li ng-class="{active: active, disabled: disabled}">\n <a href="#" ng-click="$event.preventDefault(); select()" ng-disabled="disabled" tab-heading-transclude>{{heading}}</a>\n</li>\n')}]),angular.module("template/tabs/tabset.html",[]).run(["$templateCache",function(e){e.put("template/tabs/tabset.html",'<div>\n <ul class="nav nav-faux-{{type || \'tabs\'}}" ng-class="{\'nav-stacked\': vertical, \'nav-justified\': justified}" ng-transclude></ul>\n <div class="tab-content">\n <div class="tab-pane" \n ng-repeat="tab in tabs" \n ng-class="{active: tab.active}"\n tab-content-transclude="tab">\n </div>\n </div>\n</div>\n')}])},{}],154:[function(e,t,n){"use strict";function r(e,t,n,r){n.getAnnouncements({showAll:!0}).then(function(t){e.accountNumber=t.data,e.alerts={unseen:o(t.data,{seen:!1})}}),r.asyncCurrent(function(t){e.user=t})}function i(){return{templateUrl:"js/components/userInfo/userInfo.html",restrict:"E",replace:!0,scope:{},controller:r}}r.$inject=["$scope","AccountService","AnnouncementService","User"];var a=e("../"),o=e("lodash/filter");a.directive("userInfo",i)},{"../":83,"lodash/filter":496}],155:[function(e,t,n){"use strict";function r(e,t,n,r,i,a){function o(e){i.getSystemGroups(e).success(function(e){t.groups=e})}t.undoDeleteGroup=null,t.groupLimit=4,t.showAll=!1,t.$on("modal.closing",n.hide),t.closeToast=n.hide,t.toggleShowAll=function(){t.showAll=!t.showAll},t.undoDelete=function(){a.addSystems(t.undoDeleteGroup,t.system).success(function(){t.undoDeleteGroup=null,o(t.getUUID()),e.$broadcast("reload:data"),n.hide()})},t.showToast=function(e,r,i){var a=e+" "+r;t.toastcontent="System deleted from '"+i+"' group",n.show({templateUrl:"js/components/toasts/undoDeleteWithClose.html",position:a,toastClass:"stickyToast delete-system-from-group",controller:"viewSystemGroupsCtrl",hideDelay:0,scope:t,preserveScope:!0})},t.getUUID=function(){return t.system.machine_id?t.system.machine_id:t.system.system_id},t.groupSelected=function(e){t.$parent.$parent.close(),a.setCurrent(e),r.go("app.inventory")},t.deleteSystemFromGroup=function(n){a.removeSystem(n,t.system).success(function(){t.undoDeleteGroup=n,o(t.getUUID()),e.$broadcast("reload:data")})},t.inGroup=function(){return!!t.groups&&t.groups.length>0},o(t.getUUID())}function i(){return{templateUrl:"js/components/viewSystemGroups/viewSystemGroups.html",restrict:"E",controller:r}}r.$inject=["$rootScope","$scope","$mdToast","$state","System","Group"];var a=e("../");a.directive("viewSystemGroups",i),a.controller("viewSystemGroupsCtrl",r)},{"../":83}],156:[function(e,t,n){"use strict";function r(e,t,n,r,i){e.$watch("webhook",function(n){if(n.active)if(null===n.status)e.status="gray",e.tooltip=t.getString("Unknown - no recent deliveries");else if(n.status.success)e.status="green",e.tooltip=t.getString("Recent deliveries successful");else{e.status="red";var r=t.getString("A recent delivery failed");e.tooltip=r+": "+n.status.error}else e.status="gray",e.tooltip=t.getString("Webhook inactive")},!0),e.details=function(e){return i.get(e.id).then(function(e){return r.renderTemplate(a,{webhook:e.data})}).then(function(e){return n({showConfirmButton:!1,showCancelButton:!1,type:null,title:"Most Recent Event",html:e})})}}function i(){return{scope:{webhook:"<"},templateUrl:"js/components/webhooks/webhookStatusIcon/webhookStatusIcon.html",restrict:"E",replace:!0,controller:r}}r.$inject=["$scope","gettextCatalog","sweetAlert","TemplateService","Webhooks"];var a="js/components/webhooks/webhookStatusModal/webhookStatusModal.html";e("../../").directive("webhookStatusIcon",i)},{"../../":83}],157:[function(e,t,n){"use strict";function r(){return{scope:{yes:"=",no:"=",text:"@"},templateUrl:"js/components/yesNo/yesNo.html",restrict:"EC"}}e("../").directive("yesNo",r)},{"../":83}],158:[function(e,t,n){"use strict";function r(e,t,n,r,s,c,l,u,d,p){n.strictMode(!1),r.html5Mode(!0).hashPrefix("!"),t.otherwise("/"),t.when("/error_infos","/rules/admin/"),t.when("/info/security","/security/"),t.rule(function(e,t){var n=t.url();if(!("/"===n[n.length-1]||n.indexOf("/?")>-1))return n.indexOf("?")>-1?n.replace("?","/?"):n+"/"}),l.disableAutoScrolling(),s.interceptors.push(a),s.interceptors.push(i),s.interceptors.push(o),u.classNameFilter(/ng-animate-enabled/),c.debugInfoEnabled(!1),d.options({appendToBody:!0,trigger:"mouseenter",placement:"top"}),p.maxSize=5,p.previousText="«",p.nextText="»"}r.$inject=["$stateProvider","$urlRouterProvider","$urlMatcherFactoryProvider","$locationProvider","$httpProvider","$compileProvider","$anchorScrollProvider","$animateProvider","$tooltipProvider","paginationConfig"];var i=e("./interceptors/auth"),a=e("./interceptors/xomit"),o=e("./interceptors/error");t.exports=r},{"./interceptors/auth":168,"./interceptors/error":169,"./interceptors/xomit":170}],159:[function(e,t,n){"use strict";function r(e){e("all"),e("availability"),e("stability"),e("performance"),e("security")}r.$inject=["gettext"];var i=e("./");i.constant("Categories",["all","availability","stability","performance","security"]),i.controller("__Categories",r)},{"./":163}],160:[function(e,t,n){"use strict";var r=e("./");r.constant("GettingStartedUrl","https://access.redhat.com/products/red-hat-insights"),r.constant("InviteUrl","https://home.corp.redhat.com/webform/evaluation-request-form"),r.constant("QuickFilters",{summaryTypes:{systems:"systems",categories:"categories"}}),r.constant("TrialSku","SER0482"),r.constant("TableToCardsBreakpoint","650px"),r.constant("HttpHeaders",{resourceCount:"X-Resource-Count"}),r.constant("IgnoreAccountList",["939082","1070555","5361051","636204","5526886","730731","5506478","1298305","1337999","5463389","5341931","5557007","5586766","1494526","1460290","1568253","5491806","631105","1191423","5387712","5301816","5606428","5348764","901578","5364511","5597433","633200","5345665","971738","5496022","5582724","5496024","1455657","5538252","5273074","5457785","5301467","5254297","5535221","5274410","5597794","5385776","5596826","5243891","5673127","5594202","5375112","5463401","477931","5582531","5445856","720046","1061991","939054","5351378","761015","895158","5471870","5582336","6","1640157","5357088","1495773","901532","5258694","5505446","940527","5530698","853019","1292438","1212729","5453171","5645132","972614","1034029","958959","1262852","5644938","1626050","1191884","5574082","5618348","5436601","5305464","941133","1456379","5547202","1546454","5309654","540155","1650204","5591454","5440919","1446047","000006","1469411","5524039","5632300","5455085","5513381"])},{"./":163}],161:[function(e,t,n){"use strict";function r(e){var t={};return t={},e.events.forEach(function(n){t[n]=e.name+":"+n}),t}function i(e){var t={};return t={},e.events.forEach(function(e){t[e]=e}),t}var a=e("./"),o=[{name:"cards",events:["expandAll","collapseAll"]},{name:"filters",events:["actionsSelect","age","categorySelect","checkInSelect","incident","maintenanceCategorySelect","populatedProducts","reset","riskOfChangeSelect","totalRisk","tag","removeTag","ansibleSupport","ruleStatus","likelihood","impact"]},{name:"checkboxes",events:["reset"]},{name:"planner",events:["planChanged","planDeleted","reloadTable","plansLoaded","openPlan"]}];a.constant("Events",function(e){var t={};return e.forEach(function(e){"filters"===e.name?t[e.name]=i(e):t[e.name]=r(e)}),t}(o))},{"./":163}],162:[function(e,t,n){"use strict";var r=e("./");r.constant("IncidentFilters",{all:{title:"All",tag:null},incidents:{title:"Incident",tag:"Incidents: Incident"},nonIncidents:{title:"No Incident",tag:"Incidents: No Incident"}}),r.constant("AnsibleSupportFilters",{all:{title:"All",tag:null},supported:{title:"Supported",tag:"Ansible Support: Supported"},notSupported:{title:"Not Supported",tag:"Ansible Support: Not Supported"}}),r.constant("RuleStatusFilters",{all:{title:"All",tag:null},active:{title:"Enabled",tag:"Rule Status: Enabled"},ignored:{title:"Disabled",tag:"Rule Status: Disabled"}}),r.constant("LikelihoodFilters",[{title:"All",tag:null},{title:"Low",tag:"Likelihood: Low"},{title:"Medium",tag:"Likelihood: Medium"},{title:"High",tag:"Likelihood: High"},{title:"Critical",tag:"Likelihood: Critical"}]),r.constant("ImpactFilters",[{title:"All",tag:null},{title:"Low",tag:"Impact: Low"},{title:"Medium",tag:"Impact: Medium"},{title:"High",tag:"Impact: High"},{title:"Critical",tag:"Impact: Critical"}])},{"./":163}],163:[function(e,t,n){"use strict";t.exports=angular.module("insights.constants",[]),function(){var t=e("./index.js");t.categories=e("./categories.js"),t.constants=e("./constants.js"),t.events=e("./events.js"),t.filters=e("./filters.js"),t.index=e("./index.js"),t.products=e("./products.js"),t.ruleStates=e("./ruleStates.js"),t.severites=e("./severites.js")}()},{"./categories.js":159,"./constants.js":160,"./events.js":161,"./filters.js":162,"./index.js":163,"./products.js":164,"./ruleStates.js":165,"./severites.js":166}],164:[function(e,t,n){"use strict";e("./").constant("Products",{rhel:{shortName:"RHEL Server",fullName:"Red Hat Enterprise Linux",code:"rhel",icon:"fa-linux",roles:{host:{code:"host",icon:"fa-linux",fullName:"Red Hat Enterprise Linux System",shortName:"System"}}},rhev:{shortName:"RHV",fullName:"Red Hat Virtualization",code:"rhev",icon:"",roles:{cluster:{code:"cluster",fullName:"Red Hat Virtualization Deployment",shortName:"Deployment",icon:"fa-object-group"},manager:{code:"manager",fullName:"Red Hat Virtualization Manager",shortName:"Manager",icon:"fa-building"},hypervisor:{code:"hypervisor",fullName:"Red Hat Virtualization Hypervisor",shortName:"Hypervisor",icon:"fa-server"}}},ocp:{shortName:"OCP",fullName:"Openshift Compute Platform",code:"ocp",icon:"",roles:{cluster:{code:"cluster",fullName:"Red Hat Openshift Compute Platform",shortName:"Deployment",icon:"fa-cubes"},master:{code:"master",fullName:"Red Hat Openshift Compute Platform Master",shortName:"Master",icon:"fa-home"},node:{code:"node",fullName:"Red Hat Openshift Compute Platform Node",shortName:"Node",icon:"fa-cogs"}}},osp:{shortName:"OSP",fullName:"Red Hat OpenStack Platform",code:"osp",icon:"",roles:{cluster:{code:"cluster",fullName:"Red Hat OpenStack Platform Deployment",shortName:"Deployment",icon:"fa-cubes"},director:{code:"director",fullName:"Red Hat OpenStack Platform Director",shortName:"Director",icon:"fa-home"},compute:{code:"compute",fullName:"Red Hat OpenStack Platform Compute Node",shortName:"Compute",icon:"fa-cogs"},controller:{code:"controller",fullName:"Red Hat OpenStack Platform Controller Node",shortName:"Controller",icon:"fa-wrench"}}},docker:{shortName2:"Container",shortName:"Containers",fullName:"Red Hat Containers",code:"docker",icon:"",roles:{host:{code:"host",fullName:"Red Hat Container Host",shortName:"Host",icon:"fa-ship"},image:{code:"image",fullName:"Red Hat Container Image",shortName:"Image",icon:"fa-archive"},container:{code:"container",fullName:"Red Hat Container",shortName:"Container",icon:"fa-cube"}}}})},{"./":163}],165:[function(e,t,n){"use strict";e("./").constant("RuleStates",["all","active","needs content","inactive","retired"])},{"./":163}],166:[function(e,t,n){"use strict";e("./").constant("Severities",[{label:"All",value:"All",icon:"all",tag:"Total Risk: All"},{label:"Low",value:"INFO",icon:"low",tag:"Total Risk: Low"},{label:"Medium",value:"WARN",icon:"med",tag:"Total Risk: Medium"},{label:"High",value:"ERROR",icon:"high",tag:"Total Risk: High"},{label:"Critical",value:"CRITICAL",icon:"critical",tag:"Total Risk: Critical"}])},{"./":163}],167:[function(e,t,n){"use strict";function r(){angular.bootstrap(document,["insights"])}function i(e){if("loading"!==document.readyState)return void e();document.addEventListener("DOMContentLoaded",e,!1)}var a=!1;window&&window.insightsGlobal&&window.insightsGlobal.isSaas&&(a=!0),void 0===window.angular&&e("angular"),e("angular-resource"),e("angular-ui-router"),e("angular-sanitize"),e("angular-scroll"),e("angular-gettext"),e("angular-cookies"),e("ui-select"),e("angular-gravatar"),e("ng-table"),e("angular-datepicker"),e("ng-infinite-scroll"),e("angular-aria"),e("angular-animate"),e("angular-material"),e("./components/ui-bootstrap-custom"),e("./api"),e("./services"),e("./constants"),e("./providers"),e("./states"),e("./components"),e("./templates");var o=["insights.api","insights.services","insights.constants","insights.providers","insights.components","insights.states","insights.templates","ui.router","ui.bootstrap","ngResource","gettext","ngTable","duScroll","ngCookies","ui.select","ngSanitize","ui.gravatar","datePicker","infinite-scroll","ngAnimate","ngMaterial"];if(a&&(e("angular-loading-bar"),o.push("angular-loading-bar")),angular.module("insights",o),angular.module("insights").value("duScrollBottomSpy",!0),a){angular.module("insights").run(e("./portal/boot")),angular.module("insights").factory("Email",e("./portal/emailOptIn")),angular.module("insights").config(e("./portal/config")),angular.module("insights").config(e("./portal/base_routes")),angular.module("insights").config(e("./portal/routes")),angular.module("insights").config(e("./portal/redirects"));var s=e("jwt-redhat").default;s.onInit(function(){s.isAuthenticated()?i(r):s.login()}),s.init({keycloakOptions:{clientId:"customer-portal"},keycloakInitOptions:{responseMode:"query"}})}else angular.module("insights").config(e("./base_routes"));angular.module("insights").config(e("./routes")),angular.module("insights").config(e("./config")),angular.module("ui.select").run(["$animate",function(e){var t=e.enabled;e.enabled=function(e){return e.hasOwnProperty("length")&&1===e.length&&(e=e[0]),(!e||!e.className.includes("ui-select-choices"))&&t(e)}}]),angular.module("ngMaterial").config(["$mdThemingProvider",function(e){e.theme("default").primaryPalette("blue").accentPalette("grey").warnPalette("red")}]),angular.module("ngMaterial").config(["$mdThemingProvider",function(e){e.definePalette("insightsPrimary",{50:"64e2ff",100:"4bddff",200:"31d8ff",300:"18d3ff",400:"00cefd",500:"00b7ff",600:"00a4ca",700:"0090b1",800:"007b97",900:"00667e",A100:"7ee7ff",A200:"97ebff",A400:"b1f0ff",A700:"005264",contrastDefaultColor:"light",contrastDarkColors:["50","100","200","300","400","A100"],contrastLightColors:void 0}),e.definePalette("insightsAccent",{50:"4c4c4c",100:"9c9c9c",200:"a9a9a9",300:"b6b6b6",400:"c2c2c2",500:"cfcfcf",600:"e9e9e9",700:"f5f5f5",800:"ffffff",900:"ffffff",A100:"e9e9e9",A200:"dcdcdc",A400:"cfcfcf",A700:"ffffff",contrastDefaultColor:"light",contrastDarkColors:["200","300","400","A100"],contrastLightColors:void 0}),e.definePalette("insightsWarn",{50:"ff4d4d",100:"ff3333",200:"ff1a1a",300:"ff0000",400:"e60000",500:"cc0000",600:"b30000",700:"990000",800:"800000",900:"660000",A100:"ff6666",A200:"ff8080",A400:"ff9999",A700:"4d0000",contrastDefaultColor:"light",contrastDarkColors:["50","100","200","300","400","A100"],contrastLightColors:void 0}),e.theme("default").primaryPalette("insightsPrimary",{default:"500","hue-1":"100","hue-2":"800","hue-3":"A100"}).accentPalette("insightsAccent",{default:"500","hue-1":"50","hue-2":"200","hue-3":"800"}).warnPalette("insightsWarn",{default:"500","hue-1":"100","hue-2":"800","hue-3":"A100"})}])},{"./api":15,"./base_routes":31,"./components":83,"./components/ui-bootstrap-custom":153,"./config":158,"./constants":163,"./portal/base_routes":171,"./portal/boot":172,"./portal/config":173,"./portal/emailOptIn":174,"./portal/redirects":175,"./portal/routes":176,"./providers":178,"./routes":180,"./services":198,"./states":230,"./templates":243,angular:263,"angular-animate":245,"angular-aria":247,"angular-cookies":249,"angular-datepicker":250,"angular-gettext":251,"angular-gravatar":252,"angular-loading-bar":253,"angular-material":255,"angular-resource":257,"angular-sanitize":259,"angular-scroll":260,"angular-ui-router":261,"jwt-redhat":270,"ng-infinite-scroll":565,"ng-table":566,"ui-select":828}],168:[function(e,t,n){"use strict";function r(e,t,n){return{responseError:function(r){if(401===r.status)n.bounce();else if(402===r.status){var i=t.get("$state");i&&i.go("app.paymentrequired")}return e.reject(r)}}}r.$inject=["$q","$injector","BounceService"],t.exports=r},{}],169:[function(e,t,n){"use strict";function r(e){return e>=500&&e<600}function i(e,t){return{responseError:function(n){return r(n.status)&&t.setHttpError(n),e.reject(n)}}}i.$inject=["$q","AlertService"],t.exports=i},{}],170:[function(e,t,n){"use strict";function r(){return{request:function(e){return e&&e.headers&&(e.headers["X-Omit"]="WWW-Authenticate"),e}}}t.exports=r},{}],171:[function(e,t,n){"use strict";function r(e){e.state("app",{templateUrl:"js/states/base/app.html",abstract:!0,controller:"AppCtrl"}),e.state("info",{templateUrl:"js/states/base/info.html",abstract:!0})}r.$inject=["$stateProvider"],t.exports=r},{}],172:[function(e,t,n){"use strict";function r(){window.scrollTo(0,0)}function i(e,t){"function"==typeof t.scrollTop?t.scrollTop(e,t,function(e){e&&r()}):t.scrollTop&&r()}function a(e,t,n,r,a,o,s,c,l,u,d,p,f){if(n.isBeta=window.insightsGlobal.isBeta,d.initPendo(),n.$on("$locationChangeSuccess",function(){d.pageLoad()}),n.$on("$stateChangeSuccess",function(e,t,n,r){p.set(t.title),i(r,t)}),o.authenticate){var h=!0;n.$on("$stateChangeStart",function(t,n,i){var c=n.name;"evaluation"===c&&(h=!1),h&&c.startsWith("app.")&&(h=!1,t.preventDefault(),r.go("evaluation",{originalPath:window.location.toString()}));var l=e.hash();l&&(i["#"]=l),!n.unauthenticated&&o.authenticate&&(s.init(),f.optUserIntoCampaigns());var d=s.current;n.permission&&!d.loaded?(t.preventDefault(),s.asyncCurrent(function(e){u.has(e,u.PERMS[n.permission])?a.sync():r.go("app.forbidden")})):n.permission&&!u.has(d,u.PERMS[n.permission])&&r.go("app.forbidden")}),t(function(){l(e.hash())},1)}}a.$inject=["$location","$timeout","$rootScope","$state","$urlRouter","InsightsConfig","User","$document","$anchorScroll","PermissionService","AnalyticsService","TitleService","Email"],t.exports=a},{}],173:[function(e,t,n){"use strict";function r(e,t){e.includeSpinner=!1,e.loadingBarTemplate='<div id="loading-bar" class="ng-animate-enabled">\n <div class="bar">\n <div class="peg"></div>\n </div>\n </div>';var n=window.localStorage.getItem("insights:apiPrefix");n&&t.setApiPrefix(n);var r=window.localStorage.getItem("insights:apiVersion");r&&t.setApiVersion(r),t.setAuthenticate(!0),t.setAllowExport(!0),t.setDoPaf(!0),t.setFetchRelatedSolution(!0);t.setAutoRefresh(36e5),t.setPortal(!0),t.setGettingStartedLink("https://access.redhat.com/products/red-hat-insights#getstarted")}r.$inject=["cfpLoadingBarProvider","InsightsConfigProvider"],t.exports=r},{}],174:[function(e,t,n){"use strict";function r(e,t,n,r){function i(){o||(o=!0,e.init().then(function(e){!1===e.autoOptedIn&&t.getSystemStatus().success(function(e){if(e.count>0)return a()})}))}function a(){return r.subscribe(),n.getCampaigns().success(function(e){return e.forEach(function(e){e.enrolled=!0}),n.saveCampaigns(e).then(function(){return n.saveOptedIn()})})}var o=!1;return{optUserIntoCampaigns:i}}r.$inject=["User","System","Messaging","Blog"],t.exports=r},{}],175:[function(e,t,n){"use strict";function r(e,t,n,r){function i(e,t){n.when(e,function(){window.location=r+t})}function a(e){n.when(e,function(){window.location="/"+window.insightsGlobal.appName+"/overview/"})}i("/getting-started/cloudforms/","#cloudforms"),i("/getting-started/containers/","#containers"),i("/getting-started/direct/","#direct"),i("/getting-started/openshift/","#openshift"),i("/getting-started/osp/","#osp"),i("/getting-started/rhev/","#rhv"),i("/getting-started/rhv/","#rhv"),i("/getting-started/satellite/6/","#satellite6"),i("/getting-started/satellite/5/","#satellite5"),i("/getting-started","#getstarted"),i("/getting-started/","#getstarted"),function(e){n.when(e,function(){window.location="/"+window.insightsGlobal.appName+"/"})}("/info"),-1!==window.location.hostname.indexOf("foo.redhat.com")&&(a("/splash"),a("/info"),a("/"))}r.$inject=["$stateProvider","$locationProvider","$urlRouterProvider","GettingStartedUrl"],t.exports=r},{}],176:[function(e,t,n){"use strict";function r(e,t,n,r,i){e.state("app.forbidden",{url:"/403/",templateUrl:"js/states/pages/views/403.html"}),e.state("app.paymentrequired",{url:"/402/",templateUrl:"js/states/pages/views/402.html"}),e.state("app.config-webhook-edit",{url:"/config/webhooks/:id",templateUrl:"js/states/config/views/webhook-edit.html",controller:"WebhookEditCtrl",title:"Edit Webhook"}).state("app.config",{url:"/config/:tab",templateUrl:"js/states/config/views/config.html",controller:"ConfigCtrl",params:{tab:null},title:"Configuration",hideGroup:!0}),e.state("app.new-announcement",{url:"/announcements/new/",templateUrl:"js/states/announcements/new-announcement.html",controller:"NewAnnouncementCtrl",permission:"CREATE_ANNOUNCEMENT"}).state("app.edit-announcement",{url:"/announcements/:id/edit/",templateUrl:"js/states/announcements/edit-announcement.html",controller:"EditAnnouncementCtrl",permission:"CREATE_ANNOUNCEMENT"}),e.state("app.analytics",{url:"/__analytics",templateUrl:"js/states/analytics/analytics.html",controller:"AnalyticsCtrl"}),n.when("/invite",function(){window.location=i}),e.state("info.security",{url:"/security/",templateUrl:"js/states/security/security.html",controller:"SecurityCtrl",title:"Security",scrollTop:!0,unauthenticated:!0}),e.state("app.edit-topic",{url:"/topics/:id/edit/",templateUrl:"js/states/topics/views/edit-topics.html",controller:"EditTopicCtrl",hideGroup:!0}),e.state("app.admin-topic",{url:"/topics/admin",
8templateUrl:"js/states/topics/views/topic-admin.html",controller:"TopicAdminCtrl",hideGroup:!0}),e.state("invites",{url:"/invite",templateUrl:"js/states/invites/invites.html",controller:"InvitesCtrl"}),n.when("/invite/","/invite")}r.$inject=["$stateProvider","$locationProvider","$urlRouterProvider","GettingStartedUrl","InviteUrl"],t.exports=r},{}],177:[function(e,t,n){"use strict";function r(){function e(){return p+f+"/"}var t="Red Hat Insights",n=0,r=!1,i=!1,a=!1,o=null,s=null,c=null,l=!0,u=!1,d=null,p="/r/insights/",f="v3",h=e(),m=p,g=null,v=null,b=!1,y={"other_linux_system|OTHER_LINUX_SYSTEM":1,"other_linux_system|OTHER_LINUX_SYSTEM_DETECTED":1,"insights_heartbeat|INSIGHTS_HEARTBEAT":1},x=null,M={},_=!0,w=!0,A=!1;return{setTitle:function(e){t=e},setAutoRefresh:function(e){n=e},setAuthenticate:function(e){r=e},setAllowExport:function(e){i=e},setDoPaf:function(e){a=e},setGetReportsErrorCallback:function(e){o=e},setFetchRelatedSolution:function(e){u=e},setActionsShowSystem:function(e){s=e},setSystemShowSystem:function(e){c=e},setGetSystemStatus:function(e){l=e},setGettingStartedLink:function(e){d=e},setApiPrefix:function(t){p=t,h=e()},setApiVersion:function(t){f=t,h=e()},setCanUnregisterSystems:function(e){g=e},setCanIgnoreRules:function(e){v=e},setPortal:function(e){b=e},setRouteStateConfig:function(e){M=e},setOverviewKey:function(e){x=e},setPlannerEnabled:function(e){_=e},setGroupsEnabled:function(e){w=e},setAnsibleRunner:function(e){A=e},$get:["Utils",function(e){return x=x||(e.isBeta()?"overview-beta":"overview-stable"),{title:t,autoRefresh:n,authenticate:r,allowExport:i,doPaf:a,getReportsErrorCallback:o,fetchRelatedSolution:u,actionsShowSystem:s,systemShowSystem:c,getSystemStatus:l,gettingStartedLink:d,apiRoot:h,apiPrefix:p,apiVersion:f,defaultApiPrefix:m,acctKey:"telemetry:account_number",systemAlerts:y,canUnregisterSystems:g,canIgnoreRules:v,isPortal:b,routeStateConfig:M,overviewKey:x,isPlannerEnabled:_,isGroupsEnabled:w,ansibleRunner:A}}]}}e("./").provider("InsightsConfig",r)},{"./":178}],178:[function(e,t,n){"use strict";t.exports=angular.module("insights.providers",[]),function(){var t=e("./index.js");t["config.provider"]=e("./config.provider.js"),t.index=e("./index.js"),t["insightsJwt.provider"]=e("./insightsJwt.provider.js")}()},{"./config.provider.js":177,"./index.js":178,"./insightsJwt.provider.js":179}],179:[function(e,t,n){"use strict";function r(){var t=e("jwt-redhat").default;return t.standardLogout=function(){t.onInit(function(){t.hack&&t.hack.cookies&&t.hack.cookies.remove("rh_sso_sesssion"),t.logout({redirectUri:window.location.origin+"/logout"})})},{$get:["$cookies",function(e){return t.init({keycloakOptions:{clientId:"customer-portal"},keycloakInitOptions:{responseMode:"query"}}),t.hack={},t.hack.cookies=e,t}]}}e("./").provider("InsightsJwt",r)},{"./":178,"jwt-redhat":270}],180:[function(e,t,n){"use strict";function r(e){e.state("app.initial",{template:"",controller:"InitialCtrl"}).state("evaluation",{url:"/evaluation",templateUrl:"js/states/evaluation/evaluation.html",controller:"EvaluationCtrl",title:"evaluation",params:{originalPath:null}}),e.state("app.actions",{url:"/actions",templateUrl:"js/states/actions/actions.html",controller:"ActionsCtrl",params:{category:{value:null,squash:!0}},title:"Actions",actions:!0}).state("app.actions-rule",{url:"/actions/:category/:rule",templateUrl:"js/components/actions/actionsRule/actionsRule.html",controller:"ActionsRuleCtrl",actions:!0,title:"Actions",triggerComplete:!0}).state("app.topic",{url:"/actions/:id?product",templateUrl:"js/states/topics/views/topic-list.html",controller:"TopicRuleListCtrl",title:"Actions",actions:!0,params:{"filters:totalRisk":"All"}}),e.state("app.overview",{url:"/overview/",templateUrl:"js/states/overview/overview.html",controller:"OverviewCtrl",title:"Overview"}),e.state("app.list-policies",{url:"/policies/",templateUrl:"js/states/policies/views/list-policies.html",controller:"ListPoliciesCtrl",title:"Policies"}),e.state("app.view-policy",{url:"/policies/:id",templateUrl:"js/states/policies/views/view-policy.html",controller:"ViewPolicyCtrl",title:"Policies"}),e.state("app.components",{url:"/hidden/components/",templateUrl:"js/states/hidden/components/components.html",controller:"ComponentsCtrl",title:"Components"}),e.state("app.digests",{url:"/reports/executive/",templateUrl:"js/states/digests/digests.html",controller:"DigestsCtrl",title:"Executive Reports"}),e.state("app.inventory",{url:"/inventory?product&roles&osp_deployment&docker_host&sort_field&sort_dir&offline&online&machine&page&pageSize&systemHealth",templateUrl:"js/states/inventory/inventory.html",controller:"InventoryCtrl",title:"Inventory",reloadOnSearch:!1}),e.state("app.rules",{url:"/rules?age&product&roles&osp_deployment&docker_host&category&ansibleSupport&incident&ruleStatus&impact&likelihood&totalRisk&anchor",templateUrl:"js/states/rules/list-rules.html",controller:"ListRuleCtrl",title:"Rules",hideGroup:!0,reloadOnSearch:!1}),e.state("app.maintenance",{url:"/planner/{maintenance_id}?tab&maintenanceCategory",templateUrl:"js/states/maintenance/maintenance.html",controller:"MaintenanceCtrl",title:"Planner",reloadOnSearch:!1,params:{newPlan:!1}}),e.state("app.announcements",{url:"/announcements/",templateUrl:"js/states/announcements/announcements.html",controller:"ListAnnouncementCtrl",params:{announcementId:null}}).state("app.view-announcement",{url:"/announcements/:slug/",templateUrl:"js/states/announcements/view-announcement.html",controller:"ViewAnnouncementCtrl"})}r.$inject=["$stateProvider"],t.exports=r},{}],181:[function(e,t,n){"use strict";function r(e,t,n){var r=t.current,i=r.account_number,a=window.sessionStorage.getItem(n.acctKey);return a&&(i=a),e.$on("account:change",function(t,n){i!=n&&(i=n,e.$broadcast("reload:data"))}),{current:function(e){var t;return i?(t=e||"?",t+="account_number="+i):""},number:function(){return i},queryParam:function(){return{account_number:i}}}}r.$inject=["$rootScope","User","InsightsConfig"],e("./").service("AccountService",r)},{"./":198}],182:[function(e,t,n){"use strict";function r(e){var t=[],n={actions:t,add:function(e){t.push(e)},set:function(e){t.length=0,Array.prototype.push.apply(t,e)},clear:function(){t.length=0}};return n.addExportAction=function(t){n.add({icon:"fa-download",title:e.getString("Export CSV"),fn:t})},n}r.$inject=["gettextCatalog"],e("./").factory("ActionbarService",r)},{"./":198}],183:[function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s,c,l,u,d){var p={},f={},h={};return h.priv=p,h.vars=f,f.allSystems=null,f.data={},f.donutChart=null,f.page=0,f.pageSize=10,f.ruleSystems=null,f.rule=null,f.ruleDetails=null,f.systemNames=null,f.totalRuleSystems=0,d.generateAccessors(h,f),h.mapName=function(e){return f.data[e]&&f.data[e].name?f.data[e].name:e},h.arcClick=function(e){if(!0===e.category)return i.go("app.actions",{category:e.id.toLowerCase()});i.go("app.actions-rule",{category:e.category.toLowerCase(),rule:e.id})},p.buildSystemsQuery=function(e,n){var r=u.buildRequestQueryParams(null,["role"]);return r.rule=encodeURIComponent(h.getRule()),e&&(r.page=n.currentPage-1,r.page_size=n.perPage),u.getOffline()!==u.getOnline()&&(r.offline=u.getOffline().toString()),r.sort_by=t.search().sort_field,r.sort_dir=t.search().sort_direction,r},p.setRuleSystems=function(e,t,n){var r=(e.currentPage-1)*e.perPage;t?f.ruleSystems=n.resources:(f.allSystems=n.resources,f.ruleSystems=f.allSystems.slice(r,p.getPageEnd(f.allSystems,e.currentPage-1,e.perPage))),f.totalRuleSystems=n.total},p.getPageEnd=function(e,t,n){if(null===e)return 0;var r=t*n;return r+n<e.length?r+n:e.length},p.populateAffectedHosts=function(e){var t=[],r=!1;if(e&&e[0]&&e[0].data&&e[0].data.length>0){r=[];for(var i in e[0].data)r.push(e[0].data[i].system_id)}if(r){for(var a in r)t.push(s.getSingleSystem(r[a]).success(function(e){return e}));return n.all(t).then(function(e){if(e){f.systemNames={},f.systems={};for(var t in e){var n=e[t].data,r=n.system_id,i=n.toString;f.systems[r]=n,f.systemNames[r]=i}}})}},h.buildSystemsDeferred=function(e,t){var n=void 0,r=p.buildSystemsQuery(e,t);return u.getParentNode()?(r.includeSelf=!0,n=s.getSystemLinks(u.getParentNode(),r).success(function(n){p.setRuleSystems(t,e,n)})):n=s.getSystemsLatest(r).success(function(n){p.setRuleSystems(t,e,n)}),n},h.initActionsRule=function(e){var t=h.buildSystemsDeferred(!0,e),r=o.byId(h.getRule()).success(function(e){f.ruleDetails=e});return n.all([t,r]).then(function(e){return p.populateAffectedHosts(e)})},h.getActionsRulePage=function(e,t){return h.buildSystemsDeferred(e,t).then(p.populateAffectedHosts)},h.sortActionsRulePage=function(t,n,r){return null!==f.allSystems&&(f.allSystems=e("orderBy")(f.allSystems,r?"-"+n:n)),h.getActionsRulePage(!0,t)},c.autoRefresh&&!isNaN(c.autoRefresh)&&window.setInterval(h.reload,parseInt(c.autoRefresh,10)),h}r.$inject=["$filter","$location","$q","$rootScope","$state","Report","Rule","System","InsightsConfig","ReloadService","FilterService","Utils"],e("./").factory("RhaTelemetryActionsService",r)},{"./":198}],184:[function(e,t,n){"use strict";function r(){function e(e){return r=angular.copy(e)}function t(e,t){if(r.length<t)throw new Error("Cannot set crumb with index "+t+" to array of length "+r.length);r[t]=e}function n(e){r.push(e)}var r=[];return{init:function(t){var n=[{label:"Actions",state:"app.actions",params:{category:null}}];t.category&&n.push({label:t.category,state:"app.topic",params:{id:t.category}}),e(n)},crumbs:r,clear:function(){e([])},get:function(){return r},set:e,setCrumb:t,add:n}}e("./").factory("ActionsBreadcrumbs",r)},{"./":198}],185:[function(e,t,n){"use strict";function r(){var e=[];return{alerts:e,clearHttpError:function(){i(e,"http")},setHttpError:function(t){var n="There was an error retrieving data.";t&&t.data&&(t.data.message&&(n+="<br>"+t.data.message),t.data.internal_error&&t.data.internal_error.reference&&(n+="<br><small>Reference: #"+t.data.internal_error.reference+"</small>")),i(e,"http"),e.push({type:"http",msg:n,level:"danger"})},clear:function(){e.length=0}}}function i(e,t){for(var n=0,r=e.length;n<r;n++)e[n].type===t&&e.splice(n,1)}e("./").service("AlertService",r)},{"./":198}],186:[function(e,t,n){"use strict";function r(e,t,n,r){return o.initPendo=function(){a.pendoBlob(),r.asyncCurrent(function(e){if(void 0!==window.pendo){var t={apiKey:"f210c485-387f-43ad-4eee-f55bab22507f",visitor:{id:e.sso_username,internal:e.is_internal,lang:e.locale},account:{id:e.org_id,account_number:e.account_number}};window.pendo.initialize(t)}})},o.pageLoad=function(){e.doPaf&&a.doGoogleAnalytics(t,r,n)},o}r.$inject=["InsightsConfig","$location","IgnoreAccountList","User"];var i=e("./"),a={},o={};a.sendable=function(e,t){return-1===t.indexOf(e)},a.doGoogleAnalytics=function(e,t,n){t.asyncCurrent(function(){window.ga&&a.sendable(t.current.account_number,n)&&(t.current&&t.current.sso_username&&window.ga("set","dimension1",t.current.sso_username),t.current&&t.current.account_number&&window.ga("set","dimension2",t.current.account_number),window.ga("set","page","/"+window.insightsGlobal.appName+e.path()),window.ga("send","pageview"))})},a.pendoBlob=function(){!function(e,t,n,r,i){var a,o,s,c,l;for(i=e[r]=e[r]||{},i._q=[],a=["initialize","identify","updateOptions","pageLoad"],o=0,s=a.length;o<s;++o)!function(e){i[e]=i[e]||function(){i._q[e===a[0]?"unshift":"push"]([e].concat([].slice.call(arguments,0)))}}(a[o]);c=t.createElement(n),c.async=!0,c.src="https://cdn.pendo.io/agent/static/f210c485-387f-43ad-4eee-f55bab22507f/pendo.js",l=t.getElementsByTagName(n)[0],l.parentNode.insertBefore(c,l)}(window,document,"script","pendo")},i.service("AnalyticsService",r)},{"./":198}],187:[function(e,t,n){"use strict";function r(e,t){var n={},r={showAll:!0};n.unseen={count:0},n.announcements=[],n.loaded=!1;var i=function(e){return t.getAnnouncements(e).success(function(e){n.announcements.length=0,n.unseen.count=0,e.forEach(function(e){!1===e.acked&&(n.unseen.count+=1)}),Array.prototype.push.apply(n.announcements,e)})};return n.init=function(e){return n.loaded=!1,i(e).success(function(){n.loaded=!0})},n.updateAnnouncement=function(e){return t.updateAnnouncement(e)},n.deleteAnnouncement=function(r){t.deleteAnnouncement(r).success(function(){var t=n.announcements.findIndex(function(e){return e.id===r.id});-1!==t&&(n.announcements.splice(t,1),e.$broadcast("announcement:changed",r))})},n.acknowledge=function(r){return t.acknowledge(r).success(function(){n.unseen.count-=1,r.acked=!0,e.$broadcast("announcement:changed",r)})},n.reload=function(e){return i(e||r)},n}r.$inject=["$rootScope","Announcement"],e("./").service("AnnouncementService",r)},{"./":198}],188:[function(e,t,n){"use strict";function r(){var e={},t=null;return e.questions=[],e.resolutions={},e.init=function(n,r,i){null!==t&&r.maintenance_id===t.maintenance_id&&!0!==i||(t=r,e.resolutions={},e.questions=[],n.forEach(function(t){t.hasAnswer=!1,e.questions.push(t)}))},e.saveResolution=function(t,n,r,i,a){e.resolutions[t+"-"+n]={rule_id:t,system_type_id:n,resolution_type:r,description:a},e.questions[i].hasAnswer=!0},e.hasAllQuestionsAnswered=function(){return e.questions.length===Object.keys(e.resolutions).length},e.getResolutionType=function(t){var n=e.getResolution(t.rule_id,t.system_type_id);return void 0===n&&(n=t.resolutions[0]),n=n.resolution_type},e.getResolution=function(t,n){return e.resolutions[t+"-"+n]},e.getFormattedResolutions=function(){var t={ignoreUnsupported:!0,resolutions:[]},n=void 0,r=void 0;for(n in e.resolutions)r=e.resolutions[n],t.resolutions.push({rule_id:r.rule_id,system_type_id:r.system_type_id,resolution_type:r.resolution_type});return t},e}e("./").service("AnsibleService",r)},{"./":198}],189:[function(e,t,n){"use strict";function r(e,t){function n(n,r){var i=t.absUrl().replace(n,r);e.location.href=a(i).addSearch("utm_campaign","BetaSwitchButton").addSearch("utm_medium","webpage").addSearch("utm_source",r.replace(/\//g,"")).toString()}return{goToBeta:function(){n("/insights/","/insightsbeta/")},goToStable:function(){n("/insightsbeta/","/insights/")},checkAndRedirect:function(){JSON.parse(window.localStorage.getItem("betaOptIn"))&&!window.insightsGlobal.isBeta&&n("/insights/","/insightsbeta/")}}}r.$inject=["$window","$location"];var i=e("./"),a=e("urijs");i.service("BetaRedirectService",r)},{"./":198,urijs:831}],190:[function(e,t,n){"use strict";function r(e){return{bounce:function(){e.authenticate&&a.login()}}}r.$inject=["InsightsConfig"];var i=e("./"),a=e("jwt-redhat").default;i.service("BounceService",r)},{"./":198,"jwt-redhat":270}],191:[function(e,t,n){"use strict";function r(){var e={en:"en",es:"es",de:"de",it:"it",ko:"ko",fr:"fr",ja:"ja",pt:"pt",zh:"zh_cn",ru:"ru",zh_CN:"zh_cn"};return{coerce:function(t){if(!t)return"en";var n=void 0;return t=t.toLowerCase(),e.hasOwnProperty(t)?e[t]:t.length>2&&(n=t.slice(0,2),e.hasOwnProperty(n))?e[n]:"en"}}}e("./").service("CoercionService",r)},{"./":198}],192:[function(e,t,n){"use strict";function r(e,t){function n(e){return!!e.overdue||new Date(e.end)>new Date}function r(e){"actions"in e&&(e.actionsDone=e.actions.filter(function(e){return e.done}).length)}function i(e){var t;return e&&(t=new Date(e),t.getTime())?t:null}function s(e){return e.active?"active":e.needs_content?"needs-content":e.retired?"retired":"inactive"}var c={};return c.readArray=function(e){return function(t){return t.map(function(t){return e(t)})}},c.readPlan=function(t){return t.actions=t.actions.filter(function(e){return null!==e.system&&null!==e.rule}),t.actions.forEach(function(e){e.system=c.readSystem(e.system),e.rule.rule_id=e.rule.id,c.readRule(e.rule)}),t.rules=e.groupByObject(t.actions,"rule.id","rule","actions").map(a),t.systems=e.groupByObject(t.actions,"system.system_id","system","actions"),r(t),t.systems.forEach(r),t.rules.forEach(r),t.rules.forEach(function(e){e.ansible=o(e.actions,"rule.ansible")}),t.start=i(t.start),t.end=i(t.end),t.end||(t.overdue=!1),t.pending=n(t),t.description&&(t.description=t.description.trim()),t.isReadOnly=function(){return"proposed"===t.suggestion},t},c.readSystem=function(e){return e._name=e.display_name||e.hostname,e},c.readReport=function(e){e.system=c.readSystem(e.system)},c.readRule=function(e){e.severityNum=t.map(function(e){return e.value}).indexOf(e.severity)},c.readRuleState=function(e){e.state=s(e)},c}r.$inject=["Utils","Severities"];var i=e("./"),a=e("lodash/clone"),o=e("lodash/some");i.service("DataUtils",r)},{"./":198,"lodash/clone":486,"lodash/some":544}],193:[function(e,t,n){"use strict";function r(e){return{get:function(t){return e.getDigest(t)},digestsByType:function(t){return e.getDigestsByType(t)}}}r.$inject=["Digest"],e("./").service("DigestService",r)},{"./":198}],194:[function(e,t,n){"use strict";function r(e,t,n,r,i,a,o){var s={1:"INFO",2:"WARN",3:"ERROR",4:"CRITICAL"},c={},l=n.search().age||0,u=n.search().category||"all",d=n.search()[o.filters.incident]||"all",p=n.search()[o.filters.ansibleSupport]||"all",f=n.search()[o.filters.ruleStatus]||"all",h=n.search()[o.filters.likelihood]||0,m=n.search()[o.filters.impact]||0,g="all",v=null,b=[],y=[],x=[],M={},_={},w={},A=n.search().search_term||null,S=!1,k=!1,$=!0,T=!0,C=null;return c.setMachine=function(e){C=e,c.setQueryParam("machine",e)},c.getMachine=function(){return C},c.getAge=function(){return l},c.setAge=function(e){l=Number.parseInt(e),l=0===l?null:l,c.setQueryParam("age",l)},c.setRHELOnly=function(e){k=e},c.getRHELOnly=function(){return k},c.toggleShowFilters=function(){S=!S},c.getShowFilters=function(){return S},c.setShowFilters=function(e){S=e},c.setRolesQueryParam=function(t,r){var i,a=n.search().roles;a=a?a.split(","):[],e.getState(r)?a.push(t):(i=a.indexOf(t),a.splice(i,1)),c.setQueryParam("roles",a.join(","))},c.setOffline=function(e){$=e;var t="all"===e.toString()?null:e.toString();c.setQueryParam("offline",t)},c.setOnline=function(e){T=e,c.setQueryParam("online",e.toString())},c.getOffline=function(){return $},c.getOnline=function(){return T},c.deleteQueryParam=function(e){var t=n.search();t[e]=null,n.search(t)},c.setQueryParam=function(e,t){var r=n.search();r[e]=t,n.search(r)},c.getSearchTerm=function(){return A},c.setSearchTerm=function(e){A=e,c.setQueryParam("search_term",e)},c.setCategory=function(e){u=e,c.setQueryParam("category",e)},c.getCategory=function(){return u},c.setIncidents=function(e){d=e},c.getIncidents=function(){return d},c.setAnsibleSupport=function(e){p=e},c.getAnsibleSupport=function(){return p},c.setRuleStatus=function(e){f=e},c.getRuleStatus=function(){return f},c.setLikelihood=function(e){h=e},c.getLikelihood=function(){return h},c.setImpact=function(e){m=e},c.getImpact=function(){return m},c.clearAll=function(){var e={system_id:"all"};c.setSearchTerm(""),c.setSelectedDockerHost(e),c.setSelectedOSPDeployment(e),c.setSelectedProduct("all"),c.setOnline(!0),c.setOffline(!0),c.doFilter()},c.doFilter=function(){r.$broadcast("filterService:doFilter")},c.getSelectedProduct=function(){return g},c.setSelectedProduct=function(e){g=e,c.setQueryParam("product",e)},c.setParentNode=function(e){v=e},c.getParentNode=function(){return v},c.setDockerHosts=function(e){b=e},c.getDockerHosts=function(){return b},c.setSelectedDockerHost=function(e){M=e,"all"===c.getSelectedDockerHost().system_id?c.setParentNode(null):c.setParentNode(e.system_id),c.setQueryParam("docker_host",e.system_id)},c.getSelectedDockerHost=function(){return M},c.setOCPDeployments=function(e){x=e},c.getSelectedOCPDeployment=function(){return w},c.setSelectedOCPDeployment=function(e){w=e,"all"===c.getSelectedOCPDeployment().system_id?c.setParentNode(null):c.setParentNode(e.system_id),c.setQueryParam("ocp_deployment",e.system_id)},c.setOSPDeployments=function(e){y=e},c.getOSPDeployments=function(){return y},c.setSelectedOSPDeployment=function(e){_=e,"all"===c.getSelectedOSPDeployment().system_id?c.setParentNode(null):c.setParentNode(e.system_id),c.setQueryParam("osp_deployment",e.system_id)},c.getSelectedOSPDeployment=function(){return _},c.buildOSPRolesString=function(){var t=[];return e.getState("inventoryOSPCluster")&&t.push("cluster"),e.getState("inventoryOSPDirector")&&t.push("director"),e.getState("inventoryOSPCompute")&&t.push("compute"),e.getState("inventoryOSPController")&&t.push("controller"),t.toString()},c.buildDockerRolesString=function(){var t=[];return e.getState("inventoryDockerHosts")&&t.push("host"),e.getState("inventoryDockerImages")&&t.push("image"),e.getState("inventoryDockerContainers")&&t.push("container"),t.toString()},c.updateParams=function(e){return!e.search_term&&c.getSearchTerm()&&(e.search_term=c.getSearchTerm()),!e.product&&c.getSelectedProduct()&&(e.product=c.getSelectedProduct()),!e.role&&c.getSelectedProduct()&&("rhev"===c.getSelectedProduct()?e.role=c.buildRHEVRolesString():"docker"===c.getSelectedProduct()?e.role=c.buildDockerRolesString():"osp"===c.getSelectedProduct()&&(e.role=c.buildOSPRolesString())),!e.osp_deployment&&c.getSelectedOSPDeployment()&&c.getSelectedOSPDeployment().system_id&&(e.osp_deployment=c.getSelectedOSPDeployment().system_id),!e.docker_host&&c.getSelectedDockerHost()&&c.getSelectedDockerHost().system_id&&(e.docker_host=c.getSelectedDockerHost().system_id),e.offline||(e.offline=c.getOffline()),e.online||(e.online=c.getOnline()),e},c.parseBrowserQueryParams=function(){var t,r=n.search();if(r.product&&c.setSelectedProduct(r.product),r.search_term&&c.setSearchTerm(r.search_term),r.osp_deployment&&c.setSelectedOSPDeployment({system_id:r.osp_deployment}),r.docker_host&&c.setSelectedDockerHost({system_id:r.docker_host}),r.roles?(t=r.roles.split(","),t.forEach(function(t){"cluster"===t?e.setState("inventoryOSPCluster",!0):"compute"===t?e.setState("inventoryOSPCompute",!0):"director"===t?e.setState("inventoryOSPDirector",!0):"controller"===t?e.setState("inventoryOSPController",!0):"host"===t?e.setState("inventoryDockerHosts",!0):"container"===t?e.setState("inventoryDockerContainers",!0):"image"===t?e.setState("inventoryDockerImages",!0):"hypervisor"===t?e.setState("inventoryRHEVHypervisors",!0):"manager"===t&&e.setState("inventoryRHEVManagers",!0)})):(e.setState("inventoryOSPCluster",!0),e.setState("inventoryOSPCompute",!0),e.setState("inventoryOSPDirector",!0),e.setState("inventoryOSPController",!0),e.setState("inventoryDockerHosts",!0),e.setState("inventoryDockerContainers",!0),e.setState("inventoryDockerImages",!0),e.setState("inventoryOCPCluster",!0),e.setState("inventoryOCPMaster",!0),e.setState("inventoryOCPNodes",!0),e.setState("inventoryRHEVHypervisors",!0),e.setState("inventoryRHEVManagers",!0)),r.severity&&i.map(function(e){return e.value}).forEach(function(t){t===r.severity?e.setState("severityFilters"+t,!0):e.setState("severityFilters"+t,!1)}),r.category&&a.forEach(function(t){t===r.category?e.setState("categoryFilters"+t,!0):e.setState("categoryFilters"+t,!1)}),"false"===r.offline&&"false"===r.online)c.setOffline(!0),c.setOnline(!0);else{if(r.offline){var o="true"===r.offline;c.setOffline(o)}if(r.online){var s="true"===r.online;c.setOnline(s)}}r.machine&&c.setMachine(r.machine)},c.buildRHEVRolesString=function(){var t=[];return e.getState("inventoryRHEVManagers")&&t.push("manager"),e.getState("inventoryRHEVHypervisors")&&t.push("hypervisor"),e.getState("inventoryRHEVDeployments")&&t.push("cluster"),t.toString()},c.buildRequestQueryParams=function(r,a){function o(e,t){var n=!1;return-1!==t.indexOf(e)&&(n=!0),n}function g(e){var t=!0;return o(e,a)&&!o(e,r)&&(t=!1),t}var v=n.search(),b={},y=c.getSelectedOSPDeployment().system_id,x=c.getSelectedDockerHost().system_id;return r||(r=[]),a||(a=[]),c.getSearchTerm()&&g("search_term")&&(b.search_term=c.getSearchTerm()),g("report_count")&&("affected"===v.systemHealth?b.report_count="gt0":"healthy"===v.systemHealth&&(b.report_count="lt1")),"rhel"===c.getSelectedProduct()&&g("product_code")?b.product_code="rhel":"osp"===c.getSelectedProduct()?(g("product_code")&&(b.product_code="osp"),g("role")&&(b.role=c.buildOSPRolesString())):"rhev"===c.getSelectedProduct()?(g("product_code")&&(b.product_code="rhev"),g("role")&&(b.role=c.buildRHEVRolesString())):"docker"===c.getSelectedProduct()?(g("product_code")&&(b.product_code="docker"),g("role")&&(b.role=c.buildDockerRolesString())):"ocp"===c.getSelectedProduct()&&g("product_code")&&(b.product_code="ocp"),y&&"all"!==y&&g("root")&&(b.root=y),x&&"all"!==x&&g("root")&&(b.root=x),t.current().id&&g("group")&&(b.group=t.current().id),g("severity")&&i.map(function(e){return e.value}).forEach(function(t){e.getState("severityFilters"+t)&&"All"!==t&&(b.severity=t)}),g("age")&&l&&0!==Number.parseInt(l)&&(b.publish_date="-"+l+"days"),g("category")&&"all"!==u&&(b.category=u),g("rec_impact")&&s[m]&&(b.rec_impact=s[m]),g("rec_likelihood")&&s[h]&&(b.rec_likelihood=s[h]),g("ansible")&&"all"!==p&&("supported"===p?b.ansible=!0:"notSupported"===p&&(b.ansible=!1)),g("ignoredRules")&&"all"!==f&&(b.ignoredRules=f),g("incidents")&&"all"!==d&&("incidents"===d?b.hasIncidents=!0:"nonIncidents"===d&&(b.hasIncidents=!1)),b},c}r.$inject=["MultiButtonService","Group","$location","$rootScope","Severities","Categories","Events"],e("./").factory("FilterService",r)},{"./":198}],195:[function(e,t,n){"use strict";function r(){function e(e){return n.length=0,Array.prototype.push.apply(n,e),n}function t(e){n.push(e)}var n=[];return{sections:function(){return n},setSections:e,addSection:t}}e("./").factory("GettingStarted",r)},{"./":198}],196:[function(e,t,n){"use strict";function r(e,t,n,r){function i(n){return n&&"string"==typeof n&&n.length?c(r.groups,function(e){return e.display_name===n})?e.reject(t.getString("Name already used")):e.resolve():e.reject(t.getString("Please specify a system group name"))}function u(e){function i(t){var n=a(e,function(e){return s(e,"system_id")});return r.addSystems(t,n).then(function(){return t})}if(!r.groups.length)return d().then(i).then(r.setCurrent);var c=o(r.groups,"display_name");c.unshift({display_name:t.getString("Create new System Group")});var l=a(c,"display_name");return n({title:t.getString("Group Systems"),type:void 0,input:"select",inputOptions:l,confirmButtonText:t.getString("OK")}).then(function(t){var n=parseInt(t);return 0===n?d().then(i).then(r.setCurrent).catch(function(){return u(e)}):i(c[n]).then(r.setCurrent)})}function d(){return n({title:t.getString("Create new System Group"),input:"text",type:void 0,confirmButtonText:t.getString("Create"),inputPlaceholder:t.getString("Group name"),inputValidator:i}).then(function(e){return r.createGroup({display_name:e})})}function p(e){var i=t.getString("You will not be able to recover <code>{{name}}</code>",{name:l(e.display_name)});n({html:i}).then(function(){return r.deleteGroup(e)}).then(function(){e.id===r.current().id&&r.setCurrent()})}return{groupSystems:u,createGroup:d,deleteGroup:p}}r.$inject=["$q","gettextCatalog","sweetAlert","Group"];var i=e("./"),a=e("lodash/map"),o=e("lodash/sortBy"),s=e("lodash/pick"),c=e("lodash/some"),l=e("lodash/escape");i.service("GroupService",r)},{"./":198,"lodash/escape":494,"lodash/map":527,"lodash/pick":538,"lodash/some":544,"lodash/sortBy":545}],197:[function(e,t,n){"use strict";function r(e,t){function n(e){var t=0;e.forEach(function(e){e.hitCount>0&&!e.acked&&t++}),r.incidentRulesWithHitsCount=t}var r={},i=[];return r.incidentRulesWithHitsCount=0,r.affectedSystemCount=0,r.init=function(){return 0===i.length?r.loadIncidents():e.resolve(!0)},r.loadIncidents=function(){return t.get("incidents").success(function(e){i=e.rules,n(e.rules),r.affectedSystemCount=e.affectedSystemCount})},r.isIncident=function(e){return void 0!==i.find(function(t){return t.rule_id===e})},r}r.$inject=["$q","Topic"],e("./").factory("IncidentsService",r)},{"./":198}],198:[function(e,t,n){"use strict";t.exports=angular.module("insights.services",[]),function(){var t=e("./index.js");t["account.service"]=e("./account.service.js"),t["actionbar.service"]=e("./actionbar.service.js"),t["actions.service"]=e("./actions.service.js"),t["actionsBreadcrumbs.service"]=e("./actionsBreadcrumbs.service.js"),t["alert.service"]=e("./alert.service.js"),t["analytics.service"]=e("./analytics.service.js"),t["announcement.service"]=e("./announcement.service.js"),t["ansible.service"]=e("./ansible.service.js"),t["betaRedirect.service"]=e("./betaRedirect.service.js"),t["bounce.service"]=e("./bounce.service.js"),t["coercion.service"]=e("./coercion.service.js"),t["dataUtils.service"]=e("./dataUtils.service.js"),t["digest.service"]=e("./digest.service.js"),t["filter.service"]=e("./filter.service.js"),t["gettingStarted.service"]=e("./gettingStarted.service.js"),t["group.service"]=e("./group.service.js"),t["incidents.service"]=e("./incidents.service.js"),t.index=e("./index.js"),t["inventory.service"]=e("./inventory.service.js"),t["listType.service"]=e("./listType.service.js"),t["maintenance.service"]=e("./maintenance.service.js"),t.modalUtils=e("./modalUtils.js"),t["multibutton.service"]=e("./multibutton.service.js"),t["overview.service"]=e("./overview.service.js"),t["permalink.service"]=e("./permalink.service.js"),t["permission.service"]=e("./permission.service.js"),t["platform.service"]=e("./platform.service.js"),t["preference.service"]=e("./preference.service.js"),t["reload.service"]=e("./reload.service.js"),t["rule.service"]=e("./rule.service.js"),t["ruleAdmin.service"]=e("./ruleAdmin.service.js"),t["rulePreview.service"]=e("./rulePreview.service.js"),t["strata.service"]=e("./strata.service.js"),t["sweetalert.service"]=e("./sweetalert.service.js"),t["systems.service"]=e("./systems.service.js"),t["template.service"]=e("./template.service.js"),t["title.service"]=e("./title.service.js"),t["topbarAlerts.service"]=e("./topbarAlerts.service.js"),t["topic.service"]=e("./topic.service.js"),t["utils.service"]=e("./utils.service.js")}()},{"./account.service.js":181,"./actionbar.service.js":182,"./actions.service.js":183,"./actionsBreadcrumbs.service.js":184,"./alert.service.js":185,"./analytics.service.js":186,"./announcement.service.js":187,"./ansible.service.js":188,"./betaRedirect.service.js":189,"./bounce.service.js":190,"./coercion.service.js":191,"./dataUtils.service.js":192,"./digest.service.js":193,"./filter.service.js":194,"./gettingStarted.service.js":195,"./group.service.js":196,"./incidents.service.js":197,"./index.js":198,"./inventory.service.js":199,"./listType.service.js":200,"./maintenance.service.js":201,"./modalUtils.js":202,"./multibutton.service.js":203,"./overview.service.js":204,"./permalink.service.js":205,"./permission.service.js":206,"./platform.service.js":207,"./preference.service.js":208,"./reload.service.js":209,"./rule.service.js":210,"./ruleAdmin.service.js":211,"./rulePreview.service.js":212,"./strata.service.js":213,"./sweetalert.service.js":214,"./systems.service.js":215,"./template.service.js":216,"./title.service.js":217,"./topbarAlerts.service.js":218,"./topic.service.js":219,"./utils.service.js":220}],199:[function(e,t,n){"use strict";function r(e,t,n,r){var i={},a=0;return i.loading=!0,i.allExpanded=!1,i.setTotal=function(e){a=e},i.getTotal=function(){return a},i._systemModal=null,i.showSystemModal=function(t,a,o){function s(t){if("function"==typeof r.systemShowSystem)return void r.systemShowSystem(t);!function(t){i._systemModal||(i._systemModal=e.open(t),i._systemModal.result.finally(function(){i._systemModal=null}))}({templateUrl:"js/components/system/systemModal/systemModal.html",windowClass:"system-modal ng-animate-enabled",backdropClass:"system-backdrop ng-animate-enabled",controller:"SystemModalCtrl",resolve:{system:function(){return t},rule:function(){return!1},activeTab:function(){return o}}})}a?n.getSingleSystem(t.system_id).then(function(e){s(e.data)}):s(t)},i}r.$inject=["$modal","FilterService","System","InsightsConfig"],e("./").factory("InventoryService",r)},{"./":198}],200:[function(e,t,n){"use strict";function r(e){var t=Object.freeze({card:"card",table:"table"}),n=t.card,r=function(e){n=e.matches?t.table:t.card},i=window.matchMedia("(min-width: "+e+")");return r(i),i.addListener(r),{types:function(){return t
9},getType:function(){return n},setType:function(e){return n=t[e]}}}r.$inject=["TableToCardsBreakpoint"],e("./").service("ListTypeService",r)},{"./":198}],201:[function(e,t,n){"use strict";function r(e,t,n,r,i,g,v,b,y,x,M,_,w,A,S,k){function $(){var e=new Date,t=a(z.plans.all,function(t){return(null===t.suggestion||t.suggestion===y.SUGGESTION.ACCEPTED)&&(!t.end||t.end>e)});return c(l(s(t,"actions"),"done"),"current_report.id")}function T(e,t,n,r){this.plan=e,this.item=t,this.savedActions=n||[],this.loader=r,this.implicitOrder={predicate:"display",reverse:!1}}function C(e){return y.getPlayMetadata(e.maintenance_id).then(function(e){return e.data.filter(function(e){return e.ansible_resolutions.length>1})}).catch(function(e){if(404===e.status)return[]})}function E(e,t){return t.reduce(function(n,r,i){return n.then(function(){return z.resolutionModal(e,r,t.length,i)})},M.resolve()).catch(function(){})}function O(e,t){return e.system_type_id===t.system_type_id&&e.rule.rule_id===t.rule.rule_id}var z={},L=!1,N=Object.freeze({PLANNED:0,AVAILABLE:1,PLANNED_ELSEWHERE:2});return z.MAINTENANCE_ACTION_TYPE=N,z.showSystemModal=function(e,t){t&&(t=t.rule_id),g.getSystemReports(e.system_id).success(function(e){if("function"==typeof v.actionsShowSystem)return v.actionsShowSystem(e,t);b.open({templateUrl:"js/components/system/systemModal/systemModal.html",windowClass:"system-modal ng-animate-enabled",backdropClass:"system-backdrop ng-animate-enabled",controller:"SystemModalCtrl",resolve:{system:function(){return e},rule:function(){return t},activeTab:m("system")}})})},z.showMaintenanceModal=function(e,t,n){return b.open({templateUrl:"js/components/maintenance/maintenanceModal/maintenanceModal.html",windowClass:"maintenance-modal modal-wizard ng-animate-enabled",backdropClass:"system-backdrop ng-animate-enabled",controller:"maintenanceModalCtrl",resolve:{systems:function(){return e||!1},rule:function(){return t||!1},existingPlan:function(){return n}}}).result},T.prototype.getActions=function(){return this.savedActions.map(this.actionMapper)},T.prototype.update=function(e,t){return z.plans.update(this.plan,{add:e,delete:t})},T.prototype.save=function(e,t){return this.update(o(e,function(e){return f(e,["rule_id","system_id"])}),o(t,"mid"))},z.systemTableParams=function(e,t,r,i){var a=new T(t,e,r,i);return a.actionMapper=function(e){return{id:e.system.system_id,display:e.system._name,mid:e.id,system:e.system,done:e.done,systemTypeIconId:e.system.system_type_id}},a.getAvailableActions=function(){var t={rule:e.rule_id,expand:"system"};return n.getReportsLatest(t).then(function(t){var n=$(),r=t.data.resources,i=[];return r.forEach(function(t){t.system=_.readSystem(t.system),i.push({id:t.system.system_id,display:t.system._name,system:t.system,done:!1,system_id:t.system.system_id,rule_id:e.rule_id,_type:t.id in n?N.PLANNED_ELSEWHERE:N.AVAILABLE,systemTypeIconId:t.system.system_type_id})}),i})},a},z.actionTableParams=function(e,t,n,r){var i=new T(t,e,n,r);return i.actionMapper=function(e){return{id:e.rule.rule_id,display:e.rule.description,mid:e.id,rule:e.rule,done:e.done}},i.getAvailableActions=function(){return g.getSystemReports(e.system_id).then(function(t){var n=$(),r=t.data.reports,i=[];return r.forEach(function(t){i.push({id:t.rule.rule_id,display:t.rule.description,rule:t.rule,done:!1,system_id:e.system_id,rule_id:t.rule.rule_id,_type:t.id in n?N.PLANNED_ELSEWHERE:N.AVAILABLE})}),i})},i.implicitOrder={predicate:"rule.severityNum",reverse:!0},i},z.plans={all:[]},z.plans.load=function(e){return!e&&L||(L=y.getMaintenancePlans().then(function(e){return z.plans.all=e,z.plans.process().then(function(){r.$broadcast(k.planner.plansLoaded)})})),L},z.plans.process=function(){var e=new Date;return x.init().then(function(t){var n=t.is_internal;z.plans.future=[],z.plans.past=[],z.plans.overdue=[],z.plans.unscheduled=[],z.plans.suggested=[],z.plans.scheduled=[],z.plans.all.forEach(function(t){t.hidden&&!n||(t.suggestion===y.SUGGESTION.PROPOSED||t.suggestion===y.SUGGESTION.REJECTED?z.plans.suggested.push(t):t.end?(t.end>e?z.plans.future.push(t):(z.plans.past.push(t),t.overdue&&!t.silenced&&z.plans.overdue.push(t)),z.plans.scheduled.push(t)):z.plans.unscheduled.push(t))}),w.removeAll("maintenance"),z.plans.overdue.length&&w.push({type:"maintenance",msg:S.getPlural(z.plans.overdue.length,"A plan was not completed on time","{{$count}} plans were not completed on time",{}),acked:!1,icon:"fa-calendar-times-o red",onSelect:function(){A.go("app.maintenance",{maintenance_id:z.plans.overdue[0].maintenance_id})},onAck:function(){var e=z.plans.overdue.map(function(e){return y.silence(e).then(function(){e.silenced=!0})});M.all(e).then(function(){z.plans.process()})}});var r=z.plans.suggested.filter(function(e){return!e.hidden});r.length&&w.push({type:"maintenance",msg:S.getPlural(r.length,"You have a new plan suggestion","You have {{$count}} new plan suggestions",{}),acked:!1,icon:"fa-wrench",onSelect:function(){A.go("app.maintenance",{maintenance_id:r[0].maintenance_id})}})})},z.plans.findCategory=function(e){function t(t){return t.maintenance_id==e}for(var n=["future","unscheduled","past","suggested"],r=0;r<n.length;r++)if(d(z.plans[n[r]],t))return n[r]},z.plans.remove=function(e){return u(z.plans.all,function(t){return t.maintenance_id===e}),z.plans.process()},z.plans.add=function(e){return z.plans.all.push(e),z.plans.process()},z.plans.create=function(e){return y.createPlan(e).then(function(e){return y.getMaintenancePlan(e.data.id).then(function(e){return z.plans.add(e.data).then(function(){return e.data})})})},z.plans.update=function(e,t){return y.updatePlan(e.maintenance_id,t).then(function(){return y.getMaintenancePlan(e.maintenance_id).then(function(t){return p(e,t.data),e})})},z.getPlanName=function(e){return e.name&&e.name.length?e.name:S.getString("Unnamed plan")+" ("+e.maintenance_id+")"},r.$on(k.planner.planChanged,function(){z.plans.process()}),r.$on(k.planner.planDeleted,function(e,t){z.plans.remove(t)}),z.resolutionModal=function(e,t,n,r){return r=r||0,b.open({templateUrl:"js/components/maintenance/resolutionModal/resolutionModal.html",windowClass:"modal-playbook modal-wizard ng-animate-enabled",backdropClass:"system-backdrop ng-animate-enabled",controller:"ResolutionModal",resolve:{params:function(){return{play:t,plan:e,steps:n,index:r}}}}).result},z.promptResolutionIfNeeded=function(e,t){var n=M.resolve([]);return t&&(n=n.then(function(){return C(t)})),n.then(function(t){return e().then(function(e){return C(e).then(function(n){var r=h(n,t,O);return E(e,r)})})})},z}r.$inject=["Utils","Severities","Report","$rootScope","Rule","System","InsightsConfig","$modal","Maintenance","User","$q","DataUtils","TopbarAlertsService","$state","gettextCatalog","Events"];var i=e("./"),a=e("lodash/filter"),o=e("lodash/map"),s=e("lodash/flatMap"),c=e("lodash/keyBy"),l=e("lodash/reject"),u=e("lodash/remove"),d=e("lodash/some"),p=e("lodash/assign"),f=e("lodash/pick"),h=e("lodash/differenceWith"),m=e("lodash/constant");i.service("MaintenanceService",r)},{"./":198,"lodash/assign":484,"lodash/constant":488,"lodash/differenceWith":492,"lodash/filter":496,"lodash/flatMap":499,"lodash/keyBy":523,"lodash/map":527,"lodash/pick":538,"lodash/reject":542,"lodash/remove":543,"lodash/some":544}],202:[function(e,t,n){"use strict";function r(e,t){function n(n){var r=e.$on("telemetry:esc",function(e){return e.preventDefault(),!1});n.result.then(angular.noop,function(){t(function(){r()})})}function r(e){return e.$on("modal.closing",function(e,t){"escape key press"===t&&e.preventDefault()})}return{suppressEscNavigation:n,preventModalCloseOnEsc:r}}r.$inject=["$rootScope","$timeout"],e("./").service("ModalUtils",r)},{"./":198}],203:[function(e,t,n){"use strict";function r(e,t){var n={};n.RULE_ADMIN_CAT_FILTER_KEY="rule-admin-category",n.inventoryWithActions={state:!0},n.inventoryWithoutActions={state:!0},n.inventoryInfo={state:!0},n.inventoryWarn={state:!0},n.inventoryError={state:!0},n.inventoryAvailability={state:!0},n.inventoryStability={state:!0},n.inventoryPerformance={state:!0},n.inventorySecurity={state:!0},n.inventoryStandalone={state:!0},n.inventoryRHEVClusters={state:!0},n.inventoryRHEVManagers={state:!0},n.inventoryRHEVHypervisors={state:!0},n.inventoryDockerHosts={state:!0},n.inventoryDockerContainers={state:!0},n.inventoryDockerImages={state:!0},n.inventoryOSPCluster={state:!0},n.inventoryOSPDirector={state:!0},n.inventoryOSPCompute={state:!0},n.inventoryOSPController={state:!0},t.map(function(e){return e.value}).forEach(function(e){var t="severityFilters"+e,r=!1;"all"===e&&(r=!0),n[t]={state:r}}),e.forEach(function(e){var t="categoryFilters"+e,r=!1;"all"===e&&(r=!0),n[t]={state:r}}),e.forEach(function(e){n[n.RULE_ADMIN_CAT_FILTER_KEY+e]={state:!1}});var r=window.localStorage.getItem("insights:"+n.RULE_ADMIN_CAT_FILTER_KEY)||"all";return n[n.RULE_ADMIN_CAT_FILTER_KEY+r].state=!0,n.getState=function(e){return!!n[e]&&n[e].state},n.setState=function(e,t){n[e]&&(n[e].state=t)},n.initState=function(e){n[e]={state:!1}},n}r.$inject=["Categories","Severities"],e("./").service("MultiButtonService",r)},{"./":198}],204:[function(e,t,n){"use strict";function r(e){function t(){e.get().then(function(e){n.article=e.data})}var n={};return n.loading=!1,n.update=function(n,r){return e.update(n,r).then(t)},t(),n}r.$inject=["Article"],e("./").factory("OverviewService",r)},{"./":198}],205:[function(e,t,n){"use strict";function r(e,t,n){function r(t,n,r){void 0===n&&(n=i.offset),void 0===r&&(r=i.speed),e.scrollTo(document.getElementById(t),n,r)}var i={offset:10,speed:300};return{make:function(e,n,i,a){e=e.replace("#",""),t.hash(e),!0===n&&r(e,i,a)},scroll:function(e,i,a){var o=t.hash();e||(e=o),e&&n(function(){n(function(){r(e,i,a)},0)},0)}}}r.$inject=["$document","$location","$timeout"],e("./").service("PermalinkService",r)},{"./":198}],206:[function(e,t,n){"use strict";function r(){function e(e,t){return!(!e||!e.permissions)&&(!!e.is_internal&&(!!e.permissions[a.SU]||!!e.permissions[t]))}return{has:e,PERMS:a}}var i=e("./"),a={SU:"SU",INTERNAL:"INTERNAL",CREATE_ANNOUNCEMENT:"CREATE_ANNOUNCEMENT",ACCOUNT_SWITCHER:"ACCOUNT_SWITCHER",CONTENT_MANAGER:"CONTENT_MANAGER"};i.service("PermissionService",r)},{"./":198}],207:[function(e,t,n){"use strict";function r(e,t){function n(){r=t.getProducts().then(function(e){return e.data})}var r;return e.$on("account:change",n),n(),{getPlatforms:function(){return r}}}r.$inject=["$rootScope","Account"],e("./").service("PlatformService",r)},{"./":198}],208:[function(e,t,n){"use strict";function r(e,t,n){var r={};return{set:function(t,n,i){r[t]=n,(i||void 0===i)&&e.update(r)},get:function(e){return r[e]},appendProductToUrl:function(e,t){var r=n.getNextQueryPrependChar(e),i=this.get("dashboard_mode"),a=null,o=t||"machine";return i&&(e+=r+"product="+i,r=n.getNextQueryPrependChar(e)),e+=r+"type="+o,r=n.getNextQueryPrependChar(e),"osp"===i&&(a=this.get("osp_deployment"))&&(e+=r+"environments="+a),e}}}r.$inject=["UserSettings","$rootScope","Utils"],e("./").service("PreferenceService",r)},{"./":198}],209:[function(e,t,n){"use strict";function r(e){var t={};return t.begin=function(){e.defaults.headers.common[a]=!0},t.end=function(){delete e.defaults.headers.common[a]},t.wrap=function(e){t.begin(),e(function(){t.end()})},t}r.$inject=["$http"];var i=e("./"),a="x-insights-autoreload";i.service("ReloadService",r)},{"./":198}],210:[function(e,t,n){"use strict";function r(e){var t={},n=e("orderBy");return t.groupRulesByPlugin=function(e){var t=a(e,"plugin");return u(t,function(e,t){e=n(e,["acked","hitCount === 0","-severityNum","-hitCount"]);var r={rules:e,plugin_id:t};return 1===r.rules.length?(r.rule=r.rules[0],r.type="rule"):r.type="group",r.severityNum=o(r.rules,"severityNum").severityNum,r.categories=l(u(r.rules,"category")),r.hitCount=s(r.rules,"hitCount"),r.acked=c(r.rules,"acked"),r.display_name=r.rules[0].plugin_name,r.display_name in d&&(r.display_name=d[r.display_name]),r})},t}r.$inject=["$filter"];var i=e("./"),a=e("lodash/groupBy"),o=e("lodash/maxBy"),s=e("lodash/sumBy"),c=e("lodash/every"),l=e("lodash/uniq"),u=e("lodash/map"),d={CVE_2016_0800_openssl_drown:"DROWN",CVE_2016_0728_kernel:"Kernel keychain vulnerability (CVE-2016-0728)",CVEs_samba_badlock:"Badlock (Samba)",CVE_2016_2315_24_git:"CVE-2016-2315, CVE-2016-2324 (Git)",heartbleed:"Heartbleed",httpd_poodle:"POODLE (Httpd)",vsftpd_local_enable:"vsftpd",CVE_2016_3714_imagemagick:"ImageMagick",httpd_weak_ciphers:"Weak Ciphers (Apache)",network_skb_panic_after_add_grhead:"Networking caused kernel panic",sanity_check_fstab:"/etc/fstab misconfigurations",docker_journald_stop:"Docker crashes after journald is stopped",cifs_share_lost:"Interruption in CIFS shares",rhev_qla2xxx_firmware_failed:"RHEV Qla2xxx firmware failed",docker_mount_dev:"Docker mounting",unsupported_journal_mode:"Unsupported journal mode",panic_anon_vma_degree:"unlink_anon_vmas() kernel panic",sosreport_load_bridge_module:"sosreport loads the bridge kernel module unintentionally",rpm_database_problems:"RPM database problems",xinetd_per_source_limit:"xinetd per_source_limit messages",crashkernel_with_3w_modules:"Kernel crash with 3w-sas or 3w-9xxx modules loaded",fs_resize2fs_bug:"resize2fs utility issue on ext4 file system",multipathd_start_failed:"Multipathd service failing to start at boot time",rport_delete_crash:"Kernel panic on SCSI host removal",tg3_driver_issue:"tg3 driver bug causes network instability",ilo:"HP iLO memory corruption",missing_boot_files:"Grub configuration: missing files",nproc_common_entries:"Common entries in both limits.conf and 90-nproc.conf",tsc_reboot_uptime:"Clock overflow panic after 200+ days uptime",rsyslogd_shutdown_crash:"Rsyslogd crashing during shutdown",rx_crc_errors:"Interface RX CRC errors",vm_swappiness_oom:"vm.swappiness value at risk of OOM termination condition"};i.service("RuleService",r)},{"./":198,"lodash/every":495,"lodash/groupBy":503,"lodash/map":527,"lodash/maxBy":529,"lodash/sumBy":549,"lodash/uniq":556}],211:[function(e,t,n){"use strict";function r(e){var t={};return t.get=function(n){return t.contains(n)||(t[n]=e.getReportsLatest({rule:n,expand:"system",account_number:"*"}).then(function(e){return e.data.resources}).catch(function(){delete t[n]})),t[n]},t.contains=function(e){return e in t},{globalCache:t}}r.$inject=["Report"],e("./").service("RuleAdminService",r)},{"./":198}],212:[function(e,t,n){"use strict";function r(e,t){return{preview:function(e){t.open({templateUrl:"js/components/system/systemModal/systemModal.html",windowClass:"system-modal ng-animate-enabled",backdropClass:"system-backdrop ng-animate-enabled",controller:"SystemModalCtrl",resolve:{rule:function(){return e},system:function(){return!1}}})}}}r.$inject=["$http","$modal"],e("./").service("RulePreview",r)},{"./":198}],213:[function(e,t,n){"use strict";function r(e,t){function n(n,r){var i=a(s).addSearch("q",n+":"+r);return e.get(i.toString(),c).then(function(e){var n=o(e,"data.response.docs");return n&&n.length?n:t.reject("no results")})}return{searchById:function(e){return n("id",e)}}}r.$inject=["$http","$q"];var i=e("./"),a=e("urijs"),o=e("lodash/get"),s="https://access.redhat.com/rs/search",c=Object.freeze({headers:{"Content-Type":"application/json",Accept:"application/vnd.redhat.solr+json","X-Omit":"WWW-Authenticate"}});i.service("StrataService",r)},{"./":198,"lodash/get":502,urijs:831}],214:[function(e,t,n){"use strict";function r(e,t,n){var r={title:n.getString("Are you sure?"),type:"warning",confirmButtonColor:"#08C0FC",confirmButtonText:n.getString("Yes"),showCancelButton:!0,cancelButtonText:n.getString("Cancel")};return function(e){var n=angular.extend({},r,e),i=t.defer();return a(n).then(i.resolve).catch(i.reject),i.promise}}r.$inject=["$rootScope","$q","gettextCatalog"];var i=e("./"),a=e("sweetalert2");i.factory("sweetAlert",r)},{"./":198,sweetalert2:825}],215:[function(e,t,n){"use strict";function r(e,t,n,r,i,u,d,p){function f(e){var a,o=e.length,s=[],c=r.getPlural(o,y,x,{count:o});return i({html:c}).then(function(){for(var r=0;r<o;r++)a=p.deleteSystem(e[r].system_id),s.push(a);return n.all(s).then(function(){t.$broadcast("systems:unregistered")})})}function h(e,t){var n={category:"system",noData:!1,data:[]};n.data.push({label:"BIOS",values:[{label:"Vendor",value:a(t,"bios_information.vendor")},{label:"Release date",value:a(t,"bios_information.release_date")},{label:"Version",value:a(t,"bios_information.version")}]});var r=a(t,"system_information.machine_type");n.type=r||"Unknown";var i={label:"System",values:[{label:"Manufacturer",value:a(t,"system_information.manufacturer")},{label:"Release",value:a(t,"release")},{label:"Version",value:a(t,"system_information.version")},{label:"Product Name / Platform",value:a(t,"system_information.product_name")},{label:"Serial Number",value:a(t,"system_information.serial_number")},{label:"Model",value:a(t,"system_information.family")},{label:"Satellite "+a(t,"satellite_information.version")+":",value:a(t,"satellite_information.hostname")},{label:"Server Type",value:r},{label:"Timezone",value:g(t)}]};return e.product_code===d.docker.code&&(e.role===d.docker.roles.container.code?(i.values.push({label:"Container ID:",value:a(t,"docker_container_id")}),i.values.push({label:"Built On Image:",value:a(t,"docker_image_id")})):e.role===d.docker.roles.image.code&&i.values.push({label:"Image ID:",value:a(t,"docker_image_id")})),n.data.push(i),o(n.data,function(e){return o(e.values,function(e){return void 0===e.value||null===e.value||"undefined undefined"===e.value||"Not Specified"===e.value||"Unknown"===e.value}),0===e.values.length}),0===n.data.length&&(n.noData=!0),n}function m(e){var t={category:"network",noData:!1,data:[]};return c(e,function(e,n){if(n.indexOf("listening_process")>=0){var r=n.split(".");t.data[r[1]]||(t.data[r[1]]={name:"",ip_addr:"",port:""}),r.indexOf("process_name")>=0?t.data[r[1]].name=e:r.indexOf("ip_addr")>=0?t.data[r[1]].ip_addr=e&&"::"!==e&&"0.0.0.0"!==e?"::1"===e||"127.0.0.1"===e?"localhost":e:"All":r.indexOf("port")>=0&&(t.data[r[1]].port=e)}}),0===t.data.length&&(t.noData=!0),t}function g(e){var t=a(e,"timezone_information.timezone"),n=parseInt(a(e,"timezone_information.utcoffset")),r=void 0;if(n){var i=Math.floor(Math.abs(n/3600)),o=Math.floor(60*Math.abs(n%3600/3600));return n<0?r="-":n>=0&&(r="+"),i<10&&o<10?r+="0"+i+":0"+o:i>10&&o>10?r+=i+":"+o:i<10&&o>10?r+="0"+i+":"+o:i>10&&o<10&&(r+=i+":0"+o),t&&(r+=" ("+t+")"),r}if(t)return""+t}var v={},b=null,y="<h5>This will unregister the selected system from Red Hat Insights.</h5><p>To undo this action <code>redhat-access-insights --register</code> must be run from the unregistered system.</p>",x="<h5>This will unregister the {{count}} selected systems from Red Hat Insights.</h5><p>To undo this action <code>redhat-access-insights --register</code> must be run from each unregistered system.</p>",M=[],_=p.getSystemTypes().then(function(e){return M=e.data,e.data});return v.getSystemTypeUnsafe=function(e){return s(M,{id:parseInt(e)})},v.getSystemTypesAsync=function(){return _},v.getSystemTypeAsync=function(e){return v.getSystemTypesAsync().then(function(){return v.getSystemTypeUnsafe(e)})},v.unregisterSelectedSystems=function(e){return f(e)},v.getSystemMetadata=function(e,t){var n=[];return n.push(h(e,t)),n.push(m(t)),n},v.getInitialSystemMetadata=function(t,n){var r=[];return(t.product_code===d.rhel.code||t.product_code===d.osp.code&&t.role===d.osp.roles.cluster.code)&&r.push({label:"Registration Date",value:e("timeAgo")(a(t,"created_at"))}),r.push({label:"Operating System",value:e("productShortName")(a(n,"release"))}),r.push({label:"Last Check-in",value:e("timeAgo")(a(t,"last_check_in"))}),o(r,function(e){return void 0===e.value||"undefined undefined"===e.value||e.value.indexOf("NaN")>-1}),r},v.populateNewestSystems=function(e){var t={page_size:5,page:0,sort_by:"created_at",sort_dir:"DESC"};return e&&"all"!==e&&(t.product_code=e),l(t,u.queryParam()),p.getSystemsLatest(t).success(function(e){b=e.resources})},v.getNewestSystems=function(){return b},v}r.$inject=["$filter","$rootScope","$q","gettextCatalog","sweetAlert","Group","Products","System"];var i=e("./"),a=e("lodash/get"),o=e("lodash/remove"),s=e("lodash/find"),c=e("lodash/forOwn"),l=e("lodash/assign");i.factory("SystemsService",r)},{"./":198,"lodash/assign":484,"lodash/find":497,"lodash/forOwn":501,"lodash/get":502,"lodash/remove":543}],216:[function(e,t,n){"use strict";function r(e,t,n,r,i){var o={};return o.renderTemplate=function(o,s){var c=i.$new(!0);a(c,s);var l=e(t.get(o)),u=l(c),d=n.defer();return r(function(){d.resolve(u.html())},0),d.promise},o}r.$inject=["$compile","$templateCache","$q","$timeout","$rootScope"];var i=e("./"),a=e("lodash/assign");i.service("TemplateService",r)},{"./":198,"lodash/assign":484}],217:[function(e,t,n){"use strict";function r(e){return{set:function(t){var n=e.title;document.title=t?t+" | "+n:n}}}r.$inject=["InsightsConfig"],e("./").service("TitleService",r)},{"./":198}],218:[function(e,t,n){"use strict";function r(){function e(){t.unackedCount=a(t.items,function(e){return e.acked?0:1})}var t={items:[],unackedCount:0};return t.push=function(n){t.items.push(n),e()},t.removeAll=function(n){o(t.items,{type:n}),e()},t}var i=e("./"),a=e("lodash/sumBy"),o=e("lodash/remove");i.service("TopbarAlertsService",r)},{"./":198,"lodash/remove":543,"lodash/sumBy":549}],219:[function(e,t,n){"use strict";function r(e){var t={};return t.topics=[],t.reload=function(n){var r=n&&"all"!==n?{product:n}:null;return e.getAll(r,14).then(function(e){t.topics=e.data})},t.init=function(){return t.reload()},t}r.$inject=["Topic"],e("./").service("TopicService",r)},{"./":198}],220:[function(e,t,n){"use strict";function r(e){this.perPage=e||15,this.reset()}function i(e,t,n){function i(e,t,n){var r;return e.length&&t in e[0]&&null!==e[0][t]?(r=e[0][t],r[n]=e,r):{}}var a={};return a.generateAccessors=function(e,t){o(t,function(n,r){var i=s(r),a="get"+i,o="set"+i;e[a]=function(){return t[r]},e[o]=function(e){t[r]=e}})},a.selectBetween=function(e,t,n){function r(e){return e.getAttribute("data-id")}e=a.findFirstAncestor(e,r),t=a.findFirstAncestor(t,r);var i=e.parentElement,o=Array.prototype.slice.call(angular.element(i).children()),s=o.indexOf(e),c=o.indexOf(t);angular.forEach(o.slice(Math.min(s,c),Math.max(s,c)+1),function(e){var t=e.getAttribute("data-id");n[t]=!0})},a.escapeHtml=function(e){var t=document.createElement("div");return t.appendChild(document.createTextNode(e)),t.innerHTML},a.resetChecked=function(e){return function(){e.checked=!1,e.items={}}},a.checkboxChecked=function(e,t,n,r){r=r||"system_id",angular.forEach(t,function(t){angular.isDefined(t[r])&&(n[t[r]]=e)})},a.itemsChanged=function(e,t,n){if(n=n||"system_id",!e||!e.length)return{checked:!1,totalChecked:0,indeterminate:!1};var r=0,i=0,a=e.length;angular.forEach(e,function(e){r+=t[e[n]]||0,i+=!t[e[n]]||0});var o={totalChecked:r,indeterminate:0!==r&&0!==i};return 0!==i&&0!==r||(o.checked=r===a),o},a.rowClick=function(e){return function(t,n){var r=t.target||t.srcElement;if("A"!==r.tagName){if(t.shiftKey&&"mousedown"===t.type)return t.preventDefault(),!1;if("TD"!==r.tagName&&"SPAN"!==r.tagName||"click"!==t.type||(e.items[n]=!e.items[n]),r=t.currentTarget,!e.lastClicked)return void(e.lastClicked=r);t.shiftKey&&a.selectBetween(r,e.lastClicked,e.items),e.lastClicked=r}}},a.findFirstAncestor=function(e,t){for(;!t(e)&&e;)e=e.parentElement;return e},a.isBeta=function(){return window.insightsGlobal&&window.insightsGlobal.isBeta},a.groupByObject=function(e,t,n,r){return l(c(e,t)).map(function(e){return i(e,n,r)})},a.alias=function(e,t){return function(n){angular.isObject(n)&&e in n&&(n[t]=n[e])}},a.watchOnce=function(e,t,n){var r=e.$watch(t,function(){n.apply(null,arguments),r()})},a.Pager=r,a.Checkboxes=function(e){var r=this;this.idProperty=e||"id",this.reset=a.resetChecked(this),this.reset(),this.rowClick=a.rowClick(this),t.$on(n.checkboxes.reset,function(){r.reset()})},a.Checkboxes.prototype.checkboxChecked=function(e,t){a.checkboxChecked(e,t,this.items,this.idProperty)},a.Checkboxes.prototype.update=function(e){var t=a.itemsChanged(e,this.items,this.idProperty);this.totalChecked=t.totalChecked,this.indeterminate=t.indeterminate,angular.isDefined(t.checked)&&(this.checked=t.checked)},a.Checkboxes.prototype.isChecked=function(e){return e in this.items&&this.items[e]},a.Checkboxes.prototype.getSelected=function(e){var t=this;return e.filter(function(e){return t.isChecked(e[t.idProperty])})},a.Sorter=function(e,t){e?(this.predicate=e.predicate,this.reverse=e.reverse):(this.predicate="",this.reverse=!1),this.cb=t},a.Sorter.prototype.sort=function(e){this.reverse=this.predicate===e&&!this.reverse,this.predicate=e,this.cb&&this.cb()},a.Sorter.prototype.getSortDirection=function(){return this.reverse?"DESC":"ASC"},a.Sorter.prototype.getSortClass=function(t){return e("sortClass")(this.predicate,t,this.reverse)},a.Loader=function(e){this.loading=!1,angular.isDefined(e)?this.deflectWhenLoading=e:this.deflectWhenLoading=!0},a.Loader.prototype.bind=function(e,t){function n(e){return i.loading=!1,e}var r,i=this;return function(){if(!i.deflectWhenLoading||!i.loading)return i.loading=!0,r=e.apply(t,arguments),angular.isDefined(r)&&angular.isDefined(r.then)?r.then(n,n):(n(),r)}},a.getNextQueryPrependChar=function(e){var t="?";return e.indexOf("?")>-1&&(t="&"),t},a.addQueryToUrl=function(e,t){var n,r;for(n in t)r=this.getNextQueryPrependChar(e),e+=r+n+"="+t[n];return e},a.getSystemDisplayName=function(e){var t=!1;return e&&(t=e.display_name?e.display_name:e.hostname?e.hostname:"UUID: "+e.system_id),e.displayName=t,t},a.get=function(e,t,n){var r=u(e,t,n);return null===r&&angular.isDefined(n)?n:r},a.datesEqual=function(e,t){return e===t||new Date(e).getTime()===new Date(t).getTime()},a.localStorage={},a.localStorage.getItem=function(e,t){return!!window.localStorage&&(t?JSON.parse(window.localStorage.getItem(e)):window.localStorage.getItem(e))},a.localStorage.setItem=function(e,t,n){return window.localStorage&&(n&&(t=JSON.stringify(t)),window.localStorage.setItem(e,t)),!1},a}i.$inject=["$filter","$rootScope","Events"];var a=e("./"),o=e("lodash/forOwn"),s=e("lodash/upperFirst"),c=e("lodash/groupBy"),l=e("lodash/values"),u=e("lodash/get");r.prototype.update=function(){this.offset=(this.currentPage-1)*this.perPage},r.prototype.reset=function(){this.currentPage=1,this.update()},a.service("Utils",i)},{"./":198,"lodash/forOwn":501,"lodash/get":502,"lodash/groupBy":503,"lodash/upperFirst":558,"lodash/values":559}],221:[function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s,c,l,u,d,p,f,h,m,g,v,b){function y(){var t=l.getSelectedProduct(),r=[];return"all"===t&&(t=void 0),r.push(h.getRules({product:t}).then(function(e){n.stats.rules=e.data,x(e.data)})),e.all(r)}function x(e){var t=void 0;n.categoryTopics=[],s.forEach(function(r){void 0!==(t=e[r])&&t>0&&"all"!==r&&n.categoryTopics.push({id:r,count:t})})}var M=i.params;n.loading=!0,n.stats={},n.show={extraTopics:!1},l.parseBrowserQueryParams(),l.setShowFilters(!1),l.setSearchTerm(""),i.transitionTo("app.actions",l.updateParams(M),{notify:!1}),n.QuickFilters=f,n.getSelectedProduct=l.getSelectedProduct,n.openMenu=function(e,t){e.open(t)};var _=function(){var t=[];n.loading=!0,t.push(b.reload(l.getSelectedProduct()).then(function(){var e=b.topics.filter(function(e){return"implicit"!==e.ruleBinding});n.featuredTopics=e.slice(0,3),n.extraTopics=e.slice(3);"all"!==l.getSelectedProduct()&&l.getSelectedProduct()})),t.push(y()),t.push(u.init().then(function(){n.incidentCount=u.incidentRulesWithHitsCount,n.incidentSystemCount=u.affectedSystemCount})),e.all(t).finally(function(){return n.loading=!1})},w=[n.$on("filterService:doFilter",_),n.$on("group:change",_),t.$on("$stateChangeStart",function(){w.forEach(function(e){return e()})})];o.init(r);var A=function(){m.getProductSpecificData(),_()};d.authenticate&&!p.get("loaded")?t.$on("user:loaded",A):A(),d.allowExport&&a.addExportAction(function(){c.getReports()})}r.$inject=["$q","$rootScope","$scope","$stateParams","$state","ActionbarService","ActionsBreadcrumbs","Categories","Export","FilterService","IncidentsService","InsightsConfig","PreferenceService","QuickFilters","Stats","System","SystemsService","Topic","TopicService"],e("../").controller("ActionsCtrl",r)},{"../":230}],222:[function(e,t,n){"use strict";function r(e){var t=a.generate({data:{x:"x",xFormat:"%Y-%m-%dT%H:%M:%S.%LZ",columns:[]},axis:{x:{type:"timeseries",tick:{format:"%Y-%m-%d"}}}});e.reports().success(function(e){var n=e.map(function(e){return e.date}),r=e.map(function(e){return e.total});r.unshift("Totals"),n.unshift("x"),t.load({columns:[n,r]})})}r.$inject=["Analytic"];var i=e("../"),a=e("c3");i.controller("AnalyticsCtrl",r)},{"../":230,c3:264}],223:[function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s,l,u){e.params=c,o.init(e.params),e.announcements=o.announcements,e.canCreate=!1,e.permalink=l.make,r.announcementId&&(e.announcementId=r.announcementId.toString()),e.reload=function(){o.reload(e.params)},s.asyncCurrent(function(t){e.canCreate=t&&u.has(t,u.PERMS.CREATE_ANNOUNCEMENT)}),e.$on("reload:data",e.reload)}function i(e,t,n){e.loadingAnnouncement=!0,n.bySlug(t.slug).then(function(t){e.announcement=t.data,e.loadingAnnouncement=!1})}function a(e,t,n,r,i,a){e.loadingAnnouncement=!0,a.init(),i.byId(r.id).then(function(t){e.announcement=t.data,e.loadingAnnouncement=!1}),e.save=function(){a.updateAnnouncement(e.announcement).success(function(){t.$broadcast("announcement:changed"),n.go("app.announcements")}).error(function(t){e.announcementError=t})}}function o(e,t,n,r){e.announcement={hidden:!1,start:(new Date).toISOString()},e.create=function(){r.createAnnouncement(e.announcement).success(function(){t.$broadcast("announcement:changed"),n.go("app.announcements")}).error(function(t){e.announcementError=t})}}o.$inject=["$scope","$rootScope","$state","Announcement"],a.$inject=["$scope","$rootScope","$state","$stateParams","Announcement","AnnouncementService"],i.$inject=["$scope","$stateParams","Announcement"],r.$inject=["$scope","$location","$state","$stateParams","$timeout","Announcement","AnnouncementService","User","PermalinkService","PermissionService"];var s=e("../"),c={showAll:!0};s.controller("ListAnnouncementCtrl",r),s.controller("ViewAnnouncementCtrl",i),s.controller("EditAnnouncementCtrl",a),s.controller("NewAnnouncementCtrl",o)},{"../":230}],224:[function(e,t,n){"use strict";function r(e,t,n,r){n.asyncCurrent(function(e){t.isContentManager=r.has(e,r.PERMS.CONTENT_MANAGER)}),e.stateCheck=function(){return!!(e.state.is("app.actions")||e.state.is("app.inventory")||e.state.is("app.actions-rule")||e.state.is("app.topic"))}}r.$inject=["$scope","$rootScope","User","PermissionService"],e("../").controller("AppCtrl",r)},{"../":230}],225:[function(e,t,n){"use strict";function r(e,t,n,r,i,a){e.current={hidden:!0},e.isBeta=a.isBeta,r.asyncCurrent(function(t){e.user=t}),n.tab&&(e.current.hidden=!1,e.current[n.tab]=!0),e.tabSelected=function(e){t.go("app.config",{tab:e},{notify:!1})},e.perms=i}r.$inject=["$scope","$state","$stateParams","User","PermissionService","$rootScope"],e("../").controller("ConfigCtrl",r)},{"../":230}],226:[function(e,t,n){"use strict";function r(e,t,n,r,i,m,g){function v(){return"new"===n.id}function b(e,t){return c(o(e,t),function(){return!0})}function y(e,t){return s(a(e),t)}function x(){return e.webhook.firehose?[]:y(e.selected.events,function(t,n){var r=null;if((n===f||n===h)&&!u(e.selected.severityFilters)){var i=y(e.selected.severityFilters,function(e,t){return t});i.length&&(r={severity:i})}return{name:n,filters:r}})}function M(t){e.selected.events=b(t.event_types||[],"name");var n=d(t.event_types,function(e){return e.name===f||e.name===h});n&&n.filters&&n.filters.severity?e.selected.severityFilters=b(n.filters.severity):e.selected.severityFilters=b(e.severities,"value")}e.severities=i.filter(function(e){return"All"!==e.value}).reverse(),e.eventTypes=[{name:f,
10description:r.getString("New report identified")},{name:h,description:r.getString("Report resolved")},{name:"system:registered",description:r.getString("New system registered")},{name:"system:unregistered",description:r.getString("System unregistered")}],e.loader=new m.Loader(!1),e.selected={events:{},severityFilters:{},certificateExpanded:!1},e.errors={},e.certificateExpanded=!1,e.save=function(){e.webhook.event_types=x(),e.webhook.certificate&&e.webhook.certificate.trim().length?e.webhook.certificate=e.webhook.certificate.trim():e.webhook.certificate=null;var n=v()?"create":"update";return g[n](e.webhook).success(function(){return t.go("app.config",{tab:"webhooks"})}).catch(function(t){if(400===l(t,"status")){switch(l(t,"data.error.key")){case"INVALID_WEBHOOK_URL":e.errors.url=!0;break;case"INVALID_WEBHOOK_CERT":e.errors.certificate=!0}}})},e.loader.bind(function(){if(!v())return g.get(n.id,!1).success(function(t){e.webhook=t,M(t)}).catch(function(){return t.go("app.config",{tab:"webhooks"})});e.webhook={active:!0,firehose:!0},e.selected.severityFilters=b(e.severities,"value"),e.selected.events=b(e.eventTypes,"name")})(),e.certDateClass=function(e){return p().diff(e)<0?"green":"red"},e.$on("telemetry:esc",function(e){e.defaultPrevented||t.go("app.config",{tab:"webhooks"})})}r.$inject=["$scope","$state","$stateParams","gettextCatalog","Severities","Utils","Webhooks"];var i=e("../"),a=e("lodash/pickBy"),o=e("lodash/keyBy"),s=e("lodash/map"),c=e("lodash/mapValues"),l=e("lodash/get"),u=e("lodash/isEmpty"),d=e("lodash/find"),p=e("moment-timezone"),f="report:new",h="report:resolved";i.controller("WebhookEditCtrl",r)},{"../":230,"lodash/find":497,"lodash/get":502,"lodash/isEmpty":513,"lodash/keyBy":523,"lodash/map":527,"lodash/mapValues":528,"lodash/pickBy":539,"moment-timezone":562}],227:[function(e,t,n){"use strict";function r(e,t,n,r,i,p,f,h,m,g){function v(e){var t=e[1]-e[0];return t>0?1:t<0?-1:0}function b(e,t,n,r){return{data:[{x:a(e.timeseries,d),y:a(e[t],d),mode:"lines",name:n,line:{width:3,color:r}}],layout:{margin:{t:10,l:40,r:10,b:40},showlegend:!0,legend:{orientation:"h"}},options:{displayModeBar:!1}}}function y(e,t,n){return{current:o(t),direction:v(a(t,2)),icon:n,label:e}}function x(e){return e=a(s(e,function(e){return e.report_count}),10),e=c(e,function(e){return e.report_count>0}),e.reverse(),e}function M(e){return e=s(e,function(e){var t="0000000000"+e.report_count;return t=t.substr((""+e.report_count).length),[h.map(function(e){return e.value}).indexOf(e.severity),t]}),e.reverse(),e}function _(e){return l(a(e.resolved,d))}e.checkboxValues={availability:!0,security:!0,stability:!0,performance:!0},e.timePeriod=function(){return d},e.dateFormat=function(e){var t=new Date(e);return t.getMonth()+"-"+t.getDay()+"-"+t.getFullYear()},function(){var o=n.digestsByType("eval"),s=r.getSystemsLatest({report_count:"gt0",sort_by:"report_count",sort_dir:"DESC",page_size:10,page:0}),c=i.getRulesWithHits();e.loading=!0,e.showSystem=f.showSystemModal,Promise.all([o,s,c]).then(function(n){function r(e,t,n){return{x:a(c.timeseries,d),y:a(t,d),type:"scatter",name:e,marker:{color:n}}}var i=n[0],o=n[1],s=n[2],c=i.data.resources[0];if(void 0===c)return e.noData=!0,void(e.loading=!1);c=c.data.data,e.downloading=!1,e.downloadPdf=function(){var n=i.data.resources[0].digest_id,r=u(m.apiRoot).segment("digests").segment(n.toString());g.current.account_number!==p.number()&&r.query(p.current()),e.downloading=!0,t.get(r.toString(),{responseType:"arraybuffer",headers:{Accept:"application/pdf"}}).then(function(t){var n=new Blob([t.data],{type:"application/pdf"}),r=window.URL||window.webkitURL;if(window.chrome&&window.chrome.webstore){var i=angular.element("<a></a>");i.attr("href",r.createObjectURL(n)),i.attr("target","_self"),i.attr("download","insights-executive-report.pdf"),i[0].click()}else{var a=URL.createObjectURL(n);window.open(a)}e.downloading=!1},function(t){e.downloading=!1,e.digestError="PDF Download Failed. "+t.status})},e.latest_score=a(c.scores,1)[0],window.scope=e,e.score_difference=e.latest_score-c.scores[c.scores.length-2];var l=Math.ceil((e.latest_score-250)/150)||1;angular.element(document.querySelector(".gauge.gauge-circle.score")).addClass("score_lvl"+l),e.digest_hits_per_cat=[y("Security",c.security,"fa-shield"),y("Availability",c.availability,"fa-hand-paper-o"),y("Stability",c.stability,"fa-cubes"),y("Performance",c.performance,"fa-tachometer")],e.digest_metrics_data=[{x:a(c.timeseries,d),y:a(c.distinct_rules,d),type:"bar",name:"Total Actions",marker:{color:"#c7e7f6"}},r("Security",c.security,"#e77baf"),r("Availability",c.availability,"#f3923e"),r("Stability",c.stability,"#3badde"),r("Performance",c.performance,"#a5d786")],e.digest_metrics={data:angular.copy(e.digest_metrics_data),layout:{margin:{t:10,l:40,r:10,b:40},showlegend:!0,legend:{orientation:"h"}},options:{displayModeBar:!1}},e.digest_registered=b(c,"checkins_per_day","Active Systems","#97cde6"),e.digest_score=b(c,"scores","Score","#3083FB"),e.systemsTilTen=10-o.data.resources.length,e.topTenWorstSystems=x(o.data.resources),e.topTenRules=x(s.data.resources),e.allRuleHits=M(s.data.resources),e.resolvedIssues=_(c),e.loading=!1})}()}r.$inject=["$scope","$http","DigestService","System","Rule","AccountService","InventoryService","Severities","InsightsConfig","User"];var i=e("../"),a=e("lodash/takeRight"),o=e("lodash/last"),s=e("lodash/sortBy"),c=e("lodash/filter"),l=e("lodash/sum"),u=e("urijs"),d=30;i.controller("DigestsCtrl",r)},{"../":230,"lodash/filter":496,"lodash/last":526,"lodash/sortBy":545,"lodash/sum":548,"lodash/takeRight":550,urijs:831}],228:[function(e,t,n){"use strict";function r(e,t,n,r){function i(){s(l().type)}function o(){s(u().type)}function s(t){e.loading=!0,r.activate(t).then(function(){return r.getEvaluationStatus().then(function(t){e.loading=!1,e.successfulActivation=!0,e.status=t})}).catch(function(){e.loading=!1,e.error="Could not activate Insights."})}function c(){window.location="https://access.redhat.com/"}function l(){var t=e.status.available.find(function(e){return e.type.startsWith("sales")});return t||e.status.available.find(function(e){return"self"===e.type})}function u(){return e.status.available.find(function(e){return"legacy"===e.type})}function d(){var t=e.status.current,n=new Date(Date.parse(t.created_at));return n.setDate(n.getDate()+t.duration),n.toDateString()}e.loading=!0,e.successfulActivation=!1,e.cancel=c,e.getExpiration=d,e.getNonLegacyEval=l,e.getLegacyEval=u,e.activateLegacy=o,e.activateNonLegacy=i,function(){r.getEvaluationStatus().then(function(r){var i=n.originalPath;if(i&&(r.purchased||r.current)){var o=a(i);return o.segment(o.segment().slice(1)),void t.url(o.pathname()+o.search())}e.loading=!1,e.status=r}).catch(function(t){401!==t.status&&(e.loading=!1,e.error="Could not load evaluation status.")})}()}r.$inject=["$scope","$location","$stateParams","Evaluation"];var i=e("../"),a=e("urijs");i.controller("EvaluationCtrl",r)},{"../":230,urijs:831}],229:[function(e,t,n){"use strict";function r(e,t,n){e.status=" ",e.customFullscreen=!1,e.showToast=function(e,t,r){n.show(n.simple().content("Toast Content!").hideDelay("3000").position(e+" "+t).toastClass("stickyToast "+r))},e.showAlert=function(e){t.show(t.alert().parent(angular.element(document.querySelector("#popupContainer"))).clickOutsideToClose(!0).title("This is the title").textContent("This is the content").ariaLabel("Alert Dialog Demo").ok("Got it!").targetEvent(e))},e.showConfirm=function(e){t.show(t.confirm().parent(angular.element(document.querySelector("#popupContainer"))).clickOutsideToClose(!0).title("This is a title").textContent("This is the content").ariaLabel("Comfirm Dialog Demo").ok("Confirm").cancel("Cancel").targetEvent(e))},e.onSwipeUp=function(){window.alert("You swiped up!!")}}r.$inject=["$scope","$mdDialog","$mdToast"],e("../../").controller("ComponentsCtrl",r)},{"../../":230}],230:[function(e,t,n){"use strict";t.exports=angular.module("insights.states",[]),function(){var t=e("./index.js");t.actions={"actions.controller":e("./actions/actions.controller.js")},t.analytics={"analytics.controller":e("./analytics/analytics.controller.js")},t.announcements={"announcements.controller":e("./announcements/announcements.controller.js")},t.base={"app.controller":e("./base/app.controller.js")},t.config={"config.controller":e("./config/config.controller.js"),"webhook-edit.controller":e("./config/webhook-edit.controller.js")},t.digests={"digests.controller":e("./digests/digests.controller.js")},t.evaluation={"evaluation.controller":e("./evaluation/evaluation.controller.js")},t.hidden={components:{"components.controller":e("./hidden/components/components.controller.js")}},t.index=e("./index.js"),t.initial={"initial.controller":e("./initial/initial.controller.js")},t.inventory={"inventory.controller":e("./inventory/inventory.controller.js")},t.invites={"invites.controller":e("./invites/invites.controller.js")},t.maintenance={"maintenance.controller":e("./maintenance/maintenance.controller.js")},t.overview={"overview.controller":e("./overview/overview.controller.js")},t.policies={controllers:{"list.policies.controller":e("./policies/controllers/list.policies.controller.js"),"view.policy.controller":e("./policies/controllers/view.policy.controller.js")}},t.rules={"list.rules.controller":e("./rules/list.rules.controller.js")},t.security={"security.controller":e("./security/security.controller.js")},t.topics={controllers:{"edit.topics.controller":e("./topics/controllers/edit.topics.controller.js"),"list.topics.controller":e("./topics/controllers/list.topics.controller.js"),"topic.admin.controller":e("./topics/controllers/topic.admin.controller.js")}}}()},{"./actions/actions.controller.js":221,"./analytics/analytics.controller.js":222,"./announcements/announcements.controller.js":223,"./base/app.controller.js":224,"./config/config.controller.js":225,"./config/webhook-edit.controller.js":226,"./digests/digests.controller.js":227,"./evaluation/evaluation.controller.js":228,"./hidden/components/components.controller.js":229,"./index.js":230,"./initial/initial.controller.js":231,"./inventory/inventory.controller.js":232,"./invites/invites.controller.js":233,"./maintenance/maintenance.controller.js":234,"./overview/overview.controller.js":235,"./policies/controllers/list.policies.controller.js":236,"./policies/controllers/view.policy.controller.js":237,"./rules/list.rules.controller.js":238,"./security/security.controller.js":239,"./topics/controllers/edit.topics.controller.js":240,"./topics/controllers/list.topics.controller.js":241,"./topics/controllers/topic.admin.controller.js":242}],231:[function(e,t,n){"use strict";function r(e,t){return a.doOverview(t)}r.$inject=["Report","$state"];var i=e("../"),a={};a.doOverview=function(e){e.go("app.overview",{},{location:"replace"})},a.doLegacy=function(e,t,n,r){var i="app.actions";e.headReports().success(function(e){e.headers(r.resourceCount)<=0&&(i="app.inventory")}).finally(function(){t.go(i,{},{location:"replace"})})},i.controller("InitialCtrl",r)},{"../":230}],232:[function(e,t,n){"use strict";function r(e,t,n,r,i,c,l,u,d,p,f,h,m,g,v,b,y,x,M,_,w,A){function S(e){return e=g.updateParams(e),e.sort_field||(e.sort_field=i.sorter.predicate),e.sort_dir||(e.sort_dir=i.sorter.getSortDirection()),e}function k(){var e=!1;t.search().sort_dir&&(e="ASC"!==t.search().sort_dir),i.sorter=new x.Sorter({predicate:t.search().sort_field||D,reverse:e},E)}function $(){i.pager=new x.Pager(I),k(),i.checkboxes.reset()}function T(){i.loading=!0,k(),i.pager=new x.Pager(I),i.pager.currentPage=t.search().page?t.search().page:i.pager.currentPage,i.pager.perPage=t.search().pageSize?t.search().pageSize:i.pager.perPage,p.getSystemTypesAsync().then(function(){E(!1)})}function C(e){var t=g.buildRequestQueryParams();return g.getOffline()!==g.getOnline()&&(t.offline=g.getOffline().toString()),g.getSearchTerm()&&(t.search_term=g.getSearchTerm()),t.sort_by=i.sorter.predicate,g.setQueryParam("sort_field",i.sorter.predicate),g.setQueryParam("sort_dir",i.sorter.getSortDirection()),"last_check_in"===i.sorter.predicate?t.sort_dir="ASC"===i.sorter.getSortDirection()?"DESC":"ASC":t.sort_dir=i.sorter.getSortDirection(),e&&(t.page_size=i.pager.perPage,t.page=i.pager.currentPage-1),t}function E(e){function t(e){g.getParentNode()||e.resources,i.systems=e.resources,u.setTotal(e.total),p.systems=i.systems}i.loading=!0,e||(i.reloading=!0);var n=C(!0),r=null;null!==g.getParentNode()?(n.includeSelf=!0,r=l.getSystemLinks(g.getParentNode(),n)):r=l.getSystemsLatest(n),r.success(t).error(function(){i.errored=!0}).finally(function(){u.loading=i.loading=i.reloading=!1})}function O(){i.checkboxes.update(i.getSelectableSystems()),N()!==i.systems.length||i.loading?(i.allSelected=!1,i.reallyAllSelected=!1):i.allSelected=!0,L()}function z(e,t){i.reallyAllSelected&&i.checkboxes.checkboxChecked(!0,s(e,t))}function L(){i.reallyAllSelected?(i.totalSystemsSelected=u.getTotal(),i.totalSystemsSelected-=Object.keys(i.checkboxes.items).length-N()):i.totalSystemsSelected=N()}function N(){return i.systems.filter(function(e){return i.checkboxes.items.hasOwnProperty(e.system_id)&&!0===i.checkboxes.items[e.system_id]}).length}function P(e){j||(j=n.open(e),j.result.finally(function(){j=null}))}var I=15,D="toString";i.Group=A,i.filter=g,i.getSystemName=x.getSystemDisplayName,i.showActions=u.showSystemModal,i.listTypes=M.types(),g.setShowFilters(!1),i.QuickFilters=v,i.systems=[],i.allSystems=null,i.errored=!1,i.actionFilter=null,i.loading=u.loading,i.reloading=!1,g.parseBrowserQueryParams(),l.getProductSpecificData();var R=c.params;f.authenticate&&!b.get("loaded")?r.$on("user:loaded",function(){T(),c.transitionTo("app.inventory",S(R),{notify:!1})}):(T(),c.transitionTo("app.inventory",S(R),{notify:!1})),i.allSelected=!1,i.reallyAllSelected=!1,i.$on("reload:data",function(){$(),T()}),i.$on("group:change",function(){$(),E(!1)}),i.$on("filterService:doFilter",function(){$(),E(!1)}),i.$on("systems:unregistered",function(){$(),E()});var j=null;if(i.isPortal=f.isPortal,i.applyActionFilter=function(e){i.actionFilter=e},i.doScroll=function(){t.search("page",i.pager.currentPage),t.search("pageSize",i.pager.perPage),E(!0),i.pager.update(),i.checkboxes.reset()},i.getSelectableSystems=function(){return i.systems},i.checkboxes=new x.Checkboxes("system_id"),L(),i.$watchCollection("checkboxes.items",O),i.$watchCollection("systems",z),i.canUnregisterSystem=function(e){var t=!0,n=[{product_code:"osp",role:"compute"},{product_code:"osp",role:"controller"},{product_code:"osp",role:"director"},{product_code:"docker",role:"image"},{product_code:"docker",role:"container"},{product_code:"rhev",role:"manager"},{product_code:"rhev",role:"hypervisor"}],r=o(p.getSystemTypeUnsafe(e.system_type_id),"product_code","role");return a(n,r)&&(t=!1),t},i.selectAll=function(){i.allSelected=!i.allSelected,i.reallyAllSelected&&(i.reallyAllSelected=!1)},i.deselectAll=function(){i.reallyAllSelected=!1,i.allSelected=!1,i.checkboxes.reset()},i.reallySelectAll=function(){null===i.allSystems?(i.loading=!0,function(){var e=C(!1),t=null;return null!==g.getParentNode()?(e.includeSelf=!0,t=l.getSystemLinks(g.getParentNode(),e)):t=l.getSystemsLatest(e),t}().then(function(e){i.allSystems=e.data.resources,i.reallyAllSelected=!0,i.totalSystemsSelected=i.allSystems.length,i.loading=!1})):(i.reallyAllSelected=!0,i.totalSystemsSelected=i.allSystems.length)},i.totalSystems=function(){return u.getTotal()},i.allSystemsShown=function(){return u.getTotal()===i.systems.length},i.registerSystem=function(){var e=!1;y.asyncCurrent(function(t){e=t.current_entitlements?t.current_entitlements.systemLimitReached:!t.is_internal,t.current_entitlements&&t.current_entitlements.unlimitedRHEL&&(e=!1)}),P({templateUrl:"js/components/system/addSystemModal/"+(e?"upgradeSubscription.html":"addSystemModal.html"),windowClass:"system-modal ng-animate-enabled",backdropClass:"system-backdrop ng-animate-enabled",controller:"AddSystemModalCtrl"})},f.allowExport&&_.addExportAction(function(){var e=void 0;g.getOnline()&&!g.getOffline()&&(e=!1),!g.getOnline()&&g.getOffline()&&(e=!0),w.getSystems(A.current().id,e,g.getSearchTerm())}),R.machine){var q={system_id:R.machine};i.showActions(q,!0)}i.reloadInventory=function(){$(),E(!1)}}r.$inject=["$filter","$location","$modal","$rootScope","$scope","$state","System","InventoryService","MultiButtonService","SystemsService","InsightsConfig","ReloadService","Account","FilterService","QuickFilters","PreferenceService","User","Utils","ListTypeService","ActionbarService","Export","Group"];var i=e("../"),a=e("lodash/find"),o=e("lodash/pick"),s=e("lodash/difference");i.controller("InventoryCtrl",r)},{"../":230,"lodash/difference":491,"lodash/find":497,"lodash/pick":538}],233:[function(e,t,n){"use strict";function r(e,t,n){function r(){e.failedInvite=null,e.successfulInvite=null}var i=[{type:"sales100",systems:100},{type:"sales250",systems:250},{type:"sales500",systems:500},{type:"sales750",systems:750},{type:"sales1000",systems:1e3}];e.data={},e.evals=i,e.data.newInvite=i[0],e.loading=!0,n.asyncCurrent(function(t){e.forbidden=!t.is_internal,e.loading=!1}),e.reset=r,e.createNewInvite=function(){if(e.successfulInvite=null,!e.data.account)return void alert("Account Number cannot be blank");var n={account_number:e.data.account,email:e.data.email,type:e.data.newInvite.type};e.loading=!0,t.create(n).then(function(){e.successfulInvite=n,e.data.account=null,e.data.email=null}).catch(function(t){e.failedInvite=n,e.error=t}).finally(function(){e.loading=!1})}}r.$inject=["$scope","EvaluationInvite","User"],e("../").controller("InvitesCtrl",r)},{"../":230}],234:[function(e,t,n){"use strict";function r(e,t){this.items={},this.$state=e,this.$stateParams=t}function i(e,t,n,i,a,p,f,h,m,g,v,b,y,x){function M(e){return f.plans.create(e).then(function(e){t.scrollToPlan(e.maintenance_id)})}function _(){t.redrawPlans()}if(t.isDefined=angular.isDefined,t.loader=new a.Loader,t.MaintenanceService=f,t.calendarDates=[],t.refreshCalendar=function(){t.calendarDates=f.plans.all.filter(function(e){return angular.isDefined(e.start)}).map(function(e){return l(e.start)})},t.plans=f.plans,t.edit=new r(v,p),t.loadPlans=t.loader.bind(function(e){return f.plans.load(e).then(function(){if(1===Object.keys(t.edit.items).length){var e=Object.keys(t.edit.items)[0];t.scrollToPlan(e)}})}),t.scrollToPlan=function(e){"all"!==t.category&&t.setCategory("all"),n(function(){t.edit.activate(e),b.$broadcast(x.planner.openPlan,e),g.scroll("maintenance-plan-"+e,50)})},t.redrawPlans=function(){var e=t.category||d,n=f.plans[e];if("future"===t.category||"past"===t.category){n=s(n,"start");var r=c(o(n,function(e){var t=l(e.start);return t.year()+"-"+t.month()}));"past"===e&&r.reverse(),t.shownPlansByMonth=r}else n=s(n,"maintenance_id");t.shownPlans=n},t.category=e.search().maintenanceCategory||m.get(u)||d,p.maintenance_id){var w=parseInt(p.maintenance_id);isNaN(w)||t.edit.activate(w)}t.setCategory=function(e,n){e&&(t.category=e,m.set(u,t.category,!1),t.redrawPlans(),n||t.edit.reset())},t.broadcast=function(e){t.$broadcast(e)},t.newSuggestion=function(){return M({suggestion:i.SUGGESTION.PROPOSED,hidden:!0})},t.$watchCollection("plans.all",_),t.loadPlans(!0),y.getSystemTypesAsync().then(function(e){t.systemTypes=e}),b.$on("reload:data",function(){t.loader.loading=!1,t.loadPlans(!0)})}i.$inject=["$location","$scope","$timeout","Maintenance","Utils","$stateParams","MaintenanceService","$filter","PreferenceService","PermalinkService","$state","$rootScope","SystemsService","Events"];var a=e("../"),o=e("lodash/groupBy"),s=e("lodash/sortBy"),c=e("lodash/values"),l=e("moment-timezone"),u="maintenance_plan_category",d="all";r.prototype.isActive=function(e){return e in this.items},r.prototype.toggle=function(e){this.isActive(e)?this.deactivate(e):this.activate(e)},r.prototype.reset=function(){this.items={},this.transition()},r.prototype.activate=function(e){this.items={},this.items[e]=!0,this.updateUrl()},r.prototype.deactivate=function(e){delete this.items[e],this.updateUrl()},r.prototype.updateUrl=function(){var e=Object.keys(this.items);1===e.length?this.transition(e[0]):this.transition()},r.prototype.transition=function(e){var t=e?this.$stateParams.tab:void 0;this.$state.transitionTo(this.$state.current,{maintenance_id:e,tab:t},{notify:!1,reload:!1,location:"replace"})},a.controller("MaintenanceCtrl",i)},{"../":230,"lodash/groupBy":503,"lodash/sortBy":545,"lodash/values":559,"moment-timezone":562}],235:[function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){function c(e){i.plans.load(e)}function l(){a.getRules({include:"ansible"}).then(function(e){r.stats.rules=e.data})}r.stats={},r.isBeta=n.isBeta,s.asyncCurrent(function(e){r.paid=function(){var t=e.current_entitlements,n=!1;return r.isInternal=e.is_internal,t&&(t.whitelist&&(t.whitelist.rhel||t.whitelist.osp)?n=!0:t.unlimitedRHEL?n=!0:Array.isArray(t.skus)&&void 0!==t.skus.find(function(e){return e.skuName!==o})&&(n=!0)),n}}),r.edit=function(){e.open({templateUrl:"js/components/overview/articleModal/articleModal.html",windowClass:"handcrafted-content-modal ng-animate-enabled",backdropClass:"system-backdrop ng-animate-enabled",controller:"ArticleModalCtrl"})},c(!1),n.$on("reload:data",function(){c(!0)}),l(),r.$on("group:change",function(){l()})}r.$inject=["$modal","$q","$rootScope","$scope","MaintenanceService","Stats","TrialSku","User"],e("../").controller("OverviewCtrl",r)},{"../":230}],236:[function(e,t,n){"use strict";function r(e,t,n,r,i,a){function o(){n.loading=!0;var e=[];e.search_term=n.searchText,i.getAll(e).then(function(e){n.allPolicies=e.data,l(),n.loading=!1})}function s(){var e=n.pager.currentPage-1,t=n.pager.perPage,r=e*t,i=r+t<n.allPolicies.total?r+t:n.allPolicies.total;n.policies=n.allPolicies.resources.slice(r,i)}function c(){n.pager.currentPage=1,s()}function l(){n.allPolicies.resources=e("orderBy")(n.allPolicies.resources,[n.sorter.reverse?"-"+n.sorter.predicate:n.sorter.predicate]),c()}n.failedChecksTooltip=r.getString("This policy has checks that are not passing"),n.pager=new a.Pager,n.searchText=t.search().searchText,n.policies=[],n.sorter=new a.Sorter({predicate:"policy_name",reverse:!1},l),n.paginate=function(){n.pager.update(),s()},n.search=function(e){t.search("searchText",e),n.searchText=e,o()},o()}r.$inject=["$filter","$location","$scope","gettextCatalog","Policy","Utils"],e("../../").controller("ListPoliciesCtrl",r)},{"../../":230}],237:[function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s,c){function l(){t.search("sortBy",i.sorter.predicate),t.search("reverse",i.sorter.reverse),u()}function u(){var e=t.search().machine,n=[];n.page=i.pager.currentPage-1,n.page_size=i.pager.perPage,n.search_term=i.searchText,n.sort_by=i.sorter.predicate,n.sort_dir=i.sorter.reverse?"DESC":"ASC",i.loading=!0,s.getPolicyResults(i.policyId,n).then(function(e){i.policy=e.data,e.data.resources.length>0&&(i.policyName=e.data.resources[0].policy_name,i.policy.resources.forEach(function(e,t){i.policy.resources[t].status=d(e)})),i.loading=!1}).catch(function(){i.policy=null,i.loading=!1}),e&&i.showSystem(e)}function d(e){return 0===e.checks_fail&&0===e.checks_error&&e.checks_pass>0?p:e.checks_fail>0?f:e.checks_error>0?h:m}var p=a.getString("passed"),f=a.getString("failed"),h=a.getString("errored"),m=a.getString("unknown");i.loading=!0,i.pager=new c.Pager,i.policyId=r.id,i.policyName=i.policyId,i.searchText=t.search().searchText,i.sorter=new c.Sorter({predicate:t.search().sortBy||"system.toString",reverse:t.search().reverse||!1},l),i.showSystem=function(e){o.showSystemModal({system_id:e},!0,"policy")},i.paginate=function(){i.pager.update(),t.search("page",i.pager.currentPage),t.search("pageSize",i.pager.perPage),u()},i.rename=function(e){return s.update(i.policyId,{policy_name:e}).then(function(){u()})},i.search=function(e){t.search("searchText",e),i.searchText=e,u()},i.$on("reload:data",function(){u()}),i.$on("telemetry:esc",function(e){e.defaultPrevented||"app.view-policy"===n.current.name&&n.go("app.list-policies")}),u()}r.$inject=["$filter","$location","$state","$stateParams","$scope","gettextCatalog","InventoryService","Policy","Utils"],e("../../").controller("ViewPolicyCtrl",r)},{"../../":230}],238:[function(e,t,n){"use strict";function r(e,t,n,r,i,s,c,l,u,d,p,f,h,m,g){function v(e){if(e){var t=o(r.rules,{rule_id:e});r.pager.currentPage=Math.floor(t/r.pager.perPage)+1,r.doPage(),s.search("anchor",null),s.hash(e)}}function b(){var e=s.search().age;e&&l.setAge(e)}function y(){r.loading=!0,b();var e=[],n=l.buildRequestQueryParams();n.include="article";var i=g.getRulesLatest(n).success(function(e){r.rules=a(e.resources,function(e){return"insights_heartbeat|INSIGHTS_HEARTBEAT"===e.rule_id}),r.pagedRules=r.rules.slice(0,r.pager.perPage),v(s.search().anchor),p.scroll(null,30)}).error(function(){r.errored=!0});e.push(i);var o=u.init();e.push(o),t.all(e).then(function(){r.loading=!1}),r.pager=new m.Pager(10)}l.parseBrowserQueryParams(),l.setShowFilters(!1),l.setSearchTerm(""),r.QuickFilters=h;var x=i.params;i.transitionTo("app.rules",l.updateParams(x),{notify:!1}),r.canIgnoreRules=!0,r.hideIgnored=!1,"boolean"==typeof d.canIgnoreRules?r.canIgnoreRules=d.canIgnoreRules:"function"==typeof d.canIgnoreRules&&(r.canIgnoreRules=!1,d.canIgnoreRules(function(e){r.canIgnoreRules=e})),r.setHideIgnored=function(e){r.hideIgnored=e},f.get("loaded")?r.setHideIgnored(f.get("hide_ignored_rules")):r.$on("user:loaded",function(){var e=f.get("hide_ignored_rules");r.setHideIgnored(e)}),r.loading=!0,r.errored=!1,r.permalink=p.make,r.persistHideIgnored=function(){f.set("hide_ignored_rules",r.hideIgnored,!0)},r.getClusterImpactedText=function(e){return e.impacted_systems>0?"OpenStack Deployment Impacted":"OpenStack Deployment not Impacted"},r.$on("filterService:doFilter",y),r.$on("reload:data",y),r.doPage=function(){var e=r.pager.currentPage*r.pager.perPage-r.pager.perPage;r.pagedRules=r.rules.slice(e,e+r.pager.perPage)},r.search=function(e){l.setSearchTerm(e),l.doFilter()},d.authenticate&&!f.get("loaded")?n.$on("user:loaded",y):y()}r.$inject=["$filter","$q","$rootScope","$scope","$state","$location","Cluster","FilterService","IncidentsService","InsightsConfig","PermalinkService","PreferenceService","QuickFilters","Utils","Rule"];var i=e("../"),a=e("lodash/reject"),o=e("lodash/findIndex");i.controller("ListRuleCtrl",r)},{"../":230,"lodash/findIndex":498,"lodash/reject":542}],239:[function(e,t,n){"use strict";function r(e,t){e.gettingStartedLink=t.gettingStartedLink}r.$inject=["$scope","InsightsConfig"],e("../").controller("SecurityCtrl",r)},{"../":230}],240:[function(e,t,n){"use strict";function r(e,t,n,r,i,p,f,h,m,g){function v(t){var n=s(t,["id","title","summary","content","hidden","listed","tag","category","slug","severity"]);return"tagged"===e.ruleBinding?n.category=n.severity=null:"implicit"===e.ruleBinding?n.tag=null:"explicit"===e.ruleBinding&&(n.tag=n.category=n.severity=null,n.rules=t.rules.map(function(e){return{rule_id:e.rule_id}})),n}function b(){h.onbeforeunload=void 0,M()}e.categories=f.slice(1).map(function(e){return{id:d(e),label:d(e)}}),e.categories.unshift({id:null,label:"Any category"}),e.severities=[{id:"CRITICAL",label:"Critical"},{id:"ERROR",label:"High"},{id:"WARN",label:"Medium"},{id:"INFO",label:"Low"}],e.severities.unshift({id:null,label:"Any Risk"}),e.error={},e.selectedRule="RULE_ID";var y=n.admin().then(function(t){e.availableRules=t.data.filter(function(e){return e.rule.active&&!e.rule.retired}).map(function(e){return p.readRule(e.rule),e.rule.count=e.count,e.rule})});e.$watchGroup(["topic.category","topic.severity","availableRules"],function(){if(e.topic&&e.availableRules){if(!e.topic.category&&!e.topic.severity)return void(e.implicitRules=[]);var t=e.topic.category,n=e.topic.severity;e.implicitRules=e.availableRules.filter(function(e){return!(t&&t!==e.category||n&&n!==e.severity)})}}),e.availableTags=[],e.select={},t.get(i.id).then(function(t){e.topic=t.data,e.ruleBinding=e.topic.ruleBinding,e.topic.rules.forEach(function(e){p.readRule(e)}),"explicit"===e.ruleBinding?e.topic.rules=u(e.topic.rules,"severityNum").reverse():e.topic.rules=[],e.ruleBinding=e.topic.ruleBinding,e.updateTaggedRules()}),n.getAvailableTags().then(function(t){e.availableTags=o(t.data,"name")}),e.update=function(n){var r=v(n);t.update(r).then(e.goBack,function(t){e.error={},400===t.status&&t.data.fields&&(e.error=t.data.fields)})},e.goBack=function(){b(),r.go("app.admin-topic")},e.addRule=function(t){e.topic.rules.push(t),delete e.select.rule},e.removeRule=function(t){c(e.topic.rules,function(e){return e.rule_id===t.rule_id})},e.getAvailableRules=function(){return e.topic&&e.topic.rules&&e.topic.rules.length?l(e.availableRules,function(t){return a(e.topic.rules,function(e){return t.rule_id===e.rule_id})}):e.availableRules},e.updateTaggedRules=function(){e.topic.tag&&y.then(function(){e.taggedRules=e.availableRules.filter(function(t){return a(t.tags,{name:e.topic.tag})})})};var x="Do you want to leave this form? Changes you made might not be saved.";h.onbeforeunload=function(){return x};var M=m.$on("$stateChangeStart",function(e){confirm(x)||e.preventDefault(),b()});e.preview=function(e,t,n){var r=v(e);g.open({templateUrl:"js/components/topics/topicPreviewModal/topicPreviewModal.html",windowClass:"topic-preview-modal ng-animate-enabled",backdropClass:"system-backdrop ng-animate-enabled",controller:"TopicPreviewModalCtrl",resolve:{topic:function(){return r},summary:function(){return t},details:function(){return n}}})}}r.$inject=["$scope","Topic","Rule","$state","$stateParams","DataUtils","Categories","$window","$rootScope","$modal"];var i=e("../../"),a=e("lodash/find"),o=e("lodash/map"),s=e("lodash/pick"),c=e("lodash/remove"),l=e("lodash/reject"),u=e("lodash/sortBy"),d=e("lodash/capitalize");i.controller("EditTopicCtrl",r)},{"../../":230,"lodash/capitalize":485,"lodash/find":497,"lodash/map":527,"lodash/pick":538,"lodash/reject":542,"lodash/remove":543,"lodash/sortBy":545}],241:[function(e,t,n){"use strict";function r(e,t,n,r,i,o,s,c,l,u,d,p,f,h,m){function g(){r.go("app.actions")}function v(){var t=void 0,r=[];"all"!==s.getSelectedProduct()&&(t=s.getSelectedProduct());var a=l.init();r.push(a);var u=o.get(i.id,t,"resolution_risk").success(function(e){if(e.hidden&&!n.isInternal)return g();n._topic=e,e.rules.forEach(c.readRule),p.init(i),p.add({label:e.title,state:"app.topic",params:{id:i.id}}),d.scroll(null,30),n.topic=Object.create(n._topic)}).catch(function(e){if(404===e.status)return g();n.errored=!0});r.push(u),e.all(r).finally(function(){n.loading=!1})}s.parseBrowserQueryParams(),s.setShowFilters(!1),n.loading=!0,n.QuickFilters=u,n.search={filters:["description"].map(function(e){return function(t,n){return String(a(t,e)).toUpperCase().includes(n.toUpperCase())}}),doFilter:function(e){n.loading=!0,n.topic=void 0,n.topic=Object.create(n._topic),n.topic.rules=e?n._topic.rules.filter(function(t){return n.search.filters.some(function(n){return n(t,e)})}):n._topic.rules,n.loading=!1}},t.$on("reload:data",v),n.$on("group:change",v),v(),f.allowExport&&h.addExportAction(function(){m.getReports(i.id)})}r.$inject=["$q","$rootScope","$scope","$state","$stateParams","Topic","FilterService","DataUtils","IncidentsService","QuickFilters","PermalinkService","ActionsBreadcrumbs","InsightsConfig","ActionbarService","Export"];var i=e("../../"),a=e("lodash/get");i.controller("TopicRuleListCtrl",r)},{"../../":230,"lodash/get":502}],242:[function(e,t,n){"use strict";function r(e,t,n,r,i){function a(){if(angular.isDefined(e.topics))for(var t=0;t<e.topics.length;t++)e.topics[t].priority=t}function o(e,t){n.update({id:e.id,hidden:t}).then(function(){e.hidden=t})}function s(e,n,r,i){t({title:e,text:n}).then(i)}e.loader=new i.Loader,e.loader.bind(function(){return n.admin().then(function(t){e.topics=t.data})})(),e.$watchCollection("topics",a),e.newTopic=function(){n.create({title:"Unnamed topic"}).then(function(e){r.go("app.edit-topic",{id:e.data.id})})},
11e.move=function(t,r){if(!(0===t.priority&&r||t.priority===e.topics.length-1&&!r)){var i=(r?-1:1)+t.priority,o=e.topics[t.priority]=e.topics[i],s=e.topics[i]=t;a(),n.update({id:o.id,priority:o.priority}),n.update({id:s.id,priority:s.priority})}},e.delete=function(t){s("Are you sure?","Topic will be lost.","Yes",function(){n.remove(t.id).then(function(){e.topics.splice(e.topics.indexOf(t),1)})})},e.hide=function(e,t){if(!t)return s("Are you sure?","Publishing this topic makes it visible to customers.","Publish",function(){o(e,t)});o(e,t)}}r.$inject=["$scope","sweetAlert","Topic","$state","Utils"],e("../../").controller("TopicAdminCtrl",r)},{"../../":230}],243:[function(e,t,n){"use strict";t.exports=angular.module("insights.templates",[]).run(["$templateCache",function(e){e.put("js/components/accountSelect/accountSelect.html",'<div ng-show="showAccountSelector()" class="header-block account-select"><div class="tam"><div class="account-number"><label>Account Number</label><div ng-click="reset()" class="fa fa-home pull-right pointer"></div><div ng-click="accountChange(account_number)" class="fa fa-refresh pull-right tam-icon pointer"></div><input ng-model="account_number" ng-keyup="$event.keyCode == 13 &amp;&amp; accountChange(account_number)" class="accNumbInput input-ghost"/></div><div class="internal"><label><input type="checkbox" ng-model="isInternal" ng-change="changeInternal()" class="action"/>Internal</label></div></div></div>'),e.put("js/components/actionbar/actionbar.html",'<div class="actionbar"><md-button ng-repeat="action in myActions track by action.title" ng-click="action.fn()" class="action btn btn-sm btn-open-blue"><i ng-class="action.icon" class="pointer fa"></i>{{:: action.title | translate}}</md-button></div>'),e.put("js/components/ansibleIcon/ansibleIcon.html",'<span tooltip="{{tooltip}}" ng-class="svgClass" class="ansible-icon svg"><md-icon md-svg-src="{{icon}}" alt="{{tooltip}}"></md-icon><span ng-hide="hideLabel" class="text">{{:: supportText}}</span></span>'),e.put("js/components/betaSwitchButton/betaSwitchButton.html",'<div class="beta-switch">\x3c!-- The default "take me to the Beta page" option--\x3e<md-button ng-click="switchVersion(true)" ng-show="!isOnBeta()" translate="translate" class="md-button-sm md-primary">Try Insights Beta</md-button>\x3c!-- User is in beta, show Beta Options--\x3e<md-menu md-offset="0 34" md-position-mode="target-right target" ng-show="isOnBeta()"><md-button id="help" ng-click="$mdMenu.open()" class="md-raised md-primary"> <strong translate="translate">Beta options</strong><i class="fa fa-cog"></i></md-button><md-menu-content aria-labelledby="help"><md-menu-item><a ng-click="switchStatus()" translate="translate">Default to Insights Beta<md-checkbox ng-show="isOnBeta()" ng-model="isOptedIn" aria-label="Beta Button" class="md-accent md-hue-1 beta-checkbox"> </md-checkbox></a></md-menu-item><md-menu-item><a ng-click="leaveBeta()" translate="translate">Leave Beta</a></md-menu-item></md-menu-content></md-menu></div>'),e.put("js/components/bullhorn/bullhorn.html",'<span dropdown="" on-toggle="toggled(open)" class="dropdown dropdown-notification"><a href="" dropdown-toggle="" class="dropdown-toggle"><i class="fa {{:: icon}}"></i><span ng-if="unackedCount !== 0" class="count">{{:: unackedCount}}</span></a><ul class="dropdown-menu preview"><li ng-repeat="item in items" ng-class="{ acked: (item.acked) }" ng-click="item.acked ? selectAnnouncement(item) : ack(item)" class="announcement"><div class="announcement-message"><div class="title"><b>{{:: item.title}}</b></div><div class="message"><trimmed-text length="140" text="{{:: item.body.substring}}">({{:: item.body.length}})</trimmed-text></div></div><div class="message-status-toggle"><i ng-if="item.acked" class="fa fa-check-circle-o acked"></i><i ng-if="!item.acked" class="fa fa-circle-o"></i></div></li><li ng-if="items.length === 0"><strong translate="translate">You have no announcements</strong></li><li ng-if="items.length !== 0" class="view-all"><a ui-sref="app.announcements" translate="translate" class="btn btn-accent">View All</a></li></ul></span>'),e.put("js/components/card/card.html",'\x3c!-- \'md-card defines all cards as material cards\'--\x3e<md-card ng-transclude="ng-transclude" class="card"></md-card>'),e.put("js/components/card/cardContent.html",'<md-card-content ng-hide="card.expandable &amp;&amp; (card.collapsed || card.loading)" ng-transclude="ng-transclude"><div ng-show="card.loading" ng-if="card.expandable" class="spinner spinner-xs"></div></md-card-content>'),e.put("js/components/card/cardFooter.html",'<md-card-footer ng-transclude="ng-transclude"><md-button ng-click="card.toggleContent()" class="btn btn-accent footer footer-with-toggle visible-xs"><div class="footer-toggle"><i class="fa fa-caret-down"></i></div></md-button></md-card-footer>'),e.put("js/components/card/cardHeader.html",'<md-card-header ng-transclude="ng-transclude"></md-card-header>'),e.put("js/components/card/cardHeaderExpandable.html",'<md-card-header ng-click="card.toggleContent()" class="card-header-expandable-card"><div class="expandable-toggle ng-animate-enabled"><i class="fa fa-chevron-right"></i></div><div ng-transclude="ng-transclude" class="card-header-content"></div></md-card-header>'),e.put("js/components/categoryIcon/categoryIcon.html",'<i ng-class="category.toLowerCase() + \'-category-icon\'" class="fa"></i>'),e.put("js/components/collapsibleFilter/collapsibleFilter.html",'<div id="dataFilters" ng-class="{open: open, tags: hasTags()}" class="dataFilters"><div id="dataFiltersBody" class="data-filters-body collapse"><div ng-transclude="ng-transclude"></div></div><div id="activeFilter" ng-show="hasTags()" ng-model="tags" class="active-filters"><div class="flexgrid"><strong translate="translate">Active filters:&nbsp;</strong>\x3c!-- remove filter on click--\x3e<button ng-repeat="(key, value) in tags" ng-click="removeFilter(key)" class="btn btn-accent"><span translate="translate">{{:: value | translate}}</span><i aria-hidden="true" class="fa fa-times-circle-o"></i></button></div></div><footer id="dataFiltersControlBar" class="data-filters-control-bar"><div data-toggle="collapse" href="#dataFiltersBody" aria-expanded="false" aria-controls="dataFiltersBody" ng-class="{active: open}" class="toggle"><div class="icon-inline"><i class="fa fa-caret-down"></i><strong>Page Filters</strong><i class="fa fa-caret-down"></i></div></div></footer></div>'),e.put("js/components/content-info/content-info.html",'<footer role="content-info"><div class="redhat-logo"><a href="https://www.redhat.com/" target="_blank" class="redhat-link"><span translate="translate" class="hidden">Red Hat</span><img src="./static/images/rh-logo.svg" aria-label="Red Hat"/></a></div><div class="copyright">Copyright © 2017 Red Hat, Inc.</div><nav role="navigation" class="footer-nav"><ul><li><a href="http://www.redhat.com/en/about/privacy-policy" class="privacy-policy">Privacy Policy</a></li><li><a href="https://access.redhat.com/help/terms/" class="terms-of-use">Customer Portal Terms of Use</a></li><li><a href="http://www.redhat.com/en/about/all-policies-guidelines" class="all-policies">All Policies and Guidelines</a></li></ul></nav></footer>'),e.put("js/components/demoAccountSwitcher/demoAccountSwitcher.html",'<md-menu-item ng-if="showDemoSwitcher()"><a ng-show="!demoAccountEnabled" ng-click="toggleDemoAccount()" translate="translate">Enable Demo Account</a><a ng-show="demoAccountEnabled" ng-click="toggleDemoAccount()" translate="translate">Disable Demo Account</a></md-menu-item>'),e.put("js/components/digest/digestGraph.html",'<div class="graph-container"><div ng-if="dropDown" class="graph graph-filters"><div class="row"><div class="col-sm-3 col-sm-offset-9"><div class="dropdown full-width show"><button data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" class="btn btn-default dropdown-toggle"><div translate="translate">{{:: dropDown}}</div><span class="caret"></span></button><ul class="dropdown-menu"><li ng-repeat="trace in traces track by trace.name" ng-click="$event.stopPropagation()"><label class="checkbox-inline"><input type="checkbox" name="availability" ng-model="trace.enabled" ng-click="toggleTrace(trace)"/><div translate="translate">{{:: trace.name}}</div></label></li></ul></div></div></div></div><div class="digest-graph"></div></div>'),e.put("js/components/expandAllButton/expandAllButton.html",'<a ng-click="onClick()"><strong translate="translate" ng-hide="expand">Collapse All</strong><strong translate="translate" ng-show="expand">Expand All</strong><i ng-class="{\'fa-compress\': !expand, \'fa-expand\': expand}" class="fa inline-left"></i></a>'),e.put("js/components/feedback/feedbackButton.html",'<a ng-click="openFeedbackPage()" class="btn btn-feedback"><i aria-hidden="true" class="fa fa-comments"></i><strong translate="translate">Provide feedback</strong></a>'),e.put("js/components/feedback/feedbackModal.html",'<div class="page"><div class="section"><div class="row push-top"><div class="col-sm-12">\x3c!-- This needs form validation--\x3e<form name="form"><div class="form-group"><label translate="translate" class="control-label">Page Reported</label><p class="form-control-static">{{:: feedbackInfo.fromPage }}</p></div><div class="form-group"><label translate="translate" class="control-label">Email</label><p translate="translate">{{:: feedbackInfo.user.email }}&nbsp;<small translate="translate">(to change your Red Hat email address&nbsp;<a translate="translate" href="https://www.redhat.com/wapps/ugc/protected/emailChange.html">click here</a>)</small></p><input ng-if="emailOverride" type="email" ng-model="feedbackInfo.user.email" class="form-control"/></div><div class="form-group"><label translate="translate" class="control-label">Comment</label><textarea type="text" rows="5" ng-model="comment" class="form-control"></textarea></div><div class="pull-right"><small ng-if="isError" translate="translate" class="text-danger">An error occurred. Please try again later.&nbsp;</small><div class="btn-group"><button name="cancel" ng-click="close()" translate="translate" class="btn btn-accent">Cancel</button><button name="submit" ng-click="submitForm()" ng-disabled="!form.$valid || !isCommentPopulated()" translate="translate" class="btn btn-accent">Submit</button></div></div></form></div></div></div></div>'),e.put("js/components/gaugeMarker/gaugeMarker.html",'<div style="transform: rotate({{rotate}}deg)" class="pivot"><div class="arm"><div style="transform: rotate(-{{rotate}}deg)" tooltip="{{:: tooltip}}" tooltip-trigger="mouseenter" tooltip-append-to-body="true" tooltip-placement="top" class="marker {{:: diffClass}}"><div ng-if="difference != 0"><i aria-hidden="true" class="fa fa-caret-up"></i><div class="num">{{:: difference}}</div><i aria-hidden="true" class="fa fa-caret-down"></i></div></div></div></div>'),e.put("js/components/gettingStartedTabs/gettingStartedTabs.html",'<nav class="system-selector"><div class="row"><div class="col-lg-5"><h4 translate="translate">Select your registration method</h4></div><div class="col-lg-7 nomari"><div class="filters"><button ui-sref="info.getting-started.direct" ui-sref-active="active" ui-sref-opts="{location: \'replace\'}" type="button" translate="translate">Direct</button><button ui-sref="info.getting-started.sat5" ui-sref-active="active" ui-sref-opts="{location: \'replace\'}" type="button" translate="translate">Satellite 5</button><button ui-sref="info.getting-started.sat6" ui-sref-active="active" ui-sref-opts="{location: \'replace\'}" type="button" translate="translate">Satellite 6</button><button ui-sref="info.getting-started.cloudforms" ui-sref-active="active" ui-sref-opts="{location: \'replace\'}" type="button" translate="translate">CloudForms</button><button ui-sref="info.getting-started.rhv" ui-sref-active="active" ui-sref-opts="{location: \'replace\'}" type="button" translate="translate">RHV</button><button ui-sref="info.getting-started.osp" ui-sref-active="active" ui-sref-opts="{location: \'replace\'}" type="button" translate="translate">Openstack</button><button ui-sref="info.getting-started.containers" ui-sref-active="active" ui-sref-opts="{location: \'replace\'}" type="button" translate="translate">Containers</button></div></div></div></nav>'),e.put("js/components/groupSelect/groupSelect.html",'<div class="hidden-in-product group-select"><label><i aria-hidden="true" class="fa fa-globe"></i><span translate="translate">Group filter:</span></label><md-menu md-offset="0 34"><md-button id="group-select" ng-click="$mdMenu.open($scope.$broadcast(Events.filters.reset));" aria-haspopup="true" aria-expanded="false" ng-disabled="disabled" class="button-dropdown"><span ng-show="!disabled &amp;&amp; !isGroupSelected() &amp;&amp; !groups.length" translate="translate" class="text">Group select</span><span ng-show="disabled || (!isGroupSelected() &amp;&amp; groups.length)" translate="translate" class="text">All Systems</span><b ng-show="isGroupSelected() &amp;&amp; !disabled" class="text active">{{group.display_name}}</b><span class="caret"></span></md-button><md-menu-content ng-click="$event.stopPropagation();" role="menu" aria-labelledby="group-select"><md-menu-item class="no-hover"><search-box on-search="searchGroups(model)" ng-keyup="keypress($event)" placeholder="{{:: \'Find A Group\' | translate}}"></search-box></md-menu-item><md-menu-item ng-repeat="g in groups | filter:showSelectedGroup track by g.id" class="selected"><div ng-click="triggerChange(g)"><trimmed-text length="30" text="{{:: g.display_name}}">({{:: g.systems.length}})</trimmed-text><i ng-click="deleteGroup(g); $event.stopPropagation();" tooltip="{{:: \'Delete group\' | translate}}" class="fa fa-trash-o group-control pull-right"></i></div></md-menu-item><md-menu-item ng-show="showAllSystems()"><a ng-click="triggerChange(null)" translate="translate" class="link">- Show all systems -</a></md-menu-item><md-menu-item ng-repeat="g in groups | filter:hideSelectedGroup | orderBy:&quot;display_name&quot; track by g.id"><div ng-click="triggerChange(g)"><trimmed-text length="30" text="{{:: g.display_name}}">({{:: g.systems.length}})</trimmed-text><i ng-click="deleteGroup(g); $event.stopPropagation();" tooltip="{{:: \'Delete group\' | translate}}" class="fa fa-trash-o group-control pull-right"></i></div></md-menu-item></md-menu-content></md-menu><a ng-click="createGroup()" tooltip="{{:: &quot;Create new system group&quot; | translate}}" class="link add-group">+ Add group</a></div>'),e.put("js/components/insightsTagline/insightsTagline.html",'<p class="intro text-center text-white hidden"> </p>'),e.put("js/components/linkGroup/linkGroup.html",'<div ng-if="group.length === 1" class="member-group"><strong></strong><type-icon type-id="group[0].system_type_id" include-text="true"></type-icon>&nbsp;&nbsp;<i ng-class="{{getLinkStatus(group[0])}}" title="{{getLinkReportCount(group[0])}}" class="fa link-status">&nbsp;&nbsp;</i><a ng-click="goToSystem(group[0])">{{getLinkName(group[0])}}</a></div><div ng-if="group.length &gt; 1" class="member-group"><div ng-click="toggleCollapsed()" class="member-group-head"><i ng-if="!collapsed" class="group-twisty fa fa-caret-down">&nbsp;&nbsp;</i><i ng-if="collapsed" class="group-twisty fa fa-caret-right">&nbsp;&nbsp;</i><type-icon type-id="typeid" include-text="false"></type-icon><span ng-if="hasReports()">&nbsp;&nbsp;<i tooltip="A system in this group has actions!" tooltip-trigger="mouseenter" tooltip-append-to-body="true" tooltip-placement="top" class="fa fa-exclamation-triangle i-warning"></i></span>{{linkGroupText}}</div><div ng-if="!collapsed" class="member-group-content"><div class="row"><div ng-repeat="link in group" class="link-text"><div class="col-sm-4"><i ng-class="{{getLinkStatus(link)}}" title="{{getLinkReportCount(link)}}" class="fa link-status"></i><a ng-click="goToSystem(link)" title="{{getLinkName(link)}}">&nbsp; {{getLinkName(link)}}</a></div></div></div></div></div>'),e.put("js/components/listType/listType.html",'<div class="list-switch"><a ng-click="setListType(listTypes.card)" ng-class="{active: getListType() === listTypes.card}" class="link"><i class="fa fa-list"></i></a><a ng-click="setListType(listTypes.table)" ng-class="{active: getListType() === listTypes.table}" class="link"><i class="fa fa-table"></i></a></div>'),e.put("js/components/mitigationTrend/mitigationTrend.html",'<div class="mitigation-chart"></div>'),e.put("js/components/notifications/notifications.html",'<div class="notifications"><alert ng-repeat="alert in alerts" type="{{:: alert.level}}" close="dismiss($index, alert.type)"><span ng-bind-html=":: alert.msg | trust_html"></span></alert></div>'),e.put("js/components/pageHeader/pageHeader.html",'<section ng-transclude="ng-transclude" class="page-header"><div class="page-title"><h1><i aria-hidden="true" class="fa {{:: icon}}"></i><span translate="translate" class="text">{{:: titleTranslated}}</span></h1></div></section>'),e.put("js/components/platformFilter/platformFilter.html",'<section ng-class="{active: getSelectedProduct() !== \'all\'}" ng-show="platforms.length &gt; 1" class="platform-select platform-{{getSelectedProduct()}}"><div class="row"><div class="col-sm-12"><div class="pull-right"><a translate="translate" ng-click="viewAll()" ng-show="getSelectedProduct() !== \'all\'" class="btn btn-rounded"><i aria-hidden="true" class="fa fa-refresh"></i>View all platforms</a></div></div></div><div class="row row-short"><div ng-if="getSelectedProduct() !== \'all\'" class="platform"><div class="col-sm-6"><img ng-src="{{getImage()}}"/></div></div><div ng-if="getSelectedProduct() === \'all\'" class="platform-filters"><div ng-repeat="filter in platforms" class="col-sm-6 col-md-3"><div ng-class="{active: filter.active}" ng-click="selectFilter(filter)" class="btn btn-quick-filter platform-{{filter.product.code}}"><div class="platform quick-filter-btn-content">{{filter.displayName}}</div>\x3c!--.summary(ng-show=\'summaryType === "categories" && !loadingSummary\') --\x3e<div ng-show="!loadingSummary" class="summary"> <span ng-repeat="item in getSummaryItems(filter.product.code)"><span>{{item}}</span><div ng-if="!$last" class="sep"></div></span></div>\x3c!--.summary(ng-show=\'summaryType === "systems" && !loadingSummary\')//a(ng-repeat=\'subFilter in filter.subFilters\',\n //ng-click=\'selectSubFilter(subFilter); $event.stopPropagation()\') ({{subFilter.count}}) {{subFilter.displayName}}\n //.sep(ng-if=\'!$last\') |--\x3e</div></div></div></div></section>'),e.put("js/components/primary-nav/primary-nav.html",'<div class="primary-nav"><account-select></account-select><nav role="navigation" aria-label="Primary Navigation" a="true"><ul><li><a ui-sref="app.overview" ui-sref-active="current" md-ink-ripple="md-ink-ripple" ng-click="toggleLeft()"><i class="fa fa-tachometer"></i><span translate="translate" class="text">Overview</span></a></li><li><a ui-sref="app.actions" md-ink-ripple="md-ink-ripple" ng-click="toggleLeft()" ng-class="isActive(states.actions)"><i class="fa fa-file-text"></i><span translate="translate" class="text">Actions</span></a></li><li><a ui-sref="app.inventory" ui-sref-active="current" md-ink-ripple="md-ink-ripple" ng-click="toggleLeft()"><i class="fa fa-database"></i><span translate="translate" class="text">Inventory</span></a></li><li ng-if="config.isPlannerEnabled"><a ui-sref="app.maintenance" ui-sref-active="current" md-ink-ripple="md-ink-ripple" ng-click="toggleLeft()"><i class="fa fa-wrench"></i><span translate="translate" class="text">Planner</span></a></li><li ng-if="canSeePolicies"><a ui-sref="app.list-policies" md-ink-ripple="md-ink-ripple" ng-class="isActive(states.policies)"><i class="fa fa-gavel"></i><span translate="translate" class="text">Policies</span></a></li><li><a ui-sref="app.rules" ng-class="isActive(states.rules)" md-ink-ripple="md-ink-ripple" ng-click="toggleLeft()"><i class="fa fa-institution"></i><span translate="translate" class="text">Rules</span></a></li><li><a ui-sref="app.digests" ui-sref-active="current" md-ink-ripple="md-ink-ripple" ng-click="toggleLeft()"><i class="fa fa-bar-chart"></i><span translate="translate" class="text">Executive Report</span></a></li><li><a ui-sref="app.config" md-ink-ripple="md-ink-ripple" ng-click="toggleLeft()" ng-class="isActive(states.config)"><i class="fa fa-file-text"></i><span translate="translate" class="text">Configuration</span></a></li></ul></nav><footer ng-if="isPortal"><nav role="navigation" aria-label="Secondary Navigation" class="footer-nav"><ul><li><md-button href="/" title="Back to Customer Portal" class="button button-back"><i aria-hidden="true" class="fa fa-caret-left"></i><span translate="translate" class="text">Customer Portal</span></md-button></li><li><md-button ng-click="doLogout()" title="Log out of Customer Portal" class="button button-logout"><i aria-hidden="true" class="fa fa-sign-out"></i><span translate="translate" class="text">Logout</span></md-button></li></ul></nav></footer></div>'),e.put("js/components/recommendedKbase/recommendedKbase.html",'<div ng-if="solution &amp;&amp; !loading" class="matched-solution"><span ng-if="showLabel" class="icon-inline"><i class="fa fa-circular fa-lightbulb-o"></i><strong translate="translate">Related Knowledgebase articles:</strong></span><a target="_blank" href="{{:: solution.viewUri}}"> {{:: solution.title}}</a></div><div ng-if="loading" class="spinner spinner-sm spinner-inline"></div>'),e.put("js/components/renameableProperty/renameableProperty.html",'<div class="renameableProperty"><div ng-mouseenter="editIcon=true" ng-mouseleave="editIcon=false" ng-show="!edit.value" ng-dblclick="rename(newValue)" class="name ellipsis-overflow editable">{{edit.name}}<div id="edit-toggle" ng-show="editIcon" ng-click="rename()" class="edit-toggle i fa fa-pencil-square-o"></div></div><input id="renameable-property-input" ng-if="edit.value" type="text" ng-model="edit.name" ng-disabled="edit.value === &quot;frozen&quot;" ng-keyup="$event.keyCode == 13 &amp;&amp; submit($event)"/></div>'),e.put("js/components/riskOfChange/riskOfChange.html",'<div id="riskOfChange" class="risk-of-change"><div class="icon-inline"><img src="./static/images/i_risk-of-change.svg" alt="Risk of change icon" aria-hidden="aria-hidden" class="icon icon-med icon-risk-of-change"/><span ng-hide="hideLabel" class="title">Risk of change:&nbsp;</span><b ng-if="changeRisk === 1" translate="translate" class="alert-text alert-text-green">Very Low</b><b ng-if="changeRisk === 2" translate="translate" class="alert-text alert-text-blue">Low</b><b ng-if="changeRisk === 3" translate="translate" class="alert-text alert-text-orange">Moderate</b><b ng-if="changeRisk === 4" translate="translate" class="alert-text alert-text-red">High</b></div></div>'),e.put("js/components/ruleStateIcon/ruleStateIcon.html",'<i ng-class="state + \'-rule-state-icon\'" class="fa"></i>'),e.put("js/components/severityIcon/allSeverityIcons.html",'<ul class="icon-group icon-group-severity"><li><severity-icon type="impact" severity="rule.rec_impact"></severity-icon></li><li><severity-icon type="likelihood" severity="rule.rec_likelihood"></severity-icon></li><li><severity-icon type="severity" severity="rule.severity"></severity-icon></li></ul>'),e.put("js/components/severityIcon/severityIcon.html",'<div ng-init="init()" class="severity"><i tooltip="{{:: tooltip}}" class="severity-icon {{:: getClass(type)}} {{:: sevClass}}"></i><span ng-if="label" translate="translate" class="title {{:: getClass(type)}}">{{:: label}}</span></div>'),e.put("js/components/simpleSelect/simpleSelect.html",'<div class="dropdown gray"><button type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" ng-disabled="disabled" class="btn btn-default dropdown-toggle"><strong>{{ selected.label}}</strong><span class="caret"></span></button><ul class="dropdown-menu"><li ng-repeat="option in options"><a ng-click="select(option)">{{option.label}}</a></li></ul></div>'),e.put("js/components/statusIcon/statusIcon.html",'<span><i ng-show="status" tooltip="{{:: \'This issue has been resolved\' | translate}}" class="fa fa-check"></i><i ng-hide="status" tooltip="{{:: \'This issue has NOT yet been resolved. This field will be updated automatically once the system checks in.\' | translate}}" class="fa fa-minus"></i></span>'),e.put("js/components/systemMetadata/systemMetadata.html",'<div ng-if="!loading" class="system-metadata"><card class="system-information"><card-content class="with-tile"><div class="system-type tile"><i ng-if="getSystemType() === \'Virtual\'" tooltip="{{:: \'Server type: Virtual\' | translate}}" class="fa fa-clone fa-2x md-whiteframe-3dp"></i><i ng-if="getSystemType() !== \'Virtual\'" tooltip="{{:: \'Server type: Physical\' | translate}}" class="fa fa-server fa-2x md-whiteframe-3dp"></i></div><div class="text"><h2 ng-if="!edit.value" ng-dblclick="rename()" class="name ellipsis-overflow editable">{{ edit.name }}<renameable-property value="system.display_name || system.hostname" update-function="rename(newValue)" allow-null="true"></renameable-property></h2><div class="hostname ellipsis-overflow"><b>Hostname:&nbsp;</b><span>{{:: system.hostname }}</span></div>\x3c!-- always show the uuid.... it must exist--\x3e<div class="uuid ellipsis-overflow"><b>UUID:&nbsp;</b><span>{{:: getUUID() }}</span></div><view-system-groups system="system" ng-if="config.isGroupsEnabled"></view-system-groups></div></card-content></card><div ng-if="!system.isCheckingIn" class="alert-warn"><span translate="translate">This system is not checking in.</span></div>\x3c!-- Basic system meta-data table--\x3e<table class="metadata-information"><tbody><tr ng-repeat="facts in initialMetadata track by facts.label"><td><b translate="translate">{{:: facts.label}}</b></td><td translate="translate">{{:: facts.value}}</td></tr></tbody></table></div><div id="expandableDataTable" ng-if="!loading; hasMetadata()" class="expandable-data-table expanded">\x3c!-- Nav tabs--\x3e<ul role="tablist" ng-mouseenter="toggleHovering()" ng-mouseleave="toggleHovering()" ng-click="enableExpanded()" class="nav"><li id="system-tab" role="presentation" ng-if="!disableTab(\'system\')" ng-click="getData(\'system\', $event)"><a href="#system" aria-controls="system" role="tab" data-toggle="tab"><i class="fa fa-desktop">&nbsp;</i><span translate="translate" class="tabname">System</span></a></li><li id="network-tab" role="presentation" ng-if="!disableTab(\'network\')" ng-click="getData(\'network\', $event)"><a href="#network" aria-controls="network" role="tab" data-toggle="tab"><i class="fa fa-sitemap">&nbsp;</i><span translate="translate" class="tabname">Network</span></a></li></ul>\x3c!-- Tab panes--\x3e<div ng-init="setDefaultTab()" ng-class="{expanded: expanded}" class="tab-content"><div id="system" role="system" class="tab-pane"><div class="flex"><card ng-if="!tabsContent.system.noData" ng-repeat="data in tabsContent.system.data" class="cell {{:: data.label | lowercase}}"><card-header class="gray"><b>{{:: data.label }}</b></card-header><card-content><ul class="list list-simple"><li ng-repeat="value in data.values track by value.label" translate="translate"><strong>{{:: value.label}}</strong><br/><span>{{:: value.value}}</span></li></ul></card-content></card></div></div><div id="network" role="network" class="tab-pane"><div class="row"><div class="col-sm-12"><div ng-if="!disableTab(\'network\')" class="table-responsive"><table><thead><tr><th translate="translate" class="ellipsis-overflow">Process Name</th><th translate="translate" class="ellipsis-overflow">IP Address</th><th translate="translate" class="ellipsis-overflow">Port</th></tr></thead><tbody><tr ng-repeat="values in tabsContent.network.data | orderBy:[networkSorter, \'name\', \'ip_addr\']" ng-if="$index &lt; rowLimit || showAll"><td class="ellipsis-overflow">{{:: values.name }}</td><td class="ellipsis-overflow">{{:: values.ip_addr }}</td><td class="ellipsis-overflow">{{:: values.port }}</td></tr></tbody></table></div></div></div><div class="row row-short"><div class="col-sm-12 text-center"><a ng-if="showExpandTableBtn()" ng-click="toggleExpandTable()" class="link expandTableButton"><strong translate="translate" ng-if="showAll">Collapse Table</strong><strong translate="translate" ng-if="!showAll">Expand Table</strong></a></div></div></div></div></div>'),e.put("js/components/tableFilters/tableFilters.html",'<section id="data-filters" ng-class="{tags: hasTags()}" class="data-filters"><div ng-transclude="ng-transclude" class="filters"></div><div ng-if="hasTags()" ng-model="tags" class="active-filters"><strong translate="translate">Active filters:&nbsp;</strong>\x3c!-- remove filter on click--\x3e<button ng-repeat="(key, value) in tags" ng-click="removeFilter(key)" class="button-active-filter button-tag"><span translate="translate">{{value | translate}}</span><i aria-hidden="true" class="fa fa-times-circle-o"></i></button></div></section>'),e.put("js/components/tableFilters/tableFiltersContent.html",'<div ng-transclude="ng-transclude"></div>'),e.put("js/components/tag/tag.html",'<span ng-bind="$getDisplayText()" tooltip="{{:: data.description}}"></span><a ng-click="$removeTag()" ng-bind="::$$removeTagSymbol" class="remove-button"></a>'),e.put("js/components/timeRange/timeRange.html",'<time><span class="from">{{:: startTime | lowercase}}</span><span ng-if="startDate">&nbsp;({{:: startDate}})</span><span>&nbsp;-&nbsp;</span><span class="to">{{:: endTime | lowercase}}</span><span ng-if="endDate">&nbsp;({{:: endDate}})</span></time>'),e.put("js/components/toasts/undoDeleteWithClose.html",'<md-toast class="md-whiteframe-5dp nopad accent"><span>{{:: toastcontent}}</span><div ng-click="undoDelete()" class="undo-delete">Undo</div><div ng-click="closeToast()" class="fa fa-times"></div></md-toast>'),e.put("js/components/topbar/topbar.html",'<div class="cell insights-logo"><button ng-click="sidenavCollapsed = !sidenavCollapsed" class="toggle-fullscreen"><md-icon md-font-icon="fa fa-indent"></md-icon></button><md-button ng-click="toggleLeft()" hide-gt-xs="hide-gt-xs" class="md-primary"><md-icon md-font-icon="fa fa-navicon"></md-icon></md-button><a ui-sref="app.overview" class="home-link"><span translate="translate" class="hidden">Red Hat Insights</span><md-icon md-svg-src="./static/images/l_insights.svg" aria-label="Red Hat Insights "></md-icon></a></div><div ng-class="{disabled: disabled}" ng-if="isGroupsEnabled" class="cell global-filters"><group-select disabled="disabled"></group-select></div><div class="cell topbar-utilities"><feedback-button class="btn-feedback"></feedback-button><span class="sep"></span><menu class="notifications"><bullhorn icon="fa-bullhorn" type="announcements"></bullhorn><alerts icon="fa-bell" type="alerts"></alerts></menu><span class="sep"></span><md-menu md-offset="0 34" md-position-mode="target-right target"><md-button id="help" ng-click="$mdMenu.open()" class="button-dropdown"><strong translate="translate">Help</strong><span aria-hidden="true" class="caret dropdown-caret"></span></md-button><md-menu-content aria-labelledby="help"><md-menu-item><a href="{{:: gettingStartedLink}}" target="_blank" translate="translate">Getting Started</a></md-menu-item><md-menu-item><a href="https://access.redhat.com/documentation/en/red-hat-insights/" target="_blank" translate="translate">Product Documentation</a></md-menu-item><md-menu-item><a ui-sref="info.info" translate="translate">More Info</a></md-menu-item><md-menu-item><a ui-sref="info.security" translate="translate">Security</a></md-menu-item><md-menu-item><a href="/help/browsers" target="_self" translate="translate" ng-if="isPortal">Browser Support</a></md-menu-item><md-menu-item><a href="/r/insights/docs/" translate="translate">Insights API Documentation</a></md-menu-item><demo-account-switcher></demo-account-switcher></md-menu-content></md-menu><beta-switch-button></beta-switch-button></div>'),
12e.put("js/components/typeIcon/typeIcon.html",'<span><span tooltip="{{:: systemTypeDisplayName}}" tooltip-trigger="mouseenter" tooltip-append-to-body="true" tooltip-placement="top" class="title"><i ng-class="systemTypeIcon" class="fa spinner-xs system-type-icon"></i></span><strong ng-if="includeText">&nbsp;&nbsp;{{:: systemTypeDisplayNameShort}}</strong></span>'),e.put("js/components/userInfo/userInfo.html",'<div class="user-info"><h2 class="title-widget"><i class="fa fa-user"></i><span translate="translate">Profile</span></h2><menu class="messaging-menu"><div class="heading heading-w-profile-image"><div class="profile-image"><img gravatar-src="user.email" gravatar-size="100" gravatar-d="blank"/></div><div class="info"><div class="name"><strong>{{:: user.first_name}} {{:: user.last_name}}</strong></div><div class="last-login"><strong>Last login:</strong><date>07/22/15</date></div></div></div><nav class="user-info-nav"><li><a ui-sref="app.announcements"><i class="fa fa-bullhorn"></i><span translate="translate">Announcements</span><span class="count">{{:: alerts.unseen.length }}</span></a></li><li ng-if="false"><a><i class="fa fa-bell"></i><span translate="translate">Alerts</span><span class="count unread">50</span></a></li><li ng-if="false"><a><i class="fa fa-bullseye"></i><span translate="translate">Goals</span><span class="count">120</span></a></li><li ng-if="false"><a><i class="fa fa-envelope"></i><span translate="translate">Messages</span><span class="count unread">100</span></a></li><li ng-if="false"><a><i class="fa fa-comments-o"></i><span translate="translate">Mentions</span><span class="count">10</span></a></li><li ng-if="false"><a><i class="fa fa-certificate"></i><span translate="translate">Marketing</span><span class="count">120</span></a></li></nav></menu></div>'),e.put("js/components/viewSystemGroups/viewSystemGroups.html",'<div id="system-group-viewer" ng-if="inGroup()"><h3 translate="translate">Groups:</h3>\x3c!--button.btn.btn-accent.btn-sm--\x3e<button ng-repeat="group in groups track by group.id" ng-show="$index &lt; groupLimit || showAll" ng-click="groupSelected(group)" class="button-active-filter button-tag btn-sm"><span translate="translate">{{:: group.display_name | translate}} &nbsp;&nbsp;</span><i ng-click="showToast(\'top\', \'right\', group.display_name); deleteSystemFromGroup(group); $event.stopPropagation();" aria-hidden="true" class="fa fa-times"></i></button><span ng-if="groups.length &gt; groupLimit"><div ng-click="toggleShowAll()" class="fa fa-ellipsis-h"></div></span></div>'),e.put("js/components/yesNo/yesNo.html","<span><i ng-class=\"{'fa-times fail': no, 'fa-check success': yes}\" class=\"fa\"></i><strong> {{:: text}}</strong></span>"),e.put("js/states/actions/actions.html",'<div class="actions-page"><page-header title="Actions" icon="fa-file-text"></page-header><new-actions-graph></new-actions-graph><div ng-if="loading" class="text-center"><div class="spinner spinner-lg"></div></div><div class="rha-notifications"></div><section ng-if="!loading" class="content actions-overview"><div class="widget actions-pie-chart"><div class="chart-container text-center"><div class="donut-container"><div class="donut-hole"><div class="content"><div class="num">{{:: stats.rules.total}}</div><div translate="translate" class="text">Issues</div></div></div><div stats="stats" class="rha-telemetry-donut"></div></div><table class="legend"><tbody><tr><td ng-repeat="category in categoryTopics.slice(0,(categoryTopics.length &gt; 3 ? 2 : categoryTopics.length))"><a ng-class="category.id" ui-sref="app.topic({id: category.id, product: getSelectedProduct()})"><i ng-class="category.id + \'-color\'" aria-hidden="true" class="fa fa-square inline-right"></i><span translate="translate" class="desc">{{:: category.id | titlecase}}</span><span class="count">&nbsp;({{:: category.count}})</span></a></td></tr><tr ng-if="categoryTopics.length &gt; 3"><td ng-repeat="category in categoryTopics.slice(2,categoryTopics.length)"><a ng-class="category.id" ui-sref="app.topic({id: category.id, product: getSelectedProduct()})"><i ng-class="category.id + \'-color\'" aria-hidden="true" class="fa fa-square inline-right"></i><span translate="translate" class="desc">{{:: category.id | titlecase}}</span><span class="count">&nbsp;({{:: category.count}})</span></a></td></tr></tbody></table></div></div><card id="widgetIncidentSummary" ng-if="isBeta" class="card-accent widget actions-incident-summary"><card-header class="gray"><div translate="translate" class="card-header-title">Incident summary</div></card-header><card-content><incident-summary incident-count="incidentCount" incident-system-count="incidentSystemCount" rule-hits="stats.rules.total" class="incident-summary"></incident-summary></card-content></card><card class="card-accent widget actions-risk-summary"><card-header class="gray"><div translate="translate" class="md-card-header-title">Risk summary</div></card-header><card-content><severity-summary stats="stats"></severity-summary></card-content></card></section><section class="section-featured-topics content content-gray"><h2 translate="translate" class="section-title section-title-red">Featured Topics</h2><div ng-if="featuredTopics.length" class="flex topics"><card md-flex-33="md-flex-33" ng-repeat="topic in featuredTopics | orderBy:\'topic.order\' track by topic.id" topic="topic"><card-header><div class="card-header-title"><h4>{{:: topic.title}}</h4></div><div class="card-header-supporting-info"><span translate="translate" translate-n="topic.affectedSystemCount" translate-plural="{{:: $count}} Systems" class="count">1 System</span></div></card-header><card-content ng-bind-html=":: topic.summary_html ? topic.summary_html : Xtopic.content_html | trust_html"></card-content><card-footer class="text-right-sm"><strong><a translate="translate" ui-sref="app.topic({id: topic.slug ? topic.slug : topic.id, product: getSelectedProduct()})" class="pointer">View More</a></strong></card-footer></card>\n</div><div ng-if="!show.extraTopics &amp;&amp; extraTopics.length" class="text-center extra-topics"><md-button ng-click="show.extraTopics = true" translate="translate" class="md-raised">More topics</md-button></div><strong ng-if="!featuredTopics.length" class="text-center">No topics currently available.&nbsp;<a ui-sref="info.getting-started.direct" translate="translate">Register more systems.</a></strong><h2 ng-if="show.extraTopics" translate="translate" class="section-title section-title-red">More Featured Topics</h2><div ng-if="show.extraTopics" class="flex topics"><card md-flex-33="md-flex-33" ng-repeat="topic in extraTopics | orderBy:\'topic.order\' track by topic.id" topic="topic"><card-header><div class="card-header-title"><h4>{{:: topic.title}}</h4></div><div class="card-header-supporting-info"><span translate="translate" translate-n="topic.affectedSystemCount" translate-plural="{{:: $count}} Systems" class="count">1 System</span></div></card-header><card-content ng-bind-html=":: topic.summary_html ? topic.summary_html : Xtopic.content_html | trust_html"></card-content><card-footer class="text-right-sm"><strong><a translate="translate" ui-sref="app.topic({id: topic.slug ? topic.slug : topic.id, product: getSelectedProduct()})" class="pointer">View More</a></strong></card-footer></card></div></section></div>'),e.put("js/states/analytics/analytics.html",'<div class="page"><div class="section"><div class="row margin-top"><div class="col-sm-12"><h1 class="page-title">Analytics</h1></div></div><div class="row margin-top"><div class="col-sm-12"><div id="chart"></div></div></div></div></div>'),e.put("js/states/announcements/announcements.html",'<div class="page-announcements"><page-header title="Announcements" icon="fa-bullhorn"></page-header><section class="content-wrap"><div ng-if="canCreate" class="row"><div class="col-sm-12"><label translate="translate" class="full-width">Show hidden</label><div class="switch"><input id="cmn-toggle-2" type="checkbox" ng-model="params.showHidden" ng-change="reload()" class="cmn-toggle cmn-toggle-square"/><label for="cmn-toggle-2"></label></div></div></div><div class="row"><announcements-scroll announcementId="{{$scope.announcementId}}"></announcements-scroll></div><div class="row row-short"><div class="col-xs-12"><a ui-sref="app.new-announcement" ng-if="canCreate" class="pull-right btn btn-app">Create Announcement</a></div></div></section></div>'),e.put("js/states/announcements/edit-announcement.html",'<div class="page-standard page-announcements section-announcements"><div class="row"><div class="col-xs-12"><h1 class="page-title">Edit Announcement</h1></div></div><div ng-if="announcementError" class="row"><div class="col-xs-12 col-lg-8 alert alert-danger"><span class="icon-inline"><i class="glyphicon glyphicon-exclamation-sign"></i><span translate="translate">{{announcementError}}</span></span></div></div><div class="row"><div ng-if="loadingAnnouncement" class="col-xs-12 col-m-8"><div class="spinner spinner-lg"></div></div><div ng-if="!loadingAnnouncement" class="col-xs-12 col-m-8"><form ng-submit="save()" name="form" class="form-horizontal"><fieldset><div class="row"><div class="col-xs-12"><label class="control-label">Title</label><input ng-model="announcement.title" type="text" placeholder="Announcement Title" required="required" class="form-control"/></div></div><div class="row row-short"><div class="col-xs-12"><label class="control-label">Slug</label><input ng-model="announcement.slug" type="text" placeholder="Slug" required="required" class="form-control"/></div></div><div class="row row-short"><div class="col-xs-12"><label class="control-label">Body</label><textarea ng-model="announcement.body" type="text" placeholder="Body" class="form-control"></textarea></div></div><div class="row row-short"><div class="col-xs-12"><label class="control-label">Start Date&nbsp;<small>ex: 2016-01-01T12:00:00.000Z</small></label><input ng-model="announcement.start" type="text" placeholder="Start Date" required="required" class="form-control"/></div></div><div class="row row-short"><div class="col-xs-12"><label class="control-label">End Date&nbsp;<small>ex: 2016-01-01T12:00:00.000Z</small></label><input ng-model="announcement.end" type="text" placeholder="End Date" class="form-control"/></div></div><div class="row row-short"><div class="col-xs-12"><label class="checkbox-inline"><input type="checkbox" name="hidden" value="true" ng-model="announcement.hidden"/>&nbsp;</label><label for="hidden" class="control-label">Hidden</label></div></div><div class="row row-short"><div class="col-xs-12"><label class="checkbox-inline"><input type="checkbox" name="important" value="false" ng-model="announcement.important"/>&nbsp;</label><label for="hidden" class="control-label">Important</label></div></div><div class="row"><div class="col-xs-12"><a ui-sref="app.announcements">Back to Announcements</a><button name="submit" ng-disabled="form.$error.required" class="btn btn-app pull-right">Save Announcement</button></div></div></fieldset></form></div></div></div>'),e.put("js/states/announcements/new-announcement.html",'<div class="page-standard page-announcements section-announcements"><div class="row"><div class="col-xs-12"><h1 class="page-title">New Announcement</h1></div></div><div ng-if="announcementError" class="row"><div class="col-xs-12 col-lg-8 alert alert-danger"><span class="icon-inline"><i class="glyphicon glyphicon-exclamation-sign"></i><span translate="translate">{{announcementError}}</span></span></div></div><div class="row"><div class="col-xs-12 col-m-8"><form ng-submit="create()" name="form" class="form-horizontal"><fieldset><div class="row"><div class="col-xs-12"><label class="control-label">Title</label><input ng-model="announcement.title" type="text" placeholder="Announcement Title" required="required" class="form-control"/></div></div><div class="row row-short"><div class="col-xs-12"><label class="control-label">Slug</label><input ng-model="announcement.slug" type="text" placeholder="Slug" required="required" class="form-control"/></div></div><div class="row row-short"><div class="col-xs-12"><label class="control-label">Body</label><textarea ng-model="announcement.body" type="text" placeholder="Body" class="form-control"></textarea></div></div><div class="row row-short"><div class="col-xs-12"><label class="control-label">Start Date&nbsp;<small>ex: 2016-01-01T12:00:00.000Z</small></label><input ng-model="announcement.start" type="text" placeholder="Start Date" required="required" class="form-control"/></div></div><div class="row row-short"><div class="col-xs-12"><label class="control-label">End Date&nbsp;<small>ex: 2016-01-01T12:00:00.000Z</small></label><input ng-model="announcement.end" type="text" placeholder="End Date" class="form-control"/></div></div><div class="row row-short"><div class="col-xs-12"><label class="checkbox-inline"><input type="checkbox" name="hidden" value="true" ng-model="announcement.hidden"/>&nbsp;</label><label for="hidden" class="control-label">Hidden</label></div></div><div class="row row-short"><div class="col-xs-12"><label class="checkbox-inline"><input type="checkbox" name="important" value="false" ng-model="announcement.important"/>&nbsp;</label><label for="hidden" class="control-label">Important</label></div></div><div class="row"><div class="col-xs-12"><a ui-sref="app.announcements">Back to Announcements</a><button name="submit" ng-disabled="form.$error.required" class="btn btn-app pull-right">Create Announcement</button></div></div></fieldset></form></div></div></div>'),e.put("js/states/announcements/view-announcement.html",'<div class="page-standard page-announcements section-announcements"><div class="row"><div ng-if="loadingAnnouncement" class="col-xs-12"><div class="spinner spinner-lg"></div></div><div ng-if="!loadingAnnouncement" class="col-xs-12"><strong class="pull-right">{{announcement.created_at | date}}</strong><h1 class="page-title">{{announcement.title}}</h1></div></div><div class="row push-top border-top"><div ng-if="loadingAnnouncement" class="col-xs-12"><div class="spinner spinner-lg"></div></div><div ng-if="!loadingAnnouncement" class="col-xs-12"><div ng-bind-html="announcement.body_html | trust_html" target-blank=""></div></div></div></div>'),e.put("js/states/base/app.html",'<topbar class="top-bar"></topbar><primary-nav></primary-nav><div class="view-content"><main role="main" data-esc-key="" ui-view=""></main><actionbar ng-if="stateCheck();"></actionbar><content-info></content-info></div>'),e.put("js/states/base/base.html",'<div ui-view="" class="ng-cloak"></div>'),e.put("js/states/base/info.html",'<div ui-view="" class="ng-cloak ng-animate-enabled fade-in"></div>'),e.put("js/states/digests/digests.html",'<div class="digests-page"><page-header title="Executive Report" icon="fa-bar-chart" ng-class="{\'inactive\': !expandBar, \'active\': expandBar}" ng-transclude="ng-transclude"><md-button ng-click="downloadPdf()" ng-if="!downloading" ng-show="systemsTilTen &lt; 1" translate="translate" class="md-primary pull-right">Download PDF</md-button><div ng-if="downloading" class="spinner spinner-sm pull-right"></div></page-header><section ng-show="loading" class="content"><div class="text-center"><div class="spinner spinner-lg"></div></div></section><section ng-if="!loading &amp;&amp; digestError" class="content"><span class="icon-inline"><i class="glyphicon glyphicon-exclamation-sign"></i><span translate="translate">{{:: digestError}}</span></span></section><section ng-show="!loading &amp;&amp; systemsTilTen &gt; 0" class="content"><h1 translate="translate">Executive Reporting requires 10 or more systems to be registered with Insights.</h1><h2 translate="translate">Please register<span translate="translate" translate-n="systemsTilTen" translate-plural="{{:: $count}} more systems">{{:: systemsTilTen}} more system</span>&nbsp;to enable reporting for your account.</h2></section><section ng-show="!loading &amp;&amp; noData" class="content"><h1 translate="translate">Your initial executive report is currently processing - this may take some time.</h1><h2 translate="translate">Please check back later.</h2></section><section ng-show="!loading &amp;&amp; systemsTilTen &lt; 1" class="content content-executive-reports"><card class="widget widget-score"><card-header class="gray"><div translate="translate" class="card-header-title">Overall score</div></card-header><card-content><div class="gauge gauge-score align-center"><div class="crop"><div class="grad"></div></div><gauge-marker current="latest_score" difference="score_difference"></gauge-marker><div class="score"><h3>{{:: latest_score}}</h3><span translate="translate" ng-if="latest_score &lt; 400">Score needs attention</span><span translate="translate" ng-if="latest_score &gt;= 400 &amp;&amp; latest_score &lt; 550">Score is poor</span><span translate="translate" ng-if="latest_score &gt;= 550 &amp;&amp; latest_score &lt; 700">Score is good</span><span translate="translate" ng-if="latest_score &gt;= 700">Score is excellent</span></div><footer class="footer"><span class="num floor">250</span><span class="num ceiling">850</span></footer></div></card-content></card><card class="widget widget-weekly-actions"><card-header class="gray"><div translate="translate" class="card-header-title">Weekly action count by category</div></card-header><card-content class="flex"><div sm-flex-50="sm-flex-50" md-flex-25="md-flex-25" ng-repeat="cat in digest_hits_per_cat" class="gauge gauge-count-and-change"><div class="count-and-change"><div class="count large bold">{{:: cat.current}}</div><div class="change"><i ng-if="cat.direction &gt; 0" class="fa fa-caret-up increase"></i><i ng-if="cat.direction &lt; 0" class="fa fa-caret-down decrease"></i><i ng-if="cat.direction === 0" class="fa fa-minus no-change"></i></div></div><div class="title"><i aria-hidden="true" ng-class="cat.icon" class="fa"></i><strong class="uppercase">&nbsp;{{:: cat.label}}</strong></div></div></card-content><card-footer><span ng-show="!loading" translate="translate" class="large-text"><i ng-if="resolvedIssues &gt; 0" class="fa fa-check-circle green"></i><i ng-if="resolvedIssues === 0" class="fa fa-exclamation-circle red"></i>&nbsp;You\'ve resolved&nbsp;<strong ng-class="{&quot;green&quot;: resolvedIssues &gt; 0, &quot;red&quot;: resolvedIssues === 0}" translate="translate" translate-n="resolvedIssues" translate-plural="{{:: $count}} issues">{{resolvedIssues}} issue</strong>&nbsp;in the past {{:: timePeriod()}} days.</span></card-footer></card><card class="widget widget-trends"><md-tabs md-swipe-content="true" class="md-dynamic-height md-border-bottom"><md-tab label="{{:: \'Action Trends\'|translate}}"><md-content class="md-padding"><digest-graph drop-down="Category" digest-key="metrics" digest="digest_metrics" height="400" ng-if="!loading"></digest-graph></md-content></md-tab><md-tab label="{{:: \'Active Systems\'|translate}}"><md-content class="md-padding"><digest-graph digest-key="registered" digest="digest_registered" height="400" ng-if="!loading"></digest-graph></md-content></md-tab><md-tab label="{{:: \'Score History\'|translate}}"><md-content class="md-padding"><digest-graph digest-key="score" digest="digest_score" height="400" ng-if="!loading"></digest-graph></md-content></md-tab><md-tab label="{{:: \'All Rule hits\'|translate}}"><md-content class="md-padding"><table style="background-color: #fff"><thead><tr><th translate="translate">Rule</th><th translate="translate">Impacted Systems</th><th translate="translate">Total Risk</th></tr></thead><tbody><tr ng-repeat="rule in allRuleHits"><td><a ui-sref="app.actions-rule({category: rule.category.toLowerCase(), rule: rule.rule_id})">{{:: rule.description }}</a></td><td>{{:: rule.report_count}}</td><td><severity-icon severity="rule.severity" type="severity" label=""></severity-icon></td></tr></tbody></table></md-content></md-tab></md-tabs></card><card class="widget widget-most-impacted"><card-header class="gray"><div translate="translate" class="card-header-title">Ten Most Impacted Systems</div></card-header><card-content><table class="table-break"><thead><tr><th translate="translate" class="hostname">Hostname</th><th translate="translate">Hits</th></tr></thead><tbody><tr ng-repeat="system in topTenWorstSystems"><td class="hostname"><a ng-click="showSystem(system)">{{:: system | getSystemDisplayName }}</a></td><td>{{:: system.report_count }}</td></tr></tbody></table></card-content></card><card class="widget widget-most-frequent"><card-header class="gray"><div class="card-header-title">Ten Most Frequently Hit Rules</div></card-header>\x3c!-- grouped by criticality, sub grouped by count--\x3e<card-content><table><thead><tr><th translate="translate">Rule</th><th translate="translate">Impacted Systems</th><th translate="translate">Total Risk</th></tr></thead><tbody><tr ng-repeat="rule in topTenRules"><td><a ui-sref="app.actions-rule({category: rule.category.toLowerCase(), rule: rule.rule_id})">{{:: rule.description }}</a></td><td>{{:: rule.impacted_systems}}</td><td><severity-icon severity="rule.severity" type="severity" label=""></severity-icon></td></tr></tbody></table></card-content></card></section></div>'),e.put("js/states/evaluation/evaluation.html",'<div class="text-center"><i ng-if="loading" class="fa spinner-lg spinner"></i></div><section ng-if="!loading &amp;&amp; !error" class="content"><div ng-if="status.current" class="status-current"><div class="row text-center"><div class="col-sm-12 col-md-8 col-md-offset-2"><h1 translate="translate" class="eval-header">You are currently on a {{:: status.current.systems}} system evaluation of Red Hat Insights</h1><hr class="eval-hr"/><h2 translate="translate" class="eval-subhead">Your evaluation will expire on<strong>{{:: getExpiration()}}.</strong></h2></div></div><div class="row text-center"><div class="col-lg-3 col-lg-offset-3"><a href="https://access.redhat.com/products/red-hat-insights#getstarted"><md-button translate="translate" class="md-raised md-primary">Getting started guide</md-button></a></div><div class="col-lg-3"><md-button ui-sref="app.overview" translate="translate" class="md-raised md-primary">Go to the application</md-button></div></div></div><div ng-if="status.expired" class="status-expired"><div class="row text-center"><div class="col-sm-12 col-md-8 col-md-offset-2"><h1 translate="translate" class="eval-header">Your evaluation has expired</h1><h2 translate="translate" class="eval-subhead">Thank you for trying Red Hat Insights</h2><hr class="eval-hr"/><h3 translate="translate" class="eval-content">Please contact sales to purchase Insights</h3></div></div><div class="flexgrid equalheights sales-cards"><div class="row"><div class="col-sm-12 col-md-4 col-md-offset-2"><card><card-header class="gray"><h4 translate="translate">North America</h4></card-header><card-content><ul class="sales-info"><li><span class="icon-inline"><i class="fa fa-phone"></i><span><a href="tel:19197543700">+1 (888) REDHAT-1 or +1 (919) 754 3700</a></span></span></li><li><span class="icon-inline"><i class="fa fa-fax"></i><span><a href="fax:19197543701">+1 (919) 754 3701</a></span></span></li></ul></card-content></card></div><div class="col-sm-12 col-md-4"><card><card-header class="gray"><h4 translate="translate">Asia Pacific</h4></card-header><card-content><ul class="sales-info"><li><span class="icon-inline"><i class="fa fa-phone"></i><span><a href="tel:6564904200">+65 6490 4200</a></span></span></li><li><span class="icon-inline"><i class="fa fa-fax"></i><span><a href="fax:6564904201">+65 6490 4201</a></span></span></li><li><span class="icon-inline"><i class="fa fa-phone"></i><span><a href="tel:1800733428">1800 733 428 (Australia)</a></span></span></li><li><span class="icon-inline"><i class="fa fa-phone"></i><span><a href="tel:0800733428">0800 733 428 (New Zealand)</a></span></span></li></ul></card-content></card></div></div></div><div class="flexgrid equalheights"><div class="row"><div class="col-sm-12 col-md-4 col-md-offset-2"><card><card-header class="gray"><h4 translate="translate">Europe, Middle East, and Africa</h4></card-header><card-content><ul class="sales-info"><li><span class="icon-inline"><i class="fa fa-phone"></i><span><a href="tel:0080073342835">+00800 7334 2835</a></span></span></li><li><span class="icon-inline"><i class="fa fa-fax"></i><span><a href="fax:441252548117">+44 1252 548 117</a></span></span></li></ul></card-content></card></div><div class="col-sm-12 col-md-4"><card><card-header class="gray"><h4 translate="translate">Latin America</h4></card-header><card-content><ul class="sales-info"><li><span class="icon-inline"><i class="fa fa-phone"></i><span><a href="tel:541143297300">+54 (11) 4329-7300</a></span></span></li><li><span class="icon-inline"><i class="fa fa-fax"></i><span><a href="fax:541143425292">+54 (11) 4342-5292</a></span></span></li><li><span class="icon-inline"><i class="fa fa-phone"></i><span><a href="tel:551135296000">+55 (11) 3529-6000 (Brazil)</a></span></span></li></ul></card-content></card></div><div class="col-md-12 text-center"><span><a href="https://engage.redhat.com/content/contact-japan-sales" translate="translate">Customers in Japan, please use this form to contact sales in Japan.</a></span></div></div></div></div><div ng-if="getNonLegacyEval() &amp;&amp; !successfulActivation" class="status-available"><div class="row text-center"><div class="col-sm-12 col-md-10 col-md-offset-1"><h1 translate="translate" class="eval-header"><span>Your {{:: getNonLegacyEval().systems}} system {{:: getNonLegacyEval().duration}} day evaluation is ready.</span></h1><hr class="eval-hr"/></div></div><div class="row text-center"><div class="col-sm-12"><h2 translate="translate" class="eval-subhead">READ AND ACCEPT THESE TERMS TO GET STARTED.</h2></div></div><div class="row"><div class="col-md-8 col-md-offset-2"><p translate="translate">Red Hat is providing each Red Hat Subscription Evaluation for evaluation purposes subject to the terms of the<a href="http://www.redhat.com/licenses/" target="_blank">Red Hat Enterprise Agreement</a>. If you use the Red Hat Subscription for any purpose other than<b>evaluation</b>, you agree to pay Red Hat the Subscription Fee(s) for each Unit pursuant to the Enterprise Agreement, which is in addition to any and all other remedies available to Red Hat under applicable law.</p><div id="terms" translate="translate">Examples of situations where you would incur additional fees and be in violation of the Agreement include, but are not limited to:<ul><li>Using the service provided under the evaluation program for a production installation,</li><li>Offering support services to third parties, or</li><li>Complementing or supplementing third party support services with services received through the Red Hat Subscription evaluation program.</li></ul></div><p translate="translate">By proceeding, I acknowledge that I have read and agree to the terms and conditions of the<a href="http://www.redhat.com/licenses/" target="_blank">Red Hat Enterprise Agreement</a> which governs my use.</p></div></div><div class="row text-center"><div class="col-sm-12"><md-button ng-click="activateNonLegacy()" translate="translate" class="md-raised md-primary">Agree and Get Started</md-button></div></div><div class="row text-center"><div class="col-sm-12"><p><a href="https://access.redhat.com/insights/splash/" translate="translate">Decline</a><br/><small translate="translate">If you decline, you will not receive an evaluation at this time and will be redirected to additional information on Red Hat Insights</small></p></div></div><div class="row text-center"><div ng-if="getLegacyEval() &amp;&amp; !successfulActivation" style="margin-top:60px" class="col-sm-12"><a ng-click="activateLegacy()" translate="translate">Looking for the legacy 10 system evaluation? Click here to activate.</a></div></div></div><div ng-if="status.purchased" class="status-purchased"><div class="row text-center"><div class="col-sm-12 col-md-8 col-md-offset-2"><span aria-hidden="true" class="green i fa fa-check fa-4x"></span><h1 translate="translate" class="eval-header">Thank you!</h1><hr class="eval-hr"/><h2 translate="translate" class="eval-subhead">Thank you for purchasing Red Hat Insights</h2></div></div><div class="row text-center"><div class="col-sm-12"><md-button ui-sref="app.overview" translate="translate" class="md-raised md-primary">Continue to Insights</md-button></div></div></div></section><div ng-if="error" class="status-error"><div class="row text-center"><div class="col-sm-12 col-md-8 col-md-offset-2"><h1 translate="translate" class="eval-header">Oops!</h1><h2 translate="translate" class="eval-subhead">There was an error</h2><hr class="eval-hr"/><h3 translate="translate" class="eval-content">{{:: error}}</h3></div></div><div class="row text-center"><div class="col-sm-12"><button ui-sref="app.overview" translate="translate" class="btn btn-md btn-accent">Try Again</button></div></div></div>'),
13e.put("js/states/inventory/inventory.html",'<div class="page-inventory"><page-header title="Inventory" icon="fa-database"></page-header><table-filters><search-box on-search="filter.setSearchTerm(model); filter.doFilter();" throttle="1000" placeholder="{{:: \'Find a system\' | translate}}"></search-box><check-in-select></check-in-select><actions-select></actions-select></table-filters><div class="rha-notifications"></div><section class="content"><div class="table-utilities"></div><inventory-actions></inventory-actions><div ng-if="getListType() === listTypes.card" class="card-table-header"><md-checkbox tooltip="{{:: \'Select All\' | translate}}" aria-label="Select All Systems Checkbox" tooltip-trigger="mouseenter" tooltip-append-to-body="true" tooltip-placement="top" type="checkbox" md-indeterminate="{{ checkboxes.indeterminate || false }}" ng-model="checkboxes.checked" ng-change="selectAll(); checkboxes.checkboxChecked(checkboxes.checked, getSelectableSystems())" class="md-accent md-hue-1 md-checkbox-list checkbox"></md-checkbox><label translate="translate" ng-click="sort(\'system_type_id\')" class="type">&nbsp; Type</label><strong translate="translate" ng-click="sort(\'toString\')" class="hostname">Name &nbsp;</strong><strong translate="translate" ng-click="sort(\'report_count\')" class="action-count">Action Count</strong></div><div ng-if="getListType() === listTypes.card &amp;&amp; !loading" class="system-cards card-list"><system-card ng-repeat="system in systems track by system.system_id" system="system" checkboxes="checkboxes" checkbox-tooltip="canSelectSystem(system) ? defaultTooltip : getDisabledCheckboxTooltip(system)" class="ng-animate-enabled"></system-card></div><div class="row row-short"><div class="col-md-12"><table ng-if="getListType() === listTypes.table"><thead><tr><th class="min"><md-checkbox tooltip="{{:: \'Select All\' | translate}}" type="checkbox" aria-label="Select All Systems Checkbox" md-indeterminate="{{ checkboxes.indeterminate || false }}" ng-model="checkboxes.checked" ng-change="selectAll(); checkboxes.checkboxChecked(checkboxes.checked, getSelectableSystems())" class="md-accent md-hue-1 md-checkbox-list"></md-checkbox></th><th ng-class="sorter.predicate | sortClass:\'system_type_id\':sorter.reverse" ng-click="sorter.sort(\'system_type_id\')" translate="translate" class="fit-content min sortable">System Type</th><th ng-class="sorter.predicate | sortClass:\'toString\':sorter.reverse" ng-click="sorter.sort(\'toString\')" translate="translate" class="sortable">System Name</th><th ng-class="sorter.predicate | sortClass:\'last_check_in\':sorter.reverse" ng-click="sorter.sort(\'last_check_in\')" translate="translate" class="fit-content min sortable">Last Check In</th><th ng-class="sorter.predicate | sortClass:\'report_count\':sorter.reverse" ng-click="sorter.sort(\'report_count\')" translate="translate" class="min sortable">Status</th></tr></thead><tbody ng-if="!loading"><tr ng-repeat="system in systems track by system.system_id" ng-class="{\'stale\': !system.isCheckingIn}" ng-click="checkboxes.rowClick($event, system.system_id)" ng-mousedown="checkboxes.rowClick($event, system.system_id)" data-id="{{:: system.system_id}}"><td class="min"><md-checkbox type="checkbox" aria-label="Select System Checkbox" ng-model="checkboxes.items[system.system_id]" ng-click="checkboxes.rowClick($event, system.system_id); $event.stopPropagation();" class="md-accent md-hue-1 md-checkbox-list"></md-checkbox></td><td class="fit-content"><type-icon type-id="system.system_type_id" include-text="true"></type-icon></td><td class="fit-content"><a ng-click="showActions(system)">{{:: system.toString}}</a></td><td class="fit-content">{{:: system.last_check_in | timeAgo }}</td><td class="fit-content"><a ng-click="showActions(system)" class="action-count icon-inline"><span translate="translate" translate-n="system.report_count" translate-plural="{{:: $count}} Actions" class="text">{{:: system.report_count}} Action</span><i ng-class="{\'no-action\': !system.report_count, \'yes-action\': system.report_count, \'success\': !system.report_count, \'fail\': system.report_count}" class="fa"></i><span class="sr-only">Time to destination by car:</span></a></td></tr></tbody></table></div></div><div ng-if="!loading" class="row row-short"><div class="col-sm-12"><pagination ng-if="totalSystems() &gt; pager.perPage" total-items="totalSystems()" ng-model="pager.currentPage" items-per-page="pager.perPage" ng-change="doScroll()" class="pull-right pagination-blue"></pagination></div></div></section><div class="animate-wrapper margin-top"><div ng-if="loading" class="row row-short ng-animate-enabled"><div class="col-xs-12"><div class="load text-center"><div class="spinner spinner-lg"></div><span translate="translate">Loading system information…</span></div></div></div></div></div>'),e.put("js/states/invites/invites.html",'<div class="page-wrap container eval"><div class="main-content insights-main-content full-width"><div class="row"><div ng-if="loading" class="col-sm-12 text-center"><i class="fa spinner-lg spinner"></i></div></div><div ng-if="!loading &amp;&amp; forbidden" class="status-error"><div class="row"><div class="col-sm-12 col-md-8 col-md-offset-2 text-center"><h1>Your account is not authorized to view this page.</h1></div></div></div><div ng-if="!loading &amp;&amp; !forbidden" class="status-available"><div class="row"><div class="col-sm-12 col-md-8 col-md-offset-2 text-center"><h1><i aria-hidden="true" class="fa fa-address-book-o"></i>&nbsp;Insights Evaluation</h1></div></div><div class="row"><div class="col-sm-12 col-md-8 col-md-offset-2 text-left"><p>This internal form is used to invite an account to a 30 day evaluation of Red Hat Insights (more info available at &nbsp;<a href="https://mojo.redhat.com/docs/DOC-1104175" target="_blank"><b>Insights Evaluation guide</b></a>)</p></div><div class="col-sm-12 col-md-8 col-md-offset-2 text-left"><card ng-if="!failedInvite &amp;&amp; !successfulInvite" class="invite"><card-content class="gray"><form class="form-horizontal"><div class="form-group"><label class="col-sm-4"><h4>Account Number</h4></label><div class="col-sm-8"><input ng-model="data.account"/></div></div><div class="form-group"><label class="col-sm-4"><h4>Customer Email</h4></label><div class="col-sm-8"><input ng-model="data.email"/></div></div><div class="form-group"><label class="col-sm-4"><h4>System Count</h4></label><div class="col-sm-8 text-left-md"><select ng-options="e as e.systems for e in evals" ng-model="data.newInvite"></select></div></div><div class="row"><div class="col-sm-12 text-center"><button ng-click="createNewInvite()" class="btn btn-lg btn-accent">Invite</button></div></div></form></card-content></card><card ng-if="successfulInvite" class="success"><card class="success"><card-content class="gray text-center"><div class="row"><div class="col-sm-12"><h4 class="nomar"><span aria-hidden="true" class="icon-check-alt green">&nbsp;</span><span class="light">You have successfully invited&nbsp;</span>{{:: successfulInvite.email}}&nbsp;<span class="light">with account number&nbsp;</span>{{:: successfulInvite.account_number}}.</h4></div></div><div class="row"><div class="col-sm-12 text-center"><button ng-click="reset()" class="btn btn-lg btn-accent">Reload form</button></div></div></card-content></card></card><card ng-if="failedInvite" class="failure"><card class="success"><card-content class="gray text-center"><div class="row"><div class="col-sm-12"><h4 class="nomar"><i aria-hidden="true" class="fa fa-times-circle red">&nbsp;</i>Invitation to {{:: failedInvite.email}} with account number {{:: failedInvite.account_number}} failed. &nbsp;\x3c!--If its a duplicate error. We have a specific message.--\x3e<span ng-if="error.status == 409">This account has previously activated a sales invited evaluation. &nbsp;\nPlease contact&nbsp;<a href="mailto:insights@redhat.com">insights@redhat.com</a>&nbsp; to grant additional invitations.</span>\x3c!--otherwise, just show the raw error from the api.--\x3e<span ng-if="error.status != 409">{{:: error.data}}</span></h4></div></div><div class="row"><div class="col-sm-12 text-center"><button ng-click="reset()" class="btn btn-lg btn-accent">Try again</button></div></div></card-content></card></card></div></div></div></div></div>'),e.put("js/states/maintenance/maintenance.html",'<div class="maintenance-page"><page-header title="Maintenance Planner" icon="fa-wrench" ng-class="{\'inactive\': !expandBar, \'active\': expandBar}" ng-transclude="ng-transclude"><div class="create-plan-actions text-right pull-right"><a ng-click="MaintenanceService.showMaintenanceModal()" class="create-plan"><span translate="translate">&nbsp;Create a plan</span><i class="fa fa-plus-circle"></i></a><a ng-click="newSuggestion()" ng-if="isInternal" class="create-plan"><small translate="translate" class="red">New suggested plan<i class="fa fa-plus-circle"></i></small></a></div></page-header><table-filters><maintenance-category-select category="category" on-select="setCategory(category, true)"></maintenance-category-select></table-filters><section class="content"><div class="table-header"><search-box ng-model="searchTerm" placeholder="{{\'Search plans\' | translate}}"></search-box></div><section><br/><br/><div ng-show="loading" class="row row-short"><div class="col-xs-12"><div class="load text-center"><div class="spinner spinner-lg"></div><span translate="translate">Loading plans…</span></div></div></div><div class="rha-notifications"></div><div ng-if="!loading"><div ng-if="!plans[category].length" class="row"><div class="text-center"><h4 translate="translate">No plans</h4></div></div><plan-list ng-if="category === \'unscheduled\'" plans="plans.unscheduled | searchMaintenancePlans: searchTerm" page-size="8"></plan-list><plan-list ng-if="category === \'suggested\'" plans="plans.suggested | searchMaintenancePlans: searchTerm" page-size="8"></plan-list><plan-list ng-if="category === \'past\'" plans="plans.past | searchMaintenancePlans: searchTerm" group="true" page-size="6"></plan-list><plan-list ng-if="category === \'future\'" plans="plans.future | searchMaintenancePlans: searchTerm" group="true" page-size="6"></plan-list><span ng-if="category === \'all\'"><h2 translate="translate" ng-if="plans.suggested.length">Suggested Plans</h2><plan-list plans="plans.suggested | searchMaintenancePlans: searchTerm" page-size="2"></plan-list><h2 translate="translate" ng-if="plans.unscheduled.length">Plans</h2><plan-list plans="plans.unscheduled | searchMaintenancePlans: searchTerm" page-size="6"></plan-list><h2 translate="translate" ng-if="plans.scheduled.length">Scheduled Plans</h2><plan-list plans="plans.scheduled | searchMaintenancePlans: searchTerm" group="true" page-size="4"></plan-list></span></div></section></section></div>'),e.put("js/states/overview/overview.html",'<div class="page-overview"><page-header title="Overview" icon="fa-tachometer"></page-header><div class="rha-notifications"></div><section class="content grid-overview"><card class="card-accent widget widget-blog"><card-header class="gray"><div class="card-header-title"><span class="icon-inline"><i class="fa fa-fire"></i><span translate="translate">Latest</span></span></div><div class="card-header-cta"><a translate="translate" ng-show="isInternal" ng-click="edit()">Edit</a></div></card-header><card-content><handcrafted-content></handcrafted-content></card-content></card><new-systems></new-systems><card class="card-accent widget widget-actions-summary"><card-header class="gray"><div class="card-header-title"><span class="icon-inline"><i class="fa fa-file-text"></i><span translate="translate"> Actions Summary</span></span></div><div class="card-header-cta"><a translate="translate" ui-sref="app.actions">View actions</a></div></card-header><card-content><severity-summary stats="stats"></severity-summary></card-content></card><incident-lite ng-if="isBeta"></incident-lite><card ng-if="!paid()" class="widget widget-optimize"><card-header class="gray"><div class="card-header-title"><span class="icon-inline"><i class="fa fa-bullseye">&nbsp;</i><span translate="translate">Optimize&nbsp;</span><span translate="translate" class="light">Your Experience</span></span></div></card-header><card-content><goals-lite></goals-lite></card-content></card><maintenance-plan-lite ng-if="config.isPlannerEnabled"></maintenance-plan-lite><new-rules></new-rules></section></div>'),e.put("js/states/rules/list-rules.html",'<section><page-header title="Rules" icon="fa-institution"></page-header><rule-filter></rule-filter><section class="content"><a ui-sref="app.admin-topic" ng-show="user.is_internal" class="btn btn-sm btn-app pull-right">Topics Admin</a><div class="table-header"><search-box placeholder="{{:: \'Search rules\' | translate}}" on-search="search(model)" throttle="1000"></search-box></div><section><div class="row"><div class="col-sm-12"><section ng-show="loading"><div class="spinner spinner-lg"></div></section><div class="rha-notifications"></div><div ng-hide="loading" class="rules-group"><card ng-repeat="rule in pagedRules | filter:filter | orderBy:\'description\'" ng-class="{faded: rule.ack_id, hidden: (hideIgnored &amp;&amp; rule.ack_id)}" class="card-rule"><card-header id="{{:: rule.rule_id}}" class="gray header">\x3c!--TODO: activate new item--\x3e\x3c!--.new-item NEW!--\x3e<div class="card-header-title title pointer"><i ng-class="rule.category.toLowerCase()" class="fa category-icon inline-right"></i><span>{{:: rule.category }} > {{:: rule.description }}</span></div><div class="card-header-supporting-info"><span translate="translate" ng-class="{\'rule-inactive\': rule.ack_id, \'rule-active\': !rule.ack_id}" class="label label-default inline-right">INACTIVE</span><incident-icon rule-id="rule.rule_id" class="inline-right">&nbsp;</incident-icon><ansible-icon value="rule.ansible" ng-if="config.isPlannerEnabled" hide-label="true"></ansible-icon></div></card-header><card-content class="content ng-animate-enabled"><div class="row"><div class="col-sm-6"><rule-toggle rule="rule"></rule-toggle></div><div class="col-sm-6 text-right"><a ng-if="rule.article" href="{{:: rule.article}}" translate="translate" target="_blank">Knowledgebase</a></div></div><div class="row row-short"><div class="col-sm-12"><div ng-bind-html="::rule.summary_html | trust_html" target-blank="" class="gray"></div></div></div></card-content><card-footer ng-if="canIgnoreRules" class="footer footer-short"><div class="flexgrid equal-heights"><div class="row"><div class="col-sm-8"><div class="icon-group icon-group-severity"><severity-icon severity="rule.rec_impact" type="impact"></severity-icon><severity-icon severity="rule.rec_likelihood" type="likelihood"></severity-icon><severity-icon severity="rule.severity" type="severity"></severity-icon></div><risk-of-change change-risk="rule.resolution_risk"></risk-of-change></div><div class="col-sm-4 text-right"><strong ng-if="rule.impacted_systems !== undefined &amp;&amp; !rule.ack_id"><a ui-sref="app.actions-rule({category: rule.category.toLowerCase(), rule: rule.rule_id})" translate="translate" ng-disabled="rule.impacted_systems === 0">View Impacted Systems ({{:: rule.impacted_systems}})</a></strong></div></div></div></card-footer></card><div ng-show="rules.length === 0" class="row row-short"><div class="col-xs-12 text-center"><strong translate="translate">There are no rules for the selected filters.&nbsp;</strong></div></div></div></div></div><div ng-show="!loading" class="row row-short"><div class="col-sm-12"><pagination ng-if="rules.length &gt; pager.perPage" total-items="rules.length" ng-model="pager.currentPage" items-per-page="pager.perPage" ng-change="doPage()" class="pull-right pagination-blue"></pagination></div></div></section></section></section>'),e.put("js/states/security/security.html",'<div class="container info-page-intro text-center band band-hero"><div class="row"><div class="col-sm-12"><insights-logo></insights-logo></div></div></div><div class="band band-white info-page band-last"><div class="container info-page"><div class="row"><div class="col-md-12"><section class="section"><h1 translate="translate">Security</h1></section><section id="introduction" class="section introduction"><h3 translate="translate">Introduction</h3><p translate="translate">Red Hat Insights provides a mechanism for customers to get actionable intelligence regarding suggested improvements to deployed Red Hat software. As part of this optional offering, Red Hat processes configuration data about a customer’s environment using Red Hat hosted and/or provided tools; this document covers the security measures Red Hat puts in place to provide secure transmission, processing, and analysis of this data by those tools.</p><p translate="translate">Red Hat is committed to evaluating, implementing and monitoring the industry security standards for those tools as they continue to evolve.</p></section><section id="on-premise" class="section on-premise"><h3 translate="translate">On Premise Security</h3><p translate="translate">Security of customer systems is paramount and Red Hat Insights has made extensive efforts to ensure that our shipped software meets the highest standards.</p><ul><li translate="translate">Insights software which executes on premise has been through a security review by Red Hat Product Security which is the same team that addresses security concerns in all other products across the Red Hat portfolio.</li><li translate="translate">Communication with Red Hat can be sent through secure proxies for audit and network ACLs.</li><li translate="translate">Enrollment is opt-in, which means we’ll never collect data from systems without your explicit approval and can be scheduled daily or weekly.</li><li translate="translate">All communication with Red Hat occurs over encrypted channels using TLS</li><li translate="translate">All TLS traffic with Red Hat servers is verified with a trusted certificate that is bundled with the application, ensuring that communications can not be intercepted, such as by a man in the middle attack.</li><li translate="translate">The default communication model from client systems to Red Hat servers occurs with mutual TLS or two-way authentication using digital certificates.</li></ul></section><section id="client-side" class="section client-side"><h3 translate="translate">Client Side On Premise Data Control</h3><p translate="translate">Red Hat Insights allows customers to have control of the information that is monitored for analytical purposes; and Red Hat Insights makes it simple for subscribers to view the information which is monitored.</p><ul><li translate="translate">Red Hat Insights collects both targeted and minimal system information rather than entire logs.</li><li translate="translate">Red Hat automatically attempts to remove critical security information such as passwords before uploading when stored in standard locations</li><li translate="translate">Common types of sensitive information can be opted out of through pre-built configuration profiles</li><li translate="translate">Subscribers can blacklist any command, file, or piece of metadata that they prefer not be monitored by Red Hat Insights.</li><li translate="translate">The commands, files, and metadata monitored by Red Hat Insights are listed in a single file that is GPG signed and available at any time for easy inspection.</li><li translate="translate">Personally Identifiable Information is not collected.</li></ul></section><section id="infrastructure" class="section infrastructure"><h3 translate="translate">Infrastructure Security</h3><p translate="translate">Security of customer data in Red Hat is a priority and every effort is made to ensure that information is not unnecessarily persisted and that it is secured using industry standard best practices.</p><ul><li translate="translate">All customer data is stored within a secure physical data center with controlled access.</li><li translate="translate">Our internal 3-tiered infrastructure is compartmentalized into different physical networks and firewalled to ensure services are isolated for maximum security.</li><li translate="translate">All volumes containing customer data at rest are encrypted with LUKS encryption</li><li translate="translate">All parts of the internal infrastructure transmit their logs to a centralized log aggregator for inspection and analysis.</li></ul></section><section id="best-practices" class="section best-practices"><h3 translate="translate">Development Best Practices</h3><ul><li translate="translate">All software is analyzed with static code analyzers and all reported issues are fixed before code is deployed into production.</li><li translate="translate">Code is peer reviewed.</li></ul></section></div></div></div></div><div class="band band-alt band-narrow info-page"><div class="container"><div class="row"><div class="col-md-12"><section class="section"><h3 translate="translate">Additional Resources</h3><a href="{{:: gettingStartedLink}}" translate="translate" class="btn btn-app cta-link cta-link-sm cta-link-white info-links">Getting started with Red Hat Insights</a><a ui-sref="login" translate="translate" class="btn btn-app cta-link cta-link-sm cta-link-white info-links">Log in to Red Hat Insights</a></section></div></div></div></div>'),e.put("js/components/actions/actionsBreadcrumbs/actionsBreadcrumbs.html",'<div class="breadcrumbs"><ol ng-if="getCrumbs().length"><li ng-repeat="crumb in getCrumbs() track by crumb.label" ng-class="{active: $last}" ng-show="getCrumbs().length &gt; 1"><a ng-hide="$last" ng-click="crumbClick(crumb)">{{:: crumb.label | translate | titlecase}}</a><span ng-show="$last &amp;&amp; $index &lt; 2"> {{:: crumb.label| translate | titlecase }}</span><span ng-show="$last &amp;&amp; $index &gt;= 2">{{:: crumb.label| translate}}</span></li></ol></div>'),e.put("js/components/actions/actionsRule/actionsRule.html",'<div class="actions-rule"><actions-back></actions-back><actions-breadcrumbs ng-hide="loading"></actions-breadcrumbs><section class="rule-detail-header"><page-header icon="fa-file-text"><div class="page-title"><h1>{{:: ruleDetails.description}}</h1></div></page-header><div class="rule-detail-ansible-support"><ansible-icon value="ruleDetails.ansible"></ansible-icon></div><div class="rule-detail-risk-list"><all-severity-icons rule="ruleDetails" ng-if="!loading"></all-severity-icons><risk-of-change change-risk="ruleDetails.resolution_risk"></risk-of-change></div><div ng-hide="loading" class="rule-detail-summary"><h4 ng-if="isIncident(ruleDetails.rule_id)" class="icon-inline"><incident-icon rule-id="ruleDetails.rule_id">&nbsp;</incident-icon><span translate="translate" class="red">This issue is an incident, it has already occurred.</span></h4><article ng-bind-html=":: ruleDetails.generic_html | trust_html"></article></div></section><table-filters><search-box placeholder="{{:: \'Find a system\' | translate}}" on-search="search(model)"></search-box><check-in-select></check-in-select></table-filters><section class="content">\x3c!-- Show Create Playbook, Add to Plan if at least one system has been selected--\x3e<div class="table-header"><div class="dropdown"><md-button data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-label="Actions Dropdown" translate="translate" ng-disabled="!checkboxes.totalChecked || !config.isPlannerEnabled" class="button-dropdown">Actions<span class="caret"></span></md-button><div class="dropdown-menu"><md-button ng-if="config.isPlannerEnabled" ng-click="addToPlan(false)" translate="translate" class="full-width md-no-margin">Create a new Plan/Playbook<ansible-icon value="true" show-tooltip="false" class="inline-left"></ansible-icon></md-button><md-button ng-if="config.isPlannerEnabled" ng-click="addToPlan(true)" ng-disabled="!plans.future.length &amp;&amp; !plans.unscheduled.length" translate="translate" class="full-width md-no-margin">Add to existing Plan/Playbook<ansible-icon value="plans.future.length || plans.unscheduled.length" show-tooltip="false" class="inline-left"></ansible-icon></md-button></div></div><div class="table-header-title"><h3 translate="translate" translate-n="totalRuleSystems" translate-plural="{{:: $count}} Impacted Systems" ng-if="ruleDetails.type !== &quot;osp&quot;" class="system-count">1 Impacted System</h3><h3 translate="translate" translate-n="totalRuleSystems" translate-plural="{{:: $count}} Impacted Deployments" ng-if="ruleDetails.type === &quot;osp&quot;" class="system-count">1 Impacted Deployment</h3><small ng-if="checkboxes.totalChecked" translate="translate" class="light">&nbsp; ({{numberOfSelected()}} Selected<span ng-if="allSelected &amp;&amp; pager.perPage &lt; totalRuleSystems">.<a ng-if="!reallyAllSelected" ng-click="reallySelectAll()">&nbsp;Select All Systems.</a><a ng-if="reallyAllSelected" ng-click="deselectAll()">&nbsp;Deselect All Systems.</a></span><span>)</span></small></div><list-type ng-hide="hideListSwitch"></list-type></div><span ng-if="getListType() === listTypes.card"><div class="card-table-header"><md-checkbox aria-label="Select All Systems Checkbox" tooltip="{{:: \'Select All\' | translate}}" tooltip-trigger="mouseenter" tooltip-append-to-body="true" tooltip-placement="top" type="checkbox" md-indeterminate="checkboxes.indeterminate" ng-model="checkboxes.checked" ng-change="selectAll(); checkboxes.checkboxChecked(checkboxes.checked, getSelectableSystems())" class="md-accent md-hue-1"></md-checkbox><label translate="translate" ng-click="sort(\'system_type_id\')" class="type">&nbsp; Type</label><strong translate="translate" ng-click="sort(\'toString\')" class="hostname">Name &nbsp;</strong><strong translate="translate" ng-click="sort(\'report_count\')" class="action-count">Action Count</strong></div></span><div ng-if="getListType() === listTypes.card &amp;&amp; !loadingSystems" class="system-cards card-list"><system-card ng-repeat="system in ruleSystems track by system.system_id" system="system" rule="ruleDetails" checkboxes="checkboxes" class="ng-animate-enabled"></system-card></div><table ng-if="getListType() === listTypes.table"><thead><tr><th class="min"><md-checkbox tooltip="Select All" type="checkbox" aria-label="Select All Systems Checkbox" md-indeterminate="checkboxes.indeterminate" ng-model="checkboxes.checked" ng-change="selectAll(); checkboxes.checkboxChecked(checkboxes.checked, ruleSystems)" class="md-accent md-hue-1 md-checkbox-list"></md-checkbox></th><th ng-class="predicate | sortClass:\'system_type_id\':reverse" ng-click="sort(\'system_type_id\')" translate="translate" class="min sortable">Type</th><th ng-class="predicate | sortClass:\'toString\':reverse" ng-click="sort(\'toString\')" translate="translate" class="sortable">Name</th><th ng-class="predicate | sortClass:\'last_check_in\':!reverse" ng-click="sort(\'last_check_in\')" translate="translate" class="min sortable">Reported</th></tr></thead><tbody ng-hide="loadingSystems"><tr ng-click="checkboxes.rowClick($event, system.system_id)" ng-mousedown="checkboxes.rowClick($event, system.system_id)" ng-class="{\'stale\': !system.isCheckingIn}" ng-repeat="system in ruleSystems track by system.system_id" data-id="{{:: system.system_id}}"><td class="min"><md-checkbox type="checkbox" aria-label="Select System Checkbox" ng-model="checkboxes.items[system.system_id]" ng-click="checkboxes.rowClick($event, system.system_id); $event.stopPropagation();" class="md-accent md-hue-1 md-checkbox-list"></md-checkbox></td><td class="fit-content"><type-icon type-id="system.system_type_id" include-text="true"></type-icon></td><td class="break"><a ng-click="showSystem(system)">{{:: system.toString }}</a></td><td class="fit-content">{{:: system.last_check_in | timeAgo}}</td></tr></tbody></table><pagination ng-hide="loading || loadingSystems" ng-if="totalRuleSystems &gt; pager.perPage" total-items="totalRuleSystems" ng-model="pager.currentPage" items-per-page="pager.perPage" ng-change="paginate()" class="pull-right pagination-blue"></pagination></section><div ng-if="loading || loadingSystems" class="margin-top"><div class="text-center"><div class="spinner spinner-lg"></div></div></div></div>'),e.put("js/components/actions/actionsRuleFilters/actionsRuleFilters.html",'<section><table-filters><table-filters-content><div class="row"><check-in-select class="col-xs-6 col-md-4 col-lg-3"></check-in-select></div></table-filters-content></table-filters></section>'),e.put("js/components/actions/severitySummary/severitySummary.html",'<div class="widget severity-summary"><ul ng-if="loaded">\x3c!-- TODO make these data driven with an object in the directive and an ng-repeat??--\x3e\x3c!-- or componentize the Label + Bar??--\x3e<li><div ng-if="percentages.low" ui-sref="app.topic({id: \'low-risk\', \'filters:totalRisk\': \'INFO\'})" class="pointer"><div class="metrics"><strong>{{:: \'Low\' | translate}}</strong><span class="num">&nbsp;({{:: percentages.low | number:1 }}%)</span></div><div class="progress-bar"><div role="progressbar" aria-valuemin="0" aria-valuemax="100" ng-style="percentages.low / 100 | toWidth" class="progress green"></div><div class="bar"></div></div></div><div ng-if="!percentages.low" class="no-errors"><i aria-hidden="true" class="fa fa-check-circle inline-right green"></i><span translate="translate">You have no issues of low severity</span></div></li><li><div ng-if="percentages.medium" ui-sref="app.topic({id: \'medium-risk\', \'filters:totalRisk\': \'WARN\'})" class="pointer"><div class="metrics"><strong>{{:: \'Medium\' | translate}}</strong><span class="num">&nbsp;({{:: percentages.medium | number:1 }}%)</span></div><div class="progress-bar"><div role="progressbar" aria-valuemin="0" aria-valuemax="100" ng-style="percentages.medium / 100 | toWidth" class="progress yellow"></div><div class="bar"></div></div></div><div ng-if="!percentages.medium" class="no-errors"><i aria-hidden="true" class="fa fa-check-circle inline-right green"></i><span translate="translate">You have no issues of medium severity</span></div></li><li><div ng-if="percentages.high" ui-sref="app.topic({id: \'high-risk\', \'filters:totalRisk\': \'ERROR\'})" class="pointer"><div class="metrics"><strong>{{:: \'High\' | translate}}</strong><span class="num">&nbsp;({{:: percentages.high | number:1 }}%)</span><span ng-if="(ruleCount.error / ruleCount.total) &lt; 80" class="num">&nbsp;({{:: 100 * ruleCount.error / ruleCount.total || 0 | number:1}}%)</span></div><div class="progress-bar"><div role="progressbar" aria-valuemin="0" aria-valuemax="100" ng-style="percentages.high / 100 | toWidth" class="progress orange"></div><div class="bar"></div></div></div><div ng-if="!percentages.high" class="no-errors"><i aria-hidden="true" class="fa fa-check-circle inline-right green"></i><span translate="translate">You have no issues of high severity</span></div></li><li><div ng-if="percentages.critical" ui-sref="app.topic({id: \'critical-risk\', \'filters:totalRisk\': \'CRITICAL\'})" class="pointer"><div class="metrics"><strong>{{:: \'Critical\' | translate}}</strong><span class="num">&nbsp;({{:: percentages.critical | number:1 }}%)</span></div><div class="progress-bar"><div role="progressbar" aria-valuemin="0" aria-valuemax="100" ng-style="percentages.critical / 100 | toWidth" class="progress red"></div><div class="bar"></div></div></div><div ng-if="!percentages.critical" class="no-errors"><i aria-hidden="true" class="fa fa-check-circle inline-right green"></i><span translate="translate">You have no issues of critical severity</span></div></li></ul></div>'),
14e.put("js/components/actions/systemSummary/systemSummary.html",'<div class="widget key-issues"><div class="row"><div class="col-sm-12"><div ng-if="stats.systems.affected &gt; 0 || !loaded" ui-sref="app.topic({id: \'critical\'})" class="pointer"><div class="metrics"><strong translate="translate">{{:: stats.systems.affected}} of {{:: stats.systems.total}} systems have critical issues</strong></div><div class="progress-bar"><div role="progressbar" aria-valuemin="0" aria-valuemax="100" ng-style="stats.systems.affected / stats.systems.total | toWidth" class="progress red"></div><div class="bar"></div></div></div><div ng-if="stats.systems.affected === 0 &amp;&amp; loaded" class="no-errors"><i aria-hidden="true" class="fa fa-check-circle inline-right"></i><span translate="translate">You have no issues of critical severity</span></div></div></div></div>'),e.put("js/components/announcements/announcementsScroll/announcementsScroll.html",'<div class="col-sm-12">\x3c!-- add the \'active\' class only when the caret has been clicked and the notification is expanded--\x3e<h3 ng-if="items.length === 0" translate="translate" class="text-center">You have no announcements.</h3><div ng-repeat="a in announcements track by a.id" ng-class="{\'acked\': a.acked}" class="content-block content-block-outline announcement"><header id="{{:: a.id.toString()}}" class="header gray"><div class="row"><div class="col-sm-8 col-md-9 col-lg-10"><div ng-click="permalink(a.id.toString(), true, 30)" class="title pointer"><span>{{:: a.title}}</span></div></div><div class="col-sm-4 col-md-3 col-lg-2 text-right"><date><strong>{{:: (a.start || a.created_at) | date }}&nbsp;&nbsp;</strong></date><span ng-class="{\'read\' : read}" class="message-status-toggle"><i ng-if="a.acked" ng-click="ackAnnouncement(a)" class="fa fa-check-circle-o acked"></i><i ng-if="!a.acked" ng-click="ackAnnouncement(a)" class="fa fa-circle-o"></i></span></div></div></header><div class="content"><div ng-if="canCreate" class="row"><div class="col-sm-9"><div ng-if="canCreate &amp;&amp; a.start || a.end" class="row"><div class="col-sm-12"><strong translate="translate">Start/End:&nbsp;</strong>{{:: a.start | date}} - {{:: a.end | date}}</div></div><div ng-if="a.body" class="row row-short"><div class="col-sm-12"><p>{{:: a.body}}</p></div></div></div><div class="col-sm-3 text-right"><strong><a title="Delete" ng-click="deleteAnnouncement(a)">Delete</a><div class="sep"></div><a title="Edit" ng-click="editAnnouncement(a)">Edit</a></strong></div></div>\x3c!-- show dismiss button if announcement has not been acked--\x3e<div ng-if="!canCreate &amp;&amp; !a.acked" class="row"><div class="col-sm-8"><p>{{:: a.body}}</p></div><div class="col-sm-4"><button ng-click="ackAnnouncement(a)" class="btn">Dismiss</button></div></div><div ng-if="!canCreate &amp;&amp; a.acked" class="row"><div class="col-sm-12"><p>{{:: a.body}}</p></div></div></div>\x3c!--footer.footer.gray(ng-if="canCreate")--\x3e</div></div>'),e.put("js/components/buttons/button-split/button-split-item.html",'<md-menu-item ng-transclude="ng-transclude"></md-menu-item>'),e.put("js/components/buttons/button-split/button-split-main.html",'<md-button ng-class="ctrl.classes" ng-disabled="ctrl.disabled"><span ng-transclude="ng-transclude"></span></md-button>'),e.put("js/components/buttons/button-split/button-split.html",'<div class="button-split"><div ng-transclude="main" class="main"></div><md-menu md-offset="0 34" md-position-mode="target-right target"><md-button id="splitButtonDropdown" ng-click="$mdMenu.open()" ng-class="ctrl.classes" ng-disabled="disabled" class="button-dropdown"><strong translate="translate" aria-hidden="false" class="hidden">Dropdown text</strong><span aria-hidden="true" class="caret dropdown-caret"></span></md-button><md-menu-content aria-labelledby="splitButtonDropdown" ng-transclude="items"></md-menu-content></md-menu></div>'),e.put("js/components/card/systemCard/systemCard.html",'<div ng-class="{\'stale\': !system.isCheckingIn}" class="system-card"><card expandable="expandable" init-collapsed="initCollapsed" on-toggle="toggleContent(ctx)" class="card-rule-summary"><card-header-expandable class="gray"><i ng-if="loading" class="fa spinner-xs spinner"></i><md-checkbox tooltip="{{:: \'Select\' | translate}}" tooltip-trigger="mouseenter" tooltip-append-to-body="true" tooltip-placement="top" type="checkbox" aria-label="Select System Checkbox" ng-model="checkboxes.items[system.system_id]" ng-click="checkboxes.rowClick($event, system.system_id); $event.stopPropagation();" class="md-accent md-hue-1 md-checkbox-list checkbox"></md-checkbox><div class="card-header-title"><type-icon type-id="system.system_type_id" include-text="true" class="type"></type-icon><div class="ellipsis-wrapper hostname"><strong class="hostname">{{:: system.toString }}</strong><span ng-if="!system.isCheckingIn">&nbsp;(stale system)</span></div><a ng-click="showActions(); $event.stopPropagation();" class="action-count icon-inline"><span translate="translate" translate-n="system.report_count" translate-plural="{{:: $count}} Actions" class="text">{{:: system.report_count}} Action</span><span ng-class="{\'success\': !system.report_count, \'fail\': system.report_count}"><i ng-click="showActions(); $event.stopPropagation();" ng-class="{\'no-action\': !system.report_count, \'yes-action\': system.report_count}" class="fa"></i></span></a></div></card-header-expandable><card-content><div ng-if="!system.isCheckingIn"><strong>Last checkin:&nbsp;</strong><span ng-if="!system.last_check_in" translate="translate">never</span><span ng-if="system.last_check_in">{{:: system.last_check_in | timeAgo}}</span></div><div ng-if="hasFamilyMembers()" class="separation-header"><h4>Related Systems</h4></div>\x3c!-- Family members--\x3e<div class="row"><div class="col-sm-12"><div ng-if="hasFamilyMembers()" class="family-members"><div class="row"><link-group ng-repeat="linkGroup in linkGroups | orderBy: &quot;+priority&quot;" group="linkGroup.members" typeid="linkGroup.system_type_id" class="link-group col-md-12"></link-group></div>\x3c!-- System metadata--\x3e<div class="separation-header metadata-separator"><h4>System Metadata</h4></div></div></div></div><div class="row row-short"><div class="col-sm-12"><div class="metadata"><system-metadata ng-if="!$parent.card.collapsed" system="system"></system-metadata></div></div></div><div class="row row-short"><div class="col-sm-12"><div class="system-card-actions"><div translate="translate" ng-disabled="!selectable" ng-click="unregister()" class="btn btn-outline btn-xs">Unregister</div></div></div></div></card-content></card></div>'),e.put("js/components/config/dev/dev.html",'<div class="dev"><div class="user"><h2>Demo Mode<div><button ng-show="user.demo_mode || user.is_internal" ng-click="demoModeButtonOnClick()" class="btn btn-small">{{:: getDemoModeButtonText()}}</button></div></h2><h2>API Prefix</h2><table><tbody><tr><td>Presets</td><td><select ng-options="v as k for (k, v) in presets.apiPrefix" ng-model="tmp.apiPrefix" ng-change="updateApiPrefix()"></select></td></tr><tr><td>Choose your own adventure</td><td><input ng-model="tmp.apiPrefix" class="full-width"/></td></tr></tbody></table><h2>API Version</h2><table><tbody><tr><td>Presets</td><td><select ng-options="v for v in presets.apiVersions" ng-model="tmp.apiVersion" ng-change="updateApiVersion()"></select></td></tr></tbody></table><div style="padding-top: 20px;"><button ng-click="save()" class="btn btn-small pull-right">Save API Settings</button></div><h2>Fake user info</h2><table><tbody><tr><td>email</td><td><input ng-model="user.email"/></td></tr><tr><td>name</td><td><input ng-model="user.first_name"/><input ng-model="user.last_name"/></td></tr></tbody></table><h2>Fake Entitlements</h2><table><tbody><tr><td>Presets</td><td><select ng-options="k as k for (k, v) in presets.entitlements" ng-model="tmp.tmpEnt" ng-change="setEntitlements()"></select></td></tr><tr><td> State</td><td><pre>{{getPretty(user.current_entitlements)}}</pre></td></tr></tbody></table></div></div>'),e.put("js/components/config/messaging/messaging.html",'<div class="acks row active"><div class="col-md-12"><h2 translate="translate" class="page-title">Messaging Preferences</h2><p translate="translate">Manage Red Hat Insights email subscriptions for your personal login. All emails will be sent to the email address associated with your login. To update your address see&nbsp;<a href="https://www.redhat.com/wapps/ugc/protected/personalInfo.html" target="_blank">Personal Info</a>.</p><form ng-submit="save(form)" name="form"><fieldset><div ng-repeat="campaign in campaigns | orderBy:\'id\' track by campaign.id" class="checkbox push-bottom-narrow"><label><input type="checkbox" ng-model="campaign.enrolled"/>{{:: campaign.label|translate}}<div ng-if="campaign.description" class="small"> {{:: campaign.description|translate}}</div></label></div><md-button name="submit" ng-disabled="form.$pristine" translate="translate" class="md-raised md-primary pull-right">Update</md-button></fieldset></form></div></div>'),e.put("js/components/config/permissions/permissions.html",'<div class="user-permissions"><div class="row"><div class="col-xs-12"><input ng-model="newPermission.sso_username"/><select ng-options="p as p.label for p in permissions" ng-model="tmpPermission"></select><div ng-click="addNewPermission()" class="btn">Add</div></div></div><div class="row group-list"><div ng-repeat="user in users | filter:newPermission.sso_username" class="col-sm-4"><div class="group user-permission"><div class="name header"><a ng-click="newPermission.sso_username = user">{{:: user}}</a></div><div class="content"><div class="permissions"><div ng-repeat="p in userMap[user] track by p.id" class="perm">{{:: p.permission.label}}<div ng-click="removeSingle(p)" class="remove fa fa-times"></div></div></div><div class="remove pull-right"><a ng-click="removeAll(userMap[user])" class="fa fa-times">Remove all!</a></div></div></div></div></div></div>'),e.put("js/components/config/settings/settings.html",'<div class="acks row active"><div class="col-md-8"><h2 translate="translate" class="page-title">Settings</h2><p translate="translate"><strong>Note:</strong>These are account wide. You must be an Org Admin to make these changes.</p></div><div class="col-md-12"><section ng-show="loading"><div class="spinner spinner-lg"></div><span translate="translate">Loading Settings</span></section></div><div class="col-md-12"><section ng-hide="loading"><table class="table table-striped"><thead><tr><th translate="translate">Setting</th><th translate="translate">Value</th></tr></thead><tbody><tr ng-repeat="setting in settings"><td>{{:: setting.name}}</td><td><input type="checkbox" ng-model="setting.value"/></td></tr></tbody></table><md-button ng-click="save()" translate="translate" class="md-raised md-primary pull-right">Save</md-button></section></div></div>'),e.put("js/components/config/webhooks/webhooks.html",'<div class="webhooks"><h2 translate="translate" class="page-title">Webhooks</h2><p translate="translate">Webhooks allow external services to be notified of updates in Red Hat Insights. An HTTP POST request will be issued for a configured URL every time an event occurs in Red Hat Insights.&nbsp; See&nbsp;<a translate="translate" target="_blank" href="https://access.redhat.com/r/insights/docs/#api-Webhooks">webhook documentation</a>&nbsp; for more details.</p><p><strong translate="translate">Webhooks are currently a Tech Preview.</strong></p><section><div ng-if="loader.loading" class="spinner"></div><p translate="translate" ng-if="!webhooks.length &amp;&amp; !loader.loading">No webhooks configured</p><table ng-if="webhooks.length" class="table table-striped"><thead><tr><th translate="translate">URL</th><th translate="translate">Status</th><th translate="translate">Event Types</th><th translate="translate">Active</th><th translate="translate">Actions</th></tr></thead><tbody><tr ng-repeat="webhook in webhooks | orderBy:&quot;id&quot; track by webhook.id"><td class="break"><a ui-sref="app.config-webhook-edit({id: webhook.id})">{{:: webhook.url}}</a></td><td class="text-center"><webhook-status-icon webhook="webhook"></webhook-status-icon></td><td class="text-center">{{:: webhook.event_types.length}}</td><td class="text-center"><input type="checkbox" ng-model="webhook.active" ng-change="activeChanged(webhook)"/></td><td class="text-center"><span class="icon-inline"><a ui-sref="app.config-webhook-edit({id: webhook.id})"><i tooltip="{{:: \'Edit\' | translate}}" class="fa fa-pencil-square-o pointer"></i></a><a ng-click="delete(webhook)"><i tooltip="{{:: \'Remove\' | translate}}" class="fa fa-remove"></i></a></span></td></tr></tbody></table><md-button-group class="pull-right"><md-button ui-sref="app.config-webhook-edit({id: &quot;new&quot;})" translate="translate" class="md-primary md-button-ghost-blue">Add webhook</md-button><md-button ng-click="ping()" translate="translate" ng-disabled="!isPingable()" class="md-raised md-primary">Test event</md-button></md-button-group></section></div>'),e.put("js/components/filterComponents/actionsSelect/actionsSelect.html",'<div class="filter-group filter-system-health"><label translate="translate">System Health</label><md-menu md-offset="0 38"><md-button type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" ng-click="$mdMenu.open($event)" class="button-filter"><span ng-model="label" translate="translate" class="text active">{{selected.label}}</span><span class="caret"></span></md-button><md-menu-content><md-menu-item ng-repeat="option in options track by option.id"><a ng-click="select(option)" translate="translate">{{:: option.label}}</a></md-menu-item></md-menu-content></md-menu></div>'),e.put("js/components/filterComponents/ageSelect/ageSelect.html",'<div class="filter-group filter-age-select"><label translate="translate">Age</label><md-menu md-offset="0 38"><md-button type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" ng-click="$mdMenu.open($event)" class="button-filter"><span ng-model="label" class="text active">{{selected.label}}</span><span class="caret"></span></md-button><md-menu-content><md-menu-item ng-repeat="(key, value) in options"><a href="#" ng-click="select(key)">{{:: value.label}}</a></md-menu-item></md-menu-content></md-menu></div>'),e.put("js/components/filterComponents/ansibleSupportTriState/ansibleSupportTriState.html",'<div class="filter-group"><label translate="translate"><strong>Ansible Support</strong></label><div class="radio-group"><div ng-repeat="(k, v) in AnsibleSupportFilters" class="radio-inline"><label translate="translate"><input type="radio" name="ansibleSupportFilterRadio" ng-model="showAnsibleSupport" value="{{:: k}}" ng-click="filterAnsibleSupport(k)"/><span>{{:: v.title | translate}}</span></label></div></div></div>'),e.put("js/components/filterComponents/categorySelect/categorySelect.html",'<div class="filter-group filter-checkin-select"><label translate="translate">Category</label><md-menu md-offset="0 38"><md-button type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" ng-click="$mdMenu.open($event)" class="button-filter"><span ng-model="label" class="text active">{{selected.label}}</span><span class="caret"></span></md-button><md-menu-content><md-menu-item ng-repeat="(key, value) in options"><a ng-click="select(key)">{{:: value.label}}</a></md-menu-item></md-menu-content></md-menu></div>'),e.put("js/components/filterComponents/checkInSelect/checkInSelect.html",'<div class="filter-group filter-check-in"><label>Check in status</label><md-menu md-offset="0 38"><md-button type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" ng-click="$mdMenu.open()" class="button-filter"><span>{{selected.label}}</span><span class="caret"></span></md-button><md-menu-content><md-menu-item ng-repeat="option in options track by option.id"><a ng-click="select(option)">{{:: option.label}}</a></md-menu-item></md-menu-content></md-menu></div>'),e.put("js/components/filterComponents/filterButton/filterButton.html",'<a ng-class="{active: getShowFilters()}" ng-click="toggleShowFilters()" class="btn btn-outline btn-xs filter-label"><i class="fa fa-filter fa-2x filter-button"></i>Filter</a>'),e.put("js/components/filterComponents/hideIgnoredToggle/hideIgnoredToggle.html",'<div class="col-toggle"><label translate="translate" class="full-width">Hide Ignored</label><div class="switch"><input id="cmn-toggle-2" type="checkbox" ng-model="hideIgnored" ng-change="persistHideIgnored()" class="cmn-toggle cmn-toggle-square"/><label for="cmn-toggle-2"></label></div></div>'),e.put("js/components/filterComponents/impactSelect/impactSelect.html",'<div class="filter-group filter-checkin-select"><label translate="translate">Impact</label><md-menu md-offset="0 38"><md-button type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" ng-click="$mdMenu.open($event)" class="button-filter"><span ng-model="label" class="text active">{{selected.title}}</span><span class="caret"></span></md-button><md-menu-content><md-menu-item ng-repeat="(key, value) in options"><a ng-click="select(key)">{{:: value.title}}</a></md-menu-item></md-menu-content></md-menu></div>'),e.put("js/components/filterComponents/incidentsTriState/incidentsTriState.html",'<div class="filter-group filter-group-radios filter-incidents"><label translate="translate">Incidents</label><div class="radio-group"><div ng-repeat="(k, v) in incidentFilters" class="radio-inline"><label translate="translate"><input type="radio" name="incidentFilterRadio" ng-model="showIncidents" value="{{:: k}}" ng-click="filterIncidents(k)"/><span>{{:: v.title | translate}}</span></label></div></div></div>'),e.put("js/components/filterComponents/likelihoodSelect/likelihoodSelect.html",'<div class="filter-group filter-checkin-select"><label translate="translate">Likelihood</label><md-menu md-offset="0 38"><md-button type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" ng-click="$mdMenu.open($event)" class="button-filter"><span ng-model="label" class="text active">{{selected.title}}</span><span class="caret"></span></md-button><md-menu-content><md-menu-item ng-repeat="(key, value) in options"><a ng-click="select(key)">{{:: value.title}}</a></md-menu-item></md-menu-content></md-menu></div>'),e.put("js/components/filterComponents/productSelect/productSelect.html",'<div ng-if="!getRHELOnly()" class="environment-buttons"><label translate="translate">Platform</label><div class="dropdown gray"><button type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="btn btn-default dropdown-toggle">{{:: getProductLabel(getSelectedProduct())}}<span class="caret"></span></button><ul class="dropdown-menu"><pre>{{:: products }}</pre><li ng-repeat="product in products"><a ng-click="doSelectProduct(product)">{{:: getProductLabel(product)}}</a></li></ul></div></div>'),e.put("js/components/filterComponents/riskOfChangeSelect/riskOfChangeSelect.html",'<div class="filter-group filter-risk-of-change"><label translate="translate">Risk of Change</label><md-menu md-offset="0 38"><md-button type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" ng-click="$mdMenu.open()" class="button-filter"><span>{{selected.label}}</span><span class="caret"></span></md-button><md-menu-content><md-menu-item ng-repeat="(key, value) in options"><a ng-click="select(key)">{{:: value.label}}</a></md-menu-item></md-menu-content></md-menu></div>'),e.put("js/components/filterComponents/ruleStatusTriState/ruleStatusTriState.html",'<div class="filter-group"><label><strong translate="translate">Rule Status</strong></label><div class="radio-group"><div ng-repeat="(k, v) in RuleStatusFilters" class="radio-inline"><label translate="translate"><input type="radio" name="ruleStatusFilterRadio" ng-model="showRuleStatus" value="{{:: k}}" ng-click="filterRuleStatus(k)"/><span>{{:: v.title | translate}}</span></label></div></div></div>'),e.put("js/components/filterComponents/searchBox/searchBox.html",'<div class="table-search"><input type="text" autofocus="autofocus" placeholder="{{:: placeholder}}" ng-keypress="keyPressed($event)" ng-model="model" ng-change="change()" ng-class="{\'search-box form-control\': isFullLength}"/><i ng-if="!searching()" class="fa fa-search"></i><i ng-if="searching()" ng-click="resetSearch();" md-prevent-menu-close="md-prevent-menu-close" class="fa fa-times"></i></div>'),e.put("js/components/filterComponents/totalRiskSelect/totalRiskSelect.html",'<div class="filter-group filter-total-risk"><label translate="translate">Total Risk</label><md-menu md-offset="0 38"><md-button type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" ng-click="$mdMenu.open($event)" class="button-filter"><span ng-model="label" class="text active">{{label | translate}}</span><span class="caret"></span></md-button><md-menu-content><md-menu-item ng-repeat="option in options track by option.label"><a ng-click="select(option)">{{:: option.label | translate}}</a></md-menu-item></md-menu-content></md-menu></div>'),e.put("js/components/incident/incidentIcon/incidentIcon.html",'<i tooltip="{{:: tooltip}}" ng-show="isIncident" aria-label="Incident icon" class="fa fa-bullseye"></i>'),e.put("js/components/incident/incidentLite/incidentLite.html",'<div ng-if="loading" class="text-center"><div class="spinner spinner-lg"></div></div><div ng-if="!loading" class="incident-lite"><div class="cell icon"><i aria-hidden="true" class="fa fa-bullseye"></i></div>\x3c!-- If incidents--\x3e<div ng-if="incidentCount &gt; 0" class="cell count"><strong translate="translate">{{incidentCount}} of {{stats.rules.total}}</strong><br/><span translate="translate">Issues are incidents</span></div><div ng-if="incidentCount &gt; 0" translate="translate" class="cell supporting-text">An&nbsp;<strong translate="translate">incident&nbsp;</strong><span translate="translate">is an issue that is currently or has already affected systems.&nbsp;</span><a ui-sref="app.topic({id: \'incidents\'})" class="link"><strong translate="translate">View incidents</strong></a></div>\x3c!-- If no incidents--\x3e<div ng-if="incidentCount === 0" class="cell count"><strong>0</strong><br/><span translate="translate">Incidents</span></div><div ng-if="incidentCount === 0" class="cell supporting-text">An&nbsp;<strong translate="translate">incident&nbsp;</strong><span translate="translate">is an issue that is currently or has already affected systems. You currently have no incidents.</span></div></div>'),e.put("js/components/incident/incidentSummary/incidentSummary.html",'<div ng-if="incidentCount &gt; 0" class="cell counts"><div class="count"><h4 class="num">{{:: incidentCount}}</h4><span translate="translate">Incidents</span></div><div class="count"><h4 class="num">{{:: incidentSystemCount}}</h4><span translate="translate">Systems</span></div></div><div ng-if="incidentCount === 0" class="cell counts"><div class="count"><h4 class="num success">0</h4><span translate="translate">incidents</span></div></div><div class="cell supporting-text"><div ng-if="incidentCount &gt; 0" class="icon-inline"><i aria-hidden="true" class="fa fa-bullseye"></i><p>An&nbsp;<strong translate="translate">incident&nbsp;</strong>is an issue that is currently or has already affected systems. {{:: incidentCount}} of<span translate="translate" translate-n="ruleHits" translate-plural=" {{:: $count}} issues">{{:: ruleHits}} issue</span><span translate="translate" translate-n="incidentCount" translate-plural="&amp;nbsp;are INCIDENTS affecting">&nbsp;is an INCIDENT affecting</span><span translate="translate" translate-n="incidentSystemCount" translate-plural="&amp;nbsp;{{:: $count}} systems.">&nbsp;{{:: incidentSystemCount}} system.</span><span translate="translate">&nbsp;It is imperative that these incidents be addressed to ensure optimal performance.</span><br/><a translate="translate" ui-sref="app.topic({id: \'incidents\'})" class="link strong">View incidents</a></p></div><div ng-if="incidentCount === 0" class="icon-inline"><i aria-hidden="true" class="fa fa-bullseye"></i><p translate="translate">An&nbsp;<strong>incident&nbsp;</strong>is an issue that is currently or has already affected systems. You have 0 issues that are INCIDENTS.</p></div></div>'),e.put("js/components/inventory/inventoryActions/inventoryActions.html",'<div class="row row-short table-options"><div class="col-xs-4 col-sm-2"><div class="dropdown"><button data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" translate="translate" ng-disabled="!checkboxes.totalChecked" class="btn btn-default dropdown-toggle">Actions<span class="caret"></span></button><ul class="dropdown-menu"><li ng-if="config.isPlannerEnabled"><a ng-click="addToPlan(false)" ng-disabled="!isFixableSelected()" translate="translate">Create a new Plan/Playbook<ansible-icon value="isFixableSelected()" show-tooltip="false" class="inline-left"></ansible-icon></a></li><li ng-if="config.isPlannerEnabled"><a ng-click="addToPlan(true)" ng-disabled="!isFixableSelected() || (!plans.future.length &amp;&amp; !plans.unscheduled.length)" translate="translate">Add to existing Plan/Playbook<ansible-icon value="isFixableSelected() &amp;&amp; (plans.future.length || plans.unscheduled.length)" show-tooltip="false" class="inline-left"></ansible-icon></a></li><li><a ng-click="groupSystems(systemsToAction())" translate="translate">Group systems</a></li><li ng-if="Group.current().id"><a ng-click="removeFromGroup()"><span translate="translate" translate-n="systemsToAction().length" translate-plural="Remove systems from group">Remove system from group</span><strong>&nbsp;{{Group.current().display_name}}</strong></a></li><li tooltip="{{:: unregisterButtonTooltip}}"><a ng-disabled="!isUnregistrableSelected()" ng-click="isUnregistrableSelected() &amp;&amp; doUnregisterSelected()" translate="translate" class="pointer-events-auto">Unregister</a></li></ul></div></div><div class="col-xs-8 col-sm-8 text-center"><span ng-hide="reloading"><h3 translate="translate" translate-n="totalSystems()" translate-plural="{{:: $count}} Systems" class="system-count">1 System</h3><small ng-if="checkboxes.totalChecked" translate="translate" class="light">&nbsp; ({{totalSystemsSelected}} Selected<span ng-if="allSelected &amp;&amp; pager.perPage &lt; totalSystems()">.<a ng-if="!reallyAllSelected" ng-click="reallySelectAll()" translate="translate">&nbsp;Select All Systems.</a><a ng-if="reallyAllSelected" ng-click="deselectAll()" translate="translate">&nbsp;Deselect All Systems.</a></span><span>)</span></small><br/><a ng-click="registerSystem()" ng-if="isPortal" class="icon-inline"><i class="fa fa-plus"></i><strong translate="translate">Register More</strong></a></span></div><div class="col-sm-2 hidden-xs text-right-sm"><list-type></list-type></div></div>'),e.put("js/components/inventory/inventoryActions/unregisterConflict.html",'<div class="wrapper"><div class="unregister-conflict"><p translate="translate">The following systems types cannot be unregistered on their own:</p><ul><li ng-repeat="role in roles">{{:: role.name}} ({{:: role.count}}x)</li></ul><p translate="translate">Unregister their entire deployment to remove them.</p><p><strong translate="translate" translate-n="validCount" translate-plural="Do you want to proceed with the remaining {{:: $count}} systems?"> \nDo you want to proceed with the remaining 1 system?</strong></p></div></div>'),e.put("js/components/inventory/inventoryFilters/inventoryFilters.html",'<section><collapsible-filter><collapsible-filter-content><div class="row"><check-in-select class="col-xs-6 col-md-4 col-lg-3"></check-in-select><actions-select class="col-xs-6 col-md-4 col-lg-3"></actions-select></div></collapsible-filter-content></collapsible-filter></section>'),e.put("js/components/inventory/system/system.html",""),e.put("js/components/maintenance/expandableSystemList/expandableSystemList.html",'<div><ul><li ng-repeat="system in systems | orderBy: \'toString\' | limitTo:limit track by system.system_id"><a href="#" ng-click="InventoryService.showSystemModal(system, true)">{{system.toString}}</a></li></ul><div ng-if="limit &amp;&amp; systems.length &gt; limit"><a href="#" ng-click="toggle()" translate="translate">+ {{systems.length - limit}} more</a></div><div ng-if="!limit"><a href="#" ng-click="toggle()" translate="translate">Hide</a></div></div>'),e.put("js/components/maintenance/maintenanceCategorySelect/maintenanceCategorySelect.html",'<div class="filter-group filter-total-risk"><label translate="translate">Plan type</label><md-menu md-offset="0 38"><md-button type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" ng-click="$mdMenu.open($event)" class="button-filter"><span ng-model="label" class="text active">{{selected.label}} ({{plans[selected.id].length}})</span><span class="caret"></span></md-button><md-menu-content><md-menu-item ng-repeat="option in options" ng-if="plans[option.id].length || option.id !== &quot;suggested&quot;"><a ng-click="select(option)" ng-disabled="!plans[option.id].length &amp;&amp; option.id !== &quot;unscheduled&quot;">{{option.label}} ({{plans[option.id].length}})</a></md-menu-item></md-menu-content></md-menu></div>'),
15e.put("js/components/maintenance/maintenanceModal/maintenanceModal.html",'<div ng-class="{updating: loader.loading}" class="maintenance-plan-modal main-content updatable"><div ng-if="loader.loading" class="spinner spinner-lg"></div><div class="modal-actions"><div ng-click="close()" class="fa fa-close pull-right"></div></div><div class="modal-header"><div class="text-center"><i class="rh-icon-book"></i><h2 translate="translate">Plan / Playbook Builder</h2></div></div><div class="content-block"><div class="form-group"><div class="row row-short"><div class="radio col-sm-4"><label class="control-label"><input type="radio" ng-model="newPlan" ng-value="true"/><strong translate="translate">Create new plan</strong></label></div><div ng-click="!newPlan &amp;&amp; (newPlan = true)" class="col-sm-8"><input type="text" name="name" maxlength="255" ng-disabled="!newPlan" ng-model="newPlanAlias" placeholder="{{\'Plan Name\' | translate}}" autofocus="autofocus" class="form-control"/></div></div><div class="row row-short"><div class="radio col-sm-4"><label class="control-label"><input type="radio" ng-model="newPlan" ng-value="false" ng-disabled="!availablePlans.length"/><strong>Add to existing plan</strong></label></div><div ng-click="newPlan &amp;&amp; availablePlans.length &amp;&amp; (newPlan = false)" class="col-sm-8"><ui-select ng-model="selected.plan" append-to-body="false" ng-disabled="newPlan"><ui-select-match placeholder="{{\'Plan Name\' | translate}}" class="form-control ui-select-match"><span ng-if="!selected.plan.name.length" translate="translate">Unnamed plan ({{selected.plan.maintenance_id}})</span><span ng-if="selected.plan.name.length">{{selected.plan.name}} ({{selected.plan.maintenance_id}})</span><span ng-if="selected.plan.start">&nbsp;- {{selected.plan.start | moment:\'LL\'}}</span></ui-select-match><ui-select-choices repeat="plan in availablePlans | searchMaintenancePlans: $select.search | orderBy:[\'start\', getPlanName, \'maintenance_id\']" group-by="planGroupFn" group-filter="planOrderFn" class="ui-select-choices"><span ng-if="!plan.name.length" translate="translate">Unnamed plan ({{plan.maintenance_id}})</span><span ng-if="plan.name.length">{{plan.name}} ({{plan.maintenance_id}})</span><span ng-if="plan.start">&nbsp; - {{plan.start | moment:\'LL\'}}</span></ui-select-choices></ui-select></div></div></div><div ng-if="systemSelection !==&quot;preselected&quot;" class="form-group"><hr/><div ng-show="config.isGroupsEnabled" class="row row-short"><div class="radio col-sm-4"><label class="control-label"><input type="radio" ng-model="systemSelection" ng-value="&quot;group&quot;" ng-disabled="!Group.groups.length" ng-change="systemSelectionChanged(systemSelection)"/><strong translate="translate">System Group</strong></label></div><div ng-click="systemSelection !== &quot;group&quot; &amp;&amp; Group.groups.length &amp;&amp; systemSelectionChanged(&quot;group&quot;)" class="col-sm-8"><ui-select ng-model="selected.group" append-to-body="false" ng-disabled="systemSelection !== &quot;group&quot;"><ui-select-match placeholder="{{\'Select group\' | translate}}" class="form-control ui-select-match"><span>{{selected.group.display_name}}</span></ui-select-match><ui-select-choices repeat="group in Group.groups | filter:{display_name: $select.search} | orderBy:[\'display_name\', \'id\']" class="ui-select-choices"><span>{{group.display_name}}</span></ui-select-choices></ui-select></div></div><div class="row row-short"><div class="radio col-sm-3"><label class="control-label"><input type="radio" ng-model="systemSelection" ng-value="&quot;system&quot;" ng-change="systemSelectionChanged(systemSelection)"/><strong translate="translate">Specific System</strong></label></div><div class="col-sm-1"><div ng-show="loadingSystems" class="spinner"></div></div><div ng-click="systemSelection !== &quot;system&quot; &amp;&amp; systemSelectionChanged(&quot;system&quot;)" class="col-sm-8"><ui-select ng-model="selected.system" append-to-body="false" ng-disabled="systemSelection !== &quot;system&quot;"><ui-select-match placeholder="{{\'Select system\' | translate}}" class="form-control ui-select-match"><span>{{selected.system.toString}} ({{selected.system.report_count}})</span></ui-select-match><ui-select-choices repeat="system in availableSystems | orderBy:[\'toString\', \'system_id\']" refresh="searchSystems($select.search)" refresh-delay="200" class="ui-select-choices"><span>{{system.toString}} ({{system.report_count}})</span></ui-select-choices></ui-select></div></div><div class="row row-short"><div class="radio col-sm-4"><label class="control-label"><input type="radio" ng-model="systemSelection" ng-value="&quot;all&quot;" ng-change="systemSelectionChanged(systemSelection)"/><strong translate="translate">All Systems</strong></label></div></div></div><hr/><div class="row available-actions"><div ng-if="plan &amp;&amp; tableParams &amp;&amp; mode === MODES.rule &amp;&amp; !noActions" class="content-block maintenance-plan rule"><div class="header bordered"><div class="title"><strong>{{rule.description}}</strong></div><div class="row row-short"><div class="col-sm-12"><all-severity-icons rule="rule" ng-if="!loader.loading" class="inline"></all-severity-icons></div></div></div><div class="nopad table-responsive"><maintenance-table-systems params="tableParams" edit="tableEdit" item="rule" on-save="postSave()" on-cancel="close()"></maintenance-table-systems></div></div><div ng-if="plan &amp;&amp; tableParams &amp;&amp; mode === MODES.system &amp;&amp; !noActions" class="content-block maintenance-plan rule"><div class="header bordered"><span class="icon-inline"><type-icon type-id="selected.system.system_type_id" include-text="false"></type-icon><a ng-click="showSystemModal(system)"><strong>{{selected.system.toString}} &nbsp;&nbsp;</strong></a></span><div class="pull-right item"><strong translate="translate">Last check in:</strong><span ng-class="selected.system | checkInStyle">&nbsp;&nbsp;{{selected.system.last_check_in | timeAgo}}</span></div></div><div class="nopad table-responsive"><maintenance-table-actions params="tableParams" edit="tableEdit" item="true" on-save="postSave()" on-cancel="close()"></maintenance-table-actions></div></div><div ng-if="plan &amp;&amp; tableParams &amp;&amp; mode === MODES.multi &amp;&amp; !noActions" class="content-block maintenance-plan rule"><div class="header bordered"><strong translate="translate" translate-n="systems.length" translate-plural="Actions available for {{$count}} selected systems" ng-if="systemSelection === &quot;preselected&quot;">Actions available for selected system</strong><strong ng-if="systemSelection === &quot;group&quot;"><span translate="translate">Actions available for group: {{selected.group.display_name}}&nbsp;</span><span translate="translate" translate-n="selected.group.systems.length" translate-plural="({{$count}} systems)">(1 system)</span></strong><strong translate="translate" ng-if="systemSelection === &quot;all&quot;">Actions available for your inventory</strong></div><div class="nopad table-responsive"><maintenance-table-multi params="tableParams" edit="tableEdit" item="true" on-save="postSave()" on-cancel="close()"></maintenance-table-multi></div></div><div ng-if="tableParams &amp;&amp; noActions" class="content-block"><div class="text-center"><strong><i class="fa fa-check-circle success inline-right"></i><span translate="translate">No actions available on selected systems.</span></strong></div></div></div></div></div>'),e.put("js/components/maintenance/maintenancePlan/maintenancePlan.html",'<div ng-class="{\'col-md-12 active\' : edit.isActive(plan.maintenance_id), \'col-md-6\': !edit.isActive(plan.maintenance_id)}" id="maintenance-plan-{{plan.maintenance_id}}" class="plan-outer-wrap"><div ng-class="{\'active\' : edit.isActive(plan.maintenance_id), pointer: !edit.isActive(plan.maintenance_id)}" class="plan-wrap"><div ng-class="{\'overdue\': plan.overdue &amp;&amp; !plan.silenced, updating: loader.loading}" class="content-block maintenance-plan updatable"><div ng-if="loader.loading" class="spinner spinner-lg"></div><div class="header plan-header"><div ng-class="{\'active\': edit.isActive(plan.maintenance_id), \'inactive\' : !edit.isActive(plan.maintenance_id)}" class="actions-panel"><i ng-if="edit.isActive(plan.maintenance_id) &amp;&amp; !isReadOnly()" ng-click="delete()" tooltip="{{\'Delete this plan\' | translate}}" class="fa fa-trash-o action"></i><i ng-click="minimize()" ng-show="edit.isActive(plan.maintenance_id)" class="fa fa-compress action"></i><i ng-click="silence()" ng-if="plan.overdue &amp;&amp; !plan.silenced" tooltip="{{\'Snooze this plan\' | translate}}" class="fa fa-moon-o action"></i></div><div ng-if="!editBasic.active &amp;&amp; (!plan.suggestion || plan.suggestion === \'accepted\')" class="details"><div class="header-title editable"><i ng-if="plan.overdue" class="fa fa-calendar-times-o red inline-right"></i><i ng-if="!editBasic.active &amp;&amp; plan.hidden &amp;&amp; isInternal" class="fa fa-eye-slash inline-right"></i><h2 ng-class="{\'red\': plan.overdue}" ng-dblclick="editBasic.toggle()" class="title"><span ng-if="plan.name.length" ng-dblclick="editBasic.toggle()">{{plan.name}} ({{plan.maintenance_id}})</span><span ng-if="!plan.name || !plan.name.length" translate="translate">Unnamed plan ({{plan.maintenance_id}})</span><i ng-click="editBasic.toggle()" ng-if="!isReadOnly()" tooltip="{{\'Click to edit this plan\' | translate}}" class="fa fa-pencil-square-o edit-toggle"></i></h2><p ng-if="error" class="red">{{error}}</p></div><div ng-if="plan.start" class="date-time editable"><div ng-if="plan.start" class="start"><b>{{plan.start | moment:\'dddd, LL\'}}</b></div><div class="group"><i class="fa fa-clock-o"></i><time-range start="plan.start" end="plan.end" ng-dblclick="editBasic.toggle()" class="time-local"></time-range><i ng-click="editBasic.toggle()" ng-if="!isReadOnly()" tooltip="{{\'Click to edit this plan\' | translate}}" class="fa fa-pencil-square-o edit-toggle"></i></div><div class="group"><i class="fa fa-clock-o"></i><span translate="translate">UTC&nbsp;</span><time-range start="plan.start" end="plan.end" timezone="\'UTC\'" ng-dblclick="editBasic.toggle()" class="time-utc"></time-range></div></div></div><div ng-if="editBasic.active" class="details-edit pull-left"><form novalidate="novalidate" name="editBasicForm" ng-submit="editBasic.save()" class="editable-form"><div ng-if="plan.suggestion === \'proposed\' &amp;&amp; isInternal" class="form-group"><label class="full-width red">Suggested plan</label><textarea placeholder="Describe why Red Hat is suggesting this plan" ng-model="editBasic.description" class="form-control"></textarea><hr/></div><div ng-class="{\'has-error\': editBasicForm.name.$invalid}" class="form-group nick"><label translate="translate">Plan Name:&nbsp;</label><input type="text" name="name" placeholder="{{\'Unnamed plan\' | translate}}" maxlength="255" ng-model="editBasic.name" class="form-control"/></div><div ng-class="{\'has-error\': editBasicForm.date.$invalid}" class="form-group title"><label translate="translate">Date:&nbsp;<i tooltip="{{editDateTooltip}}" class="fa fa-question-circle"></i></label><input type="text" name="date" id="planEditDate-{{plan.maintenance_id}}" date-time="date-time" ng-model="editBasic.start" view="date" min-view="date" max-view="date" format="LL" auto-close="true" highlights="calendarDates" date-change="dateChanged" class="form-control"/></div><div class="date-time"><div ng-class="{\'has-error\': editBasicForm.time.$invalid}" class="form-group form-group-inline"><label class="full-width">Start time:&nbsp;</label><input type="time" name="time" ng-model="editBasic.time" ng-change="editBasic.sync()" step="900" ng-required="editBasic.start" class="time"/></div><div ng-class="{\'has-error\': editBasicForm.number.$invalid}" class="form-group form-group-inline"><label class="full-width">Duration:&nbsp;</label><input type="number" name="duration" min="0" step="15" ng-model="editBasic.duration" ng-required="editBasic.start" class="duration"/></div></div><div ng-if="editBasic.start" class="form-group form-group-inline"><label class="full-width">UTC time:&nbsp;</label>{{editBasic.start | moment:\'LLL\':\'UTC\'}}</div><div class="form-group"><div role="group" class="pull-right btn-group"><md-button type="button" ng-click="editBasic.toggle()" translate="translate" class="btn-sm md-button-ghost-blue md-primary">Cancel</md-button><md-button type="submit" ng-disabled="editBasicForm.$invalid" translate="translate" class="btn-sm md-raised md-primary">Save</md-button></div></div></form></div><div ng-if="!editBasic.active &amp;&amp; (plan.suggestion === \'proposed\' || plan.suggestion === \'rejected\')" class="details-suggested editable"><p class="description"><span ng-if="plan.hidden &amp;&amp; isInternal"><i class="fa fa-eye-slash"></i><i ng-if="plan.suggestion === \'rejected\'" tooltip="This suggestion was rejected by the customer" class="fa fa-meh-o red"></i></span><strong ng-show="plan.description" ng-dblclick="editBasic.toggle()">{{plan.description}}</strong><strong ng-hide="plan.description" ng-dblclick="editBasic.toggle()" translate="translate">&nbsp; This is a plan suggested by Red Hat</strong><i ng-click="editBasic.toggle()" ng-if="!isReadOnly()" tooltip="{{\'Click to edit this plan\' | translate}}" class="fa fa-pencil-square-o edit-toggle"></i></p></div></div><div ng-class="{\'hidden\' : edit.isActive(plan.maintenance_id)}" class="plan-summary"><div class="metrics"><strong>{{plan.actionsDone}}/{{plan.actions.length}}&nbsp;</strong><span translate="translate">Actions resolved</span></div><div class="progress-bar"><div ng-style="plan.actionsDone / plan.actions.length | toWidth" class="progress"></div><div class="bar"></div></div></div>\x3c!-- Edit mode--\x3e<div ng-if="edit.isActive(plan.maintenance_id)" class="content content-tabs nobordertop active"><tabset type="noformat" vertical="false" justified="true" role="tablist" class="nav nav-justified">\x3c!-- Actions Tab--\x3e<tab role="tabpanel" heading="{{\'Actions\' | translate}}" deselect="addRule.reset()" select="tabSelected()"><card ng-repeat="rule in (plan.rules | orderBy:[\'-severityNum\', \'rule_id\', \'-actions.length\'] | offset:pager.offset | limitTo:pager.perPage) track by rule.id" ng-init="tableCtx = {}" class="content-block rule"><card-header layout-wrap="layout-wrap" class="gray two-row"><div md-flex-80="md-flex-80" class="title"><ansible-icon value="rule.ansible" show-planner-line="false" hide-label="true" class="inline-right"></ansible-icon><strong>{{rule.description}}</strong></div><div md-flex-20="md-flex-20" class="edit-button"><span ng-hide="isReadOnly()" class="pull-right"><a ng-hide="tableCtx.edit" ng-click="tableCtx.edit = true"><strong translate="translate" tooltip="{{\'Click to add/remove affected systems\' | translate}}">Edit</strong></a><i ng-if="tableCtx.edit" ng-click="removeActions(rule.actions)" tooltip="{{\'Remove this action\' | translate}}" class="fa fa-trash-o"></i></span></div><all-severity-icons rule="rule" ng-if="!loading" md-flex-100="md-flex-100" class="inline"></all-severity-icons></card-header><div class="content nopad table-responsive"><maintenance-table-systems params="tableParams(rule, true, false)" edit="tableCtx.edit" item="rule"></maintenance-table-systems></div></card><div translate="translate" ng-if="!plan.rules.length">This plan is empty</div><pagination ng-if="plan.rules.length &gt; pager.perPage" total-items="plan.rules.length" ng-model="pager.currentPage" items-per-page="pager.perPage" ng-change="pager.update()" class="pull-right pagination-blue"></pagination></tab>\x3c!-- Systems Tab--\x3e<tab role="tabpanel" heading="{{\'Systems\' | translate}}" deselect="addSystem.reset()" select="tabSelected(&quot;systems&quot;)"><card ng-repeat="system in (plan.systems | orderBy:[\'_name\', \'system_id\'] | offset:pager.offset | limitTo:pager.perPage) track by system.system_id" ng-init="tableCtx = {}" class="content-block system"><card-header class="gray"><div class="system-info"><type-icon type-id="system.system_type_id" include-text="false"></type-icon><a ng-click="showSystemModal(system)"><strong>&nbsp; {{system._name}} &nbsp;&nbsp;</strong></a><span class="item"><strong translate="translate">Last check in:</strong><span ng-class="system | checkInStyle">&nbsp;&nbsp;{{system.last_check_in | timeAgo}}</span></span></div><div class="edit-button"><span ng-hide="isReadOnly()" class="pull-right"><a ng-hide="tableCtx.edit" ng-click="tableCtx.edit = true"><strong translate="translate" tooltip="{{\'Click to add/remove actions for this system\' | translate}}">Edit</strong></a><i ng-if="tableCtx.edit" ng-click="removeActions(system.actions)" tooltip="{{\'Remove this system\' | translate}}" class="fa fa-trash-o"></i></span></div><div class="text-center red hidden"><strong>System restart required&nbsp;&nbsp;</strong><i class="fa fa-refresh"></i></div></card-header><div class="content nopad table-responsive"><maintenance-table-actions params="tableParams(system, false, false)" edit="tableCtx.edit" item="system"></maintenance-table-actions></div></card><div translate="translate" ng-if="!plan.systems.length">This plan is empty</div><pagination ng-if="plan.systems.length &gt; pager.perPage" total-items="plan.systems.length" ng-model="pager.currentPage" items-per-page="pager.perPage" ng-change="pager.update()" class="pull-right pagination-blue"></pagination></tab>\x3c!-- Playbook Tab--\x3e<tab role="tabpanel" disable="!ansibleSupport" ng-init="setupTabActivator($parent)" select="tabSelected(&quot;playbook&quot;); prepareAnsibleTab()" class="tab-blue"><tab-heading><ansible-icon value="ansibleSupport" show-tooltip="false" white="true" class="inline-right"></ansible-icon><strong translate="translate">Playbook</strong></tab-heading><div ng-show="playbookTabLoader.loading" class="spinner"></div><div ng-hide="playbookTabLoader.loading" class="playbooks"><card ng-repeat="play in plays" class="playbook"><card-header class="gray"><a ui-sref="app.actions-rule({category: play.rule.category.toLowerCase(), rule: play.rule.rule_id})"><b>{{ play.rule.description }}</b></a></card-header><card-content class="two-columns flex"><div md-flex-50="md-flex-50" class="systems"><h4 translate="translate" class="section-title">Systems:</h4><expandable-system-list systems="play.systems"></expandable-system-list></div><div md-flex-50="md-flex-50" class="resolution"><h4 translate="translate" class="section-title">Resolution:</h4><p>{{ play.ansible_resolutions[0].description }} &nbsp;<a ng-if="play.ansible_resolutions.length &gt; 1" ng-click="resolutionModal(play)" tooltip="{{&quot;Multiple resolutions available. Click here to select a different one.&quot; | translate}}"><span translate="translate">- edit ({{play.ansible_resolutions.length}} options)</span></a></p><ul class="list-plain"><li ng-if="play.ansible_resolutions[0].needs_reboot"><div class="icon-inline red"><i class="fa fa-repeat"></i><strong translate="translate" tooltip="{{\'System reboot is required to resolve this issue\' | translate}}">Reboot Required</strong></div></li><li ng-if="play.ansible_resolutions[0].resolution_risk"><risk-of-change change-risk="play.ansible_resolutions[0].resolution_risk"> </risk-of-change></li></ul></div></card-content></card><card class="playbook playbook-summary"><card-header class="gray"><strong translate="translate" class="red">System reboot summary</strong></card-header><card-content ng-if="!systemsToReboot.length" class="gray"><p translate="translate">This playbook&nbsp;<b translate="translate" class="text-success">does not require a system reboot.</b></p></card-content><card-content ng-if="systemsToReboot.length" class="gray two-columns flex"><div md-flex-50="md-flex-50" class="systems"><h4 translate="translate" class="section-title">Systems:</h4><expandable-system-list systems="systemsToReboot"></expandable-system-list></div><div md-flex-50="md-flex-50" class="resolution"><div ng-click="plan.allow_reboot = !plan.allow_reboot; allowRebootChanged()" class="toggle push-bottom-narrow"><input type="checkbox" ng-checked="plan.allow_reboot"/><b translate="translate">Reboot systems automatically</b><div ng-class="{active: plan.allow_reboot}" class="toggle-slider"></div></div><p translate="translate">Some of the resolutions above require system reboot in order for the changes to take effect. This playbook&nbsp;<b ng-if="plan.allow_reboot" class="red">will reboot the systems automatically.</b><span ng-if="!plan.allow_reboot"><b>will not reboot the systems.&nbsp;</b>The systems will need to be rebooted manually.</span></p></div></card-content></card></div></tab></tabset></div><footer ng-show="edit.isActive(plan.maintenance_id)" class="footer"><div class="button-group"><a ng-if="isInternal &amp;&amp; !plan.hidden" ng-click="hidden(true)"><md-button class="md-raised"><i class="fa fa-eye-slash inline-right"></i><span translate="translate">Hide</span></md-button></a><a ng-if="isInternal &amp;&amp; plan.hidden" ng-click="hidden(false)"><md-button class="md-raised"><i class="fa fa-eye inline-right"></i><span translate="translate">Publish</span></md-button></a><a ng-if="plan.suggestion === \'proposed\' &amp;&amp; !plan.hidden" ng-click="accept()"><md-button class="md-raised"><i class="fa fa-check inline-right"></i><span translate="translate">Accept</span></md-button></a><a ng-if="plan.suggestion === \'proposed\' &amp;&amp; !plan.hidden" ng-click="reject()"><md-button class="md-raised"><i class="fa fa-close inline-right"></i><span translate="translate">Ignore</span></md-button></a></div><div class="button-group"><button-split ng-disabled="!ansibleSupport" ng-if="ansibleRunner" class="md-button-ghost-blue md-primary"><button-split-main ng-click="runPlaybook(\'run\')"><i class="svg ansible-icon inline-right"><img src="static/images/l_ansible-blue.svg"/></i><span translate="translate">Run Playbook</span></button-split-main><button-split-item><md-button translate="translate" ng-click="runPlaybook(\'customize\')" class="action">Customize Playbook Run</md-button></button-split-item><button-split-item><md-button translate="translate" ng-click="downloadPlaybook()" class="action">Download Playbook</md-button></button-split-item></button-split><a translate="translate" ng-click="downloadPlaybook()" ng-if="!ansibleRunner"><md-button ng-disabled="!ansibleSupport" class="btn-sm md-button-ghost-blue md-primary"><i class="svg ansible-icon inline-right"><img src="static/images/l_ansible-blue.svg"/></i><span translate="translate">Download Playbook</span></md-button></a><a translate="translate" ng-click="exportPlan(plan.maintenance_id)"><md-button class="btn-sm md-button-ghost-blue md-primary"><i class="fa fa-download inline-right"></i><span translate="translate">Export CSV</span></md-button></a><a><md-button ng-click="addActions()" ng-if="!isReadOnly()" class="btn-sm md-raised md-primary"><span translate="translate">Add actions</span></md-button></a></div></footer></div></div></div>'),e.put("js/components/maintenance/maintenanceTable/maintenanceTableActions.html",'<div ng-class="{updating: table.loader.loading}" class="updatable"><div ng-show="table.loader.loading" class="spinner spinner-lg"></div><table class="table nomar ng-table maintenance-table"><thead><tr><th ng-show="edit" class="text-center"><input ng-model="checkboxes.checked" type="checkbox" ng-indeterminate="checkboxes.indeterminate" ng-change="checkboxChecked()" class="select-all"/></th><th ng-class="table.sorter.getSortClass(\'display\')" ng-click="table.sorter.sort(\'display\')" translate="translate" class="sortable">Action</th><th ng-class="table.sorter.getSortClass(\'rule.severityNum\')" ng-click="table.sorter.sort(\'rule.severityNum\')" translate="translate" class="sortable text-center">Total Risk</th><th ng-class="table.sorter.getSortClass(\'done\')" ng-click="table.sorter.sort(\'done\')" translate="translate" class="sortable text-center">Status</th></tr><tr ng-show="edit"><th colspan="4" class="filter"><input type="text" placeholder="Filter by rule name" ng-model="table.filter.display" ng-change="table.doFilter()" class="form-control nomar-left input-sm"/></th></tr></thead><tbody><tr ng-repeat="action in table.data track by action.id" data-id="{{action.id}}" ng-click="checkboxRowClick($event, action.id)" ng-mousedown="checkboxRowClick($event, action.id)"><td ng-show="edit" class="text-center"><input ng-model="checkboxes.items[action.id]" type="checkbox"/></td><td ng-class="{&quot;icon-inline&quot;: action._type === 2}" class="overflow"><i ng-if="action._type === 2" tooltip="{{\'This action is already part of another plan\' | translate}}" class="icon fa fa-exclamation-circle"></i><a ng-click="table.showSystemModal(table.params.item, action.rule)" class="text action">{{action.display}}</a></td><td class="text-center"><severity-icon severity="action.rule.severity" type="severity" label=""></severity-icon></td><td class="status text-center"><status-icon status="action.done"></status-icon></td></tr></tbody><tfoot maintenance-table-footer="maintenance-table-footer"></tfoot></table></div>'),e.put("js/components/maintenance/maintenanceTable/maintenanceTableFooter.html",'<tr ng-show="edit"><td colspan="{{cols || 4}}"><div role="group" class="pull-right btn-group"><button ng-click="table.cancel()" translate="translate" class="btn btn-sm btn-blank">Cancel</button><button ng-click="table.save()" ng-disabled="!checkboxes.totalChecked" translate="translate" class="btn btn-sm btn-accent">Save</button></div></td></tr><tr ng-if="table.filteredActions.length &gt; table.pager.perPage"><td colspan="{{cols || 4}}"><pagination total-items="table.filteredActions.length" ng-model="table.pager.currentPage" items-per-page="table.pager.perPage" ng-change="table.page()" class="pull-right pagination-blue"></pagination></td></tr>'),e.put("js/components/maintenance/maintenanceTable/maintenanceTableMulti.html",'<div ng-class="{updating: table.loader.loading}" class="updatable"><div ng-show="table.loader.loading" class="spinner spinner-lg"></div>\x3c!-- cols set so that footer knows how many cols to span--\x3e<table ng-init="cols = 5" class="table nomar ng-table maintenance-table"><thead><tr><th ng-show="edit" class="text-center"><input ng-model="checkboxes.checked" type="checkbox" ng-indeterminate="checkboxes.indeterminate" ng-change="checkboxChecked()" class="select-all"/></th><th ng-class="table.sorter.getSortClass(\'display\')" ng-click="table.sorter.sort(\'display\')" translate="translate" class="sortable">Action</th><th ng-class="table.sorter.getSortClass(\'rule.severityNum\')" ng-click="table.sorter.sort(\'rule.severityNum\')" translate="translate" class="sortable text-center">Total Risk</th><th ng-class="table.sorter.getSortClass(\'rule.ansible\')" ng-click="table.sorter.sort(\'rule.ansible\')" translate="translate" class="sortable text-center">Ansible</th><th ng-class="table.sorter.getSortClass(\'rule.report_count\')" ng-click="table.sorter.sort(\'rule.report_count\')" translate="translate" class="sortable text-center">Affected Systems</th></tr><tr ng-show="edit"><th colspan="5" class="filter"><input type="text" placeholder="Filter by rule name" ng-model="table.filter.display" ng-change="table.doFilter()" class="form-control nomar-left input-sm"/></th></tr></thead><tbody><tr ng-repeat="action in table.data track by action.id" data-id="{{action.id}}" ng-click="checkboxRowClick($event, action.id)" ng-mousedown="checkboxRowClick($event, action.id)"><td ng-show="edit" class="text-center"><input ng-model="checkboxes.items[action.id]" type="checkbox"/></td><td class="overflow"><a ng-href="./actions/{{action.rule.category}}/{{action.id}}" target="_blank"><span class="wrap">{{action.display}}</span></a></td><td class="text-center"><severity-icon severity="action.rule.severity" type="severity" label=""></severity-icon></td><td class="status text-center"><ansible-icon value="action.rule.ansible" show-planner-line="false"></ansible-icon></td><td class="status text-center">{{action.rule.report_count}}</td></tr></tbody><tfoot maintenance-table-footer="maintenance-table-footer"></tfoot></table></div>'),e.put("js/components/maintenance/maintenanceTable/maintenanceTableSystems.html",'<div ng-class="{updating: table.loader.loading}" class="updatable"><div ng-show="table.loader.loading" class="spinner spinner-lg"></div><table class="ng-table maintenance-table"><thead><tr><th width="6%" ng-show="edit" class="text-center"><input ng-model="checkboxes.checked" type="checkbox" ng-indeterminate="checkboxes.indeterminate" ng-change="checkboxChecked()" class="select-all"/></th><th ng-class="table.sorter.getSortClass(\'display\')" ng-click="table.sorter.sort(\'display\')" translate="translate" class="sortable">System</th><th width="20%" ng-class="table.sorter.getSortClass(\'system.last_check_in\')" ng-click="table.sorter.sort(\'system.last_check_in\')" translate="translate" class="sortable">Last check in</th><th width="12%" ng-class="table.sorter.getSortClass(\'done\')" ng-click="table.sorter.sort(\'done\')" translate="translate" class="sortable text-center">Status</th></tr><tr ng-show="edit"><th colspan="4" class="filter"><input type="text" placeholder="Filter by system name" ng-model="table.filter.display" ng-change="table.doFilter()" class="form-control nomar-left input-sm"/></th></tr></thead><tbody><tr ng-repeat="action in table.data track by action.id" data-id="{{action.id}}" ng-click="checkboxRowClick($event, action.id)" ng-mousedown="checkboxRowClick($event, action.id)"><td ng-show="edit" class="text-center"><input ng-model="checkboxes.items[action.id]" type="checkbox"/></td><td class="overflow"><type-icon type-id="action.systemTypeIconId" ng-if="action.systemTypeIconId" include-text="false"></type-icon><i ng-if="action._type === 2" tooltip="{{\'This action is already part of another plan\' | translate}}" class="fa fa-exclamation-circle"> </i><a ng-click="table.showSystemModal(action.system, table.params.item)" class="hostname with-icon"><trimmed-text text="{{action.display}}" length="45"></trimmed-text></a></td><td><span ng-show="::action.system.last_check_in">{{::action.system.last_check_in | timeAgo}}</span><span ng-hide="::action.system.last_check_in">--</span></td><td width="19%" class="status text-center"><status-icon status="action.done"></status-icon></td></tr></tbody><tfoot maintenance-table-footer="maintenance-table-footer"></tfoot></table></div>'),e.put("js/components/maintenance/planList/planList.html",'<div class="plans"><div ng-if="!group" class="row"><maintenance-plan ng-repeat="plan in plans | orderBy:&quot;-maintenance_id&quot; | limitTo:pager.perPage:pager.offset track by plan.maintenance_id"></maintenance-plan></div><div ng-if="group" ng-repeat="month in (plans | orderBy:[&quot;-start&quot;,&quot;-maintenance_id&quot;] | limitTo:pager.perPage:pager.offset | groupPlans)" class="row"><div class="col-sm-12"><h3>{{month[0].start | moment:\'MMMM YYYY\'}}</h3></div><maintenance-plan ng-repeat="plan in month | orderBy:&quot;-start&quot; track by plan.maintenance_id"></maintenance-plan></div><div class="row row-short"><pagination ng-if="plans.length &gt; pager.perPage" total-items="plans.length" ng-model="pager.currentPage" items-per-page="pager.perPage" ng-change="pager.update()" class="pull-right pagination-blue"></pagination></div></div>'),
16e.put("js/components/maintenance/resolutionModal/resolutionModal.html",'<div class="resolution-modal"> <div class="modal-actions"><i ng-click="cancel()" class="fa fa-close"></i></div><div class="modal-header"><div class="text-center"><i class="svg"><img src="static/images/l_ansible-black.svg"/></i><h2 translate="translate">Choose Resolution</h2></div></div><div class="modal-body"><div class="row"><div class="col-sm-12"><div class="group"><div class="group-title group-title-table"><table><tbody><tr><td><b>{{ params.play.rule.description }}</b></td></tr></tbody></table></div></div></div></div><div class="row"><div class="col-sm-12"><div class="group"><div class="group-title"><i ng-class="systemType.imageClass" class="fa fa-times-circle"></i><b>&nbsp; {{systemType.displayName}}</b></div><div class="group-content"><ul><li ng-repeat="system in systems | limitTo:listLimit | orderBy:\'toString\'">{{system.toString}}</li></ul><a ng-show="listLimit !== undefined &amp;&amp; listLimit &lt; systems.length" ng-click="listLimit = undefined" translate="translate">View More ({{systems.length - listLimit}})</a><a ng-show="listLimit === undefined" ng-click="listLimit = MINIMUM_NUMBER_OF_ITEMS" translate="translate">View Less</a></div></div></div></div><div class="row"><div class="col-sm-12"><div class="group"><div class="group-title"><b translate="translate">Would you like to:</b></div><div class="group-content"><div ng-repeat="resolution in resolutions track by resolution.resolution_type" class="radio"><label for="resolution-type-{{$index}}"><input type="radio" ng-model="selected.resolutionType" name="resolution-type" id="resolution-type-{{$index}}" ng-value="resolution.resolution_type"/><risk-of-change change-risk="resolution.resolution_risk" hide-label="true"></risk-of-change><span>{{resolution.description}}</span><br/><i ng-if="resolution.needs_reboot" tooltip="{{\'This resolution requires a system reboot\' | translate}}" class="fa fa-repeat red inline-left"></i><strong ng-if="resolution.needs_reboot" class="red">&nbsp;Reboot Required</strong></label></div></div></div></div></div><div class="row"><div class="col-sm-12"><p translate="translate">This setting can be changed anytime in the&nbsp;<strong translate="translate">Playbook Settings&nbsp;</strong>tab</p></div></div><div ng-if="params.steps &gt; 1" class="row"><div class="col-sm-12"><ul class="pagination pagination-dots"><li ng-repeat="i in range(params.index) track by $index"><a class="sr-only"></a></li><li class="active"><a class="sr-only"></a></li><li ng-repeat="i in range(params.steps - params.index - 1) track by $index"><a class="sr-only"></a></li></ul></div></div></div><div class="modal-footer"><ul class="row pager pager-steps"><li class="previous col-sm-6"><a ng-click="cancel()" class="btn cancel"><span translate="translate" ng-if="params.steps">Skip and use defaults</span><span translate="translate" ng-if="!params.steps">Cancel</span></a></li><li class="next col-sm-6"><a ng-click="save()" translate="translate" class="btn save">Save</a></li></ul></div></div>'),e.put("js/components/misc/trimmedText/trimmedText.html",'<span class="trimmed-text"><span ng-if="showTooltip" tooltip="{{:: text}}" class="trimmed">{{:: trimmedText}}</span><span ng-if="!showTooltip" class="not-trimmed">{{:: trimmedText}}</span></span>'),e.put("js/components/overview/articleModal/articleModal.html",'<div class="article-modal"><form novalidate="novalidate" name="articleForm" class="form-horizontal"><h2>Overview content</h2><div class="form-group row"><label for="title" class="control-label col-sm-2">Article</label><div class="col-sm-10"><ui-select ng-model="selected.article" append-to-body="false" on-select="load($item.id)" search-enabled="false"><ui-select-match placeholder="Select an article" class="form-control ui-select-match">{{selected.article.id}}</ui-select-match><ui-select-choices repeat="article in articles" class="ui-select-choices">{{article.id}}</ui-select-choices></ui-select></div></div><div ng-class="{\'has-error\': articleForm.title.$invalid &amp;&amp; articleForm.title.$dirty}" class="form-group row row-short"><label for="title" class="control-label col-sm-2">Title</label><div class="col-sm-10"><input id="title" type="text" name="title" ng-model="article.title" maxlength="255" required="required" class="form-control"/></div></div><div ng-class="{\'has-error\': error.content}" class="form-group row row-short"><div class="col-sm-12"><div class="pull-right"><yes-no yes="true" text="markdown"></yes-no>&nbsp;<yes-no no="true" text="doT"></yes-no></div><textarea id="content" placeholder="Overview content" ng-model="article.content" rows="20" class="form-control content"></textarea></div></div><div class="row"><div class="col-sm-6"><button ng-click="preview()" ng-disabled="articleForm.$invalid" class="btn btn-sm btn-secondary"><span class="icon-inline"><i class="fa fa-picture-o"></i><span>Preview</span></span></button></div><div class="col-sm-6 text-right"><button ng-click="close()" class="btn btn-sm btn-default">Cancel</button><button ng-click="save()" ng-disabled="articleForm.$invalid" class="btn btn-sm btn-primary">Save</button></div></div></form><div ng-if="previewData" class="row"><hr/><div class="col-sm-12"><h3><strong>{{previewData.title}}</strong></h3><span ng-bind-html="previewData.content_html | trust_html" class="handcrafted-content"></span></div></div></div>'),e.put("js/components/policies/policiesModal/policiesModal.html",'<div class="policiesModal"><div class="content-wrap"><expand-all-button class="toggle-expand-right"></expand-all-button><card expandable="true" ng-repeat="policy in policies track by policy.policy_id" ng-show="!loading" init-collapsed="policy.policy_id != policyId"><card-header-expandable class="gray"><div class="card-header-title"><div class="checks-wrapper"><div class="title">{{:: policy.policy_id }}</div><div class="checks-state"><div translate="translate" translate-n="{{:: policy.checks_pass}}" translate-plural="{{:: $count}} Checks passed" ng-if="policy.checks_pass !== 0" class="passed">{{:: policy.checks_pass}} Check passed</div><div translate="translate" translate-n="{{:: policy.checks_fail}}" translate-plural="{{:: $count}} Checks failed" ng-if="policy.checks_fail !== 0" class="failed">{{:: policy.checks_fail}} Check failed</div><div translate="translate" translate-n="{{:: policy.checks_error}}" translate-plural="{{:: $count}} Checks errored" ng-if="policy.checks_error !== 0" class="errored">{{:: policy.checks_error}} Check errored</div></div></div></div></card-header-expandable><card-content collapse="card.collapsed" class="card-content ng-animate-enabled"><div class="tri-card-container">\x3c!-- Passed--\x3e<card ng-class="(policy.checks_pass === 0) ? \'md-disabled\' : \'\'" class="state-passed"><card-header><div class="card-header-title"><div class="title"><i aria-label="Policy Passed icon" translate="translate" class="fa fa-check-circle"></i>Passed</div></div></card-header><card-content><ul><li ng-repeat="check in policy.check_results | orderBy: \'check.name\'" ng-if="check.result === \'pass\'">{{:: check.name}}</li></ul></card-content></card>\x3c!-- Failed--\x3e<card ng-class="(policy.checks_fail === 0) ? \'md-disabled\' : \'\'" class="state-failed"><card-header><div class="card-header-text"><div class="title"><i aria-label="Policy Failed icon" translate="translate" class="fa fa-times-circle"></i>Failed</div></div></card-header><card-content><ul><li ng-repeat="check in policy.check_results | orderBy: \'check.name\'" ng-if="check.result === \'fail\'">{{:: check.name}}</li></ul></card-content></card>\x3c!-- Errored--\x3e<card ng-if="policy.checks_error !== 0" class="state-warn"><card-header><div class="card-header-text"><div class="title"><i aria-label="Policy Errored icon" translate="translate" class="fa fa-warning"></i>Errored</div></div></card-header><card-content><ul><li ng-repeat="check in policy.check_results | orderBy: \'check.name\'" ng-if="check.result === \'error\'">{{:: check.name}}</li></ul></card-content></card></div></card-content></card></div></div>'),e.put("js/components/rule/ruleBreadcrumb/ruleBreadcrumb.html",'<ol class="breadcrumb"><li><a translate="translate" ui-sref="app.rules">Rules</a></li><li><a ui-sref="app.admin-rules">Rules Admin</a></li><li ng-if="rule"><span>{{:: rule.plugin }}|{{:: rule.error_key }}</span></li><li ng-if="insightsNamespacer.current === \'insights-app-admin-rule-tags\'"><a ui-sref="app.admin-rule-tags">Tags</a></li></ol>'),e.put("js/components/rule/ruleFilter/ruleFilter.html",'<table-filters><incidents-tri-state></incidents-tri-state><ansible-support-tri-state ng-if="config.isPlannerEnabled"></ansible-support-tri-state><rule-status-tri-state></rule-status-tri-state><age-select></age-select><total-risk-select></total-risk-select><category-select></category-select><likelihood-select></likelihood-select><impact-select></impact-select></table-filters>'),e.put("js/components/rule/ruleListSimple/ruleListSimple.html",'<ul class="rule-list list-unstyled"><li ng-repeat="rule in (rules | orderBy:order | limitTo:limit) track by rule.rule_id"><div class="title">{{:: rule.description}}&nbsp;</div><a ng-click="onSelect({rule: rule})">[{{:: rule.rule_id}}]&nbsp;</a><i ng-click="onDelete({rule: rule})" ng-hide="readOnly" class="fa fa-times"></i>\x3c!-- I know I know--\x3e<br/><all-severity-icons rule="rule"></all-severity-icons></li><li ng-show="rules.length &gt; 10 &amp;&amp; limit"><a ng-click="limit = undefined">… ({{:: rules.length - limit}} more)</a></li></ul>'),e.put("js/components/rule/ruleGroupCard/ruleGroupCard.html",'<div ng-keypress="keyPressed($event)" class="card-group"><header class="header"><div translate="translate" translate-n="plugin.hitCount" translate-plural="{{:: $count}} Systems" class="count">1 System</div><div class="row"><div class="col-sm-9"><i aria-hidden="true" class="fa fa-users"></i><strong><span translate="translate" class="text-uppercase">Group: &nbsp;</span><span ng-if="plugin.categories.length === 1"><i ng-class="plugin.categories[0].toLowerCase()" class="fa category-icon inline-right"></i>{{:: plugin.categories[0]}}</span><span>&nbsp; {{:: plugin.display_name}}</span></strong></div><div class="col-sm-3 text-right-sm"><span translate="translate" translate-n="plugin.rules.length" translate-plural="{{:: $count}} Rules in this group">1 Rule in this group</span></div></div></header><div ng-class="{swapping: swapping}" ng-mouseenter="setActive(true)" ng-mouseleave="setActive(false)" class="content disabled-start"><div ng-click="previous()" ng-class="{disabled: !hasPrevious()}" class="prev md-whiteframe-5dp"><i class="fa fa-arrow-left"></i></div><div ng-click="next()" ng-class="{disabled: !hasNext()}" class="next md-whiteframe-5dp"><i class="fa fa-arrow-right"></i></div><card><card-header><div translate="translate" class="md-card-header-title">{{index + 1}} of {{plugin.rules.length}}: {{rule.description}}</div><span translate="translate" ng-show="rule.acked" class="label label-default pull-right text-uppercase">inactive</span><div ng-if="config.isPlannerEnabled" class="md-card-header-cta"><incident-icon rule-id="rule.rule_id"></incident-icon><ansible-icon value="rule.ansible"></ansible-icon></div></card-header><card-content><div ng-bind-html="rule.summary_html" target-blank="" class="gray"></div></card-content><card-footer><div class="card-footer-title"><all-severity-icons rule="rule" ng-if="!swapping" class="inline"></all-severity-icons></div><div class="card-footer-cta"><strong><a ui-sref="app.actions-rule({category: rule.category, rule: rule.rule_id})" ng-disabled="rule.hitCount === 0" translate="translate" translate-n="rule.hitCount" translate-plural="View Impacted Systems ({{:: $count}})">View Impacted System (1)</a></strong></div></card-footer></card></div></div>'),e.put("js/components/rule/ruleReason/ruleReason.html",'<div class="detail-part"><h4 translate="translate" class="section-heading"><i aria-hidden="true" class="fa fa-crosshairs">&nbsp;</i><strong translate="translate">Detected issues</strong></h4><div class="reason"><div ng-if="report.rule.reason !== \'INSIGHTS-ERROR-INTERPOLATION\'" ng-bind-html=":: report.rule.reason | trust_html" target-blank="" class="detail-content"></div><div ng-if="report.rule.reason === \'INSIGHTS-ERROR-INTERPOLATION\'" class="detail-content"><p><i class="fa fa-exclamation-circle i-error inline-right"></i><strong translate="translate">There was a problem obtaining action details. Please try again later.</strong></p></div></div></div>'),e.put("js/components/rule/ruleResolution/ruleResolution.html",'<div class="detail-part"><div class="detail-content answer"><h4 translate="translate" class="section-heading"><i aria-hidden="true" class="fa fa-thumbs-up">&nbsp;</i><strong translate="translate">Steps to resolve</strong></h4><span ng-if="report.rule.resolution !== \'INSIGHTS-ERROR-INTERPOLATION\'" ng-bind-html=":: report.rule.resolution | trust_html" target-blank=""></span><span ng-if="report.rule.resolution === \'INSIGHTS-ERROR-INTERPOLATION\'"><p><i class="fa fa-exclamation-circle i-error inline-right"></i><strong translate="translate">There was a problem obtaining action details. Please try again later.</strong></p></span></div><div ng-if="report.details.affected_hosts &amp;&amp; (report.rule.type === &quot;osp&quot; || report.rule.type === &quot;rhev&quot;)" class="osp-affected-hosts"><table class="table table-fixed"><thead><tr><th><div translate="translate">Affected Hosts</div></th></tr></thead><tbody><tr ng-repeat="affected_host in report.details.affected_hosts"><td><div>{{:: getSystemNameFromId(affected_host)}}</div></td></tr></tbody></table></div></div>'),e.put("js/components/rule/ruleSummaries/ruleSummaries.html",'<div class="content-wrap"><div ng-if="loading.isLoading" class="loading-block text-center"><div class="detail-part"><div class="spinner spinner-lg"></div>{{:: getLoadingMessage()}}</div></div><div class="text-right"><expand-all-button ng-hide="!system.reports || !system.reports.length || loading.isLoading"></expand-all-button></div><p ng-if="(!system.reports || !system.reports.length) &amp;&amp; !loading.isLoading &amp;&amp; !system.__fake &amp;&amp; !errorMessage" class="text-center"><span class="icon icon-inline success"><i class="fa fa-check-circle"></i><span translate="translate">No actions</span></span></p><div ng-if="!loading.isLoading &amp;&amp; !system.__fake &amp;&amp; errorMessage" ng-bind-html=":: errorMessage | trust_html"></div><rule-summary report="report" rule-id="rule_id" rule-filter="ruleFilter" ng-repeat="report in system.reports track by report.rule_id" class="rule-summary system-overlay-item content-block"></rule-summary></div>'),e.put("js/components/rule/ruleSummary/ruleSummary.html",'<card expandable="true" init-collapsed="initCollapsed" on-toggle="resetShowMore(ctx)" class="card-rule-summary"><card-header-expandable class="risk-summary gray"><incident-icon rule-id="report.rule_id"></incident-icon><h3 class="title">{{:: report.rule.category }} > {{:: report.rule.description }}</h3><ansible-icon value="report.rule.ansible" ng-if="config.isPlannerEnabled" hide-label="true"></ansible-icon><div class="risk-summaries card-header-risk-summaries"><all-severity-icons rule="report.rule" class="inline"></all-severity-icons><risk-of-change change-risk="report.rule.resolution_risk"></risk-of-change></div></card-header-expandable><card-content collapse="card.collapsed" class="card-content ng-animate-enabled"><div class="flex"><div md-flex-100="md-flex-100" class="rule-reason"></div><div md-flex-100="md-flex-100" class="rule-resolution"></div><div ng-if="report.rule.node_id" node="report.rule.node_id" class="recommended-kbase"></div><div ng-show="report.rule.more_info" class="text-center border-top"></div></div></card-content><card-footer collapse="!show.moreInfo" class="footer more-info ng-animate-enabled"></card-footer></card>'),e.put("js/components/rule/ruleToggle/ruleToggle.html",'<div ng-click="ackAction()" class="toggle"><div ng-class="{active: !rule.ack_id}" class="toggle-slider"></div><b translate="translate"><span>Enable Rule</span></b></div>'),e.put("js/components/system/addSystemModal/addSystemModal.html",'<div class="modal-actions"><i ng-click="close()" class="fa fa-close pull-right"></i></div><div id="info" class="info"><div class="content"><section id="install"><h2 translate="translate" class="section-header">Install the Red Hat Insights Client and Register More Systems</h2><p translate="translate">Register your system for updates with Red Hat Subscription Manager to resolve software dependencies:</p><pre class="code-block code-terminal"><code class="language-shell"> # subscription-manager register --auto-attach</code></pre><p translate="translate">Install the Red Hat Insights RPM:</p><pre class="code-block code-terminal"><code class="language-shell"> # yum install redhat-access-insights</code></pre></section><section id="register"><h2 translate="translate" class="section-header">Register the system to Red Hat Insights</h2><pre class="code-block code-terminal"><code># redhat-access-insights --register</code></pre><p translate="translate">After registration, the Insights client will upload initial system information to Red Hat Insights. You should be able to immediately see your system in the&nbsp;<a ui-sref="app.inventory" ng-click="close()">Insights user interface.</a></p><p translate="translate">The initial analysis results will be available shorty thereafter.</p></section><section id="more"><h2 translate="translate" class="section-header">Advanced configuration</h2><p translate="translate">For more advanced configuration see the&nbsp;<a href="{{:: gettingStartedLink}}" target="_blank" ng-click="close()" translate="translate">getting started guide</a>.</p></section></div></div>'),e.put("js/components/system/addSystemModal/upgradeSubscription.html",'<div class="modal-actions"><i ng-click="close()" class="fa fa-close pull-right"></i></div><div id="info" class="info"><div class="content"><section id="install"><h2 translate="translate" class="section-header">You have reached your maximum <br /> number of registered systems!</h2><p><span ng-if="isEvaluation" translate="translate">You have reached your evaluation limit of 10 registered systems for Red Hat Insights.</span><span ng-if="!isEvaluation" translate="translate">You have reached your maximum number of registered systems for Red Hat Insights.</span>&nbsp;<span translate="translate"> To increase your available Red Hat Insights registrations, please</span>&nbsp;<a href="http://www.redhat.com/en/about/contact/sales" translate="translate">contact your Red Hat sales representative</a>&nbsp;<span translate="translate">to purchase Insights or request a 90 day evaluation.</span></p><p><a href="http://access.redhat.com/insights/info/#availability" translate="translate">Learn more about Red Hat Insights availability</a></p></section></div></div>'),e.put("js/components/system/systemTable/systemTable.html",'<div class="col-md-6 group-list"><label class="full-width">{{::title | translate}}</label><input placeholder="{{\'Filter\' | translate}}" type="text" ng-model="systemsFilter" ng-model-options="{ debounce: 100 }" ng-change="filterSystems()" class="filter full-width"/><div class="filters-table"><div class="row"><div class="col-xs-6"><label class="select-all"><input type="checkbox" ng-model="checkboxes.checked" ng-indeterminate="indeterminate"/><span translate="translate">Select Visible</span></label></div><div class="col-xs-6"><div class="pull-right flush-right"><span translate="translate">Items</span><div class="dropdown-select dropdown-select-horizontal"><select ng-model="itemsPerPage" ng-options="i for i in items track by i"></select></div></div></div></div></div><div ng-class="{\'scrollable scrollable-table\': _filteredSystems.length &gt; 10}"><table class="table no-header table-groups"><tbody><tr ng-repeat="system in _filteredSystems = (filteredSystems | offset:((currentPage-1)*itemsPerPage) | limitTo:itemsPerPage)" data-id="{{:: system.system_id}}" ng-click="rowClick($event)" ng-mousedown="rowClick($event)" class="ng-animate-disabled"><td><label><input type="checkbox" ng-model="checkboxes.items[system.system_id]"/><span class="hostname">{{:: system.toString}}</span></label></td></tr></tbody></table></div><div class="row groups-footer"><div class="col-xs-12 col-md-5"><a ng-if="type === \'in\'" ng-disabled="!totalChecked" ng-click="removeSystems()" class="link"><i class="fa fa-minus"></i><span translate="translate"> Remove Systems</span></a><a ng-if="type !== \'in\'" ng-disabled="!totalChecked" ng-click="addSystems()" class="link"><i class="fa fa-plus"></i><span translate="translate"> Add Systems</span></a></div><div class="col-xs-12 col-md-7"><pagination ng-hide="total &lt;= itemsPerPage" total-items="total" ng-model="currentPage" previous-text="«" next-text="»" max-size="3" rotate="false" items-per-page="itemsPerPage" ng-change="pageChanged()" class="pull-right pagination-gray"></pagination></div></div></div>'),e.put("js/components/system/systemModal/systemModal.html",'<div class="system-overlay"><div class="rha-notifications"></div><div class="modal-actions"><div ng-click="close()" class="fa fa-close pull-right"></div></div><system-metadata system="system"></system-metadata><md-tabs md-dynamic-height="" md-border-bottom=""><md-tab md-on-select="setActive(\'system\')" label="Rules" md-active="activeTab === &quot;system&quot;"></md-tab><md-tab md-on-select="setActive(\'policy\')" label="Policies" md-active="activeTab === &quot;policy&quot;" ng-if="hasPolicies"></md-tab></md-tabs>\x3c!-- hack to kill the 200MB tab usage--\x3e<div ng-if="activeTab === \'system\'" class="tabs-hack"><div system="system" machine-id="system.system_id" rule="rule" rule-filter="ruleFilter" loading="loading" class="rule-summaries"></div><div ng-if="system.__fake" report="report" rule="rule" loading="loading" class="rule-summary system-overlay-item content-block"></div></div><div ng-if="activeTab === \'policy\'" class="tabs-hack"><policies-modal system-id="system.system_id"></policies-modal></div></div>'),e.put("js/components/topbar/alerts/alerts.html",'<span dropdown="" on-toggle="toggled(open)" class="dropdown dropdown-notification"><div ng-if="loading" class="spinner spinner-sm"></div><a href="" dropdown-toggle="" ng-if="!loading" class="dropdown-toggle"><i class="fa {{:: icon}}"></i><span ng-if="service.unackedCount !== 0" class="count">{{:: service.unackedCount}}</span></a><ul ng-if="!loading" class="dropdown-menu preview"><li ng-repeat="item in service.items" ng-class="{ acked: (item.acked) }" class="announcement"><div><i ng-if="item.icon" ng-class="item.icon" class="fa inline-right"></i><b ng-bind-html=":: item.msg | trust_html" ng-click="item.onSelect(item)"></b></div><div ng-if="item.onAck" ng-click="!item.ack &amp;&amp; item.onAck(item)" tooltip="{{:: \'Dismiss\' | translate}}" class="message-status-toggle"><i ng-if="!item.acked" class="fa fa-circle-o"></i><i ng-if="item.acked" class="fa fa-check-circle-o acked"></i></div></li><li ng-if="service.items.length === 0"><strong translate="translate">You have no alerts</strong></li></ul></span>'),e.put("js/components/topics/otherTopic/otherTopic.html",'<card><card-header><div class="card-header-title"><h4>{{:: topic.title}}</h4></div><div class="card-header-supporting-info"><span translate="translate" translate-n="topic.affectedSystemCount" translate-plural="{{:: $count}} Systems" class="count">1 System</span></div></card-header><card-content ng-bind-html=":: topic.summary_html ? topic.summary_html : Xtopic.content_html | trust_html"></card-content><card-footer class="text-right-sm"><strong><a translate="translate" ui-sref="app.topic({id: topic.slug ? topic.slug : topic.id, product: getSelectedProduct()})" class="pointer">View More</a></strong></card-footer></card>'),e.put("js/components/topics/topicAdminHelpBar/topicAdminHelpBar.html",'<div class="help-bar"><a ng-click="help.show = !help.show"><span class="icon-inline"><i class="fa fa-question-circle"></i><span>Show help</span></span></a><div ng-show="help.show" class="panel panel-default"><div class="panel-body"><h5>Dynamic content</h5><p>There are multiple ways to make the content of a topic dynamic:</p><ul><li><a ng-click="help.appendInterpolation()">interpolation</a></li><li><a ng-click="help.appendConditional()">conditionals</a></li></ul><p>Here are some examples of values you can use for interpolation:<table><tbody><tr ng-repeat="tip in help.interpolations"><td><a ng-click="help.appendInterpolation($event)">{{tip.key}}</a></td><td>{{tip.value}}</td></tr></tbody></table></p><p>Also, you may find &nbsp;<a href="http://olado.github.io/doT/index.html" target="_blank">doT docs</a>&nbsp; useful</p></div></div></div>'),e.put("js/components/topics/topicDetails/topicDetails.html",'<div class="topic-summary"><span ng-show="isContentManager" class="pull-right">[<a ui-sref="app.edit-topic({id: topic.id})">edit</a>]</span><h1 class="page-title"><span translate="translate">{{::topic.title}}</span><div tooltip="This topic is hidden. Only internal users can see it." ng-if="topic.hidden" class="fa fa-eye-slash inline-left red"></div></h1><div ng-if="topic.content_html" ng-bind-html=":: topic.content_html" class="topic-content"></div></div>'),e.put("js/components/topics/topicPreviewModal/topicPreviewModal.html",'<div class="topic-preview"><div class="sample-data"><a ng-click="editData = !editData"><span class="icon-inline"><i ng-hide="editData" class="fa fa-plus"></i><i ng-show="editData" class="fa fa-minus"></i><span>Modify sample data</span></span></a><form novalidate="novalidate" ng-show="editData" name="tweaker" class="form-horizontal"><div class="form-group"><label for="affectedSystemCount" class="control-label col-sm-2">Number of affected systems</label><div class="col-sm-3"><input type="number" ng-model="sampleData.systems.affectedCount" min="0" class="form-contril"/></div></div><div class="form-group"><label for="affectedSystemCount" class="control-label col-sm-2">Rules</label><div class="col-sm-10"><table class="table table-bordered sample-data-table"><thead><tr><th>Rule ID</th><th>Description</th><th>Number of hits</th><th>Ignored by user (acked)</th></tr></thead><tbody><tr ng-repeat="rule in sampleData.rules track by rule.rule_id"><td class="rule-id">{{rule.rule_id}}</td><td>{{rule.description}}</td><td><input type="number" ng-model="rule.hitCount" required="required" min="0" class="form-control"/></td><td><input type="checkbox" ng-model="rule.acked"/></td></tr></tbody></table></div></div><div class="form-group"><button type="submit" ng-click="updateSampleData()" class="btn btn-sm btn-secondary pull-right">Update preview</button></div></form></div><hr/><div ng-show="loader.loading" class="spinner"></div><div ng-hide="topic" class="text-center"><p>This topic will not be shown when there are no hits for it (tweak sample data or switch to \'Shown always\' topic type to see it)</p></div><div ng-if="summary" ng-show="topic &amp;&amp; !loader.loading" class="actions-page"><section><h2 class="section-title section-title-red">Topics</h2><div class="row"><other-topic topic="topic"></other-topic></div></section></div><div ng-if="details" ng-show="topic &amp;&amp; !loader.loading" class="action-details"><section class="gray section-topic-details"><topic-details topic="topic"></topic-details></section><section class="section-rules-group-content"><topic-rule-list topic="topic"></topic-rule-list></section></div></div>'),e.put("js/components/topics/topicRuleFilters/topicRuleFilters.html",'<section><table-filters><table-filters-content><incidents-tri-state ng-if="isBeta"></incidents-tri-state><total-risk-select></total-risk-select><risk-of-change-select></risk-of-change-select></table-filters-content></table-filters></section>'),
17e.put("js/components/topics/topicRuleList/topicRuleList.html",'<div class="topic-rule-list"><div ng-show="getListType() === listTypes.card &amp;&amp; plugins.length &gt; 0" class="cards-view"><div class="card-list"><div ng-repeat="plugin in plugins | orderBy: sorter.predicate : sorter.reverse track by plugin.plugin_id" class="card-list-item"><rule-group-card ng-if="plugin.type === \'group\'" plugin="plugin"></rule-group-card><card ng-if="plugin.type === \'rule\'" ng-class="{faded: plugin.acked}"><card-header><div class="card-header-title"><i ng-class="plugin.rule.category.toLowerCase()" class="fa category-icon inline-right"></i><span>{{ ::plugin.rule.category }} &gt; {{ ::plugin.rule.description }}</span><div translate="translate" translate-n="plugin.hitCount" translate-plural="{{$count}} Systems" class="count">1 System</div></div><div class="card-header-supporting-info"><span ng-if="plugin.acked" translate="translate" class="label rule-inactive">INACTIVE</span><incident-icon rule-id="plugin.rule.rule_id" class="inline-right">&nbsp;</incident-icon><ansible-icon value="plugin.rule.ansible" ng-if="config.isPlannerEnabled" hide-label="true"></ansible-icon></div></card-header><card-content><div ng-bind-html="::plugin.rule.summary_html" target-blank="" class="gray"></div></card-content><card-footer><div class="card-footer-title"><all-severity-icons rule="plugin.rule" class="inline"></all-severity-icons></div><div class="card-footer-cta"><strong ng-hide="plugin.rule.acked"><a translate="translate" ui-sref="app.actions-rule({category: topic.slug ? topic.slug : topic.id, rule: plugin.rule.rule_id})" ng-disabled="plugin.rule.hitCount === 0">View Impacted Systems</a></strong></div></card-footer></card></div></div></div><div ng-show="getListType() === listTypes.table &amp;&amp; plugins.length &gt; 0" class="table-view table-overflow"><table id="rha-rules-table"><thead><tr><th ng-class="sorter.getSortClass(\'description\')" ng-click="sorter.sort(\'description\')" translate="translate" class="sort-asc sortable">Rule</th>\x3c!-- START UBER-SEV--\x3e<th ng-class="sorter.getSortClass(\'rec_likelihood\')" ng-click="sorter.sort(\'rec_likelihood\')" translate="translate" class="fit-content text-center sortable">Likelihood</th><th ng-class="sorter.getSortClass(\'rec_impact\')" ng-click="sorter.sort(\'rec_impact\')" translate="translate" class="fit-content text-center sortable">Impact</th><th ng-class="sorter.getSortClass(\'severityNum\')" ng-click="sorter.sort(\'severityNum\')" translate="translate" class="fit-content text-center sortable">Total Risk</th>\x3c!-- END UBER-SEV--\x3e<th ng-class="sorter.getSortClass(\'hitCount\')" ng-click="sorter.sort(\'hitCount\')" translate="translate" class="fit-content text-center sortable"> Systems</th><th ng-if="config.isPlannerEnabled" ng-class="sorter.getSortClass(\'ansible\')" ng-click="sorter.sort(\'ansible\')" translate="translate" class="fit-content text-center sortable">Ansible</th></tr></thead><tbody><tr ng-repeat="rule in filteredRules | filter:filterZero | orderBy: sorter.predicate : sorter.reverse track by rule.rule_id" ng-class="{acked: rule.acked}" class="legend-item"><td ng-click="!rule.acked &amp;&amp; viewImpactedSystems(topic.slug ? topic.slug : topic.id, rule.rule_id)"><div class="icon-inline-right"><incident-icon rule-id="rule.rule_id"></incident-icon></div><div ng-if="rule.acked" class="rule-description">{{rule.description}}<span translate="translate" class="label label-default inline-left rule-inactive">INACTIVE</span></div><a ng-class="{\'icon-inline-right\' : checkIncident(rule.rule_id)}" ng-if="!rule.acked">{{rule.description}}</a></td>\x3c!-- START UBER-SEV--\x3e<td ng-click="viewImpactedSystems(topic.slug ? topic.slug : topic.id, rule.rule_id)" class="filter-on text-center align-vertical"><severity-icon severity="rule.rec_likelihood" type="likelihood" label=""></severity-icon></td><td ng-click="viewImpactedSystems(topic.slug ? topic.slug : topic.id, rule.rule_id)" class="filter-on text-center align-vertical"><severity-icon severity="rule.rec_impact" type="impact" label=""></severity-icon></td><td ng-click="viewImpactedSystems(topic.slug ? topic.slug : topic.id, rule.rule_id)" class="filter-on text-center align-vertical"><severity-icon severity="rule.severity" type="severity" label=""></severity-icon></td>\x3c!-- END UBER-SEV--\x3e<td ng-click="viewImpactedSystems(topic.slug ? topic.slug : topic.id, rule.rule_id)" class="text-center">{{ rule.hitCount }}</td><td ng-if="config.isPlannerEnabled" class="text-center"><ansible-icon value="rule.ansible" hide-label="true"></ansible-icon></td></tr></tbody></table></div><div ng-show="plugins.length === 0" class="row row-short"><div class="col-xs-12 text-center"><strong translate="translate">There are no actions for the selected filters.&nbsp;</strong></div></div><div ng-show="!showRulesWithNoHits &amp;&amp; hiddenCount" class="row row-short"><div class="col-sm-12 text-center">\x3c!--button.btn.btn-sm.btn-default--\x3e<md-button ng-click="showAll()" translate="translate">Show rules without actions ({{hiddenCount}} more)</md-button></div></div><div ng-show="!showCards" class="row row-short"><div class="col-xs-12"><div class="actions-back"></div></div></div></div>'),e.put("js/components/webhooks/webhookStatusIcon/webhookStatusIcon.html",'<i ng-class="status" tooltip="{{:: tooltip}}" ng-click="webhook.status &amp;&amp; details(webhook)" ng-style="{cursor: (webhook.status) ? &quot;pointer&quot; : &quot;default&quot;}" class="fa fa-circle webhook-status"></i>'),e.put("js/components/webhooks/webhookStatusModal/webhookStatusModal.html",'<div><div class="row form-horizontal webhook-status-modal"><div class="form-group"><label translate="translate" class="col-sm-4 control-label">Result</label><div class="col-sm-8"><p translate="translate" ng-if="webhook.status.success" class="form-control-static success">Success</p><p ng-if="!webhook.status.success" class="form-control-static red"><span translate="translate">Error:&nbsp;</span>{{:: webhook.status.error}}</p></div></div><div class="form-group"><label translate="translate" class="col-sm-4 control-label">Timestamp</label><div class="col-sm-8"><p class="form-control-static">{{:: webhook.status.timestamp | moment:\'lll\'}}</p></div></div><div class="form-group"><label translate="translate" class="col-sm-4 control-label">Event Type</label><div class="col-sm-8"><p class="form-control-static"><code>{{:: webhook.status.event_type}}</code></p></div></div><div class="form-group"><label translate="translate" class="col-sm-4 control-label">Event Id</label><div class="col-sm-8"><p class="form-control-static"><code>{{:: webhook.status.event_id}}</code></p></div></div></div></div>'),e.put("js/states/config/views/config.html",'<page-header title="Configuration" icon="fa-file-text"></page-header><div class="content-wrap"><md-content><md-tabs md-swipe-content="true" class="md-dynamic-height md-border-bottom"><md-tab label="{{\'Messaging\'|translate}}" md-active="current.messaging" md-on-select="tabSelected(&quot;messaging&quot;)"><md-content class="md-padding"><config-messaging></config-messaging></md-content></md-tab><md-tab label="{{\'Settings\'|translate}}" md-active="current.settings" md-on-select="tabSelected(&quot;settings&quot;)"><md-content class="md-padding"><config-settings></config-settings></md-content></md-tab>\x3c!--Red Hat Only--\x3e<md-tab label="{{\'Webhooks\'|translate}}" md-active="current.webhooks" md-on-select="tabSelected(&quot;webhooks&quot;)"><md-content class="md-padding"><config-webhooks></config-webhooks></md-content></md-tab><md-tab label="Permissions" ng-if="user.is_internal &amp;&amp; perms.has(user, perms.PERMS.SU)" md-active="current.permissions" md-on-select="tabSelected(&quot;permissions&quot;)"><md-content class="md-padding"><config-permissions></config-permissions></md-content></md-tab><md-tab label="{{\'Dev\'|translate}}" ng-if="user.is_internal || user.demo_mode" md-active="current.dev" md-on-select="tabSelected(&quot;dev&quot;)"><md-content class="md-padding"><config-dev></config-dev></md-content></md-tab></md-tabs></md-content></div>'),e.put("js/states/config/views/webhook-edit.html",'<page-header title="Edit webhook" icon="fa-wrench"></page-header><div class="content-wrap webhook-edit"><div class="rha-notifications"></div><div ng-if="loader.loading" class="spinner"></div><form novalidate="novalidate" name="webhookForm" ng-if="!loader.loading" class="form-horizontal"><fieldset><div class="form-group row"><label translate="translate" class="control-label col-sm-2">Active</label><div class="col-sm-10"><div class="checkbox"><label for="checkbox_active"><input id="checkbox_active" type="checkbox" name="active" ng-model="webhook.active"/></label></div></div></div><div ng-class="{\'has-error\': errors.url || (webhookForm.url.$invalid &amp;&amp; webhookForm.url.$dirty)}" class="form-group row row-short"><label for="url" translate="translate" class="control-label col-sm-2">Target URL</label><div class="col-sm-10"><input id="url" type="text" name="url" ng-model="webhook.url" ng-pattern="&quot;https://.+&quot;" required="required" class="form-control"/><div ng-if="(errors.url || (webhookForm.url.$invalid &amp;&amp; webhookForm.url.$dirty))" class="error red"><strong translate="translate">Must be a valid https URL</strong></div></div></div><div ng-class="{\'has-error\': errors.certificate}" class="form-group row"><label for="certificate" translate="translate" class="control-label col-sm-2">Custom certificate</label><div class="col-sm-10"><span ng-if="!webhook.certificateInfo"><p><span translate="translate">Due to sensitive nature of data that Red Hat Insights operates on HTTPS is required. For cases when your server does not use a certificate signed by a&nbsp;</span><a href="https://www.mozilla.org/en-US/about/governance/policies/security-group/certs/" translate="translate">trusted authority&nbsp;</a><span translate="translate">a custom certificate can be configured.</span></p><button translate="translate" ng-click="selected.certificateExpanded = true" ng-show="!selected.certificateExpanded" class="btn btn-sm btn-primary">Add certificate</button></span><span ng-if="webhook.certificateInfo &amp;&amp; !selected.certificateExpanded"><div class="content-block content-block-card"><div class="content"><div class="form-group certificate"><label translate="translate" class="col-sm-4 control-label">Common Name (CN):</label><div class="col-sm-8"><p class="form-control-static">{{webhook.certificateInfo.subject.cn}}</p></div></div><div class="form-group certificate"><label translate="translate" class="col-sm-4 control-label">Organization (O)</label><div class="col-sm-8"><p class="form-control-static">{{webhook.certificateInfo.subject.o}}</p></div></div><div class="form-group certificate"><label translate="translate" class="col-sm-4 control-label">Issuer Common Name (CN):</label><div class="col-sm-8"><p class="form-control-static">{{webhook.certificateInfo.issuer.cn}}</p></div></div><div class="form-group certificate"><label translate="translate" class="col-sm-4 control-label">Issuing Organization (O)</label><div class="col-sm-8"><p class="form-control-static">{{webhook.certificateInfo.issuer.o}}</p></div></div><div class="form-group certificate"><label translate="translate" class="col-sm-4 control-label">Valid until</label><div class="col-sm-8"><p ng-class="certDateClass(webhook.certificateInfo.validUntil)" class="form-control-static">{{webhook.certificateInfo.validUntil | moment:\'LLL\'}}</p></div></div></div><div class="footer"><div class="pull-right"><button translate="translate" ng-click="webhook.certificate = null; webhook.certificateInfo = null" ng-show="!selected.certificateExpanded" class="action btn btn-sm btn-open">Remove certificate</button><button translate="translate" ng-click="selected.certificateExpanded = true" ng-show="!selected.certificateExpanded" class="btn btn-sm btn-accent">Edit certificate</button></div></div></div></span><div ng-if="selected.certificateExpanded" class="certificate"><textarea id="certificate" placeholder="Paste certificate in PEM format here" ng-model="webhook.certificate" rows="15" class="form-control"></textarea><div ng-if="errors.certificate" class="error red"><strong translate="translate">Invalid certificate</strong></div></div></div></div><div class="form-group row"><label for="active" translate="translate" class="control-label col-sm-2">Webhook triggers</label><div class="col-sm-10"><div class="radio"><label for="radio_all"><input id="radio_all" type="radio" ng-model="webhook.firehose" ng-value="true"/><span translate="translate">Every event (no filtering)</span></label></div><div class="radio"><label for="radio_selected" class="checkbox_active"><input id="radio_selected" type="radio" ng-model="webhook.firehose" ng-value="false"/><span translate="translate">Only selected event types</span></label></div></div></div><div ng-if="!webhook.firehose" class="form-group row row-short"><div class="col-sm-offset-2 col-sm-10"><div class="row"><div class="col-sm-5"><div ng-repeat="event in eventTypes | limitTo:2 track by event.name" class="checkbox"><label><input type="checkbox" name="active" ng-model="selected.events[event.name]"/>{{event.description}}</label></div></div><div class="col-sm-7"><span ng-repeat="severity in severities track by severity.value" class="checkbox severity"><label><input type="checkbox" name="active" ng-model="selected.severityFilters[severity.value]" ng-disabled="!selected.events[&quot;report:new&quot;] &amp;&amp; !selected.events[&quot;report:resolved&quot;]"/><severity-icon severity="severity.value" type="severity" label="" class="inline-right"></severity-icon>{{severity.label}}</label></span></div></div><div class="row"><div ng-repeat="event in eventTypes | limitTo:eventTypes.length:2 track by event.name" class="checkbox col-sm-12"><label><input type="checkbox" name="active" ng-model="selected.events[event.name]"/>{{event.description}}</label></div></div></div></div></fieldset><div class="btn-group pull-right"><button ui-sref="app.config({tab: &quot;webhooks&quot;})" translate="translate" class="btn btn-sm btn-default">Cancel</button><button ng-click="save()" ng-disabled="webhookForm.$invalid" translate="translate" class="btn btn-sm btn-primary">Save</button></div></form></div>'),e.put("js/states/hidden/components/components.html",'<div class="components"><div class="page-header"><h1 class="page-title">Material Demo</h1></div><div id="popupcontainer" ng-cloak="ng-cloak" class="content-wrap"><md-content><md-tabs md-dynamic-height="" md-border-bottom="" md-swipe-content="true"><md-tab label="Jade/HTML Only"><md-content class="md-padding"><h1 class="md-display-2">Jade/HTML Only</h1><hr/>\x3c!-- --- BUTTONS CARD --\x3e<md-card class="md-padding"><md-header><h3>Buttons</h3></md-header><div class="flex"><div sm-flex-50="sm-flex-50"><h4>Split Buttons</h4><button-split class="md-raised md-primary"><button-split-main>Primary</button-split-main><button-split-item><md-button translate="translate">item 1</md-button></button-split-item><button-split-item><md-button translate="translate">item 2</md-button></button-split-item></button-split><br/><br/><pre class="code-block code-terminal"><div class="code-type-jade"></div><code class="code">button-split.md-raised.md-primary\n button-split-main Primary\n button-split-item\n md-button(translate) item 1\n button-split-item\n md-button(translate) item 2</code></pre></div></div><div class="row"><div class="col-md-12"><h4>Flat Buttons</h4><div class="col-md-3"><md-button>Basic</md-button><pre class="code-block code-terminal"><div class="code-type-jade"></div><code class="code">md-button</code></pre></div><div class="col-md-3"><md-button md-no-ink="md-no-ink" class="md-primary">Primary (No Ink)</md-button><pre class="code-block code-terminal"><div class="code-type-jade"></div><code class="code">md-button.md-primary(md-no-ink)</code></pre></div><div class="col-md-3"><md-button ng-disabled="true" class="md-primary">Disabled</md-button><pre class="code-block code-terminal"><div class="code-type-jade"></div><code class="code">md-button.md-primary(ng-disabled="true")</code></pre></div><div class="col-md-3"><md-button class="md-warn">Warning</md-button><pre class="code-block code-terminal"><div class="code-type-jade"></div><code class="code">md-button.md-warn</code></pre></div></div></div><div class="row"><div class="col-md-12"><h4>Raised Buttons</h4><div class="col-md-3"><md-button class="md-raised">Basic</md-button><pre class="code-block code-terminal"><div class="code-type-jade"></div><code class="code">md-button.md-raised</code></pre></div><div class="col-md-3"><md-button md-no-ink="md-no-ink" class="md-raised md-primary">Primary (No Ink)</md-button><pre class="code-block code-terminal"><div class="code-type-jade"></div><code class="code">md-button.md-raised.md-primary(md-no-ink)</code></pre></div><div class="col-md-3"><md-button ng-disabled="true" class="md-raised md-primary">Disabled</md-button><pre class="code-block code-terminal"><div class="code-type-jade"></div><code class="code">md-button.md-raised.md-primary(ng-disabled="true")</code></pre></div><div class="col-md-3"><md-button class="md-raised md-warn">Warning</md-button><pre class="code-block code-terminal"><div class="code-type-jade"></div><code class="code">md-button.md-raised.md-warn</code></pre></div></div></div></md-card>\x3c!-- --- FORMS--\x3e<md-card class="md-padding"><md-header><h3>Form Example</h3></md-header><div class="row"><div class="col-md-12"><h4>Checkbox</h4></div></div><div class="row"><div class="col-md-4"><md-checkbox aria-label="Checkbox 1" class="md-accent md-hue-1">Checkbox 1: Default</md-checkbox></div><div class="col-md-8"><pre class="code-block code-terminal"><div class="code-type-jade"></div><code class="code">md-checkbox(aria-label=\'Checkbox 1\')</code></pre></div></div><div class="row"><div class="col-md-4"><md-checkbox ng-model="data.cb2" aria-label="Checkbox 2" ng-true-value="\'yup\'" ng-false-value="\'nope\'" flex="" class="md-warn md-align-top-left">Checkbox 2 (md-warn) <br/><span> </span></md-checkbox></div><div class="col-md-8"><pre class="code-block code-terminal"><div class="code-type-jade"></div><code class="code">md-checkbox.md-warn(aria-label=\'Checkbox 2\', ng-true-value="\'yup\'", ng-false-value="\'nope\'")</code></pre></div></div><div class="row"><div class="col-md-4"><md-checkbox ng-disabled="true" aria-label="Disabled checkbox" ng-model="data.cb3">Checkbox: Disabled</md-checkbox></div><div class="col-md-8"><pre class="code-block code-terminal"><div class="code-type-jade"></div><code class="code">md-checkbox(ng-disabled=\'true\', aria-label=\'Disabled checkbox\')</code></pre></div></div><div class="row"><div class="col-md-4"><md-checkbox md-no-ink="" aria-label="Checkbox No Ink" class="md-primary">Checkbox (md-primary): No Ink</md-checkbox></div><div class="col-md-8"><pre class="code-block code-terminal"><div class="code-type-jade"></div><code class="code">md-checkbox.md-primary(md-no-ink=\'\', aria-label=\'Checkbox No Ink\')</code></pre></div></div><div class="row"><div class="col-md-4"><md-checkbox md-indeterminate="" aria-label="Checkbox Indeterminate" class="md-primary">Checkbox: Indeterminate</md-checkbox></div><div class="col-md-8"><pre class="code-block code-terminal"><div class="code-type-jade"></div><code class="code">md-checkbox.md-primary(md-indeterminate=\'\', aria-label=\'Checkbox Indeterminate\')</code></pre></div></div><div class="row"><div class="col-md-4"><md-checkbox md-indeterminate="" aria-label="Checkbox Disabled Indeterminate" ng-disabled="true" class="md-primary">Checkbox: Disabled, Indeterminate</md-checkbox></div><div class="col-md-8"><pre class="code-block code-terminal"><div class="code-type-jade"></div><code class="code">md-checkbox.md-primary(md-indeterminate=\'\', aria-label=\'Checkbox Disabled Indeterminate\', ng-disabled=\'true\')</code></pre></div></div><div class="row"><div class="col-md-12"><h4>Inputs</h4></div></div><div class="row"><div class="col-md-4"><md-input-container class="md-block"><label>First Name</label><input/></md-input-container></div><div class="col-md-8"><pre class="code-block code-terminal"><div class="code-type-jade"></div><code class="code">md-input-container.md-block\n label [insert label]\n input</code></pre></div></div><div class="row"><div class="col-md-12"><h4>Radio Buttons</h4></div></div><div class="row"><div class="col-md-4"><md-radio-group><md-radio-button value="Foo" class="md-primary">Foo</md-radio-button><md-radio-button value="Bar" class="md-accent">Bar</md-radio-button><md-radio-button value="Insights" class="md-warn">Insights</md-radio-button></md-radio-group></div><div class="col-md-8"><pre class="code-block code-terminal"><div class="code-type-jade"></div><code class="code">md-radio-button.md-primary(value="Foo") Foo\nmd-radio-button.md-accent(value="Bar") Bar\nmd-radio-button.md-warn(value="Insights") Insights</code></pre></div></div></md-card>\x3c!-- --- LOADING ICON CARD --\x3e<md-card class="md-padding"><md-header><h3>Loading Icons</h3></md-header><div class="row"><div class="col-md-12"><p>All loading icons can be configured to load based on percentage (determinate)</p></div></div><div class="row"><div class="col-md-12"><h4>Progress Linear</h4><md-progress-linear md-mode="indeterminate"></md-progress-linear><pre class="code-block code-terminal"><div class="code-type-jade"></div><code class="code">md-progress-linear(md-mode="indeterminate")</code></pre></div></div><div class="row"><div class="col-md-12"><h4>Progress Circular</h4><md-progress-circular md-mode="indeterminate"></md-progress-circular><pre class="code-block code-terminal"><div class="code-type-jade"></div><code class="code">md-progress-circular(md-mode="indeterminate")</code></pre></div></div></md-card><md-card class="md-padding"><md-header><h3>Add swiping functionality to any tab group</h3></md-header><div class="row"><div class="col-md-12"> <pre class="code-block code-terminal"><div class="code-type-jade"></div><code class="code">md-tabs(md-swipe-content="true")</code></pre></div></div></md-card></md-content></md-tab>\x3c!-- --- Second Tab--\x3e<md-tab label="Needs Javascript"><md-content class="md-padding"><h1 class="md-display-2">Needs Javascript</h1>\x3c!-- --- DIALOG CARD --\x3e<md-card class="md-padding"><md-header><h3>Dialog Box</h3></md-header><div class="row"><div class="col-md-12"><md-button ng-click="showConfirm($event)" class="md-primary md-raised">Confirm Dialog</md-button><pre class="code-block code-terminal"><div class="code-type-jade"></div><code class="code">md-button.md-primary.md-raised(ng-click="showConfirm($event)") Comfirm Dialog</code></pre><pre class="code-block code-terminal"><div class="code-type-js"></div><code class="code">function [file-controller]Ctrl(\n $scope, \n $mdDialog) {\n $scope.status = \' \';\n $scope.customFullscreen = false;\n $scope.showConfirm = function (ev) {\n $mdDialog.show(\n .parent(angular.element(document.querySelector(\'#popupContainer\')))\n .clickOutsideToClose(true)\n .title(\'This is a title\')\n .textContent(\'This is the content\')\n .ariaLabel(\'Confirm Dialog Demo\')\n .ok(\'Confirm\')\n .cancel(\'Cancel\');\n .targetEvent(ev)\n );\n };\n}</code></pre></div></div></md-card>\x3c!-- --- Toast CARD --\x3e<md-card class="md-padding"><md-header><h3>Toasts</h3></md-header><div class="row"><div class="col-md-12"><md-button ng-click="showToast(\'top\', \'left\', \'fail\')" class="md-primary md-raised">Top Left Fail Toast</md-button><md-button ng-click="showToast(\'bottom\', \'right\', \'success\')" class="md-primary md-raised">Bottom Right Success Toast</md-button><pre class="code-block code-terminal"><div class="code-type-jade"></div><code class="code">md-button.md-primary.md-raised(ng-click="showToast(\'top\', \'left\', \'fail\')") Top Left Fail Toast\n \nmd-button.md-primary.md-raised(ng-click="showToast(\'bottom\', \'right\', \'success\')") Bottom Right Success Toast</code></pre><pre class="code-block code-terminal"><div class="code-type-js"></div><code class="code">function [file-controller]Ctrl(\n $scope, \n $mdToast) {\n $scope.showToast = function (h,v,state) {\n $mdToast.show(\n $mdToast.simple()\n .content(\'Toast Content!\')\n .hideDelay(\'3000\')\n .position(h + \' \' + v)\n .toastClass(\'stickyToast\' + \' \' + state)\n );\n }</code></pre></div></div></md-card>\x3c!-- Swipe Card--\x3e<md-card class="md-padding"><md-header><h3>Swiping</h3></md-header><div class="row"><div class="col-md-12"><md-card md-swipe-up="onSwipeUp()" class="demo-swipe text-center"><h4 class="no-select">Swipe Me Up</h4></md-card></div></div><div class="row"><div class="col-md-6"> <pre class="code-block code-terminal"><div class="code-type-jade"></div><code class="code">[.element](md-swipe-up="onSwipeUp()")\n h4 Swipe Me Up</code></pre></div><div class="col-md-6"> <pre class="code-block code-terminal"><div class="code-type-js"></div><code class="code">$scope.onSwipeUp = function () {\n window.alert(\'You swiped up!!\');\n};</code></pre></div></div></md-card></md-content></md-tab><md-tab label="three"><md-content class="md-padding"><h1 class="md-display-2">Tab Three</h1><p>Integer turpis erat, porttitor vitae mi faucibus, laoreet interdum tellus. Curabitur posuere molestie dictum. Morbi eget congue risus, quis rhoncus quam. Suspendisse vitae hendrerit erat, at posuere mi. Cras eu fermentum nunc. Sed id ante eu orci commodo volutpat non ac est. Praesent ligula diam, congue eu enim scelerisque, finibus commodo lectus.</p></md-content></md-tab></md-tabs></md-content></div></div>'),e.put("js/states/pages/views/402.html",'<div class="page"><section><h1> <i class="fa fa-lock"> </i> 402 <small> No Red Hat Account Found</small></h1></section></div>'),e.put("js/states/pages/views/403.html",'<div class="page"><section><h1> <i class="fa fa-lock"> </i> 403 <small> Forbidden</small></h1></section></div>'),e.put("js/states/policies/views/list-policies.html",'<div class="policies-page"><page-header title="Policies" icon="fa-gavel"></page-header><div class="content-wrap"><section class="table-utilities"><div class="row"><div class="col-xs-7 col-sm-5"><search-box placeholder="{{\'Search policies\' | translate}}" on-search="search(model)" throttle="1000" ng-model="searchText"></search-box></div></div></section><div class="row row-short"><div class="col-md-12"><table class="table ng-table"><thead><tr><th ng-class="sorter.getSortClass(\'policy_name\')" ng-click="sorter.sort(\'policy_name\')" translate="translate" class="sortable">Policy</th><th ng-class="sorter.getSortClass(\'systems_pass\')" ng-click="sorter.sort(\'systems_pass\')" translate="translate" class="nowrap sortable">Systems Passing</th><th ng-class="sorter.getSortClass(\'systems_fail\')" ng-click="sorter.sort(\'systems_fail\')" translate="translate" class="nowrap sortable">Systems Failing</th><th ng-class="sorter.getSortClass(\'systems_error\')" ng-click="sorter.sort(\'systems_error\')" translate="translate" class="nowrap sortable">Systems Erroring</th></tr></thead><tbody ng-show="!loading"><tr ng-repeat="policy in policies | orderBy: sorter.predicate : sorter.reverse track by policy.policy_id"><td class="nowrap"><a ui-sref="app.view-policy({id: policy.policy_id})">{{policy.policy_name}}</a><i ng-if="policy.systems_fail || policy.systems_error" tooltip="{{failedChecksTooltip}}" aria-label="Policy error icon" class="fa fa-exclamation-circle red pull-right"></i></td><td ng-class="policy.passed" class="nowrap text-center">{{policy.systems_pass}}</td><td ng-class="policy.failed" class="nowrap text-center">{{policy.systems_fail}}</td><td ng-class="policy.errored" class="nowrap text-center">{{policy.systems_error}}</td></tr></tbody></table></div></div><div ng-if="!loading &amp;&amp; allPolicies.total &gt; pager.perPage" class="row row-short"><div class="col-sm-12"><pagination total-items="allPolicies.total" ng-model="pager.currentPage" items-per-page="pager.perPage" ng-change="paginate()" class="pull-right pagination-blue"></pagination></div></div></div><div class="animate-wrapper margin-top"><div ng-show="loading" class="row row-short ng-animate-enabled"><div class="col-xs-12"><div class="load text-center"><div class="spinner spinner-lg"></div><span translate="translate">Loading policy information…</span></div></div></div></div></div>'),e.put("js/states/policies/views/view-policy.html",'<div class="policiesID-page"><div class="breadcrumbs"><ol><li><a ui-sref="app.list-policies"><span translate="translate">Policies</span></a></li><li><span>{{policyId}}</span></li></ol></div><page-header title="Policies" icon="fa-gavel"></page-header><div class="content-wrap"><section class="section-topic-details"><span translate="translate" class="description">POLICY ID</span><h2>{{policyName}}</h2></section><section class="table-utilities"><div class="row"><div class="col-xs-7 col-sm-5"><search-box placeholder="{{\'Search systems\' | translate}}" on-search="search(model)" throttle="1000" ng-model="searchText"></search-box></div></div></section><div class="row row-short"><div class="col-md-12"><table class="table ng-table"><thead><tr><th ng-class="sorter.getSortClass(\'system.toString\')" ng-click="sorter.sort(\'system.toString\')" translate="translate" class="sortable nowrap">System Name</th><th translate="translate" class="nowrap">Summary</th></tr></thead><tbody ng-show="!loading &amp;&amp; policy !== null"><tr ng-repeat="resource in policy.resources | orderBy: sorter.predicate : sorter.reverse"><td class="nowrap"><a ng-click="showSystem(resource.system_id)">{{resource.system.toString}}</a></td><td ng-class="resource.status" translate="translate" translate-n="{{resource.checks_pass}}" translate-plural="{{$count}} Checks" ng-if="resource.checks_pass !== 0" class="nowrap">{{resource.checks_pass}} Check<span>&nbsp;{{resource.status}}</span></td><td ng-class="resource.status" translate="translate" ng-if="resource.checks_pass === 0" class="nowrap">Checks<span>&nbsp;{{resource.status}}</span></td></tr></tbody></table></div></div><div ng-show="policy === null &amp;&amp; !loading" class="row row-short"><div class="col-xs-12 text-center"><strong translate="translate">There are no policies for the selected options.&nbsp;</strong></div></div><div ng-if="!loading &amp;&amp; policy.total &gt; pager.perPage" class="row row-short"><div class="col-sm-12"><pagination total-items="policy.total" ng-model="pager.currentPage" items-per-page="pager.perPage" ng-change="paginate()" class="pull-right pagination-blue"></pagination></div></div></div><div class="animate-wrapper margin-top"><div ng-show="loading" class="row row-short ng-animate-enabled"><div class="col-xs-12"><div class="load text-center"><div class="spinner spinner-lg"></div><span translate="translate">Loading policy information…</span></div></div></div></div></div>'),
18e.put("js/states/topics/views/edit-topics.html",'<div class="page topic-form"><div class="row margin-top"></div><div class="rha-notifications"></div><form novalidate="novalidate" name="topicForm" class="form-horizontal"><section><h2>Topic details</h2><div ng-class="{\'has-error\': topicForm.title.$invalid &amp;&amp; topicForm.title.$dirty}" class="form-group"><label for="title" class="control-label col-sm-2">Title</label><div class="col-sm-10"><input id="title" type="text" name="title" ng-model="topic.title" required="required" class="form-control"/></div></div><div ng-class="{\'has-error\': topicForm.slug.$invalid &amp;&amp; topicForm.slug.$dirty}" class="form-group"><label for="title" class="control-label col-sm-2">Slug</label><div class="col-sm-10"><div class="input-group"><div class="input-group-addon"><strong>/actions/</strong></div><input id="slug" type="text" name="slug" ng-model="topic.slug" class="form-control"/></div></div></div><div class="form-group"><label for="priority" class="control-label col-sm-2">Priority</label><div class="col-sm-1"><p id="priority" class="form-control-static">{{topic.priority + 1}}</p></div><div class="col-sm-9"><p class="form-control-static">Priority is determined from the order of topics in the &nbsp;<a ui-sref="app.admin-topic">topic admin table</a></p></div></div><div class="form-group"><label class="control-label col-sm-2">Topic listing behavior<i tooltip="Controls when this topic shows up for a customer in the topic list (actions page)." class="fa fa-question-circle inline-left"></i></label><div class="col-sm-10"><label class="radio-inline"><input type="radio" ng-model="topic.listed" ng-value="\'always\'"/>Always<i tooltip="This topic will be shown always, no matter if customer\'s systems are affected or not. The topic content should use interpolation and conditionals to react to different scenarios (e.g. there are no hits, user has 0 systems registered, product with 0 hits selected, user ignored certain rules, ...)" class="fa fa-question-circle inline-left"></i></label><label class="radio-inline"><input type="radio" ng-model="topic.listed" ng-value="&quot;has_hits&quot;"/>Systems affected<i tooltip="This topic will only be shown to a customer if at least one of their systems is affected. More precisely, the topic is shown if any of the active non-ignored rules associated with this topic (see below) has hits (unresolved actions) on customer\'s systems. If the customer used the product filter to select a particular product, the topic is only shown if there are hits for the selected product." class="fa fa-question-circle inline-left"></i></label><label class="radio-inline"><input type="radio" ng-model="topic.listed" ng-value="&quot;never&quot;"/>Never<i tooltip="This topic is never shown in the topic list. It can still be accessed by a direct link. It can also be used for backing a widget. Implicit topics (based on severity or category) will typically use this option." class="fa fa-question-circle inline-left"></i></label></div></div><div ng-class="{\'has-error\': error.content}" class="form-group"><label for="content" class="control-label col-sm-2">Content</label><div class="col-sm-10"><div class="pull-right"><yes-no yes="true" text="markdown"></yes-no><yes-no yes="true" text="doT"></yes-no></div><topic-admin-help-bar text-area="content"></topic-admin-help-bar><textarea id="content" placeholder="Topic content" ng-model="topic.content" rows="20" class="form-control content"></textarea><div ng-show="error.content" class="error red"><strong>{{error.content}}</strong></div><button ng-click="preview(topic, false, true)" ng-disabled="topicForm.$invalid" class="btn btn-sm btn-secondary pull-right"><span class="icon-inline"><i class="fa fa-picture-o"></i></span>Preview</button></div></div><div ng-class="{\'has-error\': error.summary}" class="form-group"><label for="summary" class="control-label col-sm-2">Summary</label><div class="col-sm-10"><div class="pull-right"><yes-no yes="true" text="markdown"></yes-no><yes-no yes="true" text="doT"></yes-no></div><topic-admin-help-bar text-area="summary"></topic-admin-help-bar><textarea id="summary" placeholder="Topic summary" ng-model="topic.summary" rows="10" class="form-control summary"></textarea><div ng-show="error.summary" class="error red"><strong>{{error.summary}}</strong></div><button ng-click="preview(topic, true, false)" ng-disabled="topicForm.$invalid" class="btn btn-sm btn-secondary pull-right"><span class="icon-inline"><i class="fa fa-picture-o"></i></span>Preview</button></div></div><hr/></section><section><h2>Rule selection</h2><p>There are multiple ways of associating rules with this topic. Choose the one that best suits the type of this topic.</p><div ng-class="{selected: ruleBinding === \'tagged\'}" class="form-group"><div class="col-sm-2"><input type="radio" name="ruleBinding" ng-model="ruleBinding" value="tagged" class="col-sm-2"/><label ng-click="ruleBinding = \'tagged\'">Tagged</label></div><div class="col-sm-10"><ui-select ng-model="topic.tag" append-to-body="false" ng-disabled="ruleBinding !== \'tagged\'" on-select="updateTaggedRules()"><ui-select-match placeholder="Select a tag" class="form-control ui-select-match">{{$select.selected}}</ui-select-match><ui-select-choices repeat="tag in (availableTags | filter: $select.search)" class="ui-select-choices">{{tag}}</ui-select-choices></ui-select><p class="form-control-static"><span translate="translate" translate-n="taggedRules.length" translate-plural="There are {{$count}} rules currently tagged with this tag.">There is 1 rule currently tagged with this tag.</span><span>&nbsp;This number may change in the future if additional rules are tagged with &nbsp;<strong ng-show="topic.tag">{{topic.tag}}.</strong><strong ng-hide="topic.tag">the tag.</strong></span><span>(or if the tag is removed from any of these rules)</span></p><rule-list-simple rules="taggedRules" on-select="selectedRule = rule.rule_id" order="[\'-severityNum\', \'-count\']"></rule-list-simple><p class="form-control-static">If you select an existing tag then all the rules tagged with this tag become part of this topic.\nThis binding is dynamic so if more rules are tagged by this tag in the future, these rules will become part of this topic.\nYou can also create a&nbsp;<a ui-sref="app.admin-rule-tags">new tag</a></p></div></div><div ng-class="{selected: ruleBinding === \'explicit\'}" class="form-group"><div class="col-sm-2"><input type="radio" name="ruleBinding" ng-model="ruleBinding" value="explicit" class="col-sm-2"/><label ng-click="ruleBinding = \'explicit\'">Explicit</label></div><div class="col-sm-10"><ui-select ng-model="select.rule" append-to-body="false" ng-disabled="ruleBinding !== \'explicit\'" on-select="addRule($item)"><ui-select-match placeholder="Add a rule" class="form-control ui-select-match">{{$select.selected.description}}</ui-select-match><ui-select-choices repeat="rule in (getAvailableRules() | filter: {description: $select.search}) | orderBy:[\'-severityNum\', \'-date\'] track by rule.rule_id" class="ui-select-choices"><div class="title">{{rule.description}}</div><all-severity-icons rule="rule"></all-severity-icons></ui-select-choices></ui-select><p class="form-control-static">You can explicitly pick one or multiple rules.</p><p ng-hide="topic.rules.length">No rules selected</p><rule-list-simple rules="topic.rules" on-select="selectedRule = rule.rule_id" on-delete="removeRule(rule)"></rule-list-simple></div></div><div ng-class="{selected: ruleBinding === \'implicit\'}" class="form-group"><div class="col-sm-2"><input type="radio" name="ruleBinding" ng-model="ruleBinding" value="implicit" class="col-sm-2"/><label ng-click="ruleBinding = \'implicit\'" class="text-muted">Implicit</label></div><div class="col-sm-10"><div class="row"><div class="col-sm-5"><simple-select model="topic.category" options="categories" disabled="ruleBinding !== \'implicit\'"></simple-select></div><div class="col-sm-2 text-center"><strong>AND</strong></div><div class="col-sm-5"><simple-select model="topic.severity" options="severities" disabled="ruleBinding !== \'implicit\'"></simple-select></div></div><div class="row"><div class="col-sm-12"><p ng-hide="implicitRules.length" class="form-control-static">No rules with this category</p><p class="form-control-static"><rule-list-simple rules="implicitRules" on-select="selectedRule = rule.rule_id" order="[\'-severityNum\', \'-count\']"></rule-list-simple></p><p class="form-control-static text-muted">Binds all rules that are of certain severity, belong to a certain category or combination of there of.\nThis binding is dynamic so if more rules are added for this category/severity in the future, these rules will become part of this topic.</p></div></div></div></div><hr/></section><div class="btn-group pull-right"><button ng-click="goBack()" class="btn btn-sm btn-default">Cancel</button><button ng-click="update(topic)" ng-disabled="topicForm.$invalid" class="btn btn-sm btn-primary">Save</button></div></form></div>'),e.put("js/states/topics/views/topic-admin.html",'<div class="page"><div class="row margin-top"></div><div class="rha-notifications"></div><section><h2 class="push-top-narrow">Topic administration</h2><table class="table table-striped table-bordered ng-table"><thead><tr><th>Title&nbsp;<i tooltip="User-facing name of this topic" class="fa fa-question-circle"></i></th><th>URL</th><th>Rules</th><th>Visibility<i tooltip="Controls when this topic shows up for a customer in the topic list (actions page)." class="fa fa-question-circle inline-left"></i></th><th>Actions</th></tr></thead><tbody><tr ng-repeat="topic in topics track by topic.id" ng-show="!loader.loading" class="ng-cloak"><td><a ui-sref="app.topic({id: topic.slug ? topic.slug : topic.id})">{{topic.title}}</a></td><td><a ui-sref="app.topic({id: topic.slug ? topic.slug : topic.id})">/actions/{{topic.slug ? topic.slug : topic.id}}</a></td><td>{{topic.rules.length}} ({{topic.ruleBinding}})<span ng-show="topic.ruleBinding === \'tagged\'">&nbsp;-&nbsp;<em>{{topic.tag}}</em></span><span ng-show="topic.ruleBinding === \'implicit\'">&nbsp;-&nbsp;<em ng-if="topic.category">{{topic.category}}</em><em ng-if="topic.category &amp;&amp; topic.severity">,&nbsp;</em><em ng-if="topic.severity">{{topic.severity}}</em></span></td><td><span ng-if="topic.listed === &quot;always&quot;">Always</span><span ng-if="topic.listed === &quot;has_hits&quot;">If systems affected</span><span ng-if="topic.listed === &quot;never&quot;">Never</span><span ng-show="topic.hidden" class="icon-inline"><i tooltip="This topic is not published. Only internal users can see it. Use the actions column to publish this topic." class="red fa fa-eye-slash inline-left"></i></span></td><td><span ng-show="topic.hidden" ng-click="hide(topic, false)" class="icon-inline"><i tooltip="Publish this topic" class="fa fa-eye"></i></span><span ng-hide="topic.hidden" ng-click="hide(topic, true)" class="icon-inline"><i tooltip="Hide this topic" class="fa fa-eye-slash"></i></span><span class="icon-inline"><a ui-sref="app.edit-topic({id: topic.id})" tooltip="Edit this topic"><i class="fa fa-pencil-square-o pointer"></i></a></span><span class="icon-inline"><i ng-click="delete(topic)" tooltip="Remove this topic" class="fa fa-remove"></i></span><a ng-click="move(topic, true)" ng-disabled="topic.priority === 0" tooltip="Move this topic higher in the priority list. This affects the order in which topics are presented to customers." class="icon-inline"><i class="fa fa-arrow-up"></i></a><a ng-click="move(topic, false)" ng-disabled="topic.priority === topics.length - 1" tooltip="Move this topic lower in the priority list. This affects the order in which topics are presented to customers." class="icon-inline"><i class="fa fa-arrow-down"></i></a></td></tr><tr ng-show="loader.loading"><td colspan="5"><div class="spinner spinner-lg"></div></td></tr><tr ng-show="!loader.loading &amp;&amp; !topics.length"><td colspan="5" class="text-center">No topics</td></tr></tbody><tfoot><tr><td colspan="5"><button ng-click="newTopic()" class="btn btn-secondary btn-sm pull-right">New topic</button></td></tr></tfoot></table></section></div>'),e.put("js/states/topics/views/topic-list.html",'<div class="actions-page actions-back"><actions-breadcrumbs ng-hide="loading"></actions-breadcrumbs><section class="topic-detail-header"><page-header icon="fa-file-text"><div class="page-title"><h1>{{:: topic.title}}</h1></div></page-header><div ng-hide="loading" class="topic-detail-summary"><h4 ng-if="isIncident(ruleDetails.rule_id)"></h4><article ng-bind-html=":: ruleDetails.generic_html | trust_html"></article><div ng-if="topic.content_html" ng-bind-html=":: topic.content_html" class="topic-content"></div></div></section><table-filters><search-box placeholder="{{:: \'Search rules\' | translate}}" on-search="search.doFilter(model)"></search-box><incidents-tri-state ng-if="isBeta"></incidents-tri-state><total-risk-select></total-risk-select><risk-of-change-select></risk-of-change-select></table-filters><section class="content rule-groups"><div class="table-header"><list-type></list-type></div><topic-rule-list ng-if="!loading" topic="topic"></topic-rule-list></section>\x3c!-- Spinner--\x3e<div ng-if="loading" class="margin-top text-center"><div class="spinner spinner-lg"></div></div></div>'),e.put("js/components/overview/widgets/goals/goalsLite.html",'<div id="goals-lite"><div ng-if="loading" class="row"><div class="col-sm-12 block-lg"><div class="spinner spinner-lg"></div></div></div><div ng-if="!loading" class="goals-lite"><div class="info-box"><div ng-if="systemCount &gt; 0" class="row"><div class="col-sm-12 block-lg"><goals-gauge ng-init="buildGauge({getGaugeMax: getMaxFreeSystems, getGaugeNumber: getSystemCount})"></goals-gauge><div class="info"><h4 translate="translate">Systems Registered</h4><div ng-if="!systemLimitReached" class="free"><span translate="translate">{{:: maxFreeSystems - systemCount}} more Insights entitlements available&nbsp;</span><br/><span>Your evaluation will expire on {{:: expiration}}</span></div><div ng-if="systemLimitReached" class="free full"><span translate="translate">Congratulations! You have registered all available systems.</span></div></div></div><div ng-if="securityErrors" class="col-sm-6 block-md"><div class="count circle">{{securityErrors}}</div><h4 translate="translate">Protect yourself!</h4><p translate="translate">Fix all of your<br/>{{:: securityErrors}} security issues</p><a translate="translate" ui-sref="app.topic({id: \'security\'})" class="cta-link">View security issues</a></div><div ng-if="!securityErrors" class="col-sm-6 block-md"><div class="check circle"><i class="fa fa-check"></i></div><h4 translate="translate">You have no high severity security errors</h4></div><div ng-if="stabilityErrors" class="col-sm-6 block-md"><div class="count circle">{{:: stabilityErrors}}</div><h4 translate="translate">Increase your uptime!</h4><p translate="translate">Fix all of your<br/>{{:: stabilityErrors}} stability issues</p><a translate="translate" ui-sref="app.topic({id: \'stability\'})" class="cta-link">View stability issues</a></div><div ng-if="!stabilityErrors" class="col-sm-6 block-md"><div class="check circle"><i class="fa fa-check"></i></div><h4 translate="translate">You have no high severity stability errors</h4></div></div></div><div ng-if="systemCount === 0" class="row"><div class="col-sm-12 text-center"><h3>You have no systems registered. Take full advantage of Red Hat Insights by&nbsp;\x3c!-- need to make this link clickable--\x3e<a translate="translate" href="{{:: gettingStartedLink}}" target="_blank" class="link">registering systems.</a></h3></div></div></div></div>'),e.put("js/components/overview/widgets/handcraftedContent/handcraftedContent.html",'<div id="handcrafted-conent" class="handcrafted-conent"><h3><strong>{{:: overview.article.title}}</strong></h3><span ng-bind-html=":: overview.article.content_html | trust_html" class="handcrafted-content"></span></div>'),e.put("js/components/overview/widgets/maintenancePlanLite/maintenancePlanLite.html",'<card class="card-accent widget widget-maintenance-plan"><card-header class="gray"><div class="card-header-title icon-inline"><i class="fa fa-wrench"></i><span translate="translate">Plan Summary</span></div><div class="card-header-cta"><a ui-sref="app.maintenance" translate="translate">View planner</a></div></card-header><card-content class="maintenance-plan-lite"><a ng-if="getFirstSuggestion()" ng-click="openPlan(getFirstSuggestion())" class="link suggestions"><span class="icon icon-inline"><i aria-hidden="true" class="fa fa-check-square-o"></i></span><strong translate="translate" translate-n="plans.suggested[0].actions.length" translate-plural="You have a new plan suggestion ({{:: $count}} actions)" class="underline">You have a new plan suggestion (1 action)</strong></a><maintenance-plan-lite-table plans="plans.future" silence="silence" duration="duration" ng-if="plans.future.length"></maintenance-plan-lite-table><table ng-if="!plans.future.length &amp;&amp; plans.unscheduled.length" class="table table-separated"><thead class="lite"><tr><th translate="translate"><b>Newest Plans</b></th><th width="11%" translate="translate"><b>Actions</b></th></tr></thead><tbody><tr ng-repeat="plan in (plans.unscheduled | limitTo:3 | orderBy:\'-maintenance_id\') track by plan.maintenance_id"><td ng-click="openPlan(plan)" class="start"><a>{{:: MaintenanceService.getPlanName(plan)}}</a></td><td ng-click="openPlan(plan)" class="action-count"><span>{{:: plan.actionsDone}}/{{:: plan.actions.length}}</span></td></tr></tbody></table><div ng-if="stats.rules.ansible" class="text-center"><strong translate="translate" translate-n="stats.rules.ansible" translate-plural="{{:: $count}} issues can be resolved automatically">1 issue can be resolved automatically</strong><span translate="translate">&nbsp;using&nbsp;</span><ansible-icon value="true" show-tooltip="true" hide-label="true" class="inline-right"></ansible-icon><span translate="translate">Ansible</span><br/><md-button ng-click="MaintenanceService.showMaintenanceModal()" class="md-ink-ripple button-primary"><strong translate="translate">Create a new Plan/Playbook</strong></md-button></div></card-content></card>'),e.put("js/components/overview/widgets/highPrio/highPrio.html",'<div ng-if="items.staleSystems" class="grid-block"><section class="widget-block"><h2 class="title"><i class="fa fa-wrench"></i><span translate="translate">Alerts&nbsp;</span></h2><div class="high-prio list-alert"><div ng-if="loading" class="spinner spinner-lg"></div><table ng-if="items.staleSystems &amp;&amp; !loading" class="table table-separated error"><tbody><tr><td width="50%"><strong>{{:: items.staleSystems}}&nbsp;</strong>Systems not checking in</td><td class="text-right"><a ui-sref="app.inventory({offline:true})" class="link">View Offline Systems</a></td><td ng-if="false" class="dismiss"><i class="fa fa-moon-o"></i></td></tr></tbody></table></div></section></div>'),e.put("js/components/overview/widgets/newRules/newRules.html",'<card class="card-accent widget widget-new-systems"><card-header class="gray"><div class="card-header-title icon-inline"><i class="fa fa-institution"></i><span translate="translate">Rules Added in the past 15 days</span></div><div class="card-header-cta"><a ui-sref="app.rules" translate="translate" class="cta-link">View rules</a></div></card-header><card-content><div ng-if="loader.loading" class="spinner"></div><p translate="translate">{{:: rules.length}} new rules</p><div ng-repeat="rule in rules | orderBy: \'rule.created_at\' | limitTo: 3 track by rule.rule_id" class="rule-wrapper"><div class="rule-title"><a ui-sref="app.rules({&quot;anchor&quot; : rule.rule_id})">{{:: rule.description}}</a></div><div class="rule-date"><span translate="translate" class="light">Published {{:: rule.publish_date | timeAgo}}</span></div></div><div class="footer text-center"><a ng-if="rules.length === 1" ui-sref="app.rules({age: 15})" translate="translate">View the new rule</a><a ng-if="rules.length &gt; 1" ui-sref="app.rules({age: 15})" translate="translate">View all {{:: rules.length}} new rules</a></div></card-content></card>'),e.put("js/components/overview/widgets/newSystems/newSystems.html",'<card class="card-accent widget widget-new-systems"><card-header class="gray"><div class="card-header-title icon-inline"><i class="fa fa-database"></i><span translate="translate">Newest Systems</span></div><div class="card-header-cta"><a ui-sref="app.inventory" translate="translate" class="cta-link">View inventory</a></div></card-header><card-content><div ng-if="loader.loading" class="spinner"></div><table ng-show="!loader.loading &amp;&amp; systems.length" class="table table-separated"><thead class="lite"><tr><th translate="translate">System</th><th translate="translate">Registration Date</th></tr></thead><tbody><tr ng-repeat="system in systems | orderBy:\'system.created_at\' track by system.system_id"><td><a ng-click="showSystemModal(system)" class="strong">{{:: system.toString}}</a></td><td><span>{{:: system.created_at | timeAgo}}</span></td></tr></tbody></table><p ng-if="!loader.loading &amp;&amp; !systems.length" translate="translate">No systems registered</p></card-content></card>'),e.put("js/components/overview/widgets/goals/goalsBar/goalsBar.html",'<div class="gauge"><div class="bar-chart-wrapper"></div></div>'),e.put("js/components/overview/widgets/goals/goalsGauge/goalsGauge.html",'<div class="gauge"><div class="chart-wrapper"></div><div class="chart-metrics"><span ng-if="gaugeMax === 0">{{:: gaugeNumber}}</span><span ng-if="gaugeMax &gt; 0">{{:: gaugeNumber + \'/\' + gaugeMax}}</span></div></div>'),e.put("js/components/overview/widgets/maintenancePlanLite/maintenancePlanLiteTable/maintenancePlanLiteTable.html",'<table class="table table-separated"><thead class="lite"><tr><th width="5%" class="count"><span>{{:: plans.length}}</span></th><th width="30%" translate="translate">Scheduled Plans</th><th translate="translate" class="start">Start</th><th translate="translate" class="duration">Duration</th><th width="11%" translate="translate">Actions</th></tr></thead><tbody><tr ng-repeat="plan in (plans | limitTo:3 | orderBy:\'start\') track by plan.maintenance_id"><td colspan="2" ng-click="openPlan(plan)" tooltip="{{:: MaintenanceService.getPlanName(plan)}}"><strong>{{:: plan.start | moment:\'LL\'}}</strong></td><td ng-click="openPlan(plan)" class="start">{{:: plan.start | moment:\'LT\' | lowercase}}</td><td ng-click="openPlan(plan)" translate="translate" translate-n="duration(plan.start, plan.end)" translate-plural="{{:: $count}} minutes" class="duration">1 minute</td><td ng-click="openPlan(plan)" class="action-count"><span>{{:: plan.actionsDone}}/{{:: plan.actions.length}}</span></td></tr></tbody></table>')}])},{}],244:[function(e,t,n){!function(e,t){"use strict";function n(e,t,n){if(!e)throw ce("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function r(e,t){return e||t?e?t?(U(e)&&(e=e.join(" ")),U(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function i(e){var t={};return e&&(e.to||e.from)&&(t.to=e.to,t.from=e.from),t}function a(e,t,n){var r="";return e=U(e)?e:e&&K(e)&&e.length?e.split(/\s+/):[],X(e,function(e,i){e&&e.length>0&&(r+=i>0?" ":"",r+=n?t+e:e+t)}),r}function o(e,t){var n=e.indexOf(t);t>=0&&e.splice(n,1)}function s(e){if(e instanceof J)switch(e.length){case 0:return e;case 1:if(e[0].nodeType===D)return e;break;default:return J(c(e))}if(e.nodeType===D)return J(e)}function c(e){if(!e[0])return e;for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType===D)return n}}function l(e,t,n){X(t,function(t){e.addClass(t,n)})}function u(e,t,n){X(t,function(t){e.removeClass(t,n)})}function d(e){return function(t,n){n.addClass&&(l(e,t,n.addClass),n.addClass=null),n.removeClass&&(u(e,t,n.removeClass),n.removeClass=null)}}function p(e){if(e=e||{},!e.$$prepared){var t=e.domOperation||ee;e.domOperation=function(){e.$$domOperationFired=!0,t(),t=ee},e.$$prepared=!0}return e}function f(e,t){h(e,t),m(e,t)}function h(e,t){t.from&&(e.css(t.from),t.from=null)}function m(e,t){t.to&&(e.css(t.to),t.to=null)}function g(e,t,n){var r=t.options||{},i=n.options||{},a=(r.addClass||"")+" "+(i.addClass||""),o=(r.removeClass||"")+" "+(i.removeClass||""),s=v(e.attr("class"),a,o);i.preparationClasses&&(r.preparationClasses=A(i.preparationClasses,r.preparationClasses),delete i.preparationClasses);var c=r.domOperation!==ee?r.domOperation:null;return F(r,i),c&&(r.domOperation=c),s.addClass?r.addClass=s.addClass:r.addClass=null,s.removeClass?r.removeClass=s.removeClass:r.removeClass=null,t.addClass=r.addClass,t.removeClass=r.removeClass,r}function v(e,t,n){function r(e){K(e)&&(e=e.split(" "));var t={};return X(e,function(e){e.length&&(t[e]=!0)}),t}var i={};e=r(e),t=r(t),X(t,function(e,t){i[t]=1}),n=r(n),X(n,function(e,t){i[t]=1===i[t]?null:-1});var a={addClass:"",removeClass:""};return X(i,function(t,n){var r,i;1===t?(r="addClass",i=!e[n]||e[n+j]):-1===t&&(r="removeClass",i=e[n]||e[n+R]),i&&(a[r].length&&(a[r]+=" "),a[r]+=n)}),a}function b(e){return e instanceof J?e[0]:e}function y(e,t,n){var r="";t&&(r=a(t,q,!0)),n.addClass&&(r=A(r,a(n.addClass,R))),n.removeClass&&(r=A(r,a(n.removeClass,j))),r.length&&(n.preparationClasses=r,e.addClass(r))}function x(e,t){t.preparationClasses&&(e.removeClass(t.preparationClasses),t.preparationClasses=null),t.activeClasses&&(e.removeClass(t.activeClasses),t.activeClasses=null)}function M(e,t){var n=t?"-"+t+"s":"";return w(e,[oe,n]),[oe,n]}function _(e,t){var n=t?"paused":"",r=P+re;return w(e,[r,n]),[r,n]}function w(e,t){var n=t[0],r=t[1];e.style[n]=r}function A(e,t){return e?t?e+" "+t:e:t}function S(e){return[ae,e+"s"]}function k(e,t){return[t?ie:oe,e+"s"]}function $(e,t,n){var r=Object.create(null),i=e.getComputedStyle(t)||{};return X(n,function(e,t){var n=i[e];if(n){var a=n.charAt(0);("-"===a||"+"===a||a>=0)&&(n=T(n)),0===n&&(n=null),r[t]=n}}),r}function T(e){var t=0,n=e.split(/\s*,\s*/);return X(n,function(e){"s"===e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,t=t?Math.max(e,t):e}),t}function C(e){return 0===e||null!=e}function E(e,t){var n=L,r=e+"s";return t?n+=te:r+=" linear all",[n,r]}function O(){var e=Object.create(null);return{flush:function(){e=Object.create(null)},count:function(t){var n=e[t];return n?n.total:0},get:function(t){var n=e[t];return n&&n.value},put:function(t,n){e[t]?e[t].total++:e[t]={total:1,value:n}}}}function z(e,t,n){X(n,function(n){e[n]=V(e[n])?e[n]:t.style.getPropertyValue(n)})}var L,N,P,I,D=1,R="-add",j="-remove",q="ng-",B="ng-animate",W="$$ngAnimateChildren";void 0===e.ontransitionend&&void 0!==e.onwebkittransitionend?("-webkit-",L="WebkitTransition",N="webkitTransitionEnd transitionend"):(L="transition",N="transitionend"),void 0===e.onanimationend&&void 0!==e.onwebkitanimationend?("-webkit-",P="WebkitAnimation",I="webkitAnimationEnd animationend"):(P="animation",I="animationend");var H,F,X,U,V,G,Y,Q,K,Z,J,ee,te="Duration",ne="TimingFunction",re="PlayState",ie=P+"Delay",ae=P+te,oe=L+"Delay",se=L+te,ce=t.$$minErr("ng"),le=["$$rAF",function(e){function t(e){r=r.concat(e),n()}function n(){if(r.length){for(var t=r.shift(),a=0;a<t.length;a++)t[a]();i||e(function(){i||n()})}}var r,i;return r=t.queue=[],t.waitUntilQuiet=function(t){i&&i(),i=e(function(){i=null,t(),n()})},t}],ue=["$interpolate",function(e){return{link:function(t,n,r){function i(e){e="on"===e||"true"===e,n.data(W,e)}var a=r.ngAnimateChildren;K(a)&&0===a.length?n.data(W,!0):(i(e(a)(t)),r.$observe("ngAnimateChildren",i))}}}],de="$$animateCss",pe=1e3,fe=3,he=1.5,me={transitionDuration:se,transitionDelay:oe,transitionProperty:L+"Property",animationDuration:ae,animationDelay:ie,animationIterationCount:P+"IterationCount"},ge={transitionDuration:se,transitionDelay:oe,animationDuration:ae,animationDelay:ie},ve=["$animateProvider",function(e){var t=O(),n=O();this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(e,r,s,c,l,u,g,v){function y(e,t){var n="$$ngAnimateParentKey",r=e.parentNode;return(r[n]||(r[n]=++B))+"-"+e.getAttribute("class")+"-"+t}function x(n,r,i,a){var o=t.get(i);return o||(o=$(e,n,a),"infinite"===o.animationIterationCount&&(o.animationIterationCount=1)),t.put(i,o),o}function A(i,o,s,c){var l;if(t.count(s)>0&&!(l=n.get(s))){var u=a(o,"-stagger");r.addClass(i,u),l=$(e,i,c),l.animationDuration=Math.max(l.animationDuration,0),l.transitionDuration=Math.max(l.transitionDuration,0),r.removeClass(i,u),n.put(s,l)}return l||{}}function T(e){W.push(e),g.waitUntilQuiet(function(){t.flush(),n.flush();for(var e=l(),r=0;r<W.length;r++)W[r](e);W.length=0})}function O(e,t,n){var r=x(e,t,n,me),i=r.animationDelay,a=r.transitionDelay;return r.maxDelay=i&&a?Math.max(i,a):i||a,r.maxDuration=Math.max(r.animationDuration*r.animationIterationCount,r.transitionDuration),r}var D=d(r),B=0,W=[];return function(e,n){function l(){g()}function d(){g(!0)}function g(t){if(!(Y||K&&Q)){Y=!0,Q=!1,F.$$skipPreparationClasses||r.removeClass(e,xe),r.removeClass(e,_e),_(G,!1),M(G,!1),X(se,function(e){G.style[e[0]]=""}),D(e,F),f(e,F),Object.keys(V).length&&X(V,function(e,t){e?G.style.setProperty(t,e):G.style.removeProperty(t)}),F.onDone&&F.onDone(),ue&&ue.length&&e.off(ue.join(" "),B);var n=e.data(de);n&&(c.cancel(n[0].timer),e.removeData(de)),Z&&Z.complete(!t)}}function x(e){Pe.blockTransition&&M(G,e),Pe.blockKeyframeAnimation&&_(G,!!e)}function $(){return Z=new s({end:l,cancel:d}),T(ee),g(),{$$willAnimate:!1,start:function(){return Z},end:l}}function B(e){e.stopPropagation();var t=e.originalEvent||e,n=t.$manualTimeStamp||Date.now(),r=parseFloat(t.elapsedTime.toFixed(fe));Math.max(n-oe,0)>=re&&r>=ie&&(K=!0,g())}function W(){function t(){if(!Y){if(x(!1),X(se,function(e){var t=e[0],n=e[1];G.style[t]=n}),D(e,F),r.addClass(e,_e),Pe.recalculateTimingStyles){if(Me=G.className+" "+xe,Ae=y(G,Me),Le=O(G,Me,Ae),Ne=Le.maxDelay,te=Math.max(Ne,0),0===(ie=Le.maxDuration))return void g();Pe.hasTransitions=Le.transitionDuration>0,Pe.hasAnimations=Le.animationDuration>0}if(Pe.applyAnimationDelay&&(Ne="boolean"!=typeof F.delay&&C(F.delay)?parseFloat(F.delay):Ne,te=Math.max(Ne,0),Le.animationDelay=Ne,Ie=k(Ne,!0),se.push(Ie),G.style[Ie[0]]=Ie[1]),re=te*pe,ae=ie*pe,F.easing){var t,i=F.easing;Pe.hasTransitions&&(t=L+ne,se.push([t,i]),G.style[t]=i),Pe.hasAnimations&&(t=P+ne,se.push([t,i]),G.style[t]=i)}Le.transitionDuration&&ue.push(N),Le.animationDuration&&ue.push(I),oe=Date.now();var a=re+he*ae,o=oe+a,s=e.data(de)||[],l=!0;if(s.length){var u=s[0];l=o>u.expectedEndTime,l?c.cancel(u.timer):s.push(g)}if(l){var d=c(n,a,!1);s[0]={timer:d,expectedEndTime:o},s.push(g),e.data(de,s)}ue.length&&e.on(ue.join(" "),B),F.to&&(F.cleanupStyles&&z(V,G,Object.keys(F.to)),m(e,F))}}function n(){var t=e.data(de);if(t){for(var n=1;n<t.length;n++)t[n]();e.removeData(de)}}if(!Y){if(!G.parentNode)return void g();var i=function(e){if(K)Q&&e&&(Q=!1,g());else if(Q=!e,Le.animationDuration){var t=_(G,Q);Q?se.push(t):o(se,t)}},a=Oe>0&&(Le.transitionDuration&&0===Se.transitionDuration||Le.animationDuration&&0===Se.animationDuration)&&Math.max(Se.animationDelay,Se.transitionDelay);a?c(t,Math.floor(a*Oe*pe),!1):t(),J.resume=function(){i(!0)},J.pause=function(){i(!1)}}}var F=n||{};F.$$prepared||(F=p(H(F)));var V={},G=b(e);if(!G||!G.parentNode||!v.enabled())return $();var Y,Q,K,Z,J,te,re,ie,ae,oe,se=[],ce=e.attr("class"),le=i(F),ue=[];if(0===F.duration||!u.animations&&!u.transitions)return $();var me=F.event&&U(F.event)?F.event.join(" "):F.event,ve=me&&F.structural,be="",ye="";ve?be=a(me,q,!0):me&&(be=me),F.addClass&&(ye+=a(F.addClass,R)),F.removeClass&&(ye.length&&(ye+=" "),ye+=a(F.removeClass,j)),F.applyClassesEarly&&ye.length&&D(e,F);var xe=[be,ye].join(" ").trim(),Me=ce+" "+xe,_e=a(xe,"-active"),we=le.to&&Object.keys(le.to).length>0;if(!((F.keyframeStyle||"").length>0||we||xe))return $();var Ae,Se;if(F.stagger>0){var ke=parseFloat(F.stagger);Se={transitionDelay:ke,
19animationDelay:ke,transitionDuration:0,animationDuration:0}}else Ae=y(G,Me),Se=A(G,xe,Ae,ge);F.$$skipPreparationClasses||r.addClass(e,xe);var $e;if(F.transitionStyle){var Te=[L,F.transitionStyle];w(G,Te),se.push(Te)}if(F.duration>=0){$e=G.style[L].length>0;var Ce=E(F.duration,$e);w(G,Ce),se.push(Ce)}if(F.keyframeStyle){var Ee=[P,F.keyframeStyle];w(G,Ee),se.push(Ee)}var Oe=Se?F.staggerIndex>=0?F.staggerIndex:t.count(Ae):0,ze=0===Oe;ze&&!F.skipBlocking&&M(G,9999);var Le=O(G,Me,Ae),Ne=Le.maxDelay;te=Math.max(Ne,0),ie=Le.maxDuration;var Pe={};if(Pe.hasTransitions=Le.transitionDuration>0,Pe.hasAnimations=Le.animationDuration>0,Pe.hasTransitionAll=Pe.hasTransitions&&"all"===Le.transitionProperty,Pe.applyTransitionDuration=we&&(Pe.hasTransitions&&!Pe.hasTransitionAll||Pe.hasAnimations&&!Pe.hasTransitions),Pe.applyAnimationDuration=F.duration&&Pe.hasAnimations,Pe.applyTransitionDelay=C(F.delay)&&(Pe.applyTransitionDuration||Pe.hasTransitions),Pe.applyAnimationDelay=C(F.delay)&&Pe.hasAnimations,Pe.recalculateTimingStyles=ye.length>0,(Pe.applyTransitionDuration||Pe.applyAnimationDuration)&&(ie=F.duration?parseFloat(F.duration):ie,Pe.applyTransitionDuration&&(Pe.hasTransitions=!0,Le.transitionDuration=ie,$e=G.style[L+"Property"].length>0,se.push(E(ie,$e))),Pe.applyAnimationDuration&&(Pe.hasAnimations=!0,Le.animationDuration=ie,se.push(S(ie)))),0===ie&&!Pe.recalculateTimingStyles)return $();if(null!=F.delay){var Ie;"boolean"!=typeof F.delay&&(Ie=parseFloat(F.delay),te=Math.max(Ie,0)),Pe.applyTransitionDelay&&se.push(k(Ie)),Pe.applyAnimationDelay&&se.push(k(Ie,!0))}return null==F.duration&&Le.transitionDuration>0&&(Pe.recalculateTimingStyles=Pe.recalculateTimingStyles||ze),re=te*pe,ae=ie*pe,F.skipBlocking||(Pe.blockTransition=Le.transitionDuration>0,Pe.blockKeyframeAnimation=Le.animationDuration>0&&Se.animationDelay>0&&0===Se.animationDuration),F.from&&(F.cleanupStyles&&z(V,G,Object.keys(F.from)),h(e,F)),Pe.blockTransition||Pe.blockKeyframeAnimation?x(ie):F.skipBlocking||M(G,!1),{$$willAnimate:!0,end:l,start:function(){if(!Y)return J={end:l,cancel:d,resume:null,pause:null},Z=new s(J),T(W),Z}}}}]}],be=["$$animationProvider",function(e){function t(e){return e.parentNode&&11===e.parentNode.nodeType}e.drivers.push("$$animateCssDriver");var n="ng-animate-shim",r="ng-anchor-out";this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(e,i,a,o,s,c,l){function u(e){return e.replace(/\bng-\S+\b/g,"")}function d(e,t){return K(e)&&(e=e.split(" ")),K(t)&&(t=t.split(" ")),e.filter(function(e){return-1===t.indexOf(e)}).join(" ")}function p(t,i,o){function s(e){var t={},n=b(e).getBoundingClientRect();return X(["width","height","top","left"],function(e){var r=n[e];switch(e){case"top":r+=m.scrollTop;break;case"left":r+=m.scrollLeft}t[e]=Math.floor(r)+"px"}),t}function c(e){return e.attr("class")||""}function l(){var t=u(c(o)),n=d(t,h),i=d(h,t),a=e(f,{to:s(o),addClass:"ng-anchor-in "+n,removeClass:r+" "+i,delay:!0});return a.$$willAnimate?a:null}function p(){f.remove(),i.removeClass(n),o.removeClass(n)}var f=J(b(i).cloneNode(!0)),h=u(c(f));i.addClass(n),o.addClass(n),f.addClass("ng-anchor"),v.append(f);var g,y=function(){var t=e(f,{addClass:r,delay:!0,from:s(i)});return t.$$willAnimate?t:null}();if(!y&&!(g=l()))return p();var x=y||g;return{start:function(){function e(){n&&n.end()}var t,n=x.start();return n.done(function(){if(n=null,!g&&(g=l()))return n=g.start(),n.done(function(){n=null,p(),t.complete()}),n;p(),t.complete()}),t=new a({end:e,cancel:e})}}}function f(e,t,n,r){var i=h(e),o=h(t),s=[];if(X(r,function(e){var t=e.out,r=e.in,i=p(n,t,r);i&&s.push(i)}),i||o||0!==s.length)return{start:function(){function e(){X(t,function(e){e.end()})}var t=[];i&&t.push(i.start()),o&&t.push(o.start()),X(s,function(e){t.push(e.start())});var n=new a({end:e,cancel:e});return a.all(t,function(e){n.complete(e)}),n}}}function h(t){var n=t.element,r=t.options||{};t.structural&&(r.event=t.event,r.structural=!0,r.applyClassesEarly=!0,"leave"===t.event&&(r.onDone=r.domOperation)),r.preparationClasses&&(r.event=A(r.event,r.preparationClasses));var i=e(n,r);return i.$$willAnimate?i:null}if(!s.animations&&!s.transitions)return ee;var m=l[0].body,g=b(o),v=J(t(g)||m.contains(g)?g:m);return function(e){return e.from&&e.to?f(e.from,e.to,e.classes,e.anchors):h(e)}}]}],ye=["$animateProvider",function(e){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(t,n,r){function i(n){n=U(n)?n:n.split(" ");for(var r=[],i={},a=0;a<n.length;a++){var o=n[a],s=e.$$registeredAnimations[o];s&&!i[o]&&(r.push(t.get(s)),i[o]=!0)}return r}var a=d(r);return function(e,t,r,o){function s(){o.domOperation(),a(e,o)}function c(){h=!0,s(),f(e,o)}function l(e,t,r,i,a){var o;switch(r){case"animate":o=[t,i.from,i.to,a];break;case"setClass":o=[t,v,b,a];break;case"addClass":o=[t,v,a];break;case"removeClass":o=[t,b,a];break;default:o=[t,a]}o.push(i);var s=e.apply(e,o);if(s)if(Y(s.start)&&(s=s.start()),s instanceof n)s.done(a);else if(Y(s))return s;return ee}function u(e,t,r,i,a){var o=[];return X(i,function(i){var s=i[a];s&&o.push(function(){var i,a,o=!1,c=function(e){o||(o=!0,(a||ee)(e),i.complete(!e))};return i=new n({end:function(){c()},cancel:function(){c(!0)}}),a=l(s,e,t,r,function(e){c(!1===e)}),i})}),o}function d(e,t,r,i,a){var o=u(e,t,r,i,a);if(0===o.length){var s,c;"beforeSetClass"===a?(s=u(e,"removeClass",r,i,"beforeRemoveClass"),c=u(e,"addClass",r,i,"beforeAddClass")):"setClass"===a&&(s=u(e,"removeClass",r,i,"removeClass"),c=u(e,"addClass",r,i,"addClass")),s&&(o=o.concat(s)),c&&(o=o.concat(c))}if(0!==o.length)return function(e){var t=[];return o.length&&X(o,function(e){t.push(e())}),t.length?n.all(t,e):e(),function(e){X(t,function(t){e?t.cancel():t.end()})}}}var h=!1;3===arguments.length&&Q(r)&&(o=r,r=null),o=p(o),r||(r=e.attr("class")||"",o.addClass&&(r+=" "+o.addClass),o.removeClass&&(r+=" "+o.removeClass));var m,g,v=o.addClass,b=o.removeClass,y=i(r);if(y.length){var x,M;"leave"===t?(M="leave",x="afterLeave"):(M="before"+t.charAt(0).toUpperCase()+t.substr(1),x=t),"enter"!==t&&"move"!==t&&(m=d(e,t,o,y,M)),g=d(e,t,o,y,x)}if(m||g){var _;return{$$willAnimate:!0,end:function(){return _?_.end():(c(),_=new n,_.complete(!0)),_},start:function(){function e(e){c(e),_.complete(e)}function t(t){h||((r||ee)(t),e(t))}if(_)return _;_=new n;var r,i=[];return m&&i.push(function(e){r=m(e)}),i.length?i.push(function(e){s(),e(!0)}):s(),g&&i.push(function(e){r=g(e)}),_.setHost({end:function(){t()},cancel:function(){t(!0)}}),n.chain(i,e),_}}}}}]}],xe=["$$animationProvider",function(e){e.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(e,t){function n(t){var n=t.element,r=t.event,i=t.options,a=t.classes;return e(n,r,a,i)}return function(e){if(e.from&&e.to){var r=n(e.from),i=n(e.to);if(!r&&!i)return;return{start:function(){function e(){return function(){X(a,function(e){e.end()})}}function n(e){o.complete(e)}var a=[];r&&a.push(r.start()),i&&a.push(i.start()),t.all(a,n);var o=new t({end:e(),cancel:e()});return o}}}return n(e)}}]}],Me="data-ng-animate",_e="$ngAnimatePin",we=["$animateProvider",function(t){function r(e){if(!e)return null;var t=e.split(h),n=Object.create(null);return X(t,function(e){n[e]=!0}),n}function i(e,t){if(e&&t){var n=r(t);return e.split(h).some(function(e){return n[e]})}}function a(e,t,n,r){return m[e].some(function(e){return e(t,n,r)})}function o(e,t){var n=(e.addClass||"").length>0,r=(e.removeClass||"").length>0;return t?n&&r:n||r}var l=1,u=2,h=" ",m=this.rules={skip:[],cancel:[],join:[]};m.join.push(function(e,t,n){return!t.structural&&o(t)}),m.skip.push(function(e,t,n){return!t.structural&&!o(t)}),m.skip.push(function(e,t,n){return"leave"===n.event&&t.structural}),m.skip.push(function(e,t,n){return n.structural&&n.state===u&&!t.structural}),m.cancel.push(function(e,t,n){return n.structural&&t.structural}),m.cancel.push(function(e,t,n){return n.state===u&&t.structural}),m.cancel.push(function(e,t,n){if(n.structural)return!1;var r=t.addClass,a=t.removeClass,o=n.addClass,s=n.removeClass;return!(Z(r)&&Z(a)||Z(o)&&Z(s))&&(i(r,s)||i(a,o))}),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$HashMap","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow",function(r,i,h,m,v,M,_,w,A,S){function k(){var e=!1;return function(t){e?t():i.$$postDigest(function(){e=!0,t()})}}function $(e,t){return g(e,t,{})}function T(e,t,n){var r=b(t),i=b(e),a=[],o=Y[n];return o&&X(o,function(e){re.call(e.node,r)?a.push(e.callback):"leave"===n&&re.call(e.node,i)&&a.push(e.callback)}),a}function C(e,t,n){var r=c(t);return e.filter(function(e){return!(e.node===r&&(!n||e.callback===n))})}function E(e,t){"close"!==e||t[0].parentNode||ie.off(t)}function O(e,t,n){function c(t,n,i,a){S(function(){var t=T(v,e,n);t.length?r(function(){X(t,function(t){t(e,i,a)}),E(i,e)}):E(i,e)}),t.progress(n,i,a)}function d(t){x(e,w),ne(e,w),f(e,w),w.domOperation(),A.complete(!t)}var h,v,w=H(n);e=s(e),e&&(h=b(e),v=e.parent()),w=p(w);var A=new _,S=k();if(U(w.addClass)&&(w.addClass=w.addClass.join(" ")),w.addClass&&!K(w.addClass)&&(w.addClass=null),U(w.removeClass)&&(w.removeClass=w.removeClass.join(" ")),w.removeClass&&!K(w.removeClass)&&(w.removeClass=null),w.from&&!Q(w.from)&&(w.from=null),w.to&&!Q(w.to)&&(w.to=null),!h)return d(),A;var C=[h.className,w.addClass,w.removeClass].join(" ");if(!te(C))return d(),A;var O=["enter","move","leave"].indexOf(t)>=0,N=m[0].hidden,D=!q||N||j.get(h),B=!D&&R.get(h)||{},W=!!B.state;if(D||W&&B.state===l||(D=!P(e,v,t)),D)return N&&c(A,t,"start"),d(),N&&c(A,t,"close"),A;O&&z(e);var F={structural:O,element:e,event:t,addClass:w.addClass,removeClass:w.removeClass,close:d,options:w,runner:A};if(W){if(a("skip",e,F,B))return B.state===u?(d(),A):(g(e,B,F),B.runner);if(a("cancel",e,F,B))if(B.state===u)B.runner.end();else{if(!B.structural)return g(e,B,F),B.runner;B.close()}else{if(a("join",e,F,B)){if(B.state!==u)return y(e,O?t:null,w),t=F.event=B.event,w=g(e,B,F),B.runner;$(e,F)}}}else $(e,F);var V=F.structural;if(V||(V="animate"===F.event&&Object.keys(F.options.to||{}).length>0||o(F)),!V)return d(),L(e),A;var G=(B.counter||0)+1;return F.counter=G,I(e,l,F),i.$$postDigest(function(){var n=R.get(h),r=!n;n=n||{};var i=e.parent()||[],a=i.length>0&&("animate"===n.event||n.structural||o(n));if(r||n.counter!==G||!a)return r&&(ne(e,w),f(e,w)),(r||O&&n.event!==t)&&(w.domOperation(),A.end()),void(a||L(e));t=!n.structural&&o(n,!0)?"setClass":n.event,I(e,u);var s=M(e,t,n.options);A.setHost(s),c(A,t,"start",{}),s.done(function(n){d(!n);var r=R.get(h);r&&r.counter===G&&L(b(e)),c(A,t,"close",{})})}),A}function z(e){var t=b(e),n=t.querySelectorAll("["+Me+"]");X(n,function(e){var t=parseInt(e.getAttribute(Me),10),n=R.get(e);if(n)switch(t){case u:n.runner.end();case l:R.remove(e)}})}function L(e){var t=b(e);t.removeAttribute(Me),R.remove(t)}function N(e,t){return b(e)===b(t)}function P(e,t,n){var r,i=J(m[0].body),a=N(e,i)||"HTML"===e[0].nodeName,o=N(e,h),s=!1,c=j.get(b(e)),l=J.data(e[0],_e);for(l&&(t=l),t=b(t);t&&(o||(o=N(t,h)),t.nodeType===D);){var u=R.get(t)||{};if(!s){var d=j.get(t);if(!0===d&&!1!==c){c=!0;break}!1===d&&(c=!1),s=u.structural}if(Z(r)||!0===r){var p=J.data(t,W);V(p)&&(r=p)}if(s&&!1===r)break;if(a||(a=N(t,i)),a&&o)break;t=o||!(l=J.data(t,_e))?t.parentNode:b(l)}return(!s||r)&&!0!==c&&o&&a}function I(e,t,n){n=n||{},n.state=t;var r=b(e);r.setAttribute(Me,t);var i=R.get(r),a=i?F(i,n):n;R.put(r,a)}var R=new v,j=new v,q=null,B=i.$watch(function(){return 0===w.totalPendingRequests},function(e){e&&(B(),i.$$postDigest(function(){i.$$postDigest(function(){null===q&&(q=!0)})}))}),Y=Object.create(null),ee=t.classNameFilter(),te=ee?function(e){return ee.test(e)}:function(){return!0},ne=d(A),re=e.Node.prototype.contains||function(e){return this===e||!!(16&this.compareDocumentPosition(e))},ie={on:function(e,t,n){var r=c(t);Y[e]=Y[e]||[],Y[e].push({node:r,callback:n}),J(t).on("$destroy",function(){R.get(r)||ie.off(e,t,n)})},off:function(e,t,n){if(1!==arguments.length||K(arguments[0])){var r=Y[e];r&&(Y[e]=1===arguments.length?null:C(r,t,n))}else{t=arguments[0];for(var i in Y)Y[i]=C(Y[i],t)}},pin:function(e,t){n(G(e),"element","not an element"),n(G(t),"parentElement","not an element"),e.data(_e,t)},push:function(e,t,n,r){return n=n||{},n.domOperation=r,O(e,t,n)},enabled:function(e,t){var n=arguments.length;if(0===n)t=!!q;else{if(G(e)){var r=b(e);1===n?t=!j.get(r):j.put(r,!t)}else t=q=!!e}return t}};return ie}]}],Ae=["$animateProvider",function(e){function t(e,t){e.data(s,t)}function n(e){e.removeData(s)}function i(e){return e.data(s)}var a="ng-animate-ref",o=this.drivers=[],s="$$animationRunner";this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$HashMap","$$rAFScheduler",function(e,s,c,l,u,h){function m(e){function t(e){if(e.processed)return e;e.processed=!0;var n=e.domNode,a=n.parentNode;i.put(n,e);for(var o;a;){if(o=i.get(a)){o.processed||(o=t(o));break}a=a.parentNode}return(o||r).children.push(e),e}var n,r={children:[]},i=new u;for(n=0;n<e.length;n++){var a=e[n];i.put(a.domNode,e[n]={domNode:a.domNode,fn:a.fn,children:[]})}for(n=0;n<e.length;n++)t(e[n]);return function(e){var t,n=[],r=[];for(t=0;t<e.children.length;t++)r.push(e.children[t]);var i=r.length,a=0,o=[];for(t=0;t<r.length;t++){var s=r[t];i<=0&&(i=a,a=0,n.push(o),o=[]),o.push(s.fn),s.children.forEach(function(e){a++,r.push(e)}),i--}return o.length&&n.push(o),n}(r)}var g=[],v=d(e);return function(u,d,y){function x(e){var t="["+a+"]",n=e.hasAttribute(a)?[e]:e.querySelectorAll(t),r=[];return X(n,function(e){var t=e.getAttribute(a);t&&t.length&&r.push(e)}),r}function M(e){var t=[],n={};X(e,function(e,r){var i=e.element,o=b(i),s=e.event,c=["enter","move"].indexOf(s)>=0,l=e.structural?x(o):[];if(l.length){var u=c?"to":"from";X(l,function(e){var t=e.getAttribute(a);n[t]=n[t]||{},n[t][u]={animationID:r,element:J(e)}})}else t.push(e)});var r={},i={};return X(n,function(n,a){var o=n.from,s=n.to;if(!o||!s){var c=o?o.animationID:s.animationID,l=c.toString();return void(r[l]||(r[l]=!0,t.push(e[c])))}var u=e[o.animationID],d=e[s.animationID],p=o.animationID.toString();if(!i[p]){var f=i[p]={structural:!0,beforeStart:function(){u.beforeStart(),d.beforeStart()},close:function(){u.close(),d.close()},classes:_(u.classes,d.classes),from:u,to:d,anchors:[]};f.classes.length?t.push(f):(t.push(u),t.push(d))}i[p].anchors.push({out:o.element,in:s.element})}),t}function _(e,t){e=e.split(" "),t=t.split(" ");for(var n=[],r=0;r<e.length;r++){var i=e[r];if("ng-"!==i.substring(0,3))for(var a=0;a<t.length;a++)if(i===t[a]){n.push(i);break}}return n.join(" ")}function w(e){for(var t=o.length-1;t>=0;t--){var n=o[t],r=c.get(n),i=r(e);if(i)return i}}function A(){u.addClass(B),O&&e.addClass(u,O),z&&(e.removeClass(u,z),z=null)}function S(e,t){function n(e){var n=i(e);n&&n.setHost(t)}e.from&&e.to?(n(e.from.element),n(e.to.element)):n(e.element)}function k(){var e=i(u);!e||"leave"===d&&y.$$domOperationFired||e.end()}function $(t){u.off("$destroy",k),n(u),v(u,y),f(u,y),y.domOperation(),O&&e.removeClass(u,O),u.removeClass(B),C.complete(!t)}y=p(y);var T=["enter","move","leave"].indexOf(d)>=0,C=new l({end:function(){$()},cancel:function(){$(!0)}});if(!o.length)return $(),C;t(u,C);var E=r(u.attr("class"),r(y.addClass,y.removeClass)),O=y.tempClasses;O&&(E+=" "+O,y.tempClasses=null);var z;return T&&(z="ng-"+d+"-prepare",e.addClass(u,z)),g.push({element:u,classes:E,event:d,structural:T,options:y,beforeStart:A,close:$}),u.on("$destroy",k),g.length>1?C:(s.$$postDigest(function(){var e=[];X(g,function(t){i(t.element)?e.push(t):t.close()}),g.length=0;var t=M(e),n=[];X(t,function(e){n.push({domNode:b(e.from?e.from.element:e.element),fn:function(){e.beforeStart();var t,n=e.close;if(i(e.anchors?e.from.element||e.to.element:e.element)){var r=w(e);r&&(t=r.start)}if(t){var a=t();a.done(function(e){n(!e)}),S(e,a)}else n()}})}),h(m(n))}),C)}}]}],Se=["$animate","$rootScope",function(e,t){return{restrict:"A",transclude:"element",terminal:!0,priority:600,link:function(t,n,r,i,a){var o,s;t.$watchCollection(r.ngAnimateSwap||r.for,function(r){o&&e.leave(o),s&&(s.$destroy(),s=null),(r||0===r)&&(s=t.$new(),a(s,function(t){o=t,e.enter(t,null,n)}))})}}}];t.module("ngAnimate",[],function(){ee=t.noop,H=t.copy,F=t.extend,J=t.element,X=t.forEach,U=t.isArray,K=t.isString,Q=t.isObject,Z=t.isUndefined,V=t.isDefined,Y=t.isFunction,G=t.isElement}).directive("ngAnimateSwap",Se).directive("ngAnimateChildren",ue).factory("$$rAFScheduler",le).provider("$$animateQueue",we).provider("$$animation",Ae).provider("$animateCss",ve).provider("$$animateCssDriver",be).provider("$$animateJs",ye).provider("$$animateJsDriver",xe)}(window,window.angular)},{}],245:[function(e,t,n){e("./angular-animate"),t.exports="ngAnimate"},{"./angular-animate":244}],246:[function(e,t,n){!function(e,t){"use strict";function n(){function e(e,t,r,i){return function(o,s,c){var l=c.$normalize(t);!n[l]||a(s,r)||c[l]||o.$watch(c[e],function(e){e=i?!e:!!e,s.attr(t,e)})}}var n={ariaHidden:!0,ariaChecked:!0,ariaReadonly:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaValue:!0,tabindex:!0,bindKeypress:!0,bindRoleForClick:!0};this.config=function(e){n=t.extend(n,e)},this.$get=function(){return{config:function(e){return n[e]},$$watchExpr:e}}}var r=t.module("ngAria",["ng"]).provider("$aria",n),i=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],a=function(e,t){if(-1!==t.indexOf(e[0].nodeName))return!0};r.directive("ngShow",["$aria",function(e){return e.$$watchExpr("ngShow","aria-hidden",[],!0)}]).directive("ngHide",["$aria",function(e){return e.$$watchExpr("ngHide","aria-hidden",[],!1)}]).directive("ngValue",["$aria",function(e){return e.$$watchExpr("ngValue","aria-checked",i,!1)}]).directive("ngChecked",["$aria",function(e){return e.$$watchExpr("ngChecked","aria-checked",i,!1)}]).directive("ngReadonly",["$aria",function(e){return e.$$watchExpr("ngReadonly","aria-readonly",i,!1)}]).directive("ngRequired",["$aria",function(e){return e.$$watchExpr("ngRequired","aria-required",i,!1)}]).directive("ngModel",["$aria",function(e){function t(t,n,r,o){return e.config(n)&&!r.attr(t)&&(o||!a(r,i))}function n(e,t){return!t.attr("role")&&t.attr("type")===e&&"INPUT"!==t[0].nodeName}function r(e,t){var n=e.type,r=e.role;return"checkbox"===(n||r)||"menuitemcheckbox"===r?"checkbox":"radio"===(n||r)||"menuitemradio"===r?"radio":"range"===n||"progressbar"===r||"slider"===r?"range":""}return{restrict:"A",require:"ngModel",priority:200,compile:function(i,a){var o=r(a,i);return{pre:function(e,t,n,r){"checkbox"===o&&(r.$isEmpty=function(e){return!1===e})},post:function(r,i,a,s){function c(){return s.$modelValue}function l(e){var t=a.value==s.$viewValue;i.attr("aria-checked",t)}function u(){i.attr("aria-checked",!s.$isEmpty(s.$viewValue))}var d=t("tabindex","tabindex",i,!1);switch(o){case"radio":case"checkbox":n(o,i)&&i.attr("role",o),t("aria-checked","ariaChecked",i,!1)&&r.$watch(c,"radio"===o?l:u),d&&i.attr("tabindex",0);break;case"range":if(n(o,i)&&i.attr("role","slider"),e.config("ariaValue")){var p=!i.attr("aria-valuemin")&&(a.hasOwnProperty("min")||a.hasOwnProperty("ngMin")),f=!i.attr("aria-valuemax")&&(a.hasOwnProperty("max")||a.hasOwnProperty("ngMax")),h=!i.attr("aria-valuenow");p&&a.$observe("min",function(e){i.attr("aria-valuemin",e)}),f&&a.$observe("max",function(e){i.attr("aria-valuemax",e)}),h&&r.$watch(c,function(e){i.attr("aria-valuenow",e)})}d&&i.attr("tabindex",0)}!a.hasOwnProperty("ngRequired")&&s.$validators.required&&t("aria-required","ariaRequired",i,!1)&&a.$observe("required",function(){i.attr("aria-required",!!a.required)}),t("aria-invalid","ariaInvalid",i,!0)&&r.$watch(function(){return s.$invalid},function(e){i.attr("aria-invalid",!!e)})}}}}}]).directive("ngDisabled",["$aria",function(e){return e.$$watchExpr("ngDisabled","aria-disabled",i,!1)}]).directive("ngMessages",function(){return{restrict:"A",require:"?ngMessages",link:function(e,t,n,r){t.attr("aria-live")||t.attr("aria-live","assertive")}}}).directive("ngClick",["$aria","$parse",function(e,t){return{restrict:"A",compile:function(n,r){var o=t(r.ngClick,null,!0);return function(t,n,r){a(n,i)||(e.config("bindRoleForClick")&&!n.attr("role")&&n.attr("role","button"),e.config("tabindex")&&!n.attr("tabindex")&&n.attr("tabindex",0),e.config("bindKeypress")&&!r.ngKeypress&&n.on("keypress",function(e){function n(){o(t,{$event:e})}var r=e.which||e.keyCode;32!==r&&13!==r||t.$apply(n)}))}}}}]).directive("ngDblclick",["$aria",function(e){return function(t,n,r){!e.config("tabindex")||n.attr("tabindex")||a(n,i)||n.attr("tabindex",0)}}])}(window,window.angular)},{}],247:[function(e,t,n){e("./angular-aria"),t.exports="ngAria"},{"./angular-aria":246}],248:[function(e,t,n){!function(e,t){"use strict";function n(e,n,r){function i(e,r,i){var o,s;i=i||{},s=i.expires,o=t.isDefined(i.path)?i.path:a,t.isUndefined(r)&&(s="Thu, 01 Jan 1970 00:00:00 GMT",r=""),t.isString(s)&&(s=new Date(s));var c=encodeURIComponent(e)+"="+encodeURIComponent(r);c+=o?";path="+o:"",c+=i.domain?";domain="+i.domain:"",c+=s?";expires="+s.toUTCString():"",c+=i.secure?";secure":"";var l=c.length+1;return l>4096&&n.warn("Cookie '"+e+"' possibly not set or overflowed because it was too large ("+l+" > 4096 bytes)!"),c}var a=r.baseHref(),o=e[0];return function(e,t,n){o.cookie=i(e,t,n)}}n.$inject=["$document","$log","$browser"],t.module("ngCookies",["ng"]).provider("$cookies",[function(){function e(e){return e?t.extend({},n,e):n}var n=this.defaults={};this.$get=["$$cookieReader","$$cookieWriter",function(n,r){return{get:function(e){return n()[e]},getObject:function(e){var n=this.get(e);return n?t.fromJson(n):n},getAll:function(){return n()},put:function(t,n,i){r(t,n,e(i))},putObject:function(e,n,r){this.put(e,t.toJson(n),r)},remove:function(t,n){r(t,void 0,e(n))}}}]}]),t.module("ngCookies").factory("$cookieStore",["$cookies",function(e){return{get:function(t){return e.getObject(t)},put:function(t,n){e.putObject(t,n)},remove:function(t){e.remove(t)}}}]),n.$inject=["$document","$log","$browser"],t.module("ngCookies").provider("$$cookieWriter",function(){this.$get=n})}(window,window.angular)},{}],249:[function(e,t,n){e("./angular-cookies"),t.exports="ngCookies"},{"./angular-cookies":248}],250:[function(e,t,n){!function(r,i){"use strict";"object"===(void 0===n?"undefined":_typeof2(n))&&void 0!==t?t.exports=i(e("angular"),e("moment")):"function"==typeof define&&define.amd?define(["angular","moment"],i):i(r.angular,r.moment)}(this,function(e,t){e.module||(e=window.angular);var n=e.module("datePicker",[]);n.constant("datePickerConfig",{template:"templates/datepicker.html",view:"month",views:["year","month","date","hours","minutes"],momentNames:{year:"year",month:"month",date:"day",hours:"hours",minutes:"minutes"},viewConfig:{year:["years","isSameYear"],month:["months","isSameMonth"],hours:["hours","isSameHour"],minutes:["minutes","isSameMinutes"]},step:5}),n.filter("mFormat",function(){return function(e,n,r){return t.isMoment(e)?r?t.tz(e,r).format(n):e.format(n):t(e).format(n)}}),n.directive("datePicker",["datePickerConfig","datePickerUtils","$interpolate",function(n,r,i){return{require:"?ngModel",template:'<div ng-include="template"></div>',scope:{model:"=?datePicker",after:"=?",before:"=?",highlights:"=?"},link:function(a,o,s,c){function l(){a.views=n.views.concat(),a.view=s.view||n.view,a.views=a.views.slice(a.views.indexOf(s.maxView||"year"),a.views.indexOf(s.minView||"minutes")+1),1!==a.views.length&&-1!==a.views.indexOf(a.view)||(a.view=a.views[0])}function u(e){return r.getDate(a,s,e)}function d(){var e=a.view;r.setParams(M,z),a.model&&!x&&(a.date=_(a.model),x=!1);var t=a.date;switch(e){case"year":a.years=r.getVisibleYears(t);break;case"month":a.months=r.getVisibleMonths(t);break;case"date":a.weekdays=a.weekdays||r.getDaysOfWeek(),a.weeks=r.getVisibleWeeks(t);break;case"hours":a.hours=r.getVisibleHours(t);break;case"minutes":a.minutes=r.getVisibleMinutes(t,A)}h()}function p(){return"date"!==a.view?a.view:a.date?a.date.month():null}var f,h,m,g,v,b,y,x=!1,M=a.tz=s.timezone,_=r.createMoment,w=r.eventIsForPicker,A=parseInt(s.step||n.step,10),S=!!s.partial,k=u("minDate"),$=u("maxDate"),T=i(o[0].id)(a),C=a.now=_(),E=a.date=_(a.model||C),O="true"===s.autoClose,z=s.firstDay&&s.firstDay>=0&&s.firstDay<=6?parseInt(s.firstDay,10):t().weekday(0).day();r.setParams(M,z),a.model||E.minute(Math.ceil(E.minute()/A)*A).second(0),a.template=s.template||n.template,a.watchDirectChanges=void 0!==s.watchDirectChanges,a.callbackOnSetDate=s.dateChange?r.findFunction(a,s.dateChange):void 0,l(),a.setView=function(e){-1!==a.views.indexOf(e)&&(a.view=e)},a.selectDate=function(e){if(s.disabled)return!1;if(m(a.date,e)&&(e=a.date),!(e=g(e)))return!1;a.date=e;var t=a.views[a.views.indexOf(a.view)+1];(!t||S||a.model)&&f(e,!0),t?a.setView(t):O?(o.addClass("hidden"),a.$emit("hidePicker")):h()},f=function(t,n){t&&((0!==a.model&&"date-picker"!==s.datePicker||!e.isDefined(a.model)&&!e.isDefined(s.datePicker))&&(a.model=t),c&&c.$setViewValue(t)),a.$emit("setDate",a.model,a.view,n),a.callbackOnSetDate&&a.callbackOnSetDate(s.datePicker,a.date,n)},a.$watch(p,d),a.watchDirectChanges&&a.$watch("model",function(){x=!1,d()}),e.isDefined(s.highlights)&&a.$watchCollection("highlights",function(n){if(e.isDefined(n)){if(!e.isArray(n))throw new Error("Invalid highlights object "+n);y=n.map(function(e){return t(e)}),d()}}),h=function(){var e,t,i,o=a.view,s=a.date,c=[],l="";if(r.setParams(M,z),"date"===o){var u,d=a.weeks;for(e=0;e<d.length;e++)for(u=d[e],c.push([]),t=0;t<u.length;t++){if(l="",r.isSameDay(s,u[t])&&(l+="active"),v(u[t],o)&&(l+=" now"),u[t].month()===s.month()&&b(u[t])||(l+=" disabled"),y&&y.length&&!l.length)for(i=0;i<y.length;i++)if(r.isSameDay(y[i],u[t])){l+=" highlighted";break}c[e].push(l)}}else{var p=n.viewConfig[o],f=a[p[0]],h=p[1];for(e=0;e<f.length;e++)l="",r[h](s,f[e])&&(l+="active"),v(f[e],o)&&(l+=" now"),b(f[e])||(l+=" disabled"),c.push(l)}a.classes=c},a.next=function(e){var n=t(a.date);switch(e=e||1,a.view){case"year":case"month":n.year(n.year()+e);break;case"date":n.month(n.month()+e);break;case"hours":case"minutes":n.hours(n.hours()+e)}(n=g(n))&&(a.date=n,f(n,!1),x=!0,d())},b=function(e){var t=!0;return k&&k.isAfter(e)&&(t=m(k,e)),$&&$.isBefore(e)&&(t&=m($,e)),t},m=function(e,t){return!!e.isSame(t,n.momentNames[a.view])},g=function(e){return k&&k.isAfter(e)?k:$&&$.isBefore(e)?$:e},v=function(e,t){var n=!0;switch(t){case"minutes":n&=~~(C.minutes()/A)==~~(e.minutes()/A);case"hours":n&=C.hours()===e.hours();case"date":n&=C.date()===e.date();case"month":n&=C.month()===e.month();case"year":n&=C.year()===e.year()}return n},a.prev=function(e){return a.next(-e||-1)},T&&a.$on("pickerUpdate",function(t,n,r){if(w(n,T)){var i=!1,o=!1;e.isDefined(r.minDate)&&(k=!!r.minDate&&r.minDate,o=!0),e.isDefined(r.maxDate)&&($=!!r.maxDate&&r.maxDate,o=!0),e.isDefined(r.minView)&&(s.minView=r.minView,i=!0),e.isDefined(r.maxView)&&(s.maxView=r.maxView,i=!0),e.isDefined(r.timezone)&&(M=a.tz=r.timezone,o=!0),s.view=r.view||s.view,i&&l(),o&&d()}})}}}]),e.module("datePicker").factory("datePickerUtils",function(){var n,r,i=function(e,r,i,a,o){var s=Date.UTC(0|e,0|r,0|i,0|a,0|o);return n?t.tz(s,n):t(s)};return{getVisibleMinutes:function(e,t){var n,r,a=e.year(),o=e.month(),s=e.date(),c=e.hours(),l=e.utcOffset()/60,u=[];for(r=0;r<60;r+=t)n=i(a,o,s,c-l,r),u.push(n);return u},getVisibleWeeks:function(e){e=t(e);var n=e.year(),i=e.month();e.date(1);var a=e.day();e.date(r-(a+(r>=a?6:-1)));for(var o=[];o.length<6&&!(e.year()===n&&e.month()>i);)o.push(this.getDaysOfWeek(e)),e.add(7,"d");return o},getVisibleYears:function(e){var n=t(e),r=n.year();n.year(r-r%10),r=n.year();for(var a,o,s=n.utcOffset()/60,c=[],l=0;l<12;l++)a=i(r,0,1,0-s),o=a.utcOffset()/60,o!==s&&(a=i(r,0,1,0-o),s=o),c.push(a),r++;return c},getDaysOfWeek:function(e){e=e||(n?t.tz(n).day(r):t().day(r));for(var a,o,s=e.year(),c=e.month(),l=e.date(),u=[],d=e.utcOffset()/60,p=0;p<7;p++)a=i(s,c,l,0-d,0),o=a.utcOffset()/60,o!==d&&(a=i(s,c,l,0-o,0)),u.push(a),l++;return u},getVisibleMonths:function(e){for(var t,n,r=e.year(),a=e.utcOffset()/60,o=[],s=0;s<12;s++)t=i(r,s,1,0-a,0),n=t.utcOffset()/60,n!==a&&(t=i(r,s,1,0-n,0)),o.push(t);return o},getVisibleHours:function(e){var t,n,r,a=e.year(),o=e.month(),s=e.date(),c=[],l=e.utcOffset()/60;for(t=0;t<24;t++)n=i(a,o,s,t-l,0),r=n.utcOffset()/60,r!==l&&(n=i(a,o,s,t-r,0)),c.push(n);return c},isAfter:function(e,t){return e&&e.unix()>=t.unix()},isBefore:function(e,t){return e.unix()<=t.unix()},isSameYear:function(e,t){return e&&e.year()===t.year()},isSameMonth:function(e,t){return this.isSameYear(e,t)&&e.month()===t.month()},isSameDay:function(e,t){return this.isSameMonth(e,t)&&e.date()===t.date()},isSameHour:function(e,t){return this.isSameDay(e,t)&&e.hours()===t.hours()},isSameMinutes:function(e,t){return this.isSameHour(e,t)&&e.minutes()===t.minutes()},setParams:function(e,t){n=e,r=t},scopeSearch:function(e,t,n){var r,i,a=e,o=t.split("."),s=o.length;do{for(r=a=a.$parent,i=0;i<s;i++){r=r[o[i]]}if(r&&n(r))return r}while(a.$parent);return!1},findFunction:function(t,n){return this.scopeSearch(t,n,function(t){return e.isFunction(t)})},findParam:function(e,t){return this.scopeSearch(e,t,function(){return!0})},createMoment:function(e){return n?t.tz(e,n):t.isMoment(e)?t.unix(e.unix()):t(e)},getDate:function(e,t,n){var r=!1;return t[n]&&(r=this.createMoment(t[n]),r.isValid()||(r=this.findParam(e,t[n]))&&(r=this.createMoment(r))),r},eventIsForPicker:function(t,n){function r(e){return e instanceof RegExp?e.test(n):e===n}return e.isArray(t)?t.some(r):r(t)}}});var n=e.module("datePicker");n.directive("dateRange",["$compile","datePickerUtils","dateTimeConfig",function(n,r,i){function a(n,r,a,o,s){return i.template(e.extend(n,{ngModel:a,minDate:!(!o||!t.isMoment(o))&&o.format(),maxDate:!(!s||!t.isMoment(s))&&s.format()}),r)}function o(){return"picker"+Math.random().toString().substr(2)}return{scope:{start:"=",end:"="},link:function(t,i,s){function c(e){t.$broadcast("pickerUpdate",p[0],{maxDate:e})}function l(e){t.$broadcast("pickerUpdate",p[1],{minDate:e})}var u=null,d=i[0].id,p=[o(),o()],f=r.createMoment,h=r.eventIsForPicker;t.dateChange=function(e,t){u&&u(e,t)},d&&t.$on("pickerUpdate",function(e,n,r){h(n,d)&&t.$broadcast("pickerUpdate",p,r)}),r.setParams(s.timezone),t.start=f(t.start),t.end=f(t.end),t.$watchGroup(["start","end"],function(e){l(e[0]),c(e[1])}),e.isDefined(s.dateChange)&&(u=r.findFunction(t,s.dateChange)),s.onSetDate="dateChange";var m='<div><table class="date-range"><tr><td valign="top">'+a(s,p[0],"start",!1,t.end)+'</td><td valign="top">'+a(s,p[1],"end",t.start,!1)+"</td></tr></table></div>",g=n(m)(t);i.append(g)}}}]);var n=e.module("datePicker");n.constant("dateTimeConfig",{template:function(e,t){return"<div "+(t?'id="'+t+'" ':"")+'date-picker="'+e.ngModel+'" '+(e.view?'view="'+e.view+'" ':"")+(e.maxView?'max-view="'+e.maxView+'" ':"")+(e.maxDate?'max-date="'+e.maxDate+'" ':"")+(e.autoClose?'auto-close="'+e.autoClose+'" ':"")+(e.template?'template="'+e.template+'" ':"")+(e.minView?'min-view="'+e.minView+'" ':"")+(e.minDate?'min-date="'+e.minDate+'" ':"")+(e.partial?'partial="'+e.partial+'" ':"")+(e.step?'step="'+e.step+'" ':"")+(e.onSetDate?'date-change="'+e.onSetDate+'" ':"")+(e.ngModel?'ng-model="'+e.ngModel+'" ':"")+(e.firstDay?'first-day="'+e.firstDay+'" ':"")+(e.timezone?'timezone="'+e.timezone+'" ':"")+(e.highlights?'highlights="'+e.highlights+'" ':"")+'class="date-picker-date-time"></div>'},format:"YYYY-MM-DD HH:mm",views:["date","year","month","hours","minutes"],autoClose:!1,position:"relative"}),n.directive("dateTimeAppend",function(){return{link:function(e,t){t.bind("click",function(){t.find("input")[0].focus()})}}}),n.directive("dateTime",["$compile","$document","$filter","dateTimeConfig","$parse","datePickerUtils","$interpolate",function(n,r,i,a,o,s,c){var l=r.find("body"),u=i("mFormat");return{require:"ngModel",scope:!0,link:function(r,i,d,p){function f(e){if(e)return u(e,_,I)}function h(e){if(!e)return"";var n=t(e,_);return n.isValid()?n:void 0}
20function m(e){z=e,d.minDate=e?e.format():e,L=t.isMoment(e)}function g(e){N=e,d.maxDate=e?e.format():e,P=t.isMoment(e)}function v(){M=a.template(d)}function b(e){e.stopPropagation(),p.$pristine&&(p.$dirty=!0,p.$pristine=!1,i.removeClass("ng-pristine").addClass("ng-dirty"),w&&w.$setDirty(),p.$render())}function y(){T&&(T.remove(),T=null),O&&(O.remove(),O=null)}function x(){if(!T){if(T=n(M)(r),r.$digest(),j||(r.$on("setDate",function(e,t,n,r){b(e),R&&R(d.ngModel,t,r),$&&A[A.length-1]===n&&y()}),r.$on("hidePicker",function(){i.triggerHandler("blur")}),r.$on("$destroy",y),j=!0),"absolute"===E){var t=i[0].getBoundingClientRect(),a=t.height||i[0].offsetHeight;T.css({top:t.top+a+"px",left:t.left+"px",display:"block",position:E}),l.append(T)}else O=e.element("<div date-picker-wrapper></div>"),i[0].parentElement.insertBefore(O[0],i[0]),O.append(T),T.css({top:i[0].offsetHeight+"px",display:"block"});T.bind("mousedown",function(e){e.preventDefault()})}}var M,_=d.format||a.format,w=i.inheritedData("$formController"),A=o(d.views)(r)||a.views.concat(),S=d.view||A[0],k=A.indexOf(S),$=d.autoClose?o(d.autoClose)(r):a.autoClose,T=null,C=c(i[0].id)(r),E=d.position||a.position,O=null,z=null,L=null,N=null,P=null,I=d.timezone||!1,D=s.eventIsForPicker,R=null,j=!1;-1===k&&A.splice(k,1),A.unshift(S),p.$formatters.push(f),p.$parsers.unshift(h),e.isDefined(d.minDate)&&(m(s.findParam(r,d.minDate)),p.$validators.min=function(e){return!L||t.isMoment(e)&&(z.isSame(e)||z.isBefore(e))}),e.isDefined(d.maxDate)&&(g(s.findParam(r,d.maxDate)),p.$validators.max=function(e){return!P||t.isMoment(e)&&(N.isSame(e)||N.isAfter(e))}),e.isDefined(d.dateChange)&&(R=s.findFunction(r,d.dateChange)),C&&r.$on("pickerUpdate",function(t,n,r){if(D(n,C))if(T);else{var i=!1;e.isDefined(r.minDate)&&(m(r.minDate),i=!0),e.isDefined(r.maxDate)&&(g(r.maxDate),i=!0),e.isDefined(r.minView)&&(d.minView=r.minView),e.isDefined(r.maxView)&&(d.maxView=r.maxView),e.isDefined(r.timezone)&&(I=d.timezone=r.timezone,i=!0),d.view=r.view||d.view,i&&p.$validate(),e.isDefined(r.format)&&(_=d.format=r.format||a.format,p.$modelValue=-1),v()}}),i.bind("focus",x),i.bind("blur",y),v()}}}]),e.module("datePicker").run(["$templateCache",function(e){e.put("templates/datepicker.html",'<div ng-switch="view">\n <div ng-switch-when="date">\n <table>\n <thead>\n <tr>\n <th ng-click="prev()">&lsaquo;</th>\n <th colspan="5" class="switch" ng-click="setView(\'month\')" ng-bind="date|mFormat:\'YYYY MMMM\':tz"></th>\n <th ng-click="next()">&rsaquo;</i></th>\n </tr>\n <tr>\n <th ng-repeat="day in weekdays" style="overflow: hidden" ng-bind="day|mFormat:\'ddd\':tz"></th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="week in weeks" ng-init="$index2 = $index">\n <td ng-repeat="day in week">\n <span\n ng-class="classes[$index2][$index]"\n ng-click="selectDate(day)" ng-bind="day|mFormat:\'DD\':tz"></span>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div ng-switch-when="year">\n <table>\n <thead>\n <tr>\n <th ng-click="prev(10)">&lsaquo;</th>\n <th colspan="5" class="switch"ng-bind="years[0].year()+\' - \'+years[years.length-1].year()"></th>\n <th ng-click="next(10)">&rsaquo;</i></th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td colspan="7">\n <span ng-class="classes[$index]"\n ng-repeat="year in years"\n ng-click="selectDate(year)" ng-bind="year.year()"></span>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div ng-switch-when="month">\n <table>\n <thead>\n <tr>\n <th ng-click="prev()">&lsaquo;</th>\n <th colspan="5" class="switch" ng-click="setView(\'year\')" ng-bind="date|mFormat:\'YYYY\':tz"></th>\n <th ng-click="next()">&rsaquo;</i></th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td colspan="7">\n <span ng-repeat="month in months"\n ng-class="classes[$index]"\n ng-click="selectDate(month)"\n ng-bind="month|mFormat:\'MMM\':tz"></span>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div ng-switch-when="hours">\n <table>\n <thead>\n <tr>\n <th ng-click="prev(24)">&lsaquo;</th>\n <th colspan="5" class="switch" ng-click="setView(\'date\')" ng-bind="date|mFormat:\'DD MMMM YYYY\':tz"></th>\n <th ng-click="next(24)">&rsaquo;</i></th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td colspan="7">\n <span ng-repeat="hour in hours"\n ng-class="classes[$index]"\n ng-click="selectDate(hour)" ng-bind="hour|mFormat:\'HH:mm\':tz"></span>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <div ng-switch-when="minutes">\n <table>\n <thead>\n <tr>\n <th ng-click="prev()">&lsaquo;</th>\n <th colspan="5" class="switch" ng-click="setView(\'hours\')" ng-bind="date|mFormat:\'DD MMMM YYYY\':tz"></th>\n <th ng-click="next()">&rsaquo;</i></th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td colspan="7">\n <span ng-repeat="minute in minutes"\n ng-class="classes[$index]"\n ng-click="selectDate(minute)"\n ng-bind="minute|mFormat:\'HH:mm\':tz"></span>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n</div>')}])})},{angular:263,moment:564}],251:[function(e,t,n){angular.module("gettext",[]),angular.module("gettext").constant("gettext",function(e){return e}),angular.module("gettext").factory("gettextCatalog",["gettextPlurals","$http","$cacheFactory","$interpolate","$rootScope",function(e,t,n,r,i){function a(){i.$broadcast("gettextLanguageChanged")}var o,s='<span id="test" title="test" class="tested">test</span>',c=angular.element("<span>"+s+"</span>").html()!==s,l=function(e){return o.debug&&o.currentLanguage!==o.baseLanguage?o.debugPrefix+e:e},u=function(e){return o.showTranslatedMarkers?o.translatedMarkerPrefix+e+o.translatedMarkerSuffix:e};return o={debug:!1,debugPrefix:"[MISSING]: ",showTranslatedMarkers:!1,translatedMarkerPrefix:"[",translatedMarkerSuffix:"]",strings:{},baseLanguage:"en",currentLanguage:"en",cache:n("strings"),setCurrentLanguage:function(e){this.currentLanguage=e,a()},getCurrentLanguage:function(){return this.currentLanguage},setStrings:function(e,t){this.strings[e]||(this.strings[e]={});for(var n in t){var r=t[n];if(c&&(n=angular.element("<span>"+n+"</span>").html()),angular.isString(r)||angular.isArray(r)){var i={};i.$$noContext=r,r=i}for(var o in r){var s=r[o];r[o]=angular.isArray(s)?s:[s]}this.strings[e][n]=r}a()},getStringForm:function(e,t,n){return(((this.strings[this.currentLanguage]||{})[e]||{})[n||"$$noContext"]||[])[t]},getString:function(e,t,n){return e=this.getStringForm(e,0,n)||l(e),e=t?r(e)(t):e,u(e)},getPlural:function(t,n,i,a,o){var s=e(this.currentLanguage,t);return n=this.getStringForm(n,s,o)||l(1===t?n:i),a&&(a.$count=t,n=r(n)(a)),u(n)},loadRemote:function(e){return t({method:"GET",url:e,cache:o.cache}).then(function(e){var t=e.data;for(var n in t)o.setStrings(n,t[n]);return e})}}}]),angular.module("gettext").directive("translate",["gettextCatalog","$parse","$animate","$compile","$window",function(e,t,n,r,i){function a(e,t,n){if(!e)throw new Error("You should add a "+t+" attribute whenever you add a "+n+" attribute.")}var o=function(){return String.prototype.trim?function(e){return"string"==typeof e?e.trim():e}:function(e){return"string"==typeof e?e.replace(/^\s*/,"").replace(/\s*$/,""):e}}(),s=parseInt((/msie (\d+)/.exec(angular.lowercase(i.navigator.userAgent))||[])[1],10);return{restrict:"AE",terminal:!0,compile:function(i,c){a(!c.translatePlural||c.translateN,"translate-n","translate-plural"),a(!c.translateN||c.translatePlural,"translate-plural","translate-n");var l=o(i.html()),u=c.translatePlural,d=c.translateContext;return s<=8&&"\x3c!--IE fix--\x3e"===l.slice(-13)&&(l=l.slice(0,-13)),{post:function(i,a,s){function c(){var t;u?(i=f||(f=i.$new()),i.$count=p(i),t=e.getPlural(i.$count,l,u,null,d)):t=e.getString(l,null,d);var s=a.contents();if(0!==s.length){if(t===o(s.html()))return void(h&&r(s)(i));var c=angular.element("<span>"+t+"</span>");r(c.contents())(i);var m=c.contents();n.enter(m,a),n.leave(s)}}var p=t(s.translateN),f=null,h=!0;s.translateN&&i.$watch(s.translateN,c),i.$on("gettextLanguageChanged",c),c(),h=!1}}}}}]),angular.module("gettext").filter("translate",["gettextCatalog",function(e){function t(t,n){return e.getString(t,null,n)}return t.$stateful=!0,t}]),angular.module("gettext").factory("gettextPlurals",function(){return function(e,t){switch(e){case"ay":case"bo":case"cgg":case"dz":case"fa":case"id":case"ja":case"jbo":case"ka":case"kk":case"km":case"ko":case"ky":case"lo":case"ms":case"my":case"sah":case"su":case"th":case"tt":case"ug":case"vi":case"wo":case"zh":return 0;case"is":return t%10!=1||t%100==11?1:0;case"jv":return 0!=t?1:0;case"mk":return 1==t||t%10==1?0:1;case"ach":case"ak":case"am":case"arn":case"br":case"fil":case"fr":case"gun":case"ln":case"mfe":case"mg":case"mi":case"oc":case"pt_BR":case"tg":case"ti":case"tr":case"uz":case"wa":case"zh":return t>1?1:0;case"lv":return t%10==1&&t%100!=11?0:0!=t?1:2;case"lt":return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2;case"be":case"bs":case"hr":case"ru":case"sr":case"uk":return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2;case"mnk":return 0==t?0:1==t?1:2;case"ro":return 1==t?0:0==t||t%100>0&&t%100<20?1:2;case"pl":return 1==t?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2;case"cs":case"sk":return 1==t?0:t>=2&&t<=4?1:2;case"sl":return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0;case"mt":return 1==t?0:0==t||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3;case"gd":return 1==t||11==t?0:2==t||12==t?1:t>2&&t<20?2:3;case"cy":return 1==t?0:2==t?1:8!=t&&11!=t?2:3;case"kw":return 1==t?0:2==t?1:3==t?2:3;case"ga":return 1==t?0:2==t?1:t<7?2:t<11?3:4;case"ar":return 0==t?0:1==t?1:2==t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5;default:return 1!=t?1:0}}})},{}],252:[function(e,t,n){angular.module("md5",[]).constant("md5",function(){function e(e){return n(t(r(e)))}function t(e){return a(o(i(e),8*e.length))}function n(e){for(var t,n=h?"0123456789ABCDEF":"0123456789abcdef",r="",i=0;i<e.length;i++)t=e.charCodeAt(i),r+=n.charAt(t>>>4&15)+n.charAt(15&t);return r}function r(e){for(var t,n,r="",i=-1;++i<e.length;)t=e.charCodeAt(i),n=i+1<e.length?e.charCodeAt(i+1):0,55296<=t&&t<=56319&&56320<=n&&n<=57343&&(t=65536+((1023&t)<<10)+(1023&n),i++),t<=127?r+=String.fromCharCode(t):t<=2047?r+=String.fromCharCode(192|t>>>6&31,128|63&t):t<=65535?r+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|63&t):t<=2097151&&(r+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|63&t));return r}function i(e){for(var t=Array(e.length>>2),n=0;n<t.length;n++)t[n]=0;for(var n=0;n<8*e.length;n+=8)t[n>>5]|=(255&e.charCodeAt(n/8))<<n%32;return t}function a(e){for(var t="",n=0;n<32*e.length;n+=8)t+=String.fromCharCode(e[n>>5]>>>n%32&255);return t}function o(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=1732584193,r=-271733879,i=-1732584194,a=271733878,o=0;o<e.length;o+=16){var s=n,f=r,h=i,m=a;n=c(n,r,i,a,e[o+0],7,-680876936),a=c(a,n,r,i,e[o+1],12,-389564586),i=c(i,a,n,r,e[o+2],17,606105819),r=c(r,i,a,n,e[o+3],22,-1044525330),n=c(n,r,i,a,e[o+4],7,-176418897),a=c(a,n,r,i,e[o+5],12,1200080426),i=c(i,a,n,r,e[o+6],17,-1473231341),r=c(r,i,a,n,e[o+7],22,-45705983),n=c(n,r,i,a,e[o+8],7,1770035416),a=c(a,n,r,i,e[o+9],12,-1958414417),i=c(i,a,n,r,e[o+10],17,-42063),r=c(r,i,a,n,e[o+11],22,-1990404162),n=c(n,r,i,a,e[o+12],7,1804603682),a=c(a,n,r,i,e[o+13],12,-40341101),i=c(i,a,n,r,e[o+14],17,-1502002290),r=c(r,i,a,n,e[o+15],22,1236535329),n=l(n,r,i,a,e[o+1],5,-165796510),a=l(a,n,r,i,e[o+6],9,-1069501632),i=l(i,a,n,r,e[o+11],14,643717713),r=l(r,i,a,n,e[o+0],20,-373897302),n=l(n,r,i,a,e[o+5],5,-701558691),a=l(a,n,r,i,e[o+10],9,38016083),i=l(i,a,n,r,e[o+15],14,-660478335),r=l(r,i,a,n,e[o+4],20,-405537848),n=l(n,r,i,a,e[o+9],5,568446438),a=l(a,n,r,i,e[o+14],9,-1019803690),i=l(i,a,n,r,e[o+3],14,-187363961),r=l(r,i,a,n,e[o+8],20,1163531501),n=l(n,r,i,a,e[o+13],5,-1444681467),a=l(a,n,r,i,e[o+2],9,-51403784),i=l(i,a,n,r,e[o+7],14,1735328473),r=l(r,i,a,n,e[o+12],20,-1926607734),n=u(n,r,i,a,e[o+5],4,-378558),a=u(a,n,r,i,e[o+8],11,-2022574463),i=u(i,a,n,r,e[o+11],16,1839030562),r=u(r,i,a,n,e[o+14],23,-35309556),n=u(n,r,i,a,e[o+1],4,-1530992060),a=u(a,n,r,i,e[o+4],11,1272893353),i=u(i,a,n,r,e[o+7],16,-155497632),r=u(r,i,a,n,e[o+10],23,-1094730640),n=u(n,r,i,a,e[o+13],4,681279174),a=u(a,n,r,i,e[o+0],11,-358537222),i=u(i,a,n,r,e[o+3],16,-722521979),r=u(r,i,a,n,e[o+6],23,76029189),n=u(n,r,i,a,e[o+9],4,-640364487),a=u(a,n,r,i,e[o+12],11,-421815835),i=u(i,a,n,r,e[o+15],16,530742520),r=u(r,i,a,n,e[o+2],23,-995338651),n=d(n,r,i,a,e[o+0],6,-198630844),a=d(a,n,r,i,e[o+7],10,1126891415),i=d(i,a,n,r,e[o+14],15,-1416354905),r=d(r,i,a,n,e[o+5],21,-57434055),n=d(n,r,i,a,e[o+12],6,1700485571),a=d(a,n,r,i,e[o+3],10,-1894986606),i=d(i,a,n,r,e[o+10],15,-1051523),r=d(r,i,a,n,e[o+1],21,-2054922799),n=d(n,r,i,a,e[o+8],6,1873313359),a=d(a,n,r,i,e[o+15],10,-30611744),i=d(i,a,n,r,e[o+6],15,-1560198380),r=d(r,i,a,n,e[o+13],21,1309151649),n=d(n,r,i,a,e[o+4],6,-145523070),a=d(a,n,r,i,e[o+11],10,-1120210379),i=d(i,a,n,r,e[o+2],15,718787259),r=d(r,i,a,n,e[o+9],21,-343485551),n=p(n,s),r=p(r,f),i=p(i,h),a=p(a,m)}return Array(n,r,i,a)}function s(e,t,n,r,i,a){return p(f(p(p(t,e),p(r,a)),i),n)}function c(e,t,n,r,i,a,o){return s(t&n|~t&r,e,t,i,a,o)}function l(e,t,n,r,i,a,o){return s(t&r|n&~r,e,t,i,a,o)}function u(e,t,n,r,i,a,o){return s(t^n^r,e,t,i,a,o)}function d(e,t,n,r,i,a,o){return s(n^(t|~r),e,t,i,a,o)}function p(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function f(e,t){return e<<t|e>>>32-t}var h=0;return e}()),function(){var e;e=function(e){return["gravatarService",function(t){var n;return n=function(e,t){var n,r,i;r={};for(n in t)i=t[n],0===n.indexOf(e)&&(n=n.substr(e.length).toLowerCase(),n.length>0&&(r[n]=i));return r},{restrict:"A",link:function(r,i,a){var o,s,c,l;o=e?"gravatarSrcOnce":"gravatarSrc",s=a[o],delete a[o],c=n("gravatar",a),l=r.$watch(s,function(n){if(i.attr("src",t.url(n,c)),e){if(null==n)return;l()}})}}}]},angular.module("ui.gravatar",["md5"]).provider("gravatarService",["md5",function(e){var t,n,r;return n=this,t=/^[0-9a-f]{32}$/i,r=function(e){var t,n,r;n=[];for(t in e)r=e[t],n.push(t+"="+encodeURIComponent(r));return n.join("&")},this.defaults={},this.secure=!1,this.protocol=null,this.urlFunc=function(n){var i,a,o,s,c;return o=n.protocol?n.protocol+":":"",c=n.secure?"https://secure":o+"//www",s=t.test(n.src)?n.src:e(n.src),a=[c,".gravatar.com/avatar/",s],i=r(n.params),i.length>0&&a.push("?"+i),a.join("")},this.$get=[function(){return{url:function(e,t){return null==e&&(e=""),null==t&&(t={}),n.urlFunc({params:angular.extend(angular.copy(n.defaults),t),protocol:n.protocol,secure:n.secure,src:e})}}}],this}]).directive("gravatarSrc",e()).directive("gravatarSrcOnce",e(!0))}.call(this)},{}],253:[function(e,t,n){!function(){"use strict";angular.module("angular-loading-bar",["cfp.loadingBarInterceptor"]),angular.module("chieffancypants.loadingBar",["cfp.loadingBarInterceptor"]),angular.module("cfp.loadingBarInterceptor",["cfp.loadingBar"]).config(["$httpProvider",function(e){var t=["$q","$cacheFactory","$timeout","$rootScope","$log","cfpLoadingBar",function(t,n,r,i,a,o){function s(){r.cancel(l),o.complete(),d=0,u=0}function c(t){var r,i=n.get("$http"),a=e.defaults;!t.cache&&!a.cache||!1===t.cache||"GET"!==t.method&&"JSONP"!==t.method||(r=angular.isObject(t.cache)?t.cache:angular.isObject(a.cache)?a.cache:i);var o=void 0!==r&&void 0!==r.get(t.url);return void 0!==t.cached&&o!==t.cached?t.cached:(t.cached=o,o)}var l,u=0,d=0,p=o.latencyThreshold;return{request:function(e){return e.ignoreLoadingBar||c(e)||(i.$broadcast("cfpLoadingBar:loading",{url:e.url}),0===u&&(l=r(function(){o.start()},p)),u++,o.set(d/u)),e},response:function(e){return e&&e.config?(e.config.ignoreLoadingBar||c(e.config)||(d++,i.$broadcast("cfpLoadingBar:loaded",{url:e.config.url,result:e}),d>=u?s():o.set(d/u)),e):(a.error("Broken interceptor detected: Config object not supplied in response:\n https://github.com/chieffancypants/angular-loading-bar/pull/50"),e)},responseError:function(e){return e&&e.config?(e.config.ignoreLoadingBar||c(e.config)||(d++,i.$broadcast("cfpLoadingBar:loaded",{url:e.config.url,result:e}),d>=u?s():o.set(d/u)),t.reject(e)):(a.error("Broken interceptor detected: Config object not supplied in rejection:\n https://github.com/chieffancypants/angular-loading-bar/pull/50"),t.reject(e))}}}];e.interceptors.push(t)}]),angular.module("cfp.loadingBar",[]).provider("cfpLoadingBar",function(){this.includeSpinner=!0,this.includeBar=!0,this.latencyThreshold=100,this.startSize=.02,this.parentSelector="body",this.spinnerTemplate='<div id="loading-bar-spinner"><div class="spinner-icon"></div></div>',this.loadingBarTemplate='<div id="loading-bar"><div class="bar"><div class="peg"></div></div></div>',this.$get=["$injector","$document","$timeout","$rootScope",function(e,t,n,r){function i(){u||(u=e.get("$animate"));var i=t.find(f).eq(0);n.cancel(p),v||(r.$broadcast("cfpLoadingBar:started"),v=!0,x&&u.enter(h,i,angular.element(i[0].lastChild)),y&&u.enter(g,i,angular.element(i[0].lastChild)),a(M))}function a(e){if(v){var t=100*e+"%";m.css("width",t),b=e,n.cancel(d),d=n(function(){o()},250)}}function o(){if(!(s()>=1)){var e=0,t=s();e=t>=0&&t<.25?(3*Math.random()+3)/100:t>=.25&&t<.65?3*Math.random()/100:t>=.65&&t<.9?2*Math.random()/100:t>=.9&&t<.99?.005:0;a(s()+e)}}function s(){return b}function c(){b=0,v=!1}function l(){u||(u=e.get("$animate")),r.$broadcast("cfpLoadingBar:completed"),a(1),n.cancel(p),p=n(function(){var e=u.leave(h,c);e&&e.then&&e.then(c),u.leave(g)},500)}var u,d,p,f=this.parentSelector,h=angular.element(this.loadingBarTemplate),m=h.find("div").eq(0),g=angular.element(this.spinnerTemplate),v=!1,b=0,y=this.includeSpinner,x=this.includeBar,M=this.startSize;return{start:i,set:a,status:s,inc:o,complete:l,includeSpinner:this.includeSpinner,latencyThreshold:this.latencyThreshold,parentSelector:this.parentSelector,startSize:this.startSize}}]})}()},{}],254:[function(e,t,n){!function(e,t,n){"use strict";!function(){t.module("ngMaterial",["ng","ngAnimate","ngAria","material.core","material.core.gestures","material.core.interaction","material.core.layout","material.core.meta","material.core.theming.palette","material.core.theming","material.core.animate","material.components.autocomplete","material.components.backdrop","material.components.bottomSheet","material.components.button","material.components.card","material.components.checkbox","material.components.chips","material.components.colors","material.components.content","material.components.datepicker","material.components.dialog","material.components.divider","material.components.fabActions","material.components.fabShared","material.components.fabSpeedDial","material.components.fabToolbar","material.components.gridList","material.components.icon","material.components.input","material.components.list","material.components.menu","material.components.menuBar","material.components.navBar","material.components.panel","material.components.progressCircular","material.components.progressLinear","material.components.radioButton","material.components.showHide","material.components.select","material.components.sidenav","material.components.slider","material.components.sticky","material.components.subheader","material.components.swipe","material.components.switch","material.components.tabs","material.components.toast","material.components.toolbar","material.components.tooltip","material.components.truncate","material.components.virtualRepeat","material.components.whiteframe"])}(),function(){function e(e,t){if(t.has("$swipe")){e.warn("You are using the ngTouch module. \nAngularJS Material already has mobile click, tap, and swipe support... \nngTouch is not supported with AngularJS Material!")}}function n(e,t){e.decorator("$$rAF",["$delegate",r]),e.decorator("$q",["$delegate",i]),t.theme("default").primaryPalette("indigo").accentPalette("pink").warnPalette("deep-orange").backgroundPalette("grey")}function r(e){return e.throttle=function(t){var n,r,i,a;return function(){n=arguments,a=this,i=t,r||(r=!0,e(function(){i.apply(a,Array.prototype.slice.call(n)),r=!1}))}},e}function i(e){return e.resolve||(e.resolve=e.when),e}i.$inject=["$delegate"],r.$inject=["$delegate"],e.$inject=["$log","$injector"],n.$inject=["$provide","$mdThemingProvider"],e.$inject=["$log","$injector"],n.$inject=["$provide","$mdThemingProvider"],r.$inject=["$delegate"],i.$inject=["$delegate"],t.module("material.core",["ngAnimate","material.core.animate","material.core.layout","material.core.interaction","material.core.gestures","material.core.theming"]).config(n).run(e)}(),function(){function e(e){function n(n,r,i){function a(e){t.isUndefined(e)&&(e=!0),r.toggleClass("md-autofocus",!!e)}var o=i.mdAutoFocus||i.mdAutofocus||i.mdSidenavFocus;a(e(o)(n)),o&&n.$watch(o,a)}return{restrict:"A",link:{pre:n}}}e.$inject=["$parse"],e.$inject=["$parse"],t.module("material.core").directive("mdAutofocus",e).directive("mdAutoFocus",e).directive("mdSidenavFocus",e)}(),function(){function e(){function e(e){var t="#"===e[0]?e.substr(1):e,n=t.length/3,r=t.substr(0,n),i=t.substr(n,n),a=t.substr(2*n);return 1===n&&(r+=r,i+=i,a+=a),"rgba("+parseInt(r,16)+","+parseInt(i,16)+","+parseInt(a,16)+",0.1)"}function t(e){return e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i),(e&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):"").toUpperCase()}function n(e){return e.replace(")",", 0.1)").replace("(","a(")}function r(e){return e?e.replace("rgba","rgb").replace(/,[^),]+\)/,")"):"rgb(0,0,0)"}return{rgbaToHex:t,hexToRgba:e,rgbToRgba:n,rgbaToRgb:r}}t.module("material.core").factory("$mdColorUtil",e)}(),function(){function e(){function e(e){var t=a+"-"+e,o=r(t),s=o.charAt(0).toLowerCase()+o.substring(1);return n(i,e)?e:n(i,o)?o:n(i,s)?s:e}function n(e,n){return t.isDefined(e.style[n])}function r(e){return e.replace(s,function(e,t,n,r){return r?n.toUpperCase():n})}var i=document.createElement("div"),a=function(e){var t,n,r=/^(Moz|webkit|ms)(?=[A-Z])/;for(t in e.style)if(n=r.exec(t))return n[0]}(i),o=/webkit/i.test(a),s=/([:\-_]+(.))/g,c={isInputKey:function(e){return e.keyCode>=31&&e.keyCode<=90},isNumPadKey:function(e){return 3===e.location&&e.keyCode>=97&&e.keyCode<=105},isMetaKey:function(e){return e.keyCode>=91&&e.keyCode<=93},isFnLockKey:function(e){return e.keyCode>=112&&e.keyCode<=145},isNavigationKey:function(e){var t=c.KEY_CODE;return-1!=[t.SPACE,t.ENTER,t.UP_ARROW,t.DOWN_ARROW].indexOf(e.keyCode)},hasModifierKey:function(e){return e.ctrlKey||e.metaKey||e.altKey},ELEMENT_MAX_PIXELS:1533917,BEFORE_NG_ARIA:210,KEY_CODE:{COMMA:188,SEMICOLON:186,ENTER:13,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT_ARROW:37,UP_ARROW:38,RIGHT_ARROW:39,DOWN_ARROW:40,TAB:9,BACKSPACE:8,DELETE:46},CSS:{TRANSITIONEND:"transitionend"+(o?" webkitTransitionEnd":""),ANIMATIONEND:"animationend"+(o?" webkitAnimationEnd":""),TRANSFORM:e("transform"),TRANSFORM_ORIGIN:e("transformOrigin"),TRANSITION:e("transition"),TRANSITION_DURATION:e("transitionDuration"),ANIMATION_PLAY_STATE:e("animationPlayState"),ANIMATION_DURATION:e("animationDuration"),ANIMATION_NAME:e("animationName"),ANIMATION_TIMING:e("animationTimingFunction"),ANIMATION_DIRECTION:e("animationDirection")},MEDIA:{xs:"(max-width: 599px)","gt-xs":"(min-width: 600px)",sm:"(min-width: 600px) and (max-width: 959px)","gt-sm":"(min-width: 960px)",md:"(min-width: 960px) and (max-width: 1279px)","gt-md":"(min-width: 1280px)",lg:"(min-width: 1280px) and (max-width: 1919px)","gt-lg":"(min-width: 1920px)",xl:"(min-width: 1920px)",landscape:"(orientation: landscape)",portrait:"(orientation: portrait)",print:"print"},MEDIA_PRIORITY:["xl","gt-lg","lg","gt-md","md","gt-sm","sm","gt-xs","xs","landscape","portrait","print"]};return c}t.module("material.core").factory("$mdConstant",e)}(),function(){function e(e,n){function r(){return[].concat(b)}function i(){return b.length}function a(e){return b.length&&e>-1&&e<b.length}function o(e){return!!e&&a(p(e)+1)}function s(e){return!!e&&a(p(e)-1)}function c(e){return a(e)?b[e]:null}function l(e,t){return b.filter(function(n){return n[e]===t})}function u(e,n){return e?(t.isNumber(n)||(n=b.length),b.splice(n,0,e),p(e)):-1}function d(e){f(e)&&b.splice(p(e),1)}function p(e){return b.indexOf(e)}function f(e){return e&&p(e)>-1}function h(){return b.length?b[0]:null}function m(){return b.length?b[b.length-1]:null}function g(e,r,i,o){i=i||v;for(var s=p(r);;){if(!a(s))return null;var c=s+(e?-1:1),l=null;if(a(c)?l=b[c]:n&&(l=e?m():h(),c=p(l)),null===l||c===o)return null;if(i(l))return l;t.isUndefined(o)&&(o=c),s=c}}var v=function(){return!0};e&&!t.isArray(e)&&(e=Array.prototype.slice.call(e)),n=!!n;var b=e||[];return{items:r,count:i,inRange:a,contains:f,indexOf:p,itemAt:c,findBy:l,add:u,remove:d,first:h,last:m,next:t.bind(null,g,!1),previous:t.bind(null,g,!0),hasPrevious:s,hasNext:o}}t.module("material.core").config(["$provide",function(t){t.decorator("$mdUtil",["$delegate",function(t){return t.iterator=e,t}])}])}(),function(){function e(e,n,r){function i(e){var n=p[e];t.isUndefined(n)&&(n=p[e]=a(e));var r=h[n];return t.isUndefined(r)&&(r=o(n)),r}function a(t){return e.MEDIA[t]||("("!==t.charAt(0)?"("+t+")":t)}function o(e){var t=f[e];return t||(t=f[e]=r.matchMedia(e)),t.addListener(s),h[t.media]=!!t.matches}function s(e){n.$evalAsync(function(){h[e.media]=!!e.matches})}function c(e){return f[e]}function l(t,n){for(var r=0;r<e.MEDIA_PRIORITY.length;r++){var i=e.MEDIA_PRIORITY[r];if(f[p[i]].matches){var a=d(t,n+"-"+i);if(t[a])return t[a]}}return t[d(t,n)]}function u(n,r,i){var a=[];return n.forEach(function(n){var o=d(r,n);t.isDefined(r[o])&&a.push(r.$observe(o,t.bind(void 0,i,null)));for(var s in e.MEDIA)o=d(r,n+"-"+s),t.isDefined(r[o])&&a.push(r.$observe(o,t.bind(void 0,i,s)))}),function(){a.forEach(function(e){e()})}}function d(e,t){return m[t]||(m[t]=e.$normalize(t))}var p={},f={},h={},m={};return i.getResponsiveAttribute=l,i.getQuery=c,i.watchResponsiveAttributes=u,i}e.$inject=["$mdConstant","$rootScope","$window"],e.$inject=["$mdConstant","$rootScope","$window"],t.module("material.core").factory("$mdMedia",e)}(),function(){function e(e,n){function r(e){return e=t.isArray(e)?e:[e],e.forEach(function(t){c.forEach(function(n){e.push(n+"-"+t)})}),e}function i(e){return e=t.isArray(e)?e:[e],r(e).map(function(e){return"["+e+"]"}).join(",")}function a(e,t){if(!(e=s(e)))return!1;for(var n=r(t),i=0;i<n.length;i++)if(e.hasAttribute(n[i]))return!0;return!1}function o(e,t){(e=s(e))&&r(t).forEach(function(t){e.removeAttribute(t)})}function s(e){if(e=e[0]||e,e.nodeType)return e}var c=["data","x"];return e?n?i(e):r(e):{buildList:r,buildSelector:i,hasAttribute:a,removeAttribute:o}}t.module("material.core").config(["$provide",function(t){t.decorator("$mdUtil",["$delegate",function(t){return t.prefixer=e,t}])}])}(),function(){function r(r,a,o,s,c,l,u,d,p,f){function h(e){return e?m(e)||g(e)?e:e+"px":"0"}function m(e){return String(e).indexOf("px")>-1}function g(e){return String(e).indexOf("%")>-1}function v(e){return e[0]||e}var b=l.startSymbol(),y=l.endSymbol(),x="{{"===b&&"}}"===y,M=function(e,n,r){var i=!1;if(e&&e.length){var a=p.getComputedStyle(e[0]);i=t.isDefined(a[n])&&(!r||a[n]==r)}return i},_={dom:{},now:e.performance&&e.performance.now?t.bind(e.performance,e.performance.now):Date.now||function(){return(new Date).getTime()},getModelOption:function(e,t){if(e.$options){var n=e.$options;return n.getOption?n.getOption(t):n[t]}},bidi:function(e,n,i,a){var o=!("rtl"==r[0].dir||"rtl"==r[0].body.dir);if(0==arguments.length)return o?"ltr":"rtl";var s=t.element(e);o&&t.isDefined(i)?s.css(n,h(i)):!o&&t.isDefined(a)&&s.css(n,h(a))},bidiProperty:function(e,n,i,a){var o=!("rtl"==r[0].dir||"rtl"==r[0].body.dir),s=t.element(e);o&&t.isDefined(n)?(s.css(n,h(a)),s.css(i,"")):!o&&t.isDefined(i)&&(s.css(i,h(a)),s.css(n,""))},clientRect:function(e,t,n){var r=v(e);t=v(t||r.offsetParent||document.body);var i=r.getBoundingClientRect(),a=n?t.getBoundingClientRect():{left:0,top:0,width:0,height:0};return{left:i.left-a.left,top:i.top-a.top,width:i.width,height:i.height}},offsetRect:function(e,t){return _.clientRect(e,t,!0)},nodesToArray:function(e){e=e||[];for(var t=[],n=0;n<e.length;++n)t.push(e.item(n));return t},getViewportTop:function(){return e.scrollY||e.pageYOffset||0},findFocusTarget:function(e,n){function r(e,n){var r,i=e[0].querySelectorAll(n);return i&&i.length&&i.length&&t.forEach(i,function(e){e=t.element(e),e.hasClass("md-autofocus")&&(r=e)}),r}var i,a=this.prefixer("md-autofocus",!0);return i=r(e,n||a),i||n==a||(i=r(e,this.prefixer("md-auto-focus",!0)))||(i=r(e,a)),i},disableScrollAround:function(e,n,i){if(i=i||{},_.disableScrollAround._count=Math.max(0,_.disableScrollAround._count||0),_.disableScrollAround._count++,_.disableScrollAround._restoreScroll)return _.disableScrollAround._restoreScroll;var a=r[0].body,o=function(){var e=r[0].documentElement,n=e.style.cssText||"",i=a.style.cssText||"",o=_.getViewportTop(),s=a.clientWidth,c=a.scrollHeight>a.clientHeight+1,l=e.scrollTop>0?e:a;return c&&t.element(a).css({position:"fixed",width:"100%",top:-o+"px"}),a.clientWidth<s&&(a.style.overflow="hidden"),c&&(e.style.overflowY="scroll"),function(){a.style.cssText=i,e.style.cssText=n,l.scrollTop=o}}(),s=function(e){function n(e){e.preventDefault()}e=t.element(e||a);var r;return i.disableScrollMask?r=e:(r=t.element('<div class="md-scroll-mask"> <div class="md-scroll-mask-bar"></div></div>'),e.append(r)),r.on("wheel",n),r.on("touchmove",n),function(){r.off("wheel"),r.off("touchmove"),!i.disableScrollMask&&r[0].parentNode&&r[0].parentNode.removeChild(r[0])}}(n);return _.disableScrollAround._restoreScroll=function(){--_.disableScrollAround._count<=0&&(o(),s(),delete _.disableScrollAround._restoreScroll)}},enableScrolling:function(){var e=this.disableScrollAround._restoreScroll;e&&e()},floatingScrollbars:function(){if(this.floatingScrollbars.cached===n){var e=t.element("<div><div></div></div>").css({width:"100%","z-index":-1,position:"absolute",height:"35px","overflow-y":"scroll"});e.children().css("height","60px"),r[0].body.appendChild(e[0]),this.floatingScrollbars.cached=e[0].offsetWidth==e[0].childNodes[0].offsetWidth,e.remove()}return this.floatingScrollbars.cached},forceFocus:function(t){var n=t[0]||t;document.addEventListener("click",function e(t){t.target===n&&t.$focus&&(n.focus(),t.stopImmediatePropagation(),t.preventDefault(),n.removeEventListener("click",e))},!0);var r=document.createEvent("MouseEvents");r.initMouseEvent("click",!1,!0,e,{},0,0,0,0,!1,!1,!1,!1,0,null),r.$material=!0,r.$focus=!0,n.dispatchEvent(r)},createBackdrop:function(e,t){return o(_.supplant('<md-backdrop class="{0}">',[t]))(e)},supplant:function(e,t,n){return n=n||/\{([^{}]*)\}/g,e.replace(n,function(e,n){var r=n.split("."),i=t;try{for(var a in r)r.hasOwnProperty(a)&&(i=i[r[a]])}catch(t){i=e}return"string"==typeof i||"number"==typeof i?i:e})},fakeNgModel:function(){return{$fake:!0,$setTouched:t.noop,$setViewValue:function(e){this.$viewValue=e,this.$render(e),this.$viewChangeListeners.forEach(function(e){e()})},$isEmpty:function(e){return 0===(""+e).length},$parsers:[],$formatters:[],$viewChangeListeners:[],$render:t.noop}},debounce:function(e,t,r,i){var o;return function(){var s=r,c=Array.prototype.slice.call(arguments);a.cancel(o),o=a(function(){o=n,e.apply(s,c)},t||10,i)}},throttle:function(e,t){var n;return function(){var r=this,i=arguments,a=_.now();(!n||a-n>t)&&(e.apply(r,i),n=a)}},
21time:function(e){var t=_.now();return e(),_.now()-t},valueOnUse:function(e,t,n){var r=null,i=Array.prototype.slice.call(arguments),a=i.length>3?i.slice(3):[];Object.defineProperty(e,t,{get:function(){return null===r&&(r=n.apply(e,a)),r}})},nextUid:function(){return""+i++},disconnectScope:function(e){if(e&&e.$root!==e&&!e.$$destroyed){var t=e.$parent;e.$$disconnected=!0,t.$$childHead===e&&(t.$$childHead=e.$$nextSibling),t.$$childTail===e&&(t.$$childTail=e.$$prevSibling),e.$$prevSibling&&(e.$$prevSibling.$$nextSibling=e.$$nextSibling),e.$$nextSibling&&(e.$$nextSibling.$$prevSibling=e.$$prevSibling),e.$$nextSibling=e.$$prevSibling=null}},reconnectScope:function(e){if(e&&e.$root!==e&&e.$$disconnected){var t=e,n=t.$parent;t.$$disconnected=!1,t.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=t,n.$$childTail=t):n.$$childHead=n.$$childTail=t}},getClosest:function(e,n,r){if(t.isString(n)){var i=n.toUpperCase();n=function(e){return e.nodeName.toUpperCase()===i}}if(e instanceof t.element&&(e=e[0]),r&&(e=e.parentNode),!e)return null;do{if(n(e))return e}while(e=e.parentNode);return null},elementContains:function(n,r){return(e.Node&&e.Node.prototype&&Node.prototype.contains?t.bind(n,n.contains):t.bind(n,function(e){return n===r||!!(16&this.compareDocumentPosition(e))}))(r)},extractElementByName:function(e,n,r,i){function a(e){return o(e)||(r?s(e):null)}function o(e){if(e)for(var t=0,r=e.length;t<r;t++)if(e[t].nodeName.toLowerCase()===n)return e[t];return null}function s(e){var t;if(e)for(var n=0,r=e.length;n<r;n++){var i=e[n];if(!t)for(var o=0,s=i.childNodes.length;o<s;o++)t=t||a([i.childNodes[o]])}return t}var c=a(e);return!c&&i&&u.warn(_.supplant("Unable to find node '{0}' in element '{1}'.",[n,e[0].outerHTML])),t.element(c||e)},initOptionalProperties:function(e,n,r){r=r||{},t.forEach(e.$$isolateBindings,function(i,a){if(i.optional&&t.isUndefined(e[a])){var o=t.isDefined(n[i.attrName]);e[a]=t.isDefined(r[a])?r[a]:o}})},nextTick:function(e,t,n){function r(){var e=i.queue,t=i.digest;i.queue=[],i.timeout=null,i.digest=!1,e.forEach(function(e){e.scope&&e.scope.$$destroyed||e.callback()}),t&&s.$digest()}var i=_.nextTick,o=i.timeout,c=i.queue||[];return c.push({scope:n,callback:e}),null==t&&(t=!0),i.digest=i.digest||t,i.queue=c,o||(i.timeout=a(r,0,!1))},processTemplate:function(e){return x?e:e&&t.isString(e)?e.replace(/\{\{/g,b).replace(/}}/g,y):e},getParentWithPointerEvents:function(e){for(var t=e.parent();M(t,"pointer-events","none");)t=t.parent();return t},getNearestContentElement:function(e){for(var t=e.parent()[0];t&&t!==d[0]&&t!==document.body&&"MD-CONTENT"!==t.nodeName.toUpperCase();)t=t.parentNode;return t},checkStickySupport:function(){var e,n=t.element("<div>");r[0].body.appendChild(n[0]);for(var i=["sticky","-webkit-sticky"],a=0;a<i.length;++a)if(n.css({position:i[a],top:0,"z-index":2}),n.css("position")==i[a]){e=i[a];break}return n.remove(),e},parseAttributeBoolean:function(e,t){return""===e||!!e&&(!1===t||"false"!==e&&"0"!==e)},hasComputedStyle:M,isParentFormSubmitted:function(e){var n=_.getClosest(e,"form"),r=n?t.element(n).controller("form"):null;return!!r&&r.$submitted},animateScrollTo:function(e,t,n){function r(){var n=i();e.scrollTop=n,(c?n<t:n>t)&&f(r)}function i(){var e=n||1e3;return a(_.now()-l,o,s,e)}function a(e,t,n,r){if(e>r)return t+n;var i=(e/=r)*e;return t+n*(i*e*-2+3*i)}var o=e.scrollTop,s=t-o,c=o<t,l=_.now();f(r)},uniq:function(e){if(e)return e.filter(function(e,t,n){return n.indexOf(e)===t})}};return _.dom.animator=c(_),_}r.$inject=["$document","$timeout","$compile","$rootScope","$$mdAnimate","$interpolate","$log","$rootElement","$window","$$rAF"],r.$inject=["$document","$timeout","$compile","$rootScope","$$mdAnimate","$interpolate","$log","$rootElement","$window","$$rAF"];var i=0;t.module("material.core").factory("$mdUtil",r),t.element.prototype.focus=t.element.prototype.focus||function(){return this.length&&this[0].focus(),this},t.element.prototype.blur=t.element.prototype.blur||function(){return this.length&&this[0].blur(),this}}(),function(){function e(){function e(){t.showWarnings=!1}var t={showWarnings:!0};return{disableWarnings:e,$get:["$$rAF","$log","$window","$interpolate",function(e,r,i,a){return n.apply(t,arguments)}]}}function n(e,n,r,i){function a(e,r,i){var a=t.element(e)[0]||e;!a||a.hasAttribute(r)&&0!==a.getAttribute(r).length||u(a,r)||(i=t.isString(i)?i.trim():"",i.length?e.attr(r,i):f&&n.warn('ARIA: Attribute "',r,'", required for accessibility, is missing on node:',a))}function o(t,n,r){e(function(){a(t,n,r())})}function s(e,t){var n=l(e)||"";n.indexOf(i.startSymbol())>-1?o(e,t,function(){return l(e)}):a(e,t,n)}function c(e,t){var n=l(e);n.indexOf(i.startSymbol())>-1||n||a(e,t,n)}function l(e){e=e[0]||e;for(var t,n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null,!1),r="";t=n.nextNode();)(function(t){for(;t.parentNode&&(t=t.parentNode)!==e;)if(t.getAttribute&&"true"===t.getAttribute("aria-hidden"))return!0})(t)||(r+=t.textContent);return r.trim()||""}function u(e,t){var n=e.hasChildNodes(),i=!1;if(n)for(var a=e.childNodes,o=0;o<a.length;o++){var s=a[o];1===s.nodeType&&s.hasAttribute(t)&&(function(e){return"none"===(e.currentStyle?e.currentStyle:r.getComputedStyle(e)).display}(s)||(i=!0))}return i}function d(e){var n=t.element(e)[0]||e;return!!n.hasAttribute&&(n.hasAttribute("aria-label")||n.hasAttribute("aria-labelledby")||n.hasAttribute("aria-describedby"))}function p(e,n){n=n||1;var r=t.element(e)[0]||e;return!!r.parentNode&&(!!function(e){if(!d(e))return!1;if(e.hasAttribute("role"))switch(e.getAttribute("role").toLowerCase()){case"command":case"definition":case"directory":case"grid":case"list":case"listitem":case"log":case"marquee":case"menu":case"menubar":case"note":case"presentation":case"separator":case"scrollbar":case"status":case"tablist":return!1}switch(e.tagName.toLowerCase()){case"abbr":case"acronym":case"address":case"applet":case"audio":case"b":case"bdi":case"bdo":case"big":case"blockquote":case"br":case"canvas":case"caption":case"center":case"cite":case"code":case"col":case"data":case"dd":case"del":case"dfn":case"dir":case"div":case"dl":case"em":case"embed":case"fieldset":case"figcaption":case"font":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":case"hgroup":case"html":case"i":case"ins":case"isindex":case"kbd":case"keygen":case"label":case"legend":case"li":case"map":case"mark":case"menu":case"object":case"ol":case"output":case"pre":case"presentation":case"q":case"rt":case"ruby":case"samp":case"small":case"source":case"span":case"status":case"strike":case"strong":case"sub":case"sup":case"svg":case"tbody":case"td":case"th":case"thead":case"time":case"tr":case"track":case"tt":case"ul":case"var":return!1}return!0}(r.parentNode)||!!--n&&p(r.parentNode,n))}var f=this.showWarnings;return{expect:a,expectAsync:o,expectWithText:s,expectWithoutText:c,getText:l,hasAriaLabel:d,parentHasAriaLabel:p}}n.$inject=["$$rAF","$log","$window","$interpolate"],n.$inject=["$$rAF","$log","$window","$interpolate"],t.module("material.core").provider("$mdAria",e)}(),function(){function e(e){function n(){return!i||("function"==typeof e.preAssignBindingsEnabled?e.preAssignBindingsEnabled():1===t.version.major&&t.version.minor<6)}function r(e,t,n,r,i){this.$q=e,this.$templateRequest=t,this.$injector=n,this.$compile=r,this.$controller=i}var i=!1;this.respectPreAssignBindingsEnabled=function(e){return t.isDefined(e)?(i=e,this):i},this.$get=["$q","$templateRequest","$injector","$compile","$controller",function(e,t,n,i,a){return new r(e,t,n,i,a)}],r.prototype.compile=function(e){return e.contentElement?this._prepareContentElement(e):this._compileTemplate(e)},r.prototype._prepareContentElement=function(e){var t=this._fetchContentElement(e);return this.$q.resolve({element:t.element,cleanup:t.restore,locals:{},link:function(){return t.element}})},r.prototype._compileTemplate=function(e){var n=this,r=e.templateUrl,i=e.template||"",a=t.extend({},e.resolve),o=t.extend({},e.locals),s=e.transformTemplate||t.identity;return t.forEach(a,function(e,r){t.isString(e)?a[r]=n.$injector.get(e):a[r]=n.$injector.invoke(e)}),t.extend(a,o),a.$$ngTemplate=r?this.$templateRequest(r):this.$q.when(i),this.$q.all(a).then(function(r){var i=s(r.$$ngTemplate,e),a=e.element||t.element("<div>").html(i.trim()).contents();return n._compileElement(r,a,e)})},r.prototype._compileElement=function(e,n,r){function i(i){if(e.$scope=i,r.controller){var c=t.extend({},e,{$element:n}),l=a._createController(r,c,e);n.data("$ngControllerController",l),n.children().data("$ngControllerController",l),s.controller=l}return o(i)}var a=this,o=this.$compile(n),s={element:n,cleanup:n.remove.bind(n),locals:e,link:i};return s},r.prototype._createController=function(e,r,i){var a=this.$controller(e.controller,r,!0,e.controllerAs);n()&&e.bindToController&&t.extend(a.instance,i);var o=a();return!n()&&e.bindToController&&t.extend(o,i),t.isFunction(o.$onInit)&&o.$onInit(),o},r.prototype._fetchContentElement=function(e){function n(e){var t=e.parentNode,n=e.nextElementSibling;return function(){n?t.insertBefore(e,n):t.appendChild(e)}}var r=e.contentElement,i=null;return t.isString(r)?(r=document.querySelector(r),i=n(r)):(r=r[0]||r,i=document.contains(r)?n(r):function(){r.parentNode&&r.parentNode.removeChild(r)}),{element:t.element(r),restore:i}}}e.$inject=["$compileProvider"],t.module("material.core").provider("$mdCompiler",e),e.$inject=["$compileProvider"]}(),function(){function n(){}function r(n,r,i){function a(e){return function(t,n){n.distance<this.state.options.maxDistance&&this.dispatchEvent(t,e,n)}}function o(e,t,n){var r=m[t.replace(/^\$md./,"")];if(!r)throw new Error("Failed to register element with handler "+t+". Available handlers: "+Object.keys(m).join(", "));return r.registerElement(e,n)}function c(e,r){var i=new n(e);return t.extend(i,r),m[e]=i,y}var l=navigator.userAgent||navigator.vendor||e.opera,d=l.match(/ipad|iphone|ipod/i),f=l.match(/android/i),h=function(){for(var e=document.createElement("div"),n=["","webkit","Moz","MS","ms","o"],r=0;r<n.length;r++){var i=n[r],a=i?i+"TouchAction":"touchAction";if(t.isDefined(e.style[a]))return a}}(),b=void 0!==e.jQuery&&t.element===e.jQuery,y={handler:c,register:o,isAndroid:f,isIos:d,isHijackingClicks:(d||f)&&!b&&!g};return y.isHijackingClicks&&(y.handler("click",{options:{maxDistance:v},onEnd:a("click")}),y.handler("focus",{options:{maxDistance:v},onEnd:function(e,t){t.distance<this.state.options.maxDistance&&p(e.target)&&(this.dispatchEvent(e,"focus",t),e.target.focus())}}),y.handler("mouseup",{options:{maxDistance:v},onEnd:a("mouseup")}),y.handler("mousedown",{onStart:function(e){this.dispatchEvent(e,"mousedown")}})),y.handler("press",{onStart:function(e,t){this.dispatchEvent(e,"$md.pressdown")},onEnd:function(e,t){this.dispatchEvent(e,"$md.pressup")}}).handler("hold",{options:{maxDistance:6,delay:500},onCancel:function(){i.cancel(this.state.timeout)},onStart:function(e,n){if(!this.state.registeredParent)return this.cancel();this.state.pos={x:n.x,y:n.y},this.state.timeout=i(t.bind(this,function(){this.dispatchEvent(e,"$md.hold"),this.cancel()}),this.state.options.delay,!1)},onMove:function(e,t){h||"touchmove"!==e.type||e.preventDefault();var n=this.state.pos.x-t.x,r=this.state.pos.y-t.y;Math.sqrt(n*n+r*r)>this.options.maxDistance&&this.cancel()},onEnd:function(){this.onCancel()}}).handler("drag",{options:{minDistance:6,horizontal:!0,cancelMultiplier:1.5},onSetup:function(e,t){h&&(this.oldTouchAction=e[0].style[h],e[0].style[h]=t.horizontal?"pan-y":"pan-x")},onCleanup:function(e){this.oldTouchAction&&(e[0].style[h]=this.oldTouchAction)},onStart:function(e){this.state.registeredParent||this.cancel()},onMove:function(e,t){var n,r;h||"touchmove"!==e.type||e.preventDefault(),this.state.dragPointer?this.dispatchDragMove(e):(this.state.options.horizontal?(n=Math.abs(t.distanceX)>this.state.options.minDistance,r=Math.abs(t.distanceY)>this.state.options.minDistance*this.state.options.cancelMultiplier):(n=Math.abs(t.distanceY)>this.state.options.minDistance,r=Math.abs(t.distanceX)>this.state.options.minDistance*this.state.options.cancelMultiplier),n?(this.state.dragPointer=s(e),u(e,this.state.dragPointer),this.dispatchEvent(e,"$md.dragstart",this.state.dragPointer)):r&&this.cancel())},dispatchDragMove:r.throttle(function(e){this.state.isRunning&&(u(e,this.state.dragPointer),this.dispatchEvent(e,"$md.drag",this.state.dragPointer))}),onEnd:function(e,t){this.state.dragPointer&&(u(e,this.state.dragPointer),this.dispatchEvent(e,"$md.dragend",this.state.dragPointer))}}).handler("swipe",{options:{minVelocity:.65,minDistance:10},onEnd:function(e,t){var n;Math.abs(t.velocityX)>this.state.options.minVelocity&&Math.abs(t.distanceX)>this.state.options.minDistance?(n="left"==t.directionX?"$md.swipeleft":"$md.swiperight",this.dispatchEvent(e,n)):Math.abs(t.velocityY)>this.state.options.minVelocity&&Math.abs(t.distanceY)>this.state.options.minDistance&&(n="up"==t.directionY?"$md.swipeup":"$md.swipedown",this.dispatchEvent(e,n))}})}function i(e){this.name=e,this.state={}}function a(){function n(e,n,r){r=r||f;var i=new t.element.Event(n);i.$material=!0,i.pointer=r,i.srcEvent=e,t.extend(i,{clientX:r.x,clientY:r.y,screenX:r.x,screenY:r.y,pageX:r.x,pageY:r.y,ctrlKey:e.ctrlKey,altKey:e.altKey,shiftKey:e.shiftKey,metaKey:e.metaKey}),t.element(r.target).trigger(i)}function r(t,n,r){r=r||f;var i;"click"===n||"mouseup"==n||"mousedown"==n?(i=document.createEvent("MouseEvents"),i.initMouseEvent(n,!0,!0,e,t.detail,r.x,r.y,r.x,r.y,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget||null)):(i=document.createEvent("CustomEvent"),i.initCustomEvent(n,!0,!0,{})),i.$material=!0,i.pointer=r,i.srcEvent=t,r.target.dispatchEvent(i)}var a=void 0!==e.jQuery&&t.element===e.jQuery;return i.prototype={options:{},dispatchEvent:a?n:r,onSetup:t.noop,onCleanup:t.noop,onStart:t.noop,onMove:t.noop,onEnd:t.noop,onCancel:t.noop,start:function(e,n){if(!this.state.isRunning){var r=this.getNearestParent(e.target),i=r&&r.$mdGesture[this.name]||{};this.state={isRunning:!0,options:t.extend({},this.options,i),registeredParent:r},this.onStart(e,n)}},move:function(e,t){this.state.isRunning&&this.onMove(e,t)},end:function(e,t){this.state.isRunning&&(this.onEnd(e,t),this.state.isRunning=!1)},cancel:function(e,t){this.onCancel(e,t),this.state={}},getNearestParent:function(e){for(var t=e;t;){if((t.$mdGesture||{})[this.name])return t;t=t.parentNode}return null},registerElement:function(e,t){function n(){delete e[0].$mdGesture[r.name],e.off("$destroy",n),r.onCleanup(e,t||{})}var r=this;return e[0].$mdGesture=e[0].$mdGesture||{},e[0].$mdGesture[this.name]=t||{},e.on("$destroy",n),r.onSetup(e,t||{}),n}},i}function o(e,n){function r(e){!e.clientX&&!e.clientY||e.$material||e.isIonicTap||l(e)||"mousedown"===e.type&&(p(e.target)||p(document.activeElement))||(e.preventDefault(),e.stopPropagation())}function i(e){var t=0===e.clientX&&0===e.clientY,n=e.target&&"submit"===e.target.type;t||e.$material||e.isIonicTap||l(e)||n?(b=null,"label"==e.target.tagName.toLowerCase()&&(b={x:e.x,y:e.y})):(e.preventDefault(),e.stopPropagation(),b=null)}function a(e,t){var r;for(var i in m)(r=m[i])instanceof n&&("start"===e&&r.cancel(),r[e](t,f))}function o(e){if(!f){var t=+Date.now();h&&!c(e,h)&&t-h.endTime<1500||(f=s(e),a("start",e))}}function d(e){f&&c(e,f)&&(u(e,f),a("move",e))}function g(e){f&&c(e,f)&&(u(e,f),f.endTime=+Date.now(),"pointercancel"!==e.type&&a("end",e),h=f,f=null)}document.contains||(document.contains=function(e){return document.body.contains(e)}),!y&&e.isHijackingClicks&&(document.addEventListener("click",i,!0),document.addEventListener("mouseup",r,!0),document.addEventListener("mousedown",r,!0),document.addEventListener("focus",r,!0),y=!0);t.element(document).on("mousedown touchstart pointerdown",o).on("mousemove touchmove pointermove",d).on("mouseup mouseleave touchend touchcancel pointerup pointercancel",g).on("$$mdGestureReset",function(){h=f=null})}function s(e){var t=d(e),n={startTime:+Date.now(),target:e.target,type:e.type.charAt(0)};return n.startX=n.x=t.pageX,n.startY=n.y=t.pageY,n}function c(e,t){return e&&t&&e.type.charAt(0)===t.type}function l(e){return b&&b.x==e.x&&b.y==e.y}function u(e,t){var n=d(e),r=t.x=n.pageX,i=t.y=n.pageY;t.distanceX=r-t.startX,t.distanceY=i-t.startY,t.distance=Math.sqrt(t.distanceX*t.distanceX+t.distanceY*t.distanceY),t.directionX=t.distanceX>0?"right":t.distanceX<0?"left":"",t.directionY=t.distanceY>0?"down":t.distanceY<0?"up":"",t.duration=+Date.now()-t.startTime,t.velocityX=t.distanceX/t.duration,t.velocityY=t.distanceY/t.duration}function d(e){return e=e.originalEvent||e,e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0]||e}function p(e){return!!e&&"-1"!=e.getAttribute("tabindex")&&!e.hasAttribute("disabled")&&(e.hasAttribute("tabindex")||e.hasAttribute("href")||e.isContentEditable||-1!=["INPUT","SELECT","BUTTON","TEXTAREA","VIDEO","AUDIO"].indexOf(e.nodeName))}o.$inject=["$mdGesture","$$MdGestureHandler"],r.$inject=["$$MdGestureHandler","$$rAF","$timeout"],o.$inject=["$mdGesture","$$MdGestureHandler"];var f,h,m={},g=!1,v=6,b=null,y=!1;t.module("material.core.gestures",[]).provider("$mdGesture",n).factory("$$MdGestureHandler",a).run(o),n.prototype={skipClickHijack:function(){return g=!0},setMaxClickDistance:function(e){v=parseInt(e)},$get:["$$MdGestureHandler","$$rAF","$timeout",function(e,t,n){return new r(e,t,n)}]}}(),function(){function n(e,n){this.$timeout=e,this.$mdUtil=n,this.bodyElement=t.element(document.body),this.isBuffering=!1,this.bufferTimeout=null,this.lastInteractionType=null,this.lastInteractionTime=null,this.inputEventMap={keydown:"keyboard",mousedown:"mouse",mouseenter:"mouse",touchstart:"touch",pointerdown:"pointer",MSPointerDown:"pointer"},this.iePointerMap={2:"touch",3:"touch",4:"mouse"},this.initializeEvents()}n.$inject=["$timeout","$mdUtil"],n.$inject=["$timeout","$mdUtil"],t.module("material.core.interaction",[]).service("$mdInteraction",n),n.prototype.initializeEvents=function(){var t="MSPointerEvent"in e?"MSPointerDown":"PointerEvent"in e?"pointerdown":null;this.bodyElement.on("keydown mousedown",this.onInputEvent.bind(this)),"ontouchstart"in document.documentElement&&this.bodyElement.on("touchstart",this.onBufferInputEvent.bind(this)),t&&this.bodyElement.on(t,this.onInputEvent.bind(this))},n.prototype.onInputEvent=function(e){if(!this.isBuffering){var t=this.inputEventMap[e.type];"pointer"===t&&(t=this.iePointerMap[e.pointerType]||e.pointerType),this.lastInteractionType=t,this.lastInteractionTime=this.$mdUtil.now()}},n.prototype.onBufferInputEvent=function(e){this.$timeout.cancel(this.bufferTimeout),this.onInputEvent(e),this.isBuffering=!0,this.bufferTimeout=this.$timeout(function(){this.isBuffering=!1}.bind(this),650,!1)},n.prototype.getLastInteractionType=function(){return this.lastInteractionType},n.prototype.isUserInvoked=function(e){var n=t.isNumber(e)?e:15;return this.lastInteractionTime>=this.$mdUtil.now()-n}}(),function(){function e(){function e(e){function n(e){return c.optionsFactory=e.options,c.methods=(e.methods||[]).concat(o),l}function r(e,t){return s[e]=t,l}function i(t,n){if(n=n||{},n.methods=n.methods||[],n.options=n.options||function(){return{}},/^cancel|hide|show$/.test(t))throw new Error("Preset '"+t+"' in "+e+" is reserved!");if(n.methods.indexOf("_options")>-1)throw new Error("Method '_options' in "+e+" is reserved!");return c.presets[t]={methods:n.methods.concat(o),optionsFactory:n.options,argOption:n.argOption},l}function a(n,r){function i(e){return e=e||{},e._options&&(e=e._options),d.show(t.extend({},u,e))}function a(e){return d.destroy(e)}function o(t,n){var i={};return i[e]=p,r.invoke(t||function(){return n},{},i)}var l,u,d=n(),p={hide:d.hide,cancel:d.cancel,show:i,destroy:a};return l=c.methods||[],u=o(c.optionsFactory,{}),t.forEach(s,function(e,t){p[t]=e}),t.forEach(c.presets,function(e,n){function r(e){this._options=t.extend({},i,e)}var i=o(e.optionsFactory,{}),a=(e.methods||[]).concat(l);if(t.extend(i,{$type:n}),t.forEach(a,function(e){r.prototype[e]=function(t){return this._options[e]=t,this}}),e.argOption){var s="show"+n.charAt(0).toUpperCase()+n.slice(1);p[s]=function(e){var t=p[n](e);return p.show(t)}}p[n]=function(n){return arguments.length&&e.argOption&&!t.isObject(n)&&!t.isArray(n)?(new r)[e.argOption](n):new r(n)}}),p}a.$inject=["$$interimElement","$injector"],a.$inject=["$$interimElement","$injector"];var o=["onHide","onShow","onRemove"],s={},c={presets:{}},l={setDefaults:n,addPreset:i,addMethod:r,$get:a};return l.addPreset("build",{methods:["controller","controllerAs","resolve","multiple","template","templateUrl","themable","transformTemplate","parent","contentElement"]}),l}function r(e,r,i,a,o,s,c,l,u,d,p){return function(){function f(e){e=e||{};var t=new b(e||{}),n=e.multiple?r.resolve():r.all(M);e.multiple||(n=n.then(function(){var e=_.concat(w.map(y.cancel));return r.all(e)}));var i=n.then(function(){return t.show().catch(function(e){return e}).finally(function(){M.splice(M.indexOf(i),1),w.push(t)})});return M.push(i),t.deferred.promise.catch(function(e){return e instanceof Error&&p(e),e}),t.deferred.promise}function h(e,t){function i(n){var r=n.remove(e,!1,t||{}).catch(function(e){return e}).finally(function(){_.splice(_.indexOf(r),1)});return w.splice(w.indexOf(n),1),_.push(r),n.deferred.promise}return t=t||{},t.closeAll?r.all(w.slice().reverse().map(i)):t.closeTo!==n?r.all(w.slice(t.closeTo).map(i)):i(w[w.length-1])}function m(e,n){var i=w.pop();if(!i)return r.when(e);var a=i.remove(e,!0,n||{}).catch(function(e){return e}).finally(function(){_.splice(_.indexOf(a),1)});return _.push(a),i.deferred.promise.catch(t.noop)}function g(e){return function(){var t=arguments;return w.length?e.apply(y,t):M.length?M[0].finally(function(){return e.apply(y,t)}):r.when("No interim elements currently showing up.")}}function v(e){var n=e?null:w.shift(),i=t.element(e).length&&t.element(e)[0].parentNode;if(i){var a=w.filter(function(e){return e.options.element[0]===i});a.length&&(n=a[0],w.splice(w.indexOf(n),1))}return n?n.remove(x,!1,{$destroy:!0}):r.when(x)}function b(d){function p(){return r(function(e,t){function n(e){M.deferred.reject(e),t(e)}d.onCompiling&&d.onCompiling(d),h(d).then(function(t){_=m(t,d),d.cleanupElement=t.cleanup,w=b(_,d,t.controller).then(e,n)}).catch(n)})}function f(e,n,i){function a(e){M.deferred.resolve(e)}function o(e){M.deferred.reject(e)}return _?(d=t.extend(d||{},i||{}),d.cancelAutoHide&&d.cancelAutoHide(),d.element.triggerHandler("$mdInterimElementRemove"),!0===d.$destroy?x(d.element,d).then(function(){n&&o(e)||a(e)}):(r.when(w).finally(function(){x(d.element,d).then(function(){n?o(e):a(e)},o)}),M.deferred.promise)):r.when(!1)}function h(e){return(e.skipCompile?null:l.compile(e))||r(function(t){t({locals:{},link:function(){return e.element}})})}function m(e,n){t.extend(e.locals,n);var r=e.link(n.scope);return n.element=r,n.parent=g(r,n),n.themable&&u(r),r}function g(n,r){var i=r.parent;if(i=t.isFunction(i)?i(r.scope,n,r):t.isString(i)?t.element(e[0].querySelector(i)):t.element(i),!(i||{}).length){var a;return o[0]&&o[0].querySelector&&(a=o[0].querySelector(":not(svg) > body")),a||(a=o[0]),"#comment"==a.nodeName&&(a=e[0].body),t.element(a)}return i}function v(){var e,r=t.noop;d.hideDelay&&(e=a(y.hide,d.hideDelay),r=function(){a.cancel(e)}),d.cancelAutoHide=function(){r(),d.cancelAutoHide=n}}function b(e,n,i){var a=n.onShowing||t.noop,o=n.onComplete||t.noop;try{a(n.scope,e,n,i)}catch(e){return r.reject(e)}return r(function(t,a){try{r.when(n.onShow(n.scope,e,n,i)).then(function(){o(n.scope,e,n),v(),t(e)},a)}catch(e){a(e.message)}})}function x(e,n){var i=n.onRemoving||t.noop;return r(function(t,a){try{var o=r.when(n.onRemove(n.scope,e,n)||!0);i(e,o),n.$destroy?(t(e),!n.preserveScope&&n.scope&&o.then(function(){n.scope.$destroy()})):o.then(function(){!n.preserveScope&&n.scope&&n.scope.$destroy(),t(e)},a)}catch(e){a(e.message)}})}var M,_,w=r.when(!0);return d=function(e){return e=e||{},e.template&&(e.template=c.processTemplate(e.template)),t.extend({preserveScope:!1,cancelAutoHide:t.noop,scope:e.scope||i.$new(e.isolateScope),onShow:function(e,t,n){return s.enter(t,n.parent)},onRemove:function(e,t){return t&&s.leave(t)||r.when()}},e)}(d),M={options:d,deferred:r.defer(),show:p,remove:f}}var y,x=!1,M=[],_=[],w=[];return y={show:f,hide:g(h),cancel:g(m),destroy:v,$injector_:d}}}return r.$inject=["$document","$q","$rootScope","$timeout","$rootElement","$animate","$mdUtil","$mdCompiler","$mdTheming","$injector","$exceptionHandler"],r.$inject=["$document","$q","$rootScope","$timeout","$rootElement","$animate","$mdUtil","$mdCompiler","$mdTheming","$injector","$exceptionHandler"],e.$get=r,e}t.module("material.core").provider("$$interimElement",e)}(),function(){!function(){function e(){var e=!!document.querySelector("[md-layouts-disabled]");A.enabled=!e}function n(){return A.enabled=!1,{restrict:"A",priority:"900"}}function r(e){return["$timeout",function(n){return{restrict:"A",priority:-10,compile:function(r){return A.enabled?(r.addClass(e),function(t,r){n(function(){r.removeClass(e)},10,!1)}):t.noop}}}]}function i(e){function n(t,n,r){var i=o(n,e),a=r.$observe(r.$normalize(e),i);i(p(e,r,"")),t.$on("$destroy",function(){a()})}return["$mdUtil","$interpolate","$log",function(r,i,a){return m=r,g=i,v=a,{restrict:"A",compile:function(r,i){var a;return A.enabled&&(c(e,i,r,v),l(e,p(e,i,""),u(r,e,i)),a=n),a||t.noop}}}]}function a(e){function n(t,n){n.addClass(e)}return["$mdUtil","$interpolate","$log",function(r,i,a){return m=r,g=i,v=a,{restrict:"A",compile:function(r,i){var a;return A.enabled&&(l(e,p(e,i,""),u(r,e,i)),n(null,r),a=n),a||t.noop}}}]}function o(e,n){var r;return function(i){var a=l(n,i||"");t.isDefined(a)&&(r&&e.removeClass(r),r=a?n+"-"+a.trim().replace(y,"-"):n,e.addClass(r))}}function s(e){var n=e.split("-");return["$log",function(r){return r.warn(e+"has been deprecated. Please use a `"+n[0]+"-gt-<xxx>` variant."),t.noop}]}function c(e,t,n,r){var i,a,o,s=n[0].nodeName.toLowerCase();switch(e.replace(b,"")){case"flex":"md-button"!=s&&"fieldset"!=s||(a="<"+s+" "+e+"></"+s+">",o="https://github.com/philipwalton/flexbugs#9-some-html-elements-cant-be-flex-containers",i="Markup '{0}' may not work as expected in IE Browsers. Consult '{1}' for details.",r.warn(m.supplant(i,[a,o])))}}function l(e,n,r){if(!d(n)){switch(e.replace(b,"")){case"layout":f(n,M)||(n=M[0]);break;case"flex":f(n,x)||isNaN(n)&&(n="");break;case"flex-offset":case"flex-order":n&&!isNaN(+n)||(n="0");break;case"layout-align":var i=h(n);n=m.supplant("{main}-{cross}",i);break;case"layout-padding":case"layout-margin":case"layout-fill":case"layout-wrap":case"layout-nowrap":n=""}void 0!=n&&(r||t.noop)(n)}return n?n.trim():""}function u(e,t,n){return function(e){d(e)||(n[n.$normalize(t)]=e)}}function d(e){return(e||"").indexOf(g.startSymbol())>-1}function p(e,t,n){var r=t.$normalize(e);return t[r]?t[r].trim().replace(y,"-"):n||null}function f(e,t,n){e=n&&e?e.replace(y,n):e;var r=!1;return e&&t.forEach(function(t){t=n?t.replace(y,n):t,r=r||t===e}),r}function h(e){var t,n={main:"start",cross:"stretch"};return e=e||"",0!==e.indexOf("-")&&0!==e.indexOf(" ")||(e="none"+e),t=e.toLowerCase().trim().replace(y,"-").split("-"),t.length&&"space"===t[0]&&(t=[t[0]+"-"+t[1],t[2]]),t.length>0&&(n.main=t[0]||n.main),t.length>1&&(n.cross=t[1]||n.cross),_.indexOf(n.main)<0&&(n.main="start"),w.indexOf(n.cross)<0&&(n.cross="stretch"),n}var m,g,v,b=/(-gt)?-(sm|md|lg|print)/g,y=/\s+/g,x=["grow","initial","auto","none","noshrink","nogrow"],M=["row","column"],_=["","start","center","end","stretch","space-around","space-between"],w=["","start","center","end","stretch"],A={enabled:!0,breakpoints:[]};!function(o){function u(e){return e.replace(d,"").replace(p,function(e,t,n,r){return r?n.toUpperCase():n})}var d=/^((?:x|data)[:\-_])/i,p=/([:\-_]+(.))/g,f=["","xs","gt-xs","sm","gt-sm","md","gt-md","lg","gt-lg","xl","print"],h=["layout","flex","flex-order","flex-offset","layout-align"],m=["show","hide","layout-padding","layout-margin"];t.forEach(f,function(e){t.forEach(h,function(t){var n=e?t+"-"+e:t;o.directive(u(n),i(n))}),t.forEach(m,function(t){var n=e?t+"-"+e:t;o.directive(u(n),a(n))})}),o.provider("$$mdLayout",function(){return{$get:t.noop,validateAttributeValue:l,validateAttributeUsage:c,disableLayouts:function(e){A.enabled=!0!==e}}}).directive("mdLayoutCss",n).directive("ngCloak",r("ng-cloak")).directive("layoutWrap",a("layout-wrap")).directive("layoutNowrap",a("layout-nowrap")).directive("layoutNoWrap",a("layout-no-wrap")).directive("layoutFill",a("layout-fill")).directive("layoutLtMd",s("layout-lt-md")).directive("layoutLtLg",s("layout-lt-lg")).directive("flexLtMd",s("flex-lt-md")).directive("flexLtLg",s("flex-lt-lg")).directive("layoutAlignLtMd",s("layout-align-lt-md")).directive("layoutAlignLtLg",s("layout-align-lt-lg")).directive("flexOrderLtMd",s("flex-order-lt-md")).directive("flexOrderLtLg",s("flex-order-lt-lg")).directive("offsetLtMd",s("flex-offset-lt-md")).directive("offsetLtLg",s("flex-offset-lt-lg")).directive("hideLtMd",s("hide-lt-md")).directive("hideLtLg",s("hide-lt-lg")).directive("showLtMd",s("show-lt-md")).directive("showLtLg",s("show-lt-lg")).config(e)}(t.module("material.core.layout",["ng"]))}()}(),function(){function e(e){this._$timeout=e,this._liveElement=this._createLiveElement(),this._announceTimeout=100}e.$inject=["$timeout"],e.$inject=["$timeout"],t.module("material.core").service("$mdLiveAnnouncer",e),e.prototype.announce=function(e,t){t||(t="polite");var n=this;n._liveElement.textContent="",n._liveElement.setAttribute("aria-live",t),n._$timeout(function(){n._liveElement.textContent=e},n._announceTimeout,!1)},e.prototype._createLiveElement=function(){var e=document.createElement("div");return e.classList.add("md-visually-hidden"),e.setAttribute("role","status"),e.setAttribute("aria-atomic","true"),e.setAttribute("aria-live","polite"),document.body.appendChild(e),e}}(),function(){t.module("material.core.meta",[]).provider("$$mdMeta",function(){function e(e){if(a[e])return!0;var n=document.getElementsByName(e)[0];return!!n&&(a[e]=t.element(n),!0)}function n(n,r){if(e(n),a[n])a[n].attr("content",r);else{var o=t.element('<meta name="'+n+'" content="'+r+'"/>');i.append(o),a[n]=o}return function(){a[n].attr("content",""),a[n].remove(),delete a[n]}}function r(t){if(!e(t))throw Error("$$mdMeta: could not find a meta tag with the name '"+t+"'");return a[t].attr("content")}var i=t.element(document.head),a={},o={setMeta:n,getMeta:r};return t.extend({},o,{$get:function(){return o}})})}(),function(){function e(e,r){function i(e){return e&&""!==e}var a,o=[],s={};return a={notFoundError:function(t,n){e.error((n||"")+"No instance found for handle",t)},getInstances:function(){return o},get:function(e){if(!i(e))return null;var t,n,r;for(t=0,n=o.length;t<n;t++)if(r=o[t],r.$$mdHandle===e)return r;return null},register:function(e,n){function r(){var t=o.indexOf(e);-1!==t&&o.splice(t,1)}return n?(e.$$mdHandle=n,o.push(e),function(){var t=s[n];t&&(t.forEach(function(t){t.resolve(e)}),delete s[n])}(),r):t.noop},when:function(e){if(i(e)){var t=r.defer(),o=a.get(e);return o?t.resolve(o):(s[e]===n&&(s[e]=[]),s[e].push(t)),t.promise}return r.reject("Invalid `md-component-id` value.")}}}e.$inject=["$log","$q"],e.$inject=["$log","$q"],t.module("material.core").factory("$mdComponentRegistry",e)}(),function(){!function(){function e(e){function n(e){return e.hasClass("md-icon-button")?{isMenuItem:e.hasClass("md-menu-item"),fitRipple:!0,center:!0}:{isMenuItem:e.hasClass("md-menu-item"),dimBackground:!0}}return{attach:function(r,i,a){return a=t.extend(n(i),a),e.attach(r,i,a)}}}e.$inject=["$mdInkRipple"],e.$inject=["$mdInkRipple"],t.module("material.core").factory("$mdButtonInkRipple",e)}()}(),function(){!function(){function e(e){function n(n,r,i){return e.attach(n,r,t.extend({center:!0,dimBackground:!1,fitRipple:!0},i))}return{attach:n}}e.$inject=["$mdInkRipple"],e.$inject=["$mdInkRipple"],t.module("material.core").factory("$mdCheckboxInkRipple",e)}()}(),
22function(){!function(){function e(e){function n(n,r,i){return e.attach(n,r,t.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},i))}return{attach:n}}e.$inject=["$mdInkRipple"],e.$inject=["$mdInkRipple"],t.module("material.core").factory("$mdListInkRipple",e)}()}(),function(){function e(e,n){return{controller:t.noop,link:function(t,r,i){i.hasOwnProperty("mdInkRippleCheckbox")?n.attach(t,r):e.attach(t,r)}}}function n(){function e(){n=!0}var n=!1;return{disableInkRipple:e,$get:["$injector",function(e){function i(i,a,o){return n||a.controller("mdNoInk")?t.noop:e.instantiate(r,{$scope:i,$element:a,rippleOptions:o})}return{attach:i}}]}}function r(e,n,r,i,a,o,s){this.$window=i,this.$timeout=a,this.$mdUtil=o,this.$mdColorUtil=s,this.$scope=e,this.$element=n,this.options=r,this.mousedown=!1,this.ripples=[],this.timeout=null,this.lastRipple=null,o.valueOnUse(this,"container",this.createContainer),this.$element.addClass("md-ink-ripple"),(n.controller("mdInkRipple")||{}).createRipple=t.bind(this,this.createRipple),(n.controller("mdInkRipple")||{}).setColor=t.bind(this,this.color),this.bindEvents()}function i(e,n){(e.mousedown||e.lastRipple)&&(e.mousedown=!1,e.$mdUtil.nextTick(t.bind(e,n),!1))}function a(){return{controller:t.noop}}e.$inject=["$mdButtonInkRipple","$mdCheckboxInkRipple"],r.$inject=["$scope","$element","rippleOptions","$window","$timeout","$mdUtil","$mdColorUtil"],e.$inject=["$mdButtonInkRipple","$mdCheckboxInkRipple"],t.module("material.core").provider("$mdInkRipple",n).directive("mdInkRipple",e).directive("mdNoInk",a).directive("mdNoBar",a).directive("mdNoStretch",a);r.prototype.color=function(e){var n=this;return t.isDefined(e)&&(n._color=n._parseColor(e)),n._color||n._parseColor(n.inkRipple())||n._parseColor(function(){var e=n.options&&n.options.colorElement?n.options.colorElement:[],t=e.length?e[0]:n.$element[0];return t?n.$window.getComputedStyle(t).color:"rgb(0,0,0)"}())},r.prototype.calculateColor=function(){return this.color()},r.prototype._parseColor=function(e,t){t=t||1;var n=this.$mdColorUtil;if(e)return 0===e.indexOf("rgba")?e.replace(/\d?\.?\d*\s*\)\s*$/,(.1*t).toString()+")"):0===e.indexOf("rgb")?n.rgbToRgba(e):0===e.indexOf("#")?n.hexToRgba(e):void 0},r.prototype.bindEvents=function(){this.$element.on("mousedown",t.bind(this,this.handleMousedown)),this.$element.on("mouseup touchend",t.bind(this,this.handleMouseup)),this.$element.on("mouseleave",t.bind(this,this.handleMouseup)),this.$element.on("touchmove",t.bind(this,this.handleTouchmove))},r.prototype.handleMousedown=function(e){if(!this.mousedown)if(e.hasOwnProperty("originalEvent")&&(e=e.originalEvent),this.mousedown=!0,this.options.center)this.createRipple(this.container.prop("clientWidth")/2,this.container.prop("clientWidth")/2);else if(e.srcElement!==this.$element[0]){var t=this.$element[0].getBoundingClientRect(),n=e.clientX-t.left,r=e.clientY-t.top;this.createRipple(n,r)}else this.createRipple(e.offsetX,e.offsetY)},r.prototype.handleMouseup=function(){i(this,this.clearRipples)},r.prototype.handleTouchmove=function(){i(this,this.deleteRipples)},r.prototype.deleteRipples=function(){for(var e=0;e<this.ripples.length;e++)this.ripples[e].remove()},r.prototype.clearRipples=function(){for(var e=0;e<this.ripples.length;e++)this.fadeInComplete(this.ripples[e])},r.prototype.createContainer=function(){var e=t.element('<div class="md-ripple-container"></div>');return this.$element.append(e),e},r.prototype.clearTimeout=function(){this.timeout&&(this.$timeout.cancel(this.timeout),this.timeout=null)},r.prototype.isRippleAllowed=function(){var e=this.$element[0];do{if(!e.tagName||"BODY"===e.tagName)break;if(e&&t.isFunction(e.hasAttribute)){if(e.hasAttribute("disabled"))return!1;if("false"===this.inkRipple()||"0"===this.inkRipple())return!1}}while(e=e.parentNode);return!0},r.prototype.inkRipple=function(){return this.$element.attr("md-ink-ripple")},r.prototype.createRipple=function(e,n){if(this.isRippleAllowed()){var r=this,i=r.$mdColorUtil,a=t.element('<div class="md-ripple"></div>'),o=this.$element.prop("clientWidth"),s=this.$element.prop("clientHeight"),c=2*Math.max(Math.abs(o-e),e),l=2*Math.max(Math.abs(s-n),n),u=function(e,t,n){return e?Math.max(t,n):Math.sqrt(Math.pow(t,2)+Math.pow(n,2))}(this.options.fitRipple,c,l),d=this.calculateColor();a.css({left:e+"px",top:n+"px",background:"black",width:u+"px",height:u+"px",backgroundColor:i.rgbaToRgb(d),borderColor:i.rgbaToRgb(d)}),this.lastRipple=a,this.clearTimeout(),this.timeout=this.$timeout(function(){r.clearTimeout(),r.mousedown||r.fadeInComplete(a)},157.5,!1),this.options.dimBackground&&this.container.css({backgroundColor:d}),this.container.append(a),this.ripples.push(a),a.addClass("md-ripple-placed"),this.$mdUtil.nextTick(function(){a.addClass("md-ripple-scaled md-ripple-active"),r.$timeout(function(){r.clearRipples()},450,!1)},!1)}},r.prototype.fadeInComplete=function(e){this.lastRipple===e?this.timeout||this.mousedown||this.removeRipple(e):this.removeRipple(e)},r.prototype.removeRipple=function(e){var t=this;this.ripples.indexOf(e)<0||(this.ripples.splice(this.ripples.indexOf(e),1),e.removeClass("md-ripple-active"),e.addClass("md-ripple-remove"),0===this.ripples.length&&this.container.css({backgroundColor:""}),this.$timeout(function(){t.fadeOutComplete(e)},450,!1))},r.prototype.fadeOutComplete=function(e){e.remove(),this.lastRipple=null}}(),function(){!function(){function e(e){function n(n,r,i){return e.attach(n,r,t.extend({center:!1,dimBackground:!0,outline:!1,rippleSize:"full"},i))}return{attach:n}}e.$inject=["$mdInkRipple"],e.$inject=["$mdInkRipple"],t.module("material.core").factory("$mdTabInkRipple",e)}()}(),function(){t.module("material.core.theming.palette",[]).constant("$mdColorPalette",{red:{50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 A100",contrastStrongLightColors:"400 500 600 700 A200 A400 A700"},pink:{50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"500 600 A200 A400 A700"},purple:{50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400 A200 A400 A700"},"deep-purple":{50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400 A200"},indigo:{50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100",contrastStrongLightColors:"300 400 A200 A400"},blue:{50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 400 A100",contrastStrongLightColors:"500 600 700 A200 A400 A700"},"light-blue":{50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea",contrastDefaultColor:"dark",contrastLightColors:"600 700 800 900 A700",contrastStrongLightColors:"600 700 800 A700"},cyan:{50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4",contrastDefaultColor:"dark",contrastLightColors:"700 800 900",contrastStrongLightColors:"700 800 900"},teal:{50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5",contrastDefaultColor:"dark",contrastLightColors:"500 600 700 800 900",contrastStrongLightColors:"500 600 700"},green:{50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853",contrastDefaultColor:"dark",contrastLightColors:"500 600 700 800 900",contrastStrongLightColors:"500 600 700"},"light-green":{50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17",contrastDefaultColor:"dark",contrastLightColors:"700 800 900",contrastStrongLightColors:"700 800 900"},lime:{50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00",contrastDefaultColor:"dark",contrastLightColors:"900",contrastStrongLightColors:"900"},yellow:{50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600",contrastDefaultColor:"dark"},amber:{50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00",contrastDefaultColor:"dark"},orange:{50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00",contrastDefaultColor:"dark",contrastLightColors:"800 900",contrastStrongLightColors:"800 900"},"deep-orange":{50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 400 A100 A200",contrastStrongLightColors:"500 600 700 800 900 A400 A700"},brown:{50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 A100 A200",contrastStrongLightColors:"300 400"},grey:{50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#ffffff",A200:"#000000",A400:"#303030",A700:"#616161",contrastDefaultColor:"dark",contrastLightColors:"600 700 800 900 A200 A400 A700"},"blue-grey":{50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64",contrastDefaultColor:"light",contrastDarkColors:"50 100 200 300 A100 A200",contrastStrongLightColors:"400 500 700"}})}(),function(){!function(e){function t(e){var t=!!document.querySelector("[md-themes-disabled]");e.disableTheming(t)}function r(t,r){function i(e,t){return t=t||{},f[e]=o(e,t),h}function a(t,n){return o(t,e.extend({},f[t]||{},n))}function o(e,t){var n=k.filter(function(e){return!t[e]});if(n.length)throw new Error("Missing colors %1 in palette %2!".replace("%1",n.join(", ")).replace("%2",e));return t}function c(t,n){if(y[t])return y[t];n=n||"default";var r="string"==typeof n?y[n]:n,i=new u(t);return r&&e.forEach(r.colors,function(t,n){i.colors[n]={name:t.name,hues:e.extend({},t.hues)}}),y[t]=i,i}function u(t){function n(t){if((t=0===arguments.length||!!t)!==r.isDark){r.isDark=t,r.foregroundPalette=r.isDark?g:m,r.foregroundShadow=r.isDark?v:b;var n=r.isDark?S:A,i=r.isDark?A:S;return e.forEach(n,function(e,t){var n=r.colors[t],a=i[t];if(n)for(var o in n.hues)n.hues[o]===a[o]&&(n.hues[o]=e[o])}),r}}var r=this;r.name=t,r.colors={},r.dark=n,n(!1),_.forEach(function(t){var n=(r.isDark?S:A)[t];r[t+"Palette"]=function(i,a){var o=r.colors[t]={name:i,hues:e.extend({},n,a)};return Object.keys(o.hues).forEach(function(e){if(!n[e])throw new Error("Invalid hue name '%1' in theme %2's %3 color %4. Available hue names: %4".replace("%1",e).replace("%2",r.name).replace("%3",i).replace("%4",Object.keys(n).join(", ")))}),Object.keys(o.hues).map(function(e){return o.hues[e]}).forEach(function(e){if(-1==k.indexOf(e))throw new Error("Invalid hue value '%1' in theme %2's %3 color %4. Available hue values: %5".replace("%1",e).replace("%2",r.name).replace("%3",t).replace("%4",i).replace("%5",k.join(", ")))}),r},r[t+"Color"]=function(){var e=Array.prototype.slice.call(arguments);return r[t+"Palette"].apply(r,e)}})}function d(t,r,i,a){function o(e){return e===n||""===e||u.THEMES[e]!==n}function s(e,t){function n(t){if(t){o(t)||a.warn("Attempted to use unregistered theme '"+t+"'. Register it with $mdThemingProvider.theme().");var n=e.data("$mdThemeName");n&&e.removeClass("md-"+n+"-theme"),e.addClass("md-"+t+"-theme"),e.data("$mdThemeName",t),i&&e.data("$mdThemeController",i)}}var i=t.controller("mdTheme")||e.data("$mdThemeController");if(n(function(){return i&&i.$mdTheme||("default"==M?"":M)}()),i)var s=x||i.$shouldWatch||r.parseAttributeBoolean(e.attr("md-theme-watch")),c=i.registerChanges(function(t){n(t),s?e.on("$destroy",c):c()})}var u=function e(r,i){i===n&&(i=r,r=n),r===n&&(r=t),e.inherit(i,i)};return Object.defineProperty(u,"THEMES",{get:function(){return e.extend({},y)}}),Object.defineProperty(u,"PALETTES",{get:function(){return e.extend({},f)}}),Object.defineProperty(u,"ALWAYS_WATCH",{get:function(){return x}}),u.inherit=s,u.registered=o,u.defaultTheme=function(){return M},u.generateTheme=function(e){l(y[e],e,$.nonce)},u.defineTheme=function(e,t){t=t||{};var n=c(e);return t.primary&&n.primaryPalette(t.primary),t.accent&&n.accentPalette(t.accent),t.warn&&n.warnPalette(t.warn),t.background&&n.backgroundPalette(t.background),t.dark&&n.dark(),this.generateTheme(e),i.resolve(e)},u.setBrowserColor=T,u}d.$inject=["$rootScope","$mdUtil","$q","$log"],d.$inject=["$rootScope","$mdUtil","$q","$log"],f={};var h,y={},x=!1,M="default";e.extend(f,t);var w=function(e){var t=r.setMeta("theme-color",e),n=r.setMeta("msapplication-navbutton-color",e);return function(){t(),n()}},T=function(t){t=e.isObject(t)?t:{};var n=t.theme||"default",r=t.hue||"800",i=f[t.palette]||f[y[n].colors[t.palette||"primary"].name],a=e.isObject(i[r])?i[r].hex:i[r];return w(a)};return h={definePalette:i,extendPalette:a,theme:c,configuration:function(){return e.extend({},$,{defaultTheme:M,alwaysWatchTheme:x,registeredStyles:[].concat($.registeredStyles)})},disableTheming:function(t){$.disableTheming=e.isUndefined(t)||!!t},registerStyles:function(e){$.registeredStyles.push(e)},setNonce:function(e){$.nonce=e},generateThemesOnDemand:function(e){$.generateOnDemand=e},setDefaultTheme:function(e){M=e},alwaysWatchTheme:function(e){x=e},enableBrowserColor:T,$get:d,_LIGHT_DEFAULT_HUES:A,_DARK_DEFAULT_HUES:S,_PALETTES:f,_THEMES:y,_parseRules:s,_rgba:p}}function i(t,n,r,i,a,o){return{priority:101,link:{pre:function(s,c,l){var u=[],d=n.startSymbol(),p=n.endSymbol(),f=l.mdTheme.trim(),h=f.substr(0,d.length)===d&&f.lastIndexOf(p)===f.length-p.length,m="::"===l.mdTheme.split(d).join("").split(p).join("").trim().substr(0,"::".length),g={registerChanges:function(t,n){return n&&(t=e.bind(n,t)),u.push(t),function(){var e=u.indexOf(t);e>-1&&u.splice(e,1)}},$setTheme:function(e){t.registered(e)||o.warn("attempted to use unregistered theme '"+e+"'"),g.$mdTheme=e;for(var n=u.length;n--;)u[n](e)},$shouldWatch:i.parseAttributeBoolean(c.attr("md-theme-watch"))||t.ALWAYS_WATCH||h&&!m};c.data("$mdThemeController",g);var v=function(){var e=n(l.mdTheme)(s);return r(e)(s)||e},b=function(t){if("string"==typeof t)return g.$setTheme(t);a.when(e.isFunction(t)?t():t).then(function(e){g.$setTheme(e)})};b(v());var y=s.$watch(v,function(e){e&&(b(e),g.$shouldWatch||y())})}}}}function a(){return $.disableTheming=!0,{restrict:"A",priority:"900"}}function o(e){return e}function s(t,n,r){u(t,n),r=r.replace(/THEME_NAME/g,t.name);var i=new RegExp("\\.md-"+t.name+"-theme","g"),a=/'?"?\{\{\s*([a-zA-Z]+)-(A?\d+|hue-[0-3]|shadow|default)-?(\d\.?\d*)?(contrast)?\s*\}\}'?"?/g;r=r.replace(a,function(e,n,r,i,a){return"foreground"===n?"shadow"==r?t.foregroundShadow:t.foregroundPalette[r]||t.foregroundPalette[1]:(0!==r.indexOf("hue")&&"default"!==r||(r=t.colors[n].hues[r]),p((f[t.colors[n].name][r]||"")[a?"contrast":"value"],i))});var o=new RegExp("('|\")?{{\\s*([a-zA-Z]+)-(color|contrast)-?(\\d\\.?\\d*)?\\s*}}(\"|')?","g"),s=[];return e.forEach(["default","hue-1","hue-2","hue-3"],function(e){var n=r.replace(o,function(n,r,i,a,o){var s=t.colors[i];return p(f[s.name][s.hues[e]]["color"===a?"value":"contrast"],o)});if("default"!==e&&(n=n.replace(i,".md-"+t.name+"-theme.md-"+e)),"default"==t.name){var a=/((?:\s|>|\.|\w|-|:|\(|\)|\[|\]|"|'|=)*)\.md-default-theme((?:\s|>|\.|\w|-|:|\(|\)|\[|\]|"|'|=)*)/g;n=n.replace(a,function(e,t,n){return e+", "+t+n})}s.push(n)}),s}function c(t,n){function r(t,n){var r=t.contrastDefaultColor,i=t.contrastLightColors||[],a=t.contrastStrongLightColors||[],o=t.contrastDarkColors||[];"string"==typeof i&&(i=i.split(" ")),"string"==typeof a&&(a=a.split(" ")),"string"==typeof o&&(o=o.split(" ")),delete t.contrastDefaultColor,delete t.contrastLightColors,delete t.contrastStrongLightColors,delete t.contrastDarkColors,e.forEach(t,function(n,s){if(!e.isObject(n)){var c=d(n);if(!c)throw new Error("Color %1, in palette %2's hue %3, is invalid. Hex or rgb(a) color expected.".replace("%1",n).replace("%2",t.name).replace("%3",s));t[s]={hex:t[s],value:c,contrast:function(){return"light"===r?o.indexOf(s)>-1?y:a.indexOf(s)>-1?M:x:i.indexOf(s)>-1?a.indexOf(s)>-1?M:x:y}()}}})}var i=document.head,a=i?i.firstElementChild:null,o=!$.disableTheming&&t.has("$MD_THEME_CSS")?t.get("$MD_THEME_CSS"):"";if(o+=$.registeredStyles.join(""),a&&0!==o.length){e.forEach(f,r);var s=o.split(/\}(?!(\}|'|"|;))/).filter(function(e){return e&&e.trim().length}).map(function(e){return e.trim()+"}"});_.forEach(function(e){T[e]=""}),s.forEach(function(e){for(var t,n=0;t=_[n];n++)if(e.indexOf(".md-"+t)>-1)return T[t]+=e;for(n=0;t=_[n];n++)if(e.indexOf(t)>-1)return T[t]+=e;return T[w]+=e}),$.generateOnDemand||e.forEach(n.THEMES,function(e){h[e.name]||"default"!==n.defaultTheme()&&"default"===e.name||l(e,e.name,$.nonce)})}}function l(e,t,n){var r=document.head,i=r?r.firstElementChild:null;h[t]||(_.forEach(function(t){for(var a=s(e,t,T[t]);a.length;){var o=a.shift();if(o){var c=document.createElement("style");c.setAttribute("md-theme-style",""),n&&c.setAttribute("nonce",n),c.appendChild(document.createTextNode(o)),r.insertBefore(c,i)}}}),h[e.name]=!0)}function u(e,t){if(!f[(e.colors[t]||{}).name])throw new Error("You supplied an invalid color palette for theme %1's %2 palette. Available palettes: %3".replace("%1",e.name).replace("%2",t).replace("%3",Object.keys(f).join(", ")))}function d(t){if(e.isArray(t)&&3==t.length)return t;if(/^rgb/.test(t))return t.replace(/(^\s*rgba?\(|\)\s*$)/g,"").split(",").map(function(e,t){return 3==t?parseFloat(e,10):parseInt(e,10)});if("#"==t.charAt(0)&&(t=t.substring(1)),/^([a-fA-F0-9]{3}){1,2}$/g.test(t)){var n=t.length/3,r=t.substr(0,n),i=t.substr(n,n),a=t.substr(2*n);return 1===n&&(r+=r,i+=i,a+=a),[parseInt(r,16),parseInt(i,16),parseInt(a,16)]}}function p(t,n){return t?(4==t.length&&(t=e.copy(t),n?t.pop():n=t.pop()),n&&("number"==typeof n||"string"==typeof n&&n.length)?"rgba("+t.join(",")+","+n+")":"rgb("+t.join(",")+")"):"rgb('0,0,0')"}c.$inject=["$injector","$mdTheming"],t.$inject=["$mdThemingProvider"],r.$inject=["$mdColorPalette","$$mdMetaProvider"],o.$inject=["$mdTheming"],i.$inject=["$mdTheming","$interpolate","$parse","$mdUtil","$q","$log"],t.$inject=["$mdThemingProvider"],i.$inject=["$mdTheming","$interpolate","$parse","$mdUtil","$q","$log"],o.$inject=["$mdTheming"],r.$inject=["$mdColorPalette","$$mdMetaProvider"],c.$inject=["$injector","$mdTheming"],e.module("material.core.theming",["material.core.theming.palette","material.core.meta"]).directive("mdTheme",i).directive("mdThemable",o).directive("mdThemesDisabled",a).provider("$mdTheming",r).config(t).run(c);var f,h={},m={name:"dark",1:"rgba(0,0,0,0.87)",2:"rgba(0,0,0,0.54)",3:"rgba(0,0,0,0.38)",4:"rgba(0,0,0,0.12)"},g={name:"light",1:"rgba(255,255,255,1.0)",2:"rgba(255,255,255,0.7)",3:"rgba(255,255,255,0.5)",4:"rgba(255,255,255,0.12)"},v="1px 1px 0px rgba(0,0,0,0.4), -1px -1px 0px rgba(0,0,0,0.4)",b="",y=d("rgba(0,0,0,0.87)"),x=d("rgba(255,255,255,0.87)"),M=d("rgb(255,255,255)"),_=["primary","accent","warn","background"],w="primary",A={accent:{default:"A200","hue-1":"A100","hue-2":"A400","hue-3":"A700"},background:{default:"50","hue-1":"A100","hue-2":"100","hue-3":"300"}},S={background:{default:"A400","hue-1":"800","hue-2":"900","hue-3":"A200"}};_.forEach(function(e){var t={default:"500","hue-1":"300","hue-2":"800","hue-3":"A100"};A[e]||(A[e]=t),S[e]||(S[e]=t)});var k=["50","100","200","300","400","500","600","700","800","900","A100","A200","A400","A700"],$={disableTheming:!1,generateOnDemand:!1,registeredStyles:[],nonce:null},T={}}(e.angular)}(),function(){function n(n,r,i,a,o){var s;return s={translate3d:function(e,t,n,r){function i(n){return o(e,{to:n||t,addClass:r.transitionOutClass,removeClass:r.transitionInClass,duration:r.duration}).start()}return o(e,{from:t,to:n,addClass:r.transitionInClass,removeClass:r.transitionOutClass,duration:r.duration}).start().then(function(){return i})},waitTransitionEnd:function(t,n){var o=3e3;return r(function(r,s){function c(e){e&&e.target!==t[0]||(e&&i.cancel(l),t.off(a.CSS.TRANSITIONEND,c),r())}n=n||{},function(n){return n=n||e.getComputedStyle(t[0]),"0s"==n.transitionDuration||!n.transition&&!n.transitionProperty}(n.cachedTransitionStyles)&&(o=0);var l=i(c,n.timeout||o);t.on(a.CSS.TRANSITIONEND,c)})},calculateTransformValues:function(e,t){var n=t.element,r=t.bounds;if(n||r){var i=n?s.clientRect(n)||function(){var t=e?e.parent():null,n=t?t.parent():null;return n?s.clientRect(n):null}():s.copyRect(r),a=s.copyRect(e[0].getBoundingClientRect()),o=s.centerPointFor(a),c=s.centerPointFor(i);return{centerX:c.x-o.x,centerY:c.y-o.y,scaleX:Math.round(100*Math.min(.5,i.width/a.width))/100,scaleY:Math.round(100*Math.min(.5,i.height/a.height))/100}}return{centerX:0,centerY:0,scaleX:.5,scaleY:.5}},calculateZoomToOrigin:function(e,r){return t.bind(null,n.supplant,"translate3d( {centerX}px, {centerY}px, 0 ) scale( {scaleX}, {scaleY} )")(s.calculateTransformValues(e,r))},calculateSlideToOrigin:function(e,r){return t.bind(null,n.supplant,"translate3d( {centerX}px, {centerY}px, 0 )")(s.calculateTransformValues(e,r))},toCss:function(e){function n(e,n,i){t.forEach(n.split(" "),function(e){r[e]=i})}var r={};return t.forEach(e,function(e,i){if(!t.isUndefined(e))if("left top right bottom width height x y min-width min-height max-width max-height".indexOf(i)>=0)r[i]=e+"px";else switch(i){case"transition":n(i,a.CSS.TRANSITION,e);break;case"transform":n(i,a.CSS.TRANSFORM,e);break;case"transformOrigin":n(i,a.CSS.TRANSFORM_ORIGIN,e);break;case"font-size":r["font-size"]=e}}),r},toTransformCss:function(e,n,r){var i={};return t.forEach(a.CSS.TRANSFORM.split(" "),function(t){i[t]=e}),n&&(r=r||"all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important",i.transition=r),i},copyRect:function(e,n){return e?(n=n||{},t.forEach("left top right bottom width height".split(" "),function(t){n[t]=Math.round(e[t])}),n.width=n.width||n.right-n.left,n.height=n.height||n.bottom-n.top,n):null},clientRect:function(e){var n=t.element(e)[0].getBoundingClientRect();return function(e){return e&&e.width>0&&e.height>0}(n)?s.copyRect(n):null},centerPointFor:function(e){return e?{x:Math.round(e.left+e.width/2),y:Math.round(e.top+e.height/2)}:{x:0,y:0}}}}t.module("material.core").factory("$$mdAnimate",["$q","$timeout","$mdConstant","$animateCss",function(e,t,r,i){return function(a){return n(a,e,t,r,i)}}])}(),function(){t.version.minor>=4?t.module("material.core.animate",[]):function(){function e(e){return e.replace(/-[a-z]/g,function(e){return e.charAt(1).toUpperCase()})}var n=t.forEach,r=t.isDefined(document.documentElement.style.WebkitAppearance),i=r?"-webkit-":"",a=(r?"webkitTransitionEnd ":"")+"transitionend",o=(r?"webkitAnimationEnd ":"")+"animationend",s=["$document",function(e){return function(){return e[0].body.clientWidth+1}}],c=["$$rAF",function(e){return function(){var t=!1;return e(function(){t=!0}),function(n){t?n():e(n)}}}],l=["$q","$$rAFMutex",function(e,r){function i(e){this.setHost(e),this._doneCallbacks=[],this._runInAnimationFrame=r(),this._state=0}return i.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:t.noop,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._runInAnimationFrame(function(){t._resolve(e)}))},_resolve:function(e){2!==this._state&&(n(this._doneCallbacks,function(t){t(e)}),this._doneCallbacks.length=0,this._state=2)}},i.all=function(e,t){function r(n){a=a&&n,++i===e.length&&t(a)}var i=0,a=!0;n(e,function(e){e.done(r)})},i}];t.module("material.core.animate",[]).factory("$$forceReflow",s).factory("$$AnimateRunner",l).factory("$$rAFMutex",c).factory("$animateCss",["$window","$$rAF","$$AnimateRunner","$$forceReflow","$$jqLite","$timeout","$animate",function(t,s,c,l,u,d,p){function f(r,s){var l=[],u=M(r),f=u&&p.enabled(),g=!1,w=!1;f&&(s.transitionStyle&&l.push([i+"transition",s.transitionStyle]),s.keyframeStyle&&l.push([i+"animation",s.keyframeStyle]),s.delay&&l.push([i+"transition-delay",s.delay+"s"]),s.duration&&l.push([i+"transition-duration",s.duration+"s"]),g=s.keyframeStyle||s.to&&(s.duration>0||s.transitionStyle),w=!!s.addClass||!!s.removeClass,_(r,!0));var A=f&&(g||w);y(r,s);var S,k,$=!1;return{close:t.close,start:function(){function t(){if(!$)return $=!0,S&&k&&r.off(S,k),h(r,s),b(r,s),n(l,function(t){u.style[e(t[0])]=""}),p.complete(!0),p}var p=new c;return v(function(){if(_(r,!1),!A)return t();n(l,function(t){var n=t[0],r=t[1];u.style[e(n)]=r}),h(r,s);var c=m(r);if(0===c.duration)return t();var p=[];s.easing&&(c.transitionDuration&&p.push([i+"transition-timing-function",s.easing]),c.animationDuration&&p.push([i+"animation-timing-function",s.easing])),s.delay&&c.animationDelay&&p.push([i+"animation-delay",s.delay+"s"]),s.duration&&c.animationDuration&&p.push([i+"animation-duration",s.duration+"s"]),n(p,function(t){var n=t[0],r=t[1];u.style[e(n)]=r,l.push(t)});var f=c.delay,g=1e3*f,v=c.duration,b=1e3*v,y=Date.now();S=[],c.transitionDuration&&S.push(a),c.animationDuration&&S.push(o),S=S.join(" "),k=function(e){e.stopPropagation();var n=e.originalEvent||e,r=n.timeStamp||Date.now(),i=parseFloat(n.elapsedTime.toFixed(3));Math.max(r-y,0)>=g&&i>=v&&t()},r.on(S,k),x(r,s),d(t,g+1.5*b,!1)}),p}}}function h(e,t){t.addClass&&(u.addClass(e,t.addClass),t.addClass=null),t.removeClass&&(u.removeClass(e,t.removeClass),t.removeClass=null)}function m(e){function n(e){return r?"Webkit"+e.charAt(0).toUpperCase()+e.substr(1):e}var i=M(e),a=t.getComputedStyle(i),o=g(a[n("transitionDuration")]),s=g(a[n("animationDuration")]),c=g(a[n("transitionDelay")]),l=g(a[n("animationDelay")]);return s*=parseInt(a[n("animationIterationCount")],10)||1,{duration:Math.max(s,o),delay:Math.max(l,c),animationDuration:s,transitionDuration:o,animationDelay:l,transitionDelay:c}}function g(e){var t=0,r=(e||"").split(/\s*,\s*/);return n(r,function(e){"s"==e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,t=t?Math.max(e,t):e}),t}function v(e){w&&w(),A.push(e),w=s(function(){w=null;for(var e=l(),t=0;t<A.length;t++)A[t](e);A.length=0})}function b(e,t){y(e,t),x(e,t)}function y(e,t){t.from&&(e.css(t.from),t.from=null)}function x(e,t){t.to&&(e.css(t.to),t.to=null)}function M(e){for(var t=0;t<e.length;t++)if(1===e[t].nodeType)return e[t]}function _(t,n){var r=M(t),a=e(i+"transition-delay");r.style[a]=n?"-9999s":""}var w,A=[];return f}])}()}(),function(){t.module("material.components.autocomplete",["material.core","material.components.icon","material.components.virtualRepeat"])}(),function(){t.module("material.components.backdrop",["material.core"]).directive("mdBackdrop",["$mdTheming","$mdUtil","$animate","$rootElement","$window","$log","$$rAF","$document",function(e,n,r,i,a,o,s,c){function l(l,d,p){function f(){var e=parseInt(h.height,10)+Math.abs(parseInt(h.top,10));d.css("height",e+"px")}r.pin&&r.pin(d,i);var h;s(function(){if(h=a.getComputedStyle(c[0].body),"fixed"===h.position){var r=n.debounce(function(){h=a.getComputedStyle(c[0].body),f()},60,null,!1);f(),t.element(a).on("resize",r),l.$on("$destroy",function(){t.element(a).off("resize",r)})}var i=d.parent();if(i.length){"BODY"===i[0].nodeName&&d.css("position","fixed");"static"===a.getComputedStyle(i[0]).position&&o.warn(u),e.inherit(d,i)}})}var u="<md-backdrop> may not work properly in a scrolled, static-positioned parent container.";return{restrict:"E",link:l}}])}(),function(){function e(e){return{restrict:"E",link:function(t,n){n.addClass("_md"),t.$on("$destroy",function(){e.destroy()})}}}function n(e){function n(e,n,a,o,s,c,l,u){function d(r,i,l,d){if(i=a.extractElementByName(i,"md-bottom-sheet"),i.attr("tabindex","-1"),i.hasClass("ng-cloak")){u.warn("$mdBottomSheet: using `<md-bottom-sheet ng-cloak >` will affect the bottom-sheet opening animations.",i[0])}l.disableBackdrop||(h=a.createBackdrop(r,"md-bottom-sheet-backdrop md-opaque"),h[0].tabIndex=-1,l.clickOutsideToClose&&h.on("click",function(){a.nextTick(s.cancel,!0)}),o.inherit(h,l.parent),e.enter(h,l.parent,null));var p=new f(i,l.parent);return l.bottomSheet=p,o.inherit(p.element,l.parent),l.disableParentScroll&&(l.restoreScroll=a.disableScrollAround(p.element,l.parent)),e.enter(p.element,l.parent,h).then(function(){var e=a.findFocusTarget(i)||t.element(i[0].querySelector("button")||i[0].querySelector("a")||i[0].querySelector(a.prefixer("ng-click",!0)))||h;l.escapeToClose&&(l.rootElementKeyupCallback=function(e){e.keyCode===n.KEY_CODE.ESCAPE&&a.nextTick(s.cancel,!0)},c.on("keyup",l.rootElementKeyupCallback),e&&e.focus())})}function p(t,n,r){var i=r.bottomSheet;return r.disableBackdrop||e.leave(h),e.leave(i.element).then(function(){r.disableParentScroll&&(r.restoreScroll(),delete r.restoreScroll),i.cleanup()})}function f(e,t){function o(t){e.css(n.CSS.TRANSITION_DURATION,"0ms")}function c(t){var r=t.pointer.distanceY;r<5&&(r=Math.max(-i,r/2)),e.css(n.CSS.TRANSFORM,"translate3d(0,"+(i+r)+"px,0)")}function u(t){if(t.pointer.distanceY>0&&(t.pointer.distanceY>20||Math.abs(t.pointer.velocityY)>r)){var i=e.prop("offsetHeight")-t.pointer.distanceY,o=Math.min(i/t.pointer.velocityY*.75,500);e.css(n.CSS.TRANSITION_DURATION,o+"ms"),a.nextTick(s.cancel,!0)}else e.css(n.CSS.TRANSITION_DURATION,""),e.css(n.CSS.TRANSFORM,"")}
23var d=l.register(t,"drag",{horizontal:!1});return t.on("$md.dragstart",o).on("$md.drag",c).on("$md.dragend",u),{element:e,cleanup:function(){d(),t.off("$md.dragstart",o),t.off("$md.drag",c),t.off("$md.dragend",u)}}}var h;return{themable:!0,onShow:d,onRemove:p,disableBackdrop:!1,escapeToClose:!0,clickOutsideToClose:!0,disableParentScroll:!0}}n.$inject=["$animate","$mdConstant","$mdUtil","$mdTheming","$mdBottomSheet","$rootElement","$mdGesture","$log"],n.$inject=["$animate","$mdConstant","$mdUtil","$mdTheming","$mdBottomSheet","$rootElement","$mdGesture","$log"];var r=.5,i=80;return e("$mdBottomSheet").setDefaults({methods:["disableParentScroll","escapeToClose","clickOutsideToClose"],options:n})}n.$inject=["$$interimElementProvider"],e.$inject=["$mdBottomSheet"],e.$inject=["$mdBottomSheet"],n.$inject=["$$interimElementProvider"],t.module("material.components.bottomSheet",["material.core","material.components.backdrop"]).directive("mdBottomSheet",e).provider("$mdBottomSheet",n)}(),function(){function e(e){return{restrict:"E",link:function(t,n){e(n)}}}function n(e,n,r,i){function a(e){return t.isDefined(e.href)||t.isDefined(e.ngHref)||t.isDefined(e.ngLink)||t.isDefined(e.uiSref)}function o(e,t){return a(t)?'<a class="md-button" ng-transclude></a>':'<button class="md-button" type="'+(void 0===t.type?"button":t.type)+'" ng-transclude></button>'}function s(o,s,c){n(s),e.attach(o,s),r.expectWithoutText(s,"aria-label"),a(c)&&t.isDefined(c.ngDisabled)&&o.$watch(c.ngDisabled,function(e){s.attr("tabindex",e?-1:0)}),s.on("click",function(e){!0===c.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}),s.hasClass("md-no-focus")||(s.on("focus",function(){i.isUserInvoked()&&"keyboard"!==i.getLastInteractionType()||s.addClass("md-focused")}),s.on("blur",function(){s.removeClass("md-focused")}))}return{restrict:"EA",replace:!0,transclude:!0,template:o,link:s}}e.$inject=["$mdTheming"],n.$inject=["$mdButtonInkRipple","$mdTheming","$mdAria","$mdInteraction"],n.$inject=["$mdButtonInkRipple","$mdTheming","$mdAria","$mdInteraction"],e.$inject=["$mdTheming"],t.module("material.components.button",["material.core"]).directive("mdButton",n).directive("a",e)}(),function(){function e(e){return{restrict:"E",link:function(t,n,r){n.addClass("_md"),e(n)}}}e.$inject=["$mdTheming"],e.$inject=["$mdTheming"],t.module("material.components.card",["material.core"]).directive("mdCard",e)}(),function(){function e(e,n,r,i,a,o){function s(s,c){function l(s,c,l,u){function d(e){var t=e.which||e.keyCode;t!==r.KEY_CODE.SPACE&&t!==r.KEY_CODE.ENTER||(e.preventDefault(),c.addClass("md-focused"),p(e))}function p(e){c[0].hasAttribute("disabled")||s.skipToggle||s.$apply(function(){var t=l.ngChecked&&l.ngClick?l.checked:!v.$viewValue;v.$setViewValue(t,e&&e.type),v.$render()})}function f(){c.toggleClass("md-checked",!!v.$viewValue&&!m)}function h(e){m=!1!==e,m&&c.attr("aria-checked","mixed"),c.toggleClass("md-indeterminate",m)}var m,g=u[0],v=u[1]||a.fakeNgModel(),b=u[2];if(g){var y=g.isErrorGetter||function(){return v.$invalid&&(v.$touched||b&&b.$submitted)};g.input=c,s.$watch(y,g.setInvalid)}i(c),c.children().on("focus",function(){c.focus()}),a.parseAttributeBoolean(l.mdIndeterminate)&&(h(),s.$watch(l.mdIndeterminate,h)),l.ngChecked&&s.$watch(s.$eval.bind(s,l.ngChecked),function(e){v.$setViewValue(e),v.$render()}),function(e,t,n){l[e]&&s.$watch(l[e],function(e){n[e]&&c.attr(t,n[e])})}("ngDisabled","tabindex",{true:"-1",false:l.tabindex}),n.expectWithText(c,"aria-label"),e.link.pre(s,{on:t.noop,0:{}},l,[v]),c.on("click",p).on("keypress",d).on("focus",function(){"keyboard"===o.getLastInteractionType()&&c.addClass("md-focused")}).on("blur",function(){c.removeClass("md-focused")}),v.$render=f}return c.$set("tabindex",c.tabindex||"0"),c.$set("type","checkbox"),c.$set("role",c.type),{pre:function(e,t){t.on("click",function(e){this.hasAttribute("disabled")&&e.stopImmediatePropagation()})},post:l}}return e=e[0],{restrict:"E",transclude:!0,require:["^?mdInputContainer","?ngModel","?^form"],priority:r.BEFORE_NG_ARIA,template:'<div class="md-container" md-ink-ripple md-ink-ripple-checkbox><div class="md-icon"></div></div><div ng-transclude class="md-label"></div>',compile:s}}e.$inject=["inputDirective","$mdAria","$mdConstant","$mdTheming","$mdUtil","$mdInteraction"],e.$inject=["inputDirective","$mdAria","$mdConstant","$mdTheming","$mdUtil","$mdInteraction"],t.module("material.components.checkbox",["material.core"]).directive("mdCheckbox",e)}(),function(){t.module("material.components.chips",["material.core","material.components.autocomplete"])}(),function(){!function(){function e(e,n,r){function a(e,t){try{t&&e.css(c(t))}catch(e){r.error(e.message)}}function o(e){return s(u(e))}function s(t,r){r=r||!1;var i=e.PALETTES[t.palette][t.hue];return i=r?i.contrast:i.value,n.supplant("rgba({0}, {1}, {2}, {3})",[i[0],i[1],i[2],i[3]||t.opacity])}function c(e){var n={},r=e.hasOwnProperty("color");return t.forEach(e,function(e,t){var i=u(e),a=t.indexOf("background")>-1;n[t]=s(i),a&&!r&&(n.color=s(i,!0))}),n}function l(n){return t.isDefined(e.THEMES[n.split("-")[0]])}function u(n){var r=n.split("-"),i=t.isDefined(e.THEMES[r[0]]),a=i?r.splice(0,1)[0]:e.defaultTheme();return{theme:a,palette:d(r,a),hue:p(r,a),opacity:r[2]||1}}function d(t,r){var a=t.length>1&&-1!==i.indexOf(t[1]),o=t[0].replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();if(a&&(o=t[0]+"-"+t.splice(1,1)),-1===i.indexOf(o)){var s=e.THEMES[r].colors[o];if(!s)throw new Error(n.supplant("mdColors: couldn't find '{palette}' in the palettes.",{palette:o}));o=s.name}return o}function p(t,r){var i=e.THEMES[r].colors;if("hue"===t[1]){var a=parseInt(t.splice(2,1)[0],10);if(a<1||a>3)throw new Error(n.supplant("mdColors: 'hue-{hueNumber}' is not a valid hue, can be only 'hue-1', 'hue-2' and 'hue-3'",{hueNumber:a}));if(t[1]="hue-"+a,!(t[0]in i))throw new Error(n.supplant("mdColors: 'hue-x' can only be used with [{availableThemes}], but was used with '{usedTheme}'",{availableThemes:Object.keys(i).join(", "),usedTheme:t[0]}));return i[t[0]].hues[t[1]]}return t[1]||i[t[0]in i?t[0]:"primary"].hues.default}return i=i||Object.keys(e.PALETTES),{applyThemeColors:a,getThemeColor:o,hasTheme:l}}function n(e,n,i,a){return{restrict:"A",require:["^?mdTheme"],compile:function(o,s){var c=function(){var e=s.mdColors,i=e.indexOf("::")>-1,a=!!i||r.test(s.mdColors);s.mdColors=e.replace("::","");var o=t.isDefined(s.mdColorsWatch);return!i&&!a&&(!o||n.parseAttributeBoolean(s.mdColorsWatch))}();return function(n,r,o,s){var l=s[0],u={},d=function(t){"string"!=typeof t&&(t=""),o.mdColors||(o.mdColors="{}");var r=a(o.mdColors)(n);return l&&Object.keys(r).forEach(function(n){var i=r[n];e.hasTheme(i)||(r[n]=(t||l.$mdTheme)+"-"+i)}),p(r),r},p=function(e){if(!t.equals(e,u)){var n=Object.keys(u);u.background&&!n.color&&n.push("color"),n.forEach(function(e){r.css(e,"")})}u=e},f=t.noop;l&&(f=l.registerChanges(function(t){e.applyThemeColors(r,d(t))})),n.$on("$destroy",function(){f()});try{c?n.$watch(d,t.bind(this,e.applyThemeColors,r),!0):e.applyThemeColors(r,d())}catch(e){i.error(e.message)}}}}}e.$inject=["$mdTheming","$mdUtil","$log"],n.$inject=["$mdColors","$mdUtil","$log","$parse"],n.$inject=["$mdColors","$mdUtil","$log","$parse"],e.$inject=["$mdTheming","$mdUtil","$log"];var r=/^{((\s|,)*?["'a-zA-Z-]+?\s*?:\s*?('|")[a-zA-Z0-9-.]*('|"))+\s*}$/,i=null;t.module("material.components.colors",["material.core"]).directive("mdColors",n).service("$mdColors",e)}()}(),function(){function e(e){function t(e,t){this.$scope=e,this.$element=t}return{restrict:"E",controller:["$scope","$element",t],link:function(t,r){r.addClass("_md"),e(r),t.$broadcast("$mdContentLoaded",r),n(r[0])}}}function n(e){t.element(e).on("$md.pressdown",function(t){"t"===t.pointer.type&&(t.$materialScrollFixed||(t.$materialScrollFixed=!0,0===e.scrollTop?e.scrollTop=1:e.scrollHeight===e.scrollTop+e.offsetHeight&&(e.scrollTop-=1)))})}e.$inject=["$mdTheming"],e.$inject=["$mdTheming"],t.module("material.components.content",["material.core"]).directive("mdContent",e)}(),function(){t.module("material.components.datepicker",["material.core","material.components.icon","material.components.virtualRepeat"])}(),function(){function e(e,n,r){return{restrict:"E",link:function(i,a){a.addClass("_md"),n(a),e(function(){function e(){a.toggleClass("md-content-overflow",o.scrollHeight>o.clientHeight)}var n,o=a[0].querySelector("md-dialog-content");o&&(n=o.getElementsByTagName("img"),e(),t.element(n).on("load",e)),i.$on("$destroy",function(){r.destroy(a)})})}}}function r(e){function r(){return{template:['<md-dialog md-theme="{{ dialog.theme || dialog.defaultTheme }}" aria-label="{{ dialog.ariaLabel }}" ng-class="dialog.css">',' <md-dialog-content class="md-dialog-content" role="document" tabIndex="-1">',' <h2 class="md-title">{{ dialog.title }}</h2>',' <div ng-if="::dialog.mdHtmlContent" class="md-dialog-content-body" ',' ng-bind-html="::dialog.mdHtmlContent"></div>',' <div ng-if="::!dialog.mdHtmlContent" class="md-dialog-content-body">'," <p>{{::dialog.mdTextContent}}</p>"," </div>",' <md-input-container md-no-float ng-if="::dialog.$type == \'prompt\'" class="md-prompt-input-container">',' <input ng-keypress="dialog.keypress($event)" md-autofocus ng-model="dialog.result" placeholder="{{::dialog.placeholder}}" ng-required="dialog.required">'," </md-input-container>"," </md-dialog-content>"," <md-dialog-actions>",' <md-button ng-if="dialog.$type === \'confirm\' || dialog.$type === \'prompt\'" ng-click="dialog.abort()" class="md-primary md-cancel-button">'," {{ dialog.cancel }}"," </md-button>",' <md-button ng-click="dialog.hide()" class="md-primary md-confirm-button" md-autofocus="dialog.$type===\'alert\'" ng-disabled="dialog.required && !dialog.result">'," {{ dialog.ok }}"," </md-button>"," </md-dialog-actions>","</md-dialog>"].join("").replace(/\s\s+/g,""),controller:i,controllerAs:"dialog",bindToController:!0}}function i(e,n){this.$onInit=function(){var r="prompt"==this.$type;r&&this.initialValue&&(this.result=this.initialValue),this.hide=function(){e.hide(!r||this.result)},this.abort=function(){e.cancel()},this.keypress=function(i){var a=r&&this.required&&!t.isDefined(this.result);i.keyCode!==n.KEY_CODE.ENTER||a||e.hide(this.result)}}}function a(e,r,i,a,c,l,u,d,p,f,h,m,g){function v(e){e.defaultTheme=h.defaultTheme(),M(e)}function b(e,t,n,r){if(r){var i=r.htmlContent||n.htmlContent||"",a=r.textContent||n.textContent||r.content||n.content||"";if(i&&!f.has("$sanitize"))throw Error("The ngSanitize module must be loaded in order to use htmlContent.");if(i&&a)throw Error("md-dialog cannot have both `htmlContent` and `textContent`");r.mdHtmlContent=i,r.mdTextContent=a}}function y(e,n,r,a){function o(){n[0].querySelector(".md-actions")&&p.warn("Using a class of md-actions is deprecated, please use <md-dialog-actions>.")}function s(){if(r.focusOnOpen){(i.findFocusTarget(n)||function(){return n[0].querySelector(".dialog-close, md-dialog-actions button:last-child")}()||c).focus()}}t.element(l[0].body).addClass("md-dialog-is-showing");var c=n.find("md-dialog");if(c.hasClass("ng-cloak")){p.warn("$mdDialog: using `<md-dialog ng-cloak>` will affect the dialog opening animations.",n[0])}return _(r),S(c,r),A(e,n,r),w(n,r),T(n,r).then(function(){k(n,r),o(),s()})}function x(e,n,r){function i(){t.element(l[0].body).removeClass("md-dialog-is-showing"),r.contentElement&&r.reverseContainerStretch(),r.cleanupElement(),r.$destroy||"keyboard"!==r.originInteraction||r.origin.focus()}return r.deactivateListeners(),r.unlockScreenReader(),r.hideBackdrop(r.$destroy),o&&o.parentNode&&o.parentNode.removeChild(o),s&&s.parentNode&&s.parentNode.removeChild(s),r.$destroy?i():function(){return C(n,r)}().then(i)}function M(e){var n;e.targetEvent&&e.targetEvent.target&&(n=t.element(e.targetEvent.target));var r=n&&n.controller("mdTheme");if(e.hasTheme=!!r,e.hasTheme){e.themeWatch=r.$shouldWatch;var i=e.theme||r.$mdTheme;i&&(e.scope.theme=i);var a=r.registerChanges(function(t){e.scope.theme=t,e.themeWatch||a()})}}function _(e){function r(e,r){var i=t.element(e||{});if(i&&i.length){var a={top:0,left:0,height:0,width:0},o=t.isFunction(i[0].getBoundingClientRect);return t.extend(r||{},{element:o?i:n,bounds:o?i[0].getBoundingClientRect():t.extend({},a,i[0]),focus:t.bind(i,i.focus)})}}function i(e,n){return t.isString(e)&&(e=l[0].querySelector(e)),t.element(e||n)}e.origin=t.extend({element:null,bounds:null,focus:t.noop},e.origin||{}),e.parent=i(e.parent,d),e.closeTo=r(i(e.closeTo)),e.openFrom=r(i(e.openFrom)),e.targetEvent&&(e.origin=r(e.targetEvent.target,e.origin),e.originInteraction=g.getLastInteractionType())}function w(n,r){var o=t.element(u),s=i.debounce(function(){$(n,r)},60),c=[],l=function(){var t="alert"==r.$type?e.hide:e.cancel;i.nextTick(t,!0)};if(r.escapeToClose){var d=r.parent,p=function(e){e.keyCode===a.KEY_CODE.ESCAPE&&(e.stopPropagation(),e.preventDefault(),l())};n.on("keydown",p),d.on("keydown",p),c.push(function(){n.off("keydown",p),d.off("keydown",p)})}if(o.on("resize",s),c.push(function(){o.off("resize",s)}),r.clickOutsideToClose){var f,h=n,m=function(e){f=e.target},g=function(e){f===h[0]&&e.target===h[0]&&(e.stopPropagation(),e.preventDefault(),l())};h.on("mousedown",m),h.on("mouseup",g),c.push(function(){h.off("mousedown",m),h.off("mouseup",g)})}r.deactivateListeners=function(){c.forEach(function(e){e()}),r.deactivateListeners=null}}function A(e,t,n){n.disableParentScroll&&(n.restoreScroll=i.disableScrollAround(t,n.parent)),n.hasBackdrop&&(n.backdrop=i.createBackdrop(e,"md-dialog-backdrop md-opaque"),c.enter(n.backdrop,n.parent)),n.hideBackdrop=function(e){n.backdrop&&(e?n.backdrop.remove():c.leave(n.backdrop)),n.disableParentScroll&&(n.restoreScroll&&n.restoreScroll(),delete n.restoreScroll),n.hideBackdrop=null}}function S(e,t){var n="alert"===t.$type?"alertdialog":"dialog",a=e.find("md-dialog-content"),c=e.attr("id"),l="dialogContent_"+(c||i.nextUid());e.attr({role:n,tabIndex:"-1"}),0===a.length&&(a=e,c&&(l=c)),a.attr("id",l),e.attr("aria-describedby",l),t.ariaLabel?r.expect(e,"aria-label",t.ariaLabel):r.expectAsync(e,"aria-label",function(){if(t.title)return t.title;var e=a.text().split(/\s+/);return e.length>3&&(e=e.slice(0,3).concat("...")),e.join(" ")}),o=document.createElement("div"),o.classList.add("md-dialog-focus-trap"),o.tabIndex=0,s=o.cloneNode(!1);var u=function(){e.focus()};o.addEventListener("focus",u),s.addEventListener("focus",u),e[0].parentNode.insertBefore(o,e[0]),e.after(s)}function k(e,t){function n(e){for(;e.parentNode;){if(e===document.body)return;for(var t=e.parentNode.children,i=0;i<t.length;i++)e===t[i]||E(t[i],["SCRIPT","STYLE"])||t[i].hasAttribute("aria-live")||t[i].setAttribute("aria-hidden",r);n(e=e.parentNode)}}var r=!0;n(e[0]),t.unlockScreenReader=function(){r=!1,n(e[0]),t.unlockScreenReader=null}}function $(e,t){var n="fixed"==u.getComputedStyle(l[0].body).position,r=t.backdrop?u.getComputedStyle(t.backdrop[0]):null,i=r?Math.min(l[0].body.clientHeight,Math.ceil(Math.abs(parseInt(r.height,10)))):0,a={top:e.css("top"),height:e.css("height")},o=Math.abs(t.parent[0].getBoundingClientRect().top);return e.css({top:(n?o:0)+"px",height:i?i+"px":"100%"}),function(){e.css(a)}}function T(e,t){t.parent.append(e),t.reverseContainerStretch=$(e,t);var n=e.find("md-dialog"),r=i.dom.animator,a=r.calculateZoomToOrigin,o={transitionInClass:"md-transition-in",transitionOutClass:"md-transition-out"},s=r.toTransformCss(a(n,t.openFrom||t.origin)),c=r.toTransformCss("");return n.toggleClass("md-dialog-fullscreen",!!t.fullscreen),r.translate3d(n,s,c,o).then(function(e){return t.reverseAnimate=function(){return delete t.reverseAnimate,t.closeTo?(o={transitionInClass:"md-transition-out",transitionOutClass:"md-transition-in"},s=c,c=r.toTransformCss(a(n,t.closeTo)),r.translate3d(n,s,c,o)):e(c=r.toTransformCss(a(n,t.origin)))},t.clearAnimate=function(){return delete t.clearAnimate,n.removeClass([o.transitionOutClass,o.transitionInClass].join(" ")),r.translate3d(n,c,r.toTransformCss(""),{})},!0})}function C(e,t){return t.reverseAnimate().then(function(){t.contentElement&&t.clearAnimate()})}function E(e,t){if(-1!==t.indexOf(e.nodeName))return!0}return{hasBackdrop:!0,isolateScope:!0,onCompiling:v,onShow:y,onShowing:b,onRemove:x,clickOutsideToClose:!1,escapeToClose:!0,targetEvent:null,closeTo:null,openFrom:null,focusOnOpen:!0,disableParentScroll:!0,autoWrap:!0,fullscreen:!1,transformTemplate:function(e,t){var n=m.startSymbol(),r=m.endSymbol(),i=n+(t.themeWatch?"":"::")+"theme"+r;return'<div class="md-dialog-container" tabindex="-1" '+(t.hasTheme?'md-theme="'+i+'"':"")+">"+function(e){return t.autoWrap&&!/<\/md-dialog>/g.test(e)?"<md-dialog>"+(e||"")+"</md-dialog>":e||""}(e)+"</div>"}}}a.$inject=["$mdDialog","$mdAria","$mdUtil","$mdConstant","$animate","$document","$window","$rootElement","$log","$injector","$mdTheming","$interpolate","$mdInteraction"],i.$inject=["$mdDialog","$mdConstant"],a.$inject=["$mdDialog","$mdAria","$mdUtil","$mdConstant","$animate","$document","$window","$rootElement","$log","$injector","$mdTheming","$interpolate","$mdInteraction"];var o,s;return e("$mdDialog").setDefaults({methods:["disableParentScroll","hasBackdrop","clickOutsideToClose","escapeToClose","targetEvent","closeTo","openFrom","parent","fullscreen","multiple"],options:a}).addPreset("alert",{methods:["title","htmlContent","textContent","content","ariaLabel","ok","theme","css"],options:r}).addPreset("confirm",{methods:["title","htmlContent","textContent","content","ariaLabel","ok","cancel","theme","css"],options:r}).addPreset("prompt",{methods:["title","htmlContent","textContent","initialValue","content","placeholder","ariaLabel","ok","cancel","theme","css","required"],options:r})}r.$inject=["$$interimElementProvider"],e.$inject=["$$rAF","$mdTheming","$mdDialog"],e.$inject=["$$rAF","$mdTheming","$mdDialog"],r.$inject=["$$interimElementProvider"],t.module("material.components.dialog",["material.core","material.components.backdrop"]).directive("mdDialog",e).provider("$mdDialog",r)}(),function(){function e(e){return{restrict:"E",link:e}}e.$inject=["$mdTheming"],e.$inject=["$mdTheming"],t.module("material.components.divider",["material.core"]).directive("mdDivider",e)}(),function(){!function(){function e(e){return{restrict:"E",require:["^?mdFabSpeedDial","^?mdFabToolbar"],compile:function(t,n){var r=t.children();e.prefixer().hasAttribute(r,"ng-repeat")?r.addClass("md-fab-action-item"):r.wrap('<div class="md-fab-action-item">')}}}e.$inject=["$mdUtil"],e.$inject=["$mdUtil"],t.module("material.components.fabActions",["material.core"]).directive("mdFabActions",e)}()}(),function(){!function(){function e(e,n,r,i,a,o){function s(){E.direction=E.direction||"down",E.isOpen=E.isOpen||!1,u(),n.addClass("md-animations-waiting")}function c(){var r=["click","focusin","focusout"];t.forEach(r,function(e){n.on(e,l)}),e.$on("$destroy",function(){t.forEach(r,function(e){n.off(e,l)}),h()})}function l(e){"click"==e.type&&$(e),"focusout"!=e.type||z||(z=o(function(){E.close()},100,!1)),"focusin"==e.type&&z&&(o.cancel(z),z=null)}function u(){E.currentActionIndex=-1}function d(){e.$watch("vm.direction",function(e,t){r.removeClass(n,"md-"+t),r.addClass(n,"md-"+e),u()});var t,i;e.$watch("vm.isOpen",function(e){u(),t&&i||(t=T(),i=C()),e?f():h();var a=e?"md-is-open":"",o=e?"":"md-is-open";t.attr("aria-haspopup",!0),t.attr("aria-expanded",e),i.attr("aria-hidden",!e),r.setClass(n,a,o)})}function p(){n[0].scrollHeight>0?r.addClass(n,"_md-animations-ready").then(function(){n.removeClass("md-animations-waiting")}):O<10&&(o(p,100),O+=1)}function f(){n.on("keydown",g),i.nextTick(function(){t.element(document).on("click touchend",m)})}function h(){n.off("keydown",g),t.element(document).off("click touchend",m)}function m(e){if(e.target){var t=i.getClosest(e.target,"md-fab-trigger"),n=i.getClosest(e.target,"md-fab-actions");t||n||E.close()}}function g(e){switch(e.which){case a.KEY_CODE.ESCAPE:return E.close(),e.preventDefault(),!1;case a.KEY_CODE.LEFT_ARROW:return M(e),!1;case a.KEY_CODE.UP_ARROW:return _(e),!1;case a.KEY_CODE.RIGHT_ARROW:return w(e),!1;case a.KEY_CODE.DOWN_ARROW:return A(e),!1}}function v(e){y(e,-1)}function b(e){y(e,1)}function y(e,n){var r=x();E.currentActionIndex=E.currentActionIndex+n,E.currentActionIndex=Math.min(r.length-1,E.currentActionIndex),E.currentActionIndex=Math.max(0,E.currentActionIndex);var i=t.element(r[E.currentActionIndex]).children()[0];t.element(i).attr("tabindex",0),i.focus(),e.preventDefault(),e.stopImmediatePropagation()}function x(){var e=C()[0].querySelectorAll(".md-fab-action-item");return t.forEach(e,function(e){t.element(t.element(e).children()[0]).attr("tabindex",-1)}),e}function M(e){"left"===E.direction?b(e):v(e)}function _(e){"down"===E.direction?v(e):b(e)}function w(e){"left"===E.direction?v(e):b(e)}function A(e){"up"===E.direction?v(e):b(e)}function S(e){return i.getClosest(e,"md-fab-trigger")}function k(e){return i.getClosest(e,"md-fab-actions")}function $(e){S(e.target)&&E.toggle(),k(e.target)&&E.close()}function T(){return n.find("md-fab-trigger")}function C(){return n.find("md-fab-actions")}var E=this,O=0;E.open=function(){e.$evalAsync("vm.isOpen = true")},E.close=function(){e.$evalAsync("vm.isOpen = false"),n.find("md-fab-trigger")[0].focus()},E.toggle=function(){e.$evalAsync("vm.isOpen = !vm.isOpen")},E.$onInit=function(){s(),c(),d(),p()},1===t.version.major&&t.version.minor<=4&&this.$onInit();var z}e.$inject=["$scope","$element","$animate","$mdUtil","$mdConstant","$timeout"],e.$inject=["$scope","$element","$animate","$mdUtil","$mdConstant","$timeout"],t.module("material.components.fabShared",["material.core"]).controller("MdFabController",e)}()}(),function(){!function(){function n(){function e(e,t){t.prepend('<div class="_md-css-variables"></div>')}return{restrict:"E",scope:{direction:"@?mdDirection",isOpen:"=?mdOpen"},bindToController:!0,controller:"MdFabController",controllerAs:"vm",link:e}}function r(n){function r(e){n(e,a,!1)}function i(n){if(!n.hasClass("md-animations-waiting")||n.hasClass("_md-animations-ready")){var r=n[0],i=n.controller("mdFabSpeedDial"),a=r.querySelectorAll(".md-fab-action-item"),o=r.querySelector("md-fab-trigger"),s=r.querySelector("._md-css-variables"),c=parseInt(e.getComputedStyle(s).zIndex);t.forEach(a,function(e,t){var n=e.style;n.transform=n.webkitTransform="",n.transitionDelay="",n.opacity=1,n.zIndex=a.length-t+c}),o.style.zIndex=c+a.length+1,i.isOpen||t.forEach(a,function(e,t){var n,r,a=e.style,s=(o.clientHeight-e.clientHeight)/2,c=(o.clientWidth-e.clientWidth)/2;switch(i.direction){case"up":n=e.scrollHeight*(t+1)+s,r="Y";break;case"down":n=-(e.scrollHeight*(t+1)+s),r="Y";break;case"left":n=e.scrollWidth*(t+1)+c,r="X";break;case"right":n=-(e.scrollWidth*(t+1)+c),r="X"}var l="translate"+r+"("+n+"px)";a.transform=a.webkitTransform=l})}}return{addClass:function(e,t,n){e.hasClass("md-fling")?(i(e),r(n)):n()},removeClass:function(e,t,n){i(e),r(n)}}}function i(n){function r(e){n(e,a,!1)}function i(n){var r=n[0],i=n.controller("mdFabSpeedDial"),a=r.querySelectorAll(".md-fab-action-item"),s=r.querySelector("._md-css-variables"),c=parseInt(e.getComputedStyle(s).zIndex);t.forEach(a,function(e,t){var n=e.style,r=t*o;n.opacity=i.isOpen?1:0,n.transform=n.webkitTransform=i.isOpen?"scale(1)":"scale(0)",n.transitionDelay=(i.isOpen?r:a.length-r)+"ms",n.zIndex=a.length-t+c})}var o=65;return{addClass:function(e,t,n){i(e),r(n)},removeClass:function(e,t,n){i(e),r(n)}}}i.$inject=["$timeout"],r.$inject=["$timeout"],r.$inject=["$timeout"],i.$inject=["$timeout"];var a=300;t.module("material.components.fabSpeedDial",["material.core","material.components.fabShared","material.components.fabActions"]).directive("mdFabSpeedDial",n).animation(".md-fling",r).animation(".md-scale",i).service("mdFabSpeedDialFlingAnimation",r).service("mdFabSpeedDialScaleAnimation",i)}()}(),function(){!function(){function n(){function e(e,t,n){t.addClass("md-fab-toolbar"),t.find("md-fab-trigger").find("button").prepend('<div class="md-fab-toolbar-background"></div>')}return{restrict:"E",transclude:!0,template:'<div class="md-fab-toolbar-wrapper"> <div class="md-fab-toolbar-content" ng-transclude></div></div>',scope:{direction:"@?mdDirection",isOpen:"=?mdOpen"},bindToController:!0,controller:"MdFabController",controllerAs:"vm",link:e}}function r(){function n(n,r,i){if(r){var a=n[0],o=n.controller("mdFabToolbar"),s=a.querySelector(".md-fab-toolbar-background"),c=a.querySelector("md-fab-trigger button"),l=a.querySelector("md-toolbar"),u=a.querySelector("md-fab-trigger button md-icon"),d=n.find("md-fab-actions").children();if(c&&s){var p=e.getComputedStyle(c).getPropertyValue("background-color"),f=a.offsetWidth,h=(a.offsetHeight,f/c.offsetWidth*2);s.style.backgroundColor=p,s.style.borderRadius=f+"px",o.isOpen?(l.style.pointerEvents="inherit",s.style.width=c.offsetWidth+"px",s.style.height=c.offsetHeight+"px",s.style.transform="scale("+h+")",s.style.transitionDelay="0ms",u&&(u.style.transitionDelay=".3s"),t.forEach(d,function(e,t){e.style.transitionDelay=25*(d.length-t)+"ms"})):(l.style.pointerEvents="none",s.style.transform="scale(1)",s.style.top="0",n.hasClass("md-right")&&(s.style.left="0",s.style.right=null),n.hasClass("md-left")&&(s.style.right="0",s.style.left=null),s.style.transitionDelay="200ms",u&&(u.style.transitionDelay="0ms"),t.forEach(d,function(e,t){e.style.transitionDelay=200+25*t+"ms"}))}}}return{addClass:function(e,t,r){n(e,t,r),r()},removeClass:function(e,t,r){n(e,t,r),r()}}}t.module("material.components.fabToolbar",["material.core","material.components.fabShared","material.components.fabActions"]).directive("mdFabToolbar",n).animation(".md-fab-toolbar",r).service("mdFabToolbarAnimation",r)}()}(),function(){function e(e,r,i,a){function o(n,o,s,c){function l(){c.layoutDelegate=t.noop,w();for(var e in r.MEDIA)a.getQuery(r.MEDIA[e]).removeListener(_)}function u(e){null==e?c.invalidateLayout():a(e)&&c.invalidateLayout()}function d(e){var r=m(),a={tileSpans:g(r),colCount:v(),rowMode:x(),rowHeight:y(),gutter:b()};if(e||!t.equals(a,A)){var s=i(a.colCount,a.tileSpans,r).map(function(e,n){return{grid:{element:o,style:h(a.colCount,n,a.gutter,a.rowMode,a.rowHeight)},tiles:e.map(function(e,i){return{element:t.element(r[i]),style:f(e.position,e.spans,a.colCount,n,a.gutter,a.rowMode,a.rowHeight)}})}}).reflow().performance();n.mdOnLayout({$event:{performance:s}}),A=a}}function p(e){return S+e+k}function f(e,t,n,r,i,a,o){var s=1/n*100,c=(n-1)/n,l=$({share:s,gutterShare:c,gutter:i}),u="rtl"!=document.dir&&"rtl"!=document.body.dir,d=u?{left:T({unit:l,offset:e.col,gutter:i}),width:C({unit:l,span:t.col,gutter:i}),paddingTop:"",marginTop:"",top:"",height:""}:{right:T({unit:l,offset:e.col,gutter:i}),width:C({unit:l,span:t.col,gutter:i}),paddingTop:"",marginTop:"",top:"",height:""};switch(a){case"fixed":d.top=T({unit:o,offset:e.row,gutter:i}),d.height=C({unit:o,span:t.row,gutter:i});break;case"ratio":var p=s/o,f=$({share:p,gutterShare:c,gutter:i});d.paddingTop=C({unit:f,span:t.row,gutter:i}),d.marginTop=T({unit:f,offset:e.row,gutter:i});break;case"fit":var h=(r-1)/r;p=1/r*100,f=$({share:p,gutterShare:h,gutter:i}),d.top=T({unit:f,offset:e.row,gutter:i}),d.height=C({unit:f,span:t.row,gutter:i})}return d}function h(e,t,n,r,i){var a={};switch(r){case"fixed":a.height=C({unit:i,span:t,gutter:n}),a.paddingBottom="";break;case"ratio":var o=1===e?0:(e-1)/e,s=1/e*100,c=s*(1/i),l=$({share:c,gutterShare:o,gutter:n});a.height="",a.paddingBottom=C({unit:l,span:t,gutter:n})}return a}function m(){return[].filter.call(o.children(),function(e){return"MD-GRID-TILE"==e.tagName&&!e.$$mdDestroyed})}function g(e){return[].map.call(e,function(e){var n=t.element(e).controller("mdGridTile");return{row:parseInt(a.getResponsiveAttribute(n.$attrs,"md-rowspan"),10)||1,col:parseInt(a.getResponsiveAttribute(n.$attrs,"md-colspan"),10)||1}})}function v(){var e=parseInt(a.getResponsiveAttribute(s,"md-cols"),10);if(isNaN(e))throw"md-grid-list: md-cols attribute was not found, or contained a non-numeric value";return e}function b(){return M(a.getResponsiveAttribute(s,"md-gutter")||1)}function y(){var e=a.getResponsiveAttribute(s,"md-row-height");if(!e)throw"md-grid-list: md-row-height attribute was not found";switch(x()){case"fixed":return M(e);case"ratio":var t=e.split(":");return parseFloat(t[0])/parseFloat(t[1]);case"fit":return 0}}function x(){var e=a.getResponsiveAttribute(s,"md-row-height");if(!e)throw"md-grid-list: md-row-height attribute was not found";return"fit"==e?"fit":-1!==e.indexOf(":")?"ratio":"fixed"}function M(e){return/\D$/.test(e)?e:e+"px"}o.addClass("_md"),o.attr("role","list"),c.layoutDelegate=d;var _=t.bind(c,c.invalidateLayout),w=function(){for(var e in r.MEDIA)a(e),a.getQuery(r.MEDIA[e]).addListener(_);return a.watchResponsiveAttributes(["md-cols","md-row-height","md-gutter"],s,u)}();n.$on("$destroy",l);var A,S=e.startSymbol(),k=e.endSymbol(),$=e(p("share")+"% - ("+p("gutter")+" * "+p("gutterShare")+")"),T=e("calc(("+p("unit")+" + "+p("gutter")+") * "+p("offset")+")"),C=e("calc(("+p("unit")+") * "+p("span")+" + ("+p("span")+" - 1) * "+p("gutter")+")")}return{restrict:"E",controller:n,scope:{mdOnLayout:"&"},link:o}}function n(e){this.layoutInvalidated=!1,this.tilesInvalidated=!1,this.$timeout_=e.nextTick,this.layoutDelegate=t.noop}function r(e){function n(t,n){var r,o,s,c,l,u;return c=e.time(function(){o=i(t,n)}),r={layoutInfo:function(){return o},map:function(t){return l=e.time(function(){var e=r.layoutInfo();s=t(e.positioning,e.rowCount)}),r},reflow:function(t){return u=e.time(function(){(t||a)(s.grid,s.tiles)}),r},performance:function(){return{tileCount:n.length,layoutTime:c,mapTime:l,reflowTime:u,totalTime:c+l+u}}}}function r(e,t){e.element.css(e.style),t.forEach(function(e){e.element.css(e.style)})}function i(e,t){function n(t,n){if(t.col>e)throw"md-grid-list: Tile at position "+n+" has a colspan ("+t.col+") that exceeds the column count ("+e+")";for(var l=0,u=0;u-l<t.col;)o>=e?r():(l=c.indexOf(0,o),-1!==l&&-1!==(u=a(l+1))?o=u+1:(l=u=0,r()));return i(l,t.col,t.row),o=l+t.col,{col:l,row:s}}function r(){o=0,s++,i(0,e,-1)}function i(e,t,n){for(var r=e;r<e+t;r++)c[r]=Math.max(c[r]+n,0)}function a(e){var t;for(t=e;t<c.length;t++)if(0!==c[t])return t;if(t===c.length)return t}var o=0,s=0,c=function(){for(var t=[],n=0;n<e;n++)t.push(0);return t}();return{positioning:t.map(function(e,t){return{spans:e,position:n(e,t)}}),rowCount:s+Math.max.apply(Math,c)}}var a=r;return n.animateWith=function(e){a=t.isFunction(e)?e:r},n}function i(e){function n(n,r,i,a){r.attr("role","listitem");var o=e.watchResponsiveAttributes(["md-colspan","md-rowspan"],i,t.bind(a,a.invalidateLayout));a.invalidateTiles(),n.$on("$destroy",function(){r[0].$$mdDestroyed=!0,o(),a.invalidateLayout()}),t.isDefined(n.$parent.$index)&&n.$watch(function(){return n.$parent.$index},function(e,t){e!==t&&a.invalidateTiles()})}return{restrict:"E",require:"^mdGridList",template:"<figure ng-transclude></figure>",transclude:!0,scope:{},controller:["$attrs",function(e){this.$attrs=e}],link:n}}function a(){return{template:"<figcaption ng-transclude></figcaption>",transclude:!0}}n.$inject=["$mdUtil"],r.$inject=["$mdUtil"],i.$inject=["$mdMedia"],e.$inject=["$interpolate","$mdConstant","$mdGridLayout","$mdMedia"],n.$inject=["$mdUtil"],r.$inject=["$mdUtil"],e.$inject=["$interpolate","$mdConstant","$mdGridLayout","$mdMedia"],i.$inject=["$mdMedia"],t.module("material.components.gridList",["material.core"]).directive("mdGridList",e).directive("mdGridTile",i).directive("mdGridTileFooter",a).directive("mdGridTileHeader",a).factory("$mdGridLayout",r),n.prototype={invalidateTiles:function(){this.tilesInvalidated=!0,this.invalidateLayout()},invalidateLayout:function(){this.layoutInvalidated||(this.layoutInvalidated=!0,this.$timeout_(t.bind(this,this.layout)))},layout:function(){try{this.layoutDelegate(this.tilesInvalidated)}finally{this.layoutInvalidated=!1,this.tilesInvalidated=!1}}}}(),function(){
24t.module("material.components.icon",["material.core"])}(),function(){function n(e,t){function n(t){var n=t[0].querySelector(a),r=t[0].querySelector(o);return n&&t.addClass("md-icon-left"),r&&t.addClass("md-icon-right"),function(t,n){e(n)}}function r(e,n,r,i){var a=this;a.isErrorGetter=r.mdIsError&&t(r.mdIsError),a.delegateClick=function(){a.input.focus()},a.element=n,a.setFocused=function(e){n.toggleClass("md-input-focused",!!e)},a.setHasValue=function(e){n.toggleClass("md-input-has-value",!!e)},a.setHasPlaceholder=function(e){n.toggleClass("md-input-has-placeholder",!!e)},a.setInvalid=function(e){e?i.addClass(n,"md-input-invalid"):i.removeClass(n,"md-input-invalid")},e.$watch(function(){return a.label&&a.input},function(e){e&&!a.label.attr("for")&&a.label.attr("for",a.input.attr("id"))})}r.$inject=["$scope","$element","$attrs","$animate"],r.$inject=["$scope","$element","$attrs","$animate"];var i=["INPUT","TEXTAREA","SELECT","MD-SELECT"],a=i.reduce(function(e,t){return e.concat(["md-icon ~ "+t,".md-icon ~ "+t])},[]).join(","),o=i.reduce(function(e,t){return e.concat([t+" ~ md-icon",t+" ~ .md-icon"])},[]).join(",");return{restrict:"E",compile:n,controller:r}}function r(){return{restrict:"E",require:"^?mdInputContainer",link:function(e,t,n,r){!r||n.mdNoFloat||t.hasClass("md-container-ignore")||(r.label=t,e.$on("$destroy",function(){r.label=null}))}}}function i(e,n,r,i,a){function o(o,s,c,l){function u(e){return p.setHasValue(!h.$isEmpty(e)),e}function d(){p.setHasValue(s.val().length>0||(s[0].validity||{}).badInput)}var p=l[0],f=!!l[1],h=l[1]||e.fakeNgModel(),m=l[2],g=t.isDefined(c.readonly),v=e.parseAttributeBoolean(c.mdNoAsterisk),b=s[0].tagName.toLowerCase();if(p){if("hidden"===c.type)return void s.attr("aria-hidden","true");if(p.input){if(p.input[0].contains(s[0]))return;throw new Error("<md-input-container> can only have *one* <input>, <textarea> or <md-select> child element!")}p.input=s,function(){p.label&&c.$observe("required",function(e){p.label.toggleClass("md-required",e&&!v)})}();var y=t.element('<div class="md-errors-spacer">');s.after(y);var x=t.isString(c.placeholder)?c.placeholder.trim():"";p.label||x.length||r.expect(s,"aria-label"),s.addClass("md-input"),s.attr("id")||s.attr("id","input_"+e.nextUid()),"input"===b&&"number"===c.type&&c.min&&c.max&&!c.step?s.attr("step","any"):"textarea"===b&&function(){function r(){s.attr("rows",1).css("height","auto").addClass("md-no-flex");var e=l();if(!y){var t=s[0].style.padding||"";y=s.css("padding",0).prop("offsetHeight"),s[0].style.padding=t}if(g&&y&&(e=Math.max(e,y*g)),v&&y){var n=y*v;n<e?(s.attr("md-no-autogrow",""),e=n):s.removeAttr("md-no-autogrow")}y&&s.attr("rows",Math.round(e/y)),s.css("height",e+"px").removeClass("md-no-flex")}function l(){var e=x.offsetHeight,t=x.scrollHeight-e;return e+Math.max(t,0)}function u(t){return e.nextTick(r),t}function d(){if(m&&(m=!1,t.element(n).off("resize",r),b&&b(),s.attr("md-no-autogrow","").off("input",r),f)){var e=h.$formatters.indexOf(u);e>-1&&h.$formatters.splice(e,1)}}var m=!c.hasOwnProperty("mdNoAutogrow");if(function(){function e(e){e.preventDefault(),u=!0,f=e.clientY,h=parseFloat(s.css("height"))||s.prop("offsetHeight")}function n(e){u&&(e.preventDefault(),d(),m.addClass("md-input-resized"))}function r(e){u&&s.css("height",h+e.pointer.distanceY+"px")}function i(e){u&&(u=!1,m.removeClass("md-input-resized"))}if(!c.hasOwnProperty("mdNoResize")){var l=t.element('<div class="md-resize-handle"></div>'),u=!1,f=null,h=0,m=p.element,g=a.register(l,"drag",{horizontal:!1});s.wrap('<div class="md-resize-wrapper">').after(l),l.on("mousedown",e),m.on("$md.dragstart",n).on("$md.drag",r).on("$md.dragend",i),o.$on("$destroy",function(){l.off("mousedown",e).remove(),m.off("$md.dragstart",n).off("$md.drag",r).off("$md.dragend",i),g(),l=null,m=null,g=null})}}(),m){var g=c.hasOwnProperty("rows")?parseInt(c.rows):NaN,v=c.hasOwnProperty("maxRows")?parseInt(c.maxRows):NaN,b=o.$on("md-resize-textarea",r),y=null,x=s[0];if(i(function(){e.nextTick(r)},10,!1),s.on("input",r),f&&h.$formatters.push(u),g||s.attr("rows",1),t.element(n).on("resize",r),o.$on("$destroy",d),c.hasOwnProperty("mdDetectHidden")){var M=function(){var e=!1;return function(){var t=0===x.offsetHeight;!1===t&&!0===e&&r(),e=t}}();o.$watch(function(){return e.nextTick(M,!1),!0})}}}(),f||d();var M=p.isErrorGetter||function(){return h.$invalid&&(h.$touched||m&&m.$submitted)};o.$watch(M,p.setInvalid),c.ngValue&&c.$observe("value",d),h.$parsers.push(u),h.$formatters.push(u),s.on("input",d),g||s.on("focus",function(t){e.nextTick(function(){p.setFocused(!0)})}).on("blur",function(t){e.nextTick(function(){p.setFocused(!1),d()})}),o.$on("$destroy",function(){p.setFocused(!1),p.setHasValue(!1),p.input=null})}}return{restrict:"E",require:["^?mdInputContainer","?ngModel","?^form"],link:o}}function a(e,n){function r(r,i,a,o){function s(e){return l&&l.parent?(l.text(String(i.val()||e||"").length+" / "+c),e):e}var c=parseInt(a.mdMaxlength);isNaN(c)&&(c=-1);var l,u,d=o[0],p=o[1];d.$validators["md-maxlength"]=function(e,n){return!t.isNumber(c)||c<0||(s(),(e||i.val()||n||"").length<=c)},n.nextTick(function(){u=t.element(p.element[0].querySelector(".md-errors-spacer")),l=t.element('<div class="md-char-counter">'),u.append(l),a.$set("ngTrim","false"),r.$watch(a.mdMaxlength,function(n){c=n,t.isNumber(n)&&n>0?(l.parent().length||e.enter(l,u),s()):e.leave(l)})})}return{restrict:"A",require:["ngModel","^mdInputContainer"],link:r}}function o(e){function n(n,r,i,a){if(a){var o=a.element.find("label"),s=a.element.attr("md-no-float");if(o&&o.length||""===s||n.$eval(s))return void a.setHasPlaceholder(!0);if("MD-SELECT"!=r[0].nodeName){var c=t.element('<label ng-click="delegateClick()" tabindex="-1">'+i.placeholder+"</label>");i.$set("placeholder",null),a.element.addClass("md-icon-float").prepend(c),e(c)(n)}}}return{restrict:"A",require:"^^?mdInputContainer",priority:200,link:{pre:n}}}function s(e,t){function n(n,r,i){function a(){s=!0,t(function(){e[0].activeElement===r[0]&&r[0].select(),s=!1},1,!1)}function o(e){s&&e.preventDefault()}if("INPUT"===r[0].nodeName||"TEXTAREA"===r[0].nodeName){var s=!1;r.on("focus",a).on("mouseup",o),n.$on("$destroy",function(){r.off("focus",a).off("mouseup",o)})}}return{restrict:"A",link:n}}function c(){function e(e,n,r,i){i&&(n.toggleClass("md-input-messages-animation",!0),n.toggleClass("md-auto-hide",!0),("false"==r.mdAutoHide||t(r))&&n.toggleClass("md-auto-hide",!1))}function t(e){return S.some(function(t){return e[t]})}return{restrict:"EA",link:e,require:"^^?mdInputContainer"}}function l(e){function t(t){function n(t){return!!e.getClosest(t,"md-input-container")}function r(e){e.toggleClass("md-input-message-animation",!0)}if(n(t))r(t);else if(function(){for(var e=t[0];e=e.parentNode;)if(e.nodeType===Node.DOCUMENT_FRAGMENT_NODE)return!0;return!1}())return function(e,i){n(i)&&r(t)}}return{restrict:"EA",compile:t,priority:100}}function u(e,t,n,r){return y(e,t,n,r),{addClass:function(e,t,n){f(e,n)}}}function d(e,t,n,r){return y(e,t,n,r),{enter:function(e,t){f(e,t)},leave:function(e,t){h(e,t)},addClass:function(e,t,n){"ng-hide"==t?h(e,n):n()},removeClass:function(e,t,n){"ng-hide"==t?f(e,n):n()}}}function p(e,t,n,r){return y(e,t,n,r),{enter:function(e,t){m(e).start().done(t)},leave:function(e,t){g(e).start().done(t)}}}function f(e,n){var r,i=[],a=b(e),o=a.children();if(0==a.length||0==o.length)return A.warn("mdInput messages show animation called on invalid messages element: ",e),void n();t.forEach(o,function(e){r=m(t.element(e)),i.push(r.start())}),M.all(i,n)}function h(e,n){var r,i=[],a=b(e),o=a.children();if(0==a.length||0==o.length)return A.warn("mdInput messages hide animation called on invalid messages element: ",e),void n();t.forEach(o,function(e){r=g(t.element(e)),i.push(r.start())}),M.all(i,n)}function m(t){var n=parseInt(e.getComputedStyle(t[0]).height),r=parseInt(e.getComputedStyle(t[0]).marginTop),i=b(t),a=v(t);return r>-n||i.hasClass("md-auto-hide")&&!a.hasClass("md-input-invalid")?_(t,{}):_(t,{event:"enter",structural:!0,from:{opacity:0,"margin-top":-n+"px"},to:{opacity:1,"margin-top":"0"},duration:.3})}function g(t){var n=t[0].offsetHeight,r=e.getComputedStyle(t[0]);return 0===parseInt(r.opacity)?_(t,{}):_(t,{event:"leave",structural:!0,from:{opacity:1,"margin-top":0},to:{opacity:0,"margin-top":-n+"px"},duration:.3})}function v(e){return e.controller("mdInputContainer").element}function b(e){return e.hasClass("md-input-messages-animation")?e:e.hasClass("md-input-message-animation")?t.element(w.getClosest(e,function(e){return e.classList.contains("md-input-messages-animation")})):t.element(e[0].querySelector(".md-input-messages-animation"))}function y(e,t,n,r){M=e,_=t,w=n,A=r}p.$inject=["$$AnimateRunner","$animateCss","$mdUtil","$log"],d.$inject=["$$AnimateRunner","$animateCss","$mdUtil","$log"],u.$inject=["$$AnimateRunner","$animateCss","$mdUtil","$log"],s.$inject=["$document","$timeout"],l.$inject=["$mdUtil"],o.$inject=["$compile"],a.$inject=["$animate","$mdUtil"],i.$inject=["$mdUtil","$window","$mdAria","$timeout","$mdGesture"],n.$inject=["$mdTheming","$parse"],n.$inject=["$mdTheming","$parse"],i.$inject=["$mdUtil","$window","$mdAria","$timeout","$mdGesture"],a.$inject=["$animate","$mdUtil"],o.$inject=["$compile"],l.$inject=["$mdUtil"],s.$inject=["$document","$timeout"],u.$inject=["$$AnimateRunner","$animateCss","$mdUtil","$log"],d.$inject=["$$AnimateRunner","$animateCss","$mdUtil","$log"],p.$inject=["$$AnimateRunner","$animateCss","$mdUtil","$log"];var x=t.module("material.components.input",["material.core"]).directive("mdInputContainer",n).directive("label",r).directive("input",i).directive("textarea",i).directive("mdMaxlength",a).directive("placeholder",o).directive("ngMessages",c).directive("ngMessage",l).directive("ngMessageExp",l).directive("mdSelectOnFocus",s).animation(".md-input-invalid",u).animation(".md-input-messages-animation",d).animation(".md-input-message-animation",p);e._mdMocksIncluded&&x.service("$$mdInput",function(){return{messages:{show:f,hide:h,getElement:b}}}).service("mdInputInvalidAnimation",u).service("mdInputMessagesAnimation",d).service("mdInputMessageAnimation",p);var M,_,w,A,S=["ngIf","ngShow","ngHide","ngSwitchWhen","ngSwitchDefault"]}(),function(){function e(e){return{restrict:"E",compile:function(t){return t[0].setAttribute("role","list"),e}}}function n(e,n,r,i){var a=["md-checkbox","md-switch","md-menu"];return{restrict:"E",controller:"MdListController",compile:function(o,s){function c(n){if("div"==n)b=t.element('<div class="md-no-style md-list-item-inner">'),b.append(o.contents()),o.addClass("md-proxy-focus");else{b=t.element('<div class="md-button md-no-style"> <div class="md-list-item-inner"></div></div>');var r=t.element('<md-button class="md-no-style"></md-button>');u(o[0],r[0]),r.attr("aria-label")||r.attr("aria-label",e.getText(o)),o.hasClass("md-no-focus")&&r.addClass("md-no-focus"),b.prepend(r),b.children().eq(1).append(o.contents()),o.addClass("_md-button-wrap")}o[0].setAttribute("tabindex","-1"),o.append(b)}function l(n,r){if(n&&!p(n)&&n.hasAttribute("ng-click")){e.expect(n,"aria-label");var i=t.element('<md-button class="md-secondary md-icon-button">');u(n,i[0],["ng-if","ng-hide","ng-show"]),n.setAttribute("tabindex","-1"),i.append(n),n=i[0]}n&&(!f(n)||!s.ngClick&&d(n))&&t.element(n).removeClass("md-secondary"),o.addClass("md-with-secondary"),r.append(n)}function u(e,n,i){var a=r.prefixer(["ng-if","ng-click","ng-dblclick","aria-label","ng-disabled","ui-sref","href","ng-href","rel","target","ng-attr-ui-sref","ui-sref-opts","download"]);i&&(a=a.concat(r.prefixer(i))),t.forEach(a,function(t){e.hasAttribute(t)&&(n.setAttribute(t,e.getAttribute(t)),e.removeAttribute(t))})}function d(e){return-1!=a.indexOf(e.nodeName.toLowerCase())}function p(e){var t=e.nodeName.toUpperCase();return"MD-BUTTON"==t||"BUTTON"==t}function f(e){for(var t=e.attributes,n=0;n<t.length;n++)if("ngClick"===s.$normalize(t[n].name))return!0;return!1}function h(e,o,s,c){function l(e){var t=["md-slider"];if(!e.path)return-1!==t.indexOf(e.target.tagName.toLowerCase());for(var n=e.path.indexOf(o.children()[0]),r=0;r<n;r++)if(-1!==t.indexOf(e.path[r].tagName.toLowerCase()))return!0}o.addClass("_md");var u=[],d=o[0].firstElementChild,p=o.hasClass("_md-button-wrap"),h=p?d.firstElementChild:d,m=h&&f(h),g=o.hasClass("md-no-proxy");!function(){d&&d.children&&!m&&!g&&t.forEach(a,function(e){t.forEach(d.querySelectorAll(e+":not(.md-secondary)"),function(e){u.push(e)})})}(),function(){(1==u.length||m)&&(o.addClass("md-clickable"),m||c.attachRipple(e,t.element(o[0].querySelector(".md-no-style"))))}(),u.length&&t.forEach(u,function(n){n=t.element(n),e.mouseActive=!1,n.on("mousedown",function(){e.mouseActive=!0,i(function(){e.mouseActive=!1},100)}).on("focus",function(){!1===e.mouseActive&&o.addClass("md-focused"),n.on("blur",function e(){o.removeClass("md-focused"),n.off("blur",e)})})});var v=function(e){if("INPUT"!=e.target.nodeName&&"TEXTAREA"!=e.target.nodeName&&!e.target.isContentEditable){(e.which||e.keyCode)==n.KEY_CODE.SPACE&&h&&(h.click(),e.preventDefault(),e.stopPropagation())}};m||u.length||h&&h.addEventListener("keypress",v),o.off("click"),o.off("keypress"),1==u.length&&h&&o.children().eq(0).on("click",function(e){if(!l(e)){!r.getClosest(e.target,"BUTTON")&&h.contains(e.target)&&t.forEach(u,function(n){e.target===n||n.contains(e.target)||("MD-MENU"===n.nodeName&&(n=n.children[0]),t.element(n).triggerHandler("click"))})}}),e.$on("$destroy",function(){h&&h.removeEventListener("keypress",v)})}var m,g,v=o[0].querySelectorAll(".md-secondary"),b=o;if(o[0].setAttribute("role","listitem"),s.ngClick||s.ngDblclick||s.ngHref||s.href||s.uiSref||s.ngAttrUiSref)c("button");else if(!o.hasClass("md-no-proxy")){for(var y,x=0;y=a[x];++x)if(g=o[0].querySelector(y)){m=!0;break}m?c("div"):o.addClass("md-no-proxy")}return function(){var e=t.element('<div class="md-secondary-container">');t.forEach(v,function(t){l(t,e)}),b.append(e)}(),function(){for(var e,t,n=["md-switch","md-checkbox"],r=0;t=n[r];++r)if((e=o.find(t)[0])&&!e.hasAttribute("aria-label")){var i=o.find("p")[0];if(!i)return;e.setAttribute("aria-label","Toggle "+i.textContent)}}(),m&&"MD-MENU"===g.nodeName&&function(){var e=t.element(g),n=e.parent().hasClass("md-secondary-container")||g.parentNode.firstElementChild!==g,r="left";n&&(r="right"),e.attr("md-position-mode")||e.attr("md-position-mode",r+" target");var i=e.children().eq(0);f(i[0])||i.attr("ng-click","$mdMenu.open($event)"),i.attr("aria-label")||i.attr("aria-label","Open List Menu")}(),h}}}function r(e,t,n){function r(e,t){var r={};n.attach(e,t,r)}this.attachRipple=r}n.$inject=["$mdAria","$mdConstant","$mdUtil","$timeout"],e.$inject=["$mdTheming"],r.$inject=["$scope","$element","$mdListInkRipple"],r.$inject=["$scope","$element","$mdListInkRipple"],e.$inject=["$mdTheming"],n.$inject=["$mdAria","$mdConstant","$mdUtil","$timeout"],t.module("material.components.list",["material.core"]).controller("MdListController",r).directive("mdList",e).directive("mdListItem",n)}(),function(){t.module("material.components.menu",["material.core","material.components.backdrop"])}(),function(){t.module("material.components.menuBar",["material.core","material.components.icon","material.components.menu"])}(),function(){function e(e,n){return{restrict:"E",transclude:!0,controller:r,controllerAs:"ctrl",bindToController:!0,scope:{mdSelectedNavItem:"=?",mdNoInkBar:"=?",navBarAriaLabel:"@?"},template:'<div class="md-nav-bar"><nav role="navigation"><ul class="_md-nav-bar-list" ng-transclude role="listbox"tabindex="0"ng-focus="ctrl.onFocus()"ng-keydown="ctrl.onKeydown($event)"aria-label="{{ctrl.navBarAriaLabel}}"></ul></nav><md-nav-ink-bar ng-hide="ctrl.mdNoInkBar"></md-nav-ink-bar></div>',link:function(r,i,a,o){n(i),o.navBarAriaLabel||e.expectAsync(i,"aria-label",t.noop)}}}function r(e,t,n,r){this._$timeout=n,this._$scope=t,this._$mdConstant=r,this.mdSelectedNavItem,this.navBarAriaLabel,this._navBarEl=e[0],this._inkbar;var i=this,a=this._$scope.$watch(function(){return i._navBarEl.querySelectorAll("._md-nav-button").length},function(e){e>0&&(i._initTabs(),a())})}function i(e,n,r,i){return{restrict:"E",require:["mdNavItem","^mdNavBar"],controller:a,bindToController:!0,controllerAs:"ctrl",replace:!0,transclude:!0,template:function(e,t){var n,r,i,a=t.mdNavClick,o=t.mdNavHref,s=t.mdNavSref,c=t.srefOpts;if((a?1:0)+(o?1:0)+(s?1:0)>1)throw Error("Must not specify more than one of the md-nav-click, md-nav-href, or md-nav-sref attributes per nav-item directive.");return a?n='ng-click="ctrl.mdNavClick()"':o?n='ng-href="{{ctrl.mdNavHref}}"':s&&(n='ui-sref="{{ctrl.mdNavSref}}"'),r=c?'ui-sref-opts="{{ctrl.srefOpts}}" ':"",n&&(i='<md-button class="_md-nav-button md-accent" ng-class="ctrl.getNgClassMap()" ng-blur="ctrl.setFocused(false)" ng-disabled="ctrl.disabled"tabindex="-1" '+r+n+'><span ng-transclude class="_md-nav-button-text"></span></md-button>'),'<li class="md-nav-item" role="option" aria-selected="{{ctrl.isSelected()}}">'+(i||"")+"</li>"},scope:{mdNavClick:"&?",mdNavHref:"@?",mdNavSref:"@?",srefOpts:"=?",name:"@"},link:function(a,o,s,c){var l;n(function(){var n=c[0],u=c[1],d=t.element(o[0].querySelector("._md-nav-button"));if(n.name||(n.name=t.element(o[0].querySelector("._md-nav-button-text")).text().trim()),d.on("click",function(){u.mdSelectedNavItem=n.name,a.$apply()}),"MutationObserver"in i){var p={attributes:!0,attributeFilter:["disabled"]},f=o[0],h=function(e){r.nextTick(function(){n.disabled=r.parseAttributeBoolean(s[e[0].attributeName],!1)})},m=new MutationObserver(h);m.observe(f,p),l=m.disconnect.bind(m)}else s.$observe("disabled",function(e){n.disabled=r.parseAttributeBoolean(e,!1)});e.expectWithText(o,"aria-label")}),a.$on("destroy",function(){l()})}}}function a(e){this._$element=e,this.mdNavClick,this.mdNavHref,this.mdNavSref,this.srefOpts,this.name,this._selected=!1,this._focused=!1}i.$inject=["$mdAria","$$rAF","$mdUtil","$window"],a.$inject=["$element"],e.$inject=["$mdAria","$mdTheming"],r.$inject=["$element","$scope","$timeout","$mdConstant"],r.$inject=["$element","$scope","$timeout","$mdConstant"],i.$inject=["$mdAria","$$rAF","$mdUtil","$window"],a.$inject=["$element"],e.$inject=["$mdAria","$mdTheming"],t.module("material.components.navBar",["material.core"]).controller("MdNavBarController",r).directive("mdNavBar",e).controller("MdNavItemController",a).directive("mdNavItem",i),r.prototype._initTabs=function(){this._inkbar=t.element(this._navBarEl.querySelector("md-nav-ink-bar"));var e=this;this._$timeout(function(){e._updateTabs(e.mdSelectedNavItem,n)}),this._$scope.$watch("ctrl.mdSelectedNavItem",function(t,n){e._$timeout(function(){e._updateTabs(t,n)})})},r.prototype._updateTabs=function(e,t){var n=this,r=this._getTabs();if(r){var i=-1,a=-1,o=this._getTabByName(e),s=this._getTabByName(t);s&&(s.setSelected(!1),i=r.indexOf(s)),o&&(o.setSelected(!0),a=r.indexOf(o)),this._$timeout(function(){n._updateInkBarStyles(o,a,i)})}},r.prototype._updateInkBarStyles=function(e,t,n){if(this._inkbar.toggleClass("_md-left",t<n).toggleClass("_md-right",t>n),this._inkbar.css({display:t<0?"none":""}),e){var r=e.getButtonEl(),i=r.offsetLeft;this._inkbar.css({left:i+"px",width:r.offsetWidth+"px"})}},r.prototype._getTabs=function(){var e=Array.prototype.slice.call(this._navBarEl.querySelectorAll(".md-nav-item")).map(function(e){return t.element(e).controller("mdNavItem")});return e.indexOf(n)?e:null},r.prototype._getTabByName=function(e){return this._findTab(function(t){return t.getName()==e})},r.prototype._getSelectedTab=function(){return this._findTab(function(e){return e.isSelected()})},r.prototype.getFocusedTab=function(){return this._findTab(function(e){return e.hasFocus()})},r.prototype._findTab=function(e){for(var t=this._getTabs(),n=0;n<t.length;n++)if(e(t[n]))return t[n];return null},r.prototype.onFocus=function(){var e=this._getSelectedTab();e&&e.setFocused(!0)},r.prototype._moveFocus=function(e,t){e.setFocused(!1),t.setFocused(!0)},r.prototype.onKeydown=function(e){var t=this._$mdConstant.KEY_CODE,n=this._getTabs(),r=this.getFocusedTab();if(r){var i=n.indexOf(r);switch(e.keyCode){case t.UP_ARROW:case t.LEFT_ARROW:i>0&&this._moveFocus(r,n[i-1]);break;case t.DOWN_ARROW:case t.RIGHT_ARROW:i<n.length-1&&this._moveFocus(r,n[i+1]);break;case t.SPACE:case t.ENTER:this._$timeout(function(){r.getButtonEl().click()})}}},a.prototype.getNgClassMap=function(){return{"md-active":this._selected,"md-primary":this._selected,"md-unselected":!this._selected,"md-focused":this._focused}},a.prototype.getName=function(){return this.name},a.prototype.getButtonEl=function(){return this._$element[0].querySelector("._md-nav-button")},a.prototype.setSelected=function(e){this._selected=e},a.prototype.isSelected=function(){return this._selected},a.prototype.setFocused=function(e){this._focused=e,e&&this.getButtonEl().focus()},a.prototype.hasFocus=function(){return this._focused}}(),function(){function e(){return{definePreset:r,getAllPresets:i,clearPresets:a,$get:o()}}function r(e,t){if(!e||!t)throw new Error("mdPanelProvider: The panel preset definition is malformed. The name and preset object are required.");if(g.hasOwnProperty(e))throw new Error("mdPanelProvider: The panel preset you have requested has already been defined.");delete t.id,delete t.position,delete t.animation,g[e]=t}function i(){return t.copy(g)}function a(){g={}}function o(){return["$rootElement","$rootScope","$injector","$window",function(e,t,n,r){return new s(g,e,t,n,r)}]}function s(e,n,r,i,a){this._defaultConfigOptions={bindToController:!0,clickOutsideToClose:!1,disableParentScroll:!1,escapeToClose:!1,focusOnOpen:!0,fullscreen:!1,hasBackdrop:!1,propagateContainerEvents:!1,transformTemplate:t.bind(this,this._wrapTemplate),trapFocus:!1,zIndex:h},this._config={},this._presets=e,this._$rootElement=n,this._$rootScope=r,this._$injector=i,this._$window=a,this._$mdUtil=this._$injector.get("$mdUtil"),this._trackedPanels={},this._groups=Object.create(null),this.animation=u.animation,this.xPosition=l.xPosition,this.yPosition=l.yPosition,this.interceptorTypes=c.interceptorTypes,this.closeReasons=c.closeReasons,this.absPosition=l.absPosition}function c(e,t){this._$q=t.get("$q"),this._$mdCompiler=t.get("$mdCompiler"),this._$mdConstant=t.get("$mdConstant"),this._$mdUtil=t.get("$mdUtil"),this._$mdTheming=t.get("$mdTheming"),this._$rootScope=t.get("$rootScope"),this._$animate=t.get("$animate"),this._$mdPanel=t.get("$mdPanel"),this._$log=t.get("$log"),this._$window=t.get("$window"),this._$$rAF=t.get("$$rAF"),this.id=e.id,this.config=e,this.panelContainer,this.panelEl,this.isAttached=!1,this._removeListeners=[],this._topFocusTrap,this._bottomFocusTrap,this._backdropRef,this._restoreScroll=null,this._interceptors=Object.create(null),this._compilerCleanup=null,this._restoreCache={styles:"",classes:""}}function l(e){this._$window=e.get("$window"),this._isRTL="rtl"===e.get("$mdUtil").bidi(),this._$mdConstant=e.get("$mdConstant"),this._absolute=!1,this._relativeToEl,this._top="",this._bottom="",this._left="",this._right="",this._translateX=[],this._translateY=[],this._positions=[],this._actualPosition}function u(e){this._$mdUtil=e.get("$mdUtil"),this._openFrom,this._closeTo,this._animationClass="",this._openDuration,this._closeDuration,this._rawDuration}function d(e){var n=t.isString(e)?document.querySelector(e):e;return t.element(n)}function p(e,t){var n=getComputedStyle(e[0]||e)[t],r=n.indexOf("("),i=n.lastIndexOf(")"),a={x:0,y:0};if(r>-1&&i>-1){var o=n.substring(r+1,i).split(", ").slice(-2);a.x=parseInt(o[0]),a.y=parseInt(o[1])}return a}function f(e){return t.isNumber(e)?e+"px":e}s.$inject=["presets","$rootElement","$rootScope","$injector","$window"],t.module("material.components.panel",["material.core","material.components.backdrop"]).provider("$mdPanel",e);var h=80,m=t.element('<div class="_md-panel-focus-trap" tabindex="0"></div>'),g={};s.prototype.create=function(e,n){if("string"==typeof e?e=this._getPresetByName(e):"object"!==(void 0===e?"undefined":_typeof2(e))||!t.isUndefined(n)&&n||(n=e,e={}),e=e||{},n=n||{},t.isDefined(n.id)&&this._trackedPanels[n.id]){var r=this._trackedPanels[n.id];return t.extend(r.config,n),r}this._config=t.extend({id:n.id||"panel_"+this._$mdUtil.nextUid(),scope:this._$rootScope.$new(!0),attachTo:this._$rootElement},this._defaultConfigOptions,n,e);var i=new c(this._config,this._$injector);return this._trackedPanels[n.id]=i,this._config.groupName&&(t.isString(this._config.groupName)&&(this._config.groupName=[this._config.groupName]),t.forEach(this._config.groupName,function(e){i.addToGroup(e)})),this._config.scope.$on("$destroy",t.bind(i,i.detach)),i},s.prototype.open=function(e,t){var n=this.create(e,t);return n.open().then(function(){return n})},s.prototype._getPresetByName=function(e){if(!this._presets[e])throw new Error("mdPanel: The panel preset configuration that you requested does not exist. Use the $mdPanelProvider to create a preset before requesting one.");return this._presets[e]},s.prototype.newPanelPosition=function(){return new l(this._$injector)},s.prototype.newPanelAnimation=function(){return new u(this._$injector)},s.prototype.newPanelGroup=function(e,t){if(!this._groups[e]){t=t||{};var n={panels:[],openPanels:[],maxOpen:t.maxOpen>0?t.maxOpen:1/0};this._groups[e]=n}return this._groups[e]},s.prototype.setGroupMaxOpen=function(e,t){if(!this._groups[e])throw new Error("mdPanel: Group does not exist yet. Call newPanelGroup().");this._groups[e].maxOpen=t},s.prototype._openCountExceedsMaxOpen=function(e){if(this._groups[e]){var t=this._groups[e];return t.maxOpen>0&&t.openPanels.length>t.maxOpen}return!1},s.prototype._closeFirstOpenedPanel=function(e){this._groups[e].openPanels[0].close()},s.prototype._wrapTemplate=function(e){return'<div class="md-panel-outer-wrapper"> <div class="md-panel _md-panel-offscreen">'+(e||"")+"</div></div>"},s.prototype._wrapContentElement=function(e){var n=t.element('<div class="md-panel-outer-wrapper">');return e.addClass("md-panel _md-panel-offscreen"),n.append(e),n},c.interceptorTypes={CLOSE:"onClose"},c.prototype.open=function(){var e=this;return this._$q(function(n,r){var i=e._done(n,e),a=e._simpleBind(e.show,e),o=function(){e.config.groupName&&t.forEach(e.config.groupName,function(t){e._$mdPanel._openCountExceedsMaxOpen(t)&&e._$mdPanel._closeFirstOpenedPanel(t)})};e.attach().then(a).then(o).then(i).catch(r)})},c.prototype.close=function(e){var n=this;return this._$q(function(r,i){n._callInterceptors(c.interceptorTypes.CLOSE).then(function(){var a=n._done(r,n),o=n._simpleBind(n.detach,n),s=n.config.onCloseSuccess||t.noop;s=t.bind(n,s,n,e),n.hide().then(o).then(a).then(s).catch(i)},i)})},c.prototype.attach=function(){if(this.isAttached&&this.panelEl)return this._$q.when(this);var e=this;return this._$q(function(n,r){var i=e._done(n,e),a=e.config.onDomAdded||t.noop,o=function(t){return e.isAttached=!0,e._addEventListeners(),t};e._$q.all([e._createBackdrop(),e._createPanel().then(o).catch(r)]).then(a).then(i).catch(r)})},c.prototype.detach=function(){if(!this.isAttached)return this._$q.when(this);var e=this,n=e.config.onDomRemoved||t.noop,r=function(){return e._removeEventListeners(),e._topFocusTrap&&e._topFocusTrap.parentNode&&e._topFocusTrap.parentNode.removeChild(e._topFocusTrap),e._bottomFocusTrap&&e._bottomFocusTrap.parentNode&&e._bottomFocusTrap.parentNode.removeChild(e._bottomFocusTrap),e._restoreCache.classes&&(e.panelEl[0].className=e._restoreCache.classes),e.panelEl[0].style.cssText=e._restoreCache.styles||"",e._compilerCleanup(),e.panelContainer.remove(),e.isAttached=!1,e._$q.when(e)};return this._restoreScroll&&(this._restoreScroll(),this._restoreScroll=null),this._$q(function(t,i){var a=e._done(t,e);e._$q.all([r(),!e._backdropRef||e._backdropRef.detach()]).then(n).then(a).catch(i)})},c.prototype.destroy=function(){var e=this;this.config.groupName&&t.forEach(this.config.groupName,function(t){e.removeFromGroup(t)}),this.config.scope.$destroy(),this.config.locals=null,this.config.onDomAdded=null,this.config.onDomRemoved=null,this.config.onRemoving=null,this.config.onOpenComplete=null,this._interceptors=null},c.prototype.show=function(){if(!this.panelContainer)return this._$q(function(e,t){t("mdPanel: Panel does not exist yet. Call open() or attach().")});if(!this.panelContainer.hasClass("_md-panel-hidden"))return this._$q.when(this);var e=this,n=function(){return e.panelContainer.removeClass("_md-panel-hidden"),e._animateOpen()};return this._$q(function(r,i){var a=e._done(r,e),o=e.config.onOpenComplete||t.noop,s=function(){e.config.groupName&&t.forEach(e.config.groupName,function(t){e._$mdPanel._groups[t].openPanels.push(e)})};e._$q.all([e._backdropRef?e._backdropRef.show():e,n().then(function(){e._focusOnOpen()},i)]).then(o).then(s).then(a).catch(i)})},c.prototype.hide=function(){if(!this.panelContainer)return this._$q(function(e,t){t("mdPanel: Panel does not exist yet. Call open() or attach().")});if(this.panelContainer.hasClass("_md-panel-hidden"))return this._$q.when(this);var e=this;return this._$q(function(n,r){var i=e._done(n,e),a=e.config.onRemoving||t.noop,o=function(){e.panelContainer.addClass("_md-panel-hidden")},s=function(){if(e.config.groupName){var n;t.forEach(e.config.groupName,function(t){t=e._$mdPanel._groups[t],(n=t.openPanels.indexOf(e))>-1&&t.openPanels.splice(n,1)})}},c=function(){var t=e.config.origin;t&&d(t).focus()};e._$q.all([e._backdropRef?e._backdropRef.hide():e,e._animateClose().then(a).then(o).then(s).then(c).catch(r)]).then(i,r)})},c.prototype.addClass=function(e,t){if(this._$log.warn("mdPanel: The addClass method is in the process of being deprecated. Full deprecation is scheduled for the AngularJS Material 1.2 release. To achieve the same results, use the panelContainer or panelEl JQLite elements that are referenced in MdPanelRef."),!this.panelContainer)throw new Error("mdPanel: Panel does not exist yet. Call open() or attach().");t||this.panelContainer.hasClass(e)?t&&!this.panelEl.hasClass(e)&&this.panelEl.addClass(e):this.panelContainer.addClass(e)},c.prototype.removeClass=function(e,t){if(this._$log.warn("mdPanel: The removeClass method is in the process of being deprecated. Full deprecation is scheduled for the AngularJS Material 1.2 release. To achieve the same results, use the panelContainer or panelEl JQLite elements that are referenced in MdPanelRef."),!this.panelContainer)throw new Error("mdPanel: Panel does not exist yet. Call open() or attach().");!t&&this.panelContainer.hasClass(e)?this.panelContainer.removeClass(e):t&&this.panelEl.hasClass(e)&&this.panelEl.removeClass(e)},c.prototype.toggleClass=function(e,t){if(this._$log.warn("mdPanel: The toggleClass method is in the process of being deprecated. Full deprecation is scheduled for the AngularJS Material 1.2 release. To achieve the same results, use the panelContainer or panelEl JQLite elements that are referenced in MdPanelRef."),!this.panelContainer)throw new Error("mdPanel: Panel does not exist yet. Call open() or attach().");t?this.panelEl.toggleClass(e):this.panelContainer.toggleClass(e)},c.prototype._compile=function(){var e=this;return e._$mdCompiler.compile(e.config).then(function(n){var r=e.config;if(r.contentElement){var i=n.element;e._restoreCache.styles=i[0].style.cssText,e._restoreCache.classes=i[0].className,e.panelContainer=e._$mdPanel._wrapContentElement(i),e.panelEl=i}else e.panelContainer=n.link(r.scope),e.panelEl=t.element(e.panelContainer[0].querySelector(".md-panel"));return e._compilerCleanup=n.cleanup,d(e.config.attachTo).append(e.panelContainer),e})},c.prototype._createPanel=function(){var e=this;return this._$q(function(t,n){e.config.locals||(e.config.locals={}),e.config.locals.mdPanelRef=e,e._compile().then(function(){e.config.disableParentScroll&&(e._restoreScroll=e._$mdUtil.disableScrollAround(null,e.panelContainer,{disableScrollMask:!0})),e.config.panelClass&&e.panelEl.addClass(e.config.panelClass),e.config.propagateContainerEvents&&(e.panelContainer.css("pointer-events","none"),
25e.panelEl.css("pointer-events","all")),e._$animate.pin&&e._$animate.pin(e.panelContainer,d(e.config.attachTo)),e._configureTrapFocus(),e._addStyles().then(function(){t(e)},n)},n)})},c.prototype._addStyles=function(){var e=this;return this._$q(function(t){e.panelContainer.css("z-index",e.config.zIndex),e.panelEl.css("z-index",e.config.zIndex+1);var n=function(){e._setTheming(),e.panelEl.removeClass("_md-panel-offscreen"),e.panelContainer.addClass("_md-panel-hidden"),t(e)};return e.config.fullscreen?(e.panelEl.addClass("_md-panel-fullscreen"),void n()):e.config.position?void e._$rootScope.$$postDigest(function(){e._updatePosition(!0),e._setTheming(),t(e)}):void n()})},c.prototype._setTheming=function(){this._$mdTheming(this.panelEl),this._$mdTheming(this.panelContainer)},c.prototype.updatePosition=function(e){if(!this.panelContainer)throw new Error("mdPanel: Panel does not exist yet. Call open() or attach().");this.config.position=e,this._updatePosition()},c.prototype._updatePosition=function(e){var t=this.config.position;t&&(t._setPanelPosition(this.panelEl),e&&(this.panelEl.removeClass("_md-panel-offscreen"),this.panelContainer.addClass("_md-panel-hidden")),this.panelEl.css(l.absPosition.TOP,t.getTop()),this.panelEl.css(l.absPosition.BOTTOM,t.getBottom()),this.panelEl.css(l.absPosition.LEFT,t.getLeft()),this.panelEl.css(l.absPosition.RIGHT,t.getRight()))},c.prototype._focusOnOpen=function(){if(this.config.focusOnOpen){var e=this;this._$rootScope.$$postDigest(function(){(e._$mdUtil.findFocusTarget(e.panelEl)||e.panelEl).focus()})}},c.prototype._createBackdrop=function(){if(this.config.hasBackdrop){if(!this._backdropRef){var e=this._$mdPanel.newPanelAnimation().openFrom(this.config.attachTo).withAnimation({open:"_md-opaque-enter",close:"_md-opaque-leave"});this.config.animation&&e.duration(this.config.animation._rawDuration);var t={animation:e,attachTo:this.config.attachTo,focusOnOpen:!1,panelClass:"_md-panel-backdrop",zIndex:this.config.zIndex-1};this._backdropRef=this._$mdPanel.create(t)}if(!this._backdropRef.isAttached)return this._backdropRef.attach()}},c.prototype._addEventListeners=function(){this._configureEscapeToClose(),this._configureClickOutsideToClose(),this._configureScrollListener()},c.prototype._removeEventListeners=function(){this._removeListeners&&this._removeListeners.forEach(function(e){e()}),this._removeListeners=[]},c.prototype._configureEscapeToClose=function(){if(this.config.escapeToClose){var e=d(this.config.attachTo),t=this,n=function(e){e.keyCode===t._$mdConstant.KEY_CODE.ESCAPE&&(e.stopPropagation(),e.preventDefault(),t.close(c.closeReasons.ESCAPE))};this.panelContainer.on("keydown",n),e.on("keydown",n),this._removeListeners.push(function(){t.panelContainer.off("keydown",n),e.off("keydown",n)})}},c.prototype._configureClickOutsideToClose=function(){if(this.config.clickOutsideToClose){var e,n=this.config.propagateContainerEvents?t.element(document.body):this.panelContainer,r=function(t){e=t.target},i=this,a=function(t){i.config.propagateContainerEvents?e===i.panelEl[0]||i.panelEl[0].contains(e)||i.close():e===n[0]&&t.target===n[0]&&(t.stopPropagation(),t.preventDefault(),i.close(c.closeReasons.CLICK_OUTSIDE))};n.on("mousedown",r),n.on("mouseup",a),this._removeListeners.push(function(){n.off("mousedown",r),n.off("mouseup",a)})}},c.prototype._configureScrollListener=function(){if(!this.config.disableParentScroll){var e=t.bind(this,this._updatePosition),n=this._$$rAF.throttle(e),r=this,i=function(){n()};this._$window.addEventListener("scroll",i,!0),this._removeListeners.push(function(){r._$window.removeEventListener("scroll",i,!0)})}},c.prototype._configureTrapFocus=function(){if(this.panelEl.attr("tabIndex","-1"),this.config.trapFocus){var e=this.panelEl;this._topFocusTrap=m.clone()[0],this._bottomFocusTrap=m.clone()[0];var t=function(){e.focus()};this._topFocusTrap.addEventListener("focus",t),this._bottomFocusTrap.addEventListener("focus",t),this._removeListeners.push(this._simpleBind(function(){this._topFocusTrap.removeEventListener("focus",t),this._bottomFocusTrap.removeEventListener("focus",t)},this)),e[0].parentNode.insertBefore(this._topFocusTrap,e[0]),e.after(this._bottomFocusTrap)}},c.prototype.updateAnimation=function(e){this.config.animation=e,this._backdropRef&&this._backdropRef.config.animation.duration(e._rawDuration)},c.prototype._animateOpen=function(){this.panelContainer.addClass("md-panel-is-showing");var e=this.config.animation;if(!e)return this.panelContainer.addClass("_md-panel-shown"),this._$q.when(this);var t=this;return this._$q(function(n){var r=t._done(n,t),i=function(){t._$log.warn("mdPanel: MdPanel Animations failed. Showing panel without animating."),r()};e.animateOpen(t.panelEl).then(r,i)})},c.prototype._animateClose=function(){var e=this.config.animation;if(!e)return this.panelContainer.removeClass("md-panel-is-showing"),this.panelContainer.removeClass("_md-panel-shown"),this._$q.when(this);var t=this;return this._$q(function(n){var r=function(){t.panelContainer.removeClass("md-panel-is-showing"),n(t)},i=function(){t._$log.warn("mdPanel: MdPanel Animations failed. Hiding panel without animating."),r()};e.animateClose(t.panelEl).then(r,i)})},c.prototype.registerInterceptor=function(e,n){var r=null;if(t.isString(e)?t.isFunction(n)||(r="Interceptor callback must be a function, instead got "+(void 0===n?"undefined":_typeof2(n))):r="Interceptor type must be a string, instead got "+(void 0===e?"undefined":_typeof2(e)),r)throw new Error("MdPanel: "+r);var i=this._interceptors[e]=this._interceptors[e]||[];return-1===i.indexOf(n)&&i.push(n),this},c.prototype.removeInterceptor=function(e,t){var n=this._interceptors[e]?this._interceptors[e].indexOf(t):-1;return n>-1&&this._interceptors[e].splice(n,1),this},c.prototype.removeAllInterceptors=function(e){return e?this._interceptors[e]=[]:this._interceptors=Object.create(null),this},c.prototype._callInterceptors=function(e){var n=this,r=n._$q;return(n._interceptors&&n._interceptors[e]||[]).reduceRight(function(e,i){var a=i&&t.isFunction(i.then),o=a?i:null;return e.then(function(){if(!o)try{o=i(n)}catch(e){o=r.reject(e)}return o})},r.resolve(n))},c.prototype._simpleBind=function(e,t){return function(n){return e.apply(t,n)}},c.prototype._done=function(e,t){return function(){e(t)}},c.prototype.addToGroup=function(e){this._$mdPanel._groups[e]||this._$mdPanel.newPanelGroup(e);var t=this._$mdPanel._groups[e];t.panels.indexOf(this)<0&&t.panels.push(this)},c.prototype.removeFromGroup=function(e){if(!this._$mdPanel._groups[e])throw new Error("mdPanel: The group "+e+" does not exist.");var t=this._$mdPanel._groups[e],n=t.panels.indexOf(this);n>-1&&t.panels.splice(n,1)},c.closeReasons={CLICK_OUTSIDE:"clickOutsideToClose",ESCAPE:"escapeToClose"},l.xPosition={CENTER:"center",ALIGN_START:"align-start",ALIGN_END:"align-end",OFFSET_START:"offset-start",OFFSET_END:"offset-end"},l.yPosition={CENTER:"center",ALIGN_TOPS:"align-tops",ALIGN_BOTTOMS:"align-bottoms",ABOVE:"above",BELOW:"below"},l.absPosition={TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},l.viewportMargin=8,l.prototype.absolute=function(){return this._absolute=!0,this},l.prototype._setPosition=function(e,n){if(e===l.absPosition.RIGHT||e===l.absPosition.LEFT)this._left=this._right="";else{if(e!==l.absPosition.BOTTOM&&e!==l.absPosition.TOP){var r=Object.keys(l.absPosition).join().toLowerCase();throw new Error("mdPanel: Position must be one of "+r+".")}this._top=this._bottom=""}return this["_"+e]=t.isString(n)?n:"0",this},l.prototype.top=function(e){return this._setPosition(l.absPosition.TOP,e)},l.prototype.bottom=function(e){return this._setPosition(l.absPosition.BOTTOM,e)},l.prototype.start=function(e){var t=this._isRTL?l.absPosition.RIGHT:l.absPosition.LEFT;return this._setPosition(t,e)},l.prototype.end=function(e){var t=this._isRTL?l.absPosition.LEFT:l.absPosition.RIGHT;return this._setPosition(t,e)},l.prototype.left=function(e){return this._setPosition(l.absPosition.LEFT,e)},l.prototype.right=function(e){return this._setPosition(l.absPosition.RIGHT,e)},l.prototype.centerHorizontally=function(){return this._left="50%",this._right="",this._translateX=["-50%"],this},l.prototype.centerVertically=function(){return this._top="50%",this._bottom="",this._translateY=["-50%"],this},l.prototype.center=function(){return this.centerHorizontally().centerVertically()},l.prototype.relativeTo=function(e){return this._absolute=!1,this._relativeToEl=d(e),this},l.prototype.addPanelPosition=function(e,t){if(!this._relativeToEl)throw new Error("mdPanel: addPanelPosition can only be used with relative positioning. Set relativeTo first.");return this._validateXPosition(e),this._validateYPosition(t),this._positions.push({x:e,y:t}),this},l.prototype._validateYPosition=function(e){if(null!=e){for(var t,n=Object.keys(l.yPosition),r=[],i=0;t=n[i];i++){var a=l.yPosition[t];if(r.push(a),a===e)return}throw new Error("mdPanel: Panel y position only accepts the following values:\n"+r.join(" | "))}},l.prototype._validateXPosition=function(e){if(null!=e){for(var t,n=Object.keys(l.xPosition),r=[],i=0;t=n[i];i++){var a=l.xPosition[t];if(r.push(a),a===e)return}throw new Error("mdPanel: Panel x Position only accepts the following values:\n"+r.join(" | "))}},l.prototype.withOffsetX=function(e){return this._translateX.push(f(e)),this},l.prototype.withOffsetY=function(e){return this._translateY.push(f(e)),this},l.prototype.getTop=function(){return this._top},l.prototype.getBottom=function(){return this._bottom},l.prototype.getLeft=function(){return this._left},l.prototype.getRight=function(){return this._right},l.prototype.getTransform=function(){return(this._reduceTranslateValues("translateX",this._translateX)+" "+this._reduceTranslateValues("translateY",this._translateY)).trim()},l.prototype._setTransform=function(e){return e.css(this._$mdConstant.CSS.TRANSFORM,this.getTransform())},l.prototype._isOnscreen=function(e){var t=parseInt(this.getLeft()),n=parseInt(this.getTop());if(this._translateX.length||this._translateY.length){var r=this._$mdConstant.CSS.TRANSFORM,i=p(e,r);t+=i.x,n+=i.y}var a=t+e[0].offsetWidth,o=n+e[0].offsetHeight;return t>=0&&n>=0&&o<=this._$window.innerHeight&&a<=this._$window.innerWidth},l.prototype.getActualPosition=function(){return this._actualPosition},l.prototype._reduceTranslateValues=function(e,n){return n.map(function(n){var r=t.isFunction(n)?f(n(this)):n;return e+"("+r+")"},this).join(" ")},l.prototype._setPanelPosition=function(e){if(e.removeClass("_md-panel-position-adjusted"),this._absolute)return void this._setTransform(e);if(this._actualPosition)return this._calculatePanelPosition(e,this._actualPosition),this._setTransform(e),void this._constrainToViewport(e);for(var t=0;t<this._positions.length;t++)if(this._actualPosition=this._positions[t],this._calculatePanelPosition(e,this._actualPosition),this._setTransform(e),this._isOnscreen(e))return;this._constrainToViewport(e)},l.prototype._constrainToViewport=function(e){var t=l.viewportMargin,n=this._top,r=this._left;if(this.getTop()){var i=parseInt(this.getTop()),a=e[0].offsetHeight+i,o=this._$window.innerHeight;i<t?this._top=t+"px":a>o&&(this._top=i-(a-o+t)+"px")}if(this.getLeft()){var s=parseInt(this.getLeft()),c=e[0].offsetWidth+s,u=this._$window.innerWidth;s<t?this._left=t+"px":c>u&&(this._left=s-(c-u+t)+"px")}e.toggleClass("_md-panel-position-adjusted",this._top!==n||this._left!==r)},l.prototype._reverseXPosition=function(e){if(e===l.xPosition.CENTER)return e;return e.indexOf("start")>-1?e.replace("start","end"):e.replace("end","start")},l.prototype._bidi=function(e){return this._isRTL?this._reverseXPosition(e):e},l.prototype._calculatePanelPosition=function(e,t){var n=e[0].getBoundingClientRect(),r=Math.max(n.width,e[0].clientWidth),i=Math.max(n.height,e[0].clientHeight),a=this._relativeToEl[0].getBoundingClientRect(),o=a.left,s=a.right,c=a.width;switch(this._bidi(t.x)){case l.xPosition.OFFSET_START:this._left=o-r+"px";break;case l.xPosition.ALIGN_END:this._left=s-r+"px";break;case l.xPosition.CENTER:var u=o+.5*c-.5*r;this._left=u+"px";break;case l.xPosition.ALIGN_START:this._left=o+"px";break;case l.xPosition.OFFSET_END:this._left=s+"px"}var d=a.top,p=a.bottom,f=a.height;switch(t.y){case l.yPosition.ABOVE:this._top=d-i+"px";break;case l.yPosition.ALIGN_BOTTOMS:this._top=p-i+"px";break;case l.yPosition.CENTER:var h=d+.5*f-.5*i;this._top=h+"px";break;case l.yPosition.ALIGN_TOPS:this._top=d+"px";break;case l.yPosition.BELOW:this._top=p+"px"}},u.animation={SLIDE:"md-panel-animate-slide",SCALE:"md-panel-animate-scale",FADE:"md-panel-animate-fade"},u.prototype.openFrom=function(e){return e=e.target?e.target:e,this._openFrom=this._getPanelAnimationTarget(e),this._closeTo||(this._closeTo=this._openFrom),this},u.prototype.closeTo=function(e){return this._closeTo=this._getPanelAnimationTarget(e),this},u.prototype.duration=function(e){function n(e){if(t.isNumber(e))return e/1e3}return e&&(t.isNumber(e)?this._openDuration=this._closeDuration=n(e):t.isObject(e)&&(this._openDuration=n(e.open),this._closeDuration=n(e.close))),this._rawDuration=e,this},u.prototype._getPanelAnimationTarget=function(e){return t.isDefined(e.top)||t.isDefined(e.left)?{element:n,bounds:{top:e.top||0,left:e.left||0}}:this._getBoundingClientRect(d(e))},u.prototype.withAnimation=function(e){return this._animationClass=e,this},u.prototype.animateOpen=function(e){var n=this._$mdUtil.dom.animator;this._fixBounds(e);var r={},i=e[0].style.transform||"",a=n.toTransformCss(i),o=n.toTransformCss(i);switch(this._animationClass){case u.animation.SLIDE:e.css("opacity","1"),r={transitionInClass:"_md-panel-animate-enter"};var s=n.calculateSlideToOrigin(e,this._openFrom)||"";a=n.toTransformCss(s+" "+i);break;case u.animation.SCALE:r={transitionInClass:"_md-panel-animate-enter"};var c=n.calculateZoomToOrigin(e,this._openFrom)||"";a=n.toTransformCss(c+" "+i);break;case u.animation.FADE:r={transitionInClass:"_md-panel-animate-enter"};break;default:r=t.isString(this._animationClass)?{transitionInClass:this._animationClass}:{transitionInClass:this._animationClass.open,transitionOutClass:this._animationClass.close}}return r.duration=this._openDuration,n.translate3d(e,a,o,r)},u.prototype.animateClose=function(e){var n=this._$mdUtil.dom.animator,r={},i=e[0].style.transform||"",a=n.toTransformCss(i),o=n.toTransformCss(i);switch(this._animationClass){case u.animation.SLIDE:e.css("opacity","1"),r={transitionInClass:"_md-panel-animate-leave"};var s=n.calculateSlideToOrigin(e,this._closeTo)||"";o=n.toTransformCss(s+" "+i);break;case u.animation.SCALE:r={transitionInClass:"_md-panel-animate-scale-out _md-panel-animate-leave"};var c=n.calculateZoomToOrigin(e,this._closeTo)||"";o=n.toTransformCss(c+" "+i);break;case u.animation.FADE:r={transitionInClass:"_md-panel-animate-fade-out _md-panel-animate-leave"};break;default:r=t.isString(this._animationClass)?{transitionOutClass:this._animationClass}:{transitionInClass:this._animationClass.close,transitionOutClass:this._animationClass.open}}return r.duration=this._closeDuration,n.translate3d(e,a,o,r)},u.prototype._fixBounds=function(e){var t=e[0].offsetWidth,n=e[0].offsetHeight;this._openFrom&&null==this._openFrom.bounds.height&&(this._openFrom.bounds.height=n),this._openFrom&&null==this._openFrom.bounds.width&&(this._openFrom.bounds.width=t),this._closeTo&&null==this._closeTo.bounds.height&&(this._closeTo.bounds.height=n),this._closeTo&&null==this._closeTo.bounds.width&&(this._closeTo.bounds.width=t)},u.prototype._getBoundingClientRect=function(e){if(e instanceof t.element)return{element:e,bounds:e[0].getBoundingClientRect()}}}(),function(){t.module("material.components.progressCircular",["material.core"])}(),function(){function e(e,n,r){function i(e,t,n){return e.attr("aria-valuemin",0),e.attr("aria-valuemax",100),e.attr("role","progressbar"),a}function a(r,i,a){function p(){var e=(a.mdMode||"").trim();if(e)switch(e){case s:case c:case l:case u:break;default:e=c}return e}function f(e,r){if(!m&&p()){var i=n.supplant("translateX({0}%) scale({1},1)",[(r-100)/2,r/100]),a=g({transform:i});t.element(e).css(a)}}e(i);var h,m=a.hasOwnProperty("disabled"),g=n.dom.animator.toCss,v=t.element(i[0].querySelector(".md-bar1")),b=t.element(i[0].querySelector(".md-bar2")),y=t.element(i[0].querySelector(".md-container"));i.attr("md-mode",p()).toggleClass(d,m),function(){if(t.isUndefined(a.mdMode)){var e=t.isDefined(a.value),n=e?s:c;i.attr("md-mode",n),a.mdMode=n}}(),function(){a.$observe("value",function(e){var t=o(e);i.attr("aria-valuenow",t),p()!=u&&f(b,t)}),a.$observe("mdBufferValue",function(e){f(v,o(e))}),a.$observe("disabled",function(e){m=!0===e||!1===e?!!e:t.isDefined(e),i.toggleClass(d,m),y.toggleClass(h,!m)}),a.$observe("mdMode",function(e){switch(h&&y.removeClass(h),e){case u:case l:case s:case c:y.addClass(h="md-mode-"+e);break;default:y.addClass(h="md-mode-"+c)}})}()}function o(e){return Math.max(0,Math.min(e||0,100))}var s="determinate",c="indeterminate",l="buffer",u="query",d="_md-progress-linear-disabled";return{restrict:"E",template:'<div class="md-container"><div class="md-dashed"></div><div class="md-bar md-bar1"></div><div class="md-bar md-bar2"></div></div>',compile:i}}e.$inject=["$mdTheming","$mdUtil","$log"],e.$inject=["$mdTheming","$mdUtil","$log"],t.module("material.components.progressLinear",["material.core"]).directive("mdProgressLinear",e)}(),function(){function e(e,n,r,i){function a(a,o,s,c){function l(){o.hasClass("md-focused")||o.addClass("md-focused")}function u(r){var i=r.which||r.keyCode;if(i==n.KEY_CODE.ENTER||r.currentTarget==r.target)switch(i){case n.KEY_CODE.LEFT_ARROW:case n.KEY_CODE.UP_ARROW:r.preventDefault(),d.selectPrevious(),l();break;case n.KEY_CODE.RIGHT_ARROW:case n.KEY_CODE.DOWN_ARROW:r.preventDefault(),d.selectNext(),l();break;case n.KEY_CODE.ENTER:var a=t.element(e.getClosest(o[0],"form"));a.length>0&&a.triggerHandler("submit")}}o.addClass("_md"),r(o);var d=c[0],p=c[1]||e.fakeNgModel();d.init(p),a.mouseActive=!1,o.attr({role:"radiogroup",tabIndex:o.attr("tabindex")||"0"}).on("keydown",u).on("mousedown",function(e){a.mouseActive=!0,i(function(){a.mouseActive=!1},100)}).on("focus",function(){!1===a.mouseActive&&d.$element.addClass("md-focused")}).on("blur",function(){d.$element.removeClass("md-focused")})}function o(e){this._radioButtonRenderFns=[],this.$element=e}function s(n,r){var i=e.iterator(n[0].querySelectorAll("md-radio-button"),!0);if(i.count()){var a=function(e){return!t.element(e).attr("disabled")},o=n[0].querySelector("md-radio-button.md-checked"),s=i[r<0?"previous":"next"](o,a)||i.first();t.element(s).triggerHandler("click")}}return o.prototype=function(){return{init:function(e){this._ngModelCtrl=e,this._ngModelCtrl.$render=t.bind(this,this.render)},add:function(e){this._radioButtonRenderFns.push(e)},remove:function(e){var t=this._radioButtonRenderFns.indexOf(e);-1!==t&&this._radioButtonRenderFns.splice(t,1)},render:function(){this._radioButtonRenderFns.forEach(function(e){e()})},setViewValue:function(e,t){this._ngModelCtrl.$setViewValue(e,t),this.render()},getViewValue:function(){return this._ngModelCtrl.$viewValue},selectNext:function(){return s(this.$element,1)},selectPrevious:function(){return s(this.$element,-1)},setActiveDescendant:function(e){this.$element.attr("aria-activedescendant",e)},isDisabled:function(){return this.$element[0].hasAttribute("disabled")}}}(),{restrict:"E",controller:["$element",o],require:["mdRadioGroup","?ngModel"],link:{pre:a}}}function n(e,t,n){function r(r,a,o,s){function c(){if(!s)throw"RadioButton: No RadioGroupController could be found.";s.add(u),o.$observe("value",u),a.on("click",l).on("$destroy",function(){s.remove(u)})}function l(e){a[0].hasAttribute("disabled")||s.isDisabled()||r.$apply(function(){s.setViewValue(o.value,e&&e.type)})}function u(){var e=s.getViewValue()==o.value;e!==d&&("md-radio-group"!==a[0].parentNode.nodeName.toLowerCase()&&a.parent().toggleClass(i,e),e&&s.setActiveDescendant(a.attr("id")),d=e,a.attr("aria-checked",e).toggleClass(i,e))}var d;n(a),function(n,r){n.attr({id:o.id||"radio_"+t.nextUid(),role:"radio","aria-checked":"false"}),e.expectWithText(n,"aria-label")}(a),o.ngValue?t.nextTick(c,!1):c()}var i="md-checked";return{restrict:"E",require:"^mdRadioGroup",transclude:!0,template:'<div class="md-container" md-ink-ripple md-ink-ripple-checkbox><div class="md-off"></div><div class="md-on"></div></div><div ng-transclude class="md-label"></div>',link:r}}n.$inject=["$mdAria","$mdUtil","$mdTheming"],e.$inject=["$mdUtil","$mdConstant","$mdTheming","$timeout"],e.$inject=["$mdUtil","$mdConstant","$mdTheming","$timeout"],n.$inject=["$mdAria","$mdUtil","$mdTheming"],t.module("material.components.radioButton",["material.core"]).directive("mdRadioGroup",e).directive("mdRadioButton",n)}(),function(){function e(e,t){return["$mdUtil","$window",function(n,r){return{restrict:"A",multiElement:!0,link:function(i,a,o){var s=i.$on("$md-resize-enable",function(){s();var c=a[0],l=c.nodeType===r.Node.ELEMENT_NODE?r.getComputedStyle(c):{};i.$watch(o[e],function(e){if(!!e===t){n.nextTick(function(){i.$broadcast("$md-resize")});var r={cachedTransitionStyles:l};n.dom.animator.waitTransitionEnd(a,r).then(function(){i.$broadcast("$md-resize")})}})})}}}]}t.module("material.components.showHide",["material.core"]).directive("ngShow",e("ngShow",!0)).directive("ngHide",e("ngHide",!1))}(),function(){function r(e,r,i,a,o,s,c,u){function d(u,d){var p=t.element("<md-select-value><span></span></md-select-value>");p.append('<span class="md-select-icon" aria-hidden="true"></span>'),p.addClass("md-select-value"),p[0].hasAttribute("id")||p.attr("id","select_value_label_"+r.nextUid());var f=u.find("md-content");if(f.length||u.append(t.element("<md-content>").append(u.contents())),f.attr("role","presentation"),d.mdOnOpen&&(u.find("md-content").prepend(t.element('<div> <md-progress-circular md-mode="indeterminate" ng-if="$$loadingAsyncDone === false" md-diameter="25px"></md-progress-circular></div>')),u.find("md-option").attr("ng-show","$$loadingAsyncDone")),d.name){var h=t.element('<select class="md-visually-hidden"></select>');h.attr({name:d.name,"aria-hidden":"true",tabindex:"-1"});var m=u.find("md-option");t.forEach(m,function(e){var n=t.element("<option>"+e.innerHTML+"</option>");e.hasAttribute("ng-value")?n.attr("ng-value",e.getAttribute("ng-value")):e.hasAttribute("value")&&n.attr("value",e.getAttribute("value")),h.append(n)}),h.append('<option ng-value="'+d.ngModel+'" selected></option>'),u.parent().append(h)}var g=r.parseAttributeBoolean(d.multiple),v=g?"multiple":"",b='<div class="md-select-menu-container" aria-hidden="true" role="presentation"><md-select-menu role="presentation" {0}>{1}</md-select-menu></div>';return b=r.supplant(b,[v,u.html()]),u.empty().append(p),u.append(b),d.tabindex||d.$set("tabindex",0),function(u,d,p,f){function h(){var e=d.attr("aria-label")||d.attr("placeholder");!e&&A&&A.label&&(e=A.label.text()),_=e,o.expect(d,"aria-label",e)}function m(){z&&(N=N||z.find("md-select-menu").controller("mdSelectMenu"),S.setLabelText(N.selectedLabels()))}function v(){if(_){var e=N.selectedLabels({mode:"aria"});d.attr("aria-label",e.length?_+": "+e:_)}}function b(){A&&A.setHasValue(N.selectedLabels().length>0||(d[0].validity||{}).badInput)}function y(e){if(i.isNavigationKey(e))e.preventDefault(),x();else if(l(e,i)){e.preventDefault();var n=N.optNodeForKeyboardSearch(e);if(!n||n.hasAttribute("disabled"))return;var r=t.element(n).controller("mdOption");N.isMultiple||N.deselect(Object.keys(N.selected)[0]),N.select(r.hashKey,r.value),N.refreshViewValue()}}function x(){L._mdSelectIsOpen=!0,d.attr("aria-expanded","true"),e.show({scope:L,preserveScope:!0,skipCompile:!0,element:z,target:d[0],selectCtrl:S,preserveElement:!0,hasBackdrop:!0,loadingAsync:!!p.mdOnOpen&&(u.$eval(p.mdOnOpen)||!0)}).finally(function(){L._mdSelectIsOpen=!1,d.focus(),d.attr("aria-expanded","false"),k.$setTouched()})}var M,_,w=!0,A=f[0],S=f[1],k=f[2],$=f[3],T=d.find("md-select-value"),C=t.isDefined(p.readonly),E=r.parseAttributeBoolean(p.mdNoAsterisk);if(E&&d.addClass("md-no-asterisk"),A){var O=A.isErrorGetter||function(){return k.$invalid&&(k.$touched||$&&$.$submitted)};if(A.input&&d.find("md-select-header").find("input")[0]!==A.input[0])throw new Error("<md-input-container> can only have *one* child <input>, <textarea> or <select> element!");A.input=d,A.label||o.expect(d,"aria-label",d.attr("placeholder")),u.$watch(O,A.setInvalid)}var z,L,N;!function(){if(z=t.element(d[0].querySelector(".md-select-menu-container")),L=u,p.mdContainerClass){var e=z[0].getAttribute("class")+" "+p.mdContainerClass;z[0].setAttribute("class",e)}N=z.find("md-select-menu").controller("mdSelectMenu"),N.init(k,p.ngModel),d.on("$destroy",function(){z.remove()})}(),a(d),$&&t.isDefined(p.multiple)&&r.nextTick(function(){(k.$modelValue||k.$viewValue)&&$.$setPristine()});var P=k.$render;k.$render=function(){P(),m(),v(),b()},p.$observe("placeholder",k.$render),A&&A.label&&p.$observe("required",function(e){A.label.toggleClass("md-required",e&&!E)}),S.setLabelText=function(e){S.setIsPlaceholder(!e);var t=!1;if(p.mdSelectedText&&p.mdSelectedHtml)throw Error("md-select cannot have both `md-selected-text` and `md-selected-html`");if(p.mdSelectedText||p.mdSelectedHtml)e=s(p.mdSelectedText||p.mdSelectedHtml)(u),t=!0;else if(!e){var n=p.placeholder||(A&&A.label?A.label.text():"");e=n||"",t=!0}var r=T.children().eq(0);p.mdSelectedHtml?r.html(c.getTrustedHtml(e)):t?r.text(e):r.html(e)},S.setIsPlaceholder=function(e){e?(T.addClass("md-select-placeholder"),A&&A.label&&A.label.addClass("md-placeholder")):(T.removeClass("md-select-placeholder"),A&&A.label&&A.label.removeClass("md-placeholder"))},C||(d.on("focus",function(e){A&&A.setFocused(!0)}),d.on("blur",function(e){w&&(w=!1,L._mdSelectIsOpen&&e.stopImmediatePropagation()),L._mdSelectIsOpen||(A&&A.setFocused(!1),b())})),S.triggerClose=function(){s(p.mdOnClose)(u)},u.$$postDigest(function(){h(),m(),v()}),u.$watch(function(){return N.selectedLabels()},m);var I;p.$observe("ngMultiple",function(e){I&&I();var t=s(e);I=u.$watch(function(){return t(u)},function(e,t){e===n&&t===n||(e?d.attr("multiple","multiple"):d.removeAttr("multiple"),d.attr("aria-multiselectable",e?"true":"false"),z&&(N.setMultiple(e),P=k.$render,k.$render=function(){P(),m(),v(),b()},k.$render()))})}),p.$observe("disabled",function(e){t.isString(e)&&(e=!0),M!==n&&M===e||(M=e,e?d.attr({"aria-disabled":"true"}).removeAttr("tabindex").off("click",x).off("keydown",y):d.attr({tabindex:p.tabindex,"aria-disabled":"false"}).on("click",x).on("keydown",y))}),p.hasOwnProperty("disabled")||p.hasOwnProperty("ngDisabled")||(d.attr({"aria-disabled":"false"}),d.on("click",x),d.on("keydown",y));var D={role:"listbox","aria-expanded":"false","aria-multiselectable":g&&!p.ngMultiple?"true":"false"};d[0].hasAttribute("id")||(D.id="select_"+r.nextUid());var R="select_container_"+r.nextUid();z.attr("id",R),d.find("md-select-menu").length||(D["aria-owns"]=R),d.attr(D),u.$on("$destroy",function(){e.destroy().finally(function(){A&&(A.setFocused(!1),A.setHasValue(!1),A.input=null),k.$setTouched()})})}}var p=i.KEY_CODE;p.SPACE,p.ENTER,p.UP_ARROW,p.DOWN_ARROW;return{restrict:"E",require:["^?mdInputContainer","mdSelect","ngModel","?^form"],compile:d,controller:function(){}}}function i(e,r,i,a){function o(e,n,i,o){function s(e){13!=e.keyCode&&32!=e.keyCode||c(e)}function c(n){var i=r.getClosest(n.target,"md-option"),a=i&&t.element(i).data("$mdOptionController");if(i&&a){if(i.hasAttribute("disabled"))return n.stopImmediatePropagation(),!1;var o=l.hashGetter(a.value),s=t.isDefined(l.selected[o]);e.$apply(function(){l.isMultiple?s?l.deselect(o):l.select(o,a.value):s||(l.deselect(Object.keys(l.selected)[0]),l.select(o,a.value)),l.refreshViewValue()})}}var l=o[0];n.addClass("_md"),a(n),n.on("click",c),n.on("keypress",s)}function s(a,o,s){function c(){var e=u.ngModel.$modelValue||u.ngModel.$viewValue||[];if(t.isArray(e)){var n=Object.keys(u.selected),r=e.map(u.hashGetter);n.filter(function(e){return-1===r.indexOf(e)}).forEach(u.deselect),r.forEach(function(t,n){u.select(t,e[n])})}}function l(){var e=u.ngModel.$viewValue||u.ngModel.$modelValue;Object.keys(u.selected).forEach(u.deselect),u.select(u.hashGetter(e),e)}var u=this;u.isMultiple=t.isDefined(o.multiple),u.selected={},u.options={},a.$watchCollection(function(){return u.options},function(){u.ngModel.$render()});var p,f;u.setMultiple=function(e){function n(e,n){return t.isArray(e||n||[])}var r=u.ngModel;f=f||r.$isEmpty,u.isMultiple=e,p&&p(),u.isMultiple?(r.$validators["md-multiple"]=n,r.$render=c,a.$watchCollection(u.modelBinding,function(e){n(e)&&c()}),r.$isEmpty=function(e){return!e||0===e.length}):(delete r.$validators["md-multiple"],r.$render=l)};var h,m,g,v="";u.optNodeForKeyboardSearch=function(e){h&&clearTimeout(h),h=setTimeout(function(){h=n,v="",g=n,m=n},300);var r=e.keyCode-(i.isNumPadKey(e)?48:0);v+=String.fromCharCode(r);var a=new RegExp("^"+v,"i");m||(m=s.find("md-option"),g=new Array(m.length),t.forEach(m,function(e,t){g[t]=e.textContent.trim()}));for(var o=0;o<g.length;++o)if(a.test(g[o]))return m[o]},u.init=function(n,i){u.ngModel=n,u.modelBinding=i,u.ngModel.$isEmpty=function(e){return!u.options[u.hashGetter(e)]};var o=r.getModelOption(n,"trackBy");if(o){var s={},c=e(o);u.hashGetter=function(e,t){return s.$value=e,c(t||a,s)}}else u.hashGetter=function(e){return t.isObject(e)?"object_"+(e.$$mdSelectId||(e.$$mdSelectId=++d)):e};u.setMultiple(u.isMultiple)},u.selectedLabels=function(e){e=e||{};var t=e.mode||"html",n=r.nodesToArray(s[0].querySelectorAll("md-option[selected]"));if(n.length){var i;return"html"==t?i=function(e){if(e.hasAttribute("md-option-empty"))return"";var t=e.innerHTML,n=e.querySelector(".md-ripple-container");n&&(t=t.replace(n.outerHTML,""));var r=e.querySelector(".md-container");return r&&(t=t.replace(r.outerHTML,"")),t}:"aria"==t&&(i=function(e){return e.hasAttribute("aria-label")?e.getAttribute("aria-label"):e.textContent}),r.uniq(n.map(i)).join(", ")}return""},u.select=function(e,t){var n=u.options[e];n&&n.setSelected(!0),u.selected[e]=t},u.deselect=function(e){var t=u.options[e];t&&t.setSelected(!1),delete u.selected[e]},u.addOption=function(e,n){if(t.isDefined(u.options[e]))throw new Error('Duplicate md-option values are not allowed in a select. Duplicate value "'+n.value+'" found.');u.options[e]=n,t.isDefined(u.selected[e])&&(u.select(e,n.value),t.isDefined(u.ngModel.$modelValue)&&u.hashGetter(u.ngModel.$modelValue)===e&&u.ngModel.$validate(),u.refreshViewValue())},u.removeOption=function(e){delete u.options[e]},u.refreshViewValue=function(){var e,n=[];for(var i in u.selected)(e=u.options[i])?n.push(e.value):n.push(u.selected[i]);var a=r.getModelOption(u.ngModel,"trackBy"),o=u.isMultiple?n:n[0],s=u.ngModel.$modelValue;(a?t.equals(s,o):s+""===o)||(u.ngModel.$setViewValue(o),u.ngModel.$render())}}return s.$inject=["$scope","$attrs","$element"],s.$inject=["$scope","$attrs","$element"],{restrict:"E",require:["mdSelectMenu"],scope:!1,controller:s,link:{pre:o}}}function a(e,n,r){function i(e,n){return e.append(t.element('<div class="md-text">').append(e.contents())),e.attr("tabindex",n.tabindex||"0"),a(n)||e.attr("md-option-empty",""),o}function a(e){var t=e.value,n=e.ngValue;return t||n}function o(i,a,o,s){function c(e,t,n){if(!u.hashGetter)return void(n||i.$$postDigest(function(){c(e,t,!0)}));var r=u.hashGetter(t,i),a=u.hashGetter(e,i);l.hashKey=a,l.value=e,u.removeOption(r,l),u.addOption(a,l)}var l=s[0],u=s[1];r(a),u.isMultiple&&(a.addClass("md-checkbox-enabled"),a.prepend(p.clone())),t.isDefined(o.ngValue)?i.$watch(o.ngValue,c):t.isDefined(o.value)?c(o.value):i.$watch(function(){return a.text().trim()},c),o.$observe("disabled",function(e){e?a.attr("tabindex","-1"):a.attr("tabindex","0")}),i.$$postDigest(function(){o.$observe("selected",function(e){t.isDefined(e)&&("string"==typeof e&&(e=!0),e?(u.isMultiple||u.deselect(Object.keys(u.selected)[0]),u.select(l.hashKey,l.value)):u.deselect(l.hashKey),u.refreshViewValue())})}),e.attach(i,a),function(){
26var e={role:"option","aria-selected":"false"};a[0].hasAttribute("id")||(e.id="select_option_"+n.nextUid()),a.attr(e)}(),i.$on("$destroy",function(){u.removeOption(l.hashKey,l)})}function s(e){this.selected=!1,this.setSelected=function(t){t&&!this.selected?e.attr({selected:"selected","aria-selected":"true"}):!t&&this.selected&&(e.removeAttr("selected"),e.attr("aria-selected","false")),this.selected=t}}return s.$inject=["$element"],s.$inject=["$element"],{restrict:"E",require:["mdOption","^^mdSelectMenu"],controller:s,compile:i}}function o(){function e(e,n){(function(){return e.parent().find("md-select-header").length})()||function(){var r=e.find("label");r.length||(r=t.element("<label>"),e.prepend(r)),r.addClass("md-container-ignore"),r.attr("aria-hidden","true"),n.label&&r.text(n.label)}()}return{restrict:"E",compile:e}}function s(){return{restrict:"E"}}function c(r){function i(r,i,d,p,f,h,m,g,v){function b(e,t,n){function r(){a(),t.removeClass("md-active").attr("aria-hidden","true").css("display","none"),t.parent().find("md-select-value").removeAttr("aria-hidden"),x(n),!n.$destroy&&n.restoreFocus&&n.target.focus()}var i=null,a=e.$on("$destroy",function(){i.end()});return n=n||{},n.cleanupInteraction(),n.cleanupResizing(),n.hideBackdrop(),!0===n.$destroy?r():function(){return i=m(t,{addClass:"md-leave"}),i.start()}().then(r)}function y(e,a,o){function s(){return f(function(t){if(o.isRemoved)return f.reject(!1);var n=M(e,a,o);n.container.element.css(w.toCss(n.container.styles)),n.dropDown.element.css(w.toCss(n.dropDown.styles)),h(function(){a.addClass("md-active"),n.dropDown.element.css(w.toCss({transform:""})),t()})})}function c(e){e&&!e.hasAttribute("disabled")&&e.focus()}function u(){var n=function(e,t,n){return function(){if(!n.isRemoved){var r=M(e,t,n),i=r.container,a=r.dropDown;i.element.css(w.toCss(i.styles)),a.element.css(w.toCss(a.styles))}}}(e,a,o),r=t.element(p);return r.on("resize",n),r.on("orientationchange",n),function(){r.off("resize",n),r.off("orientationchange",n)}}function b(){function e(e){e.preventDefault(),e.stopPropagation(),o.restoreFocus=!1,d.nextTick(r.hide,!0)}function t(e){switch(e.preventDefault(),e.stopPropagation(),e.keyCode){case A.UP_ARROW:return u();case A.DOWN_ARROW:return c();case A.SPACE:case A.ENTER:var t=d.getClosest(e.target,"md-option");t&&(f.triggerHandler({type:"click",target:t}),e.preventDefault()),p(e);break;case A.TAB:case A.ESCAPE:e.stopPropagation(),e.preventDefault(),o.restoreFocus=!0,d.nextTick(r.hide,!0);break;default:if(l(e,i)){var n=f.controller("mdSelectMenu").optNodeForKeyboardSearch(e);o.focusedNode=n||o.focusedNode,n&&n.focus()}}}function s(e){var t,r=d.nodesToArray(o.optionNodes),i=r.indexOf(o.focusedNode);do{-1===i?i=0:"next"===e&&i<r.length-1?i++:"prev"===e&&i>0&&i--,t=r[i],t.hasAttribute("disabled")&&(t=n)}while(!t&&i<r.length-1&&i>0);t&&t.focus(),o.focusedNode=t}function c(){s("next")}function u(){s("prev")}function p(e){if(!(e&&"click"==e.type&&e.currentTarget!=f[0]||function(){var t=!1;if(e&&e.currentTarget.children.length>0){var n=e.currentTarget.children[0];if(n.scrollHeight>n.clientHeight&&n.children.length>0){e.pageX-e.currentTarget.getBoundingClientRect().left>n.querySelector("md-option").offsetWidth&&(t=!0)}}return t}())){var t=d.getClosest(e.target,"md-option");t&&t.hasAttribute&&!t.hasAttribute("disabled")&&(e.preventDefault(),e.stopPropagation(),h.isMultiple||(o.restoreFocus=!0,d.nextTick(function(){r.hide(h.ngModel.$viewValue)},!0)))}}if(!o.isRemoved){var f=o.selectEl,h=f.controller("mdSelectMenu")||{};return a.addClass("md-clickable"),o.backdrop&&o.backdrop.on("click",e),f.on("keydown",t),f.on("click",p),function(){o.backdrop&&o.backdrop.off("click",e),f.off("keydown",t),f.off("click",p),a.removeClass("md-clickable"),o.isRemoved=!0}}}return function(){o.loadingAsync&&!o.isRemoved&&(e.$$loadingAsyncDone=!1,f.when(o.loadingAsync).then(function(){e.$$loadingAsyncDone=!0,delete o.loadingAsync}).then(function(){h(s)}))}(),function(e,n){var r=a.find("md-select-menu");if(!n.target)throw new Error(d.supplant(_,[n.target]));t.extend(n,{isRemoved:!1,target:t.element(n.target),parent:t.element(n.parent),selectEl:r,contentEl:a.find("md-content"),optionNodes:r[0].getElementsByTagName("md-option")})}(0,o),o.hideBackdrop=function(e,t,n){return n.disableParentScroll&&!d.getClosest(n.target,"MD-DIALOG")?n.restoreScroll=d.disableScrollAround(n.element,n.parent):n.disableParentScroll=!1,n.hasBackdrop&&(n.backdrop=d.createBackdrop(e,"md-select-backdrop md-click-catcher"),g.enter(n.backdrop,v[0].body,null,{duration:0})),function(){n.backdrop&&n.backdrop.remove(),n.disableParentScroll&&n.restoreScroll(),delete n.restoreScroll}}(e,a,o),function(e,t,n){return n.parent!==t.parent()&&t.parent().attr("aria-owns",t.attr("id")),t.parent().find("md-select-value").attr("aria-hidden","true"),n.parent.append(t),f(function(e,n){try{m(t,{removeClass:"md-leave",duration:0}).start().then(s).then(e)}catch(e){n(e)}})}(e,a,o).then(function(e){return a.attr("aria-hidden","false"),o.alreadyOpen=!0,o.cleanupInteraction=b(),o.cleanupResizing=u(),c(o.focusedNode),e},o.hideBackdrop)}function x(e){var t=e.selectCtrl;if(t){var n=e.selectEl.controller("mdSelectMenu");t.setLabelText(n?n.selectedLabels():""),t.triggerClose()}}function M(n,r,i){var l,f=r[0],h=i.target[0].children[0],m=v[0].body,g=i.selectEl[0],b=i.contentEl[0],y=m.getBoundingClientRect(),x=h.getBoundingClientRect(),M={left:y.left+u,top:u,bottom:y.height-u,right:y.width-u-(d.floatingScrollbars()?16:0)},_={top:x.top-M.top,left:x.left-M.left,right:M.right-(x.left+x.width),bottom:M.bottom-(x.top+x.height)},w=y.width-2*u,A=g.querySelector("md-option[selected]"),S=g.getElementsByTagName("md-option"),k=g.getElementsByTagName("md-optgroup"),$=c(r,b);l=a(i.loadingAsync)?b.firstElementChild||b:A||(k.length?k[0]:S.length?S[0]:b.firstElementChild||b),b.offsetWidth>w?b.style["max-width"]=w+"px":b.style.maxWidth=null,$&&g.classList.add("md-overflow");var T=l;"MD-OPTGROUP"===(T.tagName||"").toUpperCase()&&(T=S[0]||b.firstElementChild||b,l=T),i.focusedNode=T,f.style.display="block";var C=g.getBoundingClientRect(),E=s(l);if(l){var O=p.getComputedStyle(l);E.paddingLeft=parseInt(O.paddingLeft,10)||0,E.paddingRight=parseInt(O.paddingRight,10)||0}if($){var z=b.offsetHeight/2;b.scrollTop=E.top+E.height/2-z,_.top<z?b.scrollTop=Math.min(E.top,b.scrollTop+z-_.top):_.bottom<z&&(b.scrollTop=Math.max(E.top+E.height-C.height,b.scrollTop-z+_.bottom))}var L,N,P,I,D;L=x.left+E.left-E.paddingLeft+2,N=Math.floor(x.top+x.height/2-E.height/2-E.top+b.scrollTop)+2,P=E.left+x.width/2+"px "+(E.top+E.height/2-b.scrollTop)+"px 0px",I=Math.min(x.width+E.paddingLeft+E.paddingRight,w),D=e.getComputedStyle(h)["font-size"];var R=f.getBoundingClientRect(),j=Math.round(100*Math.min(x.width/C.width,1))/100,q=Math.round(100*Math.min(x.height/C.height,1))/100;return{container:{element:t.element(f),styles:{left:Math.floor(o(M.left,L,M.right-R.width)),top:Math.floor(o(M.top,N,M.bottom-R.height)),"min-width":I,"font-size":D}},dropDown:{element:t.element(g),styles:{transformOrigin:P,transform:i.alreadyOpen?"":d.supplant("scale({0},{1})",[j,q])}}}}var _="$mdSelect.show() expected a target element in options.target but got '{0}'!",w=d.dom.animator,A=i.KEY_CODE;return{parent:"body",themable:!0,onShow:y,onRemove:b,hasBackdrop:!0,disableParentScroll:!0}}function a(e){return e&&t.isFunction(e.then)}function o(e,t,n){return Math.max(e,Math.min(t,n))}function s(e){return e?{left:e.offsetLeft,top:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}:{left:0,top:0,width:0,height:0}}function c(e,t){var n=!1;try{var r=e[0].style.display;e[0].style.display="block",n=t.scrollHeight>t.offsetHeight,e[0].style.display=r}finally{}return n}return i.$inject=["$mdSelect","$mdConstant","$mdUtil","$window","$q","$$rAF","$animateCss","$animate","$document"],i.$inject=["$mdSelect","$mdConstant","$mdUtil","$window","$q","$$rAF","$animateCss","$animate","$document"],r("$mdSelect").setDefaults({methods:["target"],options:i})}function l(e,t){var n=String.fromCharCode(e.keyCode),r=e.keyCode<=31;return n&&n.length&&!r&&!t.isMetaKey(e)&&!t.isFnLockKey(e)&&!t.hasModifierKey(e)}c.$inject=["$$interimElementProvider"],a.$inject=["$mdButtonInkRipple","$mdUtil","$mdTheming"],i.$inject=["$parse","$mdUtil","$mdConstant","$mdTheming"],r.$inject=["$mdSelect","$mdUtil","$mdConstant","$mdTheming","$mdAria","$parse","$sce","$injector"],r.$inject=["$mdSelect","$mdUtil","$mdConstant","$mdTheming","$mdAria","$parse","$sce","$injector"],i.$inject=["$parse","$mdUtil","$mdConstant","$mdTheming"],a.$inject=["$mdButtonInkRipple","$mdUtil","$mdTheming"],c.$inject=["$$interimElementProvider"];var u=8,d=0,p=t.element('<div class="md-container"><div class="md-icon"></div></div>');t.module("material.components.select",["material.core","material.components.backdrop"]).directive("mdSelect",r).directive("mdSelectMenu",i).directive("mdOption",a).directive("mdOptgroup",o).directive("mdSelectHeader",s).provider("$mdSelect",c)}(),function(){function e(e,r,i,a){function o(e,n){var a=function(){return!1},o=function(){return i.when(r.supplant(l,[n||""]))};return t.extend({isLockedOpen:a,isOpen:a,toggle:o,open:o,close:o,onClose:t.noop,then:function(e){return c(n).then(e||t.noop)}},e)}function s(t,i){var o=e.get(t);return o||i?o:(a.error(r.supplant(l,[t||""])),n)}function c(t){return e.when(t).catch(a.error)}var l="SideNav '{0}' is not available! Did you use md-component-id='{0}'?",u={find:s,waitFor:c};return function(e,n){if(t.isUndefined(e))return u;var r=!0===n,i=u.find(e,r);return!i&&r?u.waitFor(e):!i&&t.isUndefined(n)?o(u,e):i}}function r(){return{restrict:"A",require:"^mdSidenav",link:function(e,t,n,r){}}}function i(e,r,i,a,o,s,c,l,u,d,p,f,h){function m(c,m,g,v){function b(e,t){c.isLockedOpen=e,e===t?m.toggleClass("md-locked-open",!!e):s[e?"addClass":"removeClass"](m,"md-locked-open"),k&&k.toggleClass("md-locked-open",!!e)}function y(e){var t=r.findFocusTarget(m)||r.findFocusTarget(m,"[md-sidenav-focus]")||m,n=m.parent();n[e?"on":"off"]("keydown",w),k&&k[e?"on":"off"]("click",A);var i=x(n,e);return e&&(E=p[0].activeElement,$=o.getLastInteractionType()),M(e),O=d.all([e&&k?s.enter(k,n):k?s.leave(k):d.when(!0),s[e?"removeClass":"addClass"](m,"md-closed")]).then(function(){c.isOpen&&(h(function(){L.triggerHandler("resize")}),t&&t.focus()),i&&i()})}function x(e,t){var n=m[0],r=e[0].scrollTop;if(t&&r){T={top:n.style.top,bottom:n.style.bottom,height:n.style.height};var i={top:r+"px",bottom:"auto",height:e[0].clientHeight+"px"};m.css(i),k.css(i)}if(!t&&T)return function(){n.style.top=T.top,n.style.bottom=T.bottom,n.style.height=T.height,k[0].style.top=null,k[0].style.bottom=null,k[0].style.height=null,T=null}}function M(e){e&&!S?(S=C.css("overflow"),C.css("overflow","hidden")):t.isDefined(S)&&(C.css("overflow",S),S=n)}function _(e){return c.isOpen==e?d.when(!0):(c.isOpen&&v.onCloseCb&&v.onCloseCb(),d(function(t){c.isOpen=e,r.nextTick(function(){O.then(function(e){!c.isOpen&&E&&"keyboard"===$&&(E.focus(),E=null),t(e)})})}))}function w(e){return e.keyCode===i.KEY_CODE.ESCAPE?A(e):d.when(!0)}function A(e){return e.preventDefault(),v.close()}var S,k,$,T,C=null,E=null,O=d.when(!0),z=l(g.mdIsLockedOpen),L=t.element(f),N=function(){return z(c.$parent,{$media:function(t){return u.warn("$media is deprecated for is-locked-open. Use $mdMedia instead."),e(t)},$mdMedia:e})};g.mdDisableScrollTarget&&(C=p[0].querySelector(g.mdDisableScrollTarget),C?C=t.element(C):u.warn(r.supplant('mdSidenav: couldn\'t find element matching selector "{selector}". Falling back to parent.',{selector:g.mdDisableScrollTarget}))),C||(C=m.parent()),g.hasOwnProperty("mdDisableBackdrop")||(k=r.createBackdrop(c,"md-sidenav-backdrop md-opaque ng-enter")),m.addClass("_md"),a(m),k&&a.inherit(k,m),m.on("$destroy",function(){k&&k.remove(),v.destroy()}),c.$on("$destroy",function(){k&&k.remove()}),c.$watch(N,b),c.$watch("isOpen",y),v.$toggleOpen=_}return{restrict:"E",scope:{isOpen:"=?mdIsOpen"},controller:"$mdSidenavController",compile:function(e){return e.addClass("md-closed").attr("tabIndex","-1"),m}}}function a(e,t,n,r,i){var a=this;a.isOpen=function(){return!!e.isOpen},a.isLockedOpen=function(){return!!e.isLockedOpen},a.onClose=function(e){return a.onCloseCb=e,a},a.open=function(){return a.$toggleOpen(!0)},a.close=function(){return a.$toggleOpen(!1)},a.toggle=function(){return a.$toggleOpen(!e.isOpen)},a.$toggleOpen=function(t){return r.when(e.isOpen=t)};var o=t.mdComponentId,s=o&&o.indexOf(i.startSymbol())>-1,c=s?i(o)(e.$parent):o;a.destroy=n.register(a,c),s&&t.$observe("mdComponentId",function(e){e&&e!==a.$$mdHandle&&(a.destroy(),a.destroy=n.register(a,e))})}a.$inject=["$scope","$attrs","$mdComponentRegistry","$q","$interpolate"],i.$inject=["$mdMedia","$mdUtil","$mdConstant","$mdTheming","$mdInteraction","$animate","$compile","$parse","$log","$q","$document","$window","$$rAF"],e.$inject=["$mdComponentRegistry","$mdUtil","$q","$log"],e.$inject=["$mdComponentRegistry","$mdUtil","$q","$log"],i.$inject=["$mdMedia","$mdUtil","$mdConstant","$mdTheming","$mdInteraction","$animate","$compile","$parse","$log","$q","$document","$window","$$rAF"],a.$inject=["$scope","$attrs","$mdComponentRegistry","$q","$interpolate"],t.module("material.components.sidenav",["material.core","material.components.backdrop"]).factory("$mdSidenav",e).directive("mdSidenav",i).directive("mdSidenavFocus",r).controller("$mdSidenavController",a)}(),function(){function e(){return{controller:function(){},compile:function(e){var r=e.find("md-slider");if(r){return r.attr("md-vertical")!==n&&e.attr("md-vertical",""),r.attr("flex")||r.attr("flex",""),function(e,n,r,i){function a(e){n.children().attr("disabled",e),n.find("input").attr("disabled",e)}n.addClass("_md");var o=t.noop;r.disabled?a(!0):r.ngDisabled&&(o=e.$watch(r.ngDisabled,function(e){a(e)})),e.$on("$destroy",function(){o()});var s;i.fitInputWidthToTextLength=function(e){var t=n[0].querySelector("md-input-container");if(t){var r=getComputedStyle(t),i=parseInt(r.minWidth),a=2*parseInt(r.padding);s=s||parseInt(r.maxWidth);var o=Math.max(s,i+a+i/2*e);t.style.maxWidth=o+"px"}}}}}}}function r(e,n,r,i,a,o,s,c,l,u){function d(e,n){var i=t.element(e[0].getElementsByClassName("md-slider-wrapper")),a=n.tabindex||0;return i.attr("tabindex",a),(n.disabled||n.ngDisabled)&&i.attr("tabindex",-1),e.attr("role","slider"),r.expect(e,"aria-label"),p}function p(r,d,p,f){function h(){_(),C()}function m(e){oe=parseFloat(e),d.attr("aria-valuemin",e),h()}function g(e){se=parseFloat(e),d.attr("aria-valuemax",e),h()}function v(e){ce=parseFloat(e)}function b(e){le=E(parseInt(e),0,6)}function y(){d.attr("aria-disabled",!!V())}function x(){if(re&&!V()&&!t.isUndefined(ce)){if(ce<=0){var e="Slider step value must be greater than zero when in discrete mode";throw l.error(e),new Error(e)}var r=Math.floor((se-oe)/ce);ue||(ue=t.element("<canvas>").css("position","absolute"),J.append(ue),de=ue[0].getContext("2d"));var i=w();!i||i.height||i.width||(_(),i=pe),ue[0].width=i.width,ue[0].height=i.height;for(var a,o=0;o<=r;o++){var s=n.getComputedStyle(J[0]);de.fillStyle=s.color||"black",a=Math.floor((ne?i.height:i.width)*(o/r)),de.fillRect(ne?0:a-1,ne?a-1:0,ne?i.width:2,ne?2:i.height)}}}function M(){if(ue&&de){var e=w();de.clearRect(0,0,e.width,e.height)}}function _(){pe=K[0].getBoundingClientRect()}function w(){return te(),pe}function A(e){if(!V()){var t;(ne?e.keyCode===a.KEY_CODE.DOWN_ARROW:e.keyCode===a.KEY_CODE.LEFT_ARROW)?t=-ce:(ne?e.keyCode===a.KEY_CODE.UP_ARROW:e.keyCode===a.KEY_CODE.RIGHT_ARROW)&&(t=ce),t=ie?-t:t,t&&((e.metaKey||e.ctrlKey||e.altKey)&&(t*=4),e.preventDefault(),e.stopPropagation(),r.$evalAsync(function(){T(X.$viewValue+t)}))}}function S(){x(),r.mouseActive=!0,ee.removeClass("md-focused"),u(function(){r.mouseActive=!1},100)}function k(){!1===r.mouseActive&&ee.addClass("md-focused")}function $(){ee.removeClass("md-focused"),d.removeClass("md-active"),M()}function T(e){X.$setViewValue(E(O(e)))}function C(){isNaN(X.$viewValue)&&(X.$viewValue=X.$modelValue),X.$viewValue=E(X.$viewValue);var e=F(X.$viewValue);r.modelValue=X.$viewValue,d.attr("aria-valuenow",X.$viewValue),z(e),Y.text(X.$viewValue)}function E(e,n,r){if(t.isNumber(e))return n=t.isNumber(n)?n:oe,r=t.isNumber(r)?r:se,Math.max(n,Math.min(r,e))}function O(e){if(t.isNumber(e)){var n=Math.round((e-oe)/ce)*ce+oe;return n=Math.round(n*Math.pow(10,le))/Math.pow(10,le),U&&U.fitInputWidthToTextLength&&i.debounce(function(){U.fitInputWidthToTextLength(n.toString().length)},100)(),n}}function z(e){e=B(e);var t=100*e+"%",n=ie?100*(1-e)+"%":t;ne?Q.css("bottom",t):i.bidiProperty(Q,"left","right",t),Z.css(ne?"height":"width",n),d.toggleClass(ie?"md-max":"md-min",0===e),d.toggleClass(ie?"md-min":"md-max",1===e)}function L(e){if(!V()){d.addClass("md-active"),d[0].focus(),_();var t=H(W(ne?e.pointer.y:e.pointer.x)),n=E(O(t));r.$apply(function(){T(n),z(F(n))})}}function N(e){if(!V()){d.removeClass("md-dragging");var t=H(W(ne?e.pointer.y:e.pointer.x)),n=E(O(t));r.$apply(function(){T(n),C()})}}function P(e){V()||(fe=!0,e.stopPropagation(),d.addClass("md-dragging"),R(e))}function I(e){fe&&(e.stopPropagation(),R(e))}function D(e){fe&&(e.stopPropagation(),fe=!1)}function R(e){re?q(ne?e.pointer.y:e.pointer.x):j(ne?e.pointer.y:e.pointer.x)}function j(e){r.$evalAsync(function(){T(H(W(e)))})}function q(e){var t=H(W(e)),n=E(O(t));z(W(e)),Y.text(n)}function B(e){return Math.max(0,Math.min(e||0,1))}function W(e){var t=ne?pe.top:pe.left,n=ne?pe.height:pe.width,r=(e-t)/n;return ne||"rtl"!==i.bidi()||(r=1-r),Math.max(0,Math.min(1,ne?1-r:r))}function H(e){return oe+(ie?1-e:e)*(se-oe)}function F(e){var t=(e-oe)/(se-oe);return ie?1-t:t}o(d);var X=f[0]||{$setViewValue:function(e){this.$viewValue=e,this.$viewChangeListeners.forEach(function(e){e()})},$parsers:[],$formatters:[],$viewChangeListeners:[]},U=f[1],V=(t.element(i.getClosest(d,"_md-slider-container",!0)),p.ngDisabled?t.bind(null,c(p.ngDisabled),r.$parent):function(){return d[0].hasAttribute("disabled")}),G=t.element(d[0].querySelector(".md-thumb")),Y=t.element(d[0].querySelector(".md-thumb-text")),Q=G.parent(),K=t.element(d[0].querySelector(".md-track-container")),Z=t.element(d[0].querySelector(".md-track-fill")),J=t.element(d[0].querySelector(".md-track-ticks")),ee=t.element(d[0].getElementsByClassName("md-slider-wrapper")),te=(t.element(d[0].getElementsByClassName("md-slider-content")),i.throttle(_,5e3)),ne=t.isDefined(p.mdVertical),re=t.isDefined(p.mdDiscrete),ie=t.isDefined(p.mdInvert);t.isDefined(p.min)?p.$observe("min",m):m(0),t.isDefined(p.max)?p.$observe("max",g):g(100),t.isDefined(p.step)?p.$observe("step",v):v(1),t.isDefined(p.round)?p.$observe("round",b):b(3);t.noop;p.ngDisabled&&r.$parent.$watch(p.ngDisabled,y),s.register(ee,"drag",{horizontal:!ne}),r.mouseActive=!1,ee.on("keydown",A).on("mousedown",S).on("focus",k).on("blur",$).on("$md.pressdown",L).on("$md.pressup",N).on("$md.dragstart",P).on("$md.drag",I).on("$md.dragend",D),setTimeout(h,0);var ae=e.throttle(h);t.element(n).on("resize",ae),r.$on("$destroy",function(){t.element(n).off("resize",ae)}),X.$render=C,X.$viewChangeListeners.push(C),X.$formatters.push(E),X.$formatters.push(O);var oe,se,ce,le,ue,de,pe={};_();var fe=!1}return{scope:{},require:["?ngModel","?^mdSliderContainer"],template:'<div class="md-slider-wrapper"><div class="md-slider-content"><div class="md-track-container"><div class="md-track"></div><div class="md-track md-track-fill"></div><div class="md-track-ticks"></div></div><div class="md-thumb-container"><div class="md-thumb"></div><div class="md-focus-thumb"></div><div class="md-focus-ring"></div><div class="md-sign"><span class="md-thumb-text"></span></div><div class="md-disabled-thumb"></div></div></div></div>',compile:d}}r.$inject=["$$rAF","$window","$mdAria","$mdUtil","$mdConstant","$mdTheming","$mdGesture","$parse","$log","$timeout"],r.$inject=["$$rAF","$window","$mdAria","$mdUtil","$mdConstant","$mdTheming","$mdGesture","$parse","$log","$timeout"],t.module("material.components.slider",["material.core"]).directive("mdSlider",r).directive("mdSliderContainer",e)}(),function(){function e(e,t,r,i){function a(i){function a(e,t){t.addClass("md-sticky-clone");var n={element:e,clone:t};return m.items.push(n),r.nextTick(function(){f.prepend(n.clone)}),h(),function(){m.items.forEach(function(t,n){t.element[0]===e[0]&&(m.items.splice(n,1),t.clone.remove())}),h()}}function s(){m.items.forEach(c),m.items=m.items.sort(function(e,t){return e.top<t.top?-1:1});for(var e,t=f.prop("scrollTop"),n=m.items.length-1;n>=0;n--)if(t>m.items[n].top){e=m.items[n];break}u(e)}function c(e){var t=e.element[0];for(e.top=0,e.left=0,e.right=0;t&&t!==f[0];)e.top+=t.offsetTop,e.left+=t.offsetLeft,t.offsetParent&&(e.right+=t.offsetParent.offsetWidth-t.offsetWidth-t.offsetLeft),t=t.offsetParent;e.height=e.element.prop("offsetHeight");var i=r.floatingScrollbars()?"0":n;r.bidi(e.clone,"margin-left",e.left,i),r.bidi(e.clone,"margin-right",i,e.right)}function l(){var e=f.prop("scrollTop"),t=e>(l.prevScrollTop||0);if(l.prevScrollTop=e,0===e)return void u(null);if(t){if(m.next&&m.next.top<=e)return void u(m.next);if(m.current&&m.next&&m.next.top-e<=m.next.height)return void p(m.current,e+(m.next.top-m.next.height-e))}if(!t){if(m.current&&m.prev&&e<m.current.top)return void u(m.prev);if(m.next&&m.current&&e>=m.next.top-m.current.height)return void p(m.current,e+(m.next.top-e-m.current.height))}m.current&&p(m.current,e)}function u(e){if(m.current!==e){m.current&&(p(m.current,null),d(m.current,null)),e&&d(e,"active"),m.current=e;var t=m.items.indexOf(e);m.next=m.items[t+1],m.prev=m.items[t-1],d(m.next,"next"),d(m.prev,"prev")}}function d(e,t){e&&e.state!==t&&(e.state&&(e.clone.attr("sticky-prev-state",e.state),e.element.attr("sticky-prev-state",e.state)),e.clone.attr("sticky-state",t),e.element.attr("sticky-state",t),e.state=t)}function p(t,i){t&&(null===i||i===n?t.translateY&&(t.translateY=null,t.clone.css(e.CSS.TRANSFORM,"")):(t.translateY=i,r.bidi(t.clone,e.CSS.TRANSFORM,"translate3d("+t.left+"px,"+i+"px,0)","translateY("+i+"px)")))}var f=i.$element,h=t.throttle(s);o(f),f.on("$scrollstart",h),f.on("$scroll",l);var m;return m={prev:null,current:null,next:null,items:[],add:a,refreshElements:s}}function o(e){function n(){+r.now()-a>o?(i=!1,e.triggerHandler("$scrollend")):(e.triggerHandler("$scroll"),t.throttle(n))}var i,a,o=200;e.on("scroll touchmove",function(){i||(i=!0,t.throttle(n),e.triggerHandler("$scrollstart")),e.triggerHandler("$scroll"),a=+r.now()})}var s=r.checkStickySupport();return function(e,t,n){var r=t.controller("mdContent");if(r)if(s)t.css({position:s,top:0,"z-index":2});else{var o=r.$element.data("$$sticky");o||(o=a(r),r.$element.data("$$sticky",o));var c=n||i(t.clone())(e),l=o.add(t,c);e.$on("$destroy",l)}}}e.$inject=["$mdConstant","$$rAF","$mdUtil","$compile"],e.$inject=["$mdConstant","$$rAF","$mdUtil","$compile"],t.module("material.components.sticky",["material.core","material.components.content"]).factory("$mdSticky",e)}(),function(){function e(e,n,r,i,a){return{restrict:"E",replace:!0,transclude:!0,template:'<div class="md-subheader _md"> <div class="md-subheader-inner"> <div class="md-subheader-content"></div> </div></div>',link:function(o,s,c,l,u){function d(e){return t.element(e[0].querySelector(".md-subheader-content"))}r(s),s.addClass("_md"),i.prefixer().removeAttribute(s,"ng-repeat");var p=s[0].outerHTML;c.$set("role","heading"),a.expect(s,"aria-level","2"),u(o,function(e){d(s).append(e)}),s.hasClass("md-no-sticky")||u(o,function(t){var r=n('<div class="md-subheader-wrapper" aria-hidden="true">'+p+"</div>")(o);i.nextTick(function(){d(r).append(t)}),e(o,s,r)})}}}e.$inject=["$mdSticky","$compile","$mdTheming","$mdUtil","$mdAria"],e.$inject=["$mdSticky","$compile","$mdTheming","$mdUtil","$mdAria"],t.module("material.components.subheader",["material.core","material.components.sticky"]).directive("mdSubheader",e)}(),function(){function e(e){function t(e){function t(t,i,a){var o=e(a[n]);i.on(r,function(e){var n=e.currentTarget;t.$applyAsync(function(){o(t,{$event:e,$target:{current:n}})})})}return{restrict:"A",link:t}}t.$inject=["$parse"],t.$inject=["$parse"];var n="md"+e,r="$md."+e.toLowerCase();return t}t.module("material.components.swipe",["material.core"]).directive("mdSwipeLeft",e("SwipeLeft")).directive("mdSwipeRight",e("SwipeRight")).directive("mdSwipeUp",e("SwipeUp")).directive("mdSwipeDown",e("SwipeDown"))}(),function(){function e(e,n,r,i,a,o,s){function c(e,c){var u=l.compile(e,c).post;return e.addClass("md-dragging"),function(e,c,l,d){function p(t){v&&v(e)||(t.stopPropagation(),c.addClass("md-dragging"),M={width:b.prop("offsetWidth")})}function f(e){if(M){e.stopPropagation(),e.srcEvent&&e.srcEvent.preventDefault();var t=e.pointer.distanceX/M.width,n=g.$viewValue?1+t:t;n=Math.max(0,Math.min(1,n)),b.css(r.CSS.TRANSFORM,"translate3d("+100*n+"%,0,0)"),M.translate=n}}function h(t){if(M){t.stopPropagation(),c.removeClass("md-dragging"),b.css(r.CSS.TRANSFORM,"");(g.$viewValue?M.translate<.5:M.translate>.5)&&m(!g.$viewValue),M=null,e.skipToggle=!0,s(function(){e.skipToggle=!1},1)}}function m(t){e.$apply(function(){g.$setViewValue(t),g.$render()})}var g=(d[0],d[1]||n.fakeNgModel()),v=(d[2],null);null!=l.disabled?v=function(){return!0}:l.ngDisabled&&(v=i(l.ngDisabled));var b=t.element(c[0].querySelector(".md-thumb-container")),y=t.element(c[0].querySelector(".md-container")),x=t.element(c[0].querySelector(".md-label"));a(function(){c.removeClass("md-dragging")}),u(e,c,l,d),v&&e.$watch(v,function(e){c.attr("tabindex",e?-1:0)}),l.$observe("mdInvert",function(e){var t=n.parseAttributeBoolean(e);t?c.prepend(x):c.prepend(y),c.toggleClass("md-inverted",t)}),o.register(y,"drag"),y.on("$md.dragstart",p).on("$md.drag",f).on("$md.dragend",h);var M}}var l=e[0];return{restrict:"E",priority:r.BEFORE_NG_ARIA,transclude:!0,template:'<div class="md-container"><div class="md-bar"></div><div class="md-thumb-container"><div class="md-thumb" md-ink-ripple md-ink-ripple-checkbox></div></div></div><div ng-transclude class="md-label"></div>',require:["^?mdInputContainer","?ngModel","?^form"],compile:c}}e.$inject=["mdCheckboxDirective","$mdUtil","$mdConstant","$parse","$$rAF","$mdGesture","$timeout"],e.$inject=["mdCheckboxDirective","$mdUtil","$mdConstant","$parse","$$rAF","$mdGesture","$timeout"],t.module("material.components.switch",["material.core","material.components.checkbox"]).directive("mdSwitch",e)}(),function(){t.module("material.components.tabs",["material.core","material.components.icon"])}(),function(){function e(){function e(e,t){var r,i,a=e.canvas,o=n(e);for(r=0;r<o.length;r++)if(o[r]>=t){i=o[r];break}return Math.max(0,i-a.clientWidth)}function t(e,t){var i,a,o=e.canvas,s=r(e)-o.clientWidth,c=n(e);for(i=0;c.length,c[i]<=t+o.clientWidth;i++)a=c[i];return Math.min(s,a)}function n(e){var t,n,r=0,i=[];for(t=0;t<e.tabs.length;t++)n=e.tabs[t],i.push(r),r+=n.offsetWidth;return i}function r(e){var t,n,r=0;for(t=0;t<e.tabs.length;t++)n=e.tabs[t],r+=n.offsetWidth;return r}return{decreasePageOffset:e,increasePageOffset:t,getTabOffsets:n,getTotalTabsWidth:r}}t.module("material.components.tabs").service("MdTabsPaginationService",e)}(),function(){function e(e){return{restrict:"E",link:function(t,n){n.addClass("_md"),t.$on("$destroy",function(){e.destroy()})}}}function n(e){function n(e){a=e}function r(e,t){this.$onInit=function(){var n=this;n.highlightAction&&(t.highlightClasses=["md-highlight",n.highlightClass]),t.$watch(function(){return a},function(){n.content=a}),this.resolve=function(){e.hide(o)}}}function i(e,n,r,i){function o(t,o,s){a=s.textContent||s.content;var u=!i("gt-sm");return o=r.extractElementByName(o,"md-toast",!0),s.element=o,s.onSwipe=function(e,t){var i=e.type.replace("$md.",""),a=i.replace("swipe","");"down"===a&&-1!=s.position.indexOf("top")&&!u||"up"===a&&(-1!=s.position.indexOf("bottom")||u)||("left"!==a&&"right"!==a||!u)&&(o.addClass("md-"+i),r.nextTick(n.cancel))},s.openClass=c(s.position),o.addClass(s.toastClass),s.parent.addClass(s.openClass),r.hasComputedStyle(s.parent,"position","static")&&s.parent.css("position","relative"),o.on(l,s.onSwipe),o.addClass(u?"md-bottom":s.position.split(" ").map(function(e){return"md-"+e}).join(" ")),s.parent&&s.parent.addClass("md-toast-animating"),e.enter(o,s.parent).then(function(){s.parent&&s.parent.removeClass("md-toast-animating")})}function s(t,n,i){return n.off(l,i.onSwipe),i.parent&&i.parent.addClass("md-toast-animating"),i.openClass&&i.parent.removeClass(i.openClass),(1==i.$destroy?n.remove():e.leave(n)).then(function(){i.parent&&i.parent.removeClass("md-toast-animating"),r.hasComputedStyle(i.parent,"position","static")&&i.parent.css("position","")})}function c(e){return i("gt-xs")?"md-toast-open-"+(e.indexOf("top")>-1?"top":"bottom"):"md-toast-open-bottom"}var l="$md.swipeleft $md.swiperight $md.swipeup $md.swipedown";return{onShow:o,onRemove:s,toastClass:"",position:"bottom left",themable:!0,hideDelay:3e3,autoWrap:!0,transformTemplate:function(e,n){if(n.autoWrap&&e&&!/md-toast-content/g.test(e)){var r=document.createElement("md-template");r.innerHTML=e;for(var i=0;i<r.children.length;i++)if("MD-TOAST"===r.children[i].nodeName){var a=t.element('<div class="md-toast-content">');a.append(t.element(r.children[i].childNodes)),r.children[i].appendChild(a[0])}return r.innerHTML}return e||""}}}i.$inject=["$animate","$mdToast","$mdUtil","$mdMedia"],r.$inject=["$mdToast","$scope"],i.$inject=["$animate","$mdToast","$mdUtil","$mdMedia"];var a,o="ok";return e("$mdToast").setDefaults({methods:["position","hideDelay","capsule","parent","position","toastClass"],options:i}).addPreset("simple",{argOption:"textContent",methods:["textContent","content","action","highlightAction","highlightClass","theme","parent"],options:["$mdToast","$mdTheming",function(e,t){return{template:'<md-toast md-theme="{{ toast.theme }}" ng-class="{\'md-capsule\': toast.capsule}"> <div class="md-toast-content"> <span class="md-toast-text" role="alert" aria-relevant="all" aria-atomic="true"> {{ toast.content }} </span> <md-button class="md-action" ng-if="toast.action" ng-click="toast.resolve()" ng-class="highlightClasses"> {{ toast.action }} </md-button> </div></md-toast>',controller:r,theme:t.defaultTheme(),controllerAs:"toast",bindToController:!0}}]}).addMethod("updateTextContent",n).addMethod("updateContent",n)}n.$inject=["$$interimElementProvider"],e.$inject=["$mdToast"],e.$inject=["$mdToast"],n.$inject=["$$interimElementProvider"],t.module("material.components.toast",["material.core","material.components.button"]).directive("mdToast",e).provider("$mdToast",n)}(),function(){function e(e,n,r,i,a){var o=t.bind(null,r.supplant,"translate3d(0,{0}px,0)");return{template:"",restrict:"E",link:function(s,c,l){c.addClass("_md"),i(c),r.nextTick(function(){c.addClass("_md-toolbar-transitions")},!1),t.isDefined(l.mdScrollShrink)&&function(){function i(e){var t=c.parent().find("md-content");!m&&t.length&&u(null,t),e=s.$eval(e),!1===e?g():g=p()}function u(e,t){t&&c.parent()[0]===t.parent()[0]&&(m&&m.off("scroll",x),m=t,g=p())}function d(e){var t=e?e.target.scrollTop:b;M(),v=Math.min(h/y,Math.max(0,v+t-b)),c.css(n.CSS.TRANSFORM,o([-v*y])),m.css(n.CSS.TRANSFORM,o([(h-v)*y])),b=t,r.nextTick(function(){var e=c.hasClass("md-whiteframe-z1");e&&!v?a.removeClass(c,"md-whiteframe-z1"):!e&&v&&a.addClass(c,"md-whiteframe-z1")})}function p(){return m?(m.on("scroll",x),m.attr("scroll-shrink","true"),r.nextTick(f,!1),function(){m.off("scroll",x),m.attr("scroll-shrink","false"),f()}):t.noop}function f(){h=c.prop("offsetHeight");var e=-h*y+"px";m.css({"margin-top":e,"margin-bottom":e}),d()}var h,m,g=t.noop,v=0,b=0,y=l.mdShrinkSpeedFactor||.5,x=e.throttle(d),M=r.debounce(f,5e3);s.$on("$mdContentLoaded",u),l.$observe("mdScrollShrink",i),l.ngShow&&s.$watch(l.ngShow,f),l.ngHide&&s.$watch(l.ngHide,f),s.$on("$destroy",g)}()}}}e.$inject=["$$rAF","$mdConstant","$mdUtil","$mdTheming","$animate"],e.$inject=["$$rAF","$mdConstant","$mdUtil","$mdTheming","$animate"],
27t.module("material.components.toolbar",["material.core","material.components.content"]).directive("mdToolbar",e)}(),function(){function n(e,n,r,i,a,o,s,c){function l(l,g,v){function b(){l.mdZIndex=l.mdZIndex||p,l.mdDelay=l.mdDelay||f,m[l.mdDirection]||(l.mdDirection=h)}function y(e){var t=e||a(g.text().trim())(l.$parent);(!z.attr("aria-label")&&!z.attr("aria-labelledby")||z.attr("md-labeled-by-tooltip"))&&(z.attr("aria-label",t),z.attr("md-labeled-by-tooltip")||z.attr("md-labeled-by-tooltip",O))}function x(){b(),T&&T.panelEl&&T.panelEl.removeClass(S),S="md-origin-"+l.mdDirection,k=m[l.mdDirection],$=s.newPanelPosition().relativeTo(z).addPanelPosition(k.x,k.y),T&&T.panelEl&&(T.panelEl.addClass(S),T.updatePosition($))}function M(t){M.queued&&M.value===!!t||!M.queued&&l.mdVisible===!!t||(M.value=!!t,M.queued||(t?(M.queued=!0,E=e(function(){l.mdVisible=M.value,M.queued=!1,E=null,l.visibleWatcher||_(l.mdVisible)},l.mdDelay)):o.nextTick(function(){l.mdVisible=!1,l.visibleWatcher||_(!1)})))}function _(e){e?w():A()}function w(){if(!g[0].textContent.trim())throw new Error("Text for the tooltip has not been provided. Please include text within the mdTooltip element.");if(!T){var e=t.element(document.body),n=s.newPanelAnimation().openFrom(z).closeTo(z).withAnimation({open:"md-show",close:"md-hide"}),r={id:O,attachTo:e,contentElement:g,propagateContainerEvents:!0,panelClass:"md-tooltip",animation:n,position:$,zIndex:l.mdZIndex,focusOnOpen:!1,onDomAdded:function(){T.panelEl.addClass(S)}};T=s.create(r)}T.open().then(function(){T.panelEl.attr("role","tooltip")})}function A(){T&&T.close()}var S,k,$,T,C,E,O="md-tooltip-"+o.nextUid(),z=o.getParentWithPointerEvents(g),L=r.throttle(x),N=!1,P=null;b(),y(),g.detach(),x(),function(){function t(e){return e.some(function(e){return"disabled"===e.attributeName&&z[0].disabled}),!1}function r(){M(!1)}function a(){P=document.activeElement===z[0]}function s(e){"focus"===e.type&&P?P=!1:l.mdVisible||(z.on(d,p),M(!0),"touchstart"===e.type&&z.one("touchend",function(){o.nextTick(function(){i.one("touchend",p)},!1)}))}function p(){C=l.hasOwnProperty("mdAutohide")?l.mdAutohide:v.hasOwnProperty("mdAutohide"),(C||N||i[0].activeElement!==z[0])&&(E&&(e.cancel(E),M.queued=!1,E=null),z.off(d,p),z.triggerHandler("blur"),M(!1)),N=!1}function f(){N=!0}function h(){c.deregister("scroll",r,!0),c.deregister("blur",a),c.deregister("resize",L),z.off(u,s).off(d,p).off("mousedown",f),p(),m&&m.disconnect()}if(z[0]&&"MutationObserver"in n){var m=new MutationObserver(function(e){t(e)&&o.nextTick(function(){M(!1)})});m.observe(z[0],{attributes:!0})}P=!1,c.register("scroll",r,!0),c.register("blur",a),c.register("resize",L),l.$on("$destroy",h),z.on("mousedown",f),z.on(u,s)}(),function(){function e(){l.$destroy()}if(g[0]&&"MutationObserver"in n){var t=new MutationObserver(function(e){e.forEach(function(e){"md-visible"!==e.attributeName||l.visibleWatcher||(l.visibleWatcher=l.$watch("mdVisible",_))})});t.observe(g[0],{attributes:!0}),v.hasOwnProperty("mdVisible")&&(l.visibleWatcher=l.$watch("mdVisible",_))}else l.visibleWatcher=l.$watch("mdVisible",_);l.$watch("mdDirection",x),g.one("$destroy",e),z.one("$destroy",e),l.$on("$destroy",function(){M(!1),T&&T.destroy(),t&&t.disconnect(),g.remove()}),g.text().indexOf(a.startSymbol())>-1&&l.$watch(function(){return g.text().trim()},y)}()}var u="focus touchstart mouseenter",d="blur touchcancel mouseleave",p=100,f=0,h="bottom",m={top:{x:s.xPosition.CENTER,y:s.yPosition.ABOVE},right:{x:s.xPosition.OFFSET_END,y:s.yPosition.CENTER},bottom:{x:s.xPosition.CENTER,y:s.yPosition.BELOW},left:{x:s.xPosition.OFFSET_START,y:s.yPosition.CENTER}};return{restrict:"E",priority:210,scope:{mdZIndex:"=?mdZIndex",mdDelay:"=?mdDelay",mdVisible:"=?mdVisible",mdAutohide:"=?mdAutohide",mdDirection:"@?mdDirection"},link:l}}function r(){function n(e){a[e.type]&&a[e.type].forEach(function(t){t.call(this,e)},this)}function r(t,r,i){var s=a[t]=a[t]||[];s.length||(i?e.addEventListener(t,n,!0):o.on(t,n)),-1===s.indexOf(r)&&s.push(r)}function i(t,r,i){var s=a[t],c=s?s.indexOf(r):-1;c>-1&&(s.splice(c,1),0===s.length&&(i?e.removeEventListener(t,n,!0):o.off(t,n)))}var a={},o=t.element(e);return{register:r,deregister:i}}n.$inject=["$timeout","$window","$$rAF","$document","$interpolate","$mdUtil","$mdPanel","$$mdTooltipRegistry"],n.$inject=["$timeout","$window","$$rAF","$document","$interpolate","$mdUtil","$mdPanel","$$mdTooltipRegistry"],t.module("material.components.tooltip",["material.core","material.components.panel"]).directive("mdTooltip",n).service("$$mdTooltipRegistry",r)}(),function(){function e(){return{restrict:"AE",controller:n}}function n(e){e.addClass("md-truncate")}n.$inject=["$element"],n.$inject=["$element"],t.module("material.components.truncate",["material.core"]).directive("mdTruncate",e)}(),function(){function e(){return{controller:r,template:n,compile:function(e,t){e.addClass("md-virtual-repeat-container").addClass(t.hasOwnProperty("mdOrientHorizontal")?"md-orient-horizontal":"md-orient-vertical")}}}function n(e){return'<div class="md-virtual-repeat-scroller" role="presentation"><div class="md-virtual-repeat-sizer" role="presentation"></div><div class="md-virtual-repeat-offsetter" role="presentation">'+e[0].innerHTML+"</div></div>"}function r(e,n,r,i,a,o,s,c,l){this.$rootScope=a,this.$scope=s,this.$element=c,this.$attrs=l,this.size=0,this.scrollSize=0,this.scrollOffset=0,this.horizontal=this.$attrs.hasOwnProperty("mdOrientHorizontal"),this.repeater=null,this.autoShrink=this.$attrs.hasOwnProperty("mdAutoShrink"),this.autoShrinkMin=parseInt(this.$attrs.mdAutoShrinkMin,10)||0,this.originalSize=null,this.offsetSize=parseInt(this.$attrs.mdOffsetSize,10)||0,this.oldElementSize=null,this.maxElementPixels=r.ELEMENT_MAX_PIXELS,this.$attrs.mdTopIndex?(this.bindTopIndex=i(this.$attrs.mdTopIndex),this.topIndex=this.bindTopIndex(this.$scope),t.isDefined(this.topIndex)||(this.topIndex=0,this.bindTopIndex.assign(this.$scope,0)),this.$scope.$watch(this.bindTopIndex,t.bind(this,function(e){e!==this.topIndex&&this.scrollToIndex(e)}))):this.topIndex=0,this.scroller=c[0].querySelector(".md-virtual-repeat-scroller"),this.sizer=this.scroller.querySelector(".md-virtual-repeat-sizer"),this.offsetter=this.scroller.querySelector(".md-virtual-repeat-offsetter");var u=t.bind(this,this.updateSize);e(t.bind(this,function(){u();var e=n.debounce(u,10,null,!1),r=t.element(o);this.size||e(),r.on("resize",e),s.$on("$destroy",function(){r.off("resize",e)}),s.$emit("$md-resize-enable"),s.$on("$md-resize",u)}))}function i(e){return{controller:a,priority:1e3,require:["mdVirtualRepeat","^^mdVirtualRepeatContainer"],restrict:"A",terminal:!0,transclude:"element",compile:function(t,n){var r=n.mdVirtualRepeat,i=r.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)\s*$/),a=i[1],o=e(i[2]),s=n.mdExtraName&&e(n.mdExtraName);return function(e,t,n,r,i){r[0].link_(r[1],i,a,o,s)}}}}function a(e,n,r,i,a,o,s,c){this.$scope=e,this.$element=n,this.$attrs=r,this.$browser=i,this.$document=a,this.$mdUtil=c,this.$rootScope=o,this.$$rAF=s,this.onDemand=c.parseAttributeBoolean(r.mdOnDemand),this.browserCheckUrlChange=i.$$checkUrlChange,this.newStartIndex=0,this.newEndIndex=0,this.newVisibleEnd=0,this.startIndex=0,this.endIndex=0,this.itemSize=e.$eval(r.mdItemSize)||null,this.isFirstRender=!0,this.isVirtualRepeatUpdating_=!1,this.itemsLength=0,this.unwatchItemSize_=t.noop,this.blocks={},this.pooledBlocks=[],e.$on("$destroy",t.bind(this,this.cleanupBlocks_))}function o(e){if(!t.isFunction(e.getItemAtIndex)||!t.isFunction(e.getLength))throw Error("When md-on-demand is enabled, the Object passed to md-virtual-repeat must implement functions getItemAtIndex() and getLength() ");this.model=e}function s(e){return{restrict:"A",link:function(e,t,n){var r=e.$eval(n.mdForceHeight)||null;r&&t&&(t[0].style.height=r)}}}a.$inject=["$scope","$element","$attrs","$browser","$document","$rootScope","$$rAF","$mdUtil"],r.$inject=["$$rAF","$mdUtil","$mdConstant","$parse","$rootScope","$window","$scope","$element","$attrs"],s.$inject=["$mdUtil"],i.$inject=["$parse"],r.$inject=["$$rAF","$mdUtil","$mdConstant","$parse","$rootScope","$window","$scope","$element","$attrs"],a.$inject=["$scope","$element","$attrs","$browser","$document","$rootScope","$$rAF","$mdUtil"],i.$inject=["$parse"],t.module("material.components.virtualRepeat",["material.core","material.components.showHide"]).directive("mdVirtualRepeatContainer",e).directive("mdVirtualRepeat",i).directive("mdForceHeight",s);r.prototype.register=function(e){this.repeater=e,t.element(this.scroller).on("scroll wheel touchmove touchend",t.bind(this,this.handleScroll_))},r.prototype.isHorizontal=function(){return this.horizontal},r.prototype.getSize=function(){return this.size},r.prototype.setSize_=function(e){var t=this.getDimensionName_();this.size=e,this.$element[0].style[t]=e+"px"},r.prototype.unsetSize_=function(){this.$element[0].style[this.getDimensionName_()]=this.oldElementSize,this.oldElementSize=null},r.prototype.updateSize=function(){this.originalSize||(this.size=this.isHorizontal()?this.$element[0].clientWidth:this.$element[0].clientHeight,this.handleScroll_(),this.repeater&&this.repeater.containerUpdated())},r.prototype.getScrollSize=function(){return this.scrollSize},r.prototype.getDimensionName_=function(){return this.isHorizontal()?"width":"height"},r.prototype.sizeScroller_=function(e){var t=this.getDimensionName_(),n=this.isHorizontal()?"height":"width";if(this.sizer.innerHTML="",e<this.maxElementPixels)this.sizer.style[t]=e+"px";else{this.sizer.style[t]="auto",this.sizer.style[n]="auto";var r=Math.floor(e/this.maxElementPixels),i=document.createElement("div");i.style[t]=this.maxElementPixels+"px",i.style[n]="1px";for(var a=0;a<r;a++)this.sizer.appendChild(i.cloneNode(!1));i.style[t]=e-r*this.maxElementPixels+"px",this.sizer.appendChild(i)}},r.prototype.autoShrink_=function(e){var t=Math.max(e,this.autoShrinkMin*this.repeater.getItemSize());if(this.autoShrink&&t!==this.size){null===this.oldElementSize&&(this.oldElementSize=this.$element[0].style[this.getDimensionName_()]);var n=this.originalSize||this.size;if(!n||t<n)this.originalSize||(this.originalSize=this.size),this.setSize_(t);else if(null!==this.originalSize){this.unsetSize_();var r=this.originalSize;this.originalSize=null,r||this.updateSize(),this.setSize_(r||this.size)}this.repeater.containerUpdated()}},r.prototype.setScrollSize=function(e){var t=e+this.offsetSize;this.scrollSize!==t&&(this.sizeScroller_(t),this.autoShrink_(t),this.scrollSize=t)},r.prototype.getScrollOffset=function(){return this.scrollOffset},r.prototype.scrollTo=function(e){this.scroller[this.isHorizontal()?"scrollLeft":"scrollTop"]=e,this.handleScroll_()},r.prototype.scrollToIndex=function(e){var t=this.repeater.getItemSize(),n=this.repeater.itemsLength;e>n&&(e=n-1),this.scrollTo(t*e)},r.prototype.resetScroll=function(){this.scrollTo(0)},r.prototype.handleScroll_=function(){var e="rtl"!=document.dir&&"rtl"!=document.body.dir;e||this.maxSize||(this.scroller.scrollLeft=this.scrollSize,this.maxSize=this.scroller.scrollLeft);var t=this.isHorizontal()?e?this.scroller.scrollLeft:this.maxSize-this.scroller.scrollLeft:this.scroller.scrollTop;if(!(t===this.scrollOffset||t>this.scrollSize-this.size)){var n=this.repeater.getItemSize();if(n){var r=Math.max(0,Math.floor(t/n)-3),i=(this.isHorizontal()?"translateX(":"translateY(")+(!this.isHorizontal()||e?r*n:-r*n)+"px)";if(this.scrollOffset=t,this.offsetter.style.webkitTransform=i,this.offsetter.style.transform=i,this.bindTopIndex){var a=Math.floor(t/n);a!==this.topIndex&&a<this.repeater.getItemCount()&&(this.topIndex=a,this.bindTopIndex.assign(this.$scope,a),this.$rootScope.$$phase||this.$scope.$digest())}this.repeater.containerUpdated()}}},a.Block,a.prototype.link_=function(e,n,r,i,a){this.container=e,this.transclude=n,this.repeatName=r,this.rawRepeatListExpression=i,this.extraName=a,this.sized=!1,this.repeatListExpression=t.bind(this,this.repeatListExpression_),this.container.register(this)},a.prototype.cleanupBlocks_=function(){t.forEach(this.pooledBlocks,function(e){e.element.remove()})},a.prototype.readItemSize_=function(){if(!this.itemSize){this.items=this.repeatListExpression(this.$scope),this.parentNode=this.$element[0].parentNode;var e=this.getBlock_(0);e.element[0].parentNode||this.parentNode.appendChild(e.element[0]),this.itemSize=e.element[0][this.container.isHorizontal()?"offsetWidth":"offsetHeight"]||null,this.blocks[0]=e,this.poolBlock_(0),this.itemSize&&this.containerUpdated()}},a.prototype.repeatListExpression_=function(e){var t=this.rawRepeatListExpression(e);if(this.onDemand&&t){var n=new o(t);return n.$$includeIndexes(this.newStartIndex,this.newVisibleEnd),n}return t},a.prototype.containerUpdated=function(){if(!this.itemSize)return this.unwatchItemSize_&&this.unwatchItemSize_!==t.noop&&this.unwatchItemSize_(),this.unwatchItemSize_=this.$scope.$watchCollection(this.repeatListExpression,t.bind(this,function(e){e&&e.length&&this.readItemSize_()})),void(this.$rootScope.$$phase||this.$scope.$digest());this.sized||(this.items=this.repeatListExpression(this.$scope)),this.sized||(this.unwatchItemSize_(),this.sized=!0,this.$scope.$watchCollection(this.repeatListExpression,t.bind(this,function(e,t){this.isVirtualRepeatUpdating_||this.virtualRepeatUpdate_(e,t)}))),this.updateIndexes_(),(this.newStartIndex!==this.startIndex||this.newEndIndex!==this.endIndex||this.container.getScrollOffset()>this.container.getScrollSize())&&(this.items instanceof o&&this.items.$$includeIndexes(this.newStartIndex,this.newEndIndex),this.virtualRepeatUpdate_(this.items,this.items))},a.prototype.getItemSize=function(){return this.itemSize},a.prototype.getItemCount=function(){return this.itemsLength},a.prototype.virtualRepeatUpdate_=function(e,n){this.isVirtualRepeatUpdating_=!0;var r=e&&e.length||0,i=!1;if(this.items&&r<this.items.length&&0!==this.container.getScrollOffset()){this.items=e;var a=this.container.getScrollOffset();this.container.resetScroll(),this.container.scrollTo(a)}r!==this.itemsLength&&(i=!0,this.itemsLength=r),this.items=e,(e!==n||i)&&this.updateIndexes_(),this.parentNode=this.$element[0].parentNode,i&&this.container.setScrollSize(r*this.itemSize),Object.keys(this.blocks).forEach(function(e){var t=parseInt(e,10);(t<this.newStartIndex||t>=this.newEndIndex)&&this.poolBlock_(t)},this),this.$browser.$$checkUrlChange=t.noop;var o,s,c=[],l=[];for(o=this.newStartIndex;o<this.newEndIndex&&null==this.blocks[o];o++)s=this.getBlock_(o),this.updateBlock_(s,o),c.push(s);for(;null!=this.blocks[o];o++)this.updateBlock_(this.blocks[o],o);for(var u=o-1;o<this.newEndIndex;o++)s=this.getBlock_(o),this.updateBlock_(s,o),l.push(s);if(c.length&&this.parentNode.insertBefore(this.domFragmentFromBlocks_(c),this.$element[0].nextSibling),l.length&&this.parentNode.insertBefore(this.domFragmentFromBlocks_(l),this.blocks[u]&&this.blocks[u].element[0].nextSibling),this.$browser.$$checkUrlChange=this.browserCheckUrlChange,this.startIndex=this.newStartIndex,this.endIndex=this.newEndIndex,this.isFirstRender){this.isFirstRender=!1;var d=this.$attrs.mdStartIndex?this.$scope.$eval(this.$attrs.mdStartIndex):this.container.topIndex;this.$mdUtil.nextTick(function(){this.container.scrollToIndex(d)}.bind(this))}this.isVirtualRepeatUpdating_=!1},a.prototype.getBlock_=function(e){if(this.pooledBlocks.length)return this.pooledBlocks.pop();var n;return this.transclude(t.bind(this,function(t,r){n={element:t,new:!0,scope:r},this.updateScope_(r,e),this.parentNode.appendChild(t[0])})),n},a.prototype.updateBlock_=function(e,t){this.blocks[t]=e,(e.new||e.scope.$index!==t||e.scope[this.repeatName]!==this.items[t])&&(e.new=!1,this.updateScope_(e.scope,t),this.$rootScope.$$phase||e.scope.$digest())},a.prototype.updateScope_=function(e,t){e.$index=t,e[this.repeatName]=this.items&&this.items[t],this.extraName&&(e[this.extraName(this.$scope)]=this.items[t])},a.prototype.poolBlock_=function(e){this.pooledBlocks.push(this.blocks[e]),this.parentNode.removeChild(this.blocks[e].element[0]),delete this.blocks[e]},a.prototype.domFragmentFromBlocks_=function(e){var t=this.$document[0].createDocumentFragment();return e.forEach(function(e){t.appendChild(e.element[0])}),t},a.prototype.updateIndexes_=function(){var e=this.items?this.items.length:0,t=Math.ceil(this.container.getSize()/this.itemSize);this.newStartIndex=Math.max(0,Math.min(e-t,Math.floor(this.container.getScrollOffset()/this.itemSize))),this.newVisibleEnd=this.newStartIndex+t+3,this.newEndIndex=Math.min(e,this.newVisibleEnd),this.newStartIndex=Math.max(0,this.newStartIndex-3)},o.prototype.$$includeIndexes=function(e,t){for(var n=e;n<t;n++)this.hasOwnProperty(n)||(this[n]=this.model.getItemAtIndex(n));this.length=this.model.getLength()},s.$inject=["$mdUtil"]}(),function(){function e(e){function t(t,o,s){var c="";s.$observe("mdWhiteframe",function(t){(t=parseInt(t,10)||a)!=n&&(t>i||t<r)&&(e.warn("md-whiteframe attribute value is invalid. It should be a number between "+r+" and "+i,o[0]),t=a);var l=t==n?"":"md-whiteframe-"+t+"dp";s.$updateClass(l,c),c=l})}var n=-1,r=1,i=24,a=4;return{link:t}}e.$inject=["$log"],e.$inject=["$log"],t.module("material.components.whiteframe",["material.core"]).directive("mdWhiteframe",e)}(),function(){function e(e,s,c,l,u,d,p,f,h,m,g,v){function b(){e.requireMatch&&Ee&&Ee.$setValidity("md-require-match",!!e.selectedItem||!e.searchText)}function y(){function t(){var e=we.scrollContainer.getBoundingClientRect(),t={};e.right>p.right-a&&(t.left=u.right-e.width+"px"),we.$.scrollContainer.css(t)}if(!we)return c.nextTick(y,!1,e);var n,l=(e.dropdownItems||i)*r,u=we.wrap.getBoundingClientRect(),d=we.snap.getBoundingClientRect(),p=we.root.getBoundingClientRect(),f=d.bottom-p.top,m=p.bottom-d.top,g=u.left-p.left,v=u.width,b=function(){var e=0,t=s.find("md-input-container");if(t.length){var n=t.find("input");e=t.prop("offsetHeight"),e-=n.prop("offsetTop"),e-=n.prop("offsetHeight"),e+=t.prop("offsetTop")}return e}(),x=e.dropdownPosition;if(x||(x=f>m&&p.height-f-a<l?"top":"bottom"),h.mdFloatingLabel&&(g+=o,v-=2*o),n={left:g+"px",minWidth:v+"px",maxWidth:Math.max(u.right-p.left,p.right-u.left)-a+"px"},"top"===x)n.top="auto",n.bottom=m+"px",n.maxHeight=Math.min(l,u.top-p.top-a)+"px";else{var M=p.bottom-u.bottom-a+c.getViewportTop();n.top=f-b+"px",n.bottom="auto",n.maxHeight=Math.min(l,M)+"px"}we.$.scrollContainer.css(n),c.nextTick(t,!1)}function x(){we.$.root.length&&(u(we.$.scrollContainer),we.$.scrollContainer.detach(),we.$.root.append(we.$.scrollContainer),p.pin&&p.pin(we.$.scrollContainer,f))}function M(){we.input.focus()}function _(){var n=parseInt(e.delay,10)||0;h.$observe("disabled",function(e){xe.isDisabled=c.parseAttributeBoolean(e,!1)}),h.$observe("required",function(e){xe.isRequired=c.parseAttributeBoolean(e,!1)}),h.$observe("readonly",function(e){xe.isReadonly=c.parseAttributeBoolean(e,!1)}),e.$watch("searchText",n?c.debounce(j,n):j),e.$watch("selectedItem",L),t.element(d).on("resize",Oe),e.$on("$destroy",w)}function w(){if(xe.hidden||c.enableScrolling(),t.element(d).off("resize",Oe),we){var e=["ul","scroller","scrollContainer","input"];t.forEach(e,function(e){we.$[e].remove()})}}function A(){xe.hidden||y()}function S(){var e=k();we={main:s[0],scrollContainer:s[0].querySelector(".md-virtual-repeat-container"),scroller:s[0].querySelector(".md-virtual-repeat-scroller"),ul:s.find("ul")[0],input:s.find("input")[0],wrap:e.wrap,snap:e.snap,root:document.body},we.li=we.ul.getElementsByTagName("li"),we.$=$(we),Ee=we.$.input.controller("ngModel")}function k(){var e,n;for(e=s;e.length&&(n=e.attr("md-autocomplete-snap"),!t.isDefined(n));e=e.parent());if(e.length)return{snap:e[0],wrap:"width"===n.toLowerCase()?e[0]:s.find("md-autocomplete-wrap")[0]};var r=s.find("md-autocomplete-wrap")[0];return{snap:r,wrap:r}}function $(e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=t.element(e[r]));return n}function T(e,n){!e&&n?(y(),ue(!0,ze.Count|ze.Selected),we&&(c.disableScrollAround(we.ul),Ce=C(t.element(we.wrap)))):e&&!n&&(c.enableScrolling(),Ce&&(Ce(),Ce=null))}function C(e){function t(e){e.preventDefault()}return e.on("wheel",t),e.on("touchmove",t),function(){e.off("wheel",t),e.off("touchmove",t)}}function E(){Se=!0}function O(){$e||xe.hidden||we.input.focus(),Se=!1,xe.hidden=Y()}function z(){we.input.focus()}function L(n,r){b(),n?X(n).then(function(t){e.searchText=t,I(n,r)}):r&&e.searchText&&X(r).then(function(n){t.isString(e.searchText)&&n.toString().toLowerCase()===e.searchText.toLowerCase()&&(e.searchText="")}),n!==r&&N()}function N(){t.isFunction(e.itemChange)&&e.itemChange(U(e.selectedItem))}function P(){t.isFunction(e.textChange)&&e.textChange()}function I(e,t){ke.forEach(function(n){n(e,t)})}function D(e){-1==ke.indexOf(e)&&ke.push(e)}function R(e){var t=ke.indexOf(e);-1!=t&&ke.splice(t,1)}function j(t,n){xe.index=V(),t!==n&&(b(),X(e.selectedItem).then(function(r){t!==r&&(e.selectedItem=null,t!==n&&P(),ie()?ge():(xe.matches=[],G(!1),ue(!1,ze.Count)))}))}function q(e){$e=!1,Se||(xe.hidden=Y(),ye("ngBlur",{$event:e}))}function B(e){e&&(Se=!1,$e=!1),we.input.blur()}function W(e){$e=!0,Q()&&ie()&&ge(),xe.hidden=Y(),ye("ngFocus",{$event:e})}function H(t){switch(t.keyCode){case l.KEY_CODE.DOWN_ARROW:if(xe.loading)return;t.stopPropagation(),t.preventDefault(),xe.index=Math.min(xe.index+1,xe.matches.length-1),pe(),ue(!1,ze.Selected);break;case l.KEY_CODE.UP_ARROW:if(xe.loading)return;t.stopPropagation(),t.preventDefault(),xe.index=xe.index<0?xe.matches.length-1:Math.max(0,xe.index-1),pe(),ue(!1,ze.Selected);break;case l.KEY_CODE.TAB:if(O(),xe.hidden||xe.loading||xe.index<0||xe.matches.length<1)return;ae(xe.index);break;case l.KEY_CODE.ENTER:if(xe.hidden||xe.loading||xe.index<0||xe.matches.length<1)return;if(te())return;t.stopPropagation(),t.preventDefault(),ae(xe.index);break;case l.KEY_CODE.ESCAPE:if(t.preventDefault(),!K())return;t.stopPropagation(),se(),e.searchText&&Z("clear")&&ce(),xe.hidden=!0,Z("blur")&&B(!0)}}function F(){return t.isNumber(e.minLength)?e.minLength:1}function X(n){return m.when(function(t){return t&&e.itemText?e.itemText(U(t)):null}(n)||n).then(function(e){return e&&!t.isString(e)&&g.warn("md-autocomplete: Could not resolve display value to a string. Please check the `md-item-text` attribute."),e})}function U(e){if(!e)return n;var t={};return xe.itemName&&(t[xe.itemName]=e),t}function V(){return e.autoselect?0:-1}function G(e){xe.loading!=e&&(xe.loading=e),xe.hidden=Y()}function Y(){return!Q()||!J()}function Q(){return!(xe.loading&&!ee())&&(!te()&&!!$e)}function K(){return Z("blur")||!xe.hidden||xe.loading||Z("clear")&&e.searchText}function Z(t){return!e.escapeOptions||-1!==e.escapeOptions.toLowerCase().indexOf(t)}function J(){return ie()&&ee()||me()}function ee(){return!!xe.matches.length}function te(){return!!xe.scope.selectedItem}function ne(){return xe.loading&&!te()}function re(){return X(xe.matches[xe.index])}function ie(){return(e.searchText||"").length>=F()}function ae(t){c.nextTick(function(){X(xe.matches[t]).then(function(e){var t=we.$.input.controller("ngModel");t.$setViewValue(e),t.$render()}).finally(function(){e.selectedItem=xe.matches[t],G(!1)})},!1)}function oe(){se(),ce()}function se(){xe.index=0,xe.matches=[]}function ce(){G(!0),e.searchText="";var t=document.createEvent("CustomEvent");t.initCustomEvent("change",!0,!0,{value:""}),we.input.dispatchEvent(t),we.input.blur(),e.searchText="",we.input.focus()}function le(n){function r(t){Ae[a]=t,(n||"")===(e.searchText||"")&&ve(t)}var i=e.$parent.$eval(_e),a=n.toLowerCase(),o=t.isArray(i),s=!!i.then;o?r(i):s&&function(t){t&&(t=m.when(t),Te++,G(!0),c.nextTick(function(){t.then(r).finally(function(){0==--Te&&G(!1)})},!0,e))}(i)}function ue(e,t){var n=e?"polite":"assertive",r=[];t&ze.Selected&&-1!==xe.index&&r.push(re()),t&ze.Count&&r.push(m.resolve(de())),m.all(r).then(function(e){v.announce(e.join(" "),n)})}function de(){switch(xe.matches.length){case 0:return"There are no matches available.";case 1:return"There is 1 match available.";default:return"There are "+xe.matches.length+" matches available."}}function pe(){if(we.li[0]){var e=we.li[0].offsetHeight,t=e*xe.index,n=t+e,r=we.scroller.clientHeight,i=we.scroller.scrollTop;t<i?he(t):n>i+r&&he(n-r)}}function fe(){return 0!==Te}function he(e){we.$.scrollContainer.controller("mdVirtualRepeatContainer").scrollTo(e)}function me(){var e=(xe.scope.searchText||"").length;return xe.hasNotFound&&!ee()&&(!xe.loading||fe())&&e>=F()&&($e||Se)&&!te()}function ge(){var t=e.searchText||"",n=t.toLowerCase();!e.noCache&&Ae[n]?ve(Ae[n]):le(t),xe.hidden=Y()}function ve(t){xe.matches=t,xe.hidden=Y(),xe.loading&&G(!1),e.selectOnMatch&&be(),y(),ue(!0,ze.Count)}function be(){var t=e.searchText,n=xe.matches,r=n[0];1===n.length&&X(r).then(function(n){var r=t==n;e.matchInsensitive&&!r&&(r=t.toLowerCase()==n.toLowerCase()),r&&ae(0)})}function ye(t,n){h[t]&&e.$parent.$eval(h[t],n||{})}var xe=this,Me=e.itemsExpr.split(/ in /i),_e=Me[1],we=null,Ae={},Se=!1,ke=[],$e=!1,Te=0,Ce=null,Ee=null,Oe=c.debounce(A);!function(e,t,n){Object.defineProperty(xe,e,{get:function(){return n},set:function(e){var r=n;n=e,t(e,r)}})}("hidden",T,!0),xe.scope=e,xe.parent=e.$parent,xe.itemName=Me[0],xe.matches=[],xe.loading=!1,xe.hidden=!0,xe.index=null,xe.id=c.nextUid(),xe.isDisabled=null,xe.isRequired=null,xe.isReadonly=null,xe.hasNotFound=!1,xe.keydown=H,xe.blur=q,xe.focus=W,xe.clear=oe,xe.select=ae,xe.listEnter=E,xe.listLeave=O,xe.mouseUp=z,xe.getCurrentDisplayValue=re,xe.registerSelectedItemWatcher=D,xe.unregisterSelectedItemWatcher=R,xe.notFoundVisible=me,xe.loadingIsVisible=ne,xe.positionDropdown=y;var ze={Count:1,Selected:2};return function(){c.initOptionalProperties(e,h,{searchText:"",selectedItem:null,clearButton:!1}),u(s),_(),c.nextTick(function(){S(),x(),e.autofocus&&s.on("focus",M)})}()}e.$inject=["$scope","$element","$mdUtil","$mdConstant","$mdTheming","$window","$animate","$rootElement","$attrs","$q","$log","$mdLiveAnnouncer"],e.$inject=["$scope","$element","$mdUtil","$mdConstant","$mdTheming","$window","$animate","$rootElement","$attrs","$q","$log","$mdLiveAnnouncer"],t.module("material.components.autocomplete").controller("MdAutocompleteCtrl",e);var r=48,i=5,a=8,o=2}(),function(){function e(e){return{controller:"MdAutocompleteCtrl",controllerAs:"$mdAutocompleteCtrl",scope:{inputName:"@mdInputName",inputMinlength:"@mdInputMinlength",inputMaxlength:"@mdInputMaxlength",searchText:"=?mdSearchText",selectedItem:"=?mdSelectedItem",itemsExpr:"@mdItems",itemText:"&mdItemText",placeholder:"@placeholder",noCache:"=?mdNoCache",requireMatch:"=?mdRequireMatch",selectOnMatch:"=?mdSelectOnMatch",matchInsensitive:"=?mdMatchCaseInsensitive",itemChange:"&?mdSelectedItemChange",textChange:"&?mdSearchTextChange",minLength:"=?mdMinLength",delay:"=?mdDelay",autofocus:"=?mdAutofocus",floatingLabel:"@?mdFloatingLabel",autoselect:"=?mdAutoselect",menuClass:"@?mdMenuClass",inputId:"@?mdInputId",escapeOptions:"@?mdEscapeOptions",dropdownItems:"=?mdDropdownItems",dropdownPosition:"@?mdDropdownPosition",clearButton:"=?mdClearButton"},compile:function(e,n){var r=["md-select-on-focus","md-no-asterisk","ng-trim","ng-pattern"],i=e.find("input");return r.forEach(function(e){var t=n[n.$normalize(e)];null!==t&&i.attr(e,t)}),function(e,n,r,i){i.hasNotFound=!!n.attr("md-has-not-found"),t.isDefined(r.mdClearButton)||e.floatingLabel||(e.clearButton=!0)}},template:function(t,n){var r=function(){var e=t.find("md-not-found").detach(),n=e.length?e.html():"";return n?'<li ng-if="$mdAutocompleteCtrl.notFoundVisible()" md-autocomplete-parent-scope>'+n+"</li>":""}(),i=function(){var e=t.find("md-item-template").detach(),n=e.length?e.html():t.html();return e.length||t.empty(),"<md-autocomplete-parent-scope md-autocomplete-replace>"+n+"</md-autocomplete-parent-scope>"}(),a=t.html(),o=n.tabindex;return r&&t.attr("md-has-not-found",!0),t.attr("tabindex","-1")," <md-autocomplete-wrap ng-class=\"{ 'md-whiteframe-z1': !floatingLabel, 'md-menu-showing': !$mdAutocompleteCtrl.hidden, 'md-show-clear-button': !!clearButton }\"> "+function(){return n.mdFloatingLabel?' <md-input-container ng-if="floatingLabel"> <label>{{floatingLabel}}</label> <input type="search" '+(null!=o?'tabindex="'+o+'"':"")+' id="{{ inputId || \'fl-input-\' + $mdAutocompleteCtrl.id }}" name="{{inputName}}" autocomplete="off" ng-required="$mdAutocompleteCtrl.isRequired" ng-readonly="$mdAutocompleteCtrl.isReadonly" ng-minlength="inputMinlength" ng-maxlength="inputMaxlength" ng-disabled="$mdAutocompleteCtrl.isDisabled" ng-model="$mdAutocompleteCtrl.scope.searchText" ng-model-options="{ allowInvalid: true }" ng-keydown="$mdAutocompleteCtrl.keydown($event)" ng-blur="$mdAutocompleteCtrl.blur($event)" ng-focus="$mdAutocompleteCtrl.focus($event)" aria-owns="ul-{{$mdAutocompleteCtrl.id}}" aria-label="{{floatingLabel}}" aria-autocomplete="list" role="combobox" aria-haspopup="true" aria-activedescendant="" aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"/> <div md-autocomplete-parent-scope md-autocomplete-replace>'+a+"</div> </md-input-container>":' <input type="search" '+(null!=o?'tabindex="'+o+'"':"")+' id="{{ inputId || \'input-\' + $mdAutocompleteCtrl.id }}" name="{{inputName}}" ng-if="!floatingLabel" autocomplete="off" ng-required="$mdAutocompleteCtrl.isRequired" ng-disabled="$mdAutocompleteCtrl.isDisabled" ng-readonly="$mdAutocompleteCtrl.isReadonly" ng-minlength="inputMinlength" ng-maxlength="inputMaxlength" ng-model="$mdAutocompleteCtrl.scope.searchText" ng-keydown="$mdAutocompleteCtrl.keydown($event)" ng-blur="$mdAutocompleteCtrl.blur($event)" ng-focus="$mdAutocompleteCtrl.focus($event)" placeholder="{{placeholder}}" aria-owns="ul-{{$mdAutocompleteCtrl.id}}" aria-label="{{placeholder}}" aria-autocomplete="list" role="combobox" aria-haspopup="true" aria-activedescendant="" aria-expanded="{{!$mdAutocompleteCtrl.hidden}}"/>'}()+" "+function(){return'<button type="button" aria-label="Clear Input" tabindex="-1" ng-if="clearButton && $mdAutocompleteCtrl.scope.searchText" ng-click="$mdAutocompleteCtrl.clear($event)"><md-icon md-svg-src="'+e.mdClose+'"></md-icon></button>'
28}()+' <md-progress-linear class="'+(n.mdFloatingLabel?"md-inline":"")+'" ng-if="$mdAutocompleteCtrl.loadingIsVisible()" md-mode="indeterminate"></md-progress-linear> <md-virtual-repeat-container md-auto-shrink md-auto-shrink-min="1" ng-mouseenter="$mdAutocompleteCtrl.listEnter()" ng-mouseleave="$mdAutocompleteCtrl.listLeave()" ng-mouseup="$mdAutocompleteCtrl.mouseUp()" ng-hide="$mdAutocompleteCtrl.hidden" class="md-autocomplete-suggestions-container md-whiteframe-z1" ng-class="{ \'md-not-found\': $mdAutocompleteCtrl.notFoundVisible() }" role="presentation"> <ul class="md-autocomplete-suggestions" ng-class="::menuClass" id="ul-{{$mdAutocompleteCtrl.id}}"> <li md-virtual-repeat="item in $mdAutocompleteCtrl.matches" ng-class="{ selected: $index === $mdAutocompleteCtrl.index }" ng-click="$mdAutocompleteCtrl.select($index)" md-extra-name="$mdAutocompleteCtrl.itemName"> '+i+" </li>"+r+" </ul> </md-virtual-repeat-container> </md-autocomplete-wrap>"}}}e.$inject=["$$mdSvgRegistry"],e.$inject=["$$mdSvgRegistry"],t.module("material.components.autocomplete").directive("mdAutocomplete",e)}(),function(){function e(e,t){function n(e,n,r){return function(e,n,i){function a(n,r){s[r]=e[n],e.$watch(n,function(e){t.nextTick(function(){s[r]=e})})}var o=e.$mdAutocompleteCtrl,s=o.parent.$new(),c=o.itemName;a("$index","$index"),a("item",c),function(){var t=!1,n=!1;e.$watch(function(){n||t||(t=!0,e.$$postDigest(function(){n||s.$digest(),t=n=!1}))}),s.$watch(function(){n=!0})}(),r(s,function(e){n.after(e)})}}return{restrict:"AE",compile:n,terminal:!0,transclude:"element"}}e.$inject=["$compile","$mdUtil"],e.$inject=["$compile","$mdUtil"],t.module("material.components.autocomplete").directive("mdAutocompleteParentScope",e)}(),function(){function e(e,t,n){this.$scope=e,this.$element=t,this.$attrs=n,this.regex=null}e.$inject=["$scope","$element","$attrs"],e.$inject=["$scope","$element","$attrs"],t.module("material.components.autocomplete").controller("MdHighlightCtrl",e),e.prototype.init=function(e,t){this.flags=this.$attrs.mdHighlightFlags||"",this.unregisterFn=this.$scope.$watch(function(n){return{term:e(n),contentText:t(n)}}.bind(this),this.onRender.bind(this),!0),this.$element.on("$destroy",this.unregisterFn)},e.prototype.onRender=function(e,t){var n=e.contentText;null!==this.regex&&e.term===t.term||(this.regex=this.createRegex(e.term,this.flags)),e.term?this.applyRegex(n):this.$element.text(n)},e.prototype.applyRegex=function(e){var n=this.resolveTokens(e);this.$element.empty(),n.forEach(function(e){if(e.isMatch){var n=t.element('<span class="highlight">').text(e.text);this.$element.append(n)}else this.$element.append(document.createTextNode(e))}.bind(this))},e.prototype.resolveTokens=function(e){function t(t,r){var i=e.slice(t,r);i&&n.push(i)}var n=[],r=0;return e.replace(this.regex,function(e,i){t(r,i),n.push({text:e,isMatch:!0}),r=i+e.length}),t(r),n},e.prototype.createRegex=function(e,t){var n="",r="",i=this.sanitizeRegex(e);return t.indexOf("^")>=0&&(n="^"),t.indexOf("$")>=0&&(r="$"),new RegExp(n+i+r,t.replace(/[$^]/g,""))},e.prototype.sanitizeRegex=function(e){return e&&e.toString().replace(/[\\^$*+?.()|{}[\]]/g,"\\$&")}}(),function(){function e(e,t){return{terminal:!0,controller:"MdHighlightCtrl",compile:function(n,r){var i=t(r.mdHighlightText),a=e(n.html());return function(e,t,n,r){r.init(i,a)}}}}e.$inject=["$interpolate","$parse"],e.$inject=["$interpolate","$parse"],t.module("material.components.autocomplete").directive("mdHighlightText",e)}(),function(){function r(e,t,r,i,a){this.$scope=e,this.$element=t,this.$mdConstant=r,this.$timeout=i,this.$mdUtil=a,this.isEditting=!1,this.parentController=n,this.enableChipEdit=!1}r.$inject=["$scope","$element","$mdConstant","$timeout","$mdUtil"],r.$inject=["$scope","$element","$mdConstant","$timeout","$mdUtil"],t.module("material.components.chips").controller("MdChipCtrl",r),r.prototype.init=function(e){this.parentController=e,this.enableChipEdit=this.parentController.enableChipEdit,this.enableChipEdit&&(this.$element.on("keydown",this.chipKeyDown.bind(this)),this.$element.on("mousedown",this.chipMouseDown.bind(this)),this.getChipContent().addClass("_md-chip-content-edit-is-enabled"))},r.prototype.getChipContent=function(){var e=this.$element[0].getElementsByClassName("md-chip-content");return t.element(e[0])},r.prototype.getContentElement=function(){return t.element(this.getChipContent().children()[0])},r.prototype.getChipIndex=function(){return parseInt(this.$element.attr("index"))},r.prototype.goOutOfEditMode=function(){if(this.isEditting){this.isEditting=!1,this.$element.removeClass("_md-chip-editing"),this.getChipContent()[0].contentEditable="false";var e=this.getChipIndex();this.getContentElement().text()?(this.parentController.updateChipContents(e,this.getContentElement().text()),this.$mdUtil.nextTick(function(){this.parentController.selectedChip===e&&this.parentController.focusChip(e)}.bind(this))):this.parentController.removeChipAndFocusInput(e)}},r.prototype.selectNodeContents=function(t){var n,r;document.body.createTextRange?(n=document.body.createTextRange(),n.moveToElementText(t),n.select()):e.getSelection&&(r=e.getSelection(),n=document.createRange(),n.selectNodeContents(t),r.removeAllRanges(),r.addRange(n))},r.prototype.goInEditMode=function(){this.isEditting=!0,this.$element.addClass("_md-chip-editing"),this.getChipContent()[0].contentEditable="true",this.getChipContent().on("blur",function(){this.goOutOfEditMode()}.bind(this)),this.selectNodeContents(this.getChipContent()[0])},r.prototype.chipKeyDown=function(e){this.isEditting||e.keyCode!==this.$mdConstant.KEY_CODE.ENTER&&e.keyCode!==this.$mdConstant.KEY_CODE.SPACE?this.isEditting&&e.keyCode===this.$mdConstant.KEY_CODE.ENTER&&(e.preventDefault(),this.goOutOfEditMode()):(e.preventDefault(),this.goInEditMode())},r.prototype.chipMouseDown=function(){this.getChipIndex()==this.parentController.selectedChip&&this.enableChipEdit&&!this.isEditting&&this.goInEditMode()}}(),function(){function e(e,r,i,a){function o(n,r,o,c){var l=c.shift(),u=c.shift(),d=t.element(r[0].querySelector(".md-chip-content"));e(r),l&&(u.init(l),d.append(i(s)(n)),d.on("blur",function(){l.resetSelectedChip(),l.$scope.$applyAsync()})),a(function(){l&&l.shouldFocusLastChip&&l.focusLastChipThenInput()})}var s=r.processTemplate(n);return{restrict:"E",require:["^?mdChips","mdChip"],link:o,controller:"MdChipCtrl"}}e.$inject=["$mdTheming","$mdUtil","$compile","$timeout"],e.$inject=["$mdTheming","$mdUtil","$compile","$timeout"],t.module("material.components.chips").directive("mdChip",e);var n=' <span ng-if="!$mdChipsCtrl.readonly" class="md-visually-hidden"> {{$mdChipsCtrl.deleteHint}} </span>'}(),function(){function e(e){function t(t,n,r,i){n.on("click",function(e){t.$apply(function(){i.removeChip(t.$$replacedScope.$index)})}),e(function(){n.attr({tabindex:-1,"aria-hidden":!0}),n.find("button").attr("tabindex","-1")})}return{restrict:"A",require:"^mdChips",scope:!1,link:t}}e.$inject=["$timeout"],e.$inject=["$timeout"],t.module("material.components.chips").directive("mdChipRemove",e)}(),function(){function e(e){function t(t,n,r){var i=t.$parent.$mdChipsCtrl,a=i.parent.$new(!1,i.parent);a.$$replacedScope=t,a.$chip=t.$chip,a.$index=t.$index,a.$mdChipsCtrl=i;var o=i.$scope.$eval(r.mdChipTransclude);n.html(o),e(n.contents())(a)}return{restrict:"EA",terminal:!0,link:t,scope:!1}}e.$inject=["$compile"],e.$inject=["$compile"],t.module("material.components.chips").directive("mdChipTransclude",e)}(),function(){function e(e,t,r,i,a,o,s){this.$timeout=o,this.$mdConstant=r,this.$scope=e,this.parent=e.$parent,this.$mdUtil=s,this.$log=i,this.$element=a,this.$attrs=t,this.ngModelCtrl=null,this.userInputNgModelCtrl=null,this.autocompleteCtrl=null,this.userInputElement=null,this.items=[],this.selectedChip=-1,this.enableChipEdit=s.parseAttributeBoolean(t.mdEnableChipEdit),this.addOnBlur=s.parseAttributeBoolean(t.mdAddOnBlur),this.inputAriaLabel="Chips input.",this.containerHint="Chips container. Use arrow keys to select chips.",this.deleteHint="Press delete to remove this chip.",this.deleteButtonLabel="Remove",this.chipBuffer="",this.useTransformChip=!1,this.useOnAdd=!1,this.useOnRemove=!1,this.wrapperId="",this.contentIds=[],this.ariaTabIndex=null,this.chipAppendDelay=n,this.deRegister=[],this.init()}e.$inject=["$scope","$attrs","$mdConstant","$log","$element","$timeout","$mdUtil"],e.$inject=["$scope","$attrs","$mdConstant","$log","$element","$timeout","$mdUtil"];var n=300;t.module("material.components.chips").controller("MdChipsCtrl",e),e.prototype.init=function(){var e=this;this.wrapperId="_md-chips-wrapper-"+this.$mdUtil.nextUid(),this.deRegister.push(this.$scope.$watchCollection("$mdChipsCtrl.items",function(){e.setupInputAria(),e.setupWrapperAria()})),this.deRegister.push(this.$attrs.$observe("mdChipAppendDelay",function(t){var r=parseInt(t);e.chipAppendDelay=isNaN(r)?n:r}))},e.prototype.$onDestroy=function(){for(var e;e=this.deRegister.pop();)e.call(this)},e.prototype.setupInputAria=function(){var e=this.$element.find("input");e&&(e.attr("role","textbox"),e.attr("aria-multiline",!0))},e.prototype.setupWrapperAria=function(){var e=this,t=this.$element.find("md-chips-wrap");this.items&&this.items.length?(t.attr("role","listbox"),this.contentIds=this.items.map(function(){return e.wrapperId+"-chip-"+e.$mdUtil.nextUid()}),t.attr("aria-owns",this.contentIds.join(" "))):(t.removeAttr("role"),t.removeAttr("aria-owns"))},e.prototype.inputKeydown=function(e){var t=this.getChipBuffer();if(!(this.autocompleteCtrl&&e.isDefaultPrevented&&e.isDefaultPrevented())){if(e.keyCode===this.$mdConstant.KEY_CODE.BACKSPACE){if(0!==this.getCursorPosition(e.target))return;return e.preventDefault(),e.stopPropagation(),void(this.items.length&&this.selectAndFocusChipSafe(this.items.length-1))}if((!this.separatorKeys||this.separatorKeys.length<1)&&(this.separatorKeys=[this.$mdConstant.KEY_CODE.ENTER]),-1!==this.separatorKeys.indexOf(e.keyCode)){if(this.autocompleteCtrl&&this.requireMatch||!t)return;if(e.preventDefault(),this.hasMaxChipsReached())return;return this.appendChip(t.trim()),this.resetChipBuffer(),!1}}},e.prototype.getCursorPosition=function(e){try{if(e.selectionStart===e.selectionEnd)return e.selectionStart}catch(t){if(!e.value)return 0}},e.prototype.updateChipContents=function(e,t){e>=0&&e<this.items.length&&(this.items[e]=t,this.ngModelCtrl.$setDirty())},e.prototype.isEditingChip=function(){return!!this.$element[0].querySelector("._md-chip-editing")},e.prototype.isRemovable=function(){return!!this.ngModelCtrl&&(this.readonly?this.removable:!t.isDefined(this.removable)||this.removable)},e.prototype.chipKeydown=function(e){if(!this.getChipBuffer()&&!this.isEditingChip())switch(e.keyCode){case this.$mdConstant.KEY_CODE.BACKSPACE:case this.$mdConstant.KEY_CODE.DELETE:if(this.selectedChip<0)return;if(e.preventDefault(),!this.isRemovable())return;this.removeAndSelectAdjacentChip(this.selectedChip);break;case this.$mdConstant.KEY_CODE.LEFT_ARROW:e.preventDefault(),(this.selectedChip<0||this.readonly&&0==this.selectedChip)&&(this.selectedChip=this.items.length),this.items.length&&this.selectAndFocusChipSafe(this.selectedChip-1);break;case this.$mdConstant.KEY_CODE.RIGHT_ARROW:e.preventDefault(),this.selectAndFocusChipSafe(this.selectedChip+1);break;case this.$mdConstant.KEY_CODE.ESCAPE:case this.$mdConstant.KEY_CODE.TAB:if(this.selectedChip<0)return;e.preventDefault(),this.onFocus()}},e.prototype.getPlaceholder=function(){return this.items&&this.items.length&&(""==this.secondaryPlaceholder||this.secondaryPlaceholder)?this.secondaryPlaceholder:this.placeholder},e.prototype.removeAndSelectAdjacentChip=function(e){var t=this,n=t.getAdjacentChipIndex(e);this.$element[0].querySelector("md-chips-wrap"),this.$element[0].querySelector('md-chip[index="'+e+'"]');t.removeChip(e),t.$timeout(function(){t.$timeout(function(){t.selectAndFocusChipSafe(n)})})},e.prototype.resetSelectedChip=function(){this.selectedChip=-1,this.ariaTabIndex=null},e.prototype.getAdjacentChipIndex=function(e){var t=this.items.length-1;return 0==t?-1:e==t?e-1:e},e.prototype.appendChip=function(e){if(this.shouldFocusLastChip=!0,this.useTransformChip&&this.transformChip){var n=this.transformChip({$chip:e});t.isDefined(n)&&(e=n)}if(t.isObject(e)){if(this.items.some(function(n){return t.equals(e,n)}))return}if(!(null==e||this.items.indexOf(e)+1)){var r=this.items.push(e),i=r-1;this.ngModelCtrl.$setDirty(),this.validateModel(),this.useOnAdd&&this.onAdd&&this.onAdd({$chip:e,$index:i})}},e.prototype.useTransformChipExpression=function(){this.useTransformChip=!0},e.prototype.useOnAddExpression=function(){this.useOnAdd=!0},e.prototype.useOnRemoveExpression=function(){this.useOnRemove=!0},e.prototype.useOnSelectExpression=function(){this.useOnSelect=!0},e.prototype.getChipBuffer=function(){var e=this.userInputElement?this.userInputNgModelCtrl?this.userInputNgModelCtrl.$viewValue:this.userInputElement[0].value:this.chipBuffer;return t.isString(e)?e:""},e.prototype.resetChipBuffer=function(){this.userInputElement?this.userInputNgModelCtrl?(this.userInputNgModelCtrl.$setViewValue(""),this.userInputNgModelCtrl.$render()):this.userInputElement[0].value="":this.chipBuffer=""},e.prototype.hasMaxChipsReached=function(){return t.isString(this.maxChips)&&(this.maxChips=parseInt(this.maxChips,10)||0),this.maxChips>0&&this.items.length>=this.maxChips},e.prototype.validateModel=function(){this.ngModelCtrl.$setValidity("md-max-chips",!this.hasMaxChipsReached()),this.ngModelCtrl.$validate()},e.prototype.removeChip=function(e){var t=this.items.splice(e,1);this.ngModelCtrl.$setDirty(),this.validateModel(),t&&t.length&&this.useOnRemove&&this.onRemove&&this.onRemove({$chip:t[0],$index:e})},e.prototype.removeChipAndFocusInput=function(e){this.removeChip(e),this.autocompleteCtrl?(this.autocompleteCtrl.hidden=!0,this.$mdUtil.nextTick(this.onFocus.bind(this))):this.onFocus()},e.prototype.selectAndFocusChipSafe=function(e){if(!this.items.length||-1===e)return this.focusInput();if(e>=this.items.length){if(!this.readonly)return this.onFocus();e=0}e=Math.max(e,0),e=Math.min(e,this.items.length-1),this.selectChip(e),this.focusChip(e)},e.prototype.focusLastChipThenInput=function(){var e=this;e.shouldFocusLastChip=!1,e.focusChip(this.items.length-1),e.$timeout(function(){e.focusInput()},e.chipAppendDelay)},e.prototype.focusInput=function(){this.selectChip(-1),this.onFocus()},e.prototype.selectChip=function(e){e>=-1&&e<=this.items.length?(this.selectedChip=e,this.useOnSelect&&this.onSelect&&this.onSelect({$chip:this.items[e]})):this.$log.warn("Selected Chip index out of bounds; ignoring.")},e.prototype.selectAndFocusChip=function(e){this.selectChip(e),-1!=e&&this.focusChip(e)},e.prototype.focusChip=function(e){var t=this.$element[0].querySelector('md-chip[index="'+e+'"] .md-chip-content');this.ariaTabIndex=e,t.focus()},e.prototype.configureNgModel=function(e){this.ngModelCtrl=e;var t=this;e.$isEmpty=function(e){return!e||0===e.length},e.$render=function(){t.items=t.ngModelCtrl.$viewValue}},e.prototype.onFocus=function(){var e=this.$element[0].querySelector("input");e&&e.focus(),this.resetSelectedChip()},e.prototype.onInputFocus=function(){this.inputHasFocus=!0,this.setupInputAria(),this.resetSelectedChip()},e.prototype.onInputBlur=function(){this.inputHasFocus=!1,this.shouldAddOnBlur()&&(this.appendChip(this.getChipBuffer().trim()),this.resetChipBuffer())},e.prototype.configureInput=function(e){var t=e.controller("ngModel"),n=this;t&&(this.deRegister.push(this.$scope.$watch(function(){return t.$touched},function(e){e&&n.ngModelCtrl.$setTouched()})),this.deRegister.push(this.$scope.$watch(function(){return t.$dirty},function(e){e&&n.ngModelCtrl.$setDirty()})))},e.prototype.configureUserInput=function(e){this.userInputElement=e;var n=e.controller("ngModel");n!=this.ngModelCtrl&&(this.userInputNgModelCtrl=n);var r=this.$scope,i=this,a=function(e,n){r.$evalAsync(t.bind(i,n,e))};e.attr({tabindex:0}).on("keydown",function(e){a(e,i.inputKeydown)}).on("focus",function(e){a(e,i.onInputFocus)}).on("blur",function(e){a(e,i.onInputBlur)})},e.prototype.configureAutocomplete=function(e){e&&(this.autocompleteCtrl=e,e.registerSelectedItemWatcher(t.bind(this,function(e){if(e){if(this.hasMaxChipsReached())return;this.appendChip(e),this.resetChipBuffer()}})),this.$element.find("input").on("focus",t.bind(this,this.onInputFocus)).on("blur",t.bind(this,this.onInputBlur)))},e.prototype.shouldAddOnBlur=function(){this.validateModel();var e=this.getChipBuffer().trim(),t=this.ngModelCtrl.$valid,n=this.autocompleteCtrl&&!this.autocompleteCtrl.hidden;return this.userInputNgModelCtrl&&(t=t&&this.userInputNgModelCtrl.$valid),this.addOnBlur&&!this.requireMatch&&e&&t&&!n},e.prototype.hasFocus=function(){return this.inputHasFocus||this.selectedChip>=0},e.prototype.contentIdFor=function(e){return this.contentIds[e]}}(),function(){function e(e,t,o,s,c,l){function u(n,r){function i(e){if(r.ngModel){var t=a[0].querySelector(e);return t&&t.outerHTML}}var a=r.$mdUserTemplate;r.$mdUserTemplate=null;var u=i("md-chips>md-chip-template"),p=t.prefixer().buildList("md-chip-remove").map(function(e){return"md-chips>*["+e+"]"}).join(","),f=i(p)||d.remove,h=u||d.default,m=i("md-chips>md-autocomplete")||i("md-chips>input")||d.input,g=a.find("md-chip");return a[0].querySelector("md-chip-template>*[md-chip-remove]")&&s.warn("invalid placement of md-chip-remove within md-chip-template."),function(n,i,a,s){t.initOptionalProperties(n,r),e(i);var p=s[0];if(u&&(p.enableChipEdit=!1),p.chipContentsTemplate=h,p.chipRemoveTemplate=f,p.chipInputTemplate=m,p.mdCloseIcon=l.mdClose,i.attr({tabindex:-1}).on("focus",function(){p.onFocus()}),r.ngModel&&(p.configureNgModel(i.controller("ngModel")),a.mdTransformChip&&p.useTransformChipExpression(),a.mdOnAppend&&p.useOnAppendExpression(),a.mdOnAdd&&p.useOnAddExpression(),a.mdOnRemove&&p.useOnRemoveExpression(),a.mdOnSelect&&p.useOnSelectExpression(),m!=d.input&&n.$watch("$mdChipsCtrl.readonly",function(e){e||t.nextTick(function(){if(0===m.indexOf("<md-autocomplete")){var e=i.find("md-autocomplete");p.configureAutocomplete(e.controller("mdAutocomplete"))}p.configureUserInput(i.find("input"))})}),t.nextTick(function(){var e=i.find("input");e&&(p.configureInput(e),e.toggleClass("md-input",!0))})),g.length>0){var v=o(g.clone())(n.$parent);c(function(){i.find("md-chips-wrap").prepend(v)})}}}var d=function(){return{chips:t.processTemplate(n),input:t.processTemplate(r),default:t.processTemplate(i),remove:t.processTemplate(a)}}();return{template:function(e,t){return t.$mdUserTemplate=e.clone(),d.chips},require:["mdChips"],restrict:"E",controller:"MdChipsCtrl",controllerAs:"$mdChipsCtrl",bindToController:!0,compile:u,scope:{readonly:"=readonly",removable:"=mdRemovable",placeholder:"@",secondaryPlaceholder:"@",maxChips:"@mdMaxChips",transformChip:"&mdTransformChip",onAppend:"&mdOnAppend",onAdd:"&mdOnAdd",onRemove:"&mdOnRemove",onSelect:"&mdOnSelect",inputAriaLabel:"@",containerHint:"@",deleteHint:"@",deleteButtonLabel:"@",separatorKeys:"=?mdSeparatorKeys",requireMatch:"=?mdRequireMatch",chipAppendDelayString:"@?mdChipAppendDelay"}}}e.$inject=["$mdTheming","$mdUtil","$compile","$log","$timeout","$$mdSvgRegistry"],e.$inject=["$mdTheming","$mdUtil","$compile","$log","$timeout","$$mdSvgRegistry"],t.module("material.components.chips").directive("mdChips",e);var n=' <md-chips-wrap id="{{$mdChipsCtrl.wrapperId}}" tabindex="{{$mdChipsCtrl.readonly ? 0 : -1}}" ng-keydown="$mdChipsCtrl.chipKeydown($event)" ng-class="{ \'md-focused\': $mdChipsCtrl.hasFocus(), \'md-readonly\': !$mdChipsCtrl.ngModelCtrl || $mdChipsCtrl.readonly, \'md-removable\': $mdChipsCtrl.isRemovable() }" aria-setsize="{{$mdChipsCtrl.items.length}}" class="md-chips"> <span ng-if="$mdChipsCtrl.readonly" class="md-visually-hidden"> {{$mdChipsCtrl.containerHint}} </span> <md-chip ng-repeat="$chip in $mdChipsCtrl.items" index="{{$index}}" ng-class="{\'md-focused\': $mdChipsCtrl.selectedChip == $index, \'md-readonly\': !$mdChipsCtrl.ngModelCtrl || $mdChipsCtrl.readonly}"> <div class="md-chip-content" tabindex="{{$mdChipsCtrl.ariaTabIndex == $index ? 0 : -1}}" id="{{$mdChipsCtrl.contentIdFor($index)}}" role="option" aria-selected="{{$mdChipsCtrl.selectedChip == $index}}" aria-posinset="{{$index}}" ng-click="!$mdChipsCtrl.readonly && $mdChipsCtrl.focusChip($index)" ng-focus="!$mdChipsCtrl.readonly && $mdChipsCtrl.selectChip($index)" md-chip-transclude="$mdChipsCtrl.chipContentsTemplate"></div> <div ng-if="$mdChipsCtrl.isRemovable()" class="md-chip-remove-container" tabindex="-1" md-chip-transclude="$mdChipsCtrl.chipRemoveTemplate"></div> </md-chip> <div class="md-chip-input-container" ng-if="!$mdChipsCtrl.readonly && $mdChipsCtrl.ngModelCtrl"> <div md-chip-transclude="$mdChipsCtrl.chipInputTemplate"></div> </div> </md-chips-wrap>',r=' <input class="md-input" tabindex="0" aria-label="{{$mdChipsCtrl.inputAriaLabel}}" placeholder="{{$mdChipsCtrl.getPlaceholder()}}" ng-model="$mdChipsCtrl.chipBuffer" ng-focus="$mdChipsCtrl.onInputFocus()" ng-blur="$mdChipsCtrl.onInputBlur()" ng-keydown="$mdChipsCtrl.inputKeydown($event)">',i=" <span>{{$chip}}</span>",a=' <button class="md-chip-remove" ng-if="$mdChipsCtrl.isRemovable()" ng-click="$mdChipsCtrl.removeChipAndFocusInput($$replacedScope.$index)" type="button" tabindex="-1"> <md-icon md-svg-src="{{ $mdChipsCtrl.mdCloseIcon }}"></md-icon> <span class="md-visually-hidden"> {{$mdChipsCtrl.deleteButtonLabel}} </span> </button>'}(),function(){function e(){this.selectedItem=null,this.searchText=""}t.module("material.components.chips").controller("MdContactChipsCtrl",e),e.prototype.queryContact=function(e){return this.contactQuery({$query:e})},e.prototype.itemName=function(e){return e[this.contactName]}}(),function(){function e(e,t){function r(n,r){return function(n,i,a,o){var s=o;t.initOptionalProperties(n,r),e(i),i.attr("tabindex","-1"),a.$observe("mdChipAppendDelay",function(e){s.chipAppendDelay=e})}}return{template:function(e,t){return n},restrict:"E",controller:"MdContactChipsCtrl",controllerAs:"$mdContactChipsCtrl",bindToController:!0,compile:r,scope:{contactQuery:"&mdContacts",placeholder:"@",secondaryPlaceholder:"@",contactName:"@mdContactName",contactImage:"@mdContactImage",contactEmail:"@mdContactEmail",contacts:"=ngModel",requireMatch:"=?mdRequireMatch",minLength:"=?mdMinLength",highlightFlags:"@?mdHighlightFlags",chipAppendDelay:"@?mdChipAppendDelay"}}}e.$inject=["$mdTheming","$mdUtil"],e.$inject=["$mdTheming","$mdUtil"],t.module("material.components.chips").directive("mdContactChips",e);var n=' <md-chips class="md-contact-chips" ng-model="$mdContactChipsCtrl.contacts" md-require-match="$mdContactChipsCtrl.requireMatch" md-chip-append-delay="{{$mdContactChipsCtrl.chipAppendDelay}}" md-autocomplete-snap> <md-autocomplete md-menu-class="md-contact-chips-suggestions" md-selected-item="$mdContactChipsCtrl.selectedItem" md-search-text="$mdContactChipsCtrl.searchText" md-items="item in $mdContactChipsCtrl.queryContact($mdContactChipsCtrl.searchText)" md-item-text="$mdContactChipsCtrl.itemName(item)" md-no-cache="true" md-min-length="$mdContactChipsCtrl.minLength" md-autoselect placeholder="{{$mdContactChipsCtrl.contacts.length == 0 ? $mdContactChipsCtrl.placeholder : $mdContactChipsCtrl.secondaryPlaceholder}}"> <div class="md-contact-suggestion"> <img ng-src="{{item[$mdContactChipsCtrl.contactImage]}}" alt="{{item[$mdContactChipsCtrl.contactName]}}" ng-if="item[$mdContactChipsCtrl.contactImage]" /> <span class="md-contact-name" md-highlight-text="$mdContactChipsCtrl.searchText" md-highlight-flags="{{$mdContactChipsCtrl.highlightFlags}}"> {{item[$mdContactChipsCtrl.contactName]}} </span> <span class="md-contact-email" >{{item[$mdContactChipsCtrl.contactEmail]}}</span> </div> </md-autocomplete> <md-chip-template> <div class="md-contact-avatar"> <img ng-src="{{$chip[$mdContactChipsCtrl.contactImage]}}" alt="{{$chip[$mdContactChipsCtrl.contactName]}}" ng-if="$chip[$mdContactChipsCtrl.contactImage]" /> </div> <div class="md-contact-name"> {{$chip[$mdContactChipsCtrl.contactName]}} </div> </md-chip-template> </md-chips>'}(),function(){!function(){function e(){return{template:function(e,t){return'<div ng-switch="calendarCtrl.currentView" '+(t.hasOwnProperty("ngIf")?"":'ng-if="calendarCtrl.isInitialized"')+'><md-calendar-year ng-switch-when="year"></md-calendar-year><md-calendar-month ng-switch-default></md-calendar-month></div>'},scope:{minDate:"=mdMinDate",maxDate:"=mdMaxDate",dateFilter:"=mdDateFilter",_mode:"@mdMode",_currentView:"@mdCurrentView"},require:["ngModel","mdCalendar"],controller:n,controllerAs:"calendarCtrl",bindToController:!0,link:function(e,t,n,r){var i=r[0];r[1].configureNgModel(i)}}}function n(e,n,i,a,o,s,c,l,u){s(e),this.$element=e,this.$scope=n,this.dateUtil=i,this.$mdUtil=a,this.keyCode=o.KEY_CODE,this.$$rAF=c,this.$mdDateLocale=u,this.today=this.dateUtil.createDateAtMidnight(),this.ngModelCtrl=null,this.SELECTED_DATE_CLASS="md-calendar-selected-date",this.TODAY_CLASS="md-calendar-date-today",this.FOCUSED_DATE_CLASS="md-focus",this.id=r++,this.displayDate=null,this.selectedDate=null,this.firstRenderableDate=null,this.lastRenderableDate=null,this.isInitialized=!1,this.width=0,this.scrollbarWidth=0,l.tabindex||e.attr("tabindex","-1");var d,p=t.bind(this,this.handleKeyEvent);d=e.parent().hasClass("md-datepicker-calendar")?t.element(document.body):e,d.on("keydown",p),n.$on("$destroy",function(){d.off("keydown",p)}),1===t.version.major&&t.version.minor<=4&&this.$onInit()}n.$inject=["$element","$scope","$$mdDateUtil","$mdUtil","$mdConstant","$mdTheming","$$rAF","$attrs","$mdDateLocale"],n.$inject=["$element","$scope","$$mdDateUtil","$mdUtil","$mdConstant","$mdTheming","$$rAF","$attrs","$mdDateLocale"],t.module("material.components.datepicker").directive("mdCalendar",e);var r=0,i={day:"month",month:"year"};n.prototype.$onInit=function(){this._mode&&i.hasOwnProperty(this._mode)?(this.currentView=i[this._mode],this.mode=this._mode):(this.currentView=this._currentView||"month",this.mode=null);var e=this.$mdDateLocale;this.minDate&&this.minDate>e.firstRenderableDate?this.firstRenderableDate=this.minDate:this.firstRenderableDate=e.firstRenderableDate,this.maxDate&&this.maxDate<e.lastRenderableDate?this.lastRenderableDate=this.maxDate:this.lastRenderableDate=e.lastRenderableDate},n.prototype.configureNgModel=function(e){var t=this;t.ngModelCtrl=e,t.$mdUtil.nextTick(function(){t.isInitialized=!0}),e.$render=function(){var e=this.$viewValue;t.$scope.$broadcast("md-calendar-parent-changed",e),t.selectedDate||(t.selectedDate=e),t.displayDate||(t.displayDate=t.selectedDate||t.today)}},n.prototype.setNgModelValue=function(e){var t=this.dateUtil.createDateAtMidnight(e);return this.focus(t),this.$scope.$emit("md-calendar-change",t),this.ngModelCtrl.$setViewValue(t),this.ngModelCtrl.$render(),t},n.prototype.setCurrentView=function(e,n){var r=this;r.$mdUtil.nextTick(function(){r.currentView=e,n&&(r.displayDate=t.isDate(n)?n:new Date(n))})},n.prototype.focus=function(e){if(this.dateUtil.isValidDate(e)){var t=this.$element[0].querySelector("."+this.FOCUSED_DATE_CLASS);t&&t.classList.remove(this.FOCUSED_DATE_CLASS);var n=this.getDateId(e,this.currentView),r=document.getElementById(n);r&&(r.classList.add(this.FOCUSED_DATE_CLASS),r.focus(),this.displayDate=e)}else{var i=this.$element[0].querySelector("[ng-switch]");i&&i.focus()}},n.prototype.changeSelectedDate=function(e){var t=this.SELECTED_DATE_CLASS,n=this.$element[0].querySelector("."+t);if(n&&(n.classList.remove(t),n.setAttribute("aria-selected","false")),e){var r=document.getElementById(this.getDateId(e,this.currentView));r&&(r.classList.add(t),r.setAttribute("aria-selected","true"))}this.selectedDate=e},n.prototype.getActionFromKeyEvent=function(e){var t=this.keyCode;switch(e.which){case t.ENTER:return"select";case t.RIGHT_ARROW:return"move-right";case t.LEFT_ARROW:return"move-left";case t.DOWN_ARROW:return e.metaKey?"move-page-down":"move-row-down";case t.UP_ARROW:return e.metaKey?"move-page-up":"move-row-up";case t.PAGE_DOWN:return"move-page-down";case t.PAGE_UP:return"move-page-up";case t.HOME:return"start";case t.END:return"end";default:return null}},n.prototype.handleKeyEvent=function(e){var t=this;this.$scope.$apply(function(){if(e.which==t.keyCode.ESCAPE||e.which==t.keyCode.TAB)return t.$scope.$emit("md-calendar-close"),void(e.which==t.keyCode.TAB&&e.preventDefault());var n=t.getActionFromKeyEvent(e);n&&(e.preventDefault(),e.stopPropagation(),t.$scope.$broadcast("md-calendar-parent-action",n))})},n.prototype.hideVerticalScrollbar=function(e){function t(){var t=n.width||340,r=n.scrollbarWidth,a=e.calendarScroller;i.style.width=t+"px",a.style.width=t+r+"px",a.style.paddingRight=r+"px"}var n=this,r=e.$element[0],i=r.querySelector(".md-calendar-scroll-mask");n.width>0?t():n.$$rAF(function(){var i=e.calendarScroller;n.scrollbarWidth=i.offsetWidth-i.clientWidth,n.width=r.querySelector("table").offsetWidth,t()})},n.prototype.getDateId=function(e,t){if(!t)throw new Error("A namespace for the date id has to be specified.");return["md",this.id,t,e.getFullYear(),e.getMonth(),e.getDate()].join("-")},n.prototype.updateVirtualRepeat=function(){var e=this.$scope,t=e.$on("$md-resize-enable",function(){e.$$phase||e.$apply(),t()})}}()}(),function(){!function(){function e(){return{template:'<table aria-hidden="true" class="md-calendar-day-header"><thead></thead></table><div class="md-calendar-scroll-mask"><md-virtual-repeat-container class="md-calendar-scroll-container" md-offset-size="'+(i-r)+'"><table role="grid" tabindex="0" class="md-calendar" aria-readonly="true"><tbody md-calendar-month-body role="rowgroup" md-virtual-repeat="i in monthCtrl.items" md-month-offset="$index" class="md-calendar-month" md-start-index="monthCtrl.getSelectedMonthIndex()" md-item-size="'+r+'"><tr aria-hidden="true" md-force-height="\''+r+"px'\"></tr></tbody></table></md-virtual-repeat-container></div>",require:["^^mdCalendar","mdCalendarMonth"],controller:n,controllerAs:"monthCtrl",bindToController:!0,link:function(e,t,n,r){var i=r[0];r[1].initialize(i)}}}function n(e,t,n,r,i,a){this.$element=e,this.$scope=t,this.$animate=n,this.$q=r,this.dateUtil=i,this.dateLocale=a,this.calendarScroller=e[0].querySelector(".md-virtual-repeat-scroller"),this.isInitialized=!1,this.isMonthTransitionInProgress=!1;var o=this;this.cellClickHandler=function(){var e=i.getTimestampFromNode(this);o.$scope.$apply(function(){o.calendarCtrl.setNgModelValue(e)})},this.headerClickHandler=function(){o.calendarCtrl.setCurrentView("year",i.getTimestampFromNode(this))}}
29n.$inject=["$element","$scope","$animate","$q","$$mdDateUtil","$mdDateLocale"],n.$inject=["$element","$scope","$animate","$q","$$mdDateUtil","$mdDateLocale"],t.module("material.components.datepicker").directive("mdCalendarMonth",e);var r=265,i=45;n.prototype.initialize=function(e){this.items={length:this.dateUtil.getMonthDistance(e.firstRenderableDate,e.lastRenderableDate)+2},this.calendarCtrl=e,this.attachScopeListeners(),e.updateVirtualRepeat(),e.ngModelCtrl&&e.ngModelCtrl.$render()},n.prototype.getSelectedMonthIndex=function(){var e=this.calendarCtrl;return this.dateUtil.getMonthDistance(e.firstRenderableDate,e.displayDate||e.selectedDate||e.today)},n.prototype.changeDisplayDate=function(e){if(!this.isInitialized)return this.buildWeekHeader(),this.calendarCtrl.hideVerticalScrollbar(this),this.isInitialized=!0,this.$q.when();if(!this.dateUtil.isValidDate(e)||this.isMonthTransitionInProgress)return this.$q.when();this.isMonthTransitionInProgress=!0;var t=this.animateDateChange(e);this.calendarCtrl.displayDate=e;var n=this;return t.then(function(){n.isMonthTransitionInProgress=!1}),t},n.prototype.animateDateChange=function(e){if(this.dateUtil.isValidDate(e)){var t=this.dateUtil.getMonthDistance(this.calendarCtrl.firstRenderableDate,e);this.calendarScroller.scrollTop=t*r}return this.$q.when()},n.prototype.buildWeekHeader=function(){for(var e=this.dateLocale.firstDayOfWeek,t=this.dateLocale.shortDays,n=document.createElement("tr"),r=0;r<7;r++){var i=document.createElement("th");i.textContent=t[(r+e)%7],n.appendChild(i)}this.$element.find("thead").append(n)},n.prototype.attachScopeListeners=function(){var e=this;e.$scope.$on("md-calendar-parent-changed",function(t,n){e.calendarCtrl.changeSelectedDate(n),e.changeDisplayDate(n)}),e.$scope.$on("md-calendar-parent-action",t.bind(this,this.handleKeyEvent))},n.prototype.handleKeyEvent=function(e,t){var n=this.calendarCtrl,r=n.displayDate;if("select"===t)n.setNgModelValue(r);else{var i=null,a=this.dateUtil;switch(t){case"move-right":i=a.incrementDays(r,1);break;case"move-left":i=a.incrementDays(r,-1);break;case"move-page-down":i=a.incrementMonths(r,1);break;case"move-page-up":i=a.incrementMonths(r,-1);break;case"move-row-down":i=a.incrementDays(r,7);break;case"move-row-up":i=a.incrementDays(r,-7);break;case"start":i=a.getFirstDateOfMonth(r);break;case"end":i=a.getLastDateOfMonth(r)}i&&(i=this.dateUtil.clampDate(i,n.minDate,n.maxDate),this.changeDisplayDate(i).then(function(){n.focus(i)}))}}}()}(),function(){!function(){function e(e,r){var i=e('<md-icon md-svg-src="'+r.mdTabsArrow+'"></md-icon>')({})[0];return{require:["^^mdCalendar","^^mdCalendarMonth","mdCalendarMonthBody"],scope:{offset:"=mdMonthOffset"},controller:n,controllerAs:"mdMonthBodyCtrl",bindToController:!0,link:function(e,n,r,a){var o=a[0],s=a[1],c=a[2];c.calendarCtrl=o,c.monthCtrl=s,c.arrowIcon=i.cloneNode(!0),e.$watch(function(){return c.offset},function(e){t.isNumber(e)&&c.generateContent()})}}}function n(e,t,n){this.$element=e,this.dateUtil=t,this.dateLocale=n,this.monthCtrl=null,this.calendarCtrl=null,this.offset=null,this.focusAfterAppend=null}n.$inject=["$element","$$mdDateUtil","$mdDateLocale"],e.$inject=["$compile","$$mdSvgRegistry"],e.$inject=["$compile","$$mdSvgRegistry"],n.$inject=["$element","$$mdDateUtil","$mdDateLocale"],t.module("material.components.datepicker").directive("mdCalendarMonthBody",e),n.prototype.generateContent=function(){var e=this.dateUtil.incrementMonths(this.calendarCtrl.firstRenderableDate,this.offset);this.$element.empty().append(this.buildCalendarForMonth(e)),this.focusAfterAppend&&(this.focusAfterAppend.classList.add(this.calendarCtrl.FOCUSED_DATE_CLASS),this.focusAfterAppend.focus(),this.focusAfterAppend=null)},n.prototype.buildDateCell=function(e){var t=this.monthCtrl,n=this.calendarCtrl,r=document.createElement("td");if(r.tabIndex=-1,r.classList.add("md-calendar-date"),r.setAttribute("role","gridcell"),e){r.setAttribute("tabindex","-1"),r.setAttribute("aria-label",this.dateLocale.longDateFormatter(e)),r.id=n.getDateId(e,"month"),r.setAttribute("data-timestamp",e.getTime()),this.dateUtil.isSameDay(e,n.today)&&r.classList.add(n.TODAY_CLASS),this.dateUtil.isValidDate(n.selectedDate)&&this.dateUtil.isSameDay(e,n.selectedDate)&&(r.classList.add(n.SELECTED_DATE_CLASS),r.setAttribute("aria-selected","true"));var i=this.dateLocale.dates[e.getDate()];if(this.isDateEnabled(e)){var a=document.createElement("span");a.classList.add("md-calendar-date-selection-indicator"),a.textContent=i,r.appendChild(a),r.addEventListener("click",t.cellClickHandler),n.displayDate&&this.dateUtil.isSameDay(e,n.displayDate)&&(this.focusAfterAppend=r)}else r.classList.add("md-calendar-date-disabled"),r.textContent=i}return r},n.prototype.isDateEnabled=function(e){return this.dateUtil.isDateWithinRange(e,this.calendarCtrl.minDate,this.calendarCtrl.maxDate)&&(!t.isFunction(this.calendarCtrl.dateFilter)||this.calendarCtrl.dateFilter(e))},n.prototype.buildDateRow=function(e){var t=document.createElement("tr");return t.setAttribute("role","row"),t.setAttribute("aria-label",this.dateLocale.weekNumberFormatter(e)),t},n.prototype.buildCalendarForMonth=function(e){var t=this.dateUtil.isValidDate(e)?e:new Date,n=this.dateUtil.getFirstDateOfMonth(t),r=this.getLocaleDay_(n),i=this.dateUtil.getNumberOfDaysInMonth(t),a=document.createDocumentFragment(),o=1,s=this.buildDateRow(o);a.appendChild(s);var c=this.offset===this.monthCtrl.items.length-1,l=0,u=document.createElement("td"),d=document.createElement("span"),p=this.calendarCtrl;if(d.textContent=this.dateLocale.monthHeaderFormatter(t),u.appendChild(d),u.classList.add("md-calendar-month-label"),p.maxDate&&n>p.maxDate?u.classList.add("md-calendar-month-label-disabled"):p.mode||(u.addEventListener("click",this.monthCtrl.headerClickHandler),u.setAttribute("data-timestamp",n.getTime()),u.setAttribute("aria-label",this.dateLocale.monthFormatter(t)),u.classList.add("md-calendar-label-clickable"),u.appendChild(this.arrowIcon.cloneNode(!0))),r<=2){u.setAttribute("colspan","7");var f=this.buildDateRow();if(f.appendChild(u),a.insertBefore(f,s),c)return a}else l=3,u.setAttribute("colspan","3"),s.appendChild(u);for(var h=l;h<r;h++)s.appendChild(this.buildDateCell());for(var m=r,g=n,v=1;v<=i;v++){if(7===m){if(c)return a;m=0,o++,s=this.buildDateRow(o),a.appendChild(s)}g.setDate(v);var b=this.buildDateCell(g);s.appendChild(b),m++}for(;s.childNodes.length<7;)s.appendChild(this.buildDateCell());for(;a.childNodes.length<6;){for(var y=this.buildDateRow(),x=0;x<7;x++)y.appendChild(this.buildDateCell());a.appendChild(y)}return a},n.prototype.getLocaleDay_=function(e){return(e.getDay()+(7-this.dateLocale.firstDayOfWeek))%7}}()}(),function(){!function(){function e(){return{template:'<div class="md-calendar-scroll-mask"><md-virtual-repeat-container class="md-calendar-scroll-container"><table role="grid" tabindex="0" class="md-calendar" aria-readonly="true"><tbody md-calendar-year-body role="rowgroup" md-virtual-repeat="i in yearCtrl.items" md-year-offset="$index" class="md-calendar-year" md-start-index="yearCtrl.getFocusedYearIndex()" md-item-size="'+r+'"><tr aria-hidden="true" md-force-height="\''+r+"px'\"></tr></tbody></table></md-virtual-repeat-container></div>",require:["^^mdCalendar","mdCalendarYear"],controller:n,controllerAs:"yearCtrl",bindToController:!0,link:function(e,t,n,r){var i=r[0];r[1].initialize(i)}}}function n(e,t,n,r,i,a){this.$element=e,this.$scope=t,this.$animate=n,this.$q=r,this.dateUtil=i,this.calendarScroller=e[0].querySelector(".md-virtual-repeat-scroller"),this.isInitialized=!1,this.isMonthTransitionInProgress=!1,this.$mdUtil=a;var o=this;this.cellClickHandler=function(){o.onTimestampSelected(i.getTimestampFromNode(this))}}n.$inject=["$element","$scope","$animate","$q","$$mdDateUtil","$mdUtil"],n.$inject=["$element","$scope","$animate","$q","$$mdDateUtil","$mdUtil"],t.module("material.components.datepicker").directive("mdCalendarYear",e);var r=88;n.prototype.initialize=function(e){this.items={length:this.dateUtil.getYearDistance(e.firstRenderableDate,e.lastRenderableDate)+1},this.calendarCtrl=e,this.attachScopeListeners(),e.updateVirtualRepeat(),e.ngModelCtrl&&e.ngModelCtrl.$render()},n.prototype.getFocusedYearIndex=function(){var e=this.calendarCtrl;return this.dateUtil.getYearDistance(e.firstRenderableDate,e.displayDate||e.selectedDate||e.today)},n.prototype.changeDate=function(e){if(!this.isInitialized)return this.calendarCtrl.hideVerticalScrollbar(this),this.isInitialized=!0,this.$q.when();if(this.dateUtil.isValidDate(e)&&!this.isMonthTransitionInProgress){var t=this,n=this.animateDateChange(e);return t.isMonthTransitionInProgress=!0,t.calendarCtrl.displayDate=e,n.then(function(){t.isMonthTransitionInProgress=!1})}},n.prototype.animateDateChange=function(e){if(this.dateUtil.isValidDate(e)){var t=this.dateUtil.getYearDistance(this.calendarCtrl.firstRenderableDate,e);this.calendarScroller.scrollTop=t*r}return this.$q.when()},n.prototype.handleKeyEvent=function(e,t){var n=this,r=n.calendarCtrl,i=r.displayDate;if("select"===t)n.changeDate(i).then(function(){n.onTimestampSelected(i)});else{var a=null,o=n.dateUtil;switch(t){case"move-right":a=o.incrementMonths(i,1);break;case"move-left":a=o.incrementMonths(i,-1);break;case"move-row-down":a=o.incrementMonths(i,6);break;case"move-row-up":a=o.incrementMonths(i,-6)}if(a){var s=r.minDate?o.getFirstDateOfMonth(r.minDate):null,c=r.maxDate?o.getFirstDateOfMonth(r.maxDate):null;a=o.getFirstDateOfMonth(n.dateUtil.clampDate(a,s,c)),n.changeDate(a).then(function(){r.focus(a)})}}},n.prototype.attachScopeListeners=function(){var e=this;e.$scope.$on("md-calendar-parent-changed",function(t,n){e.calendarCtrl.changeSelectedDate(n?e.dateUtil.getFirstDateOfMonth(n):n),e.changeDate(n)}),e.$scope.$on("md-calendar-parent-action",t.bind(e,e.handleKeyEvent))},n.prototype.onTimestampSelected=function(e){var t=this.calendarCtrl;t.mode?this.$mdUtil.nextTick(function(){t.setNgModelValue(e)}):t.setCurrentView("month",e)}}()}(),function(){!function(){function e(){return{require:["^^mdCalendar","^^mdCalendarYear","mdCalendarYearBody"],scope:{offset:"=mdYearOffset"},controller:n,controllerAs:"mdYearBodyCtrl",bindToController:!0,link:function(e,n,r,i){var a=i[0],o=i[1],s=i[2];s.calendarCtrl=a,s.yearCtrl=o,e.$watch(function(){return s.offset},function(e){t.isNumber(e)&&s.generateContent()})}}}function n(e,t,n){this.$element=e,this.dateUtil=t,this.dateLocale=n,this.calendarCtrl=null,this.yearCtrl=null,this.offset=null,this.focusAfterAppend=null}n.$inject=["$element","$$mdDateUtil","$mdDateLocale"],n.$inject=["$element","$$mdDateUtil","$mdDateLocale"],t.module("material.components.datepicker").directive("mdCalendarYearBody",e),n.prototype.generateContent=function(){var e=this.dateUtil.incrementYears(this.calendarCtrl.firstRenderableDate,this.offset);this.$element.empty().append(this.buildCalendarForYear(e)),this.focusAfterAppend&&(this.focusAfterAppend.classList.add(this.calendarCtrl.FOCUSED_DATE_CLASS),this.focusAfterAppend.focus(),this.focusAfterAppend=null)},n.prototype.buildMonthCell=function(e,t){var n=this.calendarCtrl,r=this.yearCtrl,i=this.buildBlankCell(),a=new Date(e,t,1);i.setAttribute("aria-label",this.dateLocale.monthFormatter(a)),i.id=n.getDateId(a,"year"),i.setAttribute("data-timestamp",a.getTime()),this.dateUtil.isSameMonthAndYear(a,n.today)&&i.classList.add(n.TODAY_CLASS),this.dateUtil.isValidDate(n.selectedDate)&&this.dateUtil.isSameMonthAndYear(a,n.selectedDate)&&(i.classList.add(n.SELECTED_DATE_CLASS),i.setAttribute("aria-selected","true"));var o=this.dateLocale.shortMonths[t];if(this.dateUtil.isMonthWithinRange(a,n.minDate,n.maxDate)){var s=document.createElement("span");s.classList.add("md-calendar-date-selection-indicator"),s.textContent=o,i.appendChild(s),i.addEventListener("click",r.cellClickHandler),n.displayDate&&this.dateUtil.isSameMonthAndYear(a,n.displayDate)&&(this.focusAfterAppend=i)}else i.classList.add("md-calendar-date-disabled"),i.textContent=o;return i},n.prototype.buildBlankCell=function(){var e=document.createElement("td");return e.tabIndex=-1,e.classList.add("md-calendar-date"),e.setAttribute("role","gridcell"),e.setAttribute("tabindex","-1"),e},n.prototype.buildCalendarForYear=function(e){var t,n=e.getFullYear(),r=document.createDocumentFragment(),i=document.createElement("tr"),a=document.createElement("td");for(a.className="md-calendar-month-label",a.textContent=n,i.appendChild(a),t=0;t<6;t++)i.appendChild(this.buildMonthCell(n,t));r.appendChild(i);var o=document.createElement("tr");for(o.appendChild(this.buildBlankCell()),t=6;t<12;t++)o.appendChild(this.buildMonthCell(n,t));return r.appendChild(o),r}}()}(),function(){!function(){t.module("material.components.datepicker").config(["$provide",function(e){function t(){this.months=null,this.shortMonths=null,this.days=null,this.shortDays=null,this.dates=null,this.firstDayOfWeek=0,this.formatDate=null,this.parseDate=null,this.monthHeaderFormatter=null,this.weekNumberFormatter=null,this.longDateFormatter=null,this.msgCalendar="",this.msgOpenCalendar=""}t.prototype.$get=function(e,t){function n(e,n){if(!e)return"";var r=e.toLocaleTimeString(),i=e;return 0!==e.getHours()||-1===r.indexOf("11:")&&-1===r.indexOf("23:")||(i=new Date(e.getFullYear(),e.getMonth(),e.getDate(),1,0,0)),t("date")(i,"M/d/yyyy",n)}function r(e){return new Date(e)}function i(e){return e=e.trim(),/^(([a-zA-Z]{3,}|[0-9]{1,4})([ .,]+|[\/-])){2}([a-zA-Z]{3,}|[0-9]{1,4})$/.test(e)}function a(e){return h.shortMonths[e.getMonth()]+" "+e.getFullYear()}function o(e){return h.months[e.getMonth()]+" "+e.getFullYear()}function s(e){return"Week "+e}function c(e){return[h.days[e.getDay()],h.months[e.getMonth()],h.dates[e.getDate()],e.getFullYear()].join(" ")}for(var l=e.DATETIME_FORMATS.SHORTDAY.map(function(e){return e.substring(0,1)}),u=Array(32),d=1;d<=31;d++)u[d]=d;var p=new Date(1880,0,1),f=new Date(p.getFullYear()+250,0,1),h={months:this.months||e.DATETIME_FORMATS.MONTH,shortMonths:this.shortMonths||e.DATETIME_FORMATS.SHORTMONTH,days:this.days||e.DATETIME_FORMATS.DAY,shortDays:this.shortDays||l,dates:this.dates||u,firstDayOfWeek:this.firstDayOfWeek||0,formatDate:this.formatDate||n,parseDate:this.parseDate||r,isDateComplete:this.isDateComplete||i,monthHeaderFormatter:this.monthHeaderFormatter||a,monthFormatter:this.monthFormatter||o,weekNumberFormatter:this.weekNumberFormatter||s,longDateFormatter:this.longDateFormatter||c,msgCalendar:this.msgCalendar||"Calendar",msgOpenCalendar:this.msgOpenCalendar||"Open calendar",firstRenderableDate:this.firstRenderableDate||p,lastRenderableDate:this.lastRenderableDate||f};return h},t.prototype.$get.$inject=["$locale","$filter"],e.provider("$mdDateLocale",new t)}])}()}(),function(){!function(){t.module("material.components.datepicker").factory("$$mdDateUtil",function(){function e(e){return new Date(e.getFullYear(),e.getMonth(),1)}function n(e){return new Date(e.getFullYear(),e.getMonth()+1,0).getDate()}function r(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function i(e){return new Date(e.getFullYear(),e.getMonth()-1,1)}function a(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}function o(e,t){return e.getDate()==t.getDate()&&a(e,t)}function s(e,t){return a(r(e),t)}function c(e,t){return a(t,i(e))}function l(e,t){return v((e.getTime()+t.getTime())/2)}function u(t){var n=e(t);return Math.floor((n.getDay()+t.getDate()-1)/7)}function d(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+t)}function p(e,t){var r=new Date(e.getFullYear(),e.getMonth()+t,1),i=n(r);return i<e.getDate()?r.setDate(i):r.setDate(e.getDate()),r}function f(e,t){return 12*(t.getFullYear()-e.getFullYear())+(t.getMonth()-e.getMonth())}function h(e){return new Date(e.getFullYear(),e.getMonth(),n(e))}function m(e){return e&&e.getTime&&!isNaN(e.getTime())}function g(e){m(e)&&e.setHours(0,0,0,0)}function v(e){var n;return n=t.isUndefined(e)?new Date:new Date(e),g(n),n}function b(e,t,n){var r=v(e),i=m(t)?v(t):null,a=m(n)?v(n):null;return(!i||i<=r)&&(!a||a>=r)}function y(e,t){return p(e,12*t)}function x(e,t){return t.getFullYear()-e.getFullYear()}function M(e,t,n){var r=e;return t&&e<t&&(r=new Date(t.getTime())),n&&e>n&&(r=new Date(n.getTime())),r}function _(e){if(e&&e.hasAttribute("data-timestamp"))return Number(e.getAttribute("data-timestamp"))}function w(e,t,n){var r=e.getMonth(),i=e.getFullYear();return(!t||t.getFullYear()<i||t.getMonth()<=r)&&(!n||n.getFullYear()>i||n.getMonth()>=r)}return{getFirstDateOfMonth:e,getNumberOfDaysInMonth:n,getDateInNextMonth:r,getDateInPreviousMonth:i,isInNextMonth:s,isInPreviousMonth:c,getDateMidpoint:l,isSameMonthAndYear:a,getWeekOfMonth:u,incrementDays:d,incrementMonths:p,getLastDateOfMonth:h,isSameDay:o,getMonthDistance:f,isValidDate:m,setDateTimeToMidnight:g,createDateAtMidnight:v,isDateWithinRange:b,incrementYears:y,getYearDistance:x,clampDate:M,getTimestampFromNode:_,isMonthWithinRange:w}})}()}(),function(){!function(){function n(e,n,i,c){return{template:function(t,n){var r=n.mdHideIcons,i=n.ariaLabel||n.mdPlaceholder,a="all"===r||"calendar"===r?"":'<md-button class="md-datepicker-button md-icon-button" type="button" tabindex="-1" aria-hidden="true" ng-click="ctrl.openCalendarPane($event)"><md-icon class="md-datepicker-calendar-icon" aria-label="md-calendar" md-svg-src="'+e.mdCalendar+'"></md-icon></md-button>',o="";return"all"!==r&&"triangle"!==r&&(o='<md-button type="button" md-no-ink class="md-datepicker-triangle-button md-icon-button" ng-click="ctrl.openCalendarPane($event)" aria-label="{{::ctrl.locale.msgOpenCalendar}}"><div class="md-datepicker-expand-triangle"></div></md-button>',t.addClass(s)),a+'<div class="md-datepicker-input-container" ng-class="{\'md-datepicker-focused\': ctrl.isFocused}"><input '+(i?'aria-label="'+i+'" ':"")+'class="md-datepicker-input" aria-haspopup="true" aria-expanded="{{ctrl.isCalendarOpen}}" ng-focus="ctrl.setFocused(true)" ng-blur="ctrl.setFocused(false)"> '+o+'</div><div class="md-datepicker-calendar-pane md-whiteframe-z1" id="{{::ctrl.calendarPaneId}}"><div class="md-datepicker-input-mask"><div class="md-datepicker-input-mask-opaque"></div></div><div class="md-datepicker-calendar"><md-calendar role="dialog" aria-label="{{::ctrl.locale.msgCalendar}}" md-current-view="{{::ctrl.currentView}}"md-mode="{{::ctrl.mode}}"md-min-date="ctrl.minDate"md-max-date="ctrl.maxDate"md-date-filter="ctrl.dateFilter"ng-model="ctrl.date" ng-if="ctrl.isCalendarOpen"></md-calendar></div></div>'},require:["ngModel","mdDatepicker","?^mdInputContainer","?^form"],scope:{minDate:"=mdMinDate",maxDate:"=mdMaxDate",placeholder:"@mdPlaceholder",currentView:"@mdCurrentView",mode:"@mdMode",dateFilter:"=mdDateFilter",isOpen:"=?mdIsOpen",debounceInterval:"=mdDebounceInterval",dateLocale:"=mdDateLocale"},controller:r,controllerAs:"ctrl",bindToController:!0,link:function(e,r,s,l){var u=l[0],d=l[1],p=l[2],f=l[3],h=n.parseAttributeBoolean(s.mdNoAsterisk);if(d.configureNgModel(u,p,c),p){var m=r[0].querySelector(".md-errors-spacer");m&&r.after(t.element("<div>").append(m)),p.setHasPlaceholder(s.mdPlaceholder),p.input=r,p.element.addClass(a).toggleClass(o,"calendar"!==s.mdHideIcons&&"all"!==s.mdHideIcons),p.label?h||s.$observe("required",function(e){p.label.toggleClass("md-required",!!e)}):i.expect(r,"aria-label",s.mdPlaceholder),e.$watch(p.isErrorGetter||function(){return u.$invalid&&(u.$touched||f&&f.$submitted)},p.setInvalid)}else if(f)var g=e.$watch(function(){return f.$submitted},function(e){e&&(d.updateErrorState(),g())})}}}function r(n,r,i,a,o,s,l,u,d,p,f){this.$window=a,this.dateUtil=d,this.$mdConstant=o,this.$mdUtil=l,this.$$rAF=p,this.$mdDateLocale=u,this.documentElement=t.element(document.documentElement),this.ngModelCtrl=null,this.inputElement=r[0].querySelector("input"),this.ngInputElement=t.element(this.inputElement),this.inputContainer=r[0].querySelector(".md-datepicker-input-container"),this.calendarPane=r[0].querySelector(".md-datepicker-calendar-pane"),this.calendarButton=r[0].querySelector(".md-datepicker-button"),this.inputMask=t.element(r[0].querySelector(".md-datepicker-input-mask-opaque")),this.$element=r,this.$attrs=i,this.$scope=n,this.date=null,this.isFocused=!1,this.isDisabled,this.setDisabled(r[0].disabled||t.isString(i.disabled)),this.isCalendarOpen=!1,this.openOnFocus=i.hasOwnProperty("mdOpenOnFocus"),this.mdInputContainer=null,this.calendarPaneOpenedFrom=null,this.calendarPaneId="md-date-pane-"+l.nextUid(),this.bodyClickHandler=t.bind(this,this.handleBodyClick),this.windowEventName=c.test(navigator.userAgent||navigator.vendor||e.opera)?"orientationchange":"resize",this.windowEventHandler=l.debounce(t.bind(this,this.closeCalendarPane),100),this.windowBlurHandler=t.bind(this,this.handleWindowBlur),this.ngDateFilter=f("date"),this.leftMargin=20,this.topMargin=null,i.tabindex?(this.ngInputElement.attr("tabindex",i.tabindex),i.$set("tabindex",null)):i.$set("tabindex","-1"),i.$set("aria-owns",this.calendarPaneId),s(r),s(t.element(this.calendarPane));var h=this;n.$on("$destroy",function(){h.detachCalendarPane()}),i.mdIsOpen&&n.$watch("ctrl.isOpen",function(e){e?h.openCalendarPane({target:h.inputElement}):h.closeCalendarPane()}),1===t.version.major&&t.version.minor<=4&&this.$onInit()}r.$inject=["$scope","$element","$attrs","$window","$mdConstant","$mdTheming","$mdUtil","$mdDateLocale","$$mdDateUtil","$$rAF","$filter"],n.$inject=["$$mdSvgRegistry","$mdUtil","$mdAria","inputDirective"],r.$inject=["$scope","$element","$attrs","$window","$mdConstant","$mdTheming","$mdUtil","$mdDateLocale","$$mdDateUtil","$$rAF","$filter"],n.$inject=["$$mdSvgRegistry","$mdUtil","$mdAria","inputDirective"],t.module("material.components.datepicker").directive("mdDatepicker",n);var i="md-datepicker-open",a="_md-datepicker-floating-label",o="_md-datepicker-has-calendar-icon",s="_md-datepicker-has-triangle-icon",c=/ipad|iphone|ipod|android/i;r.prototype.$onInit=function(){this.locale=this.dateLocale?t.extend({},this.$mdDateLocale,this.dateLocale):this.$mdDateLocale,this.installPropertyInterceptors(),this.attachChangeListeners(),this.attachInteractionListeners()},r.prototype.configureNgModel=function(e,n,r){this.ngModelCtrl=e,this.mdInputContainer=n,this.$attrs.$set("type","date"),r[0].link.pre(this.$scope,{on:t.noop,val:t.noop,0:{}},this.$attrs,[e]);var i=this;i.ngModelCtrl.$formatters.push(function(e){var n=t.isDefined(e)?e:null;if(!(e instanceof Date)&&(n=Date.parse(e),!isNaN(n)&&t.isNumber(n)&&(e=new Date(n)),e&&!(e instanceof Date)))throw Error("The ng-model for md-datepicker must be a Date instance or a value that can be parsed into a date. Currently the model is of type: "+(void 0===e?"undefined":_typeof2(e)));return i.onExternalChange(e),e}),e.$viewChangeListeners.unshift(t.bind(this,this.updateErrorState));var a=i.$mdUtil.getModelOption(e,"updateOn");a&&this.ngInputElement.on(a,t.bind(this.$element,this.$element.triggerHandler,a))},r.prototype.attachChangeListeners=function(){var e=this;e.$scope.$on("md-calendar-change",function(t,n){e.setModelValue(n),e.onExternalChange(n),e.closeCalendarPane()}),e.ngInputElement.on("input",t.bind(e,e.resizeInputElement));var n=t.isDefined(this.debounceInterval)?this.debounceInterval:500;e.ngInputElement.on("input",e.$mdUtil.debounce(e.handleInputEvent,n,e))},r.prototype.attachInteractionListeners=function(){var e=this,n=this.$scope,r=this.$mdConstant.KEY_CODE;e.ngInputElement.on("keydown",function(t){t.altKey&&t.keyCode==r.DOWN_ARROW&&(e.openCalendarPane(t),n.$digest())}),e.openOnFocus&&(e.ngInputElement.on("focus",t.bind(e,e.openCalendarPane)),t.element(e.$window).on("blur",e.windowBlurHandler),n.$on("$destroy",function(){t.element(e.$window).off("blur",e.windowBlurHandler)})),n.$on("md-calendar-close",function(){e.closeCalendarPane()})},r.prototype.installPropertyInterceptors=function(){var e=this;if(this.$attrs.ngDisabled){var t=this.$scope.$parent;t&&t.$watch(this.$attrs.ngDisabled,function(t){e.setDisabled(t)})}Object.defineProperty(this,"placeholder",{get:function(){return e.inputElement.placeholder},set:function(t){e.inputElement.placeholder=t||""}})},r.prototype.setDisabled=function(e){this.isDisabled=e,this.inputElement.disabled=e,this.calendarButton&&(this.calendarButton.disabled=e)},r.prototype.updateErrorState=function(e){var n=e||this.date;if(this.clearErrorState(),this.dateUtil.isValidDate(n)){if(n=this.dateUtil.createDateAtMidnight(n),this.dateUtil.isValidDate(this.minDate)){var r=this.dateUtil.createDateAtMidnight(this.minDate);this.ngModelCtrl.$setValidity("mindate",n>=r)}if(this.dateUtil.isValidDate(this.maxDate)){var i=this.dateUtil.createDateAtMidnight(this.maxDate);this.ngModelCtrl.$setValidity("maxdate",n<=i)}t.isFunction(this.dateFilter)&&this.ngModelCtrl.$setValidity("filtered",this.dateFilter(n))}else this.ngModelCtrl.$setValidity("valid",null==n);t.element(this.inputContainer).toggleClass("md-datepicker-invalid",!this.ngModelCtrl.$valid)},r.prototype.clearErrorState=function(){this.inputContainer.classList.remove("md-datepicker-invalid"),["mindate","maxdate","filtered","valid"].forEach(function(e){this.ngModelCtrl.$setValidity(e,!0)},this)},r.prototype.resizeInputElement=function(){this.inputElement.size=this.inputElement.value.length+3},r.prototype.handleInputEvent=function(){var e=this.inputElement.value,t=e?this.locale.parseDate(e):null;this.dateUtil.setDateTimeToMidnight(t),(""==e||this.dateUtil.isValidDate(t)&&this.locale.isDateComplete(e)&&this.isDateEnabled(t))&&(this.setModelValue(t),this.date=t),this.updateErrorState(t)},r.prototype.isDateEnabled=function(e){return this.dateUtil.isDateWithinRange(e,this.minDate,this.maxDate)&&(!t.isFunction(this.dateFilter)||this.dateFilter(e))},r.prototype.attachCalendarPane=function(){var e=this.calendarPane,n=document.body;e.style.transform="",this.$element.addClass(i),this.mdInputContainer&&this.mdInputContainer.element.addClass(i),t.element(n).addClass("md-datepicker-is-showing");var r=this.inputContainer.getBoundingClientRect(),a=n.getBoundingClientRect();(!this.topMargin||this.topMargin<0)&&(this.topMargin=(this.inputMask.parent().prop("clientHeight")-this.ngInputElement.prop("clientHeight"))/2);var o=r.top-a.top-this.topMargin,s=r.left-a.left-this.leftMargin,c=a.top<0&&0==document.body.scrollTop?-a.top:document.body.scrollTop,l=a.left<0&&0==document.body.scrollLeft?-a.left:document.body.scrollLeft,u=c+this.$window.innerHeight,d=l+this.$window.innerWidth;if(this.inputMask.css({position:"absolute",left:this.leftMargin+"px",top:this.topMargin+"px",width:r.width-1+"px",height:r.height-2+"px"}),s+360>d){if(d-360>0)s=d-360;else{s=l;var p=this.$window.innerWidth/360;e.style.transform="scale("+p+")"}e.classList.add("md-datepicker-pos-adjusted")}o+368>u&&u-368>c&&(o=u-368,e.classList.add("md-datepicker-pos-adjusted")),e.style.left=s+"px",e.style.top=o+"px",document.body.appendChild(e),this.$$rAF(function(){e.classList.add("md-pane-open")})},r.prototype.detachCalendarPane=function(){this.$element.removeClass(i),this.mdInputContainer&&this.mdInputContainer.element.removeClass(i),t.element(document.body).removeClass("md-datepicker-is-showing"),this.calendarPane.classList.remove("md-pane-open"),this.calendarPane.classList.remove("md-datepicker-pos-adjusted"),this.isCalendarOpen&&this.$mdUtil.enableScrolling(),this.calendarPane.parentNode&&this.calendarPane.parentNode.removeChild(this.calendarPane)},r.prototype.openCalendarPane=function(t){if(!this.isCalendarOpen&&!this.isDisabled&&!this.inputFocusedOnWindowBlur){this.isCalendarOpen=this.isOpen=!0,this.calendarPaneOpenedFrom=t.target,this.$mdUtil.disableScrollAround(this.calendarPane),this.attachCalendarPane(),this.focusCalendar(),this.evalAttr("ngFocus");var n=this;this.$mdUtil.nextTick(function(){n.documentElement.on("click touchstart",n.bodyClickHandler)},!1),e.addEventListener(this.windowEventName,this.windowEventHandler)}},r.prototype.closeCalendarPane=function(){function t(){n.isCalendarOpen=n.isOpen=!1}if(this.isCalendarOpen){var n=this;n.detachCalendarPane(),n.ngModelCtrl.$setTouched(),n.evalAttr("ngBlur"),n.documentElement.off("click touchstart",n.bodyClickHandler),e.removeEventListener(n.windowEventName,n.windowEventHandler),n.calendarPaneOpenedFrom.focus(),n.calendarPaneOpenedFrom=null,n.openOnFocus?n.$mdUtil.nextTick(t):t()}},r.prototype.getCalendarCtrl=function(){return t.element(this.calendarPane.querySelector("md-calendar")).controller("mdCalendar")},r.prototype.focusCalendar=function(){var e=this;this.$mdUtil.nextTick(function(){e.getCalendarCtrl().focus()},!1)},r.prototype.setFocused=function(e){e||this.ngModelCtrl.$setTouched(),this.openOnFocus||this.evalAttr(e?"ngFocus":"ngBlur"),this.isFocused=e},r.prototype.handleBodyClick=function(e){if(this.isCalendarOpen){this.$mdUtil.getClosest(e.target,"md-calendar")||this.closeCalendarPane(),this.$scope.$digest()}},r.prototype.handleWindowBlur=function(){this.inputFocusedOnWindowBlur=document.activeElement===this.inputElement},r.prototype.evalAttr=function(e){this.$attrs[e]&&this.$scope.$parent.$eval(this.$attrs[e])},r.prototype.setModelValue=function(e){var t=this.$mdUtil.getModelOption(this.ngModelCtrl,"timezone");this.ngModelCtrl.$setViewValue(this.ngDateFilter(e,"yyyy-MM-dd",t))},r.prototype.onExternalChange=function(e){var t=this.$mdUtil.getModelOption(this.ngModelCtrl,"timezone");this.date=e,this.inputElement.value=this.locale.formatDate(e,t),this.mdInputContainer&&this.mdInputContainer.setHasValue(!!e),this.resizeInputElement(),this.updateErrorState()}}()}(),function(){function e(e,t,n,r){function i(r,i,a){function o(){if(!a.mdSvgIcon&&!a.mdSvgSrc){a.mdFontIcon&&(i.removeClass(s),i.addClass(a.mdFontIcon),s=a.mdFontIcon);var t=e.fontSet(a.mdFontSet);c!==t&&(i.removeClass(c),i.addClass(t),c=t)}}t(i);var s=a.mdFontIcon,c=e.fontSet(a.mdFontSet);!function(){a.mdSvgIcon||a.mdSvgSrc||(a.mdFontIcon&&i.addClass("md-font "+a.mdFontIcon),i.addClass(c))}(),a.$observe("mdFontIcon",o),a.$observe("mdFontSet",o);var l=(i[0].getAttribute(a.$attr.mdSvgSrc),a.$normalize(a.$attr.mdSvgIcon||a.$attr.mdSvgSrc||""));if(a.role||(n.expect(i,"role","img"),a.role="img"),"img"===a.role&&!a.ariaHidden&&!n.hasAriaLabel(i)){var u;a.alt?n.expect(i,"aria-label",a.alt):n.parentHasAriaLabel(i,2)?n.expect(i,"aria-hidden","true"):(u=a.mdFontIcon||a.mdSvgIcon||i.text())?n.expect(i,"aria-label",u):n.expect(i,"aria-hidden","true")}l&&a.$observe(l,function(t){i.empty(),t&&e(t).then(function(e){i.empty(),i.append(e)})})}return{restrict:"E",link:i}}t.module("material.components.icon").directive("mdIcon",["$mdIcon","$mdTheming","$mdAria","$sce",e])}(),function(){function n(){}function r(e,t){this.url=e,this.viewBoxSize=t||a.defaultViewBoxSize}function i(n,r,i,a,o,s){function c(e){return e=e||"",t.isString(e)||(e=s.getTrustedUrl(e)),y[e]?i.when(u(y[e])):M.test(e)||_.test(e)?h(e).then(d(e)):(-1==e.indexOf(":")&&(e="$default:"+e),(n[e]?p:f)(e).then(d(e)))}function l(e){if(t.isUndefined(e)||!(e&&e.length))return n.defaultFontSet;var r=e;return t.forEach(n.fontSets,function(t){t.alias==e&&(r=t.fontSet||r)}),r}function u(e){var n=e.clone(),r="_cache"+o.nextUid();return n.id&&(n.id+=r),t.forEach(n.querySelectorAll("[id]"),function(e){e.id+=r}),n}function d(e){return function(t){return y[e]=m(t)?t:new g(t,n[e]),y[e].clone()}}function p(e){var t=n[e];return h(t.url).then(function(e){return new g(e,t)})}function f(e){function t(t){var n=e.slice(e.lastIndexOf(":")+1),i=t.querySelector("#"+n);return i?new g(i,s):r(e)}function r(e){var t="icon "+e+" not found";return a.warn(t),i.reject(t||e)}var o=e.substring(0,e.lastIndexOf(":"))||"$default",s=n[o];return s?h(s.url).then(t):r(e)}function h(n){return _.test(n)?function(n){var r=_.exec(n),a=/base64/i.test(n),o=a?e.atob(r[2]):r[2];return i.when(t.element(o)[0])}(n):function(e){return i(function(n,i){var o=function(e){var n=t.isString(e)?e:e.message||e.data||e.statusText;a.warn(n),i(e)},s=function(r){x[e]||(x[e]=t.element("<div>").append(r)[0].querySelector("svg")),n(x[e])};r(e,!0).then(s,o)})}(n)}function m(e){return t.isDefined(e.element)&&t.isDefined(e.config)}function g(e,n){
30e&&"svg"!=e.tagName&&(e=t.element('<svg xmlns="http://www.w3.org/2000/svg">').append(e.cloneNode(!0))[0]),e.getAttribute("xmlns")||e.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.element=e,this.config=n,this.prepare()}function v(){var e=this.config?this.config.viewBoxSize:n.defaultViewBoxSize;t.forEach({fit:"",height:"100%",width:"100%",preserveAspectRatio:"xMidYMid meet",viewBox:this.element.getAttribute("viewBox")||"0 0 "+e+" "+e,focusable:!1},function(e,t){this.element.setAttribute(t,e)},this)}function b(){return this.element.cloneNode(!0)}var y={},x={},M=/[-\w@:%+.~#?&\/\/=]{2,}\.[a-z]{2,4}\b(\/[-\w@:%+.~#?&\/\/=]*)?/i,_=/^data:image\/svg\+xml[\s*;\w\-=]*?(base64)?,(.*)$/i;return g.prototype={clone:b,prepare:v},c.fontSet=l,c}i.$inject=["config","$templateRequest","$q","$log","$mdUtil","$sce"],i.$inject=["config","$templateRequest","$q","$log","$mdUtil","$sce"],t.module("material.components.icon").constant("$$mdSvgRegistry",{mdTabsArrow:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwb2x5Z29uIHBvaW50cz0iMTUuNCw3LjQgMTQsNiA4LDEyIDE0LDE4IDE1LjQsMTYuNiAxMC44LDEyICIvPjwvZz48L3N2Zz4=",mdClose:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwYXRoIGQ9Ik0xOSA2LjQxbC0xLjQxLTEuNDEtNS41OSA1LjU5LTUuNTktNS41OS0xLjQxIDEuNDEgNS41OSA1LjU5LTUuNTkgNS41OSAxLjQxIDEuNDEgNS41OS01LjU5IDUuNTkgNS41OSAxLjQxLTEuNDEtNS41OS01LjU5eiIvPjwvZz48L3N2Zz4=",mdCancel:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwYXRoIGQ9Ik0xMiAyYy01LjUzIDAtMTAgNC40Ny0xMCAxMHM0LjQ3IDEwIDEwIDEwIDEwLTQuNDcgMTAtMTAtNC40Ny0xMC0xMC0xMHptNSAxMy41OWwtMS40MSAxLjQxLTMuNTktMy41OS0zLjU5IDMuNTktMS40MS0xLjQxIDMuNTktMy41OS0zLjU5LTMuNTkgMS40MS0xLjQxIDMuNTkgMy41OSAzLjU5LTMuNTkgMS40MSAxLjQxLTMuNTkgMy41OSAzLjU5IDMuNTl6Ii8+PC9nPjwvc3ZnPg==",mdMenu:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0zLDZIMjFWOEgzVjZNMywxMUgyMVYxM0gzVjExTTMsMTZIMjFWMThIM1YxNloiIC8+PC9zdmc+",mdToggleArrow:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgNDggNDgiPjxwYXRoIGQ9Ik0yNCAxNmwtMTIgMTIgMi44MyAyLjgzIDkuMTctOS4xNyA5LjE3IDkuMTcgMi44My0yLjgzeiIvPjxwYXRoIGQ9Ik0wIDBoNDh2NDhoLTQ4eiIgZmlsbD0ibm9uZSIvPjwvc3ZnPg==",mdCalendar:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTkgM2gtMVYxaC0ydjJIOFYxSDZ2Mkg1Yy0xLjExIDAtMS45OS45LTEuOTkgMkwzIDE5YzAgMS4xLjg5IDIgMiAyaDE0YzEuMSAwIDItLjkgMi0yVjVjMC0xLjEtLjktMi0yLTJ6bTAgMTZINVY4aDE0djExek03IDEwaDV2NUg3eiIvPjwvc3ZnPg==",mdChecked:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxnPjxwYXRoIGQ9Ik05IDE2LjE3TDQuODMgMTJsLTEuNDIgMS40MUw5IDE5IDIxIDdsLTEuNDEtMS40MXoiLz48L2c+PC9zdmc+"}).provider("$mdIcon",n);var a={defaultViewBoxSize:24,defaultFontSet:"material-icons",fontSets:[]};n.prototype={icon:function(e,t,n){return-1==e.indexOf(":")&&(e="$default:"+e),a[e]=new r(t,n),this},iconSet:function(e,t,n){return a[e]=new r(t,n),this},defaultIconSet:function(e,t){return a.$default||(a.$default=new r(e,t)),a.$default.viewBoxSize=t||a.defaultViewBoxSize,this},defaultViewBoxSize:function(e){return a.defaultViewBoxSize=e,this},fontSet:function(e,t){return a.fontSets.push({alias:e,fontSet:t||e}),this},defaultFontSet:function(e){return a.defaultFontSet=e||"",this},defaultIconSize:function(e){return a.defaultIconSize=e,this},$get:["$templateRequest","$q","$log","$mdUtil","$sce",function(e,t,n,r,o){return i(a,e,t,n,r,o)}]}}(),function(){function e(e,r,i,a,o,s,c,l,u){var d,p,f=o.prefixer(),h=this;this.nestLevel=parseInt(r.mdNestLevel,10)||0,this.init=function(n,r){r=r||{},d=n,p=i[0].querySelector(f.buildSelector(["ng-click","ng-mouseenter"])),p.setAttribute("aria-expanded","false"),this.isInMenuBar=r.isInMenuBar,this.nestedMenus=o.nodesToArray(d[0].querySelectorAll(".md-nested-menu")),d.on("$mdInterimElementRemove",function(){h.isOpen=!1,o.nextTick(function(){h.onIsOpenChanged(h.isOpen)})}),o.nextTick(function(){h.onIsOpenChanged(h.isOpen)});var s="menu_container_"+o.nextUid();d.attr("id",s),t.element(p).attr({"aria-owns":s,"aria-haspopup":"true"}),a.$on("$destroy",t.bind(this,function(){this.disableHoverListener(),e.destroy()})),d.on("$destroy",function(){e.destroy()})};var m,g,v=[];this.enableHoverListener=function(){v.push(c.$on("$mdMenuOpen",function(e,t){d[0].contains(t[0])&&(h.currentlyOpenMenu=t.controller("mdMenu"),h.isAlreadyOpening=!1,h.currentlyOpenMenu.registerContainerProxy(h.triggerContainerProxy.bind(h)))})),v.push(c.$on("$mdMenuClose",function(e,t){d[0].contains(t[0])&&(h.currentlyOpenMenu=n)})),g=t.element(o.nodesToArray(d[0].children[0].children)),g.on("mouseenter",h.handleMenuItemHover),g.on("mouseleave",h.handleMenuItemMouseLeave)},this.disableHoverListener=function(){for(;v.length;)v.shift()();g&&g.off("mouseenter",h.handleMenuItemHover),g&&g.off("mouseleave",h.handleMenuItemMouseLeave)},this.handleMenuItemHover=function(e){if(!h.isAlreadyOpening){var n=e.target.querySelector("md-menu")||o.getClosest(e.target,"MD-MENU");m=s(function(){if(n&&(n=t.element(n).controller("mdMenu")),h.currentlyOpenMenu&&h.currentlyOpenMenu!=n){var e=h.nestLevel+1;h.currentlyOpenMenu.close(!0,{closeTo:e}),h.isAlreadyOpening=!!n,n&&n.open()}else n&&!n.isOpen&&n.open&&(h.isAlreadyOpening=!!n,n&&n.open())},n?100:250);var r=e.currentTarget.querySelector(".md-button:not([disabled])");r&&r.focus()}},this.handleMenuItemMouseLeave=function(){m&&(s.cancel(m),m=n)},this.open=function(t){t&&t.stopPropagation(),t&&t.preventDefault(),h.isOpen||(h.enableHoverListener(),h.isOpen=!0,o.nextTick(function(){h.onIsOpenChanged(h.isOpen)}),p=p||(t?t.target:i[0]),p.setAttribute("aria-expanded","true"),a.$emit("$mdMenuOpen",i),e.show({scope:a,mdMenuCtrl:h,nestLevel:h.nestLevel,element:d,target:p,preserveElement:!0,parent:"body"}).finally(function(){p.setAttribute("aria-expanded","false"),h.disableHoverListener()}))},this.onIsOpenChanged=function(e){e?(d.attr("aria-hidden","false"),i[0].classList.add("md-open"),t.forEach(h.nestedMenus,function(e){e.classList.remove("md-open")})):(d.attr("aria-hidden","true"),i[0].classList.remove("md-open")),a.$mdMenuIsOpen=h.isOpen},this.focusMenuContainer=function(){var e=d[0].querySelector(f.buildSelector(["md-menu-focus-target","md-autofocus"]));e||(e=d[0].querySelector(".md-button:not([disabled])")),e.focus()},this.registerContainerProxy=function(e){this.containerProxy=e},this.triggerContainerProxy=function(e){this.containerProxy&&this.containerProxy(e)},this.destroy=function(){return h.isOpen?e.destroy():l.when(!1)},this.close=function(n,r){if(h.isOpen){h.isOpen=!1,o.nextTick(function(){h.onIsOpenChanged(h.isOpen)});var s=t.extend({},r,{skipFocus:n});if(a.$emit("$mdMenuClose",i,s),e.hide(null,r),!n){var c=h.restoreFocusTo||i.find("button")[0];c instanceof t.element&&(c=c[0]),c&&c.focus()}}},this.positionMode=function(){var e=(r.mdPositionMode||"target").split(" ");return 1==e.length&&e.push(e[0]),{left:e[0],top:e[1]}},this.offsets=function(){var e=(r.mdOffset||"0 0").split(" ").map(parseFloat);if(2==e.length)return{left:e[0],top:e[1]};if(1==e.length)return{top:e[0],left:e[0]};throw Error("Invalid offsets specified. Please follow format <x, y> or <n>")},a.$mdMenu={open:this.open,close:this.close},a.$mdOpenMenu=t.bind(this,function(){return u.warn("mdMenu: The $mdOpenMenu method is deprecated. Please use `$mdMenu.open`."),this.open.apply(this,arguments)})}e.$inject=["$mdMenu","$attrs","$element","$scope","$mdUtil","$timeout","$rootScope","$q","$log"],e.$inject=["$mdMenu","$attrs","$element","$scope","$mdUtil","$timeout","$rootScope","$q","$log"],t.module("material.components.menu").controller("mdMenuCtrl",e)}(),function(){function e(e){function n(n){n.addClass("md-menu");var a=n.children()[0],o=e.prefixer();o.hasAttribute(a,"ng-click")||(a=a.querySelector(o.buildSelector(["ng-click","ng-mouseenter"]))||a);var s="MD-BUTTON"===a.nodeName||"BUTTON"===a.nodeName;if(a&&s&&!a.hasAttribute("type")&&a.setAttribute("type","button"),!a)throw Error(i+"Expected the menu to have a trigger element.");if(2!==n.children().length)throw Error(i+"Expected two children elements. The second element must have a `md-menu-content` element.");a&&a.setAttribute("aria-haspopup","true");var c=n[0].querySelectorAll("md-menu"),l=parseInt(n[0].getAttribute("md-nest-level"),10)||0;return c&&t.forEach(e.nodesToArray(c),function(e){e.hasAttribute("md-position-mode")||e.setAttribute("md-position-mode","cascade"),e.classList.add("_md-nested-menu"),e.setAttribute("md-nest-level",l+1)}),r}function r(e,n,r,i){var a=i[0],o=!!i[1],s=t.element('<div class="_md md-open-menu-container md-whiteframe-z2"></div>'),c=n.children()[1];n.addClass("_md"),c.hasAttribute("role")||c.setAttribute("role","menu"),s.append(c),n.on("$destroy",function(){s.remove()}),n.append(s),s[0].style.display="none",a.init(s,{isInMenuBar:o})}var i="Invalid HTML for md-menu: ";return{restrict:"E",require:["mdMenu","?^mdMenuBar"],controller:"mdMenuCtrl",scope:!0,compile:n}}e.$inject=["$mdUtil"],e.$inject=["$mdUtil"],t.module("material.components.menu").directive("mdMenu",e)}(),function(){function e(e){function r(e,r,o,s,c,l,u,d,p,f){function h(n,r,i){return i.nestLevel?t.noop:(i.disableParentScroll&&!e.getClosest(i.target,"MD-DIALOG")?i.restoreScroll=e.disableScrollAround(i.element,i.parent):i.disableParentScroll=!1,i.hasBackdrop&&(i.backdrop=e.createBackdrop(n,"md-menu-backdrop md-click-catcher"),p.enter(i.backdrop,s[0].body)),function(){i.backdrop&&i.backdrop.remove(),i.disableParentScroll&&i.restoreScroll()})}function m(e,t,n){function r(){t.removeClass("md-active"),y(t,n),n.alreadyOpen=!1}return n.cleanupInteraction(),n.cleanupBackdrop(),n.cleanupResizing(),n.hideBackdrop(),t.removeClass("md-clickable"),!0===n.$destroy?r():function(){return d(t,{addClass:"md-leave"}).start()}().then(r)}function g(n,i,a){function s(){return a.backdrop?(a.backdrop.on("click",p),function(){a.backdrop.off("click",p)}):t.noop}function p(e){e.preventDefault(),e.stopPropagation(),n.$apply(function(){a.mdMenuCtrl.close(!0,{closeAll:!0})})}function m(){function r(t){var n;switch(t.keyCode){case o.KEY_CODE.ESCAPE:a.mdMenuCtrl.close(!1,{closeAll:!0}),n=!0;break;case o.KEY_CODE.TAB:a.mdMenuCtrl.close(!1,{closeAll:!0}),n=!1;break;case o.KEY_CODE.UP_ARROW:v(t,a.menuContentEl,a,-1)||a.nestLevel||a.mdMenuCtrl.triggerContainerProxy(t),n=!0;break;case o.KEY_CODE.DOWN_ARROW:v(t,a.menuContentEl,a,1)||a.nestLevel||a.mdMenuCtrl.triggerContainerProxy(t),n=!0;break;case o.KEY_CODE.LEFT_ARROW:a.nestLevel?a.mdMenuCtrl.close():a.mdMenuCtrl.triggerContainerProxy(t),n=!0;break;case o.KEY_CODE.RIGHT_ARROW:var r=e.getClosest(t.target,"MD-MENU");r&&r!=a.parent[0]?t.target.click():a.mdMenuCtrl.triggerContainerProxy(t),n=!0}n&&(t.preventDefault(),t.stopImmediatePropagation())}function i(t){function r(e,t){if(!e)return!1;for(var n,r=0;n=t[r];++r)if(M.hasAttribute(e,n))return!0;return!1}var i=t.target;do{if(i==a.menuContentEl[0])return;if((r(i,["ng-click","ng-href","ui-sref"])||"BUTTON"==i.nodeName||"MD-BUTTON"==i.nodeName)&&!r(i,["md-prevent-menu-close"])){var o=e.getClosest(i,"MD-MENU");i.hasAttribute("disabled")||o&&o!=a.parent[0]||function(){n.$apply(function(){a.mdMenuCtrl.close(!0,{closeAll:!0})})}();break}}while(i=i.parentNode)}if(!a.menuContentEl[0])return t.noop;a.menuContentEl.on("keydown",r),a.menuContentEl[0].addEventListener("click",i,!0);var s=a.menuContentEl[0].querySelector(M.buildSelector(["md-menu-focus-target","md-autofocus"]));if(!s)for(var c=a.menuContentEl[0].children.length,l=0;l<c;l++){var u=a.menuContentEl[0].children[l];if(s=u.querySelector(".md-button:not([disabled])"))break;if(u.firstElementChild&&!u.firstElementChild.disabled){s=u.firstElementChild;break}}return s&&s.focus(),function(){a.menuContentEl.off("keydown",r),a.menuContentEl[0].removeEventListener("click",i,!0)}}return function(){if(!a.target)throw Error("$mdMenu.show() expected a target to animate from in options.target");t.extend(a,{alreadyOpen:!1,isRemoved:!1,target:t.element(a.target),parent:t.element(a.parent),menuContentEl:t.element(i[0].querySelector("md-menu-content"))})}(),a.menuContentEl[0]?r.inherit(a.menuContentEl,a.target):f.warn("$mdMenu: Menu elements should always contain a `md-menu-content` element,otherwise interactivity features will not work properly.",i),a.cleanupResizing=function(){var e=function(e,t){return u.throttle(function(){if(!a.isRemoved){var n=x(e,t);e.css(_.toCss(n))}})}(i,a);return c.addEventListener("resize",e),c.addEventListener("orientationchange",e),function(){c.removeEventListener("resize",e),c.removeEventListener("orientationchange",e)}}(),a.hideBackdrop=h(n,i,a),function(){return a.parent.append(i),i[0].style.display="",l(function(e){var t=x(i,a);i.removeClass("md-leave"),d(i,{addClass:"md-active",from:_.toCss(t),to:_.toCss({transform:""})}).start().then(e)})}().then(function(e){return a.alreadyOpen=!0,a.cleanupInteraction=m(),a.cleanupBackdrop=s(),i.addClass("md-clickable"),e})}function v(t,n,r,i){for(var a,o=e.getClosest(t.target,"MD-MENU-ITEM"),s=e.nodesToArray(n[0].children),c=s.indexOf(o),l=c+i;l>=0&&l<s.length;l+=i){if(a=b(s[l].querySelector(".md-button")))break}return a}function b(e){if(e&&-1!=e.getAttribute("tabindex"))return e.focus(),s[0].activeElement==e}function y(e,t){t.preserveElement?i(e).style.display="none":i(e).parentNode===i(t.parent)&&i(t.parent).removeChild(i(e))}function x(t,r){var i,o=t[0],l=t[0].firstElementChild,u=l.getBoundingClientRect(),d=s[0].body,p=d.getBoundingClientRect(),f=c.getComputedStyle(l),h=r.target[0].querySelector(M.buildSelector("md-menu-origin"))||r.target[0],m=h.getBoundingClientRect(),g={left:p.left+a,top:Math.max(p.top,0)+a,bottom:Math.max(p.bottom,Math.max(p.top,0)+p.height)-a,right:p.right-a},v={top:0,left:0,right:0,bottom:0},b={top:0,left:0,right:0,bottom:0},y=r.mdMenuCtrl.positionMode();"target"!=y.top&&"target"!=y.left&&"target-right"!=y.left||(i=function(){for(var e=0;e<l.children.length;++e)if("none"!=c.getComputedStyle(l.children[e]).display)return l.children[e]}())&&(i=i.firstElementChild||i,i=i.querySelector(M.buildSelector("md-menu-align-target"))||i,v=i.getBoundingClientRect(),b={top:parseFloat(o.style.top||0),left:parseFloat(o.style.left||0)});var x={},_="top ";switch(y.top){case"target":x.top=b.top+m.top-v.top;break;case"cascade":x.top=m.top-parseFloat(f.paddingTop)-h.style.top;break;case"bottom":x.top=m.top+m.height;break;default:throw new Error('Invalid target mode "'+y.top+'" specified for md-menu on Y axis.')}var w="rtl"==e.bidi();switch(y.left){case"target":x.left=b.left+m.left-v.left,_+=w?"right":"left";break;case"target-left":x.left=m.left,_+="left";break;case"target-right":x.left=m.right-u.width+(u.right-v.right),_+="right";break;case"cascade":var A=w?m.left-u.width<g.left:m.right+u.width<g.right;x.left=A?m.right-h.style.left:m.left-h.style.left-u.width,_+=A?"left":"right";break;case"right":w?(x.left=m.right-m.width,_+="left"):(x.left=m.right-u.width,_+="right");break;case"left":w?(x.left=m.right-u.width,_+="right"):(x.left=m.left,_+="left");break;default:throw new Error('Invalid target mode "'+y.left+'" specified for md-menu on X axis.')}var S=r.mdMenuCtrl.offsets();x.top+=S.top,x.left+=S.left,function(e){e.top=Math.max(Math.min(e.top,g.bottom-o.offsetHeight),g.top),e.left=Math.max(Math.min(e.left,g.right-o.offsetWidth),g.left)}(x);var k=Math.round(100*Math.min(m.width/o.offsetWidth,1))/100,$=Math.round(100*Math.min(m.height/o.offsetHeight,1))/100;return{top:Math.round(x.top),left:Math.round(x.left),transform:r.alreadyOpen?n:e.supplant("scale({0},{1})",[k,$]),transformOrigin:_}}var M=e.prefixer(),_=e.dom.animator;return{parent:"body",onShow:g,onRemove:m,hasBackdrop:!0,disableParentScroll:!0,skipCompile:!0,preserveScope:!0,multiple:!0,themable:!0}}function i(e){return e instanceof t.element&&(e=e[0]),e}r.$inject=["$mdUtil","$mdTheming","$mdConstant","$document","$window","$q","$$rAF","$animateCss","$animate","$log"],r.$inject=["$mdUtil","$mdTheming","$mdConstant","$document","$window","$q","$$rAF","$animateCss","$animate","$log"];var a=8;return e("$mdMenu").setDefaults({methods:["target"],options:r})}e.$inject=["$$interimElementProvider"],e.$inject=["$$interimElementProvider"],t.module("material.components.menu").provider("$mdMenu",e)}(),function(){function e(e,n,i,a,o,s,c,l){this.$element=i,this.$attrs=a,this.$mdConstant=o,this.$mdUtil=c,this.$document=s,this.$scope=e,this.$rootScope=n,this.$timeout=l;var u=this;t.forEach(r,function(e){u[e]=t.bind(u,u[e])})}e.$inject=["$scope","$rootScope","$element","$attrs","$mdConstant","$document","$mdUtil","$timeout"],e.$inject=["$scope","$rootScope","$element","$attrs","$mdConstant","$document","$mdUtil","$timeout"],t.module("material.components.menuBar").controller("MenuBarController",e);var r=["handleKeyDown","handleMenuHover","scheduleOpenHoveredMenu","cancelScheduledOpen"];e.prototype.init=function(){var e=this.$element,t=this.$mdUtil,r=this.$scope,i=this,a=[];e.on("keydown",this.handleKeyDown),this.parentToolbar=t.getClosest(e,"MD-TOOLBAR"),a.push(this.$rootScope.$on("$mdMenuOpen",function(t,n){-1!=i.getMenus().indexOf(n[0])&&(e[0].classList.add("md-open"),n[0].classList.add("md-open"),i.currentlyOpenMenu=n.controller("mdMenu"),i.currentlyOpenMenu.registerContainerProxy(i.handleKeyDown),i.enableOpenOnHover())})),a.push(this.$rootScope.$on("$mdMenuClose",function(r,a,o){var s=i.getMenus();if(-1!=s.indexOf(a[0])&&(e[0].classList.remove("md-open"),a[0].classList.remove("md-open")),e[0].contains(a[0])){for(var c=a[0];c&&-1==s.indexOf(c);)c=t.getClosest(c,"MD-MENU",!0);c&&(o.skipFocus||c.querySelector("button:not([disabled])").focus(),i.currentlyOpenMenu=n,i.disableOpenOnHover(),i.setKeyboardMode(!0))}})),r.$on("$destroy",function(){for(i.disableOpenOnHover();a.length;)a.shift()()}),this.setKeyboardMode(!0)},e.prototype.setKeyboardMode=function(e){e?this.$element[0].classList.add("md-keyboard-mode"):this.$element[0].classList.remove("md-keyboard-mode")},e.prototype.enableOpenOnHover=function(){if(!this.openOnHoverEnabled){var e=this;e.openOnHoverEnabled=!0,e.parentToolbar&&(e.parentToolbar.classList.add("md-has-open-menu"),e.$mdUtil.nextTick(function(){t.element(e.parentToolbar).on("click",e.handleParentClick)},!1)),t.element(e.getMenus()).on("mouseenter",e.handleMenuHover)}},e.prototype.handleMenuHover=function(e){this.setKeyboardMode(!1),this.openOnHoverEnabled&&this.scheduleOpenHoveredMenu(e)},e.prototype.disableOpenOnHover=function(){this.openOnHoverEnabled&&(this.openOnHoverEnabled=!1,this.parentToolbar&&(this.parentToolbar.classList.remove("md-has-open-menu"),t.element(this.parentToolbar).off("click",this.handleParentClick)),t.element(this.getMenus()).off("mouseenter",this.handleMenuHover))},e.prototype.scheduleOpenHoveredMenu=function(e){var n=t.element(e.currentTarget),r=n.controller("mdMenu");this.setKeyboardMode(!1),this.scheduleOpenMenu(r)},e.prototype.scheduleOpenMenu=function(e){var t=this,r=this.$timeout;e!=t.currentlyOpenMenu&&(r.cancel(t.pendingMenuOpen),t.pendingMenuOpen=r(function(){t.pendingMenuOpen=n,t.currentlyOpenMenu&&t.currentlyOpenMenu.close(!0,{closeAll:!0}),e.open()},200,!1))},e.prototype.handleKeyDown=function(e){var n=this.$mdConstant.KEY_CODE,r=this.currentlyOpenMenu,i=r&&r.isOpen;this.setKeyboardMode(!0);var a,o,s;switch(e.keyCode){case n.DOWN_ARROW:r?r.focusMenuContainer():this.openFocusedMenu(),a=!0;break;case n.UP_ARROW:r&&r.close(),a=!0;break;case n.LEFT_ARROW:o=this.focusMenu(-1),i&&(s=t.element(o).controller("mdMenu"),this.scheduleOpenMenu(s)),a=!0;break;case n.RIGHT_ARROW:o=this.focusMenu(1),i&&(s=t.element(o).controller("mdMenu"),this.scheduleOpenMenu(s)),a=!0}a&&(e&&e.preventDefault&&e.preventDefault(),e&&e.stopImmediatePropagation&&e.stopImmediatePropagation())},e.prototype.focusMenu=function(e){var t=this.getMenus(),n=this.getFocusedMenuIndex();-1==n&&(n=this.getOpenMenuIndex());var r=!1;if(-1==n?(n=0,r=!0):(e<0&&n>0||e>0&&n<t.length-e)&&(n+=e,r=!0),r)return t[n].querySelector("button").focus(),t[n]},e.prototype.openFocusedMenu=function(){var e=this.getFocusedMenu();e&&t.element(e).controller("mdMenu").open()},e.prototype.getMenus=function(){var e=this.$element;return this.$mdUtil.nodesToArray(e[0].children).filter(function(e){return"MD-MENU"==e.nodeName})},e.prototype.getFocusedMenu=function(){return this.getMenus()[this.getFocusedMenuIndex()]},e.prototype.getFocusedMenuIndex=function(){var e=this.$mdUtil,t=e.getClosest(this.$document[0].activeElement,"MD-MENU");return t?this.getMenus().indexOf(t):-1},e.prototype.getOpenMenuIndex=function(){for(var e=this.getMenus(),t=0;t<e.length;++t)if(e[t].classList.contains("md-open"))return t;return-1},e.prototype.handleParentClick=function(e){var n=this.querySelector("md-menu.md-open");n&&!n.contains(e.target)&&t.element(n).controller("mdMenu").close(!0,{closeAll:!0})}}(),function(){function e(e,n){return{restrict:"E",require:"mdMenuBar",controller:"MenuBarController",compile:function(r,i){return i.ariaRole||r[0].setAttribute("role","menubar"),t.forEach(r[0].children,function(n){if("MD-MENU"==n.nodeName){n.hasAttribute("md-position-mode")||(n.setAttribute("md-position-mode","left bottom"),n.querySelector("button, a, md-button").setAttribute("role","menuitem"));var r=e.nodesToArray(n.querySelectorAll("md-menu-content"));t.forEach(r,function(e){e.classList.add("md-menu-bar-menu"),e.classList.add("md-dense"),e.hasAttribute("width")||e.setAttribute("width",5)})}}),r.find("md-menu-item").addClass("md-in-menu-bar"),function(e,t,r,i){t.addClass("_md"),n(e,t),i.init()}}}}e.$inject=["$mdUtil","$mdTheming"],e.$inject=["$mdUtil","$mdTheming"],t.module("material.components.menuBar").directive("mdMenuBar",e)}(),function(){function e(){return{restrict:"E",compile:function(e,t){t.role||e[0].setAttribute("role","separator")}}}t.module("material.components.menuBar").directive("mdMenuDivider",e)}(),function(){function e(e,t,n){this.$element=t,this.$attrs=n,this.$scope=e}e.$inject=["$scope","$element","$attrs"],e.$inject=["$scope","$element","$attrs"],t.module("material.components.menuBar").controller("MenuItemController",e),e.prototype.init=function(e){var t=this.$element,n=this.$attrs;this.ngModel=e,"checkbox"!=n.type&&"radio"!=n.type||(this.mode=n.type,this.iconEl=t[0].children[0],this.buttonEl=t[0].children[1],e&&this.initClickListeners())},e.prototype.clearNgAria=function(){var e=this.$element[0],n=["role","tabindex","aria-invalid","aria-checked"];t.forEach(n,function(t){e.removeAttribute(t)})},e.prototype.initClickListeners=function(){function e(){if("radio"==s){var e=o.ngValue?a.$eval(o.ngValue):o.value;return i.$modelValue==e}return i.$modelValue}function n(e){e?l.off("click",u):l.on("click",u)}var r=this,i=this.ngModel,a=this.$scope,o=this.$attrs,s=(this.$element,this.mode);this.handleClick=t.bind(this,this.handleClick);var c=this.iconEl,l=t.element(this.buttonEl),u=this.handleClick;o.$observe("disabled",n),n(o.disabled),i.$render=function(){r.clearNgAria(),e()?(c.style.display="",l.attr("aria-checked","true")):(c.style.display="none",l.attr("aria-checked","false"))},a.$$postDigest(i.$render)},e.prototype.handleClick=function(e){var t,n=this.mode,r=this.ngModel,i=this.$attrs;"checkbox"==n?t=!r.$modelValue:"radio"==n&&(t=i.ngValue?this.$scope.$eval(i.ngValue):i.value),r.$setViewValue(t),r.$render()}}(),function(){function e(e,n,r){return{controller:"MenuItemController",require:["mdMenuItem","?ngModel"],priority:n.BEFORE_NG_ARIA,compile:function(n,i){function a(e,r,i){i=i||n,i instanceof t.element&&(i=i[0]),i.hasAttribute(e)||i.setAttribute(e,r)}var o=i.type;if("checkbox"!=o&&"radio"!=o||!n.hasClass("md-in-menu-bar"))a("role","menuitem",n[0].querySelector("md-button, button, a"));else{var s=n[0].textContent,c=t.element('<md-button type="button"></md-button>'),l='<md-icon md-svg-src="'+r.mdChecked+'"></md-icon>';c.html(s),c.attr("tabindex","0"),n.html(""),n.append(t.element(l)),n.append(c),n.addClass("md-indent").removeClass("md-in-menu-bar"),a("role","checkbox"==o?"menuitemcheckbox":"menuitemradio",c),function(r){var i=e.prefixer(r);t.forEach(i,function(e){if(n[0].hasAttribute(e)){var t=n[0].getAttribute(e);c[0].setAttribute(e,t),n[0].removeAttribute(e)}})}("ng-disabled")}return function(e,t,n,r){var i=r[0],a=r[1];i.init(a)}}}}e.$inject=["$mdUtil","$mdConstant","$$mdSvgRegistry"],e.$inject=["$mdUtil","$mdConstant","$$mdSvgRegistry"],t.module("material.components.menuBar").directive("mdMenuItem",e)}(),function(){function e(e,n,r,i,a,o){function s(o,s,y){function x(t,r,a,s,c,u){function h(e){T.attr("stroke-dashoffset",l(b,y,e,w)),T.attr("transform","rotate("+_+" "+b/2+" "+b/2+")")}var m=++z,g=i.now(),v=r-t,b=d(o.mdDiameter),y=p(b),x=a||n.easeFn,M=s||n.duration,_=-90*(c||0),w=u||100;r===t?h(r):A=f(function n(){var r=e.Math.max(0,e.Math.min(i.now()-g,M));h(x(r,t,v,M)),m===z&&r<M&&(A=f(n))})}function M(){x(C,E,n.easeFnIndeterminate,n.durationIndeterminate,O,75),O=++O%4}function _(){S||(S=a(M,n.durationIndeterminate,0,!1),M(),s.addClass(b).removeAttr("aria-valuenow"))}function w(){S&&(a.cancel(S),S=null,s.removeClass(b))}var A,S,k=s[0],$=t.element(k.querySelector("svg")),T=t.element(k.querySelector("path")),C=n.startIndeterminate,E=n.endIndeterminate,O=0,z=0;r(s),s.toggleClass(v,y.hasOwnProperty("disabled")),o.mdMode===g&&_(),o.$on("$destroy",function(){w(),A&&h(A)}),o.$watchGroup(["value","mdMode",function(){var e=k.disabled;return!0===e||!1===e?e:t.isDefined(s.attr("disabled"))}],function(e,t){var n=e[1],r=e[2];if(r!==t[2]&&s.toggleClass(v,!!r),r)w();else if(n!==m&&n!==g&&(n=g,y.$set("mdMode",n)),n===g)_();else{var i=u(e[0]);w(),s.attr("aria-valuenow",i),x(u(t[0]),i)}}),o.$watch("mdDiameter",function(t){var n=d(t),r=p(n),i=u(o.value),a=n/2+"px",f={width:n+"px",height:n+"px"};$[0].setAttribute("viewBox","0 0 "+n+" "+n),$.css(f).css("transform-origin",a+" "+a+" "+a),s.css(f),T.attr("stroke-width",r),T.attr("stroke-linecap","square"),o.mdMode==g?(T.attr("d",c(n,r,!0)),T.attr("stroke-dasharray",(n-r)*e.Math.PI*.75),T.attr("stroke-dashoffset",l(n,r,1,75))):(T.attr("d",c(n,r,!1)),T.attr("stroke-dasharray",(n-r)*e.Math.PI),T.attr("stroke-dashoffset",l(n,r,0,100)),x(i,i))})}function c(e,t,n){var r=e/2,i=t/2,a=r+","+i,o=i+","+r,s=r-i;return"M"+a+"A"+s+","+s+" 0 1 1 "+o+(n?"":"A"+s+","+s+" 0 0 1 "+a)}function l(t,n,r,i){return(t-n)*e.Math.PI*(3*(i||100)/100-r/100)}function u(t){return e.Math.max(0,e.Math.min(t||0,100))}function d(e){var t=n.progressSize;if(e){var r=parseFloat(e);return e.lastIndexOf("%")===e.length-1&&(r=r/100*t),r}return t}function p(e){return n.strokeWidth/100*e}var f=e.requestAnimationFrame||e.webkitRequestAnimationFrame||t.noop,h=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame||t.noop,m="determinate",g="indeterminate",v="_md-progress-circular-disabled",b="md-mode-indeterminate";return{restrict:"E",scope:{value:"@",mdDiameter:"@",mdMode:"@"},template:'<svg xmlns="http://www.w3.org/2000/svg"><path fill="none"/></svg>',compile:function(e,n){if(e.attr({"aria-valuemin":0,"aria-valuemax":100,role:"progressbar"}),t.isUndefined(n.mdMode)){var r=n.hasOwnProperty("value")?m:g;n.$set("mdMode",r)}else n.$set("mdMode",n.mdMode.trim());return s}}}e.$inject=["$window","$mdProgressCircular","$mdTheming","$mdUtil","$interval","$log"],e.$inject=["$window","$mdProgressCircular","$mdTheming","$mdUtil","$interval","$log"],t.module("material.components.progressCircular").directive("mdProgressCircular",e)}(),function(){function e(){function e(e,t,n,r){return n*e/r+t}function n(e,t,n,r){var i=(e/=r)*e,a=i*e;return t+n*(6*a*i+-15*i*i+10*a)}var r={progressSize:50,strokeWidth:10,duration:100,easeFn:e,durationIndeterminate:1333,startIndeterminate:1,endIndeterminate:149,easeFnIndeterminate:n,easingPresets:{linearEase:e,materialEase:n}};return{configure:function(e){return r=t.extend(r,e||{})},$get:function(){return r}}}t.module("material.components.progressCircular").provider("$mdProgressCircular",e)}(),function(){function e(){function e(e,r,i,a){if(a){var o=a.getTabElementIndex(r),s=n(r,"md-tab-body").remove(),c=n(r,"md-tab-label").remove(),l=a.insertTab({scope:e,parent:e.$parent,index:o,element:r,template:s.html(),label:c.html()},o);e.select=e.select||t.noop,e.deselect=e.deselect||t.noop,e.$watch("active",function(e){e&&a.select(l.getIndex(),!0)}),e.$watch("disabled",function(){a.refreshIndex()}),e.$watch(function(){return a.getTabElementIndex(r)},function(e){l.index=e,a.updateTabOrder()}),e.$on("$destroy",function(){a.removeTab(l)})}}function n(e,n){for(var r=e[0].children,i=0,a=r.length;i<a;i++){var o=r[i];if(o.tagName===n.toUpperCase())return t.element(o)}return t.element()}return{require:"^?mdTabs",terminal:!0,compile:function(r,i){var a=n(r,"md-tab-label"),o=n(r,"md-tab-body");if(0===a.length&&(a=t.element("<md-tab-label></md-tab-label>"),i.label?a.text(i.label):a.append(r.contents()),0===o.length)){var s=r.contents().detach();o=t.element("<md-tab-body></md-tab-body>"),o.append(s)}return r.append(a),o.html()&&r.append(o),e},scope:{active:"=?mdActive",disabled:"=?ngDisabled",select:"&?mdOnSelect",deselect:"&?mdOnDeselect"}}}t.module("material.components.tabs").directive("mdTab",e)}(),function(){function e(){return{require:"^?mdTabs",link:function(e,t,n,r){r&&r.attachRipple(e,t)}}}t.module("material.components.tabs").directive("mdTabItem",e)}(),function(){function e(){return{terminal:!0}}t.module("material.components.tabs").directive("mdTabLabel",e)}(),function(){function e(e){return{restrict:"A",compile:function(t,n){var r=e(n.mdTabScroll,null,!0);return function(e,t){t.on("mousewheel",function(t){e.$apply(function(){r(e,{$event:t})})})}}}}e.$inject=["$parse"],e.$inject=["$parse"],t.module("material.components.tabs").directive("mdTabScroll",e)}(),function(){function e(e,r,i,a,o,s,c,l,u,d,p,f){function h(){y("stretchTabs",_),Q("focusIndex",T,he.selectedIndex||0),Q("offsetLeft",$,0),Q("hasContent",k,!1),Q("maxTabWidth",A,J()),Q("shouldPaginate",S,!1),x("noInkBar",R),x("dynamicHeight",j),x("noPagination"),x("swipeContent"),x("noDisconnect"),x("autoselect"),x("noSelectClick"),x("centerTabs",w),x("enableDisconnect"),he.scope=e,he.parent=e.$parent,he.tabs=[],he.lastSelectedIndex=null,he.hasFocus=!1,he.styleTabItemFocus=!1,he.shouldCenterTabs=V(),he.tabContentPrefix="tab-content-",m()}function m(){he.selectedIndex=he.selectedIndex||0,g(),b(),v(),d(r),s.nextTick(function(){ge=W(),se(),re(),ce(),he.tabs[he.selectedIndex]&&he.tabs[he.selectedIndex].scope.select(),ye=!0,K()})}function g(){var e=l.$mdTabsTemplate,n=t.element(r[0].querySelector("md-tab-data"));n.html(e),u(n.contents())(he.parent),delete l.$mdTabsTemplate}function v(){t.element(i).on("resize",D),e.$on("$destroy",M)}function b(){e.$watch("$mdTabsCtrl.selectedIndex",C)}function y(e,t){var n=l.$normalize("md-"+e);t&&Q(e,t),l.$observe(n,function(t){he[e]=t})}function x(e,t){function n(t){he[e]="false"!==t}var r=l.$normalize("md-"+e);t&&Q(e,t),l.hasOwnProperty(r)&&n(l[r]),l.$observe(r,n)}function M(){be=!0,t.element(i).off("resize",D)}function _(e){var n=W();t.element(n.wrapper).toggleClass("md-stretch-tabs",U()),ce()}function w(e){he.shouldCenterTabs=V()}function A(e,n){if(e!==n){var r=W();t.forEach(r.tabs,function(t){t.style.maxWidth=e+"px"}),t.forEach(r.dummies,function(t){t.style.maxWidth=e+"px"}),s.nextTick(he.updateInkBarStyles)}}function S(e,t){e!==t&&(he.maxTabWidth=J(),he.shouldCenterTabs=V(),s.nextTick(function(){he.maxTabWidth=J(),re(he.selectedIndex)}))}function k(e){r[e?"removeClass":"addClass"]("md-no-tab-content")}function $(n){var r=W(),i=(he.shouldCenterTabs||fe()?"":"-")+n+"px";i=i.replace("--",""),t.element(r.paging).css(a.CSS.TRANSFORM,"translate3d("+i+", 0, 0)"),e.$broadcast("$mdTabsPaginationChanged")}function T(e,t){e!==t&&W().tabs[e]&&(re(),ne())}function C(t,n){t!==n&&(he.selectedIndex=Y(t),he.lastSelectedIndex=n,he.updateInkBarStyles(),se(),re(t),e.$broadcast("$mdTabsChanged"),he.tabs[n]&&he.tabs[n].scope.deselect(),
31he.tabs[t]&&he.tabs[t].scope.select())}function E(e){var t=r[0].getElementsByTagName("md-tab");return Array.prototype.indexOf.call(t,e[0])}function O(){O.watcher||(O.watcher=e.$watch(function(){s.nextTick(function(){O.watcher&&r.prop("offsetParent")&&(O.watcher(),O.watcher=null,D())},!1)}))}function z(e){switch(e.keyCode){case a.KEY_CODE.LEFT_ARROW:e.preventDefault(),te(-1,!0);break;case a.KEY_CODE.RIGHT_ARROW:e.preventDefault(),te(1,!0);break;case a.KEY_CODE.SPACE:case a.KEY_CODE.ENTER:e.preventDefault(),me||L(he.focusIndex);break;case a.KEY_CODE.TAB:he.focusIndex!==he.selectedIndex&&(he.focusIndex=he.selectedIndex)}}function L(e,t){me||(he.focusIndex=he.selectedIndex=e),t&&he.noSelectClick||s.nextTick(function(){he.tabs[e].element.triggerHandler("click")},!1)}function N(e){he.shouldPaginate&&(e.preventDefault(),he.offsetLeft=ue(he.offsetLeft-e.wheelDelta))}function P(){if(he.canPageForward()){var e=f.increasePageOffset(W(),he.offsetLeft);he.offsetLeft=ue(e)}}function I(){if(he.canPageBack()){var e=f.decreasePageOffset(W(),he.offsetLeft);he.offsetLeft=ue(e)}}function D(){he.lastSelectedIndex=he.selectedIndex,he.offsetLeft=ue(he.offsetLeft),s.nextTick(function(){he.updateInkBarStyles(),K()})}function R(e){t.element(W().inkBar).toggleClass("ng-hide",e)}function j(e){r.toggleClass("md-dynamic-height",e)}function q(e){if(!be){var t=he.selectedIndex,n=he.tabs.splice(e.getIndex(),1)[0];oe(),he.selectedIndex===t&&(n.scope.deselect(),he.tabs[he.selectedIndex]&&he.tabs[he.selectedIndex].scope.select()),s.nextTick(function(){K(),he.offsetLeft=ue(he.offsetLeft)})}}function B(e,n){var r=ye,i={getIndex:function(){return he.tabs.indexOf(a)},isActive:function(){return this.getIndex()===he.selectedIndex},isLeft:function(){return this.getIndex()<he.selectedIndex},isRight:function(){return this.getIndex()>he.selectedIndex},shouldRender:function(){return!he.noDisconnect||this.isActive()},hasFocus:function(){return he.styleTabItemFocus&&he.hasFocus&&this.getIndex()===he.focusIndex},id:s.nextUid(),hasContent:!(!e.template||!e.template.trim())},a=t.extend(i,e);return t.isDefined(n)?he.tabs.splice(n,0,a):he.tabs.push(a),ie(),ae(),s.nextTick(function(){K(),pe(a),r&&he.autoselect&&s.nextTick(function(){s.nextTick(function(){L(he.tabs.indexOf(a))})})}),a}function W(){var e={},t=r[0];return e.wrapper=t.querySelector("md-tabs-wrapper"),e.canvas=e.wrapper.querySelector("md-tabs-canvas"),e.paging=e.canvas.querySelector("md-pagination-wrapper"),e.inkBar=e.paging.querySelector("md-ink-bar"),e.nextButton=t.querySelector("md-next-button"),e.prevButton=t.querySelector("md-prev-button"),e.contents=t.querySelectorAll("md-tabs-content-wrapper > md-tab-content"),e.tabs=e.paging.querySelectorAll("md-tab-item"),e.dummies=e.canvas.querySelectorAll("md-dummy-tab"),e}function H(){return he.offsetLeft>0}function F(){var e=W(),t=e.tabs[e.tabs.length-1];return fe()?he.offsetLeft<e.paging.offsetWidth-e.canvas.offsetWidth:t&&t.offsetLeft+t.offsetWidth>e.canvas.clientWidth+he.offsetLeft}function X(){var e=he.tabs[he.focusIndex];return e&&e.id?"tab-item-"+e.id:null}function U(){switch(he.stretchTabs){case"always":return!0;case"never":return!1;default:return!he.shouldPaginate&&i.matchMedia("(max-width: 600px)").matches}}function V(){return he.centerTabs&&!he.shouldPaginate}function G(){if(he.noPagination||!ye)return!1;var e=r.prop("clientWidth");return t.forEach(W().tabs,function(t){e-=t.offsetWidth}),e<0}function Y(e){if(-1===e)return-1;var t,n,r=Math.max(he.tabs.length-e,e);for(t=0;t<=r;t++){if((n=he.tabs[e+t])&&!0!==n.scope.disabled)return n.getIndex();if((n=he.tabs[e-t])&&!0!==n.scope.disabled)return n.getIndex()}return e}function Q(e,t,n){Object.defineProperty(he,e,{get:function(){return n},set:function(e){var r=n;n=e,t&&t(e,r)}})}function K(){he.maxTabWidth=J(),he.shouldPaginate=G()}function Z(e){var n=0;return t.forEach(e,function(e){n+=Math.max(e.offsetWidth,e.getBoundingClientRect().width)}),Math.ceil(n)}function J(){var e=W(),t=e.canvas.clientWidth;return Math.max(0,Math.min(t-1,264))}function ee(){var e=he.tabs[he.selectedIndex],t=he.tabs[he.focusIndex];he.tabs=he.tabs.sort(function(e,t){return e.index-t.index}),he.selectedIndex=he.tabs.indexOf(e),he.focusIndex=he.tabs.indexOf(t)}function te(e,t){var n,r=t?"focusIndex":"selectedIndex",i=he[r];for(n=i+e;he.tabs[n]&&he.tabs[n].scope.disabled;n+=e);n=(i+e+he.tabs.length)%he.tabs.length,he.tabs[n]&&(he[r]=n)}function ne(){he.styleTabItemFocus="keyboard"===p.getLastInteractionType(),W().tabs[he.focusIndex].focus()}function re(e){var n=W();if(t.isNumber(e)||(e=he.focusIndex),n.tabs[e]&&!he.shouldCenterTabs){var r=n.tabs[e],i=r.offsetLeft,a=r.offsetWidth+i;if(0==e)return void(he.offsetLeft=0);if(fe()){var o=Z(Array.prototype.slice.call(n.tabs,0,e)),s=Z(Array.prototype.slice.call(n.tabs,0,e+1));he.offsetLeft=Math.min(he.offsetLeft,ue(o)),he.offsetLeft=Math.max(he.offsetLeft,ue(s-n.canvas.clientWidth))}else he.offsetLeft=Math.max(he.offsetLeft,ue(a-n.canvas.clientWidth+32)),he.offsetLeft=Math.min(he.offsetLeft,ue(i))}}function ie(){ve.forEach(function(e){s.nextTick(e)}),ve=[]}function ae(){for(var e=!1,t=0;t<he.tabs.length;t++)if(he.tabs[t].hasContent){e=!0;break}he.hasContent=e}function oe(){he.selectedIndex=Y(he.selectedIndex),he.focusIndex=Y(he.focusIndex)}function se(){if(!he.dynamicHeight)return r.css("height","");if(!he.tabs.length)return ve.push(se);var e=W(),t=e.contents[he.selectedIndex],i=t?t.offsetHeight:0,a=e.wrapper.offsetHeight,o=i+a,l=r.prop("clientHeight");if(l!==o){"bottom"===r.attr("md-align-tabs")&&(l-=a,o-=a,r.attr("md-border-bottom")!==n&&++l),me=!0;var u={height:l+"px"},d={height:o+"px"};r.css(u),c(r,{from:u,to:d,easing:"cubic-bezier(0.35, 0, 0.25, 1)",duration:.5}).start().done(function(){r.css({transition:"none",height:""}),s.nextTick(function(){r.css("transition","")}),me=!1})}}function ce(){var e=W();if(!e.tabs[he.selectedIndex])return void t.element(e.inkBar).css({left:"auto",right:"auto"});if(!he.tabs.length)return ve.push(he.updateInkBarStyles);if(!r.prop("offsetParent"))return O();var n=he.selectedIndex,i=e.paging.offsetWidth,a=e.tabs[n],o=a.offsetLeft,c=i-o-a.offsetWidth;if(he.shouldCenterTabs){i>Z(e.tabs)&&s.nextTick(ce,!1)}le(),t.element(e.inkBar).css({left:o+"px",right:c+"px"})}function le(){var e=W(),n=he.selectedIndex,r=he.lastSelectedIndex,i=t.element(e.inkBar);t.isNumber(r)&&i.toggleClass("md-left",n<r).toggleClass("md-right",n>r)}function ue(e){var t=W();if(!t.tabs.length||!he.shouldPaginate)return 0;var n=t.tabs[t.tabs.length-1],r=n.offsetLeft+n.offsetWidth;return fe()?(e=Math.min(t.paging.offsetWidth-t.canvas.clientWidth,e),e=Math.max(0,e)):(e=Math.max(0,e),e=Math.min(r-t.canvas.clientWidth,e)),e}function de(e,n){var r=W(),i={colorElement:t.element(r.inkBar)};o.attach(e,n,i)}function pe(e){if(e.hasContent){var n=r[0].querySelectorAll('[md-tab-id="'+e.id+'"]');t.element(n).attr("aria-controls",he.tabContentPrefix+e.id)}}function fe(){return"rtl"==s.bidi()}var he=this,me=!1,ge=W(),ve=[],be=!1,ye=!1;he.$onInit=h,he.updatePagination=s.debounce(K,100),he.redirectFocus=ne,he.attachRipple=de,he.insertTab=B,he.removeTab=q,he.select=L,he.scroll=N,he.nextPage=P,he.previousPage=I,he.keydown=z,he.canPageForward=F,he.canPageBack=H,he.refreshIndex=oe,he.incrementIndex=te,he.getTabElementIndex=E,he.updateInkBarStyles=s.debounce(ce,100),he.updateTabOrder=s.debounce(ee,100),he.getFocusedTabId=X,1===t.version.major&&t.version.minor<=4&&this.$onInit()}e.$inject=["$scope","$element","$window","$mdConstant","$mdTabInkRipple","$mdUtil","$animateCss","$attrs","$compile","$mdTheming","$mdInteraction","MdTabsPaginationService"],e.$inject=["$scope","$element","$window","$mdConstant","$mdTabInkRipple","$mdUtil","$animateCss","$attrs","$compile","$mdTheming","$mdInteraction","MdTabsPaginationService"],t.module("material.components.tabs").controller("MdTabsController",e)}(),function(){function e(e){return{scope:{selectedIndex:"=?mdSelected"},template:function(t,n){return n.$mdTabsTemplate=t.html(),'<md-tabs-wrapper> <md-tab-data></md-tab-data> <md-prev-button tabindex="-1" role="button" aria-label="Previous Page" aria-disabled="{{!$mdTabsCtrl.canPageBack()}}" ng-class="{ \'md-disabled\': !$mdTabsCtrl.canPageBack() }" ng-if="$mdTabsCtrl.shouldPaginate" ng-click="$mdTabsCtrl.previousPage()"> <md-icon md-svg-src="'+e.mdTabsArrow+'"></md-icon> </md-prev-button> <md-next-button tabindex="-1" role="button" aria-label="Next Page" aria-disabled="{{!$mdTabsCtrl.canPageForward()}}" ng-class="{ \'md-disabled\': !$mdTabsCtrl.canPageForward() }" ng-if="$mdTabsCtrl.shouldPaginate" ng-click="$mdTabsCtrl.nextPage()"> <md-icon md-svg-src="'+e.mdTabsArrow+'"></md-icon> </md-next-button> <md-tabs-canvas ng-focus="$mdTabsCtrl.redirectFocus()" ng-class="{ \'md-paginated\': $mdTabsCtrl.shouldPaginate, \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs }" ng-keydown="$mdTabsCtrl.keydown($event)"> <md-pagination-wrapper ng-class="{ \'md-center-tabs\': $mdTabsCtrl.shouldCenterTabs }" md-tab-scroll="$mdTabsCtrl.scroll($event)" role="tablist"> <md-tab-item tabindex="{{ tab.isActive() ? 0 : -1 }}" class="md-tab" ng-repeat="tab in $mdTabsCtrl.tabs" role="tab" id="tab-item-{{::tab.id}}" md-tab-id="{{::tab.id}}"aria-selected="{{tab.isActive()}}" aria-disabled="{{tab.scope.disabled || \'false\'}}" ng-click="$mdTabsCtrl.select(tab.getIndex())" ng-focus="$mdTabsCtrl.hasFocus = true" ng-blur="$mdTabsCtrl.hasFocus = false" ng-class="{ \'md-active\': tab.isActive(), \'md-focused\': tab.hasFocus(), \'md-disabled\': tab.scope.disabled }" ng-disabled="tab.scope.disabled" md-swipe-left="$mdTabsCtrl.nextPage()" md-swipe-right="$mdTabsCtrl.previousPage()" md-tabs-template="::tab.label" md-scope="::tab.parent"></md-tab-item> <md-ink-bar></md-ink-bar> </md-pagination-wrapper> <md-tabs-dummy-wrapper aria-hidden="true" class="md-visually-hidden md-dummy-wrapper"> <md-dummy-tab class="md-tab" tabindex="-1" ng-repeat="tab in $mdTabsCtrl.tabs" md-tabs-template="::tab.label" md-scope="::tab.parent"></md-dummy-tab> </md-tabs-dummy-wrapper> </md-tabs-canvas> </md-tabs-wrapper> <md-tabs-content-wrapper ng-show="$mdTabsCtrl.hasContent && $mdTabsCtrl.selectedIndex >= 0" class="_md"> <md-tab-content id="{{:: $mdTabsCtrl.tabContentPrefix + tab.id}}" class="_md" role="tabpanel" aria-labelledby="tab-item-{{::tab.id}}" md-swipe-left="$mdTabsCtrl.swipeContent && $mdTabsCtrl.incrementIndex(1)" md-swipe-right="$mdTabsCtrl.swipeContent && $mdTabsCtrl.incrementIndex(-1)" ng-if="tab.hasContent" ng-repeat="(index, tab) in $mdTabsCtrl.tabs" ng-class="{ \'md-no-transition\': $mdTabsCtrl.lastSelectedIndex == null, \'md-active\': tab.isActive(), \'md-left\': tab.isLeft(), \'md-right\': tab.isRight(), \'md-no-scroll\': $mdTabsCtrl.dynamicHeight }"> <div md-tabs-template="::tab.template" md-connected-if="tab.isActive()" md-scope="::tab.parent" ng-if="$mdTabsCtrl.enableDisconnect || tab.shouldRender()"></div> </md-tab-content> </md-tabs-content-wrapper>'},controller:"MdTabsController",controllerAs:"$mdTabsCtrl",bindToController:!0}}e.$inject=["$$mdSvgRegistry"],e.$inject=["$$mdSvgRegistry"],t.module("material.components.tabs").directive("mdTabs",e)}(),function(){function e(e,t){return{require:"^?mdTabs",link:function(n,r,i,a){if(a){var o,s,c=function(){a.updatePagination(),a.updateInkBarStyles()};if("MutationObserver"in t){var l={childList:!0,subtree:!0,characterData:!0};o=new MutationObserver(c),o.observe(r[0],l),s=o.disconnect.bind(o)}else{var u=e.debounce(c,15,null,!1);r.on("DOMSubtreeModified",u),s=r.off.bind(r,"DOMSubtreeModified",u)}n.$on("$destroy",function(){s()})}}}}e.$inject=["$mdUtil","$window"],e.$inject=["$mdUtil","$window"],t.module("material.components.tabs").directive("mdTabsDummyWrapper",e)}(),function(){function e(e,t){function n(n,r,i,a){function o(){n.$watch("connected",function(e){!1===e?s():c()}),n.$on("$destroy",c)}function s(){a.enableDisconnect&&t.disconnectScope(l)}function c(){a.enableDisconnect&&t.reconnectScope(l)}if(a){var l=a.enableDisconnect?n.compileScope.$new():n.compileScope;return r.html(n.template),e(r.contents())(l),t.nextTick(o)}}return{restrict:"A",link:n,scope:{template:"=mdTabsTemplate",connected:"=?mdConnectedIf",compileScope:"=mdScope"},require:"^?mdTabs"}}e.$inject=["$compile","$mdUtil"],e.$inject=["$compile","$mdUtil"],t.module("material.components.tabs").directive("mdTabsTemplate",e)}(),function(){
32t.module("material.core").constant("$MD_THEME_CSS",'md-autocomplete.md-THEME_NAME-theme{background:"{{background-A100}}"}md-autocomplete.md-THEME_NAME-theme[disabled]:not([md-floating-label]){background:"{{background-100}}"}md-autocomplete.md-THEME_NAME-theme button md-icon path{fill:"{{background-600}}"}md-autocomplete.md-THEME_NAME-theme button:after{background:"{{background-600-0.3}}"}.md-autocomplete-suggestions-container.md-THEME_NAME-theme{background:"{{background-A100}}"}.md-autocomplete-suggestions-container.md-THEME_NAME-theme li{color:"{{background-900}}"}.md-autocomplete-suggestions-container.md-THEME_NAME-theme li .highlight{color:"{{background-600}}"}.md-autocomplete-suggestions-container.md-THEME_NAME-theme li.selected,.md-autocomplete-suggestions-container.md-THEME_NAME-theme li:hover{background:"{{background-200}}"}md-backdrop{background-color:"{{background-900-0.0}}"}md-backdrop.md-opaque.md-THEME_NAME-theme{background-color:"{{background-900-1.0}}"}md-bottom-sheet.md-THEME_NAME-theme{background-color:"{{background-50}}";border-top-color:"{{background-300}}"}md-bottom-sheet.md-THEME_NAME-theme.md-list md-list-item{color:"{{foreground-1}}"}md-bottom-sheet.md-THEME_NAME-theme .md-subheader{background-color:"{{background-50}}";color:"{{foreground-1}}"}.md-button.md-THEME_NAME-theme:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme:not([disabled]):hover{background-color:"{{background-500-0.2}}"}.md-button.md-THEME_NAME-theme:not([disabled]).md-icon-button:hover{background-color:transparent}.md-button.md-THEME_NAME-theme.md-fab md-icon{color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-primary{color:"{{primary-color}}"}.md-button.md-THEME_NAME-theme.md-primary.md-fab,.md-button.md-THEME_NAME-theme.md-primary.md-raised{color:"{{primary-contrast}}";background-color:"{{primary-color}}"}.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]) md-icon{color:"{{primary-contrast}}"}.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-primary.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-primary.md-raised:not([disabled]):hover{background-color:"{{primary-600}}"}.md-button.md-THEME_NAME-theme.md-primary:not([disabled]) md-icon{color:"{{primary-color}}"}.md-button.md-THEME_NAME-theme.md-fab{background-color:"{{accent-color}}";color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-fab:not([disabled]) .md-icon{color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-fab:not([disabled]):hover{background-color:"{{accent-A700}}"}.md-button.md-THEME_NAME-theme.md-raised{color:"{{background-900}}";background-color:"{{background-50}}"}.md-button.md-THEME_NAME-theme.md-raised:not([disabled]) md-icon{color:"{{background-900}}"}.md-button.md-THEME_NAME-theme.md-raised:not([disabled]):hover{background-color:"{{background-50}}"}.md-button.md-THEME_NAME-theme.md-raised:not([disabled]).md-focused{background-color:"{{background-200}}"}.md-button.md-THEME_NAME-theme.md-warn{color:"{{warn-color}}"}.md-button.md-THEME_NAME-theme.md-warn.md-fab,.md-button.md-THEME_NAME-theme.md-warn.md-raised{color:"{{warn-contrast}}";background-color:"{{warn-color}}"}.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]) md-icon{color:"{{warn-contrast}}"}.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-warn.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-warn.md-raised:not([disabled]):hover{background-color:"{{warn-600}}"}.md-button.md-THEME_NAME-theme.md-warn:not([disabled]) md-icon{color:"{{warn-color}}"}.md-button.md-THEME_NAME-theme.md-accent{color:"{{accent-color}}"}.md-button.md-THEME_NAME-theme.md-accent.md-fab,.md-button.md-THEME_NAME-theme.md-accent.md-raised{color:"{{accent-contrast}}";background-color:"{{accent-color}}"}.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]) md-icon,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]) md-icon{color:"{{accent-contrast}}"}.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-accent.md-fab:not([disabled]):hover,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]).md-focused,.md-button.md-THEME_NAME-theme.md-accent.md-raised:not([disabled]):hover{background-color:"{{accent-A700}}"}.md-button.md-THEME_NAME-theme.md-accent:not([disabled]) md-icon{color:"{{accent-color}}"}.md-button.md-THEME_NAME-theme.md-accent[disabled],.md-button.md-THEME_NAME-theme.md-fab[disabled],.md-button.md-THEME_NAME-theme.md-raised[disabled],.md-button.md-THEME_NAME-theme.md-warn[disabled],.md-button.md-THEME_NAME-theme[disabled]{color:"{{foreground-3}}";cursor:default}.md-button.md-THEME_NAME-theme.md-accent[disabled] md-icon,.md-button.md-THEME_NAME-theme.md-fab[disabled] md-icon,.md-button.md-THEME_NAME-theme.md-raised[disabled] md-icon,.md-button.md-THEME_NAME-theme.md-warn[disabled] md-icon,.md-button.md-THEME_NAME-theme[disabled] md-icon{color:"{{foreground-3}}"}.md-button.md-THEME_NAME-theme.md-fab[disabled],.md-button.md-THEME_NAME-theme.md-raised[disabled]{background-color:"{{foreground-4}}"}.md-button.md-THEME_NAME-theme[disabled]{background-color:transparent}._md a.md-THEME_NAME-theme:not(.md-button).md-primary{color:"{{primary-color}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-primary:hover{color:"{{primary-700}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-accent{color:"{{accent-color}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-accent:hover{color:"{{accent-A700}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-warn{color:"{{warn-color}}"}._md a.md-THEME_NAME-theme:not(.md-button).md-warn:hover{color:"{{warn-700}}"}md-card.md-THEME_NAME-theme{color:"{{foreground-1}}";background-color:"{{background-hue-1}}";border-radius:2px}md-card.md-THEME_NAME-theme .md-card-image{border-radius:2px 2px 0 0}md-card.md-THEME_NAME-theme md-card-header md-card-avatar md-icon{color:"{{background-color}}";background-color:"{{foreground-3}}"}md-card.md-THEME_NAME-theme md-card-header md-card-header-text .md-subhead,md-card.md-THEME_NAME-theme md-card-title md-card-title-text:not(:only-child) .md-subhead{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme .md-ripple{color:"{{accent-A700}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-ripple{color:"{{background-600}}"}md-checkbox.md-THEME_NAME-theme.md-checked.md-focused .md-container:before{background-color:"{{accent-color-0.26}}"}md-checkbox.md-THEME_NAME-theme .md-ink-ripple{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-ink-ripple{color:"{{accent-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-icon{background-color:"{{accent-color-0.87}}"}md-checkbox.md-THEME_NAME-theme.md-checked .md-icon:after{border-color:"{{accent-contrast-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-ripple{color:"{{primary-600}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ripple{color:"{{background-600}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-ink-ripple{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple{color:"{{primary-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon{background-color:"{{primary-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked.md-focused .md-container:before{background-color:"{{primary-color-0.26}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-icon:after{border-color:"{{primary-contrast-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-primary .md-indeterminate[disabled] .md-container{color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-ripple{color:"{{warn-600}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn .md-ink-ripple{color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple{color:"{{warn-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon{background-color:"{{warn-color-0.87}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked.md-focused:not([disabled]) .md-container:before{background-color:"{{warn-color-0.26}}"}md-checkbox.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-icon:after{border-color:"{{background-200}}"}md-checkbox.md-THEME_NAME-theme[disabled]:not(.md-checked) .md-icon{border-color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme[disabled].md-checked .md-icon{background-color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme[disabled].md-checked .md-icon:after{border-color:"{{background-200}}"}md-checkbox.md-THEME_NAME-theme[disabled] .md-icon:after{border-color:"{{foreground-3}}"}md-checkbox.md-THEME_NAME-theme[disabled] .md-label{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips{box-shadow:0 1px "{{foreground-4}}"}md-chips.md-THEME_NAME-theme .md-chips.md-focused{box-shadow:0 2px "{{primary-color}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input{color:"{{foreground-1}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input:-moz-placeholder,md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input::-moz-placeholder{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input:-ms-input-placeholder{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme .md-chips .md-chip-input-container input::-webkit-input-placeholder{color:"{{foreground-3}}"}md-chips.md-THEME_NAME-theme md-chip{background:"{{background-300}}";color:"{{background-800}}"}md-chips.md-THEME_NAME-theme md-chip md-icon{color:"{{background-700}}"}md-chips.md-THEME_NAME-theme md-chip.md-focused{background:"{{primary-color}}";color:"{{primary-contrast}}"}md-chips.md-THEME_NAME-theme md-chip.md-focused md-icon{color:"{{primary-contrast}}"}md-chips.md-THEME_NAME-theme md-chip._md-chip-editing{background:transparent;color:"{{background-800}}"}md-chips.md-THEME_NAME-theme md-chip-remove .md-button md-icon path{fill:"{{background-500}}"}.md-contact-suggestion span.md-contact-email{color:"{{background-400}}"}md-content.md-THEME_NAME-theme{color:"{{foreground-1}}";background-color:"{{background-default}}"}.md-calendar.md-THEME_NAME-theme{background:"{{background-A100}}";color:"{{background-A200-0.87}}"}.md-calendar.md-THEME_NAME-theme tr:last-child td{border-bottom-color:"{{background-200}}"}.md-THEME_NAME-theme .md-calendar-day-header{background:"{{background-300}}";color:"{{background-A200-0.87}}"}.md-THEME_NAME-theme .md-calendar-date.md-calendar-date-today .md-calendar-date-selection-indicator{border:1px solid "{{primary-500}}"}.md-THEME_NAME-theme .md-calendar-date.md-calendar-date-today.md-calendar-date-disabled{color:"{{primary-500-0.6}}"}.md-calendar-date.md-focus .md-THEME_NAME-theme .md-calendar-date-selection-indicator,.md-THEME_NAME-theme .md-calendar-date-selection-indicator:hover{background:"{{background-300}}"}.md-THEME_NAME-theme .md-calendar-date.md-calendar-selected-date .md-calendar-date-selection-indicator,.md-THEME_NAME-theme .md-calendar-date.md-focus.md-calendar-selected-date .md-calendar-date-selection-indicator{background:"{{primary-500}}";color:"{{primary-500-contrast}}";border-color:transparent}.md-THEME_NAME-theme .md-calendar-date-disabled,.md-THEME_NAME-theme .md-calendar-month-label-disabled{color:"{{background-A200-0.435}}"}.md-THEME_NAME-theme .md-datepicker-input{color:"{{foreground-1}}"}.md-THEME_NAME-theme .md-datepicker-input:-moz-placeholder,.md-THEME_NAME-theme .md-datepicker-input::-moz-placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input:-ms-input-placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input::-webkit-input-placeholder{color:"{{foreground-3}}"}.md-THEME_NAME-theme .md-datepicker-input-container{border-bottom-color:"{{foreground-4}}"}.md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-focused{border-bottom-color:"{{primary-color}}"}.md-accent .md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-focused{border-bottom-color:"{{accent-color}}"}.md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-invalid,.md-warn .md-THEME_NAME-theme .md-datepicker-input-container.md-datepicker-focused{border-bottom-color:"{{warn-A700}}"}.md-THEME_NAME-theme .md-datepicker-calendar-pane{border-color:"{{background-hue-1}}"}.md-THEME_NAME-theme .md-datepicker-triangle-button .md-datepicker-expand-triangle{border-top-color:"{{foreground-2}}"}.md-THEME_NAME-theme .md-datepicker-open .md-datepicker-calendar-icon{color:"{{primary-color}}"}.md-accent .md-THEME_NAME-theme .md-datepicker-open .md-datepicker-calendar-icon,.md-THEME_NAME-theme .md-datepicker-open.md-accent .md-datepicker-calendar-icon{color:"{{accent-color}}"}.md-THEME_NAME-theme .md-datepicker-open.md-warn .md-datepicker-calendar-icon,.md-warn .md-THEME_NAME-theme .md-datepicker-open .md-datepicker-calendar-icon{color:"{{warn-A700}}"}.md-THEME_NAME-theme .md-datepicker-calendar{background:"{{background-A100}}"}.md-THEME_NAME-theme .md-datepicker-input-mask-opaque{box-shadow:0 0 0 9999px "{{background-hue-1}}"}.md-THEME_NAME-theme .md-datepicker-open .md-datepicker-input-container{background:"{{background-hue-1}}"}md-dialog.md-THEME_NAME-theme{border-radius:4px;background-color:"{{background-hue-1}}";color:"{{foreground-1}}"}md-dialog.md-THEME_NAME-theme.md-content-overflow .md-actions,md-dialog.md-THEME_NAME-theme.md-content-overflow md-dialog-actions,md-divider.md-THEME_NAME-theme{border-top-color:"{{foreground-4}}"}.layout-gt-lg-row>md-divider.md-THEME_NAME-theme,.layout-gt-md-row>md-divider.md-THEME_NAME-theme,.layout-gt-sm-row>md-divider.md-THEME_NAME-theme,.layout-gt-xs-row>md-divider.md-THEME_NAME-theme,.layout-lg-row>md-divider.md-THEME_NAME-theme,.layout-md-row>md-divider.md-THEME_NAME-theme,.layout-row>md-divider.md-THEME_NAME-theme,.layout-sm-row>md-divider.md-THEME_NAME-theme,.layout-xl-row>md-divider.md-THEME_NAME-theme,.layout-xs-row>md-divider.md-THEME_NAME-theme{border-right-color:"{{foreground-4}}"}md-icon.md-THEME_NAME-theme{color:"{{foreground-2}}"}md-icon.md-THEME_NAME-theme.md-primary{color:"{{primary-color}}"}md-icon.md-THEME_NAME-theme.md-accent{color:"{{accent-color}}"}md-icon.md-THEME_NAME-theme.md-warn{color:"{{warn-color}}"}md-input-container.md-THEME_NAME-theme .md-input{color:"{{foreground-1}}";border-color:"{{foreground-4}}"}md-input-container.md-THEME_NAME-theme .md-input:-moz-placeholder,md-input-container.md-THEME_NAME-theme .md-input::-moz-placeholder{color:"{{foreground-3}}"}md-input-container.md-THEME_NAME-theme .md-input:-ms-input-placeholder{color:"{{foreground-3}}"}md-input-container.md-THEME_NAME-theme .md-input::-webkit-input-placeholder{color:"{{foreground-3}}"}md-input-container.md-THEME_NAME-theme>md-icon{color:"{{foreground-1}}"}md-input-container.md-THEME_NAME-theme .md-placeholder,md-input-container.md-THEME_NAME-theme label{color:"{{foreground-3}}"}md-input-container.md-THEME_NAME-theme label.md-required:after{color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-focused):not(.md-input-invalid) label.md-required:after{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme .md-input-message-animation,md-input-container.md-THEME_NAME-theme .md-input-messages-animation{color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme .md-input-message-animation .md-char-counter,md-input-container.md-THEME_NAME-theme .md-input-messages-animation .md-char-counter{color:"{{foreground-1}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input:-moz-placeholder,md-input-container.md-THEME_NAME-theme.md-input-focused .md-input::-moz-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input:-ms-input-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme.md-input-focused .md-input::-webkit-input-placeholder{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-has-value label{color:"{{foreground-2}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused .md-input,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-resized .md-input{border-color:"{{primary-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused label,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused md-icon{color:"{{primary-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent .md-input{border-color:"{{accent-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent label,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-accent md-icon{color:"{{accent-color}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn .md-input{border-color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn label,md-input-container.md-THEME_NAME-theme:not(.md-input-invalid).md-input-focused.md-warn md-icon{color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme.md-input-invalid .md-input{border-color:"{{warn-A700}}"}md-input-container.md-THEME_NAME-theme.md-input-invalid .md-char-counter,md-input-container.md-THEME_NAME-theme.md-input-invalid .md-input-message-animation,md-input-container.md-THEME_NAME-theme.md-input-invalid label{color:"{{warn-A700}}"}[disabled] md-input-container.md-THEME_NAME-theme .md-input,md-input-container.md-THEME_NAME-theme .md-input[disabled]{border-bottom-color:transparent;color:"{{foreground-3}}";background-image:linear-gradient(90deg,"{{foreground-3}}" 0,"{{foreground-3}}" 33%,transparent 0);background-image:-ms-linear-gradient(left,transparent 0,"{{foreground-3}}" 100%)}md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h3,md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text h4,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h3,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text h4{color:"{{foreground-1}}"}md-list.md-THEME_NAME-theme md-list-item.md-2-line .md-list-item-text p,md-list.md-THEME_NAME-theme md-list-item.md-3-line .md-list-item-text p{color:"{{foreground-2}}"}md-list.md-THEME_NAME-theme .md-proxy-focus.md-focused div.md-no-style{background-color:"{{background-100}}"}md-list.md-THEME_NAME-theme md-list-item .md-avatar-icon{background-color:"{{foreground-3}}";color:"{{background-color}}"}md-list.md-THEME_NAME-theme md-list-item>md-icon{color:"{{foreground-2}}"}md-list.md-THEME_NAME-theme md-list-item>md-icon.md-highlight{color:"{{primary-color}}"}md-list.md-THEME_NAME-theme md-list-item>md-icon.md-highlight.md-accent{color:"{{accent-color}}"}md-menu-content.md-THEME_NAME-theme{background-color:"{{background-A100}}"}md-menu-content.md-THEME_NAME-theme md-menu-item{color:"{{background-A200-0.87}}"}md-menu-content.md-THEME_NAME-theme md-menu-item md-icon{color:"{{background-A200-0.54}}"}md-menu-content.md-THEME_NAME-theme md-menu-item .md-button[disabled],md-menu-content.md-THEME_NAME-theme md-menu-item .md-button[disabled] md-icon{color:"{{background-A200-0.25}}"}md-menu-content.md-THEME_NAME-theme md-menu-divider{background-color:"{{background-A200-0.11}}"}md-menu-bar.md-THEME_NAME-theme>button.md-button{color:"{{foreground-2}}";border-radius:2px}md-menu-bar.md-THEME_NAME-theme md-menu.md-open>button,md-menu-bar.md-THEME_NAME-theme md-menu>button:focus{outline:none;background:"{{background-200}}"}md-menu-bar.md-THEME_NAME-theme.md-open:not(.md-keyboard-mode) md-menu:hover>button{background-color:"{{ background-500-0.2}}"}md-menu-bar.md-THEME_NAME-theme:not(.md-keyboard-mode):not(.md-open) md-menu button:focus,md-menu-bar.md-THEME_NAME-theme:not(.md-keyboard-mode):not(.md-open) md-menu button:hover{background:transparent}md-menu-content.md-THEME_NAME-theme .md-menu>.md-button:after{color:"{{background-A200-0.54}}"}md-menu-content.md-THEME_NAME-theme .md-menu.md-open>.md-button{background-color:"{{ background-500-0.2}}"}md-toolbar.md-THEME_NAME-theme.md-menu-toolbar{background-color:"{{background-A100}}";color:"{{background-A200}}"}md-toolbar.md-THEME_NAME-theme.md-menu-toolbar md-toolbar-filler{background-color:"{{primary-color}}";color:"{{background-A100-0.87}}"}md-toolbar.md-THEME_NAME-theme.md-menu-toolbar md-toolbar-filler md-icon{color:"{{background-A100-0.87}}"}md-nav-bar.md-THEME_NAME-theme .md-nav-bar{background-color:transparent;border-color:"{{foreground-4}}"}md-nav-bar.md-THEME_NAME-theme .md-button._md-nav-button.md-unselected{color:"{{foreground-2}}"}md-nav-bar.md-THEME_NAME-theme md-nav-ink-bar{color:"{{accent-color}}";background:"{{accent-color}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar{background-color:"{{accent-color}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button{color:"{{accent-A100}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button.md-active,md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{accent-contrast}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{accent-contrast-0.1}}"}md-nav-bar.md-THEME_NAME-theme.md-accent>.md-nav-bar md-nav-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar{background-color:"{{warn-color}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button{color:"{{warn-100}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button.md-active,md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{warn-contrast}}"}md-nav-bar.md-THEME_NAME-theme.md-warn>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{warn-contrast-0.1}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar{background-color:"{{primary-color}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button{color:"{{primary-100}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button.md-active,md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{primary-contrast}}"}md-nav-bar.md-THEME_NAME-theme.md-primary>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{primary-contrast-0.1}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar{background-color:"{{primary-color}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button{color:"{{primary-100}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-active,md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{primary-contrast}}"}md-toolbar>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{primary-contrast-0.1}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar{background-color:"{{accent-color}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button{color:"{{accent-A100}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-active,md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{accent-contrast}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{accent-contrast-0.1}}"}md-toolbar.md-accent>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar md-nav-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar{background-color:"{{warn-color}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button{color:"{{warn-100}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-active,md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{color:"{{warn-contrast}}"}md-toolbar.md-warn>md-nav-bar.md-THEME_NAME-theme>.md-nav-bar .md-button._md-nav-button.md-focused{background:"{{warn-contrast-0.1}}"}._md-panel-backdrop.md-THEME_NAME-theme{background-color:"{{background-900-1.0}}"}md-progress-circular.md-THEME_NAME-theme path{stroke:"{{primary-color}}"}md-progress-circular.md-THEME_NAME-theme.md-warn path{stroke:"{{warn-color}}"}md-progress-circular.md-THEME_NAME-theme.md-accent path{stroke:"{{accent-color}}"}md-progress-linear.md-THEME_NAME-theme .md-container{background-color:"{{primary-100}}"}md-progress-linear.md-THEME_NAME-theme .md-bar{background-color:"{{primary-color}}"}md-progress-linear.md-THEME_NAME-theme.md-warn .md-container{background-color:"{{warn-100}}"}md-progress-linear.md-THEME_NAME-theme.md-warn .md-bar{background-color:"{{warn-color}}"}md-progress-linear.md-THEME_NAME-theme.md-accent .md-container{background-color:"{{accent-100}}"}md-progress-linear.md-THEME_NAME-theme.md-accent .md-bar{background-color:"{{accent-color}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-primary .md-bar1{background-color:"{{primary-100}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-primary .md-dashed:before{background:radial-gradient("{{primary-100}}" 0,"{{primary-100}}" 16%,transparent 42%)}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-bar1{background-color:"{{warn-100}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-warn .md-dashed:before{background:radial-gradient("{{warn-100}}" 0,"{{warn-100}}" 16%,transparent 42%)}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-bar1{background-color:"{{accent-100}}"}md-progress-linear.md-THEME_NAME-theme[md-mode=buffer].md-accent .md-dashed:before{background:radial-gradient("{{accent-100}}" 0,"{{accent-100}}" 16%,transparent 42%)}md-radio-button.md-THEME_NAME-theme .md-off{border-color:"{{foreground-2}}"}md-radio-button.md-THEME_NAME-theme .md-on{background-color:"{{accent-color-0.87}}"}md-radio-button.md-THEME_NAME-theme.md-checked .md-off{border-color:"{{accent-color-0.87}}"}md-radio-button.md-THEME_NAME-theme.md-checked .md-ink-ripple{color:"{{accent-color-0.87}}"}md-radio-button.md-THEME_NAME-theme .md-container .md-ripple{color:"{{accent-A700}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-on,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-on{background-color:"{{primary-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-off{border-color:"{{primary-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-checked .md-ink-ripple{color:"{{primary-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-primary .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-primary .md-container .md-ripple{color:"{{primary-600}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-on,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-on,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-on{background-color:"{{warn-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-off,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-off{border-color:"{{warn-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn.md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-checked .md-ink-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-checked .md-ink-ripple{color:"{{warn-color-0.87}}"}md-radio-button.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple,md-radio-button.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]).md-warn .md-container .md-ripple,md-radio-group.md-THEME_NAME-theme:not([disabled]) .md-warn .md-container .md-ripple{color:"{{warn-600}}"}md-radio-button.md-THEME_NAME-theme[disabled],md-radio-group.md-THEME_NAME-theme[disabled]{color:"{{foreground-3}}"}md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-off,md-radio-button.md-THEME_NAME-theme[disabled] .md-container .md-on,md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-off,md-radio-group.md-THEME_NAME-theme[disabled] .md-container .md-on{border-color:"{{foreground-3}}"}md-radio-group.md-THEME_NAME-theme .md-checked .md-ink-ripple{color:"{{accent-color-0.26}}"}md-radio-group.md-THEME_NAME-theme .md-checked:not([disabled]).md-primary .md-ink-ripple,md-radio-group.md-THEME_NAME-theme.md-primary .md-checked:not([disabled]) .md-ink-ripple{color:"{{primary-color-0.26}}"}md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked .md-container:before{background-color:"{{accent-color-0.26}}"}md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked.md-primary .md-container:before,md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty).md-primary .md-checked .md-container:before{background-color:"{{primary-color-0.26}}"}md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty) .md-checked.md-warn .md-container:before,md-radio-group.md-THEME_NAME-theme.md-focused:not(:empty).md-warn .md-checked .md-container:before{background-color:"{{warn-color-0.26}}"}md-input-container md-select.md-THEME_NAME-theme .md-select-value span:first-child:after{color:"{{warn-A700}}"}md-input-container:not(.md-input-focused):not(.md-input-invalid) md-select.md-THEME_NAME-theme .md-select-value span:first-child:after{color:"{{foreground-3}}"}md-input-container.md-input-focused:not(.md-input-has-value) md-select.md-THEME_NAME-theme .md-select-value,md-input-container.md-input-focused:not(.md-input-has-value) md-select.md-THEME_NAME-theme .md-select-value.md-select-placeholder{color:"{{primary-color}}"}md-input-container.md-input-invalid md-select.md-THEME_NAME-theme .md-select-value{color:"{{warn-A700}}"!important;border-bottom-color:"{{warn-A700}}"!important}md-input-container.md-input-invalid md-select.md-THEME_NAME-theme.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme[disabled] .md-select-value{border-bottom-color:transparent;background-image:linear-gradient(90deg,"{{foreground-3}}" 0,"{{foreground-3}}" 33%,transparent 0);background-image:-ms-linear-gradient(left,transparent 0,"{{foreground-3}}" 100%)}md-select.md-THEME_NAME-theme .md-select-value{border-bottom-color:"{{foreground-4}}"}md-select.md-THEME_NAME-theme .md-select-value.md-select-placeholder{color:"{{foreground-3}}"}md-select.md-THEME_NAME-theme .md-select-value span:first-child:after{color:"{{warn-A700}}"}md-select.md-THEME_NAME-theme.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme.ng-invalid.ng-touched .md-select-value{color:"{{warn-A700}}"!important;border-bottom-color:"{{warn-A700}}"!important}md-select.md-THEME_NAME-theme.ng-invalid.ng-touched.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-value{border-bottom-color:"{{primary-color}}";color:"{{ foreground-1 }}"}md-select.md-THEME_NAME-theme:not([disabled]):focus .md-select-value.md-select-placeholder{color:"{{ foreground-1 }}"}md-select.md-THEME_NAME-theme:not([disabled]):focus.md-no-underline .md-select-value{border-bottom-color:transparent!important}md-select.md-THEME_NAME-theme:not([disabled]):focus.md-accent .md-select-value{border-bottom-color:"{{accent-color}}"}md-select.md-THEME_NAME-theme:not([disabled]):focus.md-warn .md-select-value{border-bottom-color:"{{warn-color}}"}md-select.md-THEME_NAME-theme[disabled] .md-select-icon,md-select.md-THEME_NAME-theme[disabled] .md-select-value,md-select.md-THEME_NAME-theme[disabled] .md-select-value.md-select-placeholder{color:"{{foreground-3}}"}md-select.md-THEME_NAME-theme .md-select-icon{color:"{{foreground-2}}"}md-select-menu.md-THEME_NAME-theme md-content{background:"{{background-A100}}"}md-select-menu.md-THEME_NAME-theme md-content md-optgroup{color:"{{background-600-0.87}}"}md-select-menu.md-THEME_NAME-theme md-content md-option{color:"{{background-900-0.87}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[disabled] .md-text{color:"{{background-400-0.87}}"}md-select-menu.md-THEME_NAME-theme md-content md-option:not([disabled]):focus,md-select-menu.md-THEME_NAME-theme md-content md-option:not([disabled]):hover{background:"{{background-200}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected]{color:"{{primary-500}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected]:focus{color:"{{primary-600}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected].md-accent{color:"{{accent-color}}"}md-select-menu.md-THEME_NAME-theme md-content md-option[selected].md-accent:focus{color:"{{accent-A700}}"}.md-checkbox-enabled.md-THEME_NAME-theme .md-ripple{color:"{{primary-600}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-ripple{color:"{{background-600}}"}.md-checkbox-enabled.md-THEME_NAME-theme .md-ink-ripple{color:"{{foreground-2}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-ink-ripple{color:"{{primary-color-0.87}}"}.md-checkbox-enabled.md-THEME_NAME-theme:not(.md-checked) .md-icon{border-color:"{{foreground-2}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-icon{background-color:"{{primary-color-0.87}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected].md-focused .md-container:before{background-color:"{{primary-color-0.26}}"}.md-checkbox-enabled.md-THEME_NAME-theme[selected] .md-icon:after{border-color:"{{primary-contrast-0.87}}"}.md-checkbox-enabled.md-THEME_NAME-theme .md-indeterminate[disabled] .md-container{color:"{{foreground-3}}"}.md-checkbox-enabled.md-THEME_NAME-theme md-option .md-text{color:"{{background-900-0.87}}"}md-sidenav.md-THEME_NAME-theme,md-sidenav.md-THEME_NAME-theme md-content{background-color:"{{background-hue-1}}"}md-slider.md-THEME_NAME-theme .md-track{background-color:"{{foreground-3}}"}md-slider.md-THEME_NAME-theme .md-track-ticks{color:"{{background-contrast}}"}md-slider.md-THEME_NAME-theme .md-focus-ring{background-color:"{{accent-A200-0.2}}"}md-slider.md-THEME_NAME-theme .md-disabled-thumb{border-color:"{{background-color}}";background-color:"{{background-color}}"}md-slider.md-THEME_NAME-theme.md-min .md-thumb:after{background-color:"{{background-color}}";border-color:"{{foreground-3}}"}md-slider.md-THEME_NAME-theme.md-min .md-focus-ring{background-color:"{{foreground-3-0.38}}"}md-slider.md-THEME_NAME-theme.md-min[md-discrete] .md-thumb:after{background-color:"{{background-contrast}}";border-color:transparent}md-slider.md-THEME_NAME-theme.md-min[md-discrete] .md-sign{background-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme.md-min[md-discrete] .md-sign:after{border-top-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme.md-min[md-discrete][md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme .md-track.md-track-fill{background-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-thumb:after{border-color:"{{accent-color}}";background-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-sign{background-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-sign:after{border-top-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme[md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{accent-color}}"}md-slider.md-THEME_NAME-theme .md-thumb-text{color:"{{accent-contrast}}"}md-slider.md-THEME_NAME-theme.md-warn .md-focus-ring{background-color:"{{warn-200-0.38}}"}md-slider.md-THEME_NAME-theme.md-warn .md-track.md-track-fill{background-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-thumb:after{border-color:"{{warn-color}}";background-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-sign{background-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-sign:after{border-top-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn[md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{warn-color}}"}md-slider.md-THEME_NAME-theme.md-warn .md-thumb-text{color:"{{warn-contrast}}"}md-slider.md-THEME_NAME-theme.md-primary .md-focus-ring{background-color:"{{primary-200-0.38}}"}md-slider.md-THEME_NAME-theme.md-primary .md-track.md-track-fill{background-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-thumb:after{border-color:"{{primary-color}}";background-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-sign{background-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-sign:after{border-top-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary[md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{primary-color}}"}md-slider.md-THEME_NAME-theme.md-primary .md-thumb-text{color:"{{primary-contrast}}"}md-slider.md-THEME_NAME-theme[disabled] .md-thumb:after{border-color:transparent}md-slider.md-THEME_NAME-theme[disabled]:not(.md-min) .md-thumb:after,md-slider.md-THEME_NAME-theme[disabled][md-discrete] .md-thumb:after{background-color:"{{foreground-3}}";border-color:transparent}md-slider.md-THEME_NAME-theme[disabled][readonly] .md-sign{background-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme[disabled][readonly] .md-sign:after{border-top-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme[disabled][readonly][md-vertical] .md-sign:after{border-top-color:transparent;border-left-color:"{{background-400}}"}md-slider.md-THEME_NAME-theme[disabled][readonly] .md-disabled-thumb{border-color:transparent;background-color:transparent}md-slider-container[disabled]>:first-child:not(md-slider),md-slider-container[disabled]>:last-child:not(md-slider){color:"{{foreground-3}}"}.md-subheader.md-THEME_NAME-theme{color:"{{ foreground-2-0.23 }}";background-color:"{{background-default}}"}.md-subheader.md-THEME_NAME-theme.md-primary{color:"{{primary-color}}"}.md-subheader.md-THEME_NAME-theme.md-accent{color:"{{accent-color}}"}.md-subheader.md-THEME_NAME-theme.md-warn{color:"{{warn-color}}"}md-switch.md-THEME_NAME-theme .md-ink-ripple{color:"{{background-500}}"}md-switch.md-THEME_NAME-theme .md-thumb{background-color:"{{background-50}}"}md-switch.md-THEME_NAME-theme .md-bar{background-color:"{{background-500}}"}md-switch.md-THEME_NAME-theme.md-checked .md-ink-ripple{color:"{{accent-color}}"}md-switch.md-THEME_NAME-theme.md-checked .md-thumb{background-color:"{{accent-color}}"}md-switch.md-THEME_NAME-theme.md-checked .md-bar{background-color:"{{accent-color-0.5}}"}md-switch.md-THEME_NAME-theme.md-checked.md-focused .md-thumb:before{background-color:"{{accent-color-0.26}}"}md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-ink-ripple{color:"{{primary-color}}"}md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-thumb{background-color:"{{primary-color}}"}md-switch.md-THEME_NAME-theme.md-checked.md-primary .md-bar{background-color:"{{primary-color-0.5}}"}md-switch.md-THEME_NAME-theme.md-checked.md-primary.md-focused .md-thumb:before{background-color:"{{primary-color-0.26}}"}md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-ink-ripple{color:"{{warn-color}}"}md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-thumb{background-color:"{{warn-color}}"}md-switch.md-THEME_NAME-theme.md-checked.md-warn .md-bar{background-color:"{{warn-color-0.5}}"}md-switch.md-THEME_NAME-theme.md-checked.md-warn.md-focused .md-thumb:before{background-color:"{{warn-color-0.26}}"}md-switch.md-THEME_NAME-theme[disabled] .md-thumb{background-color:"{{background-400}}"}md-switch.md-THEME_NAME-theme[disabled] .md-bar{background-color:"{{foreground-4}}"}md-tabs.md-THEME_NAME-theme md-tabs-wrapper{background-color:transparent;border-color:"{{foreground-4}}"}md-tabs.md-THEME_NAME-theme .md-paginator md-icon{color:"{{primary-color}}"}md-tabs.md-THEME_NAME-theme md-ink-bar{color:"{{accent-color}}";background:"{{accent-color}}"}md-tabs.md-THEME_NAME-theme .md-tab{color:"{{foreground-2}}"}md-tabs.md-THEME_NAME-theme .md-tab[disabled],md-tabs.md-THEME_NAME-theme .md-tab[disabled] md-icon{color:"{{foreground-3}}"}md-tabs.md-THEME_NAME-theme .md-tab.md-active,md-tabs.md-THEME_NAME-theme .md-tab.md-active md-icon,md-tabs.md-THEME_NAME-theme .md-tab.md-focused,md-tabs.md-THEME_NAME-theme .md-tab.md-focused md-icon{color:"{{primary-color}}"}md-tabs.md-THEME_NAME-theme .md-tab.md-focused{background:"{{primary-color-0.1}}"}md-tabs.md-THEME_NAME-theme .md-tab .md-ripple-container{color:"{{accent-A100}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper{background-color:"{{accent-color}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{accent-A100}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{accent-contrast}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{accent-contrast-0.1}}"}md-tabs.md-THEME_NAME-theme.md-accent>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper{background-color:"{{primary-color}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{primary-100}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{primary-contrast}}"}md-tabs.md-THEME_NAME-theme.md-primary>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{primary-contrast-0.1}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper{background-color:"{{warn-color}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{warn-100}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{warn-contrast}}"}md-tabs.md-THEME_NAME-theme.md-warn>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{warn-contrast-0.1}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{primary-color}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{primary-100}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{primary-contrast}}"}md-toolbar>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{primary-contrast-0.1}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{accent-color}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{accent-A100}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{accent-contrast}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{accent-contrast-0.1}}"}md-toolbar.md-accent>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-ink-bar{color:"{{primary-600-1}}";background:"{{primary-600-1}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper{background-color:"{{warn-color}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]),md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]) md-icon{color:"{{warn-100}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-active md-icon,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused,md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused md-icon{color:"{{warn-contrast}}"}md-toolbar.md-warn>md-tabs.md-THEME_NAME-theme>md-tabs-wrapper>md-tabs-canvas>md-pagination-wrapper>md-tab-item:not([disabled]).md-focused{background:"{{warn-contrast-0.1}}"}md-toast.md-THEME_NAME-theme .md-toast-content{background-color:#323232;color:"{{background-50}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button{color:"{{background-50}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button.md-highlight{color:"{{accent-color}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button.md-highlight.md-primary{color:"{{primary-color}}"}md-toast.md-THEME_NAME-theme .md-toast-content .md-button.md-highlight.md-warn{color:"{{warn-color}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar){background-color:"{{primary-color}}";color:"{{primary-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) md-icon{color:"{{primary-contrast}}";fill:"{{primary-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar) .md-button[disabled] md-icon{color:"{{primary-contrast-0.26}}";fill:"{{primary-contrast-0.26}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent{background-color:"{{accent-color}}";color:"{{accent-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent .md-ink-ripple{color:"{{accent-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent md-icon{color:"{{accent-contrast}}";fill:"{{accent-contrast}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-accent .md-button[disabled] md-icon{color:"{{accent-contrast-0.26}}";fill:"{{accent-contrast-0.26}}"}md-toolbar.md-THEME_NAME-theme:not(.md-menu-toolbar).md-warn{background-color:"{{warn-color}}";color:"{{warn-contrast}}"}.md-panel.md-tooltip.md-THEME_NAME-theme{color:"{{background-700-contrast}}";background-color:"{{background-700}}"}body.md-THEME_NAME-theme,html.md-THEME_NAME-theme{color:"{{foreground-1}}";background-color:"{{background-color}}"}')
33}()}(window,window.angular),window.ngMaterial={version:{full:"1.1.8"}}},{}],255:[function(e,t,n){e("angular"),e("angular-animate"),e("angular-aria"),e("./angular-material"),t.exports="ngMaterial"},{"./angular-material":254,angular:263,"angular-animate":245,"angular-aria":247}],256:[function(e,t,n){!function(e,t){"use strict";function n(e){return null!=e&&""!==e&&"hasOwnProperty"!==e&&o.test("."+e)}function r(e,r){if(!n(r))throw a("badmember",'Dotted member path "@{0}" is invalid.',r);for(var i=r.split("."),o=0,s=i.length;o<s&&t.isDefined(e);o++){var c=i[o];e=null!==e?e[c]:void 0}return e}function i(e,n){n=n||{},t.forEach(n,function(e,t){delete n[t]});for(var r in e)!e.hasOwnProperty(r)||"$"===r.charAt(0)&&"$"===r.charAt(1)||(n[r]=e[r]);return n}var a=t.$$minErr("$resource"),o=/^(\.[a-zA-Z_$@][0-9a-zA-Z_$@]*)+$/;t.module("ngResource",["ng"]).provider("$resource",function(){var e=/^https?:\/\/[^\/]*/,n=this;this.defaults={stripTrailingSlashes:!0,cancellable:!1,actions:{get:{method:"GET"},save:{method:"POST"},query:{method:"GET",isArray:!0},remove:{method:"DELETE"},delete:{method:"DELETE"}}},this.$get=["$http","$log","$q","$timeout",function(o,s,c,l){function u(e){return d(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function d(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,t?"%20":"+")}function p(e,t){this.template=e,this.defaults=g({},n.defaults,t),this.urlParams={}}function f(e,t,u,d){function _(e,n){var i={};return n=g({},t,n),m(n,function(t,n){x(t)&&(t=t(e)),i[n]=t&&t.charAt&&"@"===t.charAt(0)?r(e,t.substr(1)):t}),i}function w(e){return e.resource}function A(e){i(e||{},this)}var S=new p(e,d);return u=g({},n.defaults.actions,u),A.prototype.toJSON=function(){var e=g({},this);return delete e.$promise,delete e.$resolved,delete e.$cancelRequest,e},m(u,function(e,t){var n=/^(POST|PUT|PATCH)$/i.test(e.method),r=e.timeout,u=y(e.cancellable)?e.cancellable:S.defaults.cancellable;r&&!M(r)&&(s.debug("ngResource:\n Only numeric values are allowed as `timeout`.\n Promises are not supported in $resource, because the same value would be used for multiple requests. If you are looking for a way to cancel requests, you should use the `cancellable` option."),delete e.timeout,r=null),A[t]=function(s,d,p,f){var y,M,k,$={};switch(arguments.length){case 4:k=f,M=p;case 3:case 2:if(!x(d)){$=s,y=d,M=p;break}if(x(s)){M=s,k=d;break}M=d,k=p;case 1:x(s)?M=s:n?y=s:$=s;break;case 0:break;default:throw a("badargs","Expected up to 4 arguments [params, data, success, error], got {0} arguments",arguments.length)}var T,C,E=this instanceof A,O=E?y:e.isArray?[]:new A(y),z={},L=e.interceptor&&e.interceptor.response||w,N=e.interceptor&&e.interceptor.responseError||void 0;m(e,function(e,t){switch(t){default:z[t]=v(e);break;case"params":case"isArray":case"interceptor":case"cancellable":}}),!E&&u&&(T=c.defer(),z.timeout=T.promise,r&&(C=l(T.resolve,r))),n&&(z.data=y),S.setUrlParams(z,g({},_(y,e.params||{}),$),e.url);var P=o(z).then(function(n){var r=n.data;if(r){if(b(r)!==!!e.isArray)throw a("badcfg","Error in resource configuration for action `{0}`. Expected response to contain an {1} but got an {2} (Request: {3} {4})",t,e.isArray?"array":"object",b(r)?"array":"object",z.method,z.url);if(e.isArray)O.length=0,m(r,function(e){"object"===(void 0===e?"undefined":_typeof2(e))?O.push(new A(e)):O.push(e)});else{var o=O.$promise;i(r,O),O.$promise=o}}return n.resource=O,n},function(e){return(k||h)(e),c.reject(e)});return P.finally(function(){O.$resolved=!0,!E&&u&&(O.$cancelRequest=h,l.cancel(C),T=C=z.timeout=null)}),P=P.then(function(e){var t=L(e);return(M||h)(t,e.headers,e.status,e.statusText),t},N),E?P:(O.$promise=P,O.$resolved=!1,u&&(O.$cancelRequest=T.resolve),O)},A.prototype["$"+t]=function(e,n,r){x(e)&&(r=n,n=e,e={});var i=A[t].call(this,e,this,n,r);return i.$promise||i}}),A.bind=function(n){var r=g({},t,n);return f(e,r,u,d)},A}var h=t.noop,m=t.forEach,g=t.extend,v=t.copy,b=t.isArray,y=t.isDefined,x=t.isFunction,M=t.isNumber;return p.prototype={setUrlParams:function(t,n,r){var i,o,s=this,c=r||s.template,l="",p=s.urlParams={};m(c.split(/\W/),function(e){if("hasOwnProperty"===e)throw a("badname","hasOwnProperty is not a valid parameter name.");!new RegExp("^\\d+$").test(e)&&e&&new RegExp("(^|[^\\\\]):"+e+"(\\W|$)").test(c)&&(p[e]={isQueryParamValue:new RegExp("\\?.*=:"+e+"(?:\\W|$)").test(c)})}),c=c.replace(/\\:/g,":"),c=c.replace(e,function(e){return l=e,""}),n=n||{},m(s.urlParams,function(e,t){i=n.hasOwnProperty(t)?n[t]:s.defaults[t],y(i)&&null!==i?(o=e.isQueryParamValue?d(i,!0):u(i),c=c.replace(new RegExp(":"+t+"(\\W|$)","g"),function(e,t){return o+t})):c=c.replace(new RegExp("(/?):"+t+"(\\W|$)","g"),function(e,t,n){return"/"===n.charAt(0)?n:t+n})}),s.defaults.stripTrailingSlashes&&(c=c.replace(/\/+$/,"")||"/"),c=c.replace(/\/\.(?=\w+($|\?))/,"."),t.url=l+c.replace(/\/\\\./,"/."),m(n,function(e,n){s.urlParams[n]||(t.params=t.params||{},t.params[n]=e)})}},f}]})}(window,window.angular)},{}],257:[function(e,t,n){e("./angular-resource"),t.exports="ngResource"},{"./angular-resource":256}],258:[function(e,t,n){!function(e,t){"use strict";function n(){function n(e,t){var n,r={},i=e.split(",");for(n=0;n<i.length;n++)r[t?c(i[n]):i[n]]=!0;return r}function r(t,n){null===t||void 0===t?t="":"string"!=typeof t&&(t=""+t),b.innerHTML=t;var r=5;do{if(0===r)throw p("uinput","Failed to sanitize html because the input is unstable");r--,e.document.documentMode&&g(b),t=b.innerHTML,b.innerHTML=t}while(t!==b.innerHTML);for(var i=b.firstChild;i;){switch(i.nodeType){case 1:n.start(i.nodeName.toLowerCase(),f(i.attributes));break;case 3:n.chars(i.textContent)}var a;if(!((a=i.firstChild)||(1===i.nodeType&&n.end(i.nodeName.toLowerCase()),a=i.nextSibling)))for(;null==a&&(i=i.parentNode)!==b;)a=i.nextSibling,1===i.nodeType&&n.end(i.nodeName.toLowerCase());i=a}for(;i=b.firstChild;)b.removeChild(i)}function f(e){for(var t={},n=0,r=e.length;n<r;n++){var i=e[n];t[i.name]=i.value}return t}function h(e){return e.replace(/&/g,"&amp;").replace(y,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(x,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function m(e,t){var n=!1,r=i(e,e.push);return{start:function(e,i){e=c(e),!n&&T[e]&&(n=e),n||!0!==C[e]||(r("<"),r(e),o(i,function(n,i){var a=c(i),o="img"===e&&"src"===a||"background"===a;!0!==L[a]||!0===E[a]&&!t(n,o)||(r(" "),r(i),r('="'),r(h(n)),r('"'))}),r(">"))},end:function(e){e=c(e),n||!0!==C[e]||!0===M[e]||(r("</"),r(e),r(">")),e==n&&(n=!1)},chars:function(e){n||r(h(e))}}}function g(t){for(;t;){if(t.nodeType===e.Node.ELEMENT_NODE)for(var n=t.attributes,r=0,i=n.length;r<i;r++){var a=n[r],o=a.name.toLowerCase();"xmlns:ns1"!==o&&0!==o.lastIndexOf("ns1:",0)||(t.removeAttributeNode(a),r--,i--)}var s=t.firstChild;s&&g(s),t=t.nextSibling}}var v=!1;this.$get=["$$sanitizeUri",function(e){return v&&a(C,$),function(t){var n=[];return u(t,d(n,function(t,n){return!/^unsafe:/.test(e(t,n))})),n.join("")}}],this.enableSvg=function(e){return s(e)?(v=e,this):v},i=t.bind,a=t.extend,o=t.forEach,s=t.isDefined,c=t.lowercase,l=t.noop,u=r,d=m;var b,y=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,x=/([^#-~ |!])/g,M=n("area,br,col,hr,img,wbr"),_=n("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),w=n("rp,rt"),A=a({},w,_),S=a({},_,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")),k=a({},w,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")),$=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"),T=n("script,style"),C=a({},M,S,k,A),E=n("background,cite,href,longdesc,src,xlink:href"),O=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"),z=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),L=a({},E,z,O);!function(e){var t;if(!e.document||!e.document.implementation)throw p("noinert","Can't create an inert html document");t=e.document.implementation.createHTMLDocument("inert");var n=t.documentElement||t.getDocumentElement(),r=n.getElementsByTagName("body");if(1===r.length)b=r[0];else{var i=t.createElement("html");b=t.createElement("body"),i.appendChild(b),t.appendChild(i)}}(e)}function r(e){var t=[];return d(t,l).chars(e),t.join("")}var i,a,o,s,c,l,u,d,p=t.$$minErr("$sanitize");t.module("ngSanitize",[]).provider("$sanitize",n),t.module("ngSanitize").filter("linky",["$sanitize",function(e){var n=/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i,i=/^mailto:/i,a=t.$$minErr("linky"),o=t.isDefined,s=t.isFunction,c=t.isObject,l=t.isString;return function(t,u,d){function p(e){e&&b.push(r(e))}if(null==t||""===t)return t;if(!l(t))throw a("notstring","Expected string but received: {0}",t);for(var f,h,m,g=s(d)?d:c(d)?function(){return d}:function(){return{}},v=t,b=[];f=v.match(n);)h=f[0],f[2]||f[4]||(h=(f[3]?"http://":"mailto:")+h),m=f.index,p(v.substr(0,m)),function(e,t){var n,r=g(e);b.push("<a ");for(n in r)b.push(n+'="'+r[n]+'" ');!o(u)||"target"in r||b.push('target="',u,'" '),b.push('href="',e.replace(/"/g,"&quot;"),'">'),p(t),b.push("</a>")}(h,f[0].replace(i,"")),v=v.substring(m+f[0].length);return p(v),e(b.join(""))}}])}(window,window.angular)},{}],259:[function(e,t,n){e("./angular-sanitize"),t.exports="ngSanitize"},{"./angular-sanitize":258}],260:[function(e,t,n){var r=function(e){"use strict";return.5>e?Math.pow(2*e,2)/2:1-Math.pow(2*(1-e),2)/2};angular.module("duScroll",["duScroll.scrollspy","duScroll.smoothScroll","duScroll.scrollContainer","duScroll.spyContext","duScroll.scrollHelpers"]).value("duScrollDuration",350).value("duScrollSpyWait",100).value("duScrollGreedy",!1).value("duScrollOffset",0).value("duScrollEasing",r).value("duScrollCancelOnEvents","scroll mousedown mousewheel touchmove keydown").value("duScrollBottomSpy",!1).value("duScrollActiveClass","active"),angular.module("duScroll.scrollHelpers",["duScroll.requestAnimation"]).run(["$window","$q","cancelAnimation","requestAnimation","duScrollEasing","duScrollDuration","duScrollOffset","duScrollCancelOnEvents",function(e,t,n,r,i,a,o,s){"use strict";var c={},l=function(e){return"undefined"!=typeof HTMLDocument&&e instanceof HTMLDocument||e.nodeType&&e.nodeType===e.DOCUMENT_NODE},u=function(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement||e.nodeType&&e.nodeType===e.ELEMENT_NODE},d=function(e){return u(e)||l(e)?e:e[0]};c.duScrollTo=function(t,n,r,i){var a;if(angular.isElement(t)?a=this.duScrollToElement:angular.isDefined(r)&&(a=this.duScrollToAnimated),a)return a.apply(this,arguments);var o=d(this);return l(o)?e.scrollTo(t,n):(o.scrollLeft=t,void(o.scrollTop=n))};var p,f;c.duScrollToAnimated=function(e,a,o,c){o&&!c&&(c=i);var l=this.duScrollLeft(),u=this.duScrollTop(),d=Math.round(e-l),h=Math.round(a-u),m=null,g=0,v=this,b=function e(t){(!t||g&&t.which>0)&&(s&&v.unbind(s,e),n(p),f.reject(),p=null)};if(p&&b(),f=t.defer(),0===o||!d&&!h)return 0===o&&v.duScrollTo(e,a),f.resolve(),f.promise;var y=function e(t){null===m&&(m=t),g=t-m;var n=g>=o?1:c(g/o);v.scrollTo(l+Math.ceil(d*n),u+Math.ceil(h*n)),1>n?p=r(e):(s&&v.unbind(s,b),p=null,f.resolve())};return v.duScrollTo(l,u),s&&v.bind(s,b),p=r(y),f.promise},c.duScrollToElement=function(e,t,n,r){var i=d(this);(!angular.isNumber(t)||isNaN(t))&&(t=o);var a=this.duScrollTop()+d(e).getBoundingClientRect().top-t;return u(i)&&(a-=i.getBoundingClientRect().top),this.duScrollTo(0,a,n,r)},c.duScrollLeft=function(t,n,r){if(angular.isNumber(t))return this.duScrollTo(t,this.duScrollTop(),n,r);var i=d(this);return l(i)?e.scrollX||document.documentElement.scrollLeft||document.body.scrollLeft:i.scrollLeft},c.duScrollTop=function(t,n,r){if(angular.isNumber(t))return this.duScrollTo(this.duScrollLeft(),t,n,r);var i=d(this);return l(i)?e.scrollY||document.documentElement.scrollTop||document.body.scrollTop:i.scrollTop},c.duScrollToElementAnimated=function(e,t,n,r){return this.duScrollToElement(e,t,n||a,r)},c.duScrollTopAnimated=function(e,t,n){return this.duScrollTop(e,t||a,n)},c.duScrollLeftAnimated=function(e,t,n){return this.duScrollLeft(e,t||a,n)},angular.forEach(c,function(e,t){angular.element.prototype[t]=e;var n=t.replace(/^duScroll/,"scroll");angular.isUndefined(angular.element.prototype[n])&&(angular.element.prototype[n]=e)})}]),angular.module("duScroll.polyfill",[]).factory("polyfill",["$window",function(e){"use strict";var t=["webkit","moz","o","ms"];return function(n,r){if(e[n])return e[n];for(var i,a=n.substr(0,1).toUpperCase()+n.substr(1),o=0;o<t.length;o++)if(i=t[o]+a,e[i])return e[i];return r}}]),angular.module("duScroll.requestAnimation",["duScroll.polyfill"]).factory("requestAnimation",["polyfill","$timeout",function(e,t){"use strict";var n=0;return e("requestAnimationFrame",function(e,r){var i=(new Date).getTime(),a=Math.max(0,16-(i-n)),o=t(function(){e(i+a)},a);return n=i+a,o})}]).factory("cancelAnimation",["polyfill","$timeout",function(e,t){"use strict";return e("cancelAnimationFrame",function(e){t.cancel(e)})}]),angular.module("duScroll.spyAPI",["duScroll.scrollContainerAPI"]).factory("spyAPI",["$rootScope","$timeout","$window","$document","scrollContainerAPI","duScrollGreedy","duScrollSpyWait","duScrollBottomSpy","duScrollActiveClass",function(e,t,n,r,i,a,o,s,c){"use strict";var l=function(i){var l=!1,u=!1,d=function(){u=!1;var t,o=i.container,l=o[0],d=0;"undefined"!=typeof HTMLElement&&l instanceof HTMLElement||l.nodeType&&l.nodeType===l.ELEMENT_NODE?(d=l.getBoundingClientRect().top,t=Math.round(l.scrollTop+l.clientHeight)>=l.scrollHeight):t=Math.round(n.pageYOffset+n.innerHeight)>=r[0].body.scrollHeight;var p,f,h,m,g,v,b=s&&t?"bottom":"top";for(m=i.spies,f=i.currentlyActive,h=void 0,p=0;p<m.length;p++)g=m[p],(v=g.getTargetPosition())&&(s&&t||v.top+g.offset-d<20&&(a||-1*v.top+d)<v.height)&&(!h||h[b]<v[b])&&(h={spy:g},h[b]=v[b]);h&&(h=h.spy),f===h||a&&!h||(f&&(f.$element.removeClass(c),e.$broadcast("duScrollspy:becameInactive",f.$element,angular.element(f.getTargetElement()))),h&&(h.$element.addClass(c),e.$broadcast("duScrollspy:becameActive",h.$element,angular.element(h.getTargetElement()))),i.currentlyActive=h)};return o?function(){l?u=!0:(d(),l=t(function(){l=!1,u&&d()},o,!1))}:d},u={},d=function(e){var t=e.$id,n={spies:[]};return n.handler=l(n),u[t]=n,e.$on("$destroy",function(){p(e)}),t},p=function(e){var t=e.$id,n=u[t],r=n.container;r&&r.off("scroll",n.handler),delete u[t]},f=d(e),h=function e(t){return u[t.$id]?u[t.$id]:t.$parent?e(t.$parent):u[f]},m=function(e){var t,n,r=e.$scope;if(r)return h(r);for(n in u)if(t=u[n],-1!==t.spies.indexOf(e))return t},g=function(e){for(;e.parentNode;)if((e=e.parentNode)===document)return!0;return!1};return{addSpy:function(e){var t=m(e);t&&(t.spies.push(e),t.container&&g(t.container)||(t.container&&t.container.off("scroll",t.handler),t.container=i.getContainer(e.$scope),t.container.on("scroll",t.handler).triggerHandler("scroll")))},removeSpy:function(e){var t=m(e);e===t.currentlyActive&&(t.currentlyActive=null);var n=t.spies.indexOf(e);-1!==n&&t.spies.splice(n,1),e.$element=null},createContext:d,destroyContext:p,getContextForScope:h}}]),angular.module("duScroll.scrollContainerAPI",[]).factory("scrollContainerAPI",["$document",function(e){"use strict";var t={},n=function(e,n){var r=e.$id;return t[r]=n,r},r=function e(n){return t[n.$id]?n.$id:n.$parent?e(n.$parent):void 0};return{getContainerId:r,getContainer:function(n){var i=r(n);return i?t[i]:e},setContainer:n,removeContainer:function(e){var n=r(e);n&&delete t[n]}}}]),angular.module("duScroll.smoothScroll",["duScroll.scrollHelpers","duScroll.scrollContainerAPI"]).directive("duSmoothScroll",["duScrollDuration","duScrollOffset","scrollContainerAPI",function(e,t,n){"use strict";return{link:function(r,i,a){i.on("click",function(i){if(a.href&&-1!==a.href.indexOf("#")||""!==a.duSmoothScroll){var o=a.href?a.href.replace(/.*(?=#[^\s]+$)/,"").substring(1):a.duSmoothScroll,s=document.getElementById(o)||document.getElementsByName(o)[0];if(s&&s.getBoundingClientRect){i.stopPropagation&&i.stopPropagation(),i.preventDefault&&i.preventDefault();var c=a.offset?parseInt(a.offset,10):t,l=a.duration?parseInt(a.duration,10):e;n.getContainer(r).duScrollToElement(angular.element(s),isNaN(c)?0:c,isNaN(l)?0:l)}}})}}}]),angular.module("duScroll.spyContext",["duScroll.spyAPI"]).directive("duSpyContext",["spyAPI",function(e){"use strict";return{restrict:"A",scope:!0,compile:function(t,n,r){return{pre:function(t,n,r,i){e.createContext(t)}}}}}]),angular.module("duScroll.scrollContainer",["duScroll.scrollContainerAPI"]).directive("duScrollContainer",["scrollContainerAPI",function(e){"use strict";return{restrict:"A",scope:!0,compile:function(t,n,r){return{pre:function(t,n,r,i){r.$observe("duScrollContainer",function(r){angular.isString(r)&&(r=document.getElementById(r)),r=angular.isElement(r)?angular.element(r):n,e.setContainer(t,r),t.$on("$destroy",function(){e.removeContainer(t)})})}}}}}]),angular.module("duScroll.scrollspy",["duScroll.spyAPI"]).directive("duScrollspy",["spyAPI","duScrollOffset","$timeout","$rootScope",function(e,t,n,r){"use strict";var i=function(e,t,n,r){angular.isElement(e)?this.target=e:angular.isString(e)&&(this.targetId=e),this.$scope=t,this.$element=n,this.offset=r};return i.prototype.getTargetElement=function(){return!this.target&&this.targetId&&(this.target=document.getElementById(this.targetId)||document.getElementsByName(this.targetId)[0]),this.target},i.prototype.getTargetPosition=function(){var e=this.getTargetElement();return e?e.getBoundingClientRect():void 0},i.prototype.flushTargetCache=function(){this.targetId&&(this.target=void 0)},{link:function(a,o,s){var c,l=s.ngHref||s.href;if(l&&-1!==l.indexOf("#")?c=l.replace(/.*(?=#[^\s]+$)/,"").substring(1):s.duScrollspy?c=s.duScrollspy:s.duSmoothScroll&&(c=s.duSmoothScroll),c){var u=n(function(){var n=new i(c,a,o,-(s.offset?parseInt(s.offset,10):t));e.addSpy(n),a.$on("$locationChangeSuccess",n.flushTargetCache.bind(n));var l=r.$on("$stateChangeSuccess",n.flushTargetCache.bind(n));a.$on("$destroy",function(){e.removeSpy(n),l()})},0,!1);a.$on("$destroy",function(){n.cancel(u)})}}}}])},{}],261:[function(e,t,n){void 0!==t&&void 0!==n&&t.exports===n&&(t.exports="ui.router"),function(e,t,n){"use strict";function r(e,t){return H(new(H(function(){},{prototype:e})),t)}function i(e){return W(arguments,function(t){t!==e&&W(t,function(t,n){e.hasOwnProperty(n)||(e[n]=t)})}),e}function a(e,t){var n=[];for(var r in e.path){if(e.path[r]!==t.path[r])break;n.push(e.path[r])}return n}function o(e){if(Object.keys)return Object.keys(e);var t=[];return W(e,function(e,n){t.push(n)}),t}function s(e,t){if(Array.prototype.indexOf)return e.indexOf(t,Number(arguments[2])||0);var n=e.length>>>0,r=Number(arguments[2])||0;for(r=r<0?Math.ceil(r):Math.floor(r),r<0&&(r+=n);r<n;r++)if(r in e&&e[r]===t)return r;return-1}function c(e,t,n,r){var i,c=a(n,r),l={},u=[];for(var d in c)if(c[d]&&c[d].params&&(i=o(c[d].params),i.length))for(var p in i)s(u,i[p])>=0||(u.push(i[p]),l[i[p]]=e[i[p]]);return H({},l,t)}function l(e,t,n){if(!n){n=[];for(var r in e)n.push(r)}for(var i=0;i<n.length;i++){var a=n[i];if(e[a]!=t[a])return!1}return!0}function u(e,t){var n={};return W(e,function(e){n[e]=t[e]}),n}function d(e){var t={},n=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));return W(n,function(n){n in e&&(t[n]=e[n])}),t}function p(e){var t={},n=Array.prototype.concat.apply(Array.prototype,Array.prototype.slice.call(arguments,1));for(var r in e)-1==s(n,r)&&(t[r]=e[r]);return t}function f(e,t){var n=B(e),r=n?[]:{};return W(e,function(e,i){t(e,i)&&(r[n?r.length:i]=e)}),r}function h(e,t){var n=B(e)?[]:{};return W(e,function(e,r){n[r]=t(e,r)}),n}function m(e,t){var r=1,a=2,c={},l=[],u=c,d=H(e.when(c),{$$promises:c,$$values:c});this.study=function(c){function f(e,n){if(b[n]!==a){if(v.push(n),b[n]===r)throw v.splice(0,s(v,n)),new Error("Cyclic dependency: "+v.join(" -> "));if(b[n]=r,j(e))g.push(n,[function(){return t.get(e)}],l);else{var i=t.annotate(e);W(i,function(e){e!==n&&c.hasOwnProperty(e)&&f(c[e],e)}),g.push(n,e,i)}v.pop(),b[n]=a}}function h(e){return q(e)&&e.then&&e.$$promises}if(!q(c))throw new Error("'invocables' must be an object");var m=o(c||{}),g=[],v=[],b={};return W(c,f),c=v=b=null,function(r,a,o){function s(){--y||(x||i(b,a.$$values),f.$$values=b,f.$$promises=f.$$promises||!0,delete f.$$inheritedValues,l.resolve(b))}function c(e){f.$$failure=e,l.reject(e)}if(h(r)&&o===n&&(o=a,a=r,r=null),r){if(!q(r))throw new Error("'locals' must be an object")}else r=u;if(a){if(!h(a))throw new Error("'parent' must be a promise returned by $resolve.resolve()")}else a=d;var l=e.defer(),f=l.promise,v=f.$$promises={},b=H({},r),y=1+g.length/3,x=!1;if(D(a.$$failure))return c(a.$$failure),f;a.$$inheritedValues&&i(b,p(a.$$inheritedValues,m)),H(v,a.$$promises),a.$$values?(x=i(b,p(a.$$values,m)),f.$$inheritedValues=p(a.$$values,m),s()):(a.$$inheritedValues&&(f.$$inheritedValues=p(a.$$inheritedValues,m)),a.then(s,c));for(var M=0,_=g.length;M<_;M+=3)r.hasOwnProperty(g[M])?s():function(n,i,a){function l(e){d.reject(e),c(e)}function u(){if(!D(f.$$failure))try{d.resolve(t.invoke(i,o,b)),d.promise.then(function(e){b[n]=e,s()},l)}catch(e){l(e)}}var d=e.defer(),p=0;W(a,function(e){v.hasOwnProperty(e)&&!r.hasOwnProperty(e)&&(p++,v[e].then(function(t){b[e]=t,--p||u()},l))}),p||u(),v[n]=d.promise}(g[M],g[M+1],g[M+2]);return f}},this.resolve=function(e,t,n,r){return this.study(e)(t,n,r)}}function g(e,t,n){this.fromConfig=function(e,t,n){return D(e.template)?this.fromString(e.template,t):D(e.templateUrl)?this.fromUrl(e.templateUrl,t):D(e.templateProvider)?this.fromProvider(e.templateProvider,t,n):null},this.fromString=function(e,t){return R(e)?e(t):e},this.fromUrl=function(n,r){return R(n)&&(n=n(r)),null==n?null:e.get(n,{cache:t,headers:{Accept:"text/html"}}).then(function(e){return e.data})},this.fromProvider=function(e,t,r){return n.invoke(e,null,r||{params:t})}}function v(e,t,i){function a(t,n,r,i){if(g.push(t),h[t])return h[t];if(!/^\w+([-.]+\w+)*(?:\[\])?$/.test(t))throw new Error("Invalid parameter name '"+t+"' in pattern '"+e+"'");if(m[t])throw new Error("Duplicate parameter name '"+t+"' in pattern '"+e+"'");return m[t]=new U.Param(t,n,r,i),m[t]}function o(e,t,n,r){var i=["",""],a=e.replace(/[\\\[\]\^$*+?.()|{}]/g,"\\$&");if(!t)return a;switch(n){case!1:i=["(",")"+(r?"?":"")];break;case!0:a=a.replace(/\/$/,""),i=["(?:/(",")|/)?"];break;default:i=["("+n+"|",")?"]}return a+i[0]+t+i[1]}function s(i,a){var o,s,c,l,u;return o=i[2]||i[3],u=t.params[o],c=e.substring(p,i.index),s=a?i[4]:i[4]||("*"==i[1]?".*":null),s&&(l=U.type(s)||r(U.type("string"),{pattern:new RegExp(s,t.caseInsensitive?"i":n)})),{id:o,regexp:s,segment:c,type:l,cfg:u}}t=H({params:{}},q(t)?t:{});var c,l=/([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,u=/([:]?)([\w\[\].-]+)|\{([\w\[\].-]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,d="^",p=0,f=this.segments=[],h=i?i.params:{},m=this.params=i?i.params.$$new():new U.ParamSet,g=[];this.source=e;for(var v,b,y;(c=l.exec(e))&&(v=s(c,!1),!(v.segment.indexOf("?")>=0));)b=a(v.id,v.type,v.cfg,"path"),d+=o(v.segment,b.type.pattern.source,b.squash,b.isOptional),f.push(v.segment),p=l.lastIndex;y=e.substring(p);var x=y.indexOf("?");if(x>=0){var M=this.sourceSearch=y.substring(x);if(y=y.substring(0,x),this.sourcePath=e.substring(0,p+x),M.length>0)for(p=0;c=u.exec(M);)v=s(c,!0),b=a(v.id,v.type,v.cfg,"search"),p=l.lastIndex}else this.sourcePath=e,this.sourceSearch="";d+=o(y)+(!1===t.strict?"/?":"")+"$",f.push(y),this.regexp=new RegExp(d,t.caseInsensitive?"i":n),this.prefix=f[0],this.$$paramNames=g}function b(e){H(this,e)}function y(){function e(e){return null!=e?e.toString().replace(/~/g,"~~").replace(/\//g,"~2F"):e}function i(e){return null!=e?e.toString().replace(/~2F/g,"/").replace(/~~/g,"~"):e}function a(){return{strict:m,caseInsensitive:p}}function c(e){return R(e)||B(e)&&R(e[e.length-1])}function l(){for(;_.length;){var e=_.shift();if(e.pattern)throw new Error("You cannot override a type's .pattern at runtime.");t.extend(x[e.name],d.invoke(e.def))}}function u(e){H(this,e||{})}U=this;var d,p=!1,m=!0,g=!1,x={},M=!0,_=[],w={string:{encode:e,decode:i,is:function(e){return null==e||!D(e)||"string"==typeof e},pattern:/[^\/]*/},int:{encode:e,decode:function(e){return parseInt(e,10)},is:function(e){return D(e)&&this.decode(e.toString())===e},pattern:/\d+/},bool:{encode:function(e){return e?1:0},decode:function(e){return 0!==parseInt(e,10)},is:function(e){return!0===e||!1===e},pattern:/0|1/},date:{encode:function(e){return this.is(e)?[e.getFullYear(),("0"+(e.getMonth()+1)).slice(-2),("0"+e.getDate()).slice(-2)].join("-"):n},decode:function(e){if(this.is(e))return e;var t=this.capture.exec(e);return t?new Date(t[1],t[2]-1,t[3]):n},is:function(e){return e instanceof Date&&!isNaN(e.valueOf())},equals:function(e,t){return this.is(e)&&this.is(t)&&e.toISOString()===t.toISOString()},pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,capture:/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/},json:{encode:t.toJson,decode:t.fromJson,is:t.isObject,equals:t.equals,pattern:/[^\/]*/},any:{encode:t.identity,decode:t.identity,equals:t.equals,pattern:/.*/}};y.$$getDefaultValue=function(e){if(!c(e.value))return e.value;if(!d)throw new Error("Injectable functions cannot be called at configuration time");return d.invoke(e.value)},this.caseInsensitive=function(e){return D(e)&&(p=e),p},this.strictMode=function(e){return D(e)&&(m=e),m},this.defaultSquashPolicy=function(e){if(!D(e))return g;if(!0!==e&&!1!==e&&!j(e))throw new Error("Invalid squash policy: "+e+". Valid policies: false, true, arbitrary-string");return g=e,e},this.compile=function(e,t){return new v(e,H(a(),t))},this.isMatcher=function(e){if(!q(e))return!1;var t=!0;return W(v.prototype,function(n,r){R(n)&&(t=t&&D(e[r])&&R(e[r]))}),t},this.type=function(e,t,n){if(!D(t))return x[e];if(x.hasOwnProperty(e))throw new Error("A type named '"+e+"' has already been defined.");return x[e]=new b(H({name:e},t)),n&&(_.push({name:e,def:n}),M||l()),this},W(w,function(e,t){x[t]=new b(H({name:t},e))}),x=r(x,{}),this.$get=["$injector",function(e){return d=e,M=!1,l(),W(w,function(e,t){x[t]||(x[t]=new b(e))}),this}],this.Param=function(e,r,i,a){function l(){if(!d)throw new Error("Injectable functions cannot be called at configuration time");var e=d.invoke(i.$$fn);if(null!==e&&e!==n&&!m.type.is(e))throw new Error("Default value ("+e+") for parameter '"+m.id+"' is not an instance of Type ("+m.type.name+")");return e}function u(e){function t(e){return function(t){return t.from===e}}return e=function(e){var n=h(f(m.replace,t(e)),function(e){return e.to});return n.length?n[0]:e}(e),D(e)?m.type.$normalize(e):l()}function p(){return"{Param:"+e+" "+r+" squash: '"+M+"' optional: "+y+"}"}var m=this;i=function(e){var t=q(e)?o(e):[];return-1===s(t,"value")&&-1===s(t,"type")&&-1===s(t,"squash")&&-1===s(t,"array")&&(e={value:e}),e.$$fn=c(e.value)?e.value:function(){return e.value},e}(i),r=function(n,r,i){if(n.type&&r)throw new Error("Param '"+e+"' has two type configurations.");return r||(n.type?t.isString(n.type)?x[n.type]:n.type instanceof b?n.type:new b(n.type):"config"===i?x.any:x.string)}(i,r,a);var v=function(){var t={array:"search"===a&&"auto"},n=e.match(/\[\]$/)?{array:!0}:{};return H(t,n,i).array}();r=v?r.$asArray(v,"search"===a):r,"string"!==r.name||v||"path"!==a||i.value!==n||(i.value="");var y=i.value!==n,M=function(e,t){var n=e.squash;if(!t||!1===n)return!1;if(!D(n)||null==n)return g;if(!0===n||j(n))return n;throw new Error("Invalid squash policy: '"+n+"'. Valid policies: false, true, or arbitrary string")}(i,y),_=function(e,t,r,i){var a,o,c=[{from:"",to:r||t?n:""},{from:null,to:r||t?n:""}];return a=B(e.replace)?e.replace:[],j(i)&&a.push({from:i,to:n}),o=h(a,function(e){return e.from}),f(c,function(e){return-1===s(o,e.from)}).concat(a)}(i,v,y,M);H(this,{id:e,type:r,location:a,array:v,squash:M,replace:_,isOptional:y,value:u,dynamic:n,config:i,toString:p})},u.prototype={$$new:function(){return r(this,H(new u,{$$parent:this}))},$$keys:function(){for(var e=[],t=[],n=this,r=o(u.prototype);n;)t.push(n),n=n.$$parent;return t.reverse(),W(t,function(t){W(o(t),function(t){-1===s(e,t)&&-1===s(r,t)&&e.push(t)})}),e},$$values:function(e){var t={},n=this;return W(n.$$keys(),function(r){t[r]=n[r].value(e&&e[r])}),t},$$equals:function(e,t){var n=!0,r=this;return W(r.$$keys(),function(i){var a=e&&e[i],o=t&&t[i];r[i].type.equals(a,o)||(n=!1)}),n},$$validates:function(e){var r,i,a,o,s,c=this.$$keys();for(r=0;r<c.length&&(i=this[c[r]],(a=e[c[r]])!==n&&null!==a||!i.isOptional);r++){if(o=i.type.$normalize(a),!i.type.is(o))return!1;if(s=i.type.encode(o),t.isString(s)&&!i.type.pattern.exec(s))return!1}return!0},$$parent:n},this.ParamSet=u}function x(e,r){function i(e){var t=/^\^((?:\\[^a-zA-Z0-9]|[^\\\[\]\^$*+?.()|{}]+)*)/.exec(e.source);return null!=t?t[1].replace(/\\(.)/g,"$1"):""}function a(e,t){return e.replace(/\$(\$|\d{1,2})/,function(e,n){return t["$"===n?0:Number(n)]})}function o(e,t,n){if(!n)return!1;var r=e.invoke(t,t,{$match:n});return!D(r)||r}function s(r,i,a,o,s){function p(e,t,n){return"/"===g?e:t?g.slice(0,-1)+e:n?g.slice(1)+e:e}function f(e){function t(e){var t=e(a,r);return!!t&&(j(t)&&r.replace().url(t),!0)}if(!e||!e.defaultPrevented){m&&r.url();m=n;var i,o=l.length;for(i=0;i<o;i++)if(t(l[i]))return;u&&t(u)}}function h(){return c=c||i.$on("$locationChangeSuccess",f)}var m,g=o.baseHref(),v=r.url();return d||h(),{sync:function(){f()},listen:function(){return h()},update:function(e){if(e)return void(v=r.url());r.url()!==v&&(r.url(v),r.replace())},push:function(e,t,i){var a=e.format(t||{});null!==a&&t&&t["#"]&&(a+="#"+t["#"]),r.url(a),m=i&&i.$$avoidResync?r.url():n,i&&i.replace&&r.replace()},href:function(n,i,a){if(!n.validates(i))return null;var o=e.html5Mode();t.isObject(o)&&(o=o.enabled),o=o&&s.history;var c=n.format(i);if(a=a||{},o||null===c||(c="#"+e.hashPrefix()+c),null!==c&&i&&i["#"]&&(c+="#"+i["#"]),c=p(c,o,a.absolute),!a.absolute||!c)return c;var l=!o&&c?"/":"",u=r.port();return u=80===u||443===u?"":":"+u,[r.protocol(),"://",r.host(),u,l,c].join("")}}}
34s.$inject=["$location","$rootScope","$injector","$browser","$sniffer"];var c,l=[],u=null,d=!1;this.rule=function(e){if(!R(e))throw new Error("'rule' must be a function");return l.push(e),this},this.otherwise=function(e){if(j(e)){var t=e;e=function(){return t}}else if(!R(e))throw new Error("'rule' must be a function");return u=e,this},this.when=function(e,t){var n,s=j(t);if(j(e)&&(e=r.compile(e)),!s&&!R(t)&&!B(t))throw new Error("invalid 'handler' in when()");var c={matcher:function(e,t){return s&&(n=r.compile(t),t=["$match",function(e){return n.format(e)}]),H(function(n,r){return o(n,t,e.exec(r.path(),r.search()))},{prefix:j(e.prefix)?e.prefix:""})},regex:function(e,t){if(e.global||e.sticky)throw new Error("when() RegExp must not be global or sticky");return s&&(n=t,t=["$match",function(e){return a(n,e)}]),H(function(n,r){return o(n,t,e.exec(r.path()))},{prefix:i(e)})}},l={matcher:r.isMatcher(e),regex:e instanceof RegExp};for(var u in l)if(l[u])return this.rule(c[u](e,t));throw new Error("invalid 'what' in when()")},this.deferIntercept=function(e){e===n&&(e=!0),d=e},this.$get=s,s.$inject=["$location","$rootScope","$injector","$browser","$sniffer"]}function M(e,i){function a(e){return 0===e.indexOf(".")||0===e.indexOf("^")}function p(e,t){if(!e)return n;var r=j(e),i=r?e:e.name;if(a(i)){if(!t)throw new Error("No reference point given for path '"+i+"'");t=p(t);for(var o=i.split("."),s=0,c=o.length,l=t;s<c;s++)if(""!==o[s]||0!==s){if("^"!==o[s])break;if(!l.parent)throw new Error("Path '"+i+"' not valid for state '"+t.name+"'");l=l.parent}else l=t;o=o.slice(s).join("."),i=l.name+(l.name&&o?".":"")+o}var u=S[i];return!u||!r&&(r||u!==e&&u.self!==e)?n:u}function f(e,t){k[e]||(k[e]=[]),k[e].push(t)}function m(e){for(var t=k[e]||[];t.length;)g(t.shift())}function g(t){t=r(t,{self:t,resolve:t.resolve||{},toString:function(){return this.name}});var n=t.name;if(!j(n)||n.indexOf("@")>=0)throw new Error("State must have a valid name");if(S.hasOwnProperty(n))throw new Error("State '"+n+"' is already defined");var i=-1!==n.indexOf(".")?n.substring(0,n.lastIndexOf(".")):j(t.parent)?t.parent:q(t.parent)&&j(t.parent.name)?t.parent.name:"";if(i&&!S[i])return f(i,t.self);for(var a in T)R(T[a])&&(t[a]=T[a](t,T.$delegates[a]));return S[n]=t,!t[$]&&t.url&&e.when(t.url,["$match","$stateParams",function(e,n){A.$current.navigable==t&&l(e,n)||A.transitionTo(t,e,{inherit:!0,location:!1})}]),m(n),t}function v(e){return e.indexOf("*")>-1}function b(e){for(var t=e.split("."),n=A.$current.name.split("."),r=0,i=t.length;r<i;r++)"*"===t[r]&&(n[r]="*");return"**"===t[0]&&(n=n.slice(s(n,t[1])),n.unshift("**")),"**"===t[t.length-1]&&(n.splice(s(n,t[t.length-2])+1,Number.MAX_VALUE),n.push("**")),t.length==n.length&&n.join("")===t.join("")}function y(e,t){return j(e)&&!D(t)?T[e]:R(t)&&j(e)?(T[e]&&!T.$delegates[e]&&(T.$delegates[e]=T[e]),T[e]=t,this):this}function x(e,t){return q(e)?t=e:t.name=e,g(t),this}function M(e,i,a,s,d,f,m,g,y){function x(t,n,r,a){var o=e.$broadcast("$stateNotFound",t,n,r);if(o.defaultPrevented)return m.update(),C;if(!o.retry)return null;if(a.$retry)return m.update(),E;var s=A.transition=i.when(o.retry);return s.then(function(){return s!==A.transition?k:(t.options.$retry=!0,A.transitionTo(t.to,t.toParams,t.options))},function(){return C}),m.update(),s}function M(e,n,r,o,c,l){function p(){var n=[];return W(e.views,function(r,i){var o=r.resolve&&r.resolve!==e.resolve?r.resolve:{};o.$template=[function(){return a.load(i,{view:r,locals:c.globals,params:f,notify:l.notify})||""}],n.push(d.resolve(o,c.globals,c.resolve,e).then(function(n){if(R(r.controllerProvider)||B(r.controllerProvider)){var a=t.extend({},o,c.globals);n.$$controller=s.invoke(r.controllerProvider,null,a)}else n.$$controller=r.controller;n.$$state=e,n.$$controllerAs=r.controllerAs,c[i]=n}))}),i.all(n).then(function(){return c.globals})}var f=r?n:u(e.params.$$keys(),n),h={$stateParams:f};c.resolve=d.resolve(e.resolve,h,c.resolve,e);var m=[c.resolve.then(function(e){c.globals=e})];return o&&m.push(o),i.all(m).then(p).then(function(e){return c})}var k=i.reject(new Error("transition superseded")),T=i.reject(new Error("transition prevented")),C=i.reject(new Error("transition aborted")),E=i.reject(new Error("transition failed"));return w.locals={resolve:null,globals:{$stateParams:{}}},A={params:{},current:w.self,$current:w,transition:null},A.reload=function(e){return A.transitionTo(A.current,f,{reload:e||!0,inherit:!1,notify:!0})},A.go=function(e,t,n){return A.transitionTo(e,t,H({inherit:!0,relative:A.$current},n))},A.transitionTo=function(t,n,a){n=n||{},a=H({location:!0,inherit:!1,relative:null,notify:!0,reload:!1,$retry:!1},a||{});var o,l=A.$current,d=A.params,h=l.path,g=p(t,a.relative),v=n["#"];if(!D(g)){var b={to:t,toParams:n,options:a},y=x(b,l.self,d,a);if(y)return y;if(t=b.to,n=b.toParams,a=b.options,g=p(t,a.relative),!D(g)){if(!a.relative)throw new Error("No such state '"+t+"'");throw new Error("Could not resolve '"+t+"' from state '"+a.relative+"'")}}if(g[$])throw new Error("Cannot transition to abstract state '"+t+"'");if(a.inherit&&(n=c(f,n||{},A.$current,g)),!g.params.$$validates(n))return E;n=g.params.$$values(n),t=g;var S=t.path,C=0,O=S[C],z=w.locals,L=[];if(a.reload){if(j(a.reload)||q(a.reload)){if(q(a.reload)&&!a.reload.name)throw new Error("Invalid reload state object");var N=!0===a.reload?h[0]:p(a.reload);if(a.reload&&!N)throw new Error("No such reload state '"+(j(a.reload)?a.reload:a.reload.name)+"'");for(;O&&O===h[C]&&O!==N;)z=L[C]=O.locals,C++,O=S[C]}}else for(;O&&O===h[C]&&O.ownParams.$$equals(n,d);)z=L[C]=O.locals,C++,O=S[C];if(_(t,n,l,d,z,a))return v&&(n["#"]=v),A.params=n,F(A.params,f),F(u(t.params.$$keys(),f),t.locals.globals.$stateParams),a.location&&t.navigable&&t.navigable.url&&(m.push(t.navigable.url,n,{$$avoidResync:!0,replace:"replace"===a.location}),m.update(!0)),A.transition=null,i.when(A.current);if(n=u(t.params.$$keys(),n||{}),v&&(n["#"]=v),a.notify&&e.$broadcast("$stateChangeStart",t.self,n,l.self,d,a).defaultPrevented)return e.$broadcast("$stateChangeCancel",t.self,n,l.self,d),null==A.transition&&m.update(),T;for(var P=i.when(z),I=C;I<S.length;I++,O=S[I])z=L[I]=r(z),P=M(O,n,O===t,P,z,a);var R=A.transition=P.then(function(){var r,i,o;if(A.transition!==R)return k;for(r=h.length-1;r>=C;r--)o=h[r],o.self.onExit&&s.invoke(o.self.onExit,o.self,o.locals.globals),o.locals=null;for(r=C;r<S.length;r++)i=S[r],i.locals=L[r],i.self.onEnter&&s.invoke(i.self.onEnter,i.self,i.locals.globals);return A.transition!==R?k:(A.$current=t,A.current=t.self,A.params=n,F(A.params,f),A.transition=null,a.location&&t.navigable&&m.push(t.navigable.url,t.navigable.locals.globals.$stateParams,{$$avoidResync:!0,replace:"replace"===a.location}),a.notify&&e.$broadcast("$stateChangeSuccess",t.self,n,l.self,d),m.update(!0),A.current)},function(r){return A.transition!==R?k:(A.transition=null,o=e.$broadcast("$stateChangeError",t.self,n,l.self,d,r),o.defaultPrevented||m.update(),i.reject(r))});return R},A.is=function(e,t,r){r=H({relative:A.$current},r||{});var i=p(e,r.relative);return D(i)?A.$current===i&&(!t||l(i.params.$$values(t),f)):n},A.includes=function(e,t,r){if(r=H({relative:A.$current},r||{}),j(e)&&v(e)){if(!b(e))return!1;e=A.$current.name}var i=p(e,r.relative);return D(i)?!!D(A.$current.includes[i.name])&&(!t||l(i.params.$$values(t),f,o(t))):n},A.href=function(e,t,r){r=H({lossy:!0,inherit:!0,absolute:!1,relative:A.$current},r||{});var i=p(e,r.relative);if(!D(i))return null;r.inherit&&(t=c(f,t||{},A.$current,i));var a=i&&r.lossy?i.navigable:i;return a&&a.url!==n&&null!==a.url?m.href(a.url,u(i.params.$$keys().concat("#"),t||{}),{absolute:r.absolute}):null},A.get=function(e,t){if(0===arguments.length)return h(o(S),function(e){return S[e].self});var n=p(e,t||A.$current);return n&&n.self?n.self:null},A}function _(e,t,n,r,i,a){if(!a.reload&&e===n&&(i===n.locals||!1===e.self.reloadOnSearch&&function(e,t,n){function r(t){return"search"!=e.params[t].location}var i=e.params.$$keys().filter(r),a=d.apply({},[e.params].concat(i));return new U.ParamSet(a).$$equals(t,n)}(n,r,t)))return!0}M.$inject=["$rootScope","$q","$view","$injector","$resolve","$stateParams","$urlRouter","$location","$urlMatcherFactory"];var w,A,S={},k={},$="abstract",T={parent:function(e){if(D(e.parent)&&e.parent)return p(e.parent);var t=/^(.+)\.[^.]+$/.exec(e.name);return t?p(t[1]):w},data:function(e){return e.parent&&e.parent.data&&(e.data=e.self.data=r(e.parent.data,e.data)),e.data},url:function(e){var t=e.url,n={params:e.params||{}};if(j(t))return"^"==t.charAt(0)?i.compile(t.substring(1),n):(e.parent.navigable||w).url.concat(t,n);if(!t||i.isMatcher(t))return t;throw new Error("Invalid url '"+t+"' in state '"+e+"'")},navigable:function(e){return e.url?e:e.parent?e.parent.navigable:null},ownParams:function(e){var t=e.url&&e.url.params||new U.ParamSet;return W(e.params||{},function(e,n){t[n]||(t[n]=new U.Param(n,null,e,"config"))}),t},params:function(e){var t=d(e.ownParams,e.ownParams.$$keys());return e.parent&&e.parent.params?H(e.parent.params.$$new(),t):new U.ParamSet},views:function(e){var t={};return W(D(e.views)?e.views:{"":e},function(n,r){r.indexOf("@")<0&&(r+="@"+e.parent.name),t[r]=n}),t},path:function(e){return e.parent?e.parent.path.concat(e):[]},includes:function(e){var t=e.parent?H({},e.parent.includes):{};return t[e.name]=!0,t},$delegates:{}};w=g({name:"",url:"^",views:null,abstract:!0}),w.navigable=null,this.decorator=y,this.state=x,this.$get=M,M.$inject=["$rootScope","$q","$view","$injector","$resolve","$stateParams","$urlRouter","$location","$urlMatcherFactory"]}function _(){function e(e,t){return{load:function(e,n){var r;return n=H({template:null,controller:null,view:null,locals:null,notify:!0,async:!0,params:{}},n),n.view&&(r=t.fromConfig(n.view,n.params,n.locals)),r}}}e.$inject=["$rootScope","$templateFactory"],this.$get=e,e.$inject=["$rootScope","$templateFactory"]}function w(){var e=!1;this.useAnchorScroll=function(){e=!0},this.$get=["$anchorScroll","$timeout",function(t,n){return e?t:function(e){return n(function(){e[0].scrollIntoView()},0,!1)}}]}function A(e,n,r,i){function a(e,n){function r(e){return 1===V&&G>=4?!!c.enabled(e):1===V&&G>=2?!!c.enabled():!!s}var i={enter:function(e,t,n){t.after(e),n()},leave:function(e,t){e.remove(),t()}};if(e.noanimation)return i;if(c)return{enter:function(e,n,a){r(e)?t.version.minor>2?c.enter(e,null,n).then(a):c.enter(e,null,n,a):i.enter(e,n,a)},leave:function(e,n){r(e)?t.version.minor>2?c.leave(e).then(n):c.leave(e,n):i.leave(e,n)}};if(s){var a=s&&s(n,e);return{enter:function(e,t,n){a.enter(e,null,t),n()},leave:function(e,t){a.leave(e),t()}}}return i}var o=function(){return n.has?function(e){return n.has(e)?n.get(e):null}:function(e){try{return n.get(e)}catch(e){return null}}}(),s=o("$animator"),c=o("$animate");return{restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(n,o,s){return function(n,o,c){function l(){function e(){t&&t.remove(),n&&n.$destroy()}var t=d,n=f;n&&(n._willBeDestroyed=!0),p?(v.leave(p,function(){e(),d=null}),d=p):(e(),d=null),p=null,f=null}function u(a){var u,d=k(n,c,o,i),b=d&&e.$current&&e.$current.locals[d];if((a||b!==h)&&!n._willBeDestroyed){u=n.$new(),h=e.$current.locals[d],u.$emit("$viewContentLoading",d);var y=s(u,function(e){v.enter(e,o,function(){f&&f.$emit("$viewContentAnimationEnded"),(t.isDefined(g)&&!g||n.$eval(g))&&r(e)}),l()});p=y,f=u,f.$emit("$viewContentLoaded",d),f.$eval(m)}}var d,p,f,h,m=c.onload||"",g=c.autoscroll,v=a(c,n);n.$on("$stateChangeSuccess",function(){u(!1)}),u(!0)}}}}function S(e,t,n,r){return{restrict:"ECA",priority:-400,compile:function(i){var a=i.html();return function(i,o,s){var c=n.$current,l=k(i,s,o,r),u=c&&c.locals[l];if(u){o.data("$uiView",{name:l,state:u.$$state}),o.html(u.$template?u.$template:a);var d=e(o.contents());if(u.$$controller){u.$scope=i,u.$element=o;var p=t(u.$$controller,u);u.$$controllerAs&&(i[u.$$controllerAs]=p),o.data("$ngControllerController",p),o.children().data("$ngControllerController",p)}d(i)}}}}}function k(e,t,n,r){var i=r(t.uiView||t.name||"")(e),a=n.inheritedData("$uiView");return i.indexOf("@")>=0?i:i+"@"+(a?a.state.name:"")}function $(e,t){var n,r=e.match(/^\s*({[^}]*})\s*$/);if(r&&(e=t+"("+r[1]+")"),!(n=e.replace(/\n/g," ").match(/^([^(]+?)\s*(\((.*)\))?$/))||4!==n.length)throw new Error("Invalid state ref '"+e+"'");return{state:n[1],paramExpr:n[3]||null}}function T(e){var t=e.parent().inheritedData("$uiView");if(t&&t.state&&t.state.name)return t.state}function C(e){var t="[object SVGAnimatedString]"===Object.prototype.toString.call(e.prop("href")),n="FORM"===e[0].nodeName;return{attr:n?"action":t?"xlink:href":"href",isAnchor:"A"===e.prop("tagName").toUpperCase(),clickable:!n}}function E(e,t,n,r,i){return function(a){var o=a.which||a.button,s=i();if(!(o>1||a.ctrlKey||a.metaKey||a.shiftKey||e.attr("target"))){var c=n(function(){t.go(s.state,s.params,s.options)});a.preventDefault();var l=r.isAnchor&&!s.href?1:0;a.preventDefault=function(){l--<=0&&n.cancel(c)}}}}function O(e,t){return{relative:T(e)||t.$current,inherit:!0}}function z(e,n){return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(r,i,a,o){var s=$(a.uiSref,e.current.name),c={state:s.state,href:null,params:null},l=C(i),u=o[1]||o[0];c.options=H(O(i,e),a.uiSrefOpts?r.$eval(a.uiSrefOpts):{});var d=function(n){n&&(c.params=t.copy(n)),c.href=e.href(s.state,c.params,c.options),u&&u.$$addStateInfo(s.state,c.params),null!==c.href&&a.$set(l.attr,c.href)};s.paramExpr&&(r.$watch(s.paramExpr,function(e){e!==c.params&&d(e)},!0),c.params=t.copy(r.$eval(s.paramExpr))),d(),l.clickable&&i.bind("click",E(i,e,n,l,function(){return c}))}}}function L(e,t){return{restrict:"A",require:["?^uiSrefActive","?^uiSrefActiveEq"],link:function(n,r,i,a){function o(t){d.state=t[0],d.params=t[1],d.options=t[2],d.href=e.href(d.state,d.params,d.options),c&&c.$$addStateInfo(d.state,d.params),d.href&&i.$set(s.attr,d.href)}var s=C(r),c=a[1]||a[0],l=[i.uiState,i.uiStateParams||null,i.uiStateOpts||null],u="["+l.map(function(e){return e||"null"}).join(", ")+"]",d={state:null,params:null,options:null,href:null};n.$watch(u,o,!0),o(n.$eval(u)),s.clickable&&r.bind("click",E(r,e,t,s,function(){return d}))}}}function N(e,t,n){return{restrict:"A",controller:["$scope","$element","$attrs","$timeout",function(t,r,i,a){function o(t,n,i){var a=e.get(t,T(r)),o=s(t,n);m.push({state:a||{name:t},params:n,hash:o}),g[o]=i}function s(e,n){if(!j(e))throw new Error("state should be a string");return q(n)?e+X(n):(n=t.$eval(n),q(n)?e+X(n):e)}function c(){for(var e=0;e<m.length;e++)d(m[e].state,m[e].params)?l(r,g[m[e].hash]):u(r,g[m[e].hash]),p(m[e].state,m[e].params)?l(r,f):u(r,f)}function l(e,t){a(function(){e.addClass(t)})}function u(e,t){e.removeClass(t)}function d(t,n){return e.includes(t.name,n)}function p(t,n){return e.is(t.name,n)}var f,h,m=[],g={};f=n(i.uiSrefActiveEq||"",!1)(t);try{h=t.$eval(i.uiSrefActive)}catch(e){}h=h||n(i.uiSrefActive||"",!1)(t),q(h)&&W(h,function(n,r){if(j(n)){var i=$(n,e.current.name);o(i.state,t.$eval(i.paramExpr),r)}}),this.$$addStateInfo=function(e,t){q(h)&&m.length>0||(o(e,t,h),c())},t.$on("$stateChangeSuccess",c),c()}]}}function P(e){var t=function(t,n){return e.is(t,n)};return t.$stateful=!0,t}function I(e){var t=function(t,n,r){return e.includes(t,n,r)};return t.$stateful=!0,t}I.$inject=["$state"],P.$inject=["$state"],L.$inject=["$state","$timeout"],N.$inject=["$state","$stateParams","$interpolate"],z.$inject=["$state","$timeout"],S.$inject=["$compile","$controller","$state","$interpolate"],A.$inject=["$state","$injector","$uiViewScroll","$interpolate"],M.$inject=["$urlRouterProvider","$urlMatcherFactory"],x.$inject=["$locationProvider","$urlMatcherFactory"],g.$inject=["$http","$templateCache","$injector"],m.$inject=["$q","$injector"];var D=t.isDefined,R=t.isFunction,j=t.isString,q=t.isObject,B=t.isArray,W=t.forEach,H=t.extend,F=t.copy,X=t.toJson;t.module("ui.router.util",["ng"]),t.module("ui.router.router",["ui.router.util"]),t.module("ui.router.state",["ui.router.router","ui.router.util"]),t.module("ui.router",["ui.router.state"]),t.module("ui.router.compat",["ui.router"]),m.$inject=["$q","$injector"],t.module("ui.router.util").service("$resolve",m),g.$inject=["$http","$templateCache","$injector"],t.module("ui.router.util").service("$templateFactory",g);var U;v.prototype.concat=function(e,t){var n={caseInsensitive:U.caseInsensitive(),strict:U.strictMode(),squash:U.defaultSquashPolicy()};return new v(this.sourcePath+e+this.sourceSearch,H(n,t),this)},v.prototype.toString=function(){return this.source},v.prototype.exec=function(e,t){var n=this.regexp.exec(e);if(!n)return null;t=t||{};var r,i,a,o=this.parameters(),s=o.length,c=this.segments.length-1,l={};if(c!==n.length-1)throw new Error("Unbalanced capture group in route '"+this.source+"'");var u,d;for(r=0;r<c;r++){for(a=o[r],u=this.params[a],d=n[r+1],i=0;i<u.replace.length;i++)u.replace[i].from===d&&(d=u.replace[i].to);d&&!0===u.array&&(d=function(e){function t(e){return e.split("").reverse().join("")}function n(e){return e.replace(/\\-/g,"-")}return h(h(t(e).split(/-(?!\\)/),t),n).reverse()}(d)),D(d)&&(d=u.type.decode(d)),l[a]=u.value(d)}for(;r<s;r++){for(a=o[r],l[a]=this.params[a].value(t[a]),u=this.params[a],d=t[a],i=0;i<u.replace.length;i++)u.replace[i].from===d&&(d=u.replace[i].to);D(d)&&(d=u.type.decode(d)),l[a]=u.value(d)}return l},v.prototype.parameters=function(e){return D(e)?this.params[e]||null:this.$$paramNames},v.prototype.validates=function(e){return this.params.$$validates(e)},v.prototype.format=function(e){function t(e){return encodeURIComponent(e).replace(/-/g,function(e){return"%5C%"+e.charCodeAt(0).toString(16).toUpperCase()})}e=e||{};var n=this.segments,r=this.parameters(),i=this.params;if(!this.validates(e))return null;var a,o=!1,s=n.length-1,c=r.length,l=n[0];for(a=0;a<c;a++){var u=a<s,d=r[a],p=i[d],f=p.value(e[d]),m=p.isOptional&&p.type.equals(p.value(),f),g=!!m&&p.squash,v=p.type.encode(f);if(u){var b=n[a+1],y=a+1===s;if(!1===g)null!=v&&(B(v)?l+=h(v,t).join("-"):l+=encodeURIComponent(v)),l+=b;else if(!0===g){var x=l.match(/\/$/)?/\/?(.*)/:/(.*)/;l+=b.match(x)[1]}else j(g)&&(l+=g+b);y&&!0===p.squash&&"/"===l.slice(-1)&&(l=l.slice(0,-1))}else{if(null==v||m&&!1!==g)continue;if(B(v)||(v=[v]),0===v.length)continue;v=h(v,encodeURIComponent).join("&"+d+"="),l+=(o?"&":"?")+d+"="+v,o=!0}}return l},b.prototype.is=function(e,t){return!0},b.prototype.encode=function(e,t){return e},b.prototype.decode=function(e,t){return e},b.prototype.equals=function(e,t){return e==t},b.prototype.$subPattern=function(){var e=this.pattern.toString();return e.substr(1,e.length-2)},b.prototype.pattern=/.*/,b.prototype.toString=function(){return"{Type:"+this.name+"}"},b.prototype.$normalize=function(e){return this.is(e)?e:this.decode(e)},b.prototype.$asArray=function(e,t){function r(e,t){function r(e,t){return function(){return e[t].apply(e,arguments)}}function i(e){return B(e)?e:D(e)?[e]:[]}function a(e){switch(e.length){case 0:return n;case 1:return"auto"===t?e[0]:e;default:return e}}function o(e){return!e}function s(e,t){return function(n){if(B(n)&&0===n.length)return n;n=i(n);var r=h(n,e);return!0===t?0===f(r,o).length:a(r)}}this.encode=s(r(e,"encode")),this.decode=s(r(e,"decode")),this.is=s(r(e,"is"),!0),this.equals=function(e){return function(t,n){var r=i(t),a=i(n);if(r.length!==a.length)return!1;for(var o=0;o<r.length;o++)if(!e(r[o],a[o]))return!1;return!0}}(r(e,"equals")),this.pattern=e.pattern,this.$normalize=s(r(e,"$normalize")),this.name=e.name,this.$arrayMode=t}if(!e)return this;if("auto"===e&&!t)throw new Error("'auto' array mode is for query parameters only");return new r(this,e)},t.module("ui.router.util").provider("$urlMatcherFactory",y),t.module("ui.router.util").run(["$urlMatcherFactory",function(e){}]),x.$inject=["$locationProvider","$urlMatcherFactoryProvider"],t.module("ui.router.router").provider("$urlRouter",x),M.$inject=["$urlRouterProvider","$urlMatcherFactoryProvider"],t.module("ui.router.state").factory("$stateParams",function(){return{}}).provider("$state",M),_.$inject=[],t.module("ui.router.state").provider("$view",_),t.module("ui.router.state").provider("$uiViewScroll",w);var V=t.version.major,G=t.version.minor;A.$inject=["$state","$injector","$uiViewScroll","$interpolate"],S.$inject=["$compile","$controller","$state","$interpolate"],t.module("ui.router.state").directive("uiView",A),t.module("ui.router.state").directive("uiView",S),z.$inject=["$state","$timeout"],L.$inject=["$state","$timeout"],N.$inject=["$state","$stateParams","$interpolate"],t.module("ui.router.state").directive("uiSref",z).directive("uiSrefActive",N).directive("uiSrefActiveEq",N).directive("uiState",L),P.$inject=["$state"],I.$inject=["$state"],t.module("ui.router.state").filter("isState",P).filter("includedByState",I)}(window,window.angular)},{}],262:[function(e,t,n){!function(e){"use strict";function t(e,t){return t=t||Error,function(){var n,r,i=arguments,a=i[0],o="["+(e?e+":":"")+a+"] ",s=i[1];for(o+=s.replace(/\{\d+\}/g,function(e){var t=+e.slice(1,-1),n=t+2;return n<i.length?ve(i[n]):e}),o+="\nhttp://errors.angularjs.org/1.5.11/"+(e?e+"/":"")+a,r=2,n="?";r<i.length;r++,n="&")o+=n+"p"+(r-2)+"="+encodeURIComponent(ve(i[r]));return new t(o)}}function n(e){if(null==e||k(e))return!1;if(ei(e)||M(e)||Wr&&e instanceof Wr)return!0;var t="length"in Object(e)&&e.length;return _(t)&&(t>=0&&(t-1 in e||e instanceof Array)||"function"==typeof e.item)}function r(e,t,i){var a,o;if(e)if(A(e))for(a in e)"prototype"===a||"length"===a||"name"===a||e.hasOwnProperty&&!e.hasOwnProperty(a)||t.call(i,e[a],a,e);else if(ei(e)||n(e)){var s="object"!==(void 0===e?"undefined":_typeof2(e));for(a=0,o=e.length;a<o;a++)(s||a in e)&&t.call(i,e[a],a,e)}else if(e.forEach&&e.forEach!==r)e.forEach(t,i,e);else if(x(e))for(a in e)t.call(i,e[a],a,e);else if("function"==typeof e.hasOwnProperty)for(a in e)e.hasOwnProperty(a)&&t.call(i,e[a],a,e);else for(a in e)Ir.call(e,a)&&t.call(i,e[a],a,e);return e}function i(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 o(){return++Zr}function s(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function c(e,t,n){for(var r=e.$$hashKey,i=0,a=t.length;i<a;++i){var o=t[i];if(y(o)||A(o))for(var l=Object.keys(o),u=0,d=l.length;u<d;u++){var p=l[u],f=o[p];n&&y(f)?w(f)?e[p]=new Date(f.valueOf()):S(f)?e[p]=new RegExp(f):f.nodeName?e[p]=f.cloneNode(!0):P(f)?e[p]=f.clone():(y(e[p])||(e[p]=ei(f)?[]:{}),c(e[p],[f],!0)):e[p]=f}}return s(e,r),e}function l(e){return c(e,Xr.call(arguments,1),!1)}function u(e){return c(e,Xr.call(arguments,1),!0)}function d(e){return parseInt(e,10)}function p(e,t){return l(Object.create(e),t)}function f(){}function h(e){return e}function m(e){return function(){return e}}function g(e){return A(e.toString)&&e.toString!==Gr}function v(e){return void 0===e}function b(e){return void 0!==e}function y(e){return null!==e&&"object"===(void 0===e?"undefined":_typeof2(e))}function x(e){return null!==e&&"object"===(void 0===e?"undefined":_typeof2(e))&&!Yr(e)}function M(e){return"string"==typeof e}function _(e){return"number"==typeof e}function w(e){return"[object Date]"===Gr.call(e)}function A(e){return"function"==typeof e}function S(e){return"[object RegExp]"===Gr.call(e)}function k(e){return e&&e.window===e}function $(e){return e&&e.$evalAsync&&e.$watch}function T(e){return"[object File]"===Gr.call(e)}function C(e){return"[object FormData]"===Gr.call(e)}function E(e){return"[object Blob]"===Gr.call(e)}function O(e){return"boolean"==typeof e}function z(e){return e&&A(e.then)}function L(e){return e&&_(e.length)&&ti.test(Gr.call(e))}function N(e){return"[object ArrayBuffer]"===Gr.call(e)}function P(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function I(e){var t,n={},r=e.split(",");for(t=0;t<r.length;t++)n[r[t]]=!0;return n}function D(e){return Dr(e.nodeName||e[0]&&e[0].nodeName)}function R(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),n}function j(e,t){function n(e,t){var n,r=t.$$hashKey;if(ei(e))for(var a=0,o=e.length;a<o;a++)t.push(i(e[a]));else if(x(e))for(n in e)t[n]=i(e[n]);else if(e&&"function"==typeof e.hasOwnProperty)for(n in e)e.hasOwnProperty(n)&&(t[n]=i(e[n]));else for(n in e)Ir.call(e,n)&&(t[n]=i(e[n]));return s(t,r),t}function i(e){if(!y(e))return e;var t=o.indexOf(e);if(-1!==t)return c[t];if(k(e)||$(e))throw Qr("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r=!1,i=a(e);return void 0===i&&(i=ei(e)?[]:Object.create(Yr(e)),r=!0),o.push(e),c.push(i),r?n(e,i):i}function a(e){switch(Gr.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(i(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(A(e.cloneNode))return e.cloneNode(!0)}var o=[],c=[];if(t){if(L(t)||N(t))throw Qr("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e===t)throw Qr("cpi","Can't copy! Source and destination are identical.");return ei(t)?t.length=0:r(t,function(e,n){"$$hashKey"!==n&&delete t[n]}),o.push(e),c.push(t),n(e,t)}return i(e)}function q(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,a=void 0===e?"undefined":_typeof2(e),o=void 0===t?"undefined":_typeof2(t);if(a===o&&"object"===a){if(!ei(e)){if(w(e))return!!w(t)&&q(e.getTime(),t.getTime());if(S(e))return!!S(t)&&e.toString()===t.toString();if($(e)||$(t)||k(e)||k(t)||ei(t)||w(t)||S(t))return!1;i=fe();for(r in e)if("$"!==r.charAt(0)&&!A(e[r])){if(!q(e[r],t[r]))return!1;i[r]=!0}for(r in t)if(!(r in i)&&"$"!==r.charAt(0)&&b(t[r])&&!A(t[r]))return!1;return!0}if(!ei(t))return!1;if((n=e.length)===t.length){for(r=0;r<n;r++)if(!q(e[r],t[r]))return!1;return!0}}return!1}function B(e,t,n){return e.concat(Xr.call(t,n))}function W(e,t){return Xr.call(e,t||0)}function H(e,t){var n=arguments.length>2?W(arguments,2):[];return!A(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,B(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function F(t,n){var r=n;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?r=void 0:k(n)?r="$WINDOW":n&&e.document===n?r="$DOCUMENT":$(n)&&(r="$SCOPE"),r}function X(e,t){if(!v(e))return _(t)||(t=t?2:null),JSON.stringify(e,F,t)}function U(e){return M(e)?JSON.parse(e):e}function V(e,t){e=e.replace(oi,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return Jr(n)?t:n}function G(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function Y(e,t,n){n=n?-1:1;var r=e.getTimezoneOffset();return G(e,n*(V(t,r)-r))}function Q(e){e=Wr(e).clone();try{e.empty()}catch(e){}var t=Wr("<div>").append(e).html();try{return e[0].nodeType===pi?Dr(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(e,t){return"<"+Dr(t)})}catch(e){return Dr(t)}}function K(e){try{return decodeURIComponent(e)}catch(e){}}function Z(e){var t={};return r((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=K(r),b(r)&&(i=!b(i)||K(i),Ir.call(t,r)?ei(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i))}),t}function J(e){var t=[];return r(e,function(e,n){ei(e)?r(e,function(e){t.push(te(n,!0)+(!0===e?"":"="+te(e,!0)))}):t.push(te(n,!0)+(!0===e?"":"="+te(e,!0)))}),t.length?t.join("&"):""}function ee(e){return te(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function te(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 ne(e,t){var n,r,i=si.length;for(r=0;r<i;++r)if(n=si[r]+t,M(n=e.getAttribute(n)))return n;return null}function re(t,n){var i,a,o={};if(r(si,function(e){var n=e+"app";!i&&t.hasAttribute&&t.hasAttribute(n)&&(i=t,a=t.getAttribute(n))}),r(si,function(e){var n,r=e+"app";!i&&(n=t.querySelector("["+r.replace(":","\\:")+"]"))&&(i=n,a=n.getAttribute(r))}),i){if(!ci)return void e.console.error("Angular: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match.");o.strictDi=null!==ne(i,"strict-di"),n(i,a?[a]:[],o)}}function ie(t,n,i){y(i)||(i={}),i=l({strictDi:!1},i);var a=function(){if(t=Wr(t),t.injector()){var r=t[0]===e.document?"document":Q(t);throw Qr("btstrpd","App already bootstrapped with this element '{0}'",r.replace(/</,"&lt;").replace(/>/,"&gt;"))}n=n||[],n.unshift(["$provide",function(e){e.value("$rootElement",t)}]),i.debugInfoEnabled&&n.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),n.unshift("ng");var a=tt(n,i.strictDi);return a.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,r){e.$apply(function(){t.data("$injector",r),n(t)(e)})}]),a},o=/^NG_ENABLE_DEBUG_INFO!/,s=/^NG_DEFER_BOOTSTRAP!/;if(e&&o.test(e.name)&&(i.debugInfoEnabled=!0,e.name=e.name.replace(o,"")),e&&!s.test(e.name))return a();e.name=e.name.replace(s,""),Kr.resumeBootstrap=function(e){return r(e,function(e){n.push(e)}),a()},A(Kr.resumeDeferredBootstrap)&&Kr.resumeDeferredBootstrap()}function ae(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function oe(e){var t=Kr.element(e).injector();if(!t)throw Qr("test","no injector found for element argument to getTestability");return t.get("$$testability")}function se(e,t){return t=t||"_",e.replace(li,function(e,n){return(n?t:"")+e.toLowerCase()})}function ce(e,t,n){if(!e)throw Qr("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function le(e,t,n){return n&&ei(e)&&(e=e[e.length-1]),ce(A(e),t,"not a function, got "+(e&&"object"===(void 0===e?"undefined":_typeof2(e))?e.constructor.name||"Object":void 0===e?"undefined":_typeof2(e))),e}function ue(e,t){if("hasOwnProperty"===e)throw Qr("badname","hasOwnProperty is not a valid {0} name",t)}function de(e,t,n){if(!t)return e;for(var r,i=t.split("."),a=e,o=i.length,s=0;s<o;s++)r=i[s],e&&(e=(a=e)[r]);return!n&&A(e)?H(a,e):e}function pe(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=Wr(Xr.call(e,0,i))),t.push(n));return t||e}function fe(){return Object.create(null)}function he(e){function n(e,t,n){return e[t]||(e[t]=n())}var r=t("$injector"),i=t("ng"),a=n(e,"angular",Object);return a.$$minErr=a.$$minErr||t,n(a,"module",function(){var e={};return function(t,a,o){return function(e,t){if("hasOwnProperty"===e)throw i("badname","hasOwnProperty is not a valid {0} name",t)}(t,"module"),a&&e.hasOwnProperty(t)&&(e[t]=null),n(e,t,function(){function e(e,t,n,r){return r||(r=i),function(){return r[n||"push"]([e,t,arguments]),u}}function n(e,n){return function(r,a){return a&&A(a)&&(a.$$moduleName=t),i.push([e,n,arguments]),u}}if(!a)throw r("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.",t);var i=[],s=[],c=[],l=e("$injector","invoke","push",s),u={_invokeQueue:i,_configBlocks:s,_runBlocks:c,requires:a,name:t,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),decorator:n("$provide","decorator"),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),
35component:n("$compileProvider","component"),config:l,run:function(e){return c.push(e),this}};return o&&l(o),u})}})}function me(e,t){if(ei(e)){t=t||[];for(var n=0,r=e.length;n<r;n++)t[n]=e[n]}else if(y(e)){t=t||{};for(var i in e)"$"===i.charAt(0)&&"$"===i.charAt(1)||(t[i]=e[i])}return t||e}function ge(e){var t=[];return JSON.stringify(e,function(e,n){if(n=F(e,n),y(n)){if(t.indexOf(n)>=0)return"...";t.push(n)}return n})}function ve(e){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):v(e)?"undefined":"string"!=typeof e?ge(e):e}function be(){return++bi}function ye(e){return e.replace(Mi,function(e,t,n,r){return r?n.toUpperCase():n}).replace(_i,"Moz$1")}function xe(e){return!ki.test(e)}function Me(e){var t=e.nodeType;return t===di||!t||t===hi}function _e(e){for(var t in vi[e.ng339])return!0;return!1}function we(e){for(var t=0,n=e.length;t<n;t++)Oe(e[t])}function Ae(e,t){var n,i,a,o,s=t.createDocumentFragment(),c=[];if(xe(e))c.push(t.createTextNode(e));else{for(n=s.appendChild(t.createElement("div")),i=($i.exec(e)||["",""])[1].toLowerCase(),a=Ci[i]||Ci._default,n.innerHTML=a[1]+e.replace(Ti,"<$1></$2>")+a[2],o=a[0];o--;)n=n.lastChild;c=B(c,n.childNodes),n=s.firstChild,n.textContent=""}return s.textContent="",s.innerHTML="",r(c,function(e){s.appendChild(e)}),s}function Se(t,n){n=n||e.document;var r;return(r=Si.exec(t))?[n.createElement(r[1])]:(r=Ae(t,n))?r.childNodes:[]}function ke(e,t){var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)}function $e(e){if(e instanceof $e)return e;var t;if(M(e)&&(e=ni(e),t=!0),!(this instanceof $e)){if(t&&"<"!==e.charAt(0))throw Ai("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new $e(e)}t?De(this,Se(e)):De(this,e)}function Te(e){return e.cloneNode(!0)}function Ce(e,t){if(t||Oe(e),e.querySelectorAll)for(var n=e.querySelectorAll("*"),r=0,i=n.length;r<i;r++)Oe(n[r])}function Ee(e,t,n,i){if(b(i))throw Ai("offargs","jqLite#off() does not support the `selector` argument");var a=ze(e),o=a&&a.events,s=a&&a.handle;if(s)if(t){var c=function(t){var r=o[t];b(n)&&R(r||[],n),b(n)&&r&&r.length>0||(xi(e,t,s),delete o[t])};r(t.split(" "),function(e){c(e),wi[e]&&c(wi[e])})}else for(t in o)"$destroy"!==t&&xi(e,t,s),delete o[t]}function Oe(e,t){var n=e.ng339,r=n&&vi[n];if(r){if(t)return void delete r.data[t];r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),Ee(e)),delete vi[n],e.ng339=void 0}}function ze(e,t){var n=e.ng339,r=n&&vi[n];return t&&!r&&(e.ng339=n=be(),r=vi[n]={events:{},data:{},handle:void 0}),r}function Le(e,t,n){if(Me(e)){var r=b(n),i=!r&&t&&!y(t),a=!t,o=ze(e,!i),s=o&&o.data;if(r)s[t]=n;else{if(a)return s;if(i)return s&&s[t];l(s,t)}}}function Ne(e,t){return!!e.getAttribute&&(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function Pe(e,t){t&&e.setAttribute&&r(t.split(" "),function(t){e.setAttribute("class",ni((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+ni(t)+" "," ")))})}function Ie(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");r(t.split(" "),function(e){e=ni(e),-1===n.indexOf(" "+e+" ")&&(n+=e+" ")}),e.setAttribute("class",ni(n))}}function De(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 Re(e,t){return je(e,"$"+(t||"ngController")+"Controller")}function je(e,t,n){e.nodeType===hi&&(e=e.documentElement);for(var r=ei(t)?t:[t];e;){for(var i=0,a=r.length;i<a;i++)if(b(n=Wr.data(e,r[i])))return n;e=e.parentNode||e.nodeType===mi&&e.host}}function qe(e){for(Ce(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function Be(e,t){t||Ce(e);var n=e.parentNode;n&&n.removeChild(e)}function We(t,n){n=n||e,"complete"===n.document.readyState?n.setTimeout(t):Wr(n).on("load",t)}function He(e,t){var n=zi[t.toLowerCase()];return n&&Li[D(e)]&&n}function Fe(e){return Ni[e]}function Xe(e,t){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=t[r||n.type],a=i?i.length:0;if(a){if(v(n.immediatePropagationStopped)){var o=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),o&&o.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped};var s=i.specialHandlerWrapper||Ue;a>1&&(i=me(i));for(var c=0;c<a;c++)n.isImmediatePropagationStopped()||s(e,n,i[c])}};return n.elem=e,n}function Ue(e,t,n){n.call(e,t)}function Ve(e,t,n){var r=t.relatedTarget;r&&(r===e||Ei.call(e,r))||n.call(e,t)}function Ge(){this.$get=function(){return l($e,{hasClass:function(e,t){return e.attr&&(e=e[0]),Ne(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),Ie(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),Pe(e,t)}})}}function Ye(e,t){var n=e&&e.$$hashKey;if(n)return"function"==typeof n&&(n=e.$$hashKey()),n;var r=void 0===e?"undefined":_typeof2(e);return n="function"===r||"object"===r&&null!==e?e.$$hashKey=r+":"+(t||o)():r+":"+e}function Qe(e,t){if(t){var n=0;this.nextUid=function(){return++n}}r(e,this.put,this)}function Ke(e){return Function.prototype.toString.call(e)+" "}function Ze(e){var t=Ke(e).replace(qi,"");return t.match(Ii)||t.match(Di)}function Je(e){var t=Ze(e);return t?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function et(e,t,n){var i,a,o;if("function"==typeof e){if(!(i=e.$inject)){if(i=[],e.length){if(t)throw M(n)&&n||(n=e.name||Je(e)),Bi("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);a=Ze(e),r(a[1].split(Ri),function(e){e.replace(ji,function(e,t,n){i.push(n)})})}e.$inject=i}}else ei(e)?(o=e.length-1,le(e[o],"fn"),i=e.slice(0,o)):le(e,"fn",!0);return i}function tt(e,t){function n(e){return function(t,n){if(!y(t))return e(t,n);r(t,a(e))}}function i(e,t){if(ue(e,"service"),(A(t)||ei(t))&&(t=w.instantiate(t)),!t.$get)throw Bi("pget","Provider '{0}' must define $get factory method.",e);return _[e+g]=t}function o(e,t){return function(){var n=$.invoke(t,this);if(v(n))throw Bi("undef","Provider '{0}' must return a value from $get factory method.",e);return n}}function s(e,t,n){return i(e,{$get:!1!==n?o(e,t):t})}function c(e,t){return s(e,["$injector",function(e){return e.instantiate(t)}])}function l(e,t){return s(e,m(t),!1)}function u(e,t){ue(e,"constant"),_[e]=t,S[e]=t}function d(e,t){var n=w.get(e+g),r=n.$get;n.$get=function(){var e=$.invoke(r,n);return $.invoke(t,null,{$delegate:e})}}function p(e){ce(v(e)||ei(e),"modulesToLoad","not an array");var t,n=[];return r(e,function(e){function r(e){var t,n;for(t=0,n=e.length;t<n;t++){var r=e[t],i=w.get(r[0]);i[r[1]].apply(i,r[2])}}if(!x.get(e)){x.put(e,!0);try{M(e)?(t=Fr(e),n=n.concat(p(t.requires)).concat(t._runBlocks),r(t._invokeQueue),r(t._configBlocks)):A(e)?n.push(w.invoke(e)):ei(e)?n.push(w.invoke(e)):le(e,"module")}catch(t){throw ei(e)&&(e=e[e.length-1]),t.message&&t.stack&&-1===t.stack.indexOf(t.message)&&(t=t.message+"\n"+t.stack),Bi("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]===h)throw Bi("cdep","Circular dependency found: {0}",t+" <- "+b.join(" <- "));return e[t]}try{return b.unshift(t),e[t]=h,e[t]=n(t,r),e[t]}catch(n){throw e[t]===h&&delete e[t],n}finally{b.shift()}}function i(e,n,i){for(var a=[],o=tt.$$annotate(e,t,i),s=0,c=o.length;s<c;s++){var l=o[s];if("string"!=typeof l)throw Bi("itkn","Incorrect injection token! Expected service name as string, got {0}",l);a.push(n&&n.hasOwnProperty(l)?n[l]:r(l,i))}return a}function a(e){return!(Br<=11)&&("function"==typeof e&&/^(?:class\b|constructor\()/.test(Ke(e)))}function o(e,t,n,r){"string"==typeof n&&(r=n,n=null);var o=i(e,n,r);return ei(e)&&(e=e[e.length-1]),a(e)?(o.unshift(null),new(Function.prototype.bind.apply(e,o))):e.apply(t,o)}function s(e,t,n){var r=ei(e)?e[e.length-1]:e,a=i(e,t,n);return a.unshift(null),new(Function.prototype.bind.apply(r,a))}return{invoke:o,instantiate:s,get:r,annotate:tt.$$annotate,has:function(t){return _.hasOwnProperty(t+g)||e.hasOwnProperty(t)}}}t=!0===t;var h={},g="Provider",b=[],x=new Qe([],!0),_={$provide:{provider:n(i),factory:n(s),service:n(c),value:n(l),constant:n(u),decorator:d}},w=_.$injector=f(_,function(e,t){throw Kr.isString(t)&&b.push(t),Bi("unpr","Unknown provider: {0}",b.join(" <- "))}),S={},k=f(S,function(e,t){var n=w.get(e+g,t);return $.invoke(n.$get,n,void 0,e)}),$=k;_["$injector"+g]={$get:m(k)};var T=p(e);return $=k.get("$injector"),$.strictDi=t,r(T,function(e){e&&$.invoke(e)}),$}function nt(){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"===D(e))return t=e,!0}),t}function a(){var e=s.yOffset;if(A(e))e=e();else if(P(e)){var n=e[0],r=t.getComputedStyle(n);e="fixed"!==r.position?0:n.getBoundingClientRect().bottom}else _(e)||(e=0);return e}function o(e){if(e){e.scrollIntoView();var n=a();if(n){var r=e.getBoundingClientRect().top;t.scrollBy(0,r-n)}}else t.scrollTo(0,0)}function s(e){e=M(e)?e:_(e)?e.toString():n.hash();var t;e?(t=c.getElementById(e))?o(t):(t=i(c.getElementsByName(e)))?o(t):"top"===e&&o(null):o(null)}var c=t.document;return e&&r.$watch(function(){return n.hash()},function(e,t){e===t&&""===e||We(function(){r.$evalAsync(s)})}),s}]}function rt(e,t){return e||t?e?t?(ei(e)&&(e=e.join(" ")),ei(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function it(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType===Hi)return n}}function at(e){M(e)&&(e=e.split(" "));var t=fe();return r(e,function(e){e.length&&(t[e]=!0)}),t}function ot(e){return y(e)?e:{}}function st(e,t,n,i){function a(e){try{e.apply(null,W(arguments,1))}finally{if(0===--b)for(;y.length;)try{y.pop()()}catch(e){n.error(e)}}}function o(e){var t=e.indexOf("#");return-1===t?"":e.substr(t)}function s(){A=null,c(),l()}function c(){x=S(),x=v(x)?null:x,q(x,T)&&(x=T),T=x}function l(){_===u.url()&&M===x||(_=u.url(),M=x,r(k,function(e){e(u.url(),x)}))}var u=this,d=e.location,p=e.history,h=e.setTimeout,m=e.clearTimeout,g={};u.isMock=!1;var b=0,y=[];u.$$completeOutstandingRequest=a,u.$$incOutstandingRequestCount=function(){b++},u.notifyWhenNoOutstandingRequests=function(e){0===b?e():y.push(e)};var x,M,_=d.href,w=t.find("base"),A=null,S=i.history?function(){try{return p.state}catch(e){}}:f;c(),M=x,u.url=function(t,n,r){if(v(r)&&(r=null),d!==e.location&&(d=e.location),p!==e.history&&(p=e.history),t){var a=M===r;if(_===t&&(!i.history||a))return u;var s=_&&Bt(_)===Bt(t);return _=t,M=r,!i.history||s&&a?(s||(A=t),n?d.replace(t):s?d.hash=o(t):d.href=t,d.href!==t&&(A=t)):(p[n?"replaceState":"pushState"](r,"",t),c(),M=x),A&&(A=t),u}return A||d.href.replace(/%27/g,"'")},u.state=function(){return x};var k=[],$=!1,T=null;u.onUrlChange=function(t){return $||(i.history&&Wr(e).on("popstate",s),Wr(e).on("hashchange",s),$=!0),k.push(t),t},u.$$applicationDestroyed=function(){Wr(e).off("hashchange popstate",s)},u.$$checkUrlChange=l,u.baseHref=function(){var e=w.attr("href");return e?e.replace(/^(https?:)?\/\/[^\/]*/,""):""},u.defer=function(e,t){var n;return b++,n=h(function(){delete g[n],a(e)},t||0),g[n]=!0,n},u.defer.cancel=function(e){return!!g[e]&&(delete g[e],m(e),a(f),!0)}}function ct(){this.$get=["$window","$log","$sniffer","$document",function(e,t,n,r){return new st(e,r,t,n)}]}function lt(){this.$get=function(){function e(e,r){function i(e){e!==p&&(f?f===e&&(f=e.n):f=e,a(e.n,e.p),a(e,p),p=e,p.n=null)}function a(e,t){e!==t&&(e&&(e.p=t),t&&(t.n=e))}if(e in n)throw t("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);var o=0,s=l({},r,{id:e}),c=fe(),u=r&&r.capacity||Number.MAX_VALUE,d=fe(),p=null,f=null;return n[e]={put:function(e,t){if(!v(t)){if(u<Number.MAX_VALUE){i(d[e]||(d[e]={key:e}))}return e in c||o++,c[e]=t,o>u&&this.remove(f.key),t}},get:function(e){if(u<Number.MAX_VALUE){var t=d[e];if(!t)return;i(t)}return c[e]},remove:function(e){if(u<Number.MAX_VALUE){var t=d[e];if(!t)return;t===p&&(p=t.p),t===f&&(f=t.n),a(t.n,t.p),delete d[e]}e in c&&(delete c[e],o--)},removeAll:function(){c=fe(),o=0,d=fe(),p=f=null},destroy:function(){c=null,s=null,d=null,delete n[e]},info:function(){return l({},s,{size:o})}}}var n={};return e.info=function(){var e={};return r(n,function(t,n){e[n]=t.info()}),e},e.get=function(e){return n[e]},e}}function ut(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function dt(){}function pt(t,n){function i(e,t,n){var i=/^\s*([@&<]|=(\*?))(\??)\s*([\w$]*)\s*$/,a=fe();return r(e,function(e,r){if(e in T)return void(a[r]=T[e]);var o=e.match(i);if(!o)throw Qi("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",t,r,e,n?"controller bindings definition":"isolate scope definition");a[r]={mode:o[1][0],collection:"*"===o[2],optional:"?"===o[3],attrName:o[4]||r},o[4]&&(T[e]=a[r])}),a}function o(e,t){var n={isolateScope:null,bindToController:null};if(y(e.scope)&&(!0===e.bindToController?(n.bindToController=i(e.scope,t,!0),n.isolateScope={}):n.isolateScope=i(e.scope,t,!1)),y(e.bindToController)&&(n.bindToController=i(e.bindToController,t,!0)),n.bindToController&&!e.controller)throw Qi("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);return n}function s(e){var t=e.charAt(0);if(!t||t!==Dr(t))throw Qi("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",e);if(e!==e.trim())throw Qi("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",e)}function c(e){var t=e.require||e.controller&&e.name;return!ei(t)&&y(t)&&r(t,function(e,n){var r=e.match(S);e.substring(r[0].length)||(t[n]=r[0]+n)}),t}function u(e,t){if(e&&(!M(e)||!/[EACM]/.test(e)))throw Qi("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",e,t);return e||"EA"}var d={},g="Directive",x=/^\s*directive:\s*([\w-]+)\s+(.*)$/,_=/(([\w-]+)(?::([^;]+))?;?)/,w=I("ngSrc,ngSrcset,src,srcset"),S=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,k=/^(on[a-z]+|formaction)$/,T=fe();this.directive=function e(n,i){return ce(n,"name"),ue(n,"directive"),M(n)?(s(n),ce(i,"directiveFactory"),d.hasOwnProperty(n)||(d[n]=[],t.factory(n+g,["$injector","$exceptionHandler",function(e,t){var i=[];return r(d[n],function(r,a){try{var o=e.invoke(r);A(o)?o={compile:m(o)}:!o.compile&&o.link&&(o.compile=m(o.link)),o.priority=o.priority||0,o.index=a,o.name=o.name||n,o.require=c(o),o.restrict=u(o.restrict,n),o.$$moduleName=r.$$moduleName,i.push(o)}catch(e){t(e)}}),i}])),d[n].push(i)):r(n,a(e)),this},this.component=function(e,t){function n(e){function n(t){return A(t)||ei(t)?function(n,r){return e.invoke(t,this,{$element:n,$attrs:r})}:t}var a=t.template||t.templateUrl?t.template:"",o={controller:i,controllerAs:vt(t.controller)||t.controllerAs||"$ctrl",template:n(a),templateUrl:n(t.templateUrl),transclude:t.transclude,scope:{},bindToController:t.bindings||{},restrict:"E",require:t.require};return r(t,function(e,t){"$"===t.charAt(0)&&(o[t]=e)}),o}var i=t.controller||function(){};return r(t,function(e,t){"$"===t.charAt(0)&&(n[t]=e,A(i)&&(i[t]=e))}),n.$inject=["$injector"],this.directive(e,n)},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 C=!0;this.debugInfoEnabled=function(e){return b(e)?(C=e,this):C};var E=!0;this.preAssignBindingsEnabled=function(e){return b(e)?(E=e,this):E};var z=10;this.onChangesTtl=function(e){return arguments.length?(z=e,this):z};var L=!0;this.commentDirectivesEnabled=function(e){return arguments.length?(L=e,this):L};var N=!0;this.cssClassDirectivesEnabled=function(e){return arguments.length?(N=e,this):N},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(t,n,i,a,s,c,u,m,T,P){function I(){try{if(!--Ee)throw we=void 0,Qi("infchng","{0} $onChanges() iterations reached. Aborting!\n",z);u.$apply(function(){for(var e=[],t=0,n=we.length;t<n;++t)try{we[t]()}catch(t){e.push(t)}if(we=void 0,e.length)throw e})}finally{Ee++}}function j(e,t){if(t){var n,r,i,a=Object.keys(t);for(n=0,r=a.length;n<r;n++)i=a[n],this[i]=t[i]}else this.$attr={};this.$$element=e}function B(e,t,n){Se.innerHTML="<span "+t+">";var r=Se.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,e.attributes.setNamedItem(i)}function F(e,t){try{e.addClass(t)}catch(e){}}function X(t,n,r,i,a){t instanceof Wr||(t=Wr(t));for(var o=/\S+/,s=0,c=t.length;s<c;s++){var l=t[s];l.nodeType===pi&&l.nodeValue.match(o)&&ke(l,t[s]=e.document.createElement("span"))}var u=V(t,n,t,r,i,a);X.$$addScopeClass(t);var d=null;return function(e,n,r){ce(e,"scope"),a&&a.needsNewScope&&(e=e.$parent.$new()),r=r||{};var i=r.parentBoundTranscludeFn,o=r.transcludeControllers,s=r.futureParentElement;i&&i.$$boundTransclude&&(i=i.$$boundTransclude),d||(d=U(s));var c;if(c="html"!==d?Wr(me(d,Wr("<div>").append(t).html())):n?Oi.clone.call(t):t,o)for(var l in o)c.data("$"+l+"Controller",o[l].instance);return X.$$addScopeInfo(c,e),n&&n(c,e),u&&u(e,c,c,i),c}}function U(e){var t=e&&e[0];return t&&"foreignobject"!==D(t)&&Gr.call(t).match(/SVG/)?"svg":"html"}function V(e,t,n,r,i,a){function o(e,n,r,i){var a,o,s,c,l,u,d,p,m;if(f){var g=n.length;for(m=new Array(g),l=0;l<h.length;l+=3)d=h[l],m[d]=n[d]}else m=n;for(l=0,u=h.length;l<u;)s=m[h[l++]],a=h[l++],o=h[l++],a?(a.scope?(c=e.$new(),X.$$addScopeInfo(Wr(s),c)):c=e,p=a.transcludeOnThisElement?G(e,a.transclude,i):!a.templateOnThisElement&&i?i:!i&&t?G(e,t):null,a(o,c,s,r,p)):o&&o(e,s.childNodes,void 0,i)}for(var s,c,l,u,d,p,f,h=[],m=0;m<e.length;m++)s=new j,c=Y(e[m],[],s,0===m?r:void 0,i),l=c.length?te(c,e[m],s,t,n,null,[],[],a):null,l&&l.scope&&X.$$addScopeClass(s.$$element),d=l&&l.terminal||!(u=e[m].childNodes)||!u.length?null:V(u,l?(l.transcludeOnThisElement||!l.templateOnThisElement)&&l.transclude:t),(l||d)&&(h.push(m,l,d),p=!0,f=f||l),a=null;return p?o:null}function G(e,t,n){function r(r,i,a,o,s){return r||(r=e.$new(!1,s),r.$$transcluded=!0),t(r,i,{parentBoundTranscludeFn:n,transcludeControllers:a,futureParentElement:o})}var i=r.$$slots=fe();for(var a in t.$$slots)t.$$slots[a]?i[a]=G(e,t.$$slots[a],n):i[a]=null;return r}function Y(e,t,n,r,i){var a,o,s,c=e.nodeType,l=n.$attr;switch(c){case di:o=D(e),ae(t,ht(o),"E",r,i);for(var u,d,p,f,h,m,g=e.attributes,v=0,b=g&&g.length;v<b;v++){var x=!1,w=!1;u=g[v],d=u.name,h=ni(u.value),f=ht(d),m=Ne.test(f),m&&(d=d.replace(Zi,"").substr(8).replace(/_(.)/g,function(e,t){return t.toUpperCase()}));var A=f.match(Pe);A&&oe(A[1])&&(x=d,w=d.substr(0,d.length-5)+"end",d=d.substr(0,d.length-6)),p=ht(d.toLowerCase()),l[p]=d,!m&&n.hasOwnProperty(p)||(n[p]=h,He(e,p)&&(n[p]=!0)),ve(e,t,h,p,m),ae(t,p,"A",r,i,x,w)}if("input"===o&&"hidden"===e.getAttribute("type")&&e.setAttribute("autocomplete","off"),!Ce)break;if(s=e.className,y(s)&&(s=s.animVal),M(s)&&""!==s)for(;a=_.exec(s);)p=ht(a[2]),ae(t,p,"C",r,i)&&(n[p]=ni(a[3])),s=s.substr(a.index+a[0].length);break;case pi:if(11===Br)for(;e.parentNode&&e.nextSibling&&e.nextSibling.nodeType===pi;)e.nodeValue=e.nodeValue+e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);he(t,e.nodeValue);break;case fi:if(!$e)break;K(e,t,n,r,i)}return t.sort(de),t}function K(e,t,n,r,i){try{var a=x.exec(e.nodeValue);if(a){var o=ht(a[1]);ae(t,o,"M",r,i)&&(n[o]=ni(a[2]))}}catch(e){}}function Z(e,t,n){var r=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t))do{if(!e)throw Qi("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);e.nodeType===di&&(e.hasAttribute(t)&&i++,e.hasAttribute(n)&&i--),r.push(e),e=e.nextSibling}while(i>0);else r.push(e);return Wr(r)}function J(e,t,n){return function(r,i,a,o,s){return i=Z(i[0],t,n),e(r,i,a,o,s)}}function ee(e,t,n,r,i,a){var o;return e?X(t,n,r,i,a):function(){return o||(o=X(t,n,r,i,a),t=n=a=null),o.apply(this,arguments)}}function te(e,t,n,a,o,s,c,u,d){function p(e,t,n,r){e&&(n&&(e=J(e,n,r)),e.require=h.require,e.directiveName=m,(S===h||h.$$isolateScope)&&(e=ye(e,{isolateScope:!0})),c.push(e)),t&&(n&&(t=J(t,n,r)),t.require=h.require,t.directiveName=m,(S===h||h.$$isolateScope)&&(t=ye(t,{isolateScope:!0})),u.push(t))}function f(e,a,o,s,d){function p(e,t,n,r){var i;if($(e)||(r=n,n=t,t=e,e=void 0),z&&(i=x),n||(n=z?T.parent():T),!r)return d(e,t,i,n,R);var a=d.$$slots[r];if(a)return a(e,t,i,n,R);if(v(a))throw Qi("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,Q(T))}var f,h,m,g,b,x,M,T,C,O;t===o?(C=n,T=n.$$element):(T=Wr(o),C=new j(T,n)),b=a,S?g=a.$new(!0):_&&(b=a.$parent),d&&(M=p,M.$$boundTransclude=d,M.isSlotFilled=function(e){return!!d.$$slots[e]}),w&&(x=re(T,C,M,w,g,a,S)),S&&(X.$$addScopeInfo(T,g,!0,!(k&&(k===S||k===S.$$originalDirective))),X.$$addScopeClass(T,!0),g.$$isolateBindings=S.$$isolateBindings,O=_e(a,C,g,g.$$isolateBindings,S),O.removeWatches&&g.$on("$destroy",O.removeWatches));for(var L in x){var N=w[L],P=x[L],I=N.$$bindings.bindToController;if(E){P.bindingInfo=I?_e(b,C,P.instance,I,N):{};var D=P();D!==P.instance&&(P.instance=D,T.data("$"+N.name+"Controller",D),P.bindingInfo.removeWatches&&P.bindingInfo.removeWatches(),P.bindingInfo=_e(b,C,P.instance,I,N))}else P.instance=P(),T.data("$"+N.name+"Controller",P.instance),P.bindingInfo=_e(b,C,P.instance,I,N)}for(r(w,function(e,t){var n=e.require;e.bindToController&&!ei(n)&&y(n)&&l(x[t].instance,ne(t,n,T,x))}),r(x,function(e){var t=e.instance;if(A(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(e){i(e)}if(A(t.$onInit))try{t.$onInit()}catch(e){i(e)}A(t.$doCheck)&&(b.$watch(function(){t.$doCheck()}),t.$doCheck()),A(t.$onDestroy)&&b.$on("$destroy",function(){t.$onDestroy()})}),f=0,h=c.length;f<h;f++)m=c[f],Me(m,m.isolateScope?g:a,T,C,m.require&&ne(m.directiveName,m.require,T,x),M);var R=a;for(S&&(S.template||null===S.templateUrl)&&(R=g),e&&e(R,o.childNodes,void 0,d),f=u.length-1;f>=0;f--)m=u[f],Me(m,m.isolateScope?g:a,T,C,m.require&&ne(m.directiveName,m.require,T,x),M);r(x,function(e){var t=e.instance;A(t.$postLink)&&t.$postLink()})}d=d||{};for(var h,m,g,b,x,M=-Number.MAX_VALUE,_=d.newScopeDirective,w=d.controllerDirectives,S=d.newIsolateScopeDirective,k=d.templateDirective,T=d.nonTlbTranscludeDirective,C=!1,O=!1,z=d.hasElementTranscludeDirective,L=n.$$element=Wr(t),N=s,P=a,I=!1,R=!1,q=0,B=e.length;q<B;q++){h=e[q];var F=h.$$start,U=h.$$end;if(F&&(L=Z(t,F,U)),g=void 0,M>h.priority)break;if(x=h.scope,x&&(h.templateUrl||(y(x)?(pe("new/isolated scope",S||_,h,L),S=h):pe("new/isolated scope",S,h,L)),_=_||h),m=h.name,!I&&(h.replace&&(h.templateUrl||h.template)||h.transclude&&!h.$$tlb)){for(var V,G=q+1;V=e[G++];)if(V.transclude&&!V.$$tlb||V.replace&&(V.templateUrl||V.template)){R=!0;break}I=!0}if(!h.templateUrl&&h.controller&&(w=w||fe(),pe("'"+m+"' controller",w[m],h,L),w[m]=h),x=h.transclude)if(C=!0,h.$$tlb||(pe("transclusion",T,h,L),T=h),"element"===x)z=!0,M=h.priority,g=L,L=n.$$element=Wr(X.$$createComment(m,n[m])),t=L[0],be(o,W(g),t),g[0].$$parentNode=g[0].parentNode,P=ee(R,g,a,M,N&&N.name,{nonTlbTranscludeDirective:T});else{var K=fe();if(g=Wr(Te(t)).contents(),y(x)){g=[];var te=fe(),ae=fe();r(x,function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,te[e]=t,K[t]=null,ae[t]=n}),r(L.contents(),function(e){var t=te[ht(D(e))];t?(ae[t]=!0,K[t]=K[t]||[],K[t].push(e)):g.push(e)}),r(ae,function(e,t){if(!e)throw Qi("reqslot","Required transclusion slot `{0}` was not filled.",t)});for(var oe in K)K[oe]&&(K[oe]=ee(R,K[oe],a))}L.empty(),P=ee(R,g,a,void 0,void 0,{needsNewScope:h.$$isolateScope||h.$$newScope}),P.$$slots=K}if(h.template)if(O=!0,pe("template",k,h,L),k=h,x=A(h.template)?h.template(L,n):h.template,x=Le(x),h.replace){if(N=h,g=xe(x)?[]:gt(me(h.templateNamespace,ni(x))),t=g[0],1!==g.length||t.nodeType!==di)throw Qi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",m,"");be(o,L,t);var se={$attr:{}},ce=Y(t,[],se),de=e.splice(q+1,e.length-(q+1));(S||_)&&ie(ce,S,_),e=e.concat(ce).concat(de),le(n,se),B=e.length}else L.html(x);if(h.templateUrl)O=!0,pe("template",k,h,L),k=h,h.replace&&(N=h),f=ue(e.splice(q,e.length-q),L,n,o,C&&P,c,u,{controllerDirectives:w,newScopeDirective:_!==h&&_,newIsolateScopeDirective:S,templateDirective:k,nonTlbTranscludeDirective:T}),B=e.length;else if(h.compile)try{b=h.compile(L,n,P);var he=h.$$originalDirective||h;A(b)?p(null,H(he,b),F,U):b&&p(H(he,b.pre),H(he,b.post),F,U)}catch(e){i(e,Q(L))}h.terminal&&(f.terminal=!0,M=Math.max(M,h.priority))}return f.scope=_&&!0===_.scope,f.transcludeOnThisElement=C,f.templateOnThisElement=O,f.transclude=P,d.hasElementTranscludeDirective=z,f}function ne(e,t,n,i){var a;if(M(t)){var o=t.match(S),s=t.substring(o[0].length),c=o[1]||o[3],l="?"===o[2];if("^^"===c?n=n.parent():(a=i&&i[s],a=a&&a.instance),!a){var u="$"+s+"Controller";a=c?n.inheritedData(u):n.data(u)}if(!a&&!l)throw Qi("ctreq","Controller '{0}', required by directive '{1}', can't be found!",s,e)}else if(ei(t)){a=[];for(var d=0,p=t.length;d<p;d++)a[d]=ne(e,t[d],n,i)}else y(t)&&(a={},r(t,function(t,r){a[r]=ne(e,t,n,i)}));return a||null}function re(e,t,n,r,i,a,o){var s=fe();for(var l in r){var u=r[l],d={$scope:u===o||u.$$isolateScope?i:a,$element:e,$attrs:t,$transclude:n},p=u.controller;"@"===p&&(p=t[u.name]);var f=c(p,d,!0,u.controllerAs);s[u.name]=f,e.data("$"+u.name+"Controller",f.instance)}return s}function ie(e,t,n){for(var r=0,i=e.length;r<i;r++)e[r]=p(e[r],{$$isolateScope:t,$$newScope:n})}function ae(e,n,r,i,a,s,c){if(n===a)return null;var l=null;if(d.hasOwnProperty(n))for(var u,f=t.get(n+g),h=0,m=f.length;h<m;h++)if(u=f[h],(v(i)||i>u.priority)&&-1!==u.restrict.indexOf(r)){if(s&&(u=p(u,{$$start:s,$$end:c})),!u.$$bindings){var b=u.$$bindings=o(u,u.name);y(b.isolateScope)&&(u.$$isolateBindings=b.isolateScope)}e.push(u),l=u}return l}function oe(e){if(d.hasOwnProperty(e))for(var n,r=t.get(e+g),i=0,a=r.length;i<a;i++)if(n=r[i],n.multiElement)return!0;return!1}function le(e,t){var n=t.$attr,i=e.$attr;r(e,function(r,i){"$"!==i.charAt(0)&&(t[i]&&t[i]!==r&&(r+=("style"===i?";":" ")+t[i]),e.$set(i,r,!0,n[i]))}),r(t,function(t,r){e.hasOwnProperty(r)||"$"===r.charAt(0)||(e[r]=t,"class"!==r&&"style"!==r&&(i[r]=n[r]))})}function ue(e,t,n,i,o,s,c,l){var u,d,f=[],h=t[0],m=e.shift(),g=p(m,{templateUrl:null,transclude:null,replace:null,$$originalDirective:m}),v=A(m.templateUrl)?m.templateUrl(t,n):m.templateUrl,b=m.templateNamespace;return t.empty(),a(v).then(function(a){var p,x,M,_;if(a=Le(a),m.replace){if(M=xe(a)?[]:gt(me(b,ni(a))),p=M[0],1!==M.length||p.nodeType!==di)throw Qi("tplrt","Template for directive '{0}' must have exactly one root element. {1}",m.name,v);x={$attr:{}},be(i,t,p);var w=Y(p,[],x);y(m.scope)&&ie(w,!0),e=w.concat(e),le(n,x)}else p=h,t.html(a);for(e.unshift(g),u=te(e,p,n,o,t,m,s,c,l),r(i,function(e,n){e===p&&(i[n]=t[0])}),d=V(t[0].childNodes,o);f.length;){var A=f.shift(),S=f.shift(),k=f.shift(),$=f.shift(),T=t[0];if(!A.$$destroyed){if(S!==h){var C=S.className;l.hasElementTranscludeDirective&&m.replace||(T=Te(p)),be(k,Wr(S),T),F(Wr(T),C)}_=u.transcludeOnThisElement?G(A,u.transclude,$):$,u(d,A,T,i,_)}}f=null}),function(e,t,n,r,i){var a=i;t.$$destroyed||(f?f.push(t,n,r,a):(u.transcludeOnThisElement&&(a=G(t,u.transclude,i)),u(d,t,n,r,a)))}}function de(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 pe(e,t,n,r){function i(e){return e?" (module: "+e+")":""}if(t)throw Qi("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,i(t.$$moduleName),n.name,i(n.$$moduleName),e,Q(r))}function he(e,t){var r=n(t,!0);r&&e.push({priority:0,compile:function(e){var t=e.parent(),n=!!t.length;return n&&X.$$addBindingClass(t),function(e,t){var i=t.parent();n||X.$$addBindingClass(i),X.$$addBindingInfo(i,r.expressions),e.$watch(r,function(e){t[0].nodeValue=e})}}})}function me(t,n){switch(t=Dr(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){if("srcdoc"===t)return m.HTML;var n=D(e);if("src"===t||"ngSrc"===t){if(-1===["img","video","audio","source","track"].indexOf(n))return m.RESOURCE_URL}else if("xlinkHref"===t||"form"===n&&"action"===t)return m.RESOURCE_URL}function ve(e,t,r,i,a){var o=ge(e,i),s=!a,c=w[i]||a,l=n(r,s,o,c);if(l){if("multiple"===i&&"select"===D(e))throw Qi("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",Q(e));t.push({priority:100,compile:function(){return{pre:function(e,t,a){var s=a.$$observers||(a.$$observers=fe());if(k.test(i))throw Qi("nodomevents","Interpolations for HTML DOM event attributes are disallowed. Please use the ng- versions (such as ng-click instead of onclick) instead.");var u=a[i];u!==r&&(l=u&&n(u,!0,o,c),r=u),l&&(a[i]=l(e),(s[i]||(s[i]=[])).$$inter=!0,(a.$$observers&&a.$$observers[i].$$scope||e).$watch(l,function(e,t){"class"===i&&e!==t?a.$updateClass(e,t):a.$set(i,e)}))}}}})}}function be(t,n,r){var i,a,o=n[0],s=n.length,c=o.parentNode;if(t)for(i=0,a=t.length;i<a;i++)if(t[i]===o){t[i++]=r;for(var l=i,u=l+s-1,d=t.length;l<d;l++,u++)u<d?t[l]=t[u]:delete t[l];t.length-=s-1,t.context===o&&(t.context=r);break}c&&c.replaceChild(r,o);var p=e.document.createDocumentFragment();for(i=0;i<s;i++)p.appendChild(n[i]);for(Wr.hasData(o)&&(Wr.data(r,Wr.data(o)),Wr(o).off("$destroy")),Wr.cleanData(p.querySelectorAll("*")),i=1;i<s;i++)delete n[i];n[0]=r,n.length=1}function ye(e,t){return l(function(){return e.apply(null,arguments)},e,t)}function Me(e,t,n,r,a,o){try{e(t,n,r,a,o)}catch(e){i(e,Q(n))}}function _e(e,t,i,a,o){function c(t,n,r){!A(i.$onChanges)||n===r||n!==n&&r!==r||(we||(e.$$postDigest(I),we=[]),u||(u={},we.push(l)),u[t]&&(r=u[t].previousValue),u[t]=new ft(r,n))}function l(){i.$onChanges(u),u=void 0}var u,d=[],p={};return r(a,function(r,a){var l,u,h,m,g,v=r.attrName,b=r.optional,y=r.mode;switch(y){case"@":b||Ir.call(t,v)||(i[a]=t[v]=void 0),g=t.$observe(v,function(e){if(M(e)||O(e)){var t=i[a];c(a,e,t),i[a]=e}}),t.$$observers[v].$$scope=e,l=t[v],M(l)?i[a]=n(l)(e):O(l)&&(i[a]=l),p[a]=new ft(Ki,i[a]),d.push(g);break;case"=":if(!Ir.call(t,v)){if(b)break;t[v]=void 0}if(b&&!t[v])break;u=s(t[v]),m=u.literal?q:function(e,t){return e===t||e!==e&&t!==t},h=u.assign||function(){throw l=i[a]=u(e),Qi("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",t[v],v,o.name)},l=i[a]=u(e);var x=function(t){return m(t,i[a])||(m(t,l)?h(e,t=i[a]):i[a]=t),l=t};x.$stateful=!0,g=r.collection?e.$watchCollection(t[v],x):e.$watch(s(t[v],x),null,u.literal),d.push(g);break;case"<":if(!Ir.call(t,v)){if(b)break;t[v]=void 0}if(b&&!t[v])break;u=s(t[v]);var _=u.literal,w=i[a]=u(e);p[a]=new ft(Ki,i[a]),g=e.$watch(u,function(e,t){if(t===e){if(t===w||_&&q(t,w))return;t=w}c(a,e,t),i[a]=e},_),d.push(g);break;case"&":if((u=t.hasOwnProperty(v)?s(t[v]):f)===f&&b)break;i[a]=function(t){return u(e,t)}}}),{initialChanges:p,removeWatches:d.length&&function(){for(var e=0,t=d.length;e<t;++e)d[e]()}}}var we,Ae=/^\w/,Se=e.document.createElement("div"),$e=L,Ce=N,Ee=z;j.prototype={$normalize:ht,$addClass:function(e){e&&e.length>0&&T.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&T.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=mt(e,t);n&&n.length&&T.addClass(this.$$element,n);var r=mt(t,e);r&&r.length&&T.removeClass(this.$$element,r)},$set:function(e,t,n,a){var o,s=this.$$element[0],c=He(s,e),l=Fe(e),u=e;if(c?(this.$$element.prop(e,t),a=c):l&&(this[l]=t,u=l),this[e]=t,a?this.$attr[e]=a:(a=this.$attr[e])||(this.$attr[e]=a=se(e,"-")),"a"===(o=D(this.$$element))&&("href"===e||"xlinkHref"===e)||"img"===o&&"src"===e)this[e]=t=P(t,"src"===e);else if("img"===o&&"srcset"===e&&b(t)){
36for(var d="",p=ni(t),f=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,h=/\s/.test(p)?f:/(,)/,m=p.split(h),g=Math.floor(m.length/2),y=0;y<g;y++){var x=2*y;d+=P(ni(m[x]),!0),d+=" "+ni(m[x+1])}var M=ni(m[2*y]).split(/\s/);d+=P(ni(M[0]),!0),2===M.length&&(d+=" "+ni(M[1])),this[e]=t=d}!1!==n&&(null===t||v(t)?this.$$element.removeAttr(a):Ae.test(a)?this.$$element.attr(a,t):B(this.$$element[0],a,t));var _=this.$$observers;_&&r(_[u],function(e){try{e(t)}catch(e){i(e)}})},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers=fe()),i=r[e]||(r[e]=[]);return i.push(t),u.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(e)||v(n[e])||t(n[e])}),function(){R(i,t)}}};var Oe=n.startSymbol(),ze=n.endSymbol(),Le="{{"===Oe&&"}}"===ze?h:function(e){return e.replace(/\{\{/g,Oe).replace(/}}/g,ze)},Ne=/^ngAttr[A-Z]/,Pe=/^(.+)Start$/;return X.$$addBindingInfo=C?function(e,t){var n=e.data("$binding")||[];ei(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:f,X.$$addBindingClass=C?function(e){F(e,"ng-binding")}:f,X.$$addScopeInfo=C?function(e,t,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(i,t)}:f,X.$$addScopeClass=C?function(e,t){F(e,t?"ng-isolate-scope":"ng-scope")}:f,X.$$createComment=function(t,n){var r="";return C&&(r=" "+(t||"")+": ",n&&(r+=n+" ")),e.document.createComment(r)},X}]}function ft(e,t){this.previousValue=e,this.currentValue=t}function ht(e){return ye(e.replace(Zi,""))}function mt(e,t){var n="",r=e.split(/\s+/),i=t.split(/\s+/);e:for(var a=0;a<r.length;a++){for(var o=r[a],s=0;s<i.length;s++)if(o===i[s])continue e;n+=(n.length>0?" ":"")+o}return n}function gt(e){e=Wr(e);var t=e.length;if(t<=1)return e;for(;t--;){var n=e[t];(n.nodeType===fi||n.nodeType===pi&&""===n.nodeValue.trim())&&Ur.call(e,t,1)}return e}function vt(e,t){if(t&&M(t))return t;if(M(e)){var n=ea.exec(e);if(n)return n[3]}}function bt(){var e={},n=!1;this.has=function(t){return e.hasOwnProperty(t)},this.register=function(t,n){ue(t,"controller"),y(t)?l(e,t):e[t]=n},this.allowGlobals=function(){n=!0},this.$get=["$injector","$window",function(r,i){function a(e,n,r,i){if(!e||!y(e.$scope))throw t("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,n);e.$scope[n]=r}return function(t,o,s,c){var u,d,p,f;if(s=!0===s,c&&M(c)&&(f=c),M(t)){if(!(d=t.match(ea)))throw Ji("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",t);if(p=d[1],f=f||d[3],!(t=e.hasOwnProperty(p)?e[p]:de(o.$scope,p,!0)||(n?de(i,p,!0):void 0)))throw Ji("ctrlreg","The controller with the name '{0}' is not registered.",p);le(t,p,!0)}if(s){var h=(ei(t)?t[t.length-1]:t).prototype;return u=Object.create(h||null),f&&a(o,f,u,p||t.name),l(function(){var e=r.invoke(t,u,o,p);return e!==u&&(y(e)||A(e))&&(u=e,f&&a(o,f,u,p||t.name)),u},{instance:u,identifier:f})}return u=r.instantiate(t,o,p),f&&a(o,f,u,p||t.name),u}}]}function yt(){this.$get=["$window",function(e){return Wr(e.document)}]}function xt(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}function Mt(e){return y(e)?w(e)?e.toISOString():X(e):e}function _t(){this.$get=function(){return function(e){if(!e)return"";var t=[];return i(e,function(e,n){null===e||v(e)||(ei(e)?r(e,function(e){t.push(te(n)+"="+te(Mt(e)))}):t.push(te(n)+"="+te(Mt(e))))}),t.join("&")}}}function wt(){this.$get=function(){return function(e){function t(e,a,o){null===e||v(e)||(ei(e)?r(e,function(e,n){t(e,a+"["+(y(e)?n:"")+"]")}):y(e)&&!w(e)?i(e,function(e,n){t(e,a+(o?"":"[")+n+(o?"":"]"))}):n.push(te(a)+"="+te(Mt(e))))}if(!e)return"";var n=[];return t(e,"",!0),n.join("&")}}}function At(e,t){if(M(e)){var n=e.replace(oa,"").trim();if(n){var r=t("Content-Type");(r&&0===r.indexOf(na)||St(n))&&(e=U(n))}}return e}function St(e){var t=e.match(ia);return t&&aa[t[0]].test(e)}function kt(e){function t(e,t){e&&(i[e]=i[e]?i[e]+", "+t:t)}var n,i=fe();return M(e)?r(e.split("\n"),function(e){n=e.indexOf(":"),t(Dr(ni(e.substr(0,n))),ni(e.substr(n+1)))}):y(e)&&r(e,function(e,n){t(Dr(n),ni(e))}),i}function $t(e){var t;return function(n){if(t||(t=kt(e)),n){var r=t[Dr(n)];return void 0===r&&(r=null),r}return t}}function Tt(e,t,n,i){return A(i)?i(e,t,n):(r(i,function(r){e=r(e,t,n)}),e)}function Ct(e){return 200<=e&&e<300}function Et(){var e=this.defaults={transformResponse:[At],transformRequest:[function(e){return!y(e)||T(e)||E(e)||C(e)?e:X(e)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:me(ra),put:me(ra),patch:me(ra)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"},n=!1;this.useApplyAsync=function(e){return b(e)?(n=!!e,this):n};var i=!0;this.useLegacyPromiseExtensions=function(e){return b(e)?(i=!!e,this):i};var a=this.interceptors=[];this.$get=["$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector",function(o,s,c,u,d,p){function f(n){function a(e,t){for(var n=0,r=t.length;n<r;){var i=t[n++],a=t[n++];e=e.then(i,a)}return t.length=0,e}function o(e,t){var n,i={};return r(e,function(e,r){A(e)?null!=(n=e(t))&&(i[r]=n):i[r]=e}),i}function s(t){var n=t.headers,i=Tt(t.data,$t(n),void 0,t.transformRequest);return v(i)&&r(n,function(e,t){"content-type"===Dr(t)&&delete n[t]}),v(t.withCredentials)&&!v(e.withCredentials)&&(t.withCredentials=e.withCredentials),h(t,i).then(c,c)}function c(e){var t=l({},e);return t.data=Tt(e.data,e.headers,e.status,u.transformResponse),Ct(e.status)?t:d.reject(t)}if(!y(n))throw t("$http")("badreq","Http request configuration must be an object. Received: {0}",n);if(!M(n.url))throw t("$http")("badreq","Http request configuration url must be a string. Received: {0}",n.url);var u=l({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer},n);u.headers=function(t){var n,r,i,a=e.headers,s=l({},t.headers);a=l({},a.common,a[Dr(t.method)]);e:for(n in a){r=Dr(n);for(i in s)if(Dr(i)===r)continue e;s[n]=a[n]}return o(s,me(t))}(n),u.method=Rr(u.method),u.paramSerializer=M(u.paramSerializer)?p.get(u.paramSerializer):u.paramSerializer;var f=[],m=[],g=d.when(u);return r(x,function(e){(e.request||e.requestError)&&f.unshift(e.request,e.requestError),(e.response||e.responseError)&&m.push(e.response,e.responseError)}),g=a(g,f),g=g.then(s),g=a(g,m),i?(g.success=function(e){return le(e,"fn"),g.then(function(t){e(t.data,t.status,t.headers,u)}),g},g.error=function(e){return le(e,"fn"),g.then(null,function(t){e(t.data,t.status,t.headers,u)}),g}):(g.success=ca("success"),g.error=ca("error")),g}function h(t,i){function a(e){if(e){var t={};return r(e,function(e,r){t[r]=function(t){function r(){e(t)}n?u.$applyAsync(r):u.$$phase?r():u.$apply(r)}}),t}}function c(e,t,r,i){function a(){l(t,e,r,i)}x&&(Ct(e)?x.put(S,[e,t,kt(r),i]):x.remove(S)),n?u.$applyAsync(a):(a(),u.$$phase||u.$apply())}function l(e,n,r,i){n=n>=-1?n:0,(Ct(n)?_.resolve:_.reject)({data:e,status:n,headers:$t(r),config:t,statusText:i})}function p(e){l(e.data,e.status,me(e.headers()),e.statusText)}function h(){var e=f.pendingRequests.indexOf(t);-1!==e&&f.pendingRequests.splice(e,1)}var x,M,_=d.defer(),w=_.promise,A=t.headers,S=m(t.url,t.paramSerializer(t.params));if(f.pendingRequests.push(t),w.then(h,h),!t.cache&&!e.cache||!1===t.cache||"GET"!==t.method&&"JSONP"!==t.method||(x=y(t.cache)?t.cache:y(e.cache)?e.cache:g),x&&(M=x.get(S),b(M)?z(M)?M.then(p,p):ei(M)?l(M[1],M[0],me(M[2]),M[3]):l(M,200,{},"OK"):x.put(S,w)),v(M)){var k=Ln(t.url)?s()[t.xsrfCookieName||e.xsrfCookieName]:void 0;k&&(A[t.xsrfHeaderName||e.xsrfHeaderName]=k),o(t.method,S,i,c,A,t.timeout,t.withCredentials,t.responseType,a(t.eventHandlers),a(t.uploadEventHandlers))}return w}function m(e,t){return t.length>0&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e}var g=c("$http");e.paramSerializer=M(e.paramSerializer)?p.get(e.paramSerializer):e.paramSerializer;var x=[];return r(a,function(e){x.unshift(M(e)?p.get(e):p.invoke(e))}),f.pendingRequests=[],function(e){r(arguments,function(e){f[e]=function(t,n){return f(l({},n||{},{method:e,url:t}))}})}("get","delete","head","jsonp"),function(e){r(arguments,function(e){f[e]=function(t,n,r){return f(l({},r||{},{method:e,url:t,data:n}))}})}("post","put","patch"),f.defaults=e,f}]}function Ot(){this.$get=function(){return function(){return new e.XMLHttpRequest}}}function zt(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(e,t,n,r){return Lt(e,r,e.defer,t,n[0])}]}function Lt(e,t,n,i,a){function o(e,t,n){e=e.replace("JSON_CALLBACK",t);var r=a.createElement("script"),o=null;return r.type="text/javascript",r.src=e,r.async=!0,o=function(e){xi(r,"load",o),xi(r,"error",o),a.body.removeChild(r),r=null;var s=-1,c="unknown";e&&("load"!==e.type||i.wasCalled(t)||(e={type:"error"}),c=e.type,s="error"===e.type?404:200),n&&n(s,c)},yi(r,"load",o),yi(r,"error",o),a.body.appendChild(r),o}return function(a,s,c,l,u,d,p,h,m,g){function y(){_&&_(),w&&w.abort()}function x(t,r,i,a,o){b(S)&&n.cancel(S),_=w=null,t(r,i,a,o),e.$$completeOutstandingRequest(f)}if(e.$$incOutstandingRequestCount(),s=s||e.url(),"jsonp"===Dr(a))var M=i.createCallback(s),_=o(s,M,function(e,t){var n=200===e&&i.getResponse(M);x(l,e,n,"",t),i.removeCallback(M)});else{var w=t(a,s);w.open(a,s,!0),r(u,function(e,t){b(e)&&w.setRequestHeader(t,e)}),w.onload=function(){var e=w.statusText||"",t="response"in w?w.response:w.responseText,n=1223===w.status?204:w.status;0===n&&(n=t?200:"file"===zn(s).protocol?404:0),x(l,n,t,w.getAllResponseHeaders(),e)};var A=function(){x(l,-1,null,null,"")};if(w.onerror=A,w.onabort=A,w.ontimeout=A,r(m,function(e,t){w.addEventListener(t,e)}),r(g,function(e,t){w.upload.addEventListener(t,e)}),p&&(w.withCredentials=!0),h)try{w.responseType=h}catch(e){if("json"!==h)throw e}w.send(v(c)?null:c)}if(d>0)var S=n(y,d);else z(d)&&d.then(y)}}function Nt(){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 a(e){return"\\\\\\"+e}function o(n){return n.replace(f,e).replace(h,t)}function s(e){if(null==e)return"";switch(void 0===e?"undefined":_typeof2(e)){case"string":break;case"number":e=""+e;break;default:e=X(e)}return e}function c(e,t,n,r){var i=e.$watch(function(e){return i(),r(e)},t,n);return i}function u(a,u,f,h){function g(e){try{return e=O(e),h&&!b(e)?e:s(e)}catch(e){r(la.interr(a,e))}}if(!a.length||-1===a.indexOf(e)){var y;if(!u){y=m(o(a)),y.exp=a,y.expressions=[],y.$$watchDelegate=c}return y}h=!!h;for(var x,M,_,w=0,S=[],k=[],$=a.length,T=[],C=[];w<$;){if(-1===(x=a.indexOf(e,w))||-1===(M=a.indexOf(t,x+d))){w!==$&&T.push(o(a.substring(w)));break}w!==x&&T.push(o(a.substring(w,x))),_=a.substring(x+d,M),S.push(_),k.push(n(_,g)),w=M+p,C.push(T.length),T.push("")}if(f&&T.length>1&&la.throwNoconcat(a),!u||S.length){var E=function(e){for(var t=0,n=S.length;t<n;t++){if(h&&v(e[t]))return;T[C[t]]=e[t]}return T.join("")},O=function(e){return f?i.getTrusted(f,e):i.valueOf(e)};return l(function(e){var t=0,n=S.length,i=new Array(n);try{for(;t<n;t++)i[t]=k[t](e);return E(i)}catch(e){r(la.interr(a,e))}},{exp:a,expressions:S,$$watchDelegate:function(e,t){var n;return e.$watchGroup(k,function(r,i){var a=E(r);A(t)&&t.call(this,a,r!==i?n:a,e),n=a})}})}}var d=e.length,p=t.length,f=new RegExp(e.replace(/./g,a),"g"),h=new RegExp(t.replace(/./g,a),"g");return u.startSymbol=function(){return e},u.endSymbol=function(){return t},u}]}function Pt(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(e,t,n,r,i){function a(a,s,c,l){function u(){d?a.apply(null,p):a(m)}var d=arguments.length>4,p=d?W(arguments,4):[],f=t.setInterval,h=t.clearInterval,m=0,g=b(l)&&!l,v=(g?r:n).defer(),y=v.promise;return c=b(c)?c:0,y.$$intervalId=f(function(){g?i.defer(u):e.$evalAsync(u),v.notify(m++),c>0&&m>=c&&(v.resolve(m),h(y.$$intervalId),delete o[y.$$intervalId]),g||e.$apply()},s),o[y.$$intervalId]=v,y}var o={};return a.cancel=function(e){return!!(e&&e.$$intervalId in o)&&(o[e.$$intervalId].reject("canceled"),t.clearInterval(e.$$intervalId),delete o[e.$$intervalId],!0)},a}]}function It(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=ee(t[n]);return t.join("/")}function Dt(e,t){var n=zn(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=d(n.port)||pa[n.protocol]||null}function Rt(e,t){if(ha.test(e))throw fa("badpath",'Invalid url "{0}".',e);var n="/"!==e.charAt(0);n&&(e="/"+e);var r=zn(e);t.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),t.$$search=Z(r.search),t.$$hash=decodeURIComponent(r.hash),t.$$path&&"/"!==t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function jt(e,t){return e.slice(0,t.length)===t}function qt(e,t){if(jt(t,e))return t.substr(e.length)}function Bt(e){var t=e.indexOf("#");return-1===t?e:e.substr(0,t)}function Wt(e){return e.replace(/(#.+)|#$/,"$1")}function Ht(e){return e.substr(0,Bt(e).lastIndexOf("/")+1)}function Ft(e){return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function Xt(e,t,n){this.$$html5=!0,n=n||"",Dt(e,this),this.$$parse=function(e){var n=qt(t,e);if(!M(n))throw fa("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,t);Rt(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var e=J(this.$$search),n=this.$$hash?"#"+ee(this.$$hash):"";this.$$url=It(this.$$path)+(e?"?"+e:"")+n,this.$$absUrl=t+this.$$url.substr(1)},this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var a,o,s;return b(a=qt(e,r))?(o=a,s=n&&b(a=qt(n,a))?t+(qt("/",a)||a):e+o):b(a=qt(t,r))?s=t+a:t===r+"/"&&(s=t),s&&this.$$parse(s),!!s}}function Ut(e,t,n){Dt(e,this),this.$$parse=function(r){var i,a=qt(e,r)||qt(t,r);v(a)||"#"!==a.charAt(0)?this.$$html5?i=a:(i="",v(a)&&(e=r,this.replace())):(i=qt(n,a),v(i)&&(i=a)),Rt(i,this),this.$$path=function(e,t,n){var r,i=/^\/[A-Z]:(\/.*)/;return jt(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.$$compose=function(){var t=J(this.$$search),r=this.$$hash?"#"+ee(this.$$hash):"";this.$$url=It(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+(this.$$url?n+this.$$url:"")},this.$$parseLinkUrl=function(t,n){return Bt(e)===Bt(t)&&(this.$$parse(t),!0)}}function Vt(e,t,n){this.$$html5=!0,Ut.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var a,o;return e===Bt(r)?a=r:(o=qt(t,r))?a=e+n+o:t===r+"/"&&(a=t),a&&this.$$parse(a),!!a},this.$$compose=function(){var t=J(this.$$search),r=this.$$hash?"#"+ee(this.$$hash):"";this.$$url=It(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+n+this.$$url}}function Gt(e){return function(){return this[e]}}function Yt(e,t){return function(n){return v(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function Qt(){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 O(e)?(t.enabled=e,this):y(e)?(O(e.enabled)&&(t.enabled=e.enabled),O(e.requireBase)&&(t.requireBase=e.requireBase),(O(e.rewriteLinks)||M(e.rewriteLinks))&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,a,o){function s(e,t,n){var i=l.url(),a=l.$$state;try{r.url(e,t,n),l.$$state=r.state()}catch(e){throw l.url(i),l.$$state=a,e}}function c(e,t){n.$broadcast("$locationChangeSuccess",l.absUrl(),e,l.$$state,t)}var l,u,d,p=r.baseHref(),f=r.url();if(t.enabled){if(!p&&t.requireBase)throw fa("nobase","$location in HTML5 mode requires a <base> tag to be present!");d=Ft(f)+(p||"/"),u=i.history?Xt:Vt}else d=Bt(f),u=Ut;var h=Ht(d);l=new u(d,h,"#"+e),l.$$parseLinkUrl(f,f),l.$$state=r.state();var m=/^\s*(javascript|mailto):/i;a.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=Wr(e.target);"a"!==D(s[0]);)if(s[0]===a[0]||!(s=s.parent())[0])return;if(!M(i)||!v(s.attr(i))){var c=s.prop("href"),u=s.attr("href")||s.attr("xlink:href");y(c)&&"[object SVGAnimatedString]"===c.toString()&&(c=zn(c.animVal).href),m.test(c)||!c||s.attr("target")||e.isDefaultPrevented()||l.$$parseLinkUrl(c,u)&&(e.preventDefault(),l.absUrl()!==r.url()&&(n.$apply(),o.angular["ff-684208-preventDefault"]=!0))}}}),Wt(l.absUrl())!==Wt(f)&&r.url(l.absUrl(),!0);var g=!0;return r.onUrlChange(function(e,t){if(v(qt(h,e)))return void(o.location.href=e);n.$evalAsync(function(){var r,i=l.absUrl(),a=l.$$state;e=Wt(e),l.$$parse(e),l.$$state=t,r=n.$broadcast("$locationChangeStart",e,i,t,a).defaultPrevented,l.absUrl()===e&&(r?(l.$$parse(i),l.$$state=a,s(i,!1,a)):(g=!1,c(i,a)))}),n.$$phase||n.$digest()}),n.$watch(function(){var e=Wt(r.url()),t=Wt(l.absUrl()),a=r.state(),o=l.$$replace,u=e!==t||l.$$html5&&i.history&&a!==l.$$state;(g||u)&&(g=!1,n.$evalAsync(function(){var t=l.absUrl(),r=n.$broadcast("$locationChangeStart",t,e,l.$$state,a).defaultPrevented;l.absUrl()===t&&(r?(l.$$parse(e),l.$$state=a):(u&&s(t,o,a===l.$$state?null:l.$$state),c(e,a)))})),l.$$replace=!1}),l}]}function Kt(){var e=!0,t=this;this.debugEnabled=function(t){return b(t)?(e=t,this):e},this.$get=["$window",function(n){function i(e){return e instanceof Error&&(e.stack?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 a(e){var t=n.console||{},a=t[e]||t.log||f,o=!1;try{o=!!a.apply}catch(e){}return o?function(){var e=[];return r(arguments,function(t){e.push(i(t))}),a.apply(t,e)}:function(e,t){a(e,null==t?"":t)}}return{log:a("log"),info:a("info"),warn:a("warn"),error:a("error"),debug:function(){var n=a("debug");return function(){e&&n.apply(t,arguments)}}()}}]}function Zt(e,t){if("__defineGetter__"===e||"__defineSetter__"===e||"__lookupGetter__"===e||"__lookupSetter__"===e||"__proto__"===e)throw ga("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",t);return e}function Jt(e){return e+""}function en(e,t){if(e){if(e.constructor===e)throw ga("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e.window===e)throw ga("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",t);if(e.children&&(e.nodeName||e.prop&&e.attr&&e.find))throw ga("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",t);if(e===Object)throw ga("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",t)}return e}function tn(e,t){if(e){if(e.constructor===e)throw ga("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",t);if(e===Ca||e===Ea||e===Oa)throw ga("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",t)}}function nn(e,t){if(e&&(e===va||e===ba||e===ya||e===xa||e===Ma||e===_a||e===wa||e===Aa||e===Sa||e===ka||e===$a||e===Ta))throw ga("isecaf","Assigning to a constructor or its prototype is disallowed! Expression: {0}",t)}function rn(e,t){return void 0!==e?e:t}function an(e,t){return void 0===e?t:void 0===t?e:e+t}function on(e,t){return!e(t).$stateful}function sn(e,t){var n,i,a;switch(e.type){case Ia.Program:n=!0,r(e.body,function(e){sn(e.expression,t),n=n&&e.expression.constant}),e.constant=n;break;case Ia.Literal:e.constant=!0,e.toWatch=[];break;case Ia.UnaryExpression:sn(e.argument,t),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case Ia.BinaryExpression:sn(e.left,t),sn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case Ia.LogicalExpression:sn(e.left,t),sn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case Ia.ConditionalExpression:sn(e.test,t),sn(e.alternate,t),sn(e.consequent,t),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case Ia.Identifier:e.constant=!1,e.toWatch=[e];break;case Ia.MemberExpression:sn(e.object,t),e.computed&&sn(e.property,t),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=[e];break;case Ia.CallExpression:a=!!e.filter&&on(t,e.callee.name),n=a,i=[],r(e.arguments,function(e){sn(e,t),n=n&&e.constant,e.constant||i.push.apply(i,e.toWatch)}),e.constant=n,e.toWatch=a?i:[e];break;case Ia.AssignmentExpression:sn(e.left,t),sn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case Ia.ArrayExpression:n=!0,i=[],r(e.elements,function(e){sn(e,t),n=n&&e.constant,e.constant||i.push.apply(i,e.toWatch)}),e.constant=n,e.toWatch=i;break;case Ia.ObjectExpression:n=!0,i=[],r(e.properties,function(e){sn(e.value,t),n=n&&e.value.constant&&!e.computed,e.value.constant||i.push.apply(i,e.value.toWatch)}),e.constant=n,e.toWatch=i;break;case Ia.ThisExpression:case Ia.LocalsExpression:e.constant=!1,e.toWatch=[]}}function cn(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 ln(e){return e.type===Ia.Identifier||e.type===Ia.MemberExpression}function un(e){if(1===e.body.length&&ln(e.body[0].expression))return{type:Ia.AssignmentExpression,left:e.body[0].expression,right:{type:Ia.NGValueParameter},operator:"="}}function dn(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===Ia.Literal||e.body[0].expression.type===Ia.ArrayExpression||e.body[0].expression.type===Ia.ObjectExpression)}function pn(e){return e.constant}function fn(e,t){this.astBuilder=e,this.$filter=t}function hn(e,t){this.astBuilder=e,this.$filter=t}function mn(e){return"constructor"===e}function gn(e){return A(e.valueOf)?e.valueOf():za.call(e)}function vn(){var e,t,n=fe(),i=fe(),a={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(e,t){a[e]=t},this.setIdentifierFns=function(n,r){return e=n,t=r,this},this.$get=["$filter",function(o){function s(e,t,r){var a,s,l;switch(r=r||x,void 0===e?"undefined":_typeof2(e)){case"string":e=e.trim(),l=e;var g=r?i:n;if(!(a=g[l])){":"===e.charAt(0)&&":"===e.charAt(1)&&(s=!0,e=e.substring(2));var b=r?y:v,M=new Pa(b);a=new Da(M,o,b).parse(e),a.constant?a.$$watchDelegate=h:s?a.$$watchDelegate=a.literal?p:d:a.inputs&&(a.$$watchDelegate=u),r&&(a=c(a)),g[l]=a}return m(a,t);case"function":return m(e,t);default:return m(f,t)}}function c(e){function t(t,n,r,i){var a=x;x=!0;try{return e(t,n,r,i)}finally{x=a}}if(!e)return e;t.$$watchDelegate=e.$$watchDelegate,t.assign=c(e.assign),t.constant=e.constant,t.literal=e.literal;for(var n=0;e.inputs&&n<e.inputs.length;++n)e.inputs[n]=c(e.inputs[n]);return t.inputs=e.inputs,t}function l(e,t){return null==e||null==t?e===t:("object"!==(void 0===e?"undefined":_typeof2(e))||(e=gn(e),"object"!==(void 0===e?"undefined":_typeof2(e))))&&(e===t||e!==e&&t!==t)}function u(e,t,n,r,i){var a,o=r.inputs;if(1===o.length){var s=l;return o=o[0],e.$watch(function(e){var t=o(e);return l(t,s)||(a=r(e,void 0,void 0,[t]),s=t&&gn(t)),a},t,n,i)}for(var c=[],u=[],d=0,p=o.length;d<p;d++)c[d]=l,u[d]=null;return e.$watch(function(e){for(var t=!1,n=0,i=o.length;n<i;n++){var s=o[n](e);(t||(t=!l(s,c[n])))&&(u[n]=s,c[n]=s&&gn(s))}return t&&(a=r(e,void 0,void 0,u)),a},t,n,i)}function d(e,t,n,r){var i,a;return i=e.$watch(function(e){return r(e)},function(e,n,r){a=e,A(t)&&t.apply(this,arguments),b(e)&&r.$$postDigest(function(){b(a)&&i()})},n)}function p(e,t,n,i){function a(e){var t=!0;return r(e,function(e){b(e)||(t=!1)}),t}var o,s;return o=e.$watch(function(e){return i(e)},function(e,n,r){s=e,A(t)&&t.call(this,e,n,r),a(e)&&r.$$postDigest(function(){a(s)&&o()})},n)}function h(e,t,n,r){var i=e.$watch(function(e){return i(),r(e)},t,n);return i}function m(e,t){if(!t)return e;var n=e.$$watchDelegate,r=!1,i=n!==p&&n!==d,a=i?function(n,i,a,o){var s=r&&o?o[0]:e(n,i,a,o);return t(s,n,i)}:function(n,r,i,a){var o=e(n,r,i,a),s=t(o,n,r);return b(o)?s:o};return e.$$watchDelegate&&e.$$watchDelegate!==u?a.$$watchDelegate=e.$$watchDelegate:t.$stateful||(a.$$watchDelegate=u,r=!e.inputs,a.inputs=e.inputs?e.inputs:[e]),a}var g=ii().noUnsafeEval,v={csp:g,expensiveChecks:!1,literals:j(a),isIdentifierStart:A(e)&&e,isIdentifierContinue:A(t)&&t},y={csp:g,expensiveChecks:!0,literals:j(a),isIdentifierStart:A(e)&&e,isIdentifierContinue:A(t)&&t},x=!1;return s.$$runningExpensiveChecks=function(){return x},s}]}function bn(){this.$get=["$rootScope","$exceptionHandler",function(e,t){return xn(function(t){e.$evalAsync(t)},t)}]}function yn(){this.$get=["$browser","$exceptionHandler",function(e,t){return xn(function(t){e.defer(t)},t)}]}function xn(e,n){function i(){var e=new u;return e.resolve=o(e,e.resolve),e.reject=o(e,e.reject),e.notify=o(e,e.notify),e}function a(){this.$$state={status:0}}function o(e,t){return function(n){t.call(e,n)}}function s(e){var t,r,i;i=e.pending,e.processScheduled=!1,e.pending=void 0;for(var a=0,o=i.length;a<o;++a){r=i[a][0],t=i[a][e.status];try{A(t)?r.resolve(t(e.value)):1===e.status?r.resolve(e.value):r.reject(e.value)}catch(e){r.reject(e),n(e)}}}function c(t){!t.processScheduled&&t.pending&&(t.processScheduled=!0,e(function(){s(t)}))}function u(){this.promise=new a}function d(e){var t=new u;return t.reject(e),t.promise}function p(e,t,n){var r=null;try{A(n)&&(r=n())}catch(e){return d(e)}return z(r)?r.then(function(){return t(e)},d):t(e)}function f(e,t,n,r){var i=new u;return i.resolve(e),i.promise.then(t,n,r)}function h(e){var t=new u,n=0,i=ei(e)?[]:{};return r(e,function(e,r){n++,f(e).then(function(e){i[r]=e,--n||t.resolve(i)},function(e){t.reject(e)})}),0===n&&t.resolve(i),t.promise}function m(e){var t=i();return r(e,function(e){f(e).then(t.resolve,t.reject)}),t.promise}function g(e){function t(e){r.resolve(e)}function n(e){r.reject(e)}if(!A(e))throw b("norslvr","Expected resolverFn, got '{0}'",e);var r=new u;return e(t,n),r.promise}var b=t("$q",TypeError);l(a.prototype,{then:function(e,t,n){if(v(e)&&v(t)&&v(n))return this;var r=new u;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,e,t,n]),this.$$state.status>0&&c(this.$$state),r.promise},catch:function(e){return this.then(null,e)},finally:function(e,t){return this.then(function(t){return p(t,x,e)},function(t){return p(t,d,e)},t)}}),l(u.prototype,{resolve:function(e){this.promise.$$state.status||(e===this.promise?this.$$reject(b("qcycle","Expected promise to be resolved with value other than itself '{0}'",e)):this.$$resolve(e))},$$resolve:function(e){function t(e){s||(s=!0,a.$$resolve(e))}function r(e){s||(s=!0,a.$$reject(e))}var i,a=this,s=!1;try{(y(e)||A(e))&&(i=e&&e.then),A(i)?(this.promise.$$state.status=-1,i.call(e,t,r,o(this,this.notify))):(this.promise.$$state.value=e,this.promise.$$state.status=1,c(this.promise.$$state))}catch(e){r(e),n(e)}},reject:function(e){this.promise.$$state.status||this.$$reject(e)},$$reject:function(e){this.promise.$$state.value=e,this.promise.$$state.status=2,c(this.promise.$$state)},notify:function(t){var r=this.promise.$$state.pending;this.promise.$$state.status<=0&&r&&r.length&&e(function(){for(var e,i,a=0,o=r.length;a<o;a++){i=r[a][0],e=r[a][3];try{i.notify(A(e)?e(t):t)}catch(e){n(e)}}})}});var x=f;return g.prototype=a.prototype,g.defer=i,g.reject=d,g.when=f,g.resolve=x,g.all=h,g.race=m,g}function Mn(){this.$get=["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame,r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,i=!!n,a=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 a.supported=i,a}]}function _n(){function e(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=o(),this.$$ChildScope=null}return t.prototype=e,t}var i=10,a=t("$rootScope"),s=null,c=null;this.digestTtl=function(e){return arguments.length&&(i=e),i},this.$get=["$exceptionHandler","$parse","$browser",function(t,l,u){function d(e){e.currentScope.$$destroyed=!0}function p(e){9===Br&&(e.$$childHead&&p(e.$$childHead),e.$$nextSibling&&p(e.$$nextSibling)),e.$parent=e.$$nextSibling=e.$$prevSibling=e.$$childHead=e.$$childTail=e.$root=e.$$watchers=null}function h(){this.$id=o(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function m(e){if(S.$$phase)throw a("inprog","{0} already in progress",S.$$phase);S.$$phase=e}function g(){S.$$phase=null}function b(e,t){do{e.$$watchersCount+=t}while(e=e.$parent)}function x(e,t,n){do{e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n]}while(e=e.$parent)}function M(){}function _(){for(;T.length;)try{T.shift()()}catch(e){t(e)}c=null}function w(){null===c&&(c=u.defer(function(){S.$apply(_)}))}h.prototype={constructor:h,$new:function(t,n){var r;return n=n||this,t?(r=new h,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=l(e);if(i.$$watchDelegate)return i.$$watchDelegate(this,t,n,i,e);var a=this,o=a.$$watchers,c={fn:t,last:M,get:i,exp:r||e,eq:!!n};return s=null,A(t)||(c.fn=f),o||(o=a.$$watchers=[],o.$$digestWatchIndex=-1),o.unshift(c),o.$$digestWatchIndex++,b(this,1),function(){var e=R(o,c);e>=0&&(b(a,-1),e<o.$$digestWatchIndex&&o.$$digestWatchIndex--),s=null}},$watchGroup:function(e,t){function n(){c=!1,l?(l=!1,t(a,a,s)):t(a,i,s)}var i=new Array(e.length),a=new Array(e.length),o=[],s=this,c=!1,l=!0;if(!e.length){var u=!0;return s.$evalAsync(function(){u&&t(a,a,s)}),function(){u=!1}}return 1===e.length?this.$watch(e[0],function(e,n,r){a[0]=e,i[0]=n,t(a,e===n?a:i,r)}):(r(e,function(e,t){var r=s.$watch(e,function(e,r){a[t]=e,i[t]=r,c||(c=!0,s.$evalAsync(n))});o.push(r)}),function(){for(;o.length;)o.shift()()})},$watchCollection:function(e,t){function r(e){a=e;var t,r,i,s;if(!v(a)){if(y(a))if(n(a)){o!==f&&(o=f,g=o.length=0,d++),t=a.length,g!==t&&(d++,o.length=g=t);for(var c=0;c<t;c++)s=o[c],i=a[c],s!==s&&i!==i||s===i||(d++,o[c]=i)}else{o!==h&&(o=h={},g=0,d++),t=0;for(r in a)Ir.call(a,r)&&(t++,i=a[r],s=o[r],r in o?s!==s&&i!==i||s===i||(d++,o[r]=i):(g++,o[r]=i,d++));if(g>t){d++;for(r in o)Ir.call(a,r)||(g--,delete o[r])}}else o!==a&&(o=a,d++);return d}}function i(){if(m?(m=!1,t(a,a,c)):t(a,s,c),u)if(y(a))if(n(a)){s=new Array(a.length);for(var e=0;e<a.length;e++)s[e]=a[e]}else{s={};for(var r in a)Ir.call(a,r)&&(s[r]=a[r])}else s=a}r.$stateful=!0;var a,o,s,c=this,u=t.length>1,d=0,p=l(e,r),f=[],h={},m=!0,g=0;return this.$watch(p,i)},$digest:function(){var e,n,r,o,l,d,p,f,h,v,b,y=i,x=this,w=[];m("$digest"),u.$$checkUrlChange(),this===S&&null!==c&&(u.defer.cancel(c),_()),s=null;do{p=!1,h=x;for(var T=0;T<k.length;T++){try{b=k[T],b.scope.$eval(b.expression,b.locals)}catch(e){t(e)}s=null}k.length=0;e:do{if(d=h.$$watchers)for(d.$$digestWatchIndex=d.length;d.$$digestWatchIndex--;)try{if(e=d[d.$$digestWatchIndex])if(l=e.get,(n=l(h))===(r=e.last)||(e.eq?q(n,r):Jr(n)&&Jr(r))){if(e===s){p=!1;break e}}else p=!0,s=e,e.last=e.eq?j(n,null):n,o=e.fn,o(n,r===M?n:r,h),y<5&&(v=4-y,w[v]||(w[v]=[]),w[v].push({msg:A(e.exp)?"fn: "+(e.exp.name||e.exp.toString()):e.exp,newVal:n,oldVal:r}))}catch(e){t(e)}if(!(f=h.$$watchersCount&&h.$$childHead||h!==x&&h.$$nextSibling))for(;h!==x&&!(f=h.$$nextSibling);)h=h.$parent}while(h=f);if((p||k.length)&&!y--)throw g(),a("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",i,w)}while(p||k.length);for(g();C<$.length;)try{$[C++]()}catch(e){t(e)}$.length=C=0},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===S&&u.$$applicationDestroyed(),b(this,-this.$$watchersCount);for(var t in this.$$listenerCount)x(this,this.$$listenerCount[t],t);e&&e.$$childHead===this&&(e.$$childHead=this.$$nextSibling),
37e&&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=f,this.$on=this.$watch=this.$watchGroup=function(){return f},this.$$listeners={},this.$$nextSibling=null,p(this)}},$eval:function(e,t){return l(e)(this,t)},$evalAsync:function(e,t){S.$$phase||k.length||u.defer(function(){k.length&&S.$digest()}),k.push({scope:this,expression:l(e),locals:t})},$$postDigest:function(e){$.push(e)},$apply:function(e){try{m("$apply");try{return this.$eval(e)}finally{g()}}catch(e){t(e)}finally{try{S.$digest()}catch(e){throw t(e),e}}},$applyAsync:function(e){function t(){n.$eval(e)}var n=this;e&&T.push(t),e=l(e),w()},$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&&(n[r]=null,x(i,1,e))}},$emit:function(e,n){var r,i,a,o=[],s=this,c=!1,l={name:e,targetScope:s,stopPropagation:function(){c=!0},preventDefault:function(){l.defaultPrevented=!0},defaultPrevented:!1},u=B([l],arguments,1);do{for(r=s.$$listeners[e]||o,l.currentScope=s,i=0,a=r.length;i<a;i++)if(r[i])try{r[i].apply(null,u)}catch(e){t(e)}else r.splice(i,1),i--,a--;if(c)return l.currentScope=null,l;s=s.$parent}while(s);return l.currentScope=null,l},$broadcast:function(e,n){var r=this,i=r,a=r,o={name:e,targetScope:r,preventDefault:function(){o.defaultPrevented=!0},defaultPrevented:!1};if(!r.$$listenerCount[e])return o;for(var s,c,l,u=B([o],arguments,1);i=a;){for(o.currentScope=i,s=i.$$listeners[e]||[],c=0,l=s.length;c<l;c++)if(s[c])try{s[c].apply(null,u)}catch(e){t(e)}else s.splice(c,1),c--,l--;if(!(a=i.$$listenerCount[e]&&i.$$childHead||i!==r&&i.$$nextSibling))for(;i!==r&&!(a=i.$$nextSibling);)i=i.$parent}return o.currentScope=null,o}};var S=new h,k=S.$$asyncQueue=[],$=S.$$postDigestQueue=[],T=S.$$applyAsyncQueue=[],C=0;return S}]}function wn(){var e=/^\s*(https?|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,a=r?t:e;return i=zn(n).href,""===i||i.match(a)?n:"unsafe:"+i}}}function An(e){if("self"===e)return e;if(M(e)){if(e.indexOf("***")>-1)throw Ra("iwcard","Illegal sequence *** in string matcher. String: {0}",e);return e=ri(e).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+e+"$")}if(S(e))return new RegExp("^"+e.source+"$");throw Ra("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function Sn(e){var t=[];return b(e)&&r(e,function(e){t.push(An(e))}),t}function kn(){this.SCE_CONTEXTS=ja;var e=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(e=Sn(t)),e},this.resourceUrlBlacklist=function(e){return arguments.length&&(t=Sn(e)),t},this.$get=["$injector",function(n){function r(e,t){return"self"===e?Ln(t):!!e.exec(t.href)}function i(n){var i,a,o=zn(n.toString()),s=!1;for(i=0,a=e.length;i<a;i++)if(r(e[i],o)){s=!0;break}if(s)for(i=0,a=t.length;i<a;i++)if(r(t[i],o)){s=!1;break}return s}function a(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 o(e,t){var n=d.hasOwnProperty(e)?d[e]:null;if(!n)throw Ra("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||v(t)||""===t)return t;if("string"!=typeof t)throw Ra("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new n(t)}function s(e){return e instanceof u?e.$$unwrapTrustedValue():e}function c(e,t){if(null===t||v(t)||""===t)return t;var n=d.hasOwnProperty(e)?d[e]:null;if(n&&t instanceof n)return t.$$unwrapTrustedValue();if(e===ja.RESOURCE_URL){if(i(t))return t;throw Ra("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",t.toString())}if(e===ja.HTML)return l(t);throw Ra("unsafe","Attempting to use an unsafe value in a safe context.")}var l=function(e){throw Ra("unsafe","Attempting to use an unsafe value in a safe context.")};n.has("$sanitize")&&(l=n.get("$sanitize"));var u=a(),d={};return d[ja.HTML]=a(u),d[ja.CSS]=a(u),d[ja.URL]=a(u),d[ja.JS]=a(u),d[ja.RESOURCE_URL]=a(d[ja.URL]),{trustAs:o,getTrusted:c,valueOf:s}}]}function $n(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&Br<8)throw Ra("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 i=me(ja);i.isEnabled=function(){return e},i.trustAs=n.trustAs,i.getTrusted=n.getTrusted,i.valueOf=n.valueOf,e||(i.trustAs=i.getTrusted=function(e,t){return t},i.valueOf=h),i.parseAs=function(e,n){var r=t(n);return r.literal&&r.constant?r:t(n,function(t){return i.getTrusted(e,t)})};var a=i.parseAs,o=i.getTrusted,s=i.trustAs;return r(ja,function(e,t){var n=Dr(t);i[ye("parse_as_"+n)]=function(t){return a(e,t)},i[ye("get_trusted_"+n)]=function(t){return o(e,t)},i[ye("trust_as_"+n)]=function(t){return s(e,t)}}),i}]}function Tn(){this.$get=["$window","$document",function(e,t){var n,r,i={},a=e.chrome&&(e.chrome.app&&e.chrome.app.runtime||!e.chrome.app&&e.chrome.runtime&&e.chrome.runtime.id),o=!a&&e.history&&e.history.pushState,s=d((/android (\d+)/.exec(Dr((e.navigator||{}).userAgent))||[])[1]),c=/Boxee/i.test((e.navigator||{}).userAgent),l=t[0]||{},u=/^(Moz|webkit|ms)(?=[A-Z])/,p=l.body&&l.body.style,f=!1,h=!1;if(p){for(var m in p)if(r=u.exec(m)){n=r[0],n=n[0].toUpperCase()+n.substr(1);break}n||(n="WebkitOpacity"in p&&"webkit"),f=!!("transition"in p||n+"Transition"in p),h=!!("animation"in p||n+"Animation"in p),!s||f&&h||(f=M(p.webkitTransition),h=M(p.webkitAnimation))}return{history:!(!o||s<4||c),hasEvent:function(e){if("input"===e&&Br<=11)return!1;if(v(i[e])){var t=l.createElement("div");i[e]="on"+e in t}return i[e]},csp:ii(),vendorPrefix:n,transitions:f,animations:h,android:s}}]}function Cn(){var e;this.httpOptions=function(t){return t?(e=t,this):e},this.$get=["$templateCache","$http","$q","$sce",function(t,n,r,i){function a(o,s){function c(e){if(!s)throw qa("tpload","Failed to load template: {0} (HTTP status: {1} {2})",o,e.status,e.statusText);return r.reject(e)}a.totalPendingRequests++,M(o)&&!v(t.get(o))||(o=i.getTrustedResourceUrl(o));var u=n.defaults&&n.defaults.transformResponse;return ei(u)?u=u.filter(function(e){return e!==At}):u===At&&(u=null),n.get(o,l({cache:t,transformResponse:u},e)).finally(function(){a.totalPendingRequests--}).then(function(e){return t.put(o,e.data),e.data},c)}return a.totalPendingRequests=0,a}]}function En(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var i={};return i.findBindings=function(e,t,n){var i=e.getElementsByClassName("ng-binding"),a=[];return r(i,function(e){var i=Kr.element(e).data("$binding");i&&r(i,function(r){if(n){new RegExp("(^|\\s)"+ri(t)+"(\\s|\\||$)").test(r)&&a.push(e)}else-1!==r.indexOf(t)&&a.push(e)})}),a},i.findModels=function(e,t,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var a=n?"=":"*=",o="["+r[i]+"model"+a+'"'+t+'"]',s=e.querySelectorAll(o);if(s.length)return s}},i.getLocation=function(){return n.url()},i.setLocation=function(t){t!==n.url()&&(n.url(t),e.$digest())},i.whenStable=function(e){t.notifyWhenNoOutstandingRequests(e)},i}]}function On(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,n,r,i){function a(a,s,c){A(a)||(c=s,s=a,a=f);var l,u=W(arguments,3),d=b(c)&&!c,p=(d?r:n).defer(),h=p.promise;return l=t.defer(function(){try{p.resolve(a.apply(null,u))}catch(e){p.reject(e),i(e)}finally{delete o[h.$$timeoutId]}d||e.$apply()},s),h.$$timeoutId=l,o[l]=p,h}var o={};return a.cancel=function(e){return!!(e&&e.$$timeoutId in o)&&(o[e.$$timeoutId].reject("canceled"),delete o[e.$$timeoutId],t.defer.cancel(e.$$timeoutId))},a}]}function zn(e){var t=e;return Br&&(Ba.setAttribute("href",t),t=Ba.href),Ba.setAttribute("href",t),{href:Ba.href,protocol:Ba.protocol?Ba.protocol.replace(/:$/,""):"",host:Ba.host,search:Ba.search?Ba.search.replace(/^\?/,""):"",hash:Ba.hash?Ba.hash.replace(/^#/,""):"",hostname:Ba.hostname,port:Ba.port,pathname:"/"===Ba.pathname.charAt(0)?Ba.pathname:"/"+Ba.pathname}}function Ln(e){var t=M(e)?zn(e):e;return t.protocol===Wa.protocol&&t.host===Wa.host}function Nn(){this.$get=m(e)}function Pn(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={},a="";return function(){var e,o,s,c,l,u=t(r);if(u!==a)for(a=u,e=a.split("; "),i={},s=0;s<e.length;s++)o=e[s],(c=o.indexOf("="))>0&&(l=n(o.substring(0,c)),v(i[l])&&(i[l]=n(o.substring(c+1))));return i}}function In(){this.$get=Pn}function Dn(e){function t(i,a){if(y(i)){var o={};return r(i,function(e,n){o[n]=t(n,e)}),o}return e.factory(i+n,a)}var n="Filter";this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+n)}}],t("currency",Wn),t("date",rr),t("filter",Rn),t("json",ir),t("limitTo",ar),t("lowercase",Ya),t("number",Hn),t("orderBy",sr),t("uppercase",Qa)}function Rn(){return function(e,r,i,a){if(!n(e)){if(null==e)return e;throw t("filter")("notarray","Expected array but received: {0}",e)}a=a||"$";var o,s,c=Bn(r);switch(c){case"function":o=r;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":o=jn(r,i,a,s);break;default:return e}return Array.prototype.filter.call(e,o)}}function jn(e,t,n,r){var i=y(e)&&n in e;return!0===t?t=q:A(t)||(t=function(e,t){return!v(e)&&(null===e||null===t?e===t:!(y(t)||y(e)&&!g(e))&&(e=Dr(""+e),t=Dr(""+t),-1!==e.indexOf(t)))}),function(a){return i&&!y(a)?qn(a,e[n],t,n,!1):qn(a,e,t,n,r)}}function qn(e,t,n,r,i,a){var o=Bn(e),s=Bn(t);if("string"===s&&"!"===t.charAt(0))return!qn(e,t.substring(1),n,r,i);if(ei(e))return e.some(function(e){return qn(e,t,n,r,i)});switch(o){case"object":var c;if(i){for(c in e)if("$"!==c.charAt(0)&&qn(e[c],t,n,r,!0))return!0;return!a&&qn(e,t,n,r,!1)}if("object"===s){for(c in t){var l=t[c];if(!A(l)&&!v(l)){var u=c===r;if(!qn(u?e:e[c],l,n,r,u,u))return!1}}return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function Bn(e){return null===e?"null":void 0===e?"undefined":_typeof2(e)}function Wn(e){var t=e.NUMBER_FORMATS;return function(e,n,r){return v(n)&&(n=t.CURRENCY_SYM),v(r)&&(r=t.PATTERNS[1].maxFrac),null==e?e:Un(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function Hn(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:Un(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function Fn(e){var t,n,r,i,a,o=0;for((n=e.indexOf(Fa))>-1&&(e=e.replace(Fa,"")),(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)===Xa;r++);if(r===(a=e.length))t=[0],n=1;else{for(a--;e.charAt(a)===Xa;)a--;for(n-=r,t=[],i=0;r<=a;r++,i++)t[i]=+e.charAt(r)}return n>Ha&&(t=t.splice(0,Ha-1),o=n-1,n=1),{d:t,e:o,i:n}}function Xn(e,t,n,r){var i=e.d,a=i.length-e.i;t=v(t)?Math.min(Math.max(n,a),r):+t;var o=t+e.i,s=i[o];if(o>0){i.splice(Math.max(e.i,o));for(var c=o;c<i.length;c++)i[c]=0}else{a=Math.max(0,a),e.i=1,i.length=Math.max(1,o=t+1),i[0]=0;for(var l=1;l<o;l++)i[l]=0}if(s>=5)if(o-1<0){for(var u=0;u>o;u--)i.unshift(0),e.i++;i.unshift(1),e.i++}else i[o-1]++;for(;a<Math.max(0,t);a++)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 Un(e,t,n,r,i){if(!M(e)&&!_(e)||isNaN(e))return"";var a,o=!isFinite(e),s=!1,c=Math.abs(e)+"",l="";if(o)l="∞";else{a=Fn(c),Xn(a,i,t.minFrac,t.maxFrac);var u=a.d,d=a.i,p=a.e,f=[];for(s=u.reduce(function(e,t){return e&&!t},!0);d<0;)u.unshift(0),d++;d>0?f=u.splice(d,u.length):(f=u,u=[0]);var h=[];for(u.length>=t.lgSize&&h.unshift(u.splice(-t.lgSize,u.length).join(""));u.length>t.gSize;)h.unshift(u.splice(-t.gSize,u.length).join(""));u.length&&h.unshift(u.join("")),l=h.join(n),f.length&&(l+=r+f.join("")),p&&(l+="e+"+p)}return e<0&&!s?t.negPre+l+t.negSuf:t.posPre+l+t.posSuf}function Vn(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=Xa+e;return n&&(e=e.substr(e.length-t)),i+e}function Gn(e,t,n,r,i){return n=n||0,function(a){var o=a["get"+e]();return(n>0||o>-n)&&(o+=n),0===o&&-12===n&&(o=12),Vn(o,t,r,i)}}function Yn(e,t,n){return function(r,i){var a=r["get"+e]();return i[Rr((n?"STANDALONE":"")+(t?"SHORT":"")+e)][a]}}function Qn(e,t,n){var r=-1*n,i=r>=0?"+":"";return i+=Vn(Math[r>0?"floor":"ceil"](r/60),2)+Vn(Math.abs(r%60),2)}function Kn(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function Zn(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function Jn(e){return function(t){var n=Kn(t.getFullYear()),r=Zn(t),i=+r-+n;return Vn(1+Math.round(i/6048e5),e)}}function er(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function tr(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function nr(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}function rr(e){function t(e){var t;if(t=e.match(n)){var r=new Date(0),i=0,a=0,o=t[8]?r.setUTCFullYear:r.setFullYear,s=t[8]?r.setUTCHours:r.setHours;t[9]&&(i=d(t[9]+t[10]),a=d(t[9]+t[11])),o.call(r,d(t[1]),d(t[2])-1,d(t[3]));var c=d(t[4]||0)-i,l=d(t[5]||0)-a,u=d(t[6]||0),p=Math.round(1e3*parseFloat("0."+(t[7]||0)));return s.call(r,c,l,u,p),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,i,a){var o,s,c="",l=[];if(i=i||"mediumDate",i=e.DATETIME_FORMATS[i]||i,M(n)&&(n=Ga.test(n)?d(n):t(n)),_(n)&&(n=new Date(n)),!w(n)||!isFinite(n.getTime()))return n;for(;i;)s=Va.exec(i),s?(l=B(l,s,1),i=l.pop()):(l.push(i),i=null);var u=n.getTimezoneOffset();return a&&(u=V(a,u),n=Y(n,a,!0)),r(l,function(t){o=Ua[t],c+=o?o(n,e.DATETIME_FORMATS,u):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}}function ir(){return function(e,t){return v(t)&&(t=2),X(e,t)}}function ar(){return function(e,t,r){return t=Math.abs(Number(t))===1/0?Number(t):d(t),Jr(t)?e:(_(e)&&(e=e.toString()),n(e)?(r=!r||isNaN(r)?0:d(r),r=r<0?Math.max(0,e.length+r):r,t>=0?or(e,r,r+t):0===r?or(e,t,e.length):or(e,Math.max(0,r+t),r)):e)}}function or(e,t,n){return M(e)?e.slice(t,n):Xr.call(e,t,n)}function sr(e){function r(t){return t.map(function(t){var n=1,r=h;if(A(t))r=t;else if(M(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 i(e){switch(void 0===e?"undefined":_typeof2(e)){case"number":case"boolean":case"string":return!0;default:return!1}}function a(e){return A(e.valueOf)&&(e=e.valueOf(),i(e))?e:(g(e)&&(e=e.toString(),i(e)),e)}function o(e,t){var n=void 0===e?"undefined":_typeof2(e);return null===e?(n="string",e="null"):"object"===n&&(e=a(e)),{value:e,type:n,index:t}}function s(e,t){var n=0,r=e.type,i=t.type;if(r===i){var a=e.value,o=t.value;"string"===r?(a=a.toLowerCase(),o=o.toLowerCase()):"object"===r&&(y(a)&&(a=e.index),y(o)&&(o=t.index)),a!==o&&(n=a<o?-1:1)}else n=r<i?-1:1;return n}return function(e,i,a,c){function l(e,t){return{value:e,tieBreaker:{value:t,type:"number",index:t},predicateValues:d.map(function(n){return o(n.get(e),t)})}}function u(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*p}return f(e.tieBreaker,t.tieBreaker)*p}if(null==e)return e;if(!n(e))throw t("orderBy")("notarray","Expected array but received: {0}",e);ei(i)||(i=[i]),0===i.length&&(i=["+"]);var d=r(i),p=a?-1:1,f=A(c)?c:s,h=Array.prototype.map.call(e,l);return h.sort(u),e=h.map(function(e){return e.value})}}function cr(e){return A(e)&&(e={link:e}),e.restrict=e.restrict||"AC",m(e)}function lr(e,t){e.$name=t}function ur(e,t,n,i,a){var o=this,s=[];o.$error={},o.$$success={},o.$pending=void 0,o.$name=a(t.name||t.ngForm||"")(n),o.$dirty=!1,o.$pristine=!0,o.$valid=!0,o.$invalid=!1,o.$submitted=!1,o.$$parentForm=Ja,o.$rollbackViewValue=function(){r(s,function(e){e.$rollbackViewValue()})},o.$commitViewValue=function(){r(s,function(e){e.$commitViewValue()})},o.$addControl=function(e){ue(e.$name,"input"),s.push(e),e.$name&&(o[e.$name]=e),e.$$parentForm=o},o.$$renameControl=function(e,t){var n=e.$name;o[n]===e&&delete o[n],o[t]=e,e.$name=t},o.$removeControl=function(e){e.$name&&o[e.$name]===e&&delete o[e.$name],r(o.$pending,function(t,n){o.$setValidity(n,null,e)}),r(o.$error,function(t,n){o.$setValidity(n,null,e)}),r(o.$$success,function(t,n){o.$setValidity(n,null,e)}),R(s,e),e.$$parentForm=Ja},Or({ctrl:this,$element:e,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&&(R(r,n),0===r.length&&delete e[t])},$animate:i}),o.$setDirty=function(){i.removeClass(e,Ro),i.addClass(e,jo),o.$dirty=!0,o.$pristine=!1,o.$$parentForm.$setDirty()},o.$setPristine=function(){i.setClass(e,Ro,jo+" "+eo),o.$dirty=!1,o.$pristine=!0,o.$submitted=!1,r(s,function(e){e.$setPristine()})},o.$setUntouched=function(){r(s,function(e){e.$setUntouched()})},o.$setSubmitted=function(){i.addClass(e,eo),o.$submitted=!0,o.$$parentForm.$setSubmitted()}}function dr(e){e.$formatters.push(function(t){return e.$isEmpty(t)?t:t.toString()})}function pr(e,t,n,r,i,a){fr(e,t,n,r,i,a),dr(r)}function fr(e,t,n,r,i,a){var o=Dr(t[0].type);if(!i.android){var s=!1;t.on("compositionstart",function(){s=!0}),t.on("compositionend",function(){s=!1,l()})}var c,l=function(e){if(c&&(a.defer.cancel(c),c=null),!s){var i=t.val(),l=e&&e.type;"password"===o||n.ngTrim&&"false"===n.ngTrim||(i=ni(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,l)}};if(i.hasEvent("input"))t.on("input",l);else{var u=function(e,t,n){c||(c=a.defer(function(){c=null,t&&t.value===n||l(e)}))};t.on("keydown",function(e){var t=e.keyCode;91===t||15<t&&t<19||37<=t&&t<=40||u(e,this,this.value)}),i.hasEvent("paste")&&t.on("paste cut",u)}t.on("change",l),mo[o]&&r.$$hasNativeValidators&&o===n.type&&t.on(ho,function(e){if(!c){var t=this[Pr],n=t.badInput,r=t.typeMismatch;c=a.defer(function(){c=null,t.badInput===n&&t.typeMismatch===r||l(e)})}}),r.$render=function(){var e=r.$isEmpty(r.$viewValue)?"":r.$viewValue;t.val()!==e&&t.val(e)}}function hr(e,t){if(w(e))return e;if(M(e)){uo.lastIndex=0;var n=uo.exec(e);if(n){var r=+n[1],i=+n[2],a=0,o=0,s=0,c=0,l=Kn(r),u=7*(i-1);return t&&(a=t.getHours(),o=t.getMinutes(),s=t.getSeconds(),c=t.getMilliseconds()),new Date(r,0,l.getDate()+u,a,o,s,c)}}return NaN}function mr(e,t){return function(n,i){var a,o;if(w(n))return n;if(M(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),io.test(n))return new Date(n);if(e.lastIndex=0,a=e.exec(n))return a.shift(),o=i?{yyyy:i.getFullYear(),MM:i.getMonth()+1,dd:i.getDate(),HH:i.getHours(),mm:i.getMinutes(),ss:i.getSeconds(),sss:i.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},r(a,function(e,n){n<t.length&&(o[t[n]]=+e)}),new Date(o.yyyy,o.MM-1,o.dd,o.HH,o.mm,o.ss||0,1e3*o.sss||0)}return NaN}}function gr(e,t,n,r){return function(i,a,o,s,c,l,u){function d(e){return e&&!(e.getTime&&e.getTime()!==e.getTime())}function p(e){return b(e)&&!w(e)?n(e)||void 0:e}vr(i,a,o,s),fr(i,a,o,s,c,l);var f,h=s&&s.$options&&s.$options.timezone;if(s.$$parserName=e,s.$parsers.push(function(e){if(s.$isEmpty(e))return null;if(t.test(e)){var r=n(e,f);return h&&(r=Y(r,h)),r}}),s.$formatters.push(function(e){if(e&&!w(e))throw Bo("datefmt","Expected `{0}` to be a date",e);return d(e)?(f=e,f&&h&&(f=Y(f,h,!0)),u("date")(e,r,h)):(f=null,"")}),b(o.min)||o.ngMin){var m;s.$validators.min=function(e){return!d(e)||v(m)||n(e)>=m},o.$observe("min",function(e){m=p(e),s.$validate()})}if(b(o.max)||o.ngMax){var g;s.$validators.max=function(e){return!d(e)||v(g)||n(e)<=g},o.$observe("max",function(e){g=p(e),s.$validate()})}}}function vr(e,t,n,r){var i=t[0];(r.$$hasNativeValidators=y(i.validity))&&r.$parsers.push(function(e){var n=t.prop(Pr)||{};return n.badInput||n.typeMismatch?void 0:e})}function br(e){e.$$parserName="number",e.$parsers.push(function(t){return e.$isEmpty(t)?null:so.test(t)?parseFloat(t):void 0}),e.$formatters.push(function(t){if(!e.$isEmpty(t)){if(!_(t))throw Bo("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t})}function yr(e){return b(e)&&!_(e)&&(e=parseFloat(e)),Jr(e)?void 0:e}function xr(e){return(0|e)===e}function Mr(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 _r(e,t,n){var r=Number(e);if(!xr(r)||!xr(t)||!xr(n)){var i=Math.max(Mr(r),Mr(t),Mr(n)),a=Math.pow(10,i);r*=a,t*=a,n*=a}return(r-t)%n==0}function wr(e,t,n,r,i,a){vr(e,t,n,r),fr(e,t,n,r,i,a),br(r);var o,s;(b(n.min)||n.ngMin)&&(r.$validators.min=function(e){return r.$isEmpty(e)||v(o)||e>=o},n.$observe("min",function(e){o=yr(e),r.$validate()})),(b(n.max)||n.ngMax)&&(r.$validators.max=function(e){return r.$isEmpty(e)||v(s)||e<=s},n.$observe("max",function(e){s=yr(e),r.$validate()}))}function Ar(e,t,n,r,i,a){function o(e,r){t.attr(e,n[e]),n.$observe(e,r)}function s(e){if(d=yr(e),!Jr(r.$modelValue))if(u){var n=t.val();d>n&&(n=d,t.val(n)),r.$setViewValue(n)}else r.$validate()}function c(e){if(p=yr(e),!Jr(r.$modelValue))if(u){var n=t.val();p<n&&(t.val(p),n=p<d?d:p),r.$setViewValue(n)}else r.$validate()}function l(e){f=yr(e),Jr(r.$modelValue)||(u&&r.$viewValue!==t.val()?r.$setViewValue(t.val()):r.$validate())}vr(e,t,n,r),br(r),fr(e,t,n,r,i,a);var u=r.$$hasNativeValidators&&"range"===t[0].type,d=u?0:void 0,p=u?100:void 0,f=u?1:void 0,h=t[0].validity,m=b(n.min),g=b(n.max),y=b(n.step),x=r.$render;r.$render=u&&b(h.rangeUnderflow)&&b(h.rangeOverflow)?function(){x(),r.$setViewValue(t.val())}:x,m&&(r.$validators.min=u?function(){return!0}:function(e,t){return r.$isEmpty(t)||v(d)||t>=d},o("min",s)),g&&(r.$validators.max=u?function(){return!0}:function(e,t){return r.$isEmpty(t)||v(p)||t<=p},o("max",c)),y&&(r.$validators.step=u?function(){return!h.stepMismatch}:function(e,t){return r.$isEmpty(t)||v(f)||_r(t,d||0,f)},o("step",l))}function Sr(e,t,n,r,i,a){fr(e,t,n,r,i,a),dr(r),r.$$parserName="url",r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||ao.test(n)}}function kr(e,t,n,r,i,a){fr(e,t,n,r,i,a),dr(r),r.$$parserName="email",r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty(n)||oo.test(n)}}function $r(e,t,n,r){v(n.name)&&t.attr("name",o());var i=function(e){t[0].checked&&r.$setViewValue(n.value,e&&e.type)};t.on("click",i),r.$render=function(){var e=n.value;t[0].checked=e==r.$viewValue},n.$observe("value",r.$render)}function Tr(e,t,n,r,i){var a;if(b(r)){if(a=e(r),!a.constant)throw Bo("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return a(t)}return i}function Cr(e,t,n,r,i,a,o,s){var c=Tr(s,e,"ngTrueValue",n.ngTrueValue,!0),l=Tr(s,e,"ngFalseValue",n.ngFalseValue,!1),u=function(e){r.$setViewValue(t[0].checked,e&&e.type)};t.on("click",u),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return!1===e},r.$formatters.push(function(e){return q(e,c)}),r.$parsers.push(function(e){return e?c:l})}function Er(e,t){return e="ngClass"+e,["$animate",function(n){function i(e,t){var n=[];e:for(var r=0;r<e.length;r++){for(var i=e[r],a=0;a<t.length;a++)if(i===t[a])continue e;n.push(i)}return n}function a(e){var t=[];return ei(e)?(r(e,function(e){t=t.concat(a(e))}),t):M(e)?e.split(" "):y(e)?(r(e,function(e,n){e&&(t=t.concat(n.split(" ")))}),t):e}return{restrict:"AC",link:function(o,s,c){function l(e){var t=d(e,1);c.$addClass(t)}function u(e){var t=d(e,-1);c.$removeClass(t)}function d(e,t){var n=s.data("$classCounts")||fe(),i=[];return r(e,function(e){(t>0||n[e])&&(n[e]=(n[e]||0)+t,n[e]===+(t>0)&&i.push(e))}),s.data("$classCounts",n),i.join(" ")}function p(e,t){var r=i(t,e),a=i(e,t);r=d(r,1),a=d(a,-1),r&&r.length&&n.addClass(s,r),a&&a.length&&n.removeClass(s,a)}function f(e){if(!0===t||(1&o.$index)===t){var n=a(e||[]);if(h){if(!q(e,h)){var r=a(h);p(r,n)}}else l(n)}h=ei(e)?e.map(function(e){return me(e)}):me(e)}var h;c.$observe("class",function(t){f(o.$eval(c[e]))}),"ngClass"!==e&&o.$watch("$index",function(e,n){var r=1&e;if(r!==(1&n)){var i=a(h);r===t?l(i):u(i)}}),o.$watch(c[e],f,!0)}}}]}function Or(e){function t(e,t,s){v(t)?n("$pending",e,s):r("$pending",e,s),O(t)?t?(u(o.$error,e,s),l(o.$$success,e,s)):(l(o.$error,e,s),u(o.$$success,e,s)):(u(o.$error,e,s),u(o.$$success,e,s)),o.$pending?(i(qo,!0),o.$valid=o.$invalid=void 0,a("",null)):(i(qo,!1),o.$valid=zr(o.$error),o.$invalid=!o.$valid,a("",o.$valid));var c;c=o.$pending&&o.$pending[e]?void 0:!o.$error[e]&&(!!o.$$success[e]||null),a(e,c),o.$$parentForm.$setValidity(e,c,o)}function n(e,t,n){o[e]||(o[e]={}),l(o[e],t,n)}function r(e,t,n){o[e]&&u(o[e],t,n),zr(o[e])&&(o[e]=void 0)}function i(e,t){t&&!c[e]?(d.addClass(s,e),c[e]=!0):!t&&c[e]&&(d.removeClass(s,e),c[e]=!1)}function a(e,t){e=e?"-"+se(e,"-"):"",i(Io+e,!0===t),i(Do+e,!1===t)}var o=e.ctrl,s=e.$element,c={},l=e.set,u=e.unset,d=e.$animate;c[Do]=!(c[Io]=s.hasClass(Io)),o.$setValidity=t}function zr(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function Lr(e){e[0].hasAttribute("selected")&&(e[0].selected=!0)}var Nr=/^\/(.+)\/([a-z]*)$/,Pr="validity",Ir=Object.prototype.hasOwnProperty,Dr=function(e){return M(e)?e.toLowerCase():e},Rr=function(e){return M(e)?e.toUpperCase():e},jr=function(e){return M(e)?e.replace(/[A-Z]/g,function(e){return String.fromCharCode(32|e.charCodeAt(0))}):e},qr=function(e){return M(e)?e.replace(/[a-z]/g,function(e){return String.fromCharCode(-33&e.charCodeAt(0))}):e};"i"!=="I".toLowerCase()&&(Dr=jr,Rr=qr);var Br,Wr,Hr,Fr,Xr=[].slice,Ur=[].splice,Vr=[].push,Gr=Object.prototype.toString,Yr=Object.getPrototypeOf,Qr=t("ng"),Kr=e.angular||(e.angular={}),Zr=0;Br=e.document.documentMode;var Jr=Number.isNaN||function(e){return e!==e};f.$inject=[],h.$inject=[];var ei=Array.isArray,ti=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/,ni=function(e){return M(e)?e.trim():e},ri=function(e){return e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},ii=function t(){if(!b(t.rules)){var n=e.document.querySelector("[ng-csp]")||e.document.querySelector("[data-ng-csp]");if(n){var r=n.getAttribute("ng-csp")||n.getAttribute("data-ng-csp");t.rules={noUnsafeEval:!r||-1!==r.indexOf("no-unsafe-eval"),noInlineStyle:!r||-1!==r.indexOf("no-inline-style")}}else t.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(e){return!0}}(),noInlineStyle:!1}}return t.rules},ai=function t(){if(b(t.name_))return t.name_;var n,r,i,a,o=si.length;for(r=0;r<o;++r)if(i=si[r],n=e.document.querySelector("["+i.replace(":","\\:")+"jq]")){a=n.getAttribute(i+"jq");break}return t.name_=a},oi=/:/g,si=["ng-","data-ng-","ng:","x-ng-"],ci=function(e){var t=e.currentScript,n=t&&t.getAttribute("src");if(!n)return!0;var r=e.createElement("a");if(r.href=n,e.location.origin===r.origin)return!0;switch(r.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}}(e.document),li=/[A-Z]/g,ui=!1,di=1,pi=3,fi=8,hi=9,mi=11,gi={full:"1.5.11",major:1,minor:5,dot:11,codeName:"princely-quest"};$e.expando="ng339";var vi=$e.cache={},bi=1,yi=function(e,t,n){e.addEventListener(t,n,!1)},xi=function(e,t,n){e.removeEventListener(t,n,!1)};$e._data=function(e){return this.cache[e[this.expando]]||{}};var Mi=/([:\-_]+(.))/g,_i=/^moz([A-Z])/,wi={mouseleave:"mouseout",mouseenter:"mouseover"},Ai=t("jqLite"),Si=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,ki=/<|&#?\w+;/,$i=/<([\w:-]+)/,Ti=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Ci={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,"",""]};Ci.optgroup=Ci.option,Ci.tbody=Ci.tfoot=Ci.colgroup=Ci.caption=Ci.thead,Ci.th=Ci.td;var Ei=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))},Oi=$e.prototype={ready:function(t){function n(){r||(r=!0,t())}var r=!1;"complete"===e.document.readyState?e.setTimeout(n):(this.on("DOMContentLoaded",n),$e(e).on("load",n))},toString:function(){var e=[];return r(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return Wr(e>=0?this[e]:this[this.length+e])},length:0,push:Vr,sort:[].sort,splice:[].splice},zi={};r("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(e){zi[Dr(e)]=e});var Li={};r("input,select,option,textarea,button,form,details".split(","),function(e){Li[e]=!0});var Ni={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern"};r({data:Le,removeData:Oe,hasData:_e,cleanData:we},function(e,t){$e[t]=e}),r({data:Le,inheritedData:je,scope:function(e){return Wr.data(e,"$scope")||je(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return Wr.data(e,"$isolateScope")||Wr.data(e,"$isolateScopeNoTemplate")},controller:Re,injector:function(e){return je(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:Ne,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=e.nodeType;if(r!==pi&&2!==r&&r!==fi){var i=Dr(t);if(zi[i]){if(!b(n))return e[t]||(e.attributes.getNamedItem(t)||f).specified?i:void 0;n?(e[t]=!0,e.setAttribute(t,i)):(e[t]=!1,e.removeAttribute(i))}else if(b(n))e.setAttribute(t,n);else if(e.getAttribute){var a=e.getAttribute(t,2);return null===a?void 0:a}}},prop:function(e,t,n){if(!b(n))return e[t];e[t]=n},text:function(){function e(e,t){if(v(t)){var n=e.nodeType;return n===di||n===pi?e.textContent:""}e.textContent=t}return e.$dv="",e}(),val:function(e,t){if(v(t)){if(e.multiple&&"select"===D(e)){var n=[];return r(e.options,function(e){e.selected&&n.push(e.value||e.text)}),0===n.length?null:n}return e.value}e.value=t},html:function(e,t){if(v(t))return e.innerHTML;Ce(e,!0),e.innerHTML=t},empty:qe},function(e,t){$e.prototype[t]=function(t,n){var r,i,a=this.length;if(e!==qe&&v(2===e.length&&e!==Ne&&e!==Re?t:n)){if(y(t)){for(r=0;r<a;r++)if(e===Le)e(this[r],t);else for(i in t)e(this[r],i,t[i]);return this}for(var o=e.$dv,s=v(o)?Math.min(a,1):a,c=0;c<s;c++){var l=e(this[c],t,n);o=o?o+l:l}return o}for(r=0;r<a;r++)e(this[r],t,n);return this}}),r({removeData:Oe,on:function(e,t,n,r){if(b(r))throw Ai("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(Me(e)){var i=ze(e,!0),a=i.events,o=i.handle;o||(o=i.handle=Xe(e,a));for(var s=t.indexOf(" ")>=0?t.split(" "):[t],c=s.length,l=function(t,r,i){var s=a[t];s||(s=a[t]=[],s.specialHandlerWrapper=r,"$destroy"===t||i||yi(e,t,o)),s.push(n)};c--;)t=s[c],wi[t]?(l(wi[t],Ve),l(t,void 0,!0)):l(t)}},off:Ee,one:function(e,t,n){e=Wr(e),e.on(t,function r(){e.off(t,n),e.off(t,r)}),e.on(t,n)},replaceWith:function(e,t){var n,i=e.parentNode;Ce(e),r(new $e(t),function(t){n?i.insertBefore(t,n.nextSibling):i.replaceChild(t,e),n=t})},children:function(e){var t=[];return r(e.childNodes,function(e){e.nodeType===di&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(n===di||n===mi){t=new $e(t);for(var r=0,i=t.length;r<i;r++){var a=t[r];e.appendChild(a)}}},prepend:function(e,t){if(e.nodeType===di){var n=e.firstChild;r(new $e(t),function(t){e.insertBefore(t,n)})}},wrap:function(e,t){ke(e,Wr(t).eq(0).clone()[0])},remove:Be,detach:function(e){Be(e,!0)
38},after:function(e,t){var n=e,r=e.parentNode;if(r){t=new $e(t);for(var i=0,a=t.length;i<a;i++){var o=t[i];r.insertBefore(o,n.nextSibling),n=o}}},addClass:Ie,removeClass:Pe,toggleClass:function(e,t,n){t&&r(t.split(" "),function(t){var r=n;v(r)&&(r=!Ne(e,t)),(r?Ie:Pe)(e,t)})},parent:function(e){var t=e.parentNode;return t&&t.nodeType!==mi?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:Te,triggerHandler:function(e,t,n){var i,a,o,s=t.type||t,c=ze(e),u=c&&c.events,d=u&&u[s];d&&(i={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:f,type:s,target:e},t.type&&(i=l(i,t)),a=me(d),o=n?[i].concat(n):[i],r(a,function(t){i.isImmediatePropagationStopped()||t.apply(e,o)}))}},function(e,t){$e.prototype[t]=function(t,n,r){for(var i,a=0,o=this.length;a<o;a++)v(i)?(i=e(this[a],t,n,r),b(i)&&(i=Wr(i))):De(i,e(this[a],t,n,r));return b(i)?i:this}}),$e.prototype.bind=$e.prototype.on,$e.prototype.unbind=$e.prototype.off,Qe.prototype={put:function(e,t){this[Ye(e,this.nextUid)]=t},get:function(e){return this[Ye(e,this.nextUid)]},remove:function(e){var t=this[e=Ye(e,this.nextUid)];return delete this[e],t}};var Pi=[function(){this.$get=[function(){return Qe}]}],Ii=/^([^(]+?)=>/,Di=/^[^(]*\(\s*([^)]*)\)/m,Ri=/,/,ji=/^\s*(_?)(\S+?)\1\s*$/,qi=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Bi=t("$injector");tt.$$annotate=et;var Wi=t("$animate"),Hi=1,Fi=function(){this.$get=f},Xi=function(){var e=new Qe,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,i){function a(e,t,n){var i=!1;return t&&(t=M(t)?t.split(" "):ei(t)?t:[],r(t,function(t){t&&(i=!0,e[t]=n)})),i}function o(){r(t,function(t){var n=e.get(t);if(n){var i=at(t.attr("class")),a="",o="";r(n,function(e,t){e!==!!i[t]&&(e?a+=(a.length?" ":"")+t:o+=(o.length?" ":"")+t)}),r(t,function(e){a&&Ie(e,a),o&&Pe(e,o)}),e.remove(t)}}),t.length=0}function s(n,r,s){var c=e.get(n)||{},l=a(c,r,!0),u=a(c,s,!1);(l||u)&&(e.put(n,c),t.push(n),1===t.length&&i.$$postDigest(o))}return{enabled:f,on:f,off:f,pin:f,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)&&s(e,r.addClass,r.removeClass);var a=new n;return a.complete(),a}}}]},Ui=["$provide",function(e){var t=this;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Wi("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";t.$$registeredAnimations[n.substr(1)]=i,e.factory(i,r)},this.classNameFilter=function(e){if(1===arguments.length&&(this.$$classNameFilter=e instanceof RegExp?e:null,this.$$classNameFilter)){if(new RegExp("(\\s+|\\/)ng-animate(\\s+|\\/)").test(this.$$classNameFilter.toString()))throw Wi("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',"ng-animate")}return this.$$classNameFilter},this.$get=["$$animateQueue",function(e){function t(e,t,n){if(n){var r=it(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.end&&e.end()},enter:function(n,r,i,a){return r=r&&Wr(r),i=i&&Wr(i),r=r||i.parent(),t(n,r,i),e.push(n,"enter",ot(a))},move:function(n,r,i,a){return r=r&&Wr(r),i=i&&Wr(i),r=r||i.parent(),t(n,r,i),e.push(n,"move",ot(a))},leave:function(t,n){return e.push(t,"leave",ot(n),function(){t.remove()})},addClass:function(t,n,r){return r=ot(r),r.addClass=rt(r.addclass,n),e.push(t,"addClass",r)},removeClass:function(t,n,r){return r=ot(r),r.removeClass=rt(r.removeClass,n),e.push(t,"removeClass",r)},setClass:function(t,n,r,i){return i=ot(i),i.addClass=rt(i.addClass,n),i.removeClass=rt(i.removeClass,r),e.push(t,"setClass",i)},animate:function(t,n,r,i,a){return a=ot(a),a.from=a.from?l(a.from,n):n,a.to=a.to?l(a.to,r):r,i=i||"ng-inline-animate",a.tempClasses=rt(a.tempClasses,i),e.push(t,"animate",a)}}}]}],Vi=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)}}}]},Gi=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$document","$timeout",function(e,t,n,i,a){function o(e){this.setHost(e);var t=n(),r=function(e){a(e,0,!1)};this._doneCallbacks=[],this._tick=function(e){var n=i[0];n&&n.hidden?r(e):t(e)},this._state=0}return o.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()},o.all=function(e,t){function n(n){a=a&&n,++i===e.length&&t(a)}var i=0,a=!0;r(e,function(e){e.done(n)})},o.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:f,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&&(r(this._doneCallbacks,function(t){t(e)}),this._doneCallbacks.length=0,this._state=2)}},o}]},Yi=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(e,t,n){return function(t,r){function i(){return e(function(){a(),s||c.complete(),s=!0}),c}function a(){o.addClass&&(t.addClass(o.addClass),o.addClass=null),o.removeClass&&(t.removeClass(o.removeClass),o.removeClass=null),o.to&&(t.css(o.to),o.to=null)}var o=r||{};o.$$prepared||(o=j(o)),o.cleanupStyles&&(o.from=o.to=null),o.from&&(t.css(o.from),o.from=null);var s,c=new n;return{start:i,end:i}}}]},Qi=t("$compile"),Ki=new dt;pt.$inject=["$provide","$$sanitizeUriProvider"],ft.prototype.isFirstChange=function(){return this.previousValue===Ki};var Zi=/^((?:x|data)[:\-_])/i,Ji=t("$controller"),ea=/^(\S+)(\s+as\s+([\w$]+))?$/,ta=function(){this.$get=["$document",function(e){return function(t){return t?!t.nodeType&&t instanceof Wr&&(t=t[0]):t=e[0].body,t.offsetWidth+1}}]},na="application/json",ra={"Content-Type":na+";charset=utf-8"},ia=/^\[|^\{(?!\{)/,aa={"[":/]$/,"{":/}$/},oa=/^\)]\}',?\n/,sa=t("$http"),ca=function(e){return function(){throw sa("legacy","The method `{0}` on the promise returned from `$http` has been disabled.",e)}},la=Kr.$interpolateMinErr=t("$interpolate");la.throwNoconcat=function(e){throw la("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)},la.interr=function(e,t){return la("interr","Can't interpolate: {0}\n{1}",e,t.toString())};var ua=function(){this.$get=["$window",function(e){function t(e){var t=function e(t){e.data=t,e.called=!0};return t.id=e,t}var n=e.angular.callbacks,r={};return{createCallback:function(e){var i="_"+(n.$$counter++).toString(36),a="angular.callbacks."+i,o=t(i);return r[a]=n[i]=o,a},wasCalled:function(e){return r[e].called},getResponse:function(e){return r[e].data},removeCallback:function(e){var t=r[e];delete n[t.id],delete r[e]}}}]},da=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,pa={http:80,https:443,ftp:21},fa=t("$location"),ha=/^\s*[\\\/]{2,}/,ma={$$absUrl:"",$$html5:!1,$$replace:!1,absUrl:Gt("$$absUrl"),url:function(e){if(v(e))return this.$$url;var t=da.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:Gt("$$protocol"),host:Gt("$$host"),port:Gt("$$port"),path:Yt("$$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(M(e)||_(e))e=e.toString(),this.$$search=Z(e);else{if(!y(e))throw fa("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");e=j(e,{}),r(e,function(t,n){null==t&&delete e[n]}),this.$$search=e}break;default:v(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:Yt("$$hash",function(e){return null!==e?e.toString():""}),replace:function(){return this.$$replace=!0,this}};r([Vt,Ut,Xt],function(e){e.prototype=Object.create(ma),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==Xt||!this.$$html5)throw fa("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=v(t)?null:t,this}});var ga=t("$parse"),va=[].constructor,ba=(!1).constructor,ya=Function.constructor,xa=(0).constructor,Ma={}.constructor,_a="".constructor,wa=va.prototype,Aa=ba.prototype,Sa=ya.prototype,ka=xa.prototype,$a=Ma.prototype,Ta=_a.prototype,Ca=Sa.call,Ea=Sa.apply,Oa=Sa.bind,za=$a.valueOf,La=fe();r("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(e){La[e]=!0});var Na={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},Pa=function(e){this.options=e};Pa.prototype={constructor:Pa,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=La[t],a=La[n],o=La[r];if(i||a||o){var s=o?r:a?n:t;this.tokens.push({index:this.index,text:s,operator:!0}),this.index+=s.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(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 ga("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=Dr(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 a=this.text.charAt(this.index);if(r+=a,i){if("u"===a){var o=this.text.substring(this.index+1,this.index+5);o.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+o+"]"),this.index+=4,n+=String.fromCharCode(parseInt(o,16))}else{n+=Na[a]||a}i=!1}else if("\\"===a)i=!0;else{if(a===e)return this.index++,void this.tokens.push({index:t,text:r,constant:!0,value:n});n+=a}this.index++}this.throwError("Unterminated quote",t)}};var Ia=function(e,t){this.lexer=e,this.options=t};Ia.Program="Program",Ia.ExpressionStatement="ExpressionStatement",Ia.AssignmentExpression="AssignmentExpression",Ia.ConditionalExpression="ConditionalExpression",Ia.LogicalExpression="LogicalExpression",Ia.BinaryExpression="BinaryExpression",Ia.UnaryExpression="UnaryExpression",Ia.CallExpression="CallExpression",Ia.MemberExpression="MemberExpression",Ia.Identifier="Identifier",Ia.Literal="Literal",Ia.ArrayExpression="ArrayExpression",Ia.Property="Property",Ia.ObjectExpression="ObjectExpression",Ia.ThisExpression="ThisExpression",Ia.LocalsExpression="LocalsExpression",Ia.NGValueParameter="NGValueParameter",Ia.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:Ia.Program,body:e}},expressionStatement:function(){return{type:Ia.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(!ln(e))throw ga("lval","Trying to assign a value to a non l-value");e={type:Ia.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:Ia.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:Ia.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:Ia.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:Ia.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:Ia.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:Ia.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:Ia.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:Ia.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=j(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:Ia.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:Ia.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:Ia.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:Ia.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],n={type:Ia.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:Ia.Identifier,name:e.text}},constant:function(){return{type:Ia.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:Ia.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:Ia.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:Ia.ObjectExpression,properties:t}},throwError:function(e,t){throw ga("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 ga("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 ga("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 a=this.tokens[e],o=a.text;if(o===t||o===n||o===r||o===i||!t&&!n&&!r&&!i)return a}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:Ia.ThisExpression},$locals:{type:Ia.LocalsExpression}}},fn.prototype={compile:function(e,t){var n=this,i=this.astBuilder.ast(e);this.state={nextId:0,filters:{},expensiveChecks:t,fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},sn(i,n.$filter);var a,o="";if(this.stage="assign",a=un(i)){this.state.computing="assign";var s=this.nextId();this.recurse(a,s),this.return_(s),o="fn.assign="+this.generateFunction("assign","s,v,l")}var c=cn(i.body);n.stage="inputs",r(c,function(e,t){var r="fn"+t;n.state[r]={vars:[],body:[],own:{}},n.state.computing=r;var i=n.nextId();n.recurse(e,i),n.return_(i),n.state.inputs.push(r),e.watchId=t}),this.state.computing="fn",this.stage="main",this.recurse(i);var l='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+o+this.watchFns()+"return fn;",u=new Function("$filter","ensureSafeMemberName","ensureSafeObject","ensureSafeFunction","getStringValue","ensureSafeAssignContext","ifDefined","plus","text",l)(this.$filter,Zt,en,tn,Jt,nn,rn,an,e);return this.state=this.stage=void 0,u.literal=dn(i),u.constant=pn(i),u},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return r(t,function(t){e.push("var "+t+"="+n.generateFunction(t,"s"))}),t.length&&e.push("fn.inputs=["+t.join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return r(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,i,a,o){var s,c,l,u,d,p=this;if(i=i||f,!o&&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,i,a,!0));switch(e.type){case Ia.Program:r(e.body,function(t,n){p.recurse(t.expression,void 0,void 0,function(e){c=e}),n!==e.body.length-1?p.current().body.push(c,";"):p.return_(c)});break;case Ia.Literal:u=this.escape(e.value),this.assign(t,u),i(u);break;case Ia.UnaryExpression:this.recurse(e.argument,void 0,void 0,function(e){c=e}),u=e.operator+"("+this.ifDefined(c,0)+")",this.assign(t,u),i(u);break;case Ia.BinaryExpression:this.recurse(e.left,void 0,void 0,function(e){s=e}),this.recurse(e.right,void 0,void 0,function(e){c=e}),u="+"===e.operator?this.plus(s,c):"-"===e.operator?this.ifDefined(s,0)+e.operator+this.ifDefined(c,0):"("+s+")"+e.operator+"("+c+")",this.assign(t,u),i(u);break;case Ia.LogicalExpression:t=t||this.nextId(),p.recurse(e.left,t),p.if_("&&"===e.operator?t:p.not(t),p.lazyRecurse(e.right,t)),i(t);break;case Ia.ConditionalExpression:t=t||this.nextId(),p.recurse(e.test,t),p.if_(t,p.lazyRecurse(e.alternate,t),p.lazyRecurse(e.consequent,t)),i(t);break;case Ia.Identifier:t=t||this.nextId(),n&&(n.context="inputs"===p.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),n.computed=!1,n.name=e.name),Zt(e.name),p.if_("inputs"===p.stage||p.not(p.getHasOwnProperty("l",e.name)),function(){p.if_("inputs"===p.stage||"s",function(){a&&1!==a&&p.if_(p.not(p.nonComputedMember("s",e.name)),p.lazyAssign(p.nonComputedMember("s",e.name),"{}")),p.assign(t,p.nonComputedMember("s",e.name))})},t&&p.lazyAssign(t,p.nonComputedMember("l",e.name))),(p.state.expensiveChecks||mn(e.name))&&p.addEnsureSafeObject(t),i(t);break;case Ia.MemberExpression:s=n&&(n.context=this.nextId())||this.nextId(),t=t||this.nextId(),p.recurse(e.object,s,void 0,function(){p.if_(p.notNull(s),function(){a&&1!==a&&p.addEnsureSafeAssignContext(s),e.computed?(c=p.nextId(),p.recurse(e.property,c),p.getStringValue(c),p.addEnsureSafeMemberName(c),a&&1!==a&&p.if_(p.not(p.computedMember(s,c)),p.lazyAssign(p.computedMember(s,c),"{}")),u=p.ensureSafeObject(p.computedMember(s,c)),p.assign(t,u),n&&(n.computed=!0,n.name=c)):(Zt(e.property.name),a&&1!==a&&p.if_(p.not(p.nonComputedMember(s,e.property.name)),p.lazyAssign(p.nonComputedMember(s,e.property.name),"{}")),u=p.nonComputedMember(s,e.property.name),(p.state.expensiveChecks||mn(e.property.name))&&(u=p.ensureSafeObject(u)),p.assign(t,u),n&&(n.computed=!1,n.name=e.property.name))},function(){p.assign(t,"undefined")}),i(t)},!!a);break;case Ia.CallExpression:t=t||this.nextId(),e.filter?(c=p.filter(e.callee.name),l=[],r(e.arguments,function(e){var t=p.nextId();p.recurse(e,t),l.push(t)}),u=c+"("+l.join(",")+")",p.assign(t,u),i(t)):(c=p.nextId(),s={},l=[],p.recurse(e.callee,c,s,function(){p.if_(p.notNull(c),function(){p.addEnsureSafeFunction(c),r(e.arguments,function(e){p.recurse(e,p.nextId(),void 0,function(e){l.push(p.ensureSafeObject(e))})}),s.name?(p.state.expensiveChecks||p.addEnsureSafeObject(s.context),u=p.member(s.context,s.name,s.computed)+"("+l.join(",")+")"):u=c+"("+l.join(",")+")",u=p.ensureSafeObject(u),p.assign(t,u)},function(){p.assign(t,"undefined")}),i(t)}));break;case Ia.AssignmentExpression:c=this.nextId(),s={},this.recurse(e.left,void 0,s,function(){p.if_(p.notNull(s.context),function(){p.recurse(e.right,c),p.addEnsureSafeObject(p.member(s.context,s.name,s.computed)),p.addEnsureSafeAssignContext(s.context),u=p.member(s.context,s.name,s.computed)+e.operator+c,p.assign(t,u),i(t||u)})},1);break;case Ia.ArrayExpression:l=[],r(e.elements,function(e){p.recurse(e,p.nextId(),void 0,function(e){l.push(e)})}),u="["+l.join(",")+"]",this.assign(t,u),i(u);break;case Ia.ObjectExpression:l=[],d=!1,r(e.properties,function(e){e.computed&&(d=!0)}),d?(t=t||this.nextId(),this.assign(t,"{}"),r(e.properties,function(e){e.computed?(s=p.nextId(),p.recurse(e.key,s)):s=e.key.type===Ia.Identifier?e.key.name:""+e.key.value,c=p.nextId(),p.recurse(e.value,c),p.assign(p.member(t,s,e.computed),c)})):(r(e.properties,function(t){p.recurse(t.value,e.constant?void 0:p.nextId(),void 0,function(e){l.push(p.escape(t.key.type===Ia.Identifier?t.key.name:""+t.key.value)+":"+e)})}),u="{"+l.join(",")+"}",this.assign(t,u)),i(t||u);break;case Ia.ThisExpression:this.assign(t,"s"),i("s");break;case Ia.LocalsExpression:this.assign(t,"l"),i("l");break;case Ia.NGValueParameter:this.assign(t,"v"),i("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+")"},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)},addEnsureSafeObject:function(e){this.current().body.push(this.ensureSafeObject(e),";")},addEnsureSafeMemberName:function(e){this.current().body.push(this.ensureSafeMemberName(e),";")},addEnsureSafeFunction:function(e){this.current().body.push(this.ensureSafeFunction(e),";")},addEnsureSafeAssignContext:function(e){this.current().body.push(this.ensureSafeAssignContext(e),";")},ensureSafeObject:function(e){return"ensureSafeObject("+e+",text)"},ensureSafeMemberName:function(e){return"ensureSafeMemberName("+e+",text)"},ensureSafeFunction:function(e){return"ensureSafeFunction("+e+",text)"},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},ensureSafeAssignContext:function(e){return"ensureSafeAssignContext("+e+",text)"},lazyRecurse:function(e,t,n,r,i,a){var o=this;return function(){o.recurse(e,t,n,r,i,a)}},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(M(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(_(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 ga("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]}},hn.prototype={compile:function(e,t){var n=this,i=this.astBuilder.ast(e);this.expression=e,this.expensiveChecks=t,sn(i,n.$filter);var a,o;(a=un(i))&&(o=this.recurse(a));var s,c=cn(i.body);c&&(s=[],r(c,function(e,t){var r=n.recurse(e);e.input=r,s.push(r),e.watchId=t}));var l=[];r(i.body,function(e){l.push(n.recurse(e.expression))});var u=0===i.body.length?f:1===i.body.length?l[0]:function(e,t){var n;return r(l,function(r){n=r(e,t)}),n};return o&&(u.assign=function(e,t,n){return o(e,n,t)}),s&&(u.inputs=s),u.literal=dn(i),u.constant=pn(i),u},recurse:function(e,t,n){var i,a,o,s=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case Ia.Literal:return this.value(e.value,t);case Ia.UnaryExpression:return a=this.recurse(e.argument),this["unary"+e.operator](a,t);case Ia.BinaryExpression:case Ia.LogicalExpression:return i=this.recurse(e.left),a=this.recurse(e.right),this["binary"+e.operator](i,a,t);case Ia.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case Ia.Identifier:return Zt(e.name,s.expression),s.identifier(e.name,s.expensiveChecks||mn(e.name),t,n,s.expression);case Ia.MemberExpression:return i=this.recurse(e.object,!1,!!n),e.computed||(Zt(e.property.name,s.expression),a=e.property.name),e.computed&&(a=this.recurse(e.property)),e.computed?this.computedMember(i,a,t,n,s.expression):this.nonComputedMember(i,a,s.expensiveChecks,t,n,s.expression);case Ia.CallExpression:return o=[],r(e.arguments,function(e){o.push(s.recurse(e))}),e.filter&&(a=this.$filter(e.callee.name)),e.filter||(a=this.recurse(e.callee,!0)),e.filter?function(e,n,r,i){for(var s=[],c=0;c<o.length;++c)s.push(o[c](e,n,r,i));var l=a.apply(void 0,s,i);return t?{context:void 0,name:void 0,value:l}:l}:function(e,n,r,i){var c,l=a(e,n,r,i);if(null!=l.value){en(l.context,s.expression),tn(l.value,s.expression);for(var u=[],d=0;d<o.length;++d)u.push(en(o[d](e,n,r,i),s.expression));c=en(l.value.apply(l.context,u),s.expression)}return t?{value:c}:c};case Ia.AssignmentExpression:return i=this.recurse(e.left,!0,1),a=this.recurse(e.right),function(e,n,r,o){var c=i(e,n,r,o),l=a(e,n,r,o);return en(c.value,s.expression),nn(c.context),c.context[c.name]=l,t?{value:l}:l};case Ia.ArrayExpression:return o=[],r(e.elements,function(e){o.push(s.recurse(e))}),function(e,n,r,i){for(var a=[],s=0;s<o.length;++s)a.push(o[s](e,n,r,i));return t?{value:a}:a};case Ia.ObjectExpression:return o=[],r(e.properties,function(e){e.computed?o.push({key:s.recurse(e.key),computed:!0,value:s.recurse(e.value)}):o.push({key:e.key.type===Ia.Identifier?e.key.name:""+e.key.value,computed:!1,value:s.recurse(e.value)})}),function(e,n,r,i){for(var a={},s=0;s<o.length;++s)o[s].computed?a[o[s].key(e,n,r,i)]=o[s].value(e,n,r,i):a[o[s].key]=o[s].value(e,n,r,i);return t?{value:a}:a};case Ia.ThisExpression:return function(e){return t?{value:e}:e};case Ia.LocalsExpression:return function(e,n){return t?{value:n}:n};case Ia.NGValueParameter:return function(e,n,r){return t?{value:r}:r}}},"unary+":function(e,t){return function(n,r,i,a){var o=e(n,r,i,a);return o=b(o)?+o:0,t?{value:o}:o}},"unary-":function(e,t){return function(n,r,i,a){var o=e(n,r,i,a);return o=b(o)?-o:0,t?{value:o}:o}},"unary!":function(e,t){return function(n,r,i,a){var o=!e(n,r,i,a);return t?{value:o}:o}},"binary+":function(e,t,n){return function(r,i,a,o){var s=e(r,i,a,o),c=t(r,i,a,o),l=an(s,c);return n?{value:l}:l}},"binary-":function(e,t,n){return function(r,i,a,o){var s=e(r,i,a,o),c=t(r,i,a,o),l=(b(s)?s:0)-(b(c)?c:0);return n?{value:l}:l}},"binary*":function(e,t,n){return function(r,i,a,o){var s=e(r,i,a,o)*t(r,i,a,o);return n?{value:s}:s}},"binary/":function(e,t,n){return function(r,i,a,o){var s=e(r,i,a,o)/t(r,i,a,o);return n?{value:s}:s}},"binary%":function(e,t,n){return function(r,i,a,o){var s=e(r,i,a,o)%t(r,i,a,o);return n?{value:s}:s}},"binary===":function(e,t,n){return function(r,i,a,o){var s=e(r,i,a,o)===t(r,i,a,o);return n?{value:s}:s}},"binary!==":function(e,t,n){return function(r,i,a,o){var s=e(r,i,a,o)!==t(r,i,a,o);return n?{value:s}:s}},"binary==":function(e,t,n){return function(r,i,a,o){var s=e(r,i,a,o)==t(r,i,a,o);return n?{value:s}:s}},"binary!=":function(e,t,n){return function(r,i,a,o){var s=e(r,i,a,o)!=t(r,i,a,o);return n?{value:s}:s}},"binary<":function(e,t,n){return function(r,i,a,o){var s=e(r,i,a,o)<t(r,i,a,o);return n?{value:s}:s}},
39"binary>":function(e,t,n){return function(r,i,a,o){var s=e(r,i,a,o)>t(r,i,a,o);return n?{value:s}:s}},"binary<=":function(e,t,n){return function(r,i,a,o){var s=e(r,i,a,o)<=t(r,i,a,o);return n?{value:s}:s}},"binary>=":function(e,t,n){return function(r,i,a,o){var s=e(r,i,a,o)>=t(r,i,a,o);return n?{value:s}:s}},"binary&&":function(e,t,n){return function(r,i,a,o){var s=e(r,i,a,o)&&t(r,i,a,o);return n?{value:s}:s}},"binary||":function(e,t,n){return function(r,i,a,o){var s=e(r,i,a,o)||t(r,i,a,o);return n?{value:s}:s}},"ternary?:":function(e,t,n,r){return function(i,a,o,s){var c=e(i,a,o,s)?t(i,a,o,s):n(i,a,o,s);return r?{value:c}:c}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(e,t,n,r,i){return function(a,o,s,c){var l=o&&e in o?o:a;r&&1!==r&&l&&!l[e]&&(l[e]={});var u=l?l[e]:void 0;return t&&en(u,i),n?{context:l,name:e,value:u}:u}},computedMember:function(e,t,n,r,i){return function(a,o,s,c){var l,u,d=e(a,o,s,c);return null!=d&&(l=t(a,o,s,c),l=Jt(l),Zt(l,i),r&&1!==r&&(nn(d),d&&!d[l]&&(d[l]={})),u=d[l],en(u,i)),n?{context:d,name:l,value:u}:u}},nonComputedMember:function(e,t,n,r,i,a){return function(o,s,c,l){var u=e(o,s,c,l);i&&1!==i&&(nn(u),u&&!u[t]&&(u[t]={}));var d=null!=u?u[t]:void 0;return(n||mn(t))&&en(d,a),r?{context:u,name:t,value:d}:d}},inputs:function(e,t){return function(n,r,i,a){return a?a[t]:e(n,r,i)}}};var Da=function(e,t,n){this.lexer=e,this.$filter=t,this.options=n,this.ast=new Ia(e,n),this.astCompiler=n.csp?new hn(this.ast,t):new fn(this.ast,t)};Da.prototype={constructor:Da,parse:function(e){return this.astCompiler.compile(e,this.options.expensiveChecks)}};var Ra=t("$sce"),ja={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},qa=t("$compile"),Ba=e.document.createElement("a"),Wa=zn(e.location.href);Pn.$inject=["$document"],Dn.$inject=["$provide"];var Ha=22,Fa=".",Xa="0";Wn.$inject=["$locale"],Hn.$inject=["$locale"];var Ua={yyyy:Gn("FullYear",4,0,!1,!0),yy:Gn("FullYear",2,0,!0,!0),y:Gn("FullYear",1,0,!1,!0),MMMM:Yn("Month"),MMM:Yn("Month",!0),MM:Gn("Month",2,1),M:Gn("Month",1,1),LLLL:Yn("Month",!1,!0),dd:Gn("Date",2),d:Gn("Date",1),HH:Gn("Hours",2),H:Gn("Hours",1),hh:Gn("Hours",2,-12),h:Gn("Hours",1,-12),mm:Gn("Minutes",2),m:Gn("Minutes",1),ss:Gn("Seconds",2),s:Gn("Seconds",1),sss:Gn("Milliseconds",3),EEEE:Yn("Day"),EEE:Yn("Day",!0),a:er,Z:Qn,ww:Jn(2),w:Jn(1),G:tr,GG:tr,GGG:tr,GGGG:nr},Va=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,Ga=/^-?\d+$/;rr.$inject=["$locale"];var Ya=m(Dr),Qa=m(Rr);sr.$inject=["$parse"];var Ka=m({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]"===Gr.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(n)||e.preventDefault()})}}}}),Za={};r(zi,function(e,t){function n(e,n,i){e.$watch(i[r],function(e){i.$set(t,!!e)})}if("multiple"!==e){var r=ht("ng-"+t),i=n;"checked"===e&&(i=function(e,t,i){i.ngModel!==i[r]&&n(e,t,i)}),Za[r]=function(){return{restrict:"A",priority:100,link:i}}}}),r(Ni,function(e,t){Za[t]=function(){return{priority:100,link:function(e,n,r){if("ngPattern"===t&&"/"===r.ngPattern.charAt(0)){var i=r.ngPattern.match(Nr);if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}e.$watch(r[t],function(e){r.$set(t,e)})}}}}),r(["src","srcset","href"],function(e){var t=ht("ng-"+e);Za[t]=function(){return{priority:99,link:function(n,r,i){var a=e,o=e;"href"===e&&"[object SVGAnimatedString]"===Gr.call(r.prop("href"))&&(o="xlinkHref",i.$attr[o]="xlink:href",a=null),i.$observe(t,function(t){if(!t)return void("href"===e&&i.$set(o,null));i.$set(o,t),Br&&a&&r.prop(a,i[o])})}}}});var Ja={$addControl:f,$$renameControl:lr,$removeControl:f,$setValidity:f,$setDirty:f,$setPristine:f,$setSubmitted:f},eo="ng-submitted";ur.$inject=["$element","$attrs","$scope","$animate","$interpolate"];var to=function(e){return["$timeout","$parse",function(t,n){function r(e){return""===e?n('this[""]').assign:n(e).assign||f}return{name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:ur,compile:function(n,i){n.addClass(Ro).addClass(Io);var a=i.name?"name":!(!e||!i.ngForm)&&"ngForm";return{pre:function(e,n,i,o){var s=o[0];if(!("action"in i)){var c=function(t){e.$apply(function(){s.$commitViewValue(),s.$setSubmitted()}),t.preventDefault()};yi(n[0],"submit",c),n.on("$destroy",function(){t(function(){xi(n[0],"submit",c)},0,!1)})}(o[1]||s.$$parentForm).$addControl(s);var u=a?r(s.$name):f;a&&(u(e,s),i.$observe(a,function(t){s.$name!==t&&(u(e,void 0),s.$$parentForm.$$renameControl(s,t),(u=r(s.$name))(e,s))})),n.on("$destroy",function(){s.$$parentForm.$removeControl(s),u(e,void 0),l(s,Ja)})}}}}}]},no=to(),ro=to(!0),io=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,ao=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:\/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,oo=/^(?=.{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])?)*$/,so=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,co=/^(\d{4,})-(\d{2})-(\d{2})$/,lo=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,uo=/^(\d{4,})-W(\d\d)$/,po=/^(\d{4,})-(\d\d)$/,fo=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,ho="keydown wheel mousedown",mo=fe();r("date,datetime-local,month,time,week".split(","),function(e){mo[e]=!0});var go={text:pr,date:gr("date",co,mr(co,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":gr("datetimelocal",lo,mr(lo,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:gr("time",fo,mr(fo,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:gr("week",uo,hr,"yyyy-Www"),month:gr("month",po,mr(po,["yyyy","MM"]),"yyyy-MM"),number:wr,url:Sr,email:kr,radio:$r,range:Ar,checkbox:Cr,hidden:f,button:f,submit:f,reset:f,file:f},vo=["$browser","$sniffer","$filter","$parse",function(e,t,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,a,o,s){if(s[0]){var c=Dr(o.type);"range"!==c||o.hasOwnProperty("ngInputRange")||(c="text"),(go[c]||go.text)(i,a,o,s[0],t,e,n,r)}}}}}],bo=/^(true|false|\d+)$/,yo=function(){return{restrict:"A",priority:100,compile:function(e,t){return bo.test(t.ngValue)?function(e,t,n){n.$set("value",e.$eval(n.ngValue))}:function(e,t,n){e.$watch(n.ngValue,function(e){n.$set("value",e)})}}}},xo=["$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=v(e)?"":e})}}}}],Mo=["$interpolate","$compile",function(e,t){return{compile:function(n){return t.$$addBindingClass(n),function(n,r,i){var a=e(r.attr(i.$attr.ngBindTemplate));t.$$addBindingInfo(r,a.expressions),r=r[0],i.$observe("ngBindTemplate",function(e){r.textContent=v(e)?"":e})}}}}],_o=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(r,i){var a=t(i.ngBindHtml),o=t(i.ngBindHtml,function(t){return e.valueOf(t)});return n.$$addBindingClass(r),function(t,r,i){n.$$addBindingInfo(r,i.ngBindHtml),t.$watch(o,function(){var n=a(t);r.html(e.getTrustedHtml(n)||"")})}}}}],wo=m({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}}),Ao=Er("",!0),So=Er("Odd",0),ko=Er("Even",1),$o=cr({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),To=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Co={},Eo={blur:!0,focus:!0};r("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(e){var t=ht("ng-"+e);Co[t]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,a){var o=n(a[t],null,!0);return function(t,n){n.on(e,function(n){var i=function(){o(t,{$event:n})};Eo[e]&&r.$$phase?t.$evalAsync(i):t.$apply(i)})}}}}]});var Oo=["$animate","$compile",function(e,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,a,o){var s,c,l;n.$watch(i.ngIf,function(n){n?c||o(function(n,a){c=a,n[n.length++]=t.$$createComment("end ngIf",i.ngIf),s={clone:n},e.enter(n,r.parent(),r)}):(l&&(l.remove(),l=null),c&&(c.$destroy(),c=null),s&&(l=pe(s.clone),e.leave(l).done(function(e){!1!==e&&(l=null)}),s=null))})}}}],zo=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:Kr.noop,compile:function(r,i){var a=i.ngInclude||i.src,o=i.onload||"",s=i.autoscroll;return function(r,i,c,l,u){var d,p,f,h=0,m=function(){p&&(p.remove(),p=null),d&&(d.$destroy(),d=null),f&&(n.leave(f).done(function(e){!1!==e&&(p=null)}),p=f,f=null)};r.$watch(a,function(a){var c=function(e){!1===e||!b(s)||s&&!r.$eval(s)||t()},p=++h;a?(e(a,!0).then(function(e){if(!r.$$destroyed&&p===h){var t=r.$new();l.template=e;var s=u(t,function(e){m(),n.enter(e,null,i).done(c)});d=t,f=s,d.$emit("$includeContentLoaded",a),r.$eval(o)}},function(){r.$$destroyed||p===h&&(m(),r.$emit("$includeContentError",a))}),r.$emit("$includeContentRequested",a)):(m(),l.template=null)})}}}}],Lo=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,a){if(Gr.call(r[0]).match(/SVG/))return r.empty(),void t(Ae(a.template,e.document).childNodes)(n,function(e){r.append(e)},{futureParentElement:r});r.html(a.template),t(r.contents())(n)}}}],No=cr({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),Po=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,n,i){var a=t.attr(n.$attr.ngList)||", ",o="false"!==n.ngTrim,s=o?ni(a):a,c=function(e){if(!v(e)){var t=[];return e&&r(e.split(s),function(e){e&&t.push(o?ni(e):e)}),t}};i.$parsers.push(c),i.$formatters.push(function(e){if(ei(e))return e.join(a)}),i.$isEmpty=function(e){return!e||!e.length}}}},Io="ng-valid",Do="ng-invalid",Ro="ng-pristine",jo="ng-dirty",qo="ng-pending",Bo=t("ngModel"),Wo=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(e,t,n,i,a,o,s,c,l,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=Ja;var d,p=a(n.ngModel),h=p.assign,m=p,g=h,y=null,x=this;this.$$setOptions=function(e){if(x.$options=e,e&&e.getterSetter){var t=a(n.ngModel+"()"),r=a(n.ngModel+"($$$p)");m=function(e){var n=p(e);return A(n)&&(n=t(e)),n},g=function(e,t){A(p(e))?r(e,{$$$p:t}):h(e,t)}}else if(!p.assign)throw Bo("nonassign","Expression '{0}' is non-assignable. Element: {1}",n.ngModel,Q(i))},this.$render=f,this.$isEmpty=function(e){return v(e)||""===e||null===e||e!==e},this.$$updateEmptyClasses=function(e){x.$isEmpty(e)?(o.removeClass(i,"ng-not-empty"),o.addClass(i,"ng-empty")):(o.removeClass(i,"ng-empty"),o.addClass(i,"ng-not-empty"))};var M=0;Or({ctrl:this,$element:i,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]},$animate:o}),this.$setPristine=function(){x.$dirty=!1,x.$pristine=!0,o.removeClass(i,jo),o.addClass(i,Ro)},this.$setDirty=function(){x.$dirty=!0,x.$pristine=!1,o.removeClass(i,Ro),o.addClass(i,jo),x.$$parentForm.$setDirty()},this.$setUntouched=function(){x.$touched=!1,x.$untouched=!0,o.setClass(i,"ng-untouched","ng-touched")},this.$setTouched=function(){x.$touched=!0,x.$untouched=!1,o.setClass(i,"ng-touched","ng-untouched")},this.$rollbackViewValue=function(){s.cancel(y),x.$viewValue=x.$$lastCommittedViewValue,x.$render()},this.$validate=function(){if(!Jr(x.$modelValue)){var e=x.$$lastCommittedViewValue,t=x.$$rawModelValue,n=x.$valid,r=x.$modelValue,i=x.$options&&x.$options.allowInvalid;x.$$runValidators(t,e,function(e){i||n===e||(x.$modelValue=e?t:void 0,x.$modelValue!==r&&x.$$writeModelToScope())})}},this.$$runValidators=function(e,t,n){function i(e,t){o===M&&x.$setValidity(e,t)}function a(e){o===M&&n(e)}M++;var o=M;return function(){var e=x.$$parserName||"parse";return v(d)?(i(e,null),!0):(d||(r(x.$validators,function(e,t){i(t,null)}),r(x.$asyncValidators,function(e,t){i(t,null)})),i(e,d),d)}()&&function(){var n=!0;return r(x.$validators,function(r,a){var o=r(e,t);n=n&&o,i(a,o)}),!!n||(r(x.$asyncValidators,function(e,t){i(t,null)}),!1)}()?void function(){var n=[],o=!0;r(x.$asyncValidators,function(r,a){var s=r(e,t);if(!z(s))throw Bo("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",s);i(a,void 0),n.push(s.then(function(){i(a,!0)},function(){o=!1,i(a,!1)}))}),n.length?l.all(n).then(function(){a(o)},f):a(!0)}():void a(!1)},this.$commitViewValue=function(){var e=x.$viewValue;s.cancel(y),(x.$$lastCommittedViewValue!==e||""===e&&x.$$hasNativeValidators)&&(x.$$updateEmptyClasses(e),x.$$lastCommittedViewValue=e,x.$pristine&&this.$setDirty(),this.$$parseAndValidate())},this.$$parseAndValidate=function(){function t(){x.$modelValue!==a&&x.$$writeModelToScope()}var n=x.$$lastCommittedViewValue,r=n;if(d=!v(r)||void 0)for(var i=0;i<x.$parsers.length;i++)if(r=x.$parsers[i](r),v(r)){d=!1;break}Jr(x.$modelValue)&&(x.$modelValue=m(e));var a=x.$modelValue,o=x.$options&&x.$options.allowInvalid;x.$$rawModelValue=r,o&&(x.$modelValue=r,t()),x.$$runValidators(r,x.$$lastCommittedViewValue,function(e){o||(x.$modelValue=e?r:void 0,t())})},this.$$writeModelToScope=function(){g(e,x.$modelValue),r(x.$viewChangeListeners,function(e){try{e()}catch(e){t(e)}})},this.$setViewValue=function(e,t){x.$viewValue=e,x.$options&&!x.$options.updateOnDefault||x.$$debounceViewValueCommit(t)},this.$$debounceViewValueCommit=function(t){var n,r=0,i=x.$options;i&&b(i.debounce)&&(n=i.debounce,_(n)?r=n:_(n[t])?r=n[t]:_(n.default)&&(r=n.default)),s.cancel(y),r?y=s(function(){x.$commitViewValue()},r):c.$$phase?x.$commitViewValue():e.$apply(function(){x.$commitViewValue()})},e.$watch(function(){var t=m(e);if(t!==x.$modelValue&&(x.$modelValue===x.$modelValue||t===t)){x.$modelValue=x.$$rawModelValue=t,d=void 0;for(var n=x.$formatters,r=n.length,i=t;r--;)i=n[r](i);x.$viewValue!==i&&(x.$$updateEmptyClasses(i),x.$viewValue=x.$$lastCommittedViewValue=i,x.$render(),x.$$runValidators(x.$modelValue,x.$viewValue,f))}return t})}],Ho=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Wo,priority:1,compile:function(t){return t.addClass(Ro).addClass("ng-untouched").addClass(Io),{pre:function(e,t,n,r){var i=r[0],a=r[1]||i.$$parentForm;i.$$setOptions(r[2]&&r[2].$options),a.$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){var a=i[0];a.$options&&a.$options.updateOn&&n.on(a.$options.updateOn,function(e){a.$$debounceViewValueCommit(e&&e.type)}),n.on("blur",function(){a.$touched||(e.$$phase?t.$evalAsync(a.$setTouched):t.$apply(a.$setTouched))})}}}}}],Fo=/(\s+|^)default(\s+|$)/,Xo=function(){return{restrict:"A",controller:["$scope","$attrs",function(e,t){var n=this;this.$options=j(e.$eval(t.ngModelOptions)),b(this.$options.updateOn)?(this.$options.updateOnDefault=!1,this.$options.updateOn=ni(this.$options.updateOn.replace(Fo,function(){return n.$options.updateOnDefault=!0," "}))):this.$options.updateOnDefault=!0}]}},Uo=cr({terminal:!0,priority:1e3}),Vo=t("ngOptions"),Go=/^\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]+?))?$/,Yo=["$compile","$document","$parse",function(t,i,a){function o(e,t,r){function i(e,t,n,r,i){this.selectValue=e,this.viewValue=t,this.label=n,this.group=r,this.disabled=i}function o(e){var t;if(!l&&n(e))t=e;else{t=[];for(var r in e)e.hasOwnProperty(r)&&"$"!==r.charAt(0)&&t.push(r)}return t}var s=e.match(Go);if(!s)throw Vo("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,Q(t));var c=s[5]||s[7],l=s[6],u=/ as /.test(s[0])&&s[1],d=s[9],p=a(s[2]?s[1]:c),f=u&&a(u),h=f||p,m=d&&a(d),g=d?function(e,t){return m(r,t)}:function(e){return Ye(e)},v=function(e,t){return g(e,w(e,t))},b=a(s[2]||s[1]),y=a(s[3]||""),x=a(s[4]||""),M=a(s[8]),_={},w=l?function(e,t){return _[l]=t,_[c]=e,_}:function(e){return _[c]=e,_};return{trackBy:d,getTrackByValue:v,getWatchables:a(M,function(e){var t=[];e=e||[];for(var n=o(e),i=n.length,a=0;a<i;a++){var c=e===n?a:n[a],l=e[c],u=w(l,c),d=g(l,u);if(t.push(d),s[2]||s[1]){var p=b(r,u);t.push(p)}if(s[4]){var f=x(r,u);t.push(f)}}return t}),getOptions:function(){for(var e=[],t={},n=M(r)||[],a=o(n),s=a.length,c=0;c<s;c++){var l=n===a?c:a[c],u=n[l],p=w(u,l),f=h(r,p),m=g(f,p),_=b(r,p),A=y(r,p),S=x(r,p),k=new i(m,f,_,A,S);e.push(k),t[m]=k}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[v(e)]},getViewValueFromOption:function(e){return d?j(e.viewValue):e.viewValue}}}}}function s(e,n,a,s){function u(e,t){var n=c.cloneNode(!1);t.appendChild(n),d(e,n)}function d(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 p(){var e=A&&h.readValue();if(A)for(var t=A.items.length-1;t>=0;t--){var r=A.items[t];Be(b(r.group)?r.element.parentNode:r.element)}A=S.getOptions();var i={};if(M&&n.prepend(f),A.items.forEach(function(e){var t;b(e.group)?(t=i[e.group],t||(t=l.cloneNode(!1),k.appendChild(t),t.label=null===e.group?"null":e.group,i[e.group]=t),u(e,t)):u(e,k)}),n[0].appendChild(k),m.$render(),!m.$isEmpty(e)){var a=h.readValue();(S.trackBy||g?q(e,a):e===a)||(m.$setViewValue(a),m.$render())}}for(var f,h=s[0],m=s[1],g=a.multiple,v=0,y=n.children(),x=y.length;v<x;v++)if(""===y[v].value){f=y.eq(v);break}var M=!!f,_=!1,w=Wr(c.cloneNode(!1));w.val("?");var A,S=o(a.ngOptions,n,e),k=i[0].createDocumentFragment(),$=function(){M||n.prepend(f),n.val(""),_&&(f.prop("selected",!0),f.attr("selected",!0))},T=function(){M?_&&f.removeAttr("selected"):f.remove()},C=function(){n.prepend(w),n.val("?"),w.prop("selected",!0),w.attr("selected",!0)},E=function(){w.remove()};g?(m.$isEmpty=function(e){return!e||0===e.length},h.writeValue=function(e){A.items.forEach(function(e){e.element.selected=!1}),e&&e.forEach(function(e){var t=A.getOptionFromViewValue(e);t&&(t.element.selected=!0)})},h.readValue=function(){var e=n.val()||[],t=[];return r(e,function(e){var n=A.selectValueMap[e];n&&!n.disabled&&t.push(A.getViewValueFromOption(n))}),t},S.trackBy&&e.$watchCollection(function(){if(ei(m.$viewValue))return m.$viewValue.map(function(e){return S.getTrackByValue(e)})},function(){m.$render()})):(h.writeValue=function(e){var t=A.selectValueMap[n.val()],r=A.getOptionFromViewValue(e);t&&t.element.removeAttribute("selected"),r?(n[0].value!==r.selectValue&&(E(),T(),n[0].value=r.selectValue,r.element.selected=!0),r.element.setAttribute("selected","selected")):null===e||M?(E(),$()):(T(),C())},h.readValue=function(){var e=A.selectValueMap[n.val()];return e&&!e.disabled?(T(),E(),A.getViewValueFromOption(e)):null},S.trackBy&&e.$watch(function(){return S.getTrackByValue(m.$viewValue)},function(){m.$render()})),M?(f.remove(),t(f)(e),f[0].nodeType===fi?(_=!1,h.registerOption=function(e,t){""===t.val()&&(_=!0,f=t,f.removeClass("ng-scope"),m.$render(),t.on("$destroy",function(){f=void 0,_=!1}))}):(f.removeClass("ng-scope"),_=!0)):f=Wr(c.cloneNode(!1)),n.empty(),p(),e.$watchCollection(S.getWatchables,p)}var c=e.document.createElement("option"),l=e.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,n,r){r[0].registerOption=f},post:s}}}],Qo=["$locale","$interpolate","$log",function(e,t,n){var i=/{}/g,a=/^when(Minus)?(.+)$/;return{link:function(o,s,c){function l(e){s.text(e||"")}var u,d=c.count,p=c.$attr.when&&s.attr(c.$attr.when),h=c.offset||0,m=o.$eval(p)||{},g={},b=t.startSymbol(),y=t.endSymbol(),x=b+d+"-"+h+y,M=Kr.noop;r(c,function(e,t){var n=a.exec(t);if(n){var r=(n[1]?"-":"")+Dr(n[2]);m[r]=s.attr(c.$attr[t])}}),r(m,function(e,n){g[n]=t(e.replace(i,x))}),o.$watch(d,function(t){var r=parseFloat(t),i=Jr(r);if(i||r in m||(r=e.pluralCat(r-h)),!(r===u||i&&Jr(u))){M();var a=g[r];v(a)?(null!=t&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+p),M=f,l()):M=o.$watch(a,l),u=r}})}}}],Ko=["$parse","$animate","$compile",function(e,i,a){var o=t("ngRepeat"),s=function(e,t,n,r,i,a,o){e[n]=r,i&&(e[i]=a),e.$index=t,e.$first=0===t,e.$last=t===o-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0==(1&t))},c=function(e){return e.clone[0]},l=function(e){return e.clone[e.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(t,u){var d=u.ngRepeat,p=a.$$createComment("end ngRepeat",d),f=d.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!f)throw o("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",d);var h=f[1],m=f[2],g=f[3],v=f[4];if(!(f=h.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw o("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",h);var b=f[3]||f[1],y=f[2];if(g&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(g)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(g)))throw o("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",g);var x,M,_,w,A={$id:Ye};return v?x=e(v):(_=function(e,t){return Ye(t)},w=function(e){return e}),function(e,t,a,u,f){x&&(M=function(t,n,r){return y&&(A[y]=t),A[b]=n,A.$index=r,x(e,A)});var h=fe();e.$watchCollection(m,function(a){var u,m,v,x,A,S,k,$,T,C,E,O,z=t[0],L=fe();if(g&&(e[g]=a),n(a))T=a,$=M||_;else{$=M||w,T=[];for(var N in a)Ir.call(a,N)&&"$"!==N.charAt(0)&&T.push(N)}for(x=T.length,E=new Array(x),u=0;u<x;u++)if(A=a===T?u:T[u],S=a[A],k=$(A,S,u),h[k])C=h[k],delete h[k],L[k]=C,E[u]=C;else{if(L[k])throw r(E,function(e){e&&e.scope&&(h[e.id]=e)}),o("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",d,k,S);E[u]={id:k,scope:void 0,clone:void 0},L[k]=!0}for(var P in h){if(C=h[P],O=pe(C.clone),i.leave(O),O[0].parentNode)for(u=0,m=O.length;u<m;u++)O[u].$$NG_REMOVED=!0;C.scope.$destroy()}for(u=0;u<x;u++)if(A=a===T?u:T[u],S=a[A],C=E[u],C.scope){v=z;do{v=v.nextSibling}while(v&&v.$$NG_REMOVED);c(C)!==v&&i.move(pe(C.clone),null,z),z=l(C),s(C.scope,u,b,S,y,A,x)}else f(function(e,t){C.scope=t;var n=p.cloneNode(!1);e[e.length++]=n,i.enter(e,null,z),z=n,C.clone=e,L[C.id]=C,s(C.scope,u,b,S,y,A,x)});h=L})}}}}],Zo=["$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"})})}}}],Jo=["$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"})})}}}],es=cr(function(e,t,n){e.$watch(n.ngStyle,function(e,n){n&&e!==n&&r(n,function(e,n){t.css(n,"")}),e&&t.css(e)},!0)}),ts=["$animate","$compile",function(e,t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,i,a,o){var s=a.ngSwitch||a.on,c=[],l=[],u=[],d=[],p=function(e,t){return function(n){!1!==n&&e.splice(t,1)}};n.$watch(s,function(n){for(var i,a;u.length;)e.cancel(u.pop());for(i=0,a=d.length;i<a;++i){var s=pe(l[i].clone);d[i].$destroy();(u[i]=e.leave(s)).done(p(u,i))}l.length=0,d.length=0,(c=o.cases["!"+n]||o.cases["?"])&&r(c,function(n){n.transclude(function(r,i){d.push(i);var a=n.element;r[r.length++]=t.$$createComment("end ngSwitchWhen");var o={clone:r};l.push(o),e.enter(r,a.parent(),a)})})})}}}],ns=cr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,i,a){r(n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter(function(e,t,n){return n[t-1]!==e}),function(e){i.cases["!"+e]=i.cases["!"+e]||[],i.cases["!"+e].push({transclude:a,element:t})})}}),rs=cr({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})}}),is=t("ngTransclude"),as=["$compile",function(e){return{restrict:"EAC",terminal:!0,compile:function(t){var n=e(t.contents());return t.empty(),function(e,t,r,i,a){function o(e,n){e.length?t.append(e):(s(),n.$destroy())}function s(){n(e,function(e){t.append(e)})}if(!a)throw is("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",Q(t));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");var c=r.ngTransclude||r.ngTranscludeSlot;a(o,null,c),c&&!a.isSlotFilled(c)&&s()}}}}],os=["$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)}}}}],ss={$setViewValue:f,$render:f},cs=["$element","$scope",function(t,n){var r=this,i=new Qe;r.ngModelCtrl=ss,r.unknownOption=Wr(e.document.createElement("option")),r.renderUnknownOption=function(e){var n="? "+Ye(e)+" ?";r.unknownOption.val(n),t.prepend(r.unknownOption),t.val(n)},n.$on("$destroy",function(){r.renderUnknownOption=f}),r.removeUnknownOption=function(){r.unknownOption.parent()&&r.unknownOption.remove()},r.readValue=function(){return r.removeUnknownOption(),t.val()},r.writeValue=function(e){r.hasOption(e)?(r.removeUnknownOption(),t.val(e),""===e&&r.emptyOption.prop("selected",!0)):null==e&&r.emptyOption?(r.removeUnknownOption(),t.val("")):r.renderUnknownOption(e)},r.addOption=function(e,t){if(t[0].nodeType!==fi){ue(e,'"option value"'),""===e&&(r.emptyOption=t);var n=i.get(e)||0;i.put(e,n+1),r.ngModelCtrl.$render(),Lr(t)}},r.removeOption=function(e){var t=i.get(e);t&&(1===t?(i.remove(e),""===e&&(r.emptyOption=void 0)):i.put(e,t-1))},r.hasOption=function(e){return!!i.get(e)},r.registerOption=function(e,t,n,i,a){if(i){var o;n.$observe("value",function(e){b(o)&&r.removeOption(o),o=e,r.addOption(e,t)})}else a?e.$watch(a,function(e,i){n.$set("value",e),i!==e&&r.removeOption(i),r.addOption(e,t)}):r.addOption(n.value,t);t.on("$destroy",function(){r.removeOption(n.value),r.ngModelCtrl.$render()})}}],ls=function(){function e(e,t,n,i){var a=i[1];if(a){var o=i[0];if(o.ngModelCtrl=a,t.on("change",function(){e.$apply(function(){a.$setViewValue(o.readValue())})}),n.multiple){o.readValue=function(){var e=[];return r(t.find("option"),function(t){t.selected&&e.push(t.value)}),e},o.writeValue=function(e){var n=new Qe(e);r(t.find("option"),function(e){e.selected=b(n.get(e.value))})};var s,c=NaN;e.$watch(function(){c!==a.$viewValue||q(s,a.$viewValue)||(s=me(a.$viewValue),a.$render()),c=a.$viewValue}),a.$isEmpty=function(e){return!e||0===e.length}}}}function t(e,t,n,r){var i=r[1];if(i){var a=r[0];i.$render=function(){a.writeValue(i.$viewValue)}}}return{restrict:"E",require:["select","?ngModel"],controller:cs,priority:1,link:{pre:e,post:t}}},us=["$interpolate",function(e){return{restrict:"E",priority:100,compile:function(t,n){var r,i;return b(n.ngValue)?r=!0:b(n.value)?r=e(n.value,!0):(i=e(t.text(),!0))||n.$set("value",t.text()),function(e,t,n){var a=t.parent(),o=a.data("$selectController")||a.parent().data("$selectController");o&&o.registerOption(e,t,n,r,i)}}}}],ds=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){r&&(n.required=!0,r.$validators.required=function(e,t){return!n.required||!r.$isEmpty(t)},n.$observe("required",function(){r.$validate()}))}}},ps=function(){return{restrict:"A",require:"?ngModel",link:function(e,n,r,i){if(i){var a,o=r.ngPattern||r.pattern;r.$observe("pattern",function(e){if(M(e)&&e.length>0&&(e=new RegExp("^"+e+"$")),e&&!e.test)throw t("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",o,e,Q(n));a=e||void 0,i.$validate()}),i.$validators.pattern=function(e,t){return i.$isEmpty(t)||v(a)||a.test(t)}}}}},fs=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=-1;n.$observe("maxlength",function(e){var t=d(e);i=Jr(t)?-1:t,r.$validate()}),r.$validators.maxlength=function(e,t){return i<0||r.$isEmpty(t)||t.length<=i}}}}},hs=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=0;n.$observe("minlength",function(e){i=d(e)||0,r.$validate()}),r.$validators.minlength=function(e,t){return r.$isEmpty(t)||t.length>=i}}}}};if(e.angular.bootstrap)return void e.console;!function(){var t;if(!ui){var n=ai();Hr=v(n)?e.jQuery:n?e[n]:void 0,Hr&&Hr.fn.on?(Wr=Hr,l(Hr.fn,{scope:Oi.scope,isolateScope:Oi.isolateScope,controller:Oi.controller,injector:Oi.injector,inheritedData:Oi.inheritedData}),t=Hr.cleanData,Hr.cleanData=function(e){for(var n,r,i=0;null!=(r=e[i]);i++)(n=Hr._data(r,"events"))&&n.$destroy&&Hr(r).triggerHandler("$destroy");t(e)}):Wr=$e,Kr.element=Wr,ui=!0}}(),function(n){l(n,{bootstrap:ie,copy:j,extend:l,merge:u,equals:q,element:Wr,forEach:r,injector:tt,noop:f,bind:H,toJson:X,fromJson:U,identity:h,isUndefined:v,isDefined:b,isString:M,isFunction:A,isObject:y,isNumber:_,isElement:P,isArray:ei,version:gi,isDate:w,lowercase:Dr,uppercase:Rr,callbacks:{$$counter:0},getTestability:oe,$$minErr:t,$$csp:ii,reloadWithDebugInfo:ae}),(Fr=he(e))("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:wn}),e.provider("$compile",pt).directive({a:Ka,input:vo,textarea:vo,form:no,script:os,select:ls,option:us,ngBind:xo,ngBindHtml:_o,ngBindTemplate:Mo,ngClass:Ao,ngClassEven:ko,ngClassOdd:So,ngCloak:$o,ngController:To,ngForm:ro,ngHide:Jo,ngIf:Oo,ngInclude:zo,ngInit:No,ngNonBindable:Uo,ngPluralize:Qo,ngRepeat:Ko,ngShow:Zo,ngStyle:es,ngSwitch:ts,ngSwitchWhen:ns,ngSwitchDefault:rs,ngOptions:Yo,ngTransclude:as,ngModel:Ho,ngList:Po,ngChange:wo,pattern:ps,ngPattern:ps,required:ds,ngRequired:ds,minlength:hs,ngMinlength:hs,maxlength:fs,ngMaxlength:fs,ngValue:yo,ngModelOptions:Xo}).directive({ngInclude:Lo}).directive(Za).directive(Co),e.provider({$anchorScroll:nt,$animate:Ui,$animateCss:Yi,$$animateJs:Fi,$$animateQueue:Xi,$$AnimateRunner:Gi,$$animateAsyncRun:Vi,$browser:ct,$cacheFactory:lt,$controller:bt,$document:yt,$exceptionHandler:xt,$filter:Dn,$$forceReflow:ta,$interpolate:Nt,$interval:Pt,$http:Et,$httpParamSerializer:_t,$httpParamSerializerJQLike:wt,$httpBackend:zt,$xhrFactory:Ot,$jsonpCallbacks:ua,$location:Qt,$log:Kt,$parse:vn,$rootScope:_n,$q:bn,$$q:yn,$sce:$n,$sceDelegate:kn,$sniffer:Tn,$templateCache:ut,$templateRequest:Cn,$$testability:En,$timeout:On,$window:Nn,$$rAF:Mn,$$jqLite:Ge,$$HashMap:Pi,$$cookieReader:In})}])}(Kr),Kr.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",
40longDate:"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,a=n(e,t);return 1==i&&0==a.v?r.ONE:r.OTHER}})}]),Wr(e.document).ready(function(){re(e.document,ie)})}(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>')},{}],263:[function(e,t,n){e("./angular"),t.exports=angular},{"./angular":262}],264:[function(e,t,n){!function(e,r){"object"===(void 0===n?"undefined":_typeof2(n))&&void 0!==t?t.exports=r():"function"==typeof define&&define.amd?define(r):e.c3=r()}(this,function(){"use strict";function t(e,t){var n=this;n.component=e,n.params=t||{},n.d3=e.d3,n.scale=n.d3.scale.linear(),n.range,n.orient="bottom",n.innerTickSize=6,n.outerTickSize=this.params.withOuterTick?6:0,n.tickPadding=3,n.tickValues=null,n.tickFormat,n.tickArguments,n.tickOffset=0,n.tickCulling=!0,n.tickCentered,n.tickTextCharSize,n.tickTextRotate=n.params.tickTextRotate,n.tickLength,n.axis=n.generateAxis()}function n(e,t,n){this.owner=e,E.chart.internal[t]=n}function r(e){var t=this.internal=new i(this);t.loadConfig(e),t.beforeInit(e),t.init(),t.afterInit(e),function e(t,n,r){Object.keys(t).forEach(function(i){n[i]=t[i].bind(r),Object.keys(t[i]).length>0&&e(t[i],n[i],r)})}(T,this,this)}function i(t){var n=this;n.d3=window.d3?window.d3:void 0!==e?e("d3"):void 0,n.api=t,n.config=n.getDefaultConfig(),n.data={},n.cache={},n.axes={}}var a,o,s={target:"c3-target",chart:"c3-chart",chartLine:"c3-chart-line",chartLines:"c3-chart-lines",chartBar:"c3-chart-bar",chartBars:"c3-chart-bars",chartText:"c3-chart-text",chartTexts:"c3-chart-texts",chartArc:"c3-chart-arc",chartArcs:"c3-chart-arcs",chartArcsTitle:"c3-chart-arcs-title",chartArcsBackground:"c3-chart-arcs-background",chartArcsGaugeUnit:"c3-chart-arcs-gauge-unit",chartArcsGaugeMax:"c3-chart-arcs-gauge-max",chartArcsGaugeMin:"c3-chart-arcs-gauge-min",selectedCircle:"c3-selected-circle",selectedCircles:"c3-selected-circles",eventRect:"c3-event-rect",eventRects:"c3-event-rects",eventRectsSingle:"c3-event-rects-single",eventRectsMultiple:"c3-event-rects-multiple",zoomRect:"c3-zoom-rect",brush:"c3-brush",focused:"c3-focused",defocused:"c3-defocused",region:"c3-region",regions:"c3-regions",title:"c3-title",tooltipContainer:"c3-tooltip-container",tooltip:"c3-tooltip",tooltipName:"c3-tooltip-name",shape:"c3-shape",shapes:"c3-shapes",line:"c3-line",lines:"c3-lines",bar:"c3-bar",bars:"c3-bars",circle:"c3-circle",circles:"c3-circles",arc:"c3-arc",arcs:"c3-arcs",area:"c3-area",areas:"c3-areas",empty:"c3-empty",text:"c3-text",texts:"c3-texts",gaugeValue:"c3-gauge-value",grid:"c3-grid",gridLines:"c3-grid-lines",xgrid:"c3-xgrid",xgrids:"c3-xgrids",xgridLine:"c3-xgrid-line",xgridLines:"c3-xgrid-lines",xgridFocus:"c3-xgrid-focus",ygrid:"c3-ygrid",ygrids:"c3-ygrids",ygridLine:"c3-ygrid-line",ygridLines:"c3-ygrid-lines",axis:"c3-axis",axisX:"c3-axis-x",axisXLabel:"c3-axis-x-label",axisY:"c3-axis-y",axisYLabel:"c3-axis-y-label",axisY2:"c3-axis-y2",axisY2Label:"c3-axis-y2-label",legendBackground:"c3-legend-background",legendItem:"c3-legend-item",legendItemEvent:"c3-legend-item-event",legendItemTile:"c3-legend-item-tile",legendItemHidden:"c3-legend-item-hidden",legendItemFocused:"c3-legend-item-focused",dragarea:"c3-dragarea",EXPANDED:"_expanded_",SELECTED:"_selected_",INCLUDED:"_included_"},c="function"==typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof2(e)},l=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},u=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":_typeof2(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},d=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":_typeof2(t))&&"function"!=typeof t?e:t},p=function(e){return e||0===e},f=function(e){return"function"==typeof e},h=function(e){return Array.isArray(e)},m=function(e){return"string"==typeof e},g=function(e){return void 0===e},v=function(e){return void 0!==e},b=function(e){return 10*Math.ceil(e/10)},y=function(e){return Math.ceil(e)+.5},x=function(e){return e[1]-e[0]},M=function(e){return void 0===e||null===e||m(e)&&0===e.length||"object"===(void 0===e?"undefined":c(e))&&0===Object.keys(e).length},_=function(e){return!C.isEmpty(e)},w=function(e,t,n){return v(e[t])?e[t]:n},A=function(e,t){var n=!1;return Object.keys(e).forEach(function(r){e[r]===t&&(n=!0)}),n},S=function(e){return"string"==typeof e?e.replace(/</g,"&lt;").replace(/>/g,"&gt;"):e},k=function(e){var t=e.getBoundingClientRect(),n=[e.pathSegList.getItem(0),e.pathSegList.getItem(1)];return{x:n[0].x,y:Math.min(n[0].y,n[1].y),width:t.width,height:t.height}};o=t.prototype,o.axisX=function(e,t,n){e.attr("transform",function(e){return"translate("+Math.ceil(t(e)+n)+", 0)"})},o.axisY=function(e,t){e.attr("transform",function(e){return"translate(0,"+Math.ceil(t(e))+")"})},o.scaleExtent=function(e){var t=e[0],n=e[e.length-1];return t<n?[t,n]:[n,t]},o.generateTicks=function(e){var t,n,r=this,i=[];if(e.ticks)return e.ticks.apply(e,r.tickArguments);for(n=e.domain(),t=Math.ceil(n[0]);t<n[1];t++)i.push(t);return i.length>0&&i[0]>0&&i.unshift(i[0]-(i[1]-i[0])),i},o.copyScale=function(){var e,t=this,n=t.scale.copy();return t.params.isCategory&&(e=t.scale.domain(),n.domain([e[0],e[1]-1])),n},o.textFormatted=function(e){var t=this,n=t.tickFormat?t.tickFormat(e):e;return void 0!==n?n:""},o.updateRange=function(){var e=this;return e.range=e.scale.rangeExtent?e.scale.rangeExtent():e.scaleExtent(e.scale.range()),e.range},o.updateTickTextCharSize=function(e){var t=this;if(t.tickTextCharSize)return t.tickTextCharSize;var n={h:11.5,w:5.5};return e.select("text").text(function(e){return t.textFormatted(e)}).each(function(e){var r=this.getBoundingClientRect(),i=t.textFormatted(e),a=r.height,o=i?r.width/i.length:void 0;a&&o&&(n.h=a,n.w=o)}).text(""),t.tickTextCharSize=n,n},o.transitionise=function(e){return this.params.withoutTransition?e:this.d3.transition(e)},o.isVertical=function(){return"left"===this.orient||"right"===this.orient},o.tspanData=function(e,t,n,r){var i=this,a=i.params.tickMultiline?i.splitTickText(e,n,r):[].concat(i.textFormatted(e));return a.map(function(e){return{index:t,splitted:e,length:a.length}})},o.splitTickText=function(e,t,n){function r(e,t){a=void 0;for(var n=1;n<t.length;n++)if(" "===t.charAt(n)&&(a=n),i=t.substr(0,n+1),o=s.tickTextCharSize.w*i.length,l<o)return r(e.concat(t.substr(0,a||n)),t.slice(a?a+1:n));return e.concat(t)}var i,a,o,s=this,c=s.textFormatted(e),l=s.params.tickWidth,u=[];return"[object Array]"===Object.prototype.toString.call(c)?c:((!l||l<=0)&&(l=s.isVertical()?95:s.params.isCategory?Math.ceil(n(t[1])-n(t[0]))-12:110),r(u,c+""))},o.updateTickLength=function(){var e=this;e.tickLength=Math.max(e.innerTickSize,0)+e.tickPadding},o.lineY2=function(e){var t=this,n=t.scale(e)+(t.tickCentered?0:t.tickOffset);return t.range[0]<n&&n<t.range[1]?t.innerTickSize:0},o.textY=function(){var e=this,t=e.tickTextRotate;return t?11.5-t/15*2.5*(t>0?1:-1):e.tickLength},o.textTransform=function(){var e=this,t=e.tickTextRotate;return t?"rotate("+t+")":""},o.textTextAnchor=function(){var e=this,t=e.tickTextRotate;return t?t>0?"start":"end":"middle"},o.tspanDx=function(){var e=this,t=e.tickTextRotate;return t?8*Math.sin(Math.PI*(t/180)):0},o.tspanDy=function(e,t){var n=this,r=n.tickTextCharSize.h;return 0===t&&(r=n.isVertical()?-((e.length-1)*(n.tickTextCharSize.h/2)-3):".71em"),r},o.generateAxis=function(){function e(i){i.each(function(){var i,a,o,s=e.g=n.select(this),c=this.__chart__||t.scale,l=this.__chart__=t.copyScale(),u=t.tickValues?t.tickValues:t.generateTicks(l),d=s.selectAll(".tick").data(u,l),p=d.enter().insert("g",".domain").attr("class","tick").style("opacity",1e-6),f=d.exit().remove(),h=t.transitionise(d).style("opacity",1);r.isCategory?(t.tickOffset=Math.ceil((l(1)-l(0))/2),a=t.tickCentered?0:t.tickOffset,o=t.tickCentered?t.tickOffset:0):t.tickOffset=a=0,p.append("line"),p.append("text"),t.updateRange(),t.updateTickLength(),t.updateTickTextCharSize(s.select(".tick"));var m=h.select("line"),g=h.select("text"),v=d.select("text").selectAll("tspan").data(function(e,n){return t.tspanData(e,n,u,l)});v.enter().append("tspan"),v.exit().remove(),v.text(function(e){return e.splitted});var b=s.selectAll(".domain").data([0]),y=(b.enter().append("path").attr("class","domain"),t.transitionise(b));switch(t.orient){case"bottom":i=t.axisX,m.attr("x1",a).attr("x2",a).attr("y2",function(e,n){return t.lineY2(e,n)}),g.attr("x",0).attr("y",function(e,n){return t.textY(e,n)}).attr("transform",function(e,n){return t.textTransform(e,n)}).style("text-anchor",function(e,n){return t.textTextAnchor(e,n)}),v.attr("x",0).attr("dy",function(e,n){return t.tspanDy(e,n)}).attr("dx",function(e,n){return t.tspanDx(e,n)}),y.attr("d","M"+t.range[0]+","+t.outerTickSize+"V0H"+t.range[1]+"V"+t.outerTickSize);break;case"top":i=t.axisX,m.attr("x2",0).attr("y2",-t.innerTickSize),g.attr("x",0).attr("y",-t.tickLength).style("text-anchor","middle"),v.attr("x",0).attr("dy","0em"),y.attr("d","M"+t.range[0]+","+-t.outerTickSize+"V0H"+t.range[1]+"V"+-t.outerTickSize);break;case"left":i=t.axisY,m.attr("x2",-t.innerTickSize).attr("y1",o).attr("y2",o),g.attr("x",-t.tickLength).attr("y",t.tickOffset).style("text-anchor","end"),v.attr("x",-t.tickLength).attr("dy",function(e,n){return t.tspanDy(e,n)}),y.attr("d","M"+-t.outerTickSize+","+t.range[0]+"H0V"+t.range[1]+"H"+-t.outerTickSize);break;case"right":i=t.axisY,m.attr("x2",t.innerTickSize).attr("y2",0),g.attr("x",t.tickLength).attr("y",0).style("text-anchor","start"),v.attr("x",t.tickLength).attr("dy",function(e,n){return t.tspanDy(e,n)}),y.attr("d","M"+t.outerTickSize+","+t.range[0]+"H0V"+t.range[1]+"H"+t.outerTickSize)}if(l.rangeBand){var x=l,M=x.rangeBand()/2;c=l=function(e){return x(e)+M}}else c.rangeBand?c=l:f.call(i,l,t.tickOffset);p.call(i,c,t.tickOffset),h.call(i,l,t.tickOffset)})}var t=this,n=t.d3,r=t.params;return e.scale=function(n){return arguments.length?(t.scale=n,e):t.scale},e.orient=function(n){return arguments.length?(t.orient=n in{top:1,right:1,bottom:1,left:1}?n+"":"bottom",e):t.orient},e.tickFormat=function(n){return arguments.length?(t.tickFormat=n,e):t.tickFormat},e.tickCentered=function(n){return arguments.length?(t.tickCentered=n,e):t.tickCentered},e.tickOffset=function(){return t.tickOffset},e.tickInterval=function(){var n,i;return r.isCategory?n=2*t.tickOffset:(i=e.g.select("path.domain").node().getTotalLength()-2*t.outerTickSize,n=i/e.g.selectAll("line").size()),n===1/0?0:n},e.ticks=function(){return arguments.length?(t.tickArguments=arguments,e):t.tickArguments},e.tickCulling=function(n){return arguments.length?(t.tickCulling=n,e):t.tickCulling},e.tickValues=function(n){if("function"==typeof n)t.tickValues=function(){return n(t.scale.domain())};else{if(!arguments.length)return t.tickValues;t.tickValues=n}return e},e};var $=function(e){function n(e){l(this,n);var r={fn:a,internal:{fn:o}},i=d(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,"axis",r));return i.d3=e.d3,i.internal=t,i}return u(n,e),n}(n);a=$.prototype,a.init=function(){var e=this.owner,t=e.config,n=e.main;e.axes.x=n.append("g").attr("class",s.axis+" "+s.axisX).attr("clip-path",e.clipPathForXAxis).attr("transform",e.getTranslate("x")).style("visibility",t.axis_x_show?"visible":"hidden"),e.axes.x.append("text").attr("class",s.axisXLabel).attr("transform",t.axis_rotated?"rotate(-90)":"").style("text-anchor",this.textAnchorForXAxisLabel.bind(this)),e.axes.y=n.append("g").attr("class",s.axis+" "+s.axisY).attr("clip-path",t.axis_y_inner?"":e.clipPathForYAxis).attr("transform",e.getTranslate("y")).style("visibility",t.axis_y_show?"visible":"hidden"),e.axes.y.append("text").attr("class",s.axisYLabel).attr("transform",t.axis_rotated?"":"rotate(-90)").style("text-anchor",this.textAnchorForYAxisLabel.bind(this)),e.axes.y2=n.append("g").attr("class",s.axis+" "+s.axisY2).attr("transform",e.getTranslate("y2")).style("visibility",t.axis_y2_show?"visible":"hidden"),e.axes.y2.append("text").attr("class",s.axisY2Label).attr("transform",t.axis_rotated?"":"rotate(-90)").style("text-anchor",this.textAnchorForY2AxisLabel.bind(this))},a.getXAxis=function(e,t,n,r,i,a,o){var s=this.owner,c=s.config,l={isCategory:s.isCategorized(),withOuterTick:i,tickMultiline:c.axis_x_tick_multiline,tickWidth:c.axis_x_tick_width,tickTextRotate:o?0:c.axis_x_tick_rotate,withoutTransition:a},u=new this.internal(this,l).axis.scale(e).orient(t);return s.isTimeSeries()&&r&&"function"!=typeof r&&(r=r.map(function(e){return s.parseDate(e)})),u.tickFormat(n).tickValues(r),s.isCategorized()&&(u.tickCentered(c.axis_x_tick_centered),M(c.axis_x_tick_culling)&&(c.axis_x_tick_culling=!1)),u},a.updateXAxisTickValues=function(e,t){var n,r=this.owner,i=r.config;return(i.axis_x_tick_fit||i.axis_x_tick_count)&&(n=this.generateTickValues(r.mapTargetsToUniqueXs(e),i.axis_x_tick_count,r.isTimeSeries())),t?t.tickValues(n):(r.xAxis.tickValues(n),r.subXAxis.tickValues(n)),n},a.getYAxis=function(e,t,n,r,i,a,o){var s=this.owner,c=s.config,l={withOuterTick:i,withoutTransition:a,tickTextRotate:o?0:c.axis_y_tick_rotate},u=new this.internal(this,l).axis.scale(e).orient(t).tickFormat(n);return s.isTimeSeriesY()?u.ticks(s.d3.time[c.axis_y_tick_time_value],c.axis_y_tick_time_interval):u.tickValues(r),u},a.getId=function(e){var t=this.owner.config;return e in t.data_axes?t.data_axes[e]:"y"},a.getXAxisTickFormat=function(){var e=this.owner,t=e.config,n=e.isTimeSeries()?e.defaultAxisTimeFormat:e.isCategorized()?e.categoryName:function(e){return e<0?e.toFixed(0):e};return t.axis_x_tick_format&&(f(t.axis_x_tick_format)?n=t.axis_x_tick_format:e.isTimeSeries()&&(n=function(n){return n?e.axisTimeFormat(t.axis_x_tick_format)(n):""})),f(n)?function(t){return n.call(e,t)}:n},a.getTickValues=function(e,t){return e||(t?t.tickValues():void 0)},a.getXAxisTickValues=function(){return this.getTickValues(this.owner.config.axis_x_tick_values,this.owner.xAxis)},a.getYAxisTickValues=function(){return this.getTickValues(this.owner.config.axis_y_tick_values,this.owner.yAxis)},a.getY2AxisTickValues=function(){return this.getTickValues(this.owner.config.axis_y2_tick_values,this.owner.y2Axis)},a.getLabelOptionByAxisId=function(e){var t,n=this.owner,r=n.config;return"y"===e?t=r.axis_y_label:"y2"===e?t=r.axis_y2_label:"x"===e&&(t=r.axis_x_label),t},a.getLabelText=function(e){var t=this.getLabelOptionByAxisId(e);return m(t)?t:t?t.text:null},a.setLabelText=function(e,t){var n=this.owner,r=n.config,i=this.getLabelOptionByAxisId(e);m(i)?"y"===e?r.axis_y_label=t:"y2"===e?r.axis_y2_label=t:"x"===e&&(r.axis_x_label=t):i&&(i.text=t)},a.getLabelPosition=function(e,t){var n=this.getLabelOptionByAxisId(e),r=n&&"object"===(void 0===n?"undefined":c(n))&&n.position?n.position:t;return{isInner:r.indexOf("inner")>=0,isOuter:r.indexOf("outer")>=0,isLeft:r.indexOf("left")>=0,isCenter:r.indexOf("center")>=0,isRight:r.indexOf("right")>=0,isTop:r.indexOf("top")>=0,isMiddle:r.indexOf("middle")>=0,isBottom:r.indexOf("bottom")>=0}},a.getXAxisLabelPosition=function(){return this.getLabelPosition("x",this.owner.config.axis_rotated?"inner-top":"inner-right")},a.getYAxisLabelPosition=function(){return this.getLabelPosition("y",this.owner.config.axis_rotated?"inner-right":"inner-top")},a.getY2AxisLabelPosition=function(){return this.getLabelPosition("y2",this.owner.config.axis_rotated?"inner-right":"inner-top")},a.getLabelPositionById=function(e){return"y2"===e?this.getY2AxisLabelPosition():"y"===e?this.getYAxisLabelPosition():this.getXAxisLabelPosition()},a.textForXAxisLabel=function(){return this.getLabelText("x")},a.textForYAxisLabel=function(){return this.getLabelText("y")},a.textForY2AxisLabel=function(){return this.getLabelText("y2")},a.xForAxisLabel=function(e,t){var n=this.owner;return e?t.isLeft?0:t.isCenter?n.width/2:n.width:t.isBottom?-n.height:t.isMiddle?-n.height/2:0},a.dxForAxisLabel=function(e,t){return e?t.isLeft?"0.5em":t.isRight?"-0.5em":"0":t.isTop?"-0.5em":t.isBottom?"0.5em":"0"},a.textAnchorForAxisLabel=function(e,t){return e?t.isLeft?"start":t.isCenter?"middle":"end":t.isBottom?"start":t.isMiddle?"middle":"end"},a.xForXAxisLabel=function(){return this.xForAxisLabel(!this.owner.config.axis_rotated,this.getXAxisLabelPosition())},a.xForYAxisLabel=function(){return this.xForAxisLabel(this.owner.config.axis_rotated,this.getYAxisLabelPosition())},a.xForY2AxisLabel=function(){return this.xForAxisLabel(this.owner.config.axis_rotated,this.getY2AxisLabelPosition())},a.dxForXAxisLabel=function(){return this.dxForAxisLabel(!this.owner.config.axis_rotated,this.getXAxisLabelPosition())},a.dxForYAxisLabel=function(){return this.dxForAxisLabel(this.owner.config.axis_rotated,this.getYAxisLabelPosition())},a.dxForY2AxisLabel=function(){return this.dxForAxisLabel(this.owner.config.axis_rotated,this.getY2AxisLabelPosition())},a.dyForXAxisLabel=function(){var e=this.owner,t=e.config,n=this.getXAxisLabelPosition();return t.axis_rotated?n.isInner?"1.2em":-25-this.getMaxTickWidth("x"):n.isInner?"-0.5em":t.axis_x_height?t.axis_x_height-10:"3em"},a.dyForYAxisLabel=function(){var e=this.owner,t=this.getYAxisLabelPosition();return e.config.axis_rotated?t.isInner?"-0.5em":"3em":t.isInner?"1.2em":-10-(e.config.axis_y_inner?0:this.getMaxTickWidth("y")+10)},a.dyForY2AxisLabel=function(){var e=this.owner,t=this.getY2AxisLabelPosition();return e.config.axis_rotated?t.isInner?"1.2em":"-2.2em":t.isInner?"-0.5em":15+(e.config.axis_y2_inner?0:this.getMaxTickWidth("y2")+15)},a.textAnchorForXAxisLabel=function(){var e=this.owner;return this.textAnchorForAxisLabel(!e.config.axis_rotated,this.getXAxisLabelPosition())},a.textAnchorForYAxisLabel=function(){var e=this.owner;return this.textAnchorForAxisLabel(e.config.axis_rotated,this.getYAxisLabelPosition())},a.textAnchorForY2AxisLabel=function(){var e=this.owner;return this.textAnchorForAxisLabel(e.config.axis_rotated,this.getY2AxisLabelPosition())},a.getMaxTickWidth=function(e,t){var n,r,i,a,o,s=this.owner,c=s.config,l=0;return t&&s.currentMaxTickWidths[e]?s.currentMaxTickWidths[e]:(s.svg&&(n=s.filterTargetsToShow(s.data.targets),"y"===e?(r=s.y.copy().domain(s.getYDomain(n,"y")),i=this.getYAxis(r,s.yOrient,c.axis_y_tick_format,s.yAxisTickValues,!1,!0,!0)):"y2"===e?(r=s.y2.copy().domain(s.getYDomain(n,"y2")),i=this.getYAxis(r,s.y2Orient,c.axis_y2_tick_format,s.y2AxisTickValues,!1,!0,!0)):(r=s.x.copy().domain(s.getXDomain(n)),i=this.getXAxis(r,s.xOrient,s.xAxisTickFormat,s.xAxisTickValues,!1,!0,!0),this.updateXAxisTickValues(n,i)),a=s.d3.select("body").append("div").classed("c3",!0),o=a.append("svg").style("visibility","hidden").style("position","fixed").style("top",0).style("left",0),o.append("g").call(i).each(function(){s.d3.select(this).selectAll("text").each(function(){var e=this.getBoundingClientRect();l<e.width&&(l=e.width)}),a.remove()})),s.currentMaxTickWidths[e]=l<=0?s.currentMaxTickWidths[e]:l,s.currentMaxTickWidths[e])},a.updateLabels=function(e){var t=this.owner,n=t.main.select("."+s.axisX+" ."+s.axisXLabel),r=t.main.select("."+s.axisY+" ."+s.axisYLabel),i=t.main.select("."+s.axisY2+" ."+s.axisY2Label);(e?n.transition():n).attr("x",this.xForXAxisLabel.bind(this)).attr("dx",this.dxForXAxisLabel.bind(this)).attr("dy",this.dyForXAxisLabel.bind(this)).text(this.textForXAxisLabel.bind(this)),(e?r.transition():r).attr("x",this.xForYAxisLabel.bind(this)).attr("dx",this.dxForYAxisLabel.bind(this)).attr("dy",this.dyForYAxisLabel.bind(this)).text(this.textForYAxisLabel.bind(this)),(e?i.transition():i).attr("x",this.xForY2AxisLabel.bind(this)).attr("dx",this.dxForY2AxisLabel.bind(this)).attr("dy",this.dyForY2AxisLabel.bind(this)).text(this.textForY2AxisLabel.bind(this))},a.getPadding=function(e,t,n,r){var i="number"==typeof e?e:e[t];return p(i)?"ratio"===e.unit?e[t]*r:this.convertPixelsToAxisPadding(i,r):n},a.convertPixelsToAxisPadding=function(e,t){var n=this.owner;return t*(e/(n.config.axis_rotated?n.width:n.height))},a.generateTickValues=function(e,t,n){var r,i,a,o,s,c,l,u=e;if(t)if(1===(r=f(t)?t():t))u=[e[0]];else if(2===r)u=[e[0],e[e.length-1]];else if(r>2){for(o=r-2,i=e[0],a=e[e.length-1],s=(a-i)/(o+1),u=[i],c=0;c<o;c++)l=+i+s*(c+1),u.push(n?new Date(l):l);u.push(a)}return n||(u=u.sort(function(e,t){return e-t})),u},a.generateTransitions=function(e){var t=this.owner,n=t.axes;return{axisX:e?n.x.transition().duration(e):n.x,axisY:e?n.y.transition().duration(e):n.y,axisY2:e?n.y2.transition().duration(e):n.y2,axisSubX:e?n.subx.transition().duration(e):n.subx}},a.redraw=function(e,t){var n=this.owner;n.axes.x.style("opacity",t?0:1),n.axes.y.style("opacity",t?0:1),n.axes.y2.style("opacity",t?0:1),n.axes.subx.style("opacity",t?0:1),e.axisX.call(n.xAxis),e.axisY.call(n.yAxis),e.axisY2.call(n.y2Axis),e.axisSubX.call(n.subXAxis)};var T,C,E={version:"0.4.18"};return E.generate=function(e){return new r(e)},E.chart={fn:r.prototype,internal:{fn:i.prototype}},T=E.chart.fn,C=E.chart.internal.fn,C.beforeInit=function(){},C.afterInit=function(){},C.init=function(){var e=this,t=e.config;if(e.initParams(),t.data_url)e.convertUrlToData(t.data_url,t.data_mimeType,t.data_headers,t.data_keys,e.initWithData);else if(t.data_json)e.initWithData(e.convertJsonToData(t.data_json,t.data_keys));else if(t.data_rows)e.initWithData(e.convertRowsToData(t.data_rows));else{if(!t.data_columns)throw Error("url or json or rows or columns is required.");e.initWithData(e.convertColumnsToData(t.data_columns))}},C.initParams=function(){var e=this,t=e.d3,n=e.config;e.clipId="c3-"+ +new Date+"-clip",e.clipIdForXAxis=e.clipId+"-xaxis",e.clipIdForYAxis=e.clipId+"-yaxis",e.clipIdForGrid=e.clipId+"-grid",e.clipIdForSubchart=e.clipId+"-subchart",e.clipPath=e.getClipPath(e.clipId),e.clipPathForXAxis=e.getClipPath(e.clipIdForXAxis),e.clipPathForYAxis=e.getClipPath(e.clipIdForYAxis),e.clipPathForGrid=e.getClipPath(e.clipIdForGrid),e.clipPathForSubchart=e.getClipPath(e.clipIdForSubchart),e.dragStart=null,e.dragging=!1,e.flowing=!1,e.cancelClick=!1,e.mouseover=!1,e.transiting=!1,e.color=e.generateColor(),e.levelColor=e.generateLevelColor(),e.dataTimeFormat=n.data_xLocaltime?t.time.format:t.time.format.utc,e.axisTimeFormat=n.axis_x_localtime?t.time.format:t.time.format.utc,e.defaultAxisTimeFormat=e.axisTimeFormat.multi([[".%L",function(e){return e.getMilliseconds()}],[":%S",function(e){return e.getSeconds()}],["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%-m/%-d",function(e){return e.getDay()&&1!==e.getDate()}],["%-m/%-d",function(e){return 1!==e.getDate()}],["%-m/%-d",function(e){return e.getMonth()}],["%Y/%-m/%-d",function(){return!0}]]),e.hiddenTargetIds=[],e.hiddenLegendIds=[],e.focusedTargetIds=[],e.defocusedTargetIds=[],e.xOrient=n.axis_rotated?"left":"bottom",e.yOrient=n.axis_rotated?n.axis_y_inner?"top":"bottom":n.axis_y_inner?"right":"left",e.y2Orient=n.axis_rotated?n.axis_y2_inner?"bottom":"top":n.axis_y2_inner?"left":"right",e.subXOrient=n.axis_rotated?"left":"bottom",e.isLegendRight="right"===n.legend_position,e.isLegendInset="inset"===n.legend_position,e.isLegendTop="top-left"===n.legend_inset_anchor||"top-right"===n.legend_inset_anchor,e.isLegendLeft="top-left"===n.legend_inset_anchor||"bottom-left"===n.legend_inset_anchor,e.legendStep=0,e.legendItemWidth=0,e.legendItemHeight=0,e.currentMaxTickWidths={x:0,y:0,y2:0},e.rotated_padding_left=30,e.rotated_padding_right=n.axis_rotated&&!n.axis_x_show?0:30,e.rotated_padding_top=5,e.withoutFadeIn={},e.intervalForObserveInserted=void 0,e.axes.subx=t.selectAll([])},C.initChartElements=function(){this.initBar&&this.initBar(),this.initLine&&this.initLine(),this.initArc&&this.initArc(),this.initGauge&&this.initGauge(),this.initText&&this.initText()},C.initWithData=function(e){var t,n,r=this,i=r.d3,a=r.config,o=!0;r.axis=new $(r),r.initPie&&r.initPie(),r.initBrush&&r.initBrush(),r.initZoom&&r.initZoom(),a.bindto?"function"==typeof a.bindto.node?r.selectChart=a.bindto:r.selectChart=i.select(a.bindto):r.selectChart=i.selectAll([]),r.selectChart.empty()&&(r.selectChart=i.select(document.createElement("div")).style("opacity",0),r.observeInserted(r.selectChart),o=!1),r.selectChart.html("").classed("c3",!0),r.data.xs={},r.data.targets=r.convertDataToTargets(e),a.data_filter&&(r.data.targets=r.data.targets.filter(a.data_filter)),a.data_hide&&r.addHiddenTargetIds(!0===a.data_hide?r.mapToIds(r.data.targets):a.data_hide),a.legend_hide&&r.addHiddenLegendIds(!0===a.legend_hide?r.mapToIds(r.data.targets):a.legend_hide),r.hasType("gauge")&&(a.legend_show=!1),r.updateSizes(),r.updateScales(),r.x.domain(i.extent(r.getXDomain(r.data.targets))),r.y.domain(r.getYDomain(r.data.targets,"y")),r.y2.domain(r.getYDomain(r.data.targets,"y2")),r.subX.domain(r.x.domain()),r.subY.domain(r.y.domain()),r.subY2.domain(r.y2.domain()),r.orgXDomain=r.x.domain(),r.brush&&r.brush.scale(r.subX),a.zoom_enabled&&r.zoom.scale(r.x),r.svg=r.selectChart.append("svg").style("overflow","hidden").on("mouseenter",function(){return a.onmouseover.call(r)}).on("mouseleave",function(){return a.onmouseout.call(r)}),r.config.svg_classname&&r.svg.attr("class",r.config.svg_classname),t=r.svg.append("defs"),r.clipChart=r.appendClip(t,r.clipId),r.clipXAxis=r.appendClip(t,r.clipIdForXAxis),r.clipYAxis=r.appendClip(t,r.clipIdForYAxis),r.clipGrid=r.appendClip(t,r.clipIdForGrid),r.clipSubchart=r.appendClip(t,r.clipIdForSubchart),r.updateSvgSize(),n=r.main=r.svg.append("g").attr("transform",r.getTranslate("main")),r.initSubchart&&r.initSubchart(),r.initTooltip&&r.initTooltip(),r.initLegend&&r.initLegend(),r.initTitle&&r.initTitle(),n.append("text").attr("class",s.text+" "+s.empty).attr("text-anchor","middle").attr("dominant-baseline","middle"),r.initRegion(),r.initGrid(),n.append("g").attr("clip-path",r.clipPath).attr("class",s.chart),a.grid_lines_front&&r.initGridLines(),r.initEventRect(),r.initChartElements(),n.insert("rect",a.zoom_privileged?null:"g."+s.regions).attr("class",s.zoomRect).attr("width",r.width).attr("height",r.height).style("opacity",0).on("dblclick.zoom",null),a.axis_x_extent&&r.brush.extent(r.getDefaultExtent()),r.axis.init(),r.updateTargets(r.data.targets),o&&(r.updateDimension(),r.config.oninit.call(r),r.redraw({withTransition:!1,withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransitionForAxis:!1})),r.bindResize(),r.api.element=r.selectChart.node()},C.smoothLines=function(e,t){var n=this;"grid"===t&&e.each(function(){var e=n.d3.select(this),t=e.attr("x1"),r=e.attr("x2"),i=e.attr("y1"),a=e.attr("y2");e.attr({x1:Math.ceil(t),x2:Math.ceil(r),y1:Math.ceil(i),y2:Math.ceil(a)})})},C.updateSizes=function(){var e=this,t=e.config,n=e.legend?e.getLegendHeight():0,r=e.legend?e.getLegendWidth():0,i=e.isLegendRight||e.isLegendInset?0:n,a=e.hasArcType(),o=t.axis_rotated||a?0:e.getHorizontalAxisHeight("x"),s=t.subchart_show&&!a?t.subchart_size_height+o:0;e.currentWidth=e.getCurrentWidth(),e.currentHeight=e.getCurrentHeight(),e.margin=t.axis_rotated?{top:e.getHorizontalAxisHeight("y2")+e.getCurrentPaddingTop(),right:a?0:e.getCurrentPaddingRight(),bottom:e.getHorizontalAxisHeight("y")+i+e.getCurrentPaddingBottom(),left:s+(a?0:e.getCurrentPaddingLeft())}:{top:4+e.getCurrentPaddingTop(),right:a?0:e.getCurrentPaddingRight(),bottom:o+s+i+e.getCurrentPaddingBottom(),left:a?0:e.getCurrentPaddingLeft()},e.margin2=t.axis_rotated?{top:e.margin.top,right:NaN,bottom:20+i,left:e.rotated_padding_left}:{top:e.currentHeight-s-i,right:NaN,bottom:o+i,left:e.margin.left},e.margin3={top:0,right:NaN,bottom:0,left:0},e.updateSizeForLegend&&e.updateSizeForLegend(n,r),e.width=e.currentWidth-e.margin.left-e.margin.right,e.height=e.currentHeight-e.margin.top-e.margin.bottom,e.width<0&&(e.width=0),e.height<0&&(e.height=0),e.width2=t.axis_rotated?e.margin.left-e.rotated_padding_left-e.rotated_padding_right:e.width,e.height2=t.axis_rotated?e.height:e.currentHeight-e.margin2.top-e.margin2.bottom,e.width2<0&&(e.width2=0),e.height2<0&&(e.height2=0),e.arcWidth=e.width-(e.isLegendRight?r+10:0),e.arcHeight=e.height-(e.isLegendRight?0:10),e.hasType("gauge")&&!t.gauge_fullCircle&&(e.arcHeight+=e.height-e.getGaugeLabelHeight()),e.updateRadius&&e.updateRadius(),e.isLegendRight&&a&&(e.margin3.left=e.arcWidth/2+1.1*e.radiusExpanded)},C.updateTargets=function(e){var t=this;t.updateTargetsForText(e),t.updateTargetsForBar(e),t.updateTargetsForLine(e),t.hasArcType()&&t.updateTargetsForArc&&t.updateTargetsForArc(e),t.updateTargetsForSubchart&&t.updateTargetsForSubchart(e),t.showTargets()},C.showTargets=function(){var e=this;e.svg.selectAll("."+s.target).filter(function(t){return e.isTargetToShow(t.id)}).transition().duration(e.config.transition_duration).style("opacity",1)},C.redraw=function(e,t){var n,r,i,a,o,c,l,u,d,p,f,h,m,g,v,b,y,x,M,_,A,S,k,$,T,C,E,O,z,L=this,N=L.main,P=L.d3,I=L.config,D=L.getShapeIndices(L.isAreaType),R=L.getShapeIndices(L.isBarType),j=L.getShapeIndices(L.isLineType),q=L.hasArcType(),B=L.filterTargetsToShow(L.data.targets),W=L.xv.bind(L);if(e=e||{},n=w(e,"withY",!0),r=w(e,"withSubchart",!0),i=w(e,"withTransition",!0),c=w(e,"withTransform",!1),l=w(e,"withUpdateXDomain",!1),u=w(e,"withUpdateOrgXDomain",!1),d=w(e,"withTrimXDomain",!0),m=w(e,"withUpdateXAxis",l),p=w(e,"withLegend",!1),f=w(e,"withEventRect",!0),h=w(e,"withDimension",!0),a=w(e,"withTransitionForExit",i),o=w(e,"withTransitionForAxis",i),M=i?I.transition_duration:0,_=a?M:0,A=o?M:0,t=t||L.axis.generateTransitions(A),p&&I.legend_show?L.updateLegend(L.mapToIds(L.data.targets),e,t):h&&L.updateDimension(!0),L.isCategorized()&&0===B.length&&L.x.domain([0,L.axes.x.selectAll(".tick").size()]),B.length?(L.updateXDomain(B,l,u,d),I.axis_x_tick_values||($=L.axis.updateXAxisTickValues(B))):(L.xAxis.tickValues([]),L.subXAxis.tickValues([])),I.zoom_rescale&&!e.flow&&(E=L.x.orgDomain()),L.y.domain(L.getYDomain(B,"y",E)),L.y2.domain(L.getYDomain(B,"y2",E)),!I.axis_y_tick_values&&I.axis_y_tick_count&&L.yAxis.tickValues(L.axis.generateTickValues(L.y.domain(),I.axis_y_tick_count)),!I.axis_y2_tick_values&&I.axis_y2_tick_count&&L.y2Axis.tickValues(L.axis.generateTickValues(L.y2.domain(),I.axis_y2_tick_count)),L.axis.redraw(t,q),L.axis.updateLabels(i),(l||m)&&B.length)if(I.axis_x_tick_culling&&$){for(T=1;T<$.length;T++)if($.length/T<I.axis_x_tick_culling_max){C=T;break}L.svg.selectAll("."+s.axisX+" .tick text").each(function(e){var t=$.indexOf(e);t>=0&&P.select(this).style("display",t%C?"none":"block")})}else L.svg.selectAll("."+s.axisX+" .tick text").style("display","block");g=L.generateDrawArea?L.generateDrawArea(D,!1):void 0,v=L.generateDrawBar?L.generateDrawBar(R):void 0,b=L.generateDrawLine?L.generateDrawLine(j,!1):void 0,y=L.generateXYForText(D,R,j,!0),x=L.generateXYForText(D,R,j,!1),n&&(L.subY.domain(L.getYDomain(B,"y")),L.subY2.domain(L.getYDomain(B,"y2"))),L.updateXgridFocus(),N.select("text."+s.text+"."+s.empty).attr("x",L.width/2).attr("y",L.height/2).text(I.data_empty_label_text).transition().style("opacity",B.length?0:1),L.updateGrid(M),L.updateRegion(M),L.updateBar(_),
41L.updateLine(_),L.updateArea(_),L.updateCircle(),L.hasDataLabel()&&L.updateText(_),L.redrawTitle&&L.redrawTitle(),L.redrawArc&&L.redrawArc(M,_,c),L.redrawSubchart&&L.redrawSubchart(r,t,M,_,D,R,j),N.selectAll("."+s.selectedCircles).filter(L.isBarType.bind(L)).selectAll("circle").remove(),I.interaction_enabled&&!e.flow&&f&&(L.redrawEventRect(),L.updateZoom&&L.updateZoom()),L.updateCircleY(),O=(L.config.axis_rotated?L.circleY:L.circleX).bind(L),z=(L.config.axis_rotated?L.circleX:L.circleY).bind(L),e.flow&&(k=L.generateFlow({targets:B,flow:e.flow,duration:e.flow.duration,drawBar:v,drawLine:b,drawArea:g,cx:O,cy:z,xv:W,xForText:y,yForText:x})),(M||k)&&L.isTabVisible()?P.transition().duration(M).each(function(){var t=[];[L.redrawBar(v,!0),L.redrawLine(b,!0),L.redrawArea(g,!0),L.redrawCircle(O,z,!0),L.redrawText(y,x,e.flow,!0),L.redrawRegion(!0),L.redrawGrid(!0)].forEach(function(e){e.forEach(function(e){t.push(e)})}),S=L.generateWait(),t.forEach(function(e){S.add(e)})}).call(S,function(){k&&k(),I.onrendered&&I.onrendered.call(L)}):(L.redrawBar(v),L.redrawLine(b),L.redrawArea(g),L.redrawCircle(O,z),L.redrawText(y,x,e.flow),L.redrawRegion(),L.redrawGrid(),I.onrendered&&I.onrendered.call(L)),L.mapToIds(L.data.targets).forEach(function(e){L.withoutFadeIn[e]=!0})},C.updateAndRedraw=function(e){var t,n=this,r=n.config;e=e||{},e.withTransition=w(e,"withTransition",!0),e.withTransform=w(e,"withTransform",!1),e.withLegend=w(e,"withLegend",!1),e.withUpdateXDomain=!0,e.withUpdateOrgXDomain=!0,e.withTransitionForExit=!1,e.withTransitionForTransform=w(e,"withTransitionForTransform",e.withTransition),n.updateSizes(),e.withLegend&&r.legend_show||(t=n.axis.generateTransitions(e.withTransitionForAxis?r.transition_duration:0),n.updateScales(),n.updateSvgSize(),n.transformAll(e.withTransitionForTransform,t)),n.redraw(e,t)},C.redrawWithoutRescale=function(){this.redraw({withY:!1,withSubchart:!1,withEventRect:!1,withTransitionForAxis:!1})},C.isTimeSeries=function(){return"timeseries"===this.config.axis_x_type},C.isCategorized=function(){return this.config.axis_x_type.indexOf("categor")>=0},C.isCustomX=function(){var e=this,t=e.config;return!e.isTimeSeries()&&(t.data_x||_(t.data_xs))},C.isTimeSeriesY=function(){return"timeseries"===this.config.axis_y_type},C.getTranslate=function(e){var t,n,r=this,i=r.config;return"main"===e?(t=y(r.margin.left),n=y(r.margin.top)):"context"===e?(t=y(r.margin2.left),n=y(r.margin2.top)):"legend"===e?(t=r.margin3.left,n=r.margin3.top):"x"===e?(t=0,n=i.axis_rotated?0:r.height):"y"===e?(t=0,n=i.axis_rotated?r.height:0):"y2"===e?(t=i.axis_rotated?0:r.width,n=i.axis_rotated?1:0):"subx"===e?(t=0,n=i.axis_rotated?0:r.height2):"arc"===e&&(t=r.arcWidth/2,n=r.arcHeight/2),"translate("+t+","+n+")"},C.initialOpacity=function(e){return null!==e.value&&this.withoutFadeIn[e.id]?1:0},C.initialOpacityForCircle=function(e){return null!==e.value&&this.withoutFadeIn[e.id]?this.opacityForCircle(e):0},C.opacityForCircle=function(e){var t=f(this.config.point_show)?this.config.point_show(e):this.config.point_show,n=t?1:0;return p(e.value)?this.isScatterType(e)?.5:n:0},C.opacityForText=function(){return this.hasDataLabel()?1:0},C.xx=function(e){return e?this.x(e.x):null},C.xv=function(e){var t=this,n=e.value;return t.isTimeSeries()?n=t.parseDate(e.value):t.isCategorized()&&"string"==typeof e.value&&(n=t.config.axis_x_categories.indexOf(e.value)),Math.ceil(t.x(n))},C.yv=function(e){var t=this,n=e.axis&&"y2"===e.axis?t.y2:t.y;return Math.ceil(n(e.value))},C.subxx=function(e){return e?this.subX(e.x):null},C.transformMain=function(e,t){var n,r,i,a=this;t&&t.axisX?n=t.axisX:(n=a.main.select("."+s.axisX),e&&(n=n.transition())),t&&t.axisY?r=t.axisY:(r=a.main.select("."+s.axisY),e&&(r=r.transition())),t&&t.axisY2?i=t.axisY2:(i=a.main.select("."+s.axisY2),e&&(i=i.transition())),(e?a.main.transition():a.main).attr("transform",a.getTranslate("main")),n.attr("transform",a.getTranslate("x")),r.attr("transform",a.getTranslate("y")),i.attr("transform",a.getTranslate("y2")),a.main.select("."+s.chartArcs).attr("transform",a.getTranslate("arc"))},C.transformAll=function(e,t){var n=this;n.transformMain(e,t),n.config.subchart_show&&n.transformContext(e,t),n.legend&&n.transformLegend(e)},C.updateSvgSize=function(){var e=this,t=e.svg.select(".c3-brush .background");e.svg.attr("width",e.currentWidth).attr("height",e.currentHeight),e.svg.selectAll(["#"+e.clipId,"#"+e.clipIdForGrid]).select("rect").attr("width",e.width).attr("height",e.height),e.svg.select("#"+e.clipIdForXAxis).select("rect").attr("x",e.getXAxisClipX.bind(e)).attr("y",e.getXAxisClipY.bind(e)).attr("width",e.getXAxisClipWidth.bind(e)).attr("height",e.getXAxisClipHeight.bind(e)),e.svg.select("#"+e.clipIdForYAxis).select("rect").attr("x",e.getYAxisClipX.bind(e)).attr("y",e.getYAxisClipY.bind(e)).attr("width",e.getYAxisClipWidth.bind(e)).attr("height",e.getYAxisClipHeight.bind(e)),e.svg.select("#"+e.clipIdForSubchart).select("rect").attr("width",e.width).attr("height",t.size()?t.attr("height"):0),e.svg.select("."+s.zoomRect).attr("width",e.width).attr("height",e.height),e.selectChart.style("max-height",e.currentHeight+"px")},C.updateDimension=function(e){var t=this;e||(t.config.axis_rotated?(t.axes.x.call(t.xAxis),t.axes.subx.call(t.subXAxis)):(t.axes.y.call(t.yAxis),t.axes.y2.call(t.y2Axis))),t.updateSizes(),t.updateScales(),t.updateSvgSize(),t.transformAll(!1)},C.observeInserted=function(e){var t,n=this;if("undefined"==typeof MutationObserver)return void window.console.error("MutationObserver not defined.");t=new MutationObserver(function(r){r.forEach(function(r){"childList"===r.type&&r.previousSibling&&(t.disconnect(),n.intervalForObserveInserted=window.setInterval(function(){e.node().parentNode&&(window.clearInterval(n.intervalForObserveInserted),n.updateDimension(),n.brush&&n.brush.update(),n.config.oninit.call(n),n.redraw({withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransition:!1,withTransitionForTransform:!1,withLegend:!0}),e.transition().style("opacity",1))},10))})}),t.observe(e.node(),{attributes:!0,childList:!0,characterData:!0})},C.bindResize=function(){var e=this,t=e.config;if(e.resizeFunction=e.generateResize(),e.resizeFunction.add(function(){t.onresize.call(e)}),t.resize_auto&&e.resizeFunction.add(function(){void 0!==e.resizeTimeout&&window.clearTimeout(e.resizeTimeout),e.resizeTimeout=window.setTimeout(function(){delete e.resizeTimeout,e.api.flush()},100)}),e.resizeFunction.add(function(){t.onresized.call(e)}),window.attachEvent)window.attachEvent("onresize",e.resizeFunction);else if(window.addEventListener)window.addEventListener("resize",e.resizeFunction,!1);else{var n=window.onresize;n?n.add&&n.remove||(n=e.generateResize(),n.add(window.onresize)):n=e.generateResize(),n.add(e.resizeFunction),window.onresize=n}},C.generateResize=function(){function e(){t.forEach(function(e){e()})}var t=[];return e.add=function(e){t.push(e)},e.remove=function(e){for(var n=0;n<t.length;n++)if(t[n]===e){t.splice(n,1);break}},e},C.endall=function(e,t){var n=0;e.each(function(){++n}).each("end",function(){--n||t.apply(this,arguments)})},C.generateWait=function(){var e=[],t=function(t,n){var r=setInterval(function(){var t=0;e.forEach(function(e){if(e.empty())return void(t+=1);try{e.transition()}catch(e){t+=1}}),t===e.length&&(clearInterval(r),n&&n())},10)};return t.add=function(t){e.push(t)},t},C.parseDate=function(e){var t,n=this;return e instanceof Date?t=e:"string"==typeof e?t=n.dataTimeFormat(n.config.data_xFormat).parse(e):"object"===(void 0===e?"undefined":c(e))?t=new Date(+e):"number"!=typeof e||isNaN(e)||(t=new Date(+e)),t&&!isNaN(+t)||window.console.error("Failed to parse x '"+e+"' to Date object"),t},C.isTabVisible=function(){var e;return void 0!==document.hidden?e="hidden":void 0!==document.mozHidden?e="mozHidden":void 0!==document.msHidden?e="msHidden":void 0!==document.webkitHidden&&(e="webkitHidden"),!document[e]},C.isValue=p,C.isFunction=f,C.isString=m,C.isUndefined=g,C.isDefined=v,C.ceil10=b,C.asHalfPixel=y,C.diffDomain=x,C.isEmpty=M,C.notEmpty=_,C.notEmpty=_,C.getOption=w,C.hasValue=A,C.sanitise=S,C.getPathBox=k,C.CLASS=s,Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,r=function(){},i=function(){return n.apply(this instanceof r?this:e,t.concat(Array.prototype.slice.call(arguments)))};return r.prototype=this.prototype,i.prototype=new r,i}),function(){"SVGPathSeg"in window||(window.SVGPathSeg=function(e,t,n){this.pathSegType=e,this.pathSegTypeAsLetter=t,this._owningPathSegList=n},window.SVGPathSeg.prototype.classname="SVGPathSeg",window.SVGPathSeg.PATHSEG_UNKNOWN=0,window.SVGPathSeg.PATHSEG_CLOSEPATH=1,window.SVGPathSeg.PATHSEG_MOVETO_ABS=2,window.SVGPathSeg.PATHSEG_MOVETO_REL=3,window.SVGPathSeg.PATHSEG_LINETO_ABS=4,window.SVGPathSeg.PATHSEG_LINETO_REL=5,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS=6,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL=7,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS=8,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL=9,window.SVGPathSeg.PATHSEG_ARC_ABS=10,window.SVGPathSeg.PATHSEG_ARC_REL=11,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS=12,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL=13,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS=14,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL=15,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS=16,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL=17,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS=18,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL=19,window.SVGPathSeg.prototype._segmentChanged=function(){this._owningPathSegList&&this._owningPathSegList.segmentChanged(this)},window.SVGPathSegClosePath=function(e){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CLOSEPATH,"z",e)},window.SVGPathSegClosePath.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegClosePath.prototype.toString=function(){return"[object SVGPathSegClosePath]"},window.SVGPathSegClosePath.prototype._asPathString=function(){return this.pathSegTypeAsLetter},window.SVGPathSegClosePath.prototype.clone=function(){return new window.SVGPathSegClosePath(void 0)},window.SVGPathSegMovetoAbs=function(e,t,n){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_ABS,"M",e),this._x=t,this._y=n},window.SVGPathSegMovetoAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegMovetoAbs.prototype.toString=function(){return"[object SVGPathSegMovetoAbs]"},window.SVGPathSegMovetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegMovetoAbs.prototype.clone=function(){return new window.SVGPathSegMovetoAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegMovetoAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegMovetoRel=function(e,t,n){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_REL,"m",e),this._x=t,this._y=n},window.SVGPathSegMovetoRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegMovetoRel.prototype.toString=function(){return"[object SVGPathSegMovetoRel]"},window.SVGPathSegMovetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegMovetoRel.prototype.clone=function(){return new window.SVGPathSegMovetoRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegMovetoRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoAbs=function(e,t,n){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_ABS,"L",e),this._x=t,this._y=n},window.SVGPathSegLinetoAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoAbs.prototype.toString=function(){return"[object SVGPathSegLinetoAbs]"},window.SVGPathSegLinetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegLinetoAbs.prototype.clone=function(){return new window.SVGPathSegLinetoAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegLinetoAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegLinetoAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoRel=function(e,t,n){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_REL,"l",e),this._x=t,this._y=n},window.SVGPathSegLinetoRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoRel.prototype.toString=function(){return"[object SVGPathSegLinetoRel]"},window.SVGPathSegLinetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegLinetoRel.prototype.clone=function(){return new window.SVGPathSegLinetoRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegLinetoRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegLinetoRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicAbs=function(e,t,n,r,i,a,o){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS,"C",e),this._x=t,this._y=n,this._x1=r,this._y1=i,this._x2=a,this._y2=o},window.SVGPathSegCurvetoCubicAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicAbs]"},window.SVGPathSegCurvetoCubicAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicAbs(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x1",{get:function(){return this._x1},set:function(e){this._x1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y1",{get:function(){return this._y1},set:function(e){this._y1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x2",{get:function(){return this._x2},set:function(e){this._x2=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y2",{get:function(){return this._y2},set:function(e){this._y2=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicRel=function(e,t,n,r,i,a,o){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL,"c",e),this._x=t,this._y=n,this._x1=r,this._y1=i,this._x2=a,this._y2=o},window.SVGPathSegCurvetoCubicRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicRel]"},window.SVGPathSegCurvetoCubicRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicRel.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicRel(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x1",{get:function(){return this._x1},set:function(e){this._x1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y1",{get:function(){return this._y1},set:function(e){this._y1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x2",{get:function(){return this._x2},set:function(e){this._x2=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y2",{get:function(){return this._y2},set:function(e){this._y2=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticAbs=function(e,t,n,r,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS,"Q",e),this._x=t,this._y=n,this._x1=r,this._y1=i},window.SVGPathSegCurvetoQuadraticAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticAbs]"},window.SVGPathSegCurvetoQuadraticAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticAbs(void 0,this._x,this._y,this._x1,this._y1)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"x1",{get:function(){return this._x1},set:function(e){this._x1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"y1",{get:function(){return this._y1},set:function(e){this._y1=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticRel=function(e,t,n,r,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL,"q",e),this._x=t,this._y=n,this._x1=r,this._y1=i},window.SVGPathSegCurvetoQuadraticRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticRel]"},window.SVGPathSegCurvetoQuadraticRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticRel.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticRel(void 0,this._x,this._y,this._x1,this._y1)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"x1",{get:function(){return this._x1},set:function(e){this._x1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"y1",{get:function(){return this._y1},set:function(e){this._y1=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegArcAbs=function(e,t,n,r,i,a,o,s){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_ARC_ABS,"A",e),this._x=t,this._y=n,this._r1=r,this._r2=i,this._angle=a,this._largeArcFlag=o,this._sweepFlag=s},window.SVGPathSegArcAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegArcAbs.prototype.toString=function(){return"[object SVGPathSegArcAbs]"},window.SVGPathSegArcAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},window.SVGPathSegArcAbs.prototype.clone=function(){return new window.SVGPathSegArcAbs(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(window.SVGPathSegArcAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"r1",{get:function(){return this._r1},set:function(e){this._r1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"r2",{get:function(){return this._r2},set:function(e){this._r2=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"angle",{get:function(){return this._angle},set:function(e){this._angle=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"largeArcFlag",{get:function(){return this._largeArcFlag},set:function(e){this._largeArcFlag=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"sweepFlag",{get:function(){return this._sweepFlag},set:function(e){this._sweepFlag=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegArcRel=function(e,t,n,r,i,a,o,s){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_ARC_REL,"a",e),this._x=t,this._y=n,this._r1=r,this._r2=i,this._angle=a,this._largeArcFlag=o,this._sweepFlag=s},window.SVGPathSegArcRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegArcRel.prototype.toString=function(){return"[object SVGPathSegArcRel]"},window.SVGPathSegArcRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},window.SVGPathSegArcRel.prototype.clone=function(){return new window.SVGPathSegArcRel(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(window.SVGPathSegArcRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"r1",{get:function(){return this._r1},set:function(e){this._r1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"r2",{get:function(){return this._r2},set:function(e){this._r2=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"angle",{get:function(){return this._angle},set:function(e){this._angle=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"largeArcFlag",{get:function(){return this._largeArcFlag},set:function(e){this._largeArcFlag=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"sweepFlag",{get:function(){return this._sweepFlag},set:function(e){this._sweepFlag=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoHorizontalAbs=function(e,t){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS,"H",e),this._x=t},window.SVGPathSegLinetoHorizontalAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoHorizontalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalAbs]"},window.SVGPathSegLinetoHorizontalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x},window.SVGPathSegLinetoHorizontalAbs.prototype.clone=function(){return new window.SVGPathSegLinetoHorizontalAbs(void 0,this._x)},Object.defineProperty(window.SVGPathSegLinetoHorizontalAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoHorizontalRel=function(e,t){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL,"h",e),this._x=t},window.SVGPathSegLinetoHorizontalRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoHorizontalRel.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalRel]"},window.SVGPathSegLinetoHorizontalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x},window.SVGPathSegLinetoHorizontalRel.prototype.clone=function(){return new window.SVGPathSegLinetoHorizontalRel(void 0,this._x)},Object.defineProperty(window.SVGPathSegLinetoHorizontalRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoVerticalAbs=function(e,t){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS,"V",e),this._y=t},window.SVGPathSegLinetoVerticalAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoVerticalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalAbs]"},window.SVGPathSegLinetoVerticalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},window.SVGPathSegLinetoVerticalAbs.prototype.clone=function(){return new window.SVGPathSegLinetoVerticalAbs(void 0,this._y)},Object.defineProperty(window.SVGPathSegLinetoVerticalAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoVerticalRel=function(e,t){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL,"v",e),this._y=t},window.SVGPathSegLinetoVerticalRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoVerticalRel.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalRel]"},window.SVGPathSegLinetoVerticalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},window.SVGPathSegLinetoVerticalRel.prototype.clone=function(){return new window.SVGPathSegLinetoVerticalRel(void 0,this._y)},Object.defineProperty(window.SVGPathSegLinetoVerticalRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicSmoothAbs=function(e,t,n,r,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS,"S",e),this._x=t,this._y=n,this._x2=r,this._y2=i},window.SVGPathSegCurvetoCubicSmoothAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothAbs]"},window.SVGPathSegCurvetoCubicSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicSmoothAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicSmoothAbs(void 0,this._x,this._y,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"x2",{get:function(){return this._x2},set:function(e){this._x2=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"y2",{get:function(){return this._y2},set:function(e){this._y2=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicSmoothRel=function(e,t,n,r,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL,"s",e),this._x=t,this._y=n,this._x2=r,this._y2=i},window.SVGPathSegCurvetoCubicSmoothRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothRel]"},window.SVGPathSegCurvetoCubicSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicSmoothRel.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicSmoothRel(void 0,this._x,this._y,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"x2",{get:function(){return this._x2},set:function(e){this._x2=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"y2",{get:function(){return this._y2},set:function(e){this._y2=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticSmoothAbs=function(e,t,n){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS,"T",e),this._x=t,this._y=n},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothAbs]"},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticSmoothRel=function(e,t,n){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL,"t",e),this._x=t,this._y=n},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothRel]"},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),window.SVGPathElement.prototype.createSVGPathSegClosePath=function(){return new window.SVGPathSegClosePath(void 0)},
42window.SVGPathElement.prototype.createSVGPathSegMovetoAbs=function(e,t){return new window.SVGPathSegMovetoAbs(void 0,e,t)},window.SVGPathElement.prototype.createSVGPathSegMovetoRel=function(e,t){return new window.SVGPathSegMovetoRel(void 0,e,t)},window.SVGPathElement.prototype.createSVGPathSegLinetoAbs=function(e,t){return new window.SVGPathSegLinetoAbs(void 0,e,t)},window.SVGPathElement.prototype.createSVGPathSegLinetoRel=function(e,t){return new window.SVGPathSegLinetoRel(void 0,e,t)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs=function(e,t,n,r,i,a){return new window.SVGPathSegCurvetoCubicAbs(void 0,e,t,n,r,i,a)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel=function(e,t,n,r,i,a){return new window.SVGPathSegCurvetoCubicRel(void 0,e,t,n,r,i,a)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs=function(e,t,n,r){return new window.SVGPathSegCurvetoQuadraticAbs(void 0,e,t,n,r)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel=function(e,t,n,r){return new window.SVGPathSegCurvetoQuadraticRel(void 0,e,t,n,r)},window.SVGPathElement.prototype.createSVGPathSegArcAbs=function(e,t,n,r,i,a,o){return new window.SVGPathSegArcAbs(void 0,e,t,n,r,i,a,o)},window.SVGPathElement.prototype.createSVGPathSegArcRel=function(e,t,n,r,i,a,o){return new window.SVGPathSegArcRel(void 0,e,t,n,r,i,a,o)},window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs=function(e){return new window.SVGPathSegLinetoHorizontalAbs(void 0,e)},window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel=function(e){return new window.SVGPathSegLinetoHorizontalRel(void 0,e)},window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs=function(e){return new window.SVGPathSegLinetoVerticalAbs(void 0,e)},window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel=function(e){return new window.SVGPathSegLinetoVerticalRel(void 0,e)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs=function(e,t,n,r){return new window.SVGPathSegCurvetoCubicSmoothAbs(void 0,e,t,n,r)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel=function(e,t,n,r){return new window.SVGPathSegCurvetoCubicSmoothRel(void 0,e,t,n,r)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs=function(e,t){return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0,e,t)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel=function(e,t){return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0,e,t)},"getPathSegAtLength"in window.SVGPathElement.prototype||(window.SVGPathElement.prototype.getPathSegAtLength=function(e){if(void 0===e||!isFinite(e))throw"Invalid arguments.";var t=document.createElementNS("http://www.w3.org/2000/svg","path");t.setAttribute("d",this.getAttribute("d"));var n=t.pathSegList.numberOfItems-1;if(n<=0)return 0;do{if(t.pathSegList.removeItem(n),e>t.getTotalLength())break;n--}while(n>0);return n})),"SVGPathSegList"in window||(window.SVGPathSegList=function(e){this._pathElement=e,this._list=this._parsePath(this._pathElement.getAttribute("d")),this._mutationObserverConfig={attributes:!0,attributeFilter:["d"]},this._pathElementMutationObserver=new MutationObserver(this._updateListFromPathMutations.bind(this)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},window.SVGPathSegList.prototype.classname="SVGPathSegList",Object.defineProperty(window.SVGPathSegList.prototype,"numberOfItems",{get:function(){return this._checkPathSynchronizedToList(),this._list.length},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"pathSegList",{get:function(){return this._pathSegList||(this._pathSegList=new window.SVGPathSegList(this)),this._pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"normalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedNormalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),window.SVGPathSegList.prototype._checkPathSynchronizedToList=function(){this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords())},window.SVGPathSegList.prototype._updateListFromPathMutations=function(e){if(this._pathElement){var t=!1;e.forEach(function(e){"d"==e.attributeName&&(t=!0)}),t&&(this._list=this._parsePath(this._pathElement.getAttribute("d")))}},window.SVGPathSegList.prototype._writeListToPath=function(){this._pathElementMutationObserver.disconnect(),this._pathElement.setAttribute("d",window.SVGPathSegList._pathSegArrayAsString(this._list)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},window.SVGPathSegList.prototype.segmentChanged=function(e){this._writeListToPath()},window.SVGPathSegList.prototype.clear=function(){this._checkPathSynchronizedToList(),this._list.forEach(function(e){e._owningPathSegList=null}),this._list=[],this._writeListToPath()},window.SVGPathSegList.prototype.initialize=function(e){return this._checkPathSynchronizedToList(),this._list=[e],e._owningPathSegList=this,this._writeListToPath(),e},window.SVGPathSegList.prototype._checkValidIndex=function(e){if(isNaN(e)||e<0||e>=this.numberOfItems)throw"INDEX_SIZE_ERR"},window.SVGPathSegList.prototype.getItem=function(e){return this._checkPathSynchronizedToList(),this._checkValidIndex(e),this._list[e]},window.SVGPathSegList.prototype.insertItemBefore=function(e,t){return this._checkPathSynchronizedToList(),t>this.numberOfItems&&(t=this.numberOfItems),e._owningPathSegList&&(e=e.clone()),this._list.splice(t,0,e),e._owningPathSegList=this,this._writeListToPath(),e},window.SVGPathSegList.prototype.replaceItem=function(e,t){return this._checkPathSynchronizedToList(),e._owningPathSegList&&(e=e.clone()),this._checkValidIndex(t),this._list[t]=e,e._owningPathSegList=this,this._writeListToPath(),e},window.SVGPathSegList.prototype.removeItem=function(e){this._checkPathSynchronizedToList(),this._checkValidIndex(e);var t=this._list[e];return this._list.splice(e,1),this._writeListToPath(),t},window.SVGPathSegList.prototype.appendItem=function(e){return this._checkPathSynchronizedToList(),e._owningPathSegList&&(e=e.clone()),this._list.push(e),e._owningPathSegList=this,this._writeListToPath(),e},window.SVGPathSegList._pathSegArrayAsString=function(e){var t="",n=!0;return e.forEach(function(e){n?(n=!1,t+=e._asPathString()):t+=" "+e._asPathString()}),t},window.SVGPathSegList.prototype._parsePath=function(e){if(!e||0==e.length)return[];var t=this,n=function(){this.pathSegList=[]};n.prototype.appendSegment=function(e){this.pathSegList.push(e)};var r=function(e){this._string=e,this._currentIndex=0,this._endIndex=this._string.length,this._previousCommand=window.SVGPathSeg.PATHSEG_UNKNOWN,this._skipOptionalSpaces()};r.prototype._isCurrentSpace=function(){var e=this._string[this._currentIndex];return e<=" "&&(" "==e||"\n"==e||"\t"==e||"\r"==e||"\f"==e)},r.prototype._skipOptionalSpaces=function(){for(;this._currentIndex<this._endIndex&&this._isCurrentSpace();)this._currentIndex++;return this._currentIndex<this._endIndex},r.prototype._skipOptionalSpacesOrDelimiter=function(){return!(this._currentIndex<this._endIndex&&!this._isCurrentSpace()&&","!=this._string.charAt(this._currentIndex))&&(this._skipOptionalSpaces()&&this._currentIndex<this._endIndex&&","==this._string.charAt(this._currentIndex)&&(this._currentIndex++,this._skipOptionalSpaces()),this._currentIndex<this._endIndex)},r.prototype.hasMoreData=function(){return this._currentIndex<this._endIndex},r.prototype.peekSegmentType=function(){var e=this._string[this._currentIndex];return this._pathSegTypeFromChar(e)},r.prototype._pathSegTypeFromChar=function(e){switch(e){case"Z":case"z":return window.SVGPathSeg.PATHSEG_CLOSEPATH;case"M":return window.SVGPathSeg.PATHSEG_MOVETO_ABS;case"m":return window.SVGPathSeg.PATHSEG_MOVETO_REL;case"L":return window.SVGPathSeg.PATHSEG_LINETO_ABS;case"l":return window.SVGPathSeg.PATHSEG_LINETO_REL;case"C":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS;case"c":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL;case"Q":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS;case"q":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL;case"A":return window.SVGPathSeg.PATHSEG_ARC_ABS;case"a":return window.SVGPathSeg.PATHSEG_ARC_REL;case"H":return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS;case"h":return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL;case"V":return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS;case"v":return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL;case"S":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS;case"s":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL;case"T":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS;case"t":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL;default:return window.SVGPathSeg.PATHSEG_UNKNOWN}},r.prototype._nextCommandHelper=function(e,t){return("+"==e||"-"==e||"."==e||e>="0"&&e<="9")&&t!=window.SVGPathSeg.PATHSEG_CLOSEPATH?t==window.SVGPathSeg.PATHSEG_MOVETO_ABS?window.SVGPathSeg.PATHSEG_LINETO_ABS:t==window.SVGPathSeg.PATHSEG_MOVETO_REL?window.SVGPathSeg.PATHSEG_LINETO_REL:t:window.SVGPathSeg.PATHSEG_UNKNOWN},r.prototype.initialCommandIsMoveTo=function(){if(!this.hasMoreData())return!0;var e=this.peekSegmentType();return e==window.SVGPathSeg.PATHSEG_MOVETO_ABS||e==window.SVGPathSeg.PATHSEG_MOVETO_REL},r.prototype._parseNumber=function(){var e=0,t=0,n=1,r=0,i=1,a=1,o=this._currentIndex;if(this._skipOptionalSpaces(),this._currentIndex<this._endIndex&&"+"==this._string.charAt(this._currentIndex)?this._currentIndex++:this._currentIndex<this._endIndex&&"-"==this._string.charAt(this._currentIndex)&&(this._currentIndex++,i=-1),!(this._currentIndex==this._endIndex||(this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")&&"."!=this._string.charAt(this._currentIndex))){for(var s=this._currentIndex;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)this._currentIndex++;if(this._currentIndex!=s)for(var c=this._currentIndex-1,l=1;c>=s;)t+=l*(this._string.charAt(c--)-"0"),l*=10;if(this._currentIndex<this._endIndex&&"."==this._string.charAt(this._currentIndex)){if(++this._currentIndex>=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)n*=10,r+=(this._string.charAt(this._currentIndex)-"0")/n,this._currentIndex+=1}if(this._currentIndex!=o&&this._currentIndex+1<this._endIndex&&("e"==this._string.charAt(this._currentIndex)||"E"==this._string.charAt(this._currentIndex))&&"x"!=this._string.charAt(this._currentIndex+1)&&"m"!=this._string.charAt(this._currentIndex+1)){if(this._currentIndex++,"+"==this._string.charAt(this._currentIndex)?this._currentIndex++:"-"==this._string.charAt(this._currentIndex)&&(this._currentIndex++,a=-1),this._currentIndex>=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)e*=10,e+=this._string.charAt(this._currentIndex)-"0",this._currentIndex++}var u=t+r;if(u*=i,e&&(u*=Math.pow(10,a*e)),o!=this._currentIndex)return this._skipOptionalSpacesOrDelimiter(),u}},r.prototype._parseArcFlag=function(){if(!(this._currentIndex>=this._endIndex)){var e=!1,t=this._string.charAt(this._currentIndex++);if("0"==t)e=!1;else{if("1"!=t)return;e=!0}return this._skipOptionalSpacesOrDelimiter(),e}},r.prototype.parseSegment=function(){var e=this._string[this._currentIndex],n=this._pathSegTypeFromChar(e);if(n==window.SVGPathSeg.PATHSEG_UNKNOWN){if(this._previousCommand==window.SVGPathSeg.PATHSEG_UNKNOWN)return null;if((n=this._nextCommandHelper(e,this._previousCommand))==window.SVGPathSeg.PATHSEG_UNKNOWN)return null}else this._currentIndex++;switch(this._previousCommand=n,n){case window.SVGPathSeg.PATHSEG_MOVETO_REL:return new window.SVGPathSegMovetoRel(t,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_MOVETO_ABS:return new window.SVGPathSegMovetoAbs(t,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_REL:return new window.SVGPathSegLinetoRel(t,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_ABS:return new window.SVGPathSegLinetoAbs(t,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:return new window.SVGPathSegLinetoHorizontalRel(t,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:return new window.SVGPathSegLinetoHorizontalAbs(t,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:return new window.SVGPathSegLinetoVerticalRel(t,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:return new window.SVGPathSegLinetoVerticalAbs(t,this._parseNumber());case window.SVGPathSeg.PATHSEG_CLOSEPATH:return this._skipOptionalSpaces(),new window.SVGPathSegClosePath(t);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:var r={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new window.SVGPathSegCurvetoCubicRel(t,r.x,r.y,r.x1,r.y1,r.x2,r.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:var r={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new window.SVGPathSegCurvetoCubicAbs(t,r.x,r.y,r.x1,r.y1,r.x2,r.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:var r={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new window.SVGPathSegCurvetoCubicSmoothRel(t,r.x,r.y,r.x2,r.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:var r={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new window.SVGPathSegCurvetoCubicSmoothAbs(t,r.x,r.y,r.x2,r.y2);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:var r={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new window.SVGPathSegCurvetoQuadraticRel(t,r.x,r.y,r.x1,r.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:var r={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new window.SVGPathSegCurvetoQuadraticAbs(t,r.x,r.y,r.x1,r.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:return new window.SVGPathSegCurvetoQuadraticSmoothRel(t,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:return new window.SVGPathSegCurvetoQuadraticSmoothAbs(t,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_ARC_REL:var r={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()};return new window.SVGPathSegArcRel(t,r.x,r.y,r.x1,r.y1,r.arcAngle,r.arcLarge,r.arcSweep);case window.SVGPathSeg.PATHSEG_ARC_ABS:var r={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()};return new window.SVGPathSegArcAbs(t,r.x,r.y,r.x1,r.y1,r.arcAngle,r.arcLarge,r.arcSweep);default:throw"Unknown path seg type."}};var i=new n,a=new r(e);if(!a.initialCommandIsMoveTo())return[];for(;a.hasMoreData();){var o=a.parseSegment();if(!o)return[];i.appendSegment(o)}return i.pathSegList})}(),T.axis=function(){},T.axis.labels=function(e){var t=this.internal;arguments.length&&(Object.keys(e).forEach(function(n){t.axis.setLabelText(n,e[n])}),t.axis.updateLabels())},T.axis.max=function(e){var t=this.internal,n=t.config;if(!arguments.length)return{x:n.axis_x_max,y:n.axis_y_max,y2:n.axis_y2_max};"object"===(void 0===e?"undefined":c(e))?(p(e.x)&&(n.axis_x_max=e.x),p(e.y)&&(n.axis_y_max=e.y),p(e.y2)&&(n.axis_y2_max=e.y2)):n.axis_y_max=n.axis_y2_max=e,t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})},T.axis.min=function(e){var t=this.internal,n=t.config;if(!arguments.length)return{x:n.axis_x_min,y:n.axis_y_min,y2:n.axis_y2_min};"object"===(void 0===e?"undefined":c(e))?(p(e.x)&&(n.axis_x_min=e.x),p(e.y)&&(n.axis_y_min=e.y),p(e.y2)&&(n.axis_y2_min=e.y2)):n.axis_y_min=n.axis_y2_min=e,t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})},T.axis.range=function(e){if(!arguments.length)return{max:this.axis.max(),min:this.axis.min()};v(e.max)&&this.axis.max(e.max),v(e.min)&&this.axis.min(e.min)},T.category=function(e,t){var n=this.internal,r=n.config;return arguments.length>1&&(r.axis_x_categories[e]=t,n.redraw()),r.axis_x_categories[e]},T.categories=function(e){var t=this.internal,n=t.config;return arguments.length?(n.axis_x_categories=e,t.redraw(),n.axis_x_categories):n.axis_x_categories},T.resize=function(e){var t=this.internal,n=t.config;n.size_width=e?e.width:null,n.size_height=e?e.height:null,this.flush()},T.flush=function(){this.internal.updateAndRedraw({withLegend:!0,withTransition:!1,withTransitionForTransform:!1})},T.destroy=function(){var e=this.internal;if(window.clearInterval(e.intervalForObserveInserted),void 0!==e.resizeTimeout&&window.clearTimeout(e.resizeTimeout),window.detachEvent)window.detachEvent("onresize",e.resizeFunction);else if(window.removeEventListener)window.removeEventListener("resize",e.resizeFunction);else{var t=window.onresize;t&&t.add&&t.remove&&t.remove(e.resizeFunction)}return e.selectChart.classed("c3",!1).html(""),Object.keys(e).forEach(function(t){e[t]=null}),null},T.color=function(e){return this.internal.color(e)},T.data=function(e){var t=this.internal.data.targets;return void 0===e?t:t.filter(function(t){return[].concat(e).indexOf(t.id)>=0})},T.data.shown=function(e){return this.internal.filterTargetsToShow(this.data(e))},T.data.values=function(e){var t,n=null;return e&&(t=this.data(e),n=t[0]?t[0].values.map(function(e){return e.value}):null),n},T.data.names=function(e){return this.internal.clearLegendItemTextBoxCache(),this.internal.updateDataAttributes("names",e)},T.data.colors=function(e){return this.internal.updateDataAttributes("colors",e)},T.data.axes=function(e){return this.internal.updateDataAttributes("axes",e)},T.flow=function(e){var t,n,r,i,a,o,s,c=this.internal,l=[],u=c.getMaxDataCount(),d=0,f=0;if(e.json)n=c.convertJsonToData(e.json,e.keys);else if(e.rows)n=c.convertRowsToData(e.rows);else{if(!e.columns)return;n=c.convertColumnsToData(e.columns)}t=c.convertDataToTargets(n,!0),c.data.targets.forEach(function(e){var n,r,i=!1;for(n=0;n<t.length;n++)if(e.id===t[n].id){for(i=!0,e.values[e.values.length-1]&&(f=e.values[e.values.length-1].index+1),d=t[n].values.length,r=0;r<d;r++)t[n].values[r].index=f+r,c.isTimeSeries()||(t[n].values[r].x=f+r);e.values=e.values.concat(t[n].values),t.splice(n,1);break}i||l.push(e.id)}),c.data.targets.forEach(function(e){var t,n;for(t=0;t<l.length;t++)if(e.id===l[t])for(f=e.values[e.values.length-1].index+1,n=0;n<d;n++)e.values.push({id:e.id,index:f+n,x:c.isTimeSeries()?c.getOtherTargetX(f+n):f+n,value:null})}),c.data.targets.length&&t.forEach(function(e){var t,n=[];for(t=c.data.targets[0].values[0].index;t<f;t++)n.push({id:e.id,index:t,x:c.isTimeSeries()?c.getOtherTargetX(t):t,value:null});e.values.forEach(function(e){e.index+=f,c.isTimeSeries()||(e.x+=f)}),e.values=n.concat(e.values)}),c.data.targets=c.data.targets.concat(t),c.getMaxDataCount(),i=c.data.targets[0],a=i.values[0],v(e.to)?(d=0,s=c.isTimeSeries()?c.parseDate(e.to):e.to,i.values.forEach(function(e){e.x<s&&d++})):v(e.length)&&(d=e.length),u?1===u&&c.isTimeSeries()&&(o=(i.values[i.values.length-1].x-a.x)/2,r=[new Date(+a.x-o),new Date(+a.x+o)],c.updateXDomain(null,!0,!0,!1,r)):(o=c.isTimeSeries()?i.values.length>1?i.values[i.values.length-1].x-a.x:a.x-c.getXDomain(c.data.targets)[0]:1,r=[a.x-o,a.x],c.updateXDomain(null,!0,!0,!1,r)),c.updateTargets(c.data.targets),c.redraw({flow:{index:a.index,length:d,duration:p(e.duration)?e.duration:c.config.transition_duration,done:e.done,orgDataCount:u},withLegend:!0,withTransition:u>1,withTrimXDomain:!1,withUpdateXAxis:!0})},C.generateFlow=function(e){var t=this,n=t.config,r=t.d3;return function(){var i,a,o,c=e.targets,l=e.flow,u=e.drawBar,d=e.drawLine,p=e.drawArea,f=e.cx,h=e.cy,m=e.xv,g=e.xForText,v=e.yForText,b=e.duration,y=1,M=l.index,_=l.length,w=t.getValueOnIndex(t.data.targets[0].values,M),A=t.getValueOnIndex(t.data.targets[0].values,M+_),S=t.x.domain(),k=l.duration||b,$=l.done||function(){},T=t.generateWait(),C=t.xgrid||r.selectAll([]),E=t.xgridLines||r.selectAll([]),O=t.mainRegion||r.selectAll([]),z=t.mainText||r.selectAll([]),L=t.mainBar||r.selectAll([]),N=t.mainLine||r.selectAll([]),P=t.mainArea||r.selectAll([]),I=t.mainCircle||r.selectAll([]);t.flowing=!0,t.data.targets.forEach(function(e){e.values.splice(0,_)}),o=t.updateXDomain(c,!0,!0),t.updateXGrid&&t.updateXGrid(!0),l.orgDataCount?i=1===l.orgDataCount||(w&&w.x)===(A&&A.x)?t.x(S[0])-t.x(o[0]):t.isTimeSeries()?t.x(S[0])-t.x(o[0]):t.x(w.x)-t.x(A.x):1!==t.data.targets[0].values.length?i=t.x(S[0])-t.x(o[0]):t.isTimeSeries()?(w=t.getValueOnIndex(t.data.targets[0].values,0),A=t.getValueOnIndex(t.data.targets[0].values,t.data.targets[0].values.length-1),i=t.x(w.x)-t.x(A.x)):i=x(o)/2,y=x(S)/x(o),a="translate("+i+",0) scale("+y+",1)",t.hideXGridFocus(),r.transition().ease("linear").duration(k).each(function(){T.add(t.axes.x.transition().call(t.xAxis)),T.add(L.transition().attr("transform",a)),T.add(N.transition().attr("transform",a)),T.add(P.transition().attr("transform",a)),T.add(I.transition().attr("transform",a)),T.add(z.transition().attr("transform",a)),T.add(O.filter(t.isRegionOnX).transition().attr("transform",a)),T.add(C.transition().attr("transform",a)),T.add(E.transition().attr("transform",a))}).call(T,function(){var e,r=[],i=[],a=[];if(_){for(e=0;e<_;e++)r.push("."+s.shape+"-"+(M+e)),i.push("."+s.text+"-"+(M+e)),a.push("."+s.eventRect+"-"+(M+e));t.svg.selectAll("."+s.shapes).selectAll(r).remove(),t.svg.selectAll("."+s.texts).selectAll(i).remove(),t.svg.selectAll("."+s.eventRects).selectAll(a).remove(),t.svg.select("."+s.xgrid).remove()}C.attr("transform",null).attr(t.xgridAttr),E.attr("transform",null),E.select("line").attr("x1",n.axis_rotated?0:m).attr("x2",n.axis_rotated?t.width:m),E.select("text").attr("x",n.axis_rotated?t.width:0).attr("y",m),L.attr("transform",null).attr("d",u),N.attr("transform",null).attr("d",d),P.attr("transform",null).attr("d",p),I.attr("transform",null).attr("cx",f).attr("cy",h),z.attr("transform",null).attr("x",g).attr("y",v).style("fill-opacity",t.opacityForText.bind(t)),O.attr("transform",null),O.select("rect").filter(t.isRegionOnX).attr("x",t.regionX.bind(t)).attr("width",t.regionWidth.bind(t)),n.interaction_enabled&&t.redrawEventRect(),$(),t.flowing=!1})}},T.focus=function(e){var t,n=this.internal;e=n.mapToTargetIds(e),t=n.svg.selectAll(n.selectorTargets(e.filter(n.isTargetToShow,n))),this.revert(),this.defocus(),t.classed(s.focused,!0).classed(s.defocused,!1),n.hasArcType()&&n.expandArc(e),n.toggleFocusLegend(e,!0),n.focusedTargetIds=e,n.defocusedTargetIds=n.defocusedTargetIds.filter(function(t){return e.indexOf(t)<0})},T.defocus=function(e){var t,n=this.internal;e=n.mapToTargetIds(e),t=n.svg.selectAll(n.selectorTargets(e.filter(n.isTargetToShow,n))),t.classed(s.focused,!1).classed(s.defocused,!0),n.hasArcType()&&n.unexpandArc(e),n.toggleFocusLegend(e,!1),n.focusedTargetIds=n.focusedTargetIds.filter(function(t){return e.indexOf(t)<0}),n.defocusedTargetIds=e},T.revert=function(e){var t,n=this.internal;e=n.mapToTargetIds(e),t=n.svg.selectAll(n.selectorTargets(e)),t.classed(s.focused,!1).classed(s.defocused,!1),n.hasArcType()&&n.unexpandArc(e),n.config.legend_show&&(n.showLegend(e.filter(n.isLegendToShow.bind(n))),n.legend.selectAll(n.selectorLegends(e)).filter(function(){return n.d3.select(this).classed(s.legendItemFocused)}).classed(s.legendItemFocused,!1)),n.focusedTargetIds=[],n.defocusedTargetIds=[]},T.xgrids=function(e){var t=this.internal,n=t.config;return e?(n.grid_x_lines=e,t.redrawWithoutRescale(),n.grid_x_lines):n.grid_x_lines},T.xgrids.add=function(e){var t=this.internal;return this.xgrids(t.config.grid_x_lines.concat(e||[]))},T.xgrids.remove=function(e){this.internal.removeGridLines(e,!0)},T.ygrids=function(e){var t=this.internal,n=t.config;return e?(n.grid_y_lines=e,t.redrawWithoutRescale(),n.grid_y_lines):n.grid_y_lines},T.ygrids.add=function(e){var t=this.internal;return this.ygrids(t.config.grid_y_lines.concat(e||[]))},T.ygrids.remove=function(e){this.internal.removeGridLines(e,!1)},T.groups=function(e){var t=this.internal,n=t.config;return g(e)?n.data_groups:(n.data_groups=e,t.redraw(),n.data_groups)},T.legend=function(){},T.legend.show=function(e){var t=this.internal;t.showLegend(t.mapToTargetIds(e)),t.updateAndRedraw({withLegend:!0})},T.legend.hide=function(e){var t=this.internal;t.hideLegend(t.mapToTargetIds(e)),t.updateAndRedraw({withLegend:!0})},T.load=function(e){var t=this.internal,n=t.config;if(e.xs&&t.addXs(e.xs),"names"in e&&T.data.names.bind(this)(e.names),"classes"in e&&Object.keys(e.classes).forEach(function(t){n.data_classes[t]=e.classes[t]}),"categories"in e&&t.isCategorized()&&(n.axis_x_categories=e.categories),"axes"in e&&Object.keys(e.axes).forEach(function(t){n.data_axes[t]=e.axes[t]}),"colors"in e&&Object.keys(e.colors).forEach(function(t){n.data_colors[t]=e.colors[t]}),"cacheIds"in e&&t.hasCaches(e.cacheIds))return void t.load(t.getCaches(e.cacheIds),e.done);"unload"in e?t.unload(t.mapToTargetIds("boolean"==typeof e.unload&&e.unload?null:e.unload),function(){t.loadFromArgs(e)}):t.loadFromArgs(e)},T.unload=function(e){var t=this.internal;e=e||{},e instanceof Array?e={ids:e}:"string"==typeof e&&(e={ids:[e]}),t.unload(t.mapToTargetIds(e.ids),function(){t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),e.done&&e.done()})},T.regions=function(e){var t=this.internal,n=t.config;return e?(n.regions=e,t.redrawWithoutRescale(),n.regions):n.regions},T.regions.add=function(e){var t=this.internal,n=t.config;return e?(n.regions=n.regions.concat(e),t.redrawWithoutRescale(),n.regions):n.regions},T.regions.remove=function(e){var t,n,r,i=this.internal,a=i.config;return e=e||{},t=i.getOption(e,"duration",a.transition_duration),n=i.getOption(e,"classes",[s.region]),r=i.main.select("."+s.regions).selectAll(n.map(function(e){return"."+e})),(t?r.transition().duration(t):r).style("opacity",0).remove(),a.regions=a.regions.filter(function(e){var t=!1;return!e.class||(e.class.split(" ").forEach(function(e){n.indexOf(e)>=0&&(t=!0)}),!t)}),a.regions},T.selected=function(e){var t=this.internal,n=t.d3;return n.merge(t.main.selectAll("."+s.shapes+t.getTargetSelectorSuffix(e)).selectAll("."+s.shape).filter(function(){return n.select(this).classed(s.SELECTED)}).map(function(e){return e.map(function(e){var t=e.__data__;return t.data?t.data:t})}))},T.select=function(e,t,n){var r=this.internal,i=r.d3,a=r.config;a.data_selection_enabled&&r.main.selectAll("."+s.shapes).selectAll("."+s.shape).each(function(o,c){var l=i.select(this),u=o.data?o.data.id:o.id,d=r.getToggle(this,o).bind(r),p=a.data_selection_grouped||!e||e.indexOf(u)>=0,f=!t||t.indexOf(c)>=0,h=l.classed(s.SELECTED);l.classed(s.line)||l.classed(s.area)||(p&&f?a.data_selection_isselectable(o)&&!h&&d(!0,l.classed(s.SELECTED,!0),o,c):v(n)&&n&&h&&d(!1,l.classed(s.SELECTED,!1),o,c))})},T.unselect=function(e,t){var n=this.internal,r=n.d3,i=n.config;i.data_selection_enabled&&n.main.selectAll("."+s.shapes).selectAll("."+s.shape).each(function(a,o){var c=r.select(this),l=a.data?a.data.id:a.id,u=n.getToggle(this,a).bind(n),d=i.data_selection_grouped||!e||e.indexOf(l)>=0,p=!t||t.indexOf(o)>=0,f=c.classed(s.SELECTED);c.classed(s.line)||c.classed(s.area)||d&&p&&i.data_selection_isselectable(a)&&f&&u(!1,c.classed(s.SELECTED,!1),a,o)})},T.show=function(e,t){var n,r=this.internal;e=r.mapToTargetIds(e),t=t||{},r.removeHiddenTargetIds(e),n=r.svg.selectAll(r.selectorTargets(e)),n.transition().style("opacity",1,"important").call(r.endall,function(){n.style("opacity",null).style("opacity",1)}),t.withLegend&&r.showLegend(e),r.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0})},T.hide=function(e,t){var n,r=this.internal;e=r.mapToTargetIds(e),t=t||{},r.addHiddenTargetIds(e),n=r.svg.selectAll(r.selectorTargets(e)),n.transition().style("opacity",0,"important").call(r.endall,function(){n.style("opacity",null).style("opacity",0)}),t.withLegend&&r.hideLegend(e),r.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0})},T.toggle=function(e,t){var n=this,r=this.internal;r.mapToTargetIds(e).forEach(function(e){r.isTargetToShow(e)?n.hide(e,t):n.show(e,t)})},T.tooltip=function(){},T.tooltip.show=function(e){var t,n,r=this.internal;e.mouse&&(n=e.mouse),e.data?r.isMultipleX()?(n=[r.x(e.data.x),r.getYScale(e.data.id)(e.data.value)],t=null):t=p(e.data.index)?e.data.index:r.getIndexByX(e.data.x):void 0!==e.x?t=r.getIndexByX(e.x):void 0!==e.index&&(t=e.index),r.dispatchEvent("mouseover",t,n),r.dispatchEvent("mousemove",t,n),r.config.tooltip_onshow.call(r,e.data)},T.tooltip.hide=function(){this.internal.dispatchEvent("mouseout",0),this.internal.config.tooltip_onhide.call(this)},T.transform=function(e,t){var n=this.internal,r=["pie","donut"].indexOf(e)>=0?{withTransform:!0}:null;n.transformTo(t,e,r)},C.transformTo=function(e,t,n){var r=this,i=!r.hasArcType(),a=n||{withTransitionForAxis:i};a.withTransitionForTransform=!1,r.transiting=!1,r.setTargetType(e,t),r.updateTargets(r.data.targets),r.updateAndRedraw(a)},T.x=function(e){var t=this.internal;return arguments.length&&(t.updateTargetX(t.data.targets,e),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),t.data.xs},T.xs=function(e){var t=this.internal;return arguments.length&&(t.updateTargetXs(t.data.targets,e),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),t.data.xs},T.zoom=function(e){var t=this.internal;return e&&(t.isTimeSeries()&&(e=e.map(function(e){return t.parseDate(e)})),t.brush.extent(e),t.redraw({withUpdateXDomain:!0,withY:t.config.zoom_rescale}),t.config.zoom_onzoom.call(this,t.x.orgDomain())),t.brush.extent()},T.zoom.enable=function(e){var t=this.internal;t.config.zoom_enabled=e,t.updateAndRedraw()},T.unzoom=function(){var e=this.internal;e.brush.clear().update(),e.redraw({withUpdateXDomain:!0})},T.zoom.max=function(e){var t=this.internal,n=t.config,r=t.d3;if(0!==e&&!e)return n.zoom_x_max;n.zoom_x_max=r.max([t.orgXDomain[1],e])},T.zoom.min=function(e){var t=this.internal,n=t.config,r=t.d3;if(0!==e&&!e)return n.zoom_x_min;n.zoom_x_min=r.min([t.orgXDomain[0],e])},T.zoom.range=function(e){if(!arguments.length)return{max:this.domain.max(),min:this.domain.min()};v(e.max)&&this.domain.max(e.max),v(e.min)&&this.domain.min(e.min)},C.initPie=function(){var e=this,t=e.d3;e.pie=t.layout.pie().value(function(e){return e.values.reduce(function(e,t){return e+t.value},0)}),e.pie.sort(e.getOrderFunction()||null)},C.updateRadius=function(){var e=this,t=e.config,n=t.gauge_width||t.donut_width;e.radiusExpanded=Math.min(e.arcWidth,e.arcHeight)/2,e.radius=.95*e.radiusExpanded,e.innerRadiusRatio=n?(e.radius-n)/e.radius:.6,e.innerRadius=e.hasType("donut")||e.hasType("gauge")?e.radius*e.innerRadiusRatio:0},C.updateArc=function(){var e=this;e.svgArc=e.getSvgArc(),e.svgArcExpanded=e.getSvgArcExpanded(),e.svgArcExpandedSub=e.getSvgArcExpanded(.98)},C.updateAngle=function(e){var t,n,r,i,a=this,o=a.config,s=!1,c=0;return o?(a.pie(a.filterTargetsToShow(a.data.targets)).forEach(function(t){s||t.data.id!==e.data.id||(s=!0,e=t,
43e.index=c),c++}),isNaN(e.startAngle)&&(e.startAngle=0),isNaN(e.endAngle)&&(e.endAngle=e.startAngle),a.isGaugeType(e.data)&&(t=o.gauge_min,n=o.gauge_max,r=Math.PI*(o.gauge_fullCircle?2:1)/(n-t),i=e.value<t?0:e.value<n?e.value-t:n-t,e.startAngle=o.gauge_startingAngle,e.endAngle=e.startAngle+r*i),s?e:null):null},C.getSvgArc=function(){var e=this,t=e.d3.svg.arc().outerRadius(e.radius).innerRadius(e.innerRadius),n=function(n,r){var i;return r?t(n):(i=e.updateAngle(n),i?t(i):"M 0 0")};return n.centroid=t.centroid,n},C.getSvgArcExpanded=function(e){var t=this,n=t.d3.svg.arc().outerRadius(t.radiusExpanded*(e||1)).innerRadius(t.innerRadius);return function(e){var r=t.updateAngle(e);return r?n(r):"M 0 0"}},C.getArc=function(e,t,n){return n||this.isArcType(e.data)?this.svgArc(e,t):"M 0 0"},C.transformForArcLabel=function(e){var t,n,r,i,a,o=this,s=o.config,c=o.updateAngle(e),l="";return c&&!o.hasType("gauge")&&(t=this.svgArc.centroid(c),n=isNaN(t[0])?0:t[0],r=isNaN(t[1])?0:t[1],i=Math.sqrt(n*n+r*r),a=o.hasType("donut")&&s.donut_label_ratio?f(s.donut_label_ratio)?s.donut_label_ratio(e,o.radius,i):s.donut_label_ratio:o.hasType("pie")&&s.pie_label_ratio?f(s.pie_label_ratio)?s.pie_label_ratio(e,o.radius,i):s.pie_label_ratio:o.radius&&i?(36/o.radius>.375?1.175-36/o.radius:.8)*o.radius/i:0,l="translate("+n*a+","+r*a+")"),l},C.getArcRatio=function(e){var t=this,n=t.config,r=Math.PI*(t.hasType("gauge")&&!n.gauge_fullCircle?1:2);return e?(e.endAngle-e.startAngle)/r:null},C.convertToArcData=function(e){return this.addName({id:e.data.id,value:e.value,ratio:this.getArcRatio(e),index:e.index})},C.textForArcLabel=function(e){var t,n,r,i,a,o=this;return o.shouldShowArcLabel()?(t=o.updateAngle(e),n=t?t.value:null,r=o.getArcRatio(t),i=e.data.id,o.hasType("gauge")||o.meetsArcLabelThreshold(r)?(a=o.getArcLabelFormat(),a?a(n,r,i):o.defaultArcValueFormat(n,r)):""):""},C.textForGaugeMinMax=function(e,t){var n=this,r=n.getGaugeLabelExtents();return r?r(e,t):e},C.expandArc=function(e){var t,n=this;if(n.transiting)return void(t=window.setInterval(function(){n.transiting||(window.clearInterval(t),n.legend.selectAll(".c3-legend-item-focused").size()>0&&n.expandArc(e))},10));e=n.mapToTargetIds(e),n.svg.selectAll(n.selectorTargets(e,"."+s.chartArc)).each(function(e){n.shouldExpand(e.data.id)&&n.d3.select(this).selectAll("path").transition().duration(n.expandDuration(e.data.id)).attr("d",n.svgArcExpanded).transition().duration(2*n.expandDuration(e.data.id)).attr("d",n.svgArcExpandedSub).each(function(e){n.isDonutType(e.data)})})},C.unexpandArc=function(e){var t=this;t.transiting||(e=t.mapToTargetIds(e),t.svg.selectAll(t.selectorTargets(e,"."+s.chartArc)).selectAll("path").transition().duration(function(e){return t.expandDuration(e.data.id)}).attr("d",t.svgArc),t.svg.selectAll("."+s.arc))},C.expandDuration=function(e){var t=this,n=t.config;return t.isDonutType(e)?n.donut_expand_duration:t.isGaugeType(e)?n.gauge_expand_duration:t.isPieType(e)?n.pie_expand_duration:50},C.shouldExpand=function(e){var t=this,n=t.config;return t.isDonutType(e)&&n.donut_expand||t.isGaugeType(e)&&n.gauge_expand||t.isPieType(e)&&n.pie_expand},C.shouldShowArcLabel=function(){var e=this,t=e.config,n=!0;return e.hasType("donut")?n=t.donut_label_show:e.hasType("pie")&&(n=t.pie_label_show),n},C.meetsArcLabelThreshold=function(e){var t=this,n=t.config;return e>=(t.hasType("donut")?n.donut_label_threshold:n.pie_label_threshold)},C.getArcLabelFormat=function(){var e=this,t=e.config,n=t.pie_label_format;return e.hasType("gauge")?n=t.gauge_label_format:e.hasType("donut")&&(n=t.donut_label_format),n},C.getGaugeLabelExtents=function(){return this.config.gauge_label_extents},C.getArcTitle=function(){var e=this;return e.hasType("donut")?e.config.donut_title:""},C.updateTargetsForArc=function(e){var t,n,r=this,i=r.main,a=r.classChartArc.bind(r),o=r.classArcs.bind(r),c=r.classFocus.bind(r);t=i.select("."+s.chartArcs).selectAll("."+s.chartArc).data(r.pie(e)).attr("class",function(e){return a(e)+c(e.data)}),n=t.enter().append("g").attr("class",a),n.append("g").attr("class",o),n.append("text").attr("dy",r.hasType("gauge")?"-.1em":".35em").style("opacity",0).style("text-anchor","middle").style("pointer-events","none")},C.initArc=function(){var e=this;e.arcs=e.main.select("."+s.chart).append("g").attr("class",s.chartArcs).attr("transform",e.getTranslate("arc")),e.arcs.append("text").attr("class",s.chartArcsTitle).style("text-anchor","middle").text(e.getArcTitle())},C.redrawArc=function(e,t,n){var r,i=this,a=i.d3,o=i.config,c=i.main;r=c.selectAll("."+s.arcs).selectAll("."+s.arc).data(i.arcData.bind(i)),r.enter().append("path").attr("class",i.classArc.bind(i)).style("fill",function(e){return i.color(e.data)}).style("cursor",function(e){return o.interaction_enabled&&o.data_selection_isselectable(e)?"pointer":null}).each(function(e){i.isGaugeType(e.data)&&(e.startAngle=e.endAngle=o.gauge_startingAngle),this._current=e}),r.attr("transform",function(e){return!i.isGaugeType(e.data)&&n?"scale(0)":""}).on("mouseover",o.interaction_enabled?function(e){var t,n;i.transiting||(t=i.updateAngle(e))&&(n=i.convertToArcData(t),i.expandArc(t.data.id),i.api.focus(t.data.id),i.toggleFocusLegend(t.data.id,!0),i.config.data_onmouseover(n,this))}:null).on("mousemove",o.interaction_enabled?function(e){var t,n,r=i.updateAngle(e);r&&(t=i.convertToArcData(r),n=[t],i.showTooltip(n,this))}:null).on("mouseout",o.interaction_enabled?function(e){var t,n;i.transiting||(t=i.updateAngle(e))&&(n=i.convertToArcData(t),i.unexpandArc(t.data.id),i.api.revert(),i.revertLegend(),i.hideTooltip(),i.config.data_onmouseout(n,this))}:null).on("click",o.interaction_enabled?function(e,t){var n,r=i.updateAngle(e);r&&(n=i.convertToArcData(r),i.toggleShape&&i.toggleShape(this,n,t),i.config.data_onclick.call(i.api,n,this))}:null).each(function(){i.transiting=!0}).transition().duration(e).attrTween("d",function(e){var t,n=i.updateAngle(e);return n?(isNaN(this._current.startAngle)&&(this._current.startAngle=0),isNaN(this._current.endAngle)&&(this._current.endAngle=this._current.startAngle),t=a.interpolate(this._current,n),this._current=t(0),function(n){var r=t(n);return r.data=e.data,i.getArc(r,!0)}):function(){return"M 0 0"}}).attr("transform",n?"scale(1)":"").style("fill",function(e){return i.levelColor?i.levelColor(e.data.values[0].value):i.color(e.data.id)}).call(i.endall,function(){i.transiting=!1}),r.exit().transition().duration(t).style("opacity",0).remove(),c.selectAll("."+s.chartArc).select("text").style("opacity",0).attr("class",function(e){return i.isGaugeType(e.data)?s.gaugeValue:""}).text(i.textForArcLabel.bind(i)).attr("transform",i.transformForArcLabel.bind(i)).style("font-size",function(e){return i.isGaugeType(e.data)?Math.round(i.radius/5)+"px":""}).transition().duration(e).style("opacity",function(e){return i.isTargetToShow(e.data.id)&&i.isArcType(e.data)?1:0}),c.select("."+s.chartArcsTitle).style("opacity",i.hasType("donut")||i.hasType("gauge")?1:0),i.hasType("gauge")&&(i.arcs.select("."+s.chartArcsBackground).attr("d",function(){var e={data:[{value:o.gauge_max}],startAngle:o.gauge_startingAngle,endAngle:-1*o.gauge_startingAngle};return i.getArc(e,!0,!0)}),i.arcs.select("."+s.chartArcsGaugeUnit).attr("dy",".75em").text(o.gauge_label_show?o.gauge_units:""),i.arcs.select("."+s.chartArcsGaugeMin).attr("dx",-1*(i.innerRadius+(i.radius-i.innerRadius)/(o.gauge_fullCircle?1:2))+"px").attr("dy","1.2em").text(o.gauge_label_show?i.textForGaugeMinMax(o.gauge_min,!1):""),i.arcs.select("."+s.chartArcsGaugeMax).attr("dx",i.innerRadius+(i.radius-i.innerRadius)/(o.gauge_fullCircle?1:2)+"px").attr("dy","1.2em").text(o.gauge_label_show?i.textForGaugeMinMax(o.gauge_max,!0):""))},C.initGauge=function(){var e=this.arcs;this.hasType("gauge")&&(e.append("path").attr("class",s.chartArcsBackground),e.append("text").attr("class",s.chartArcsGaugeUnit).style("text-anchor","middle").style("pointer-events","none"),e.append("text").attr("class",s.chartArcsGaugeMin).style("text-anchor","middle").style("pointer-events","none"),e.append("text").attr("class",s.chartArcsGaugeMax).style("text-anchor","middle").style("pointer-events","none"))},C.getGaugeLabelHeight=function(){return this.config.gauge_label_show?20:0},C.hasCaches=function(e){for(var t=0;t<e.length;t++)if(!(e[t]in this.cache))return!1;return!0},C.addCache=function(e,t){this.cache[e]=this.cloneTarget(t)},C.getCaches=function(e){var t,n=[];for(t=0;t<e.length;t++)e[t]in this.cache&&n.push(this.cloneTarget(this.cache[e[t]]));return n},C.categoryName=function(e){var t=this.config;return e<t.axis_x_categories.length?t.axis_x_categories[e]:e},C.generateClass=function(e,t){return" "+e+" "+e+this.getTargetSelectorSuffix(t)},C.classText=function(e){return this.generateClass(s.text,e.index)},C.classTexts=function(e){return this.generateClass(s.texts,e.id)},C.classShape=function(e){return this.generateClass(s.shape,e.index)},C.classShapes=function(e){return this.generateClass(s.shapes,e.id)},C.classLine=function(e){return this.classShape(e)+this.generateClass(s.line,e.id)},C.classLines=function(e){return this.classShapes(e)+this.generateClass(s.lines,e.id)},C.classCircle=function(e){return this.classShape(e)+this.generateClass(s.circle,e.index)},C.classCircles=function(e){return this.classShapes(e)+this.generateClass(s.circles,e.id)},C.classBar=function(e){return this.classShape(e)+this.generateClass(s.bar,e.index)},C.classBars=function(e){return this.classShapes(e)+this.generateClass(s.bars,e.id)},C.classArc=function(e){return this.classShape(e.data)+this.generateClass(s.arc,e.data.id)},C.classArcs=function(e){return this.classShapes(e.data)+this.generateClass(s.arcs,e.data.id)},C.classArea=function(e){return this.classShape(e)+this.generateClass(s.area,e.id)},C.classAreas=function(e){return this.classShapes(e)+this.generateClass(s.areas,e.id)},C.classRegion=function(e,t){return this.generateClass(s.region,t)+" "+("class"in e?e.class:"")},C.classEvent=function(e){return this.generateClass(s.eventRect,e.index)},C.classTarget=function(e){var t=this,n=t.config.data_classes[e],r="";return n&&(r=" "+s.target+"-"+n),t.generateClass(s.target,e)+r},C.classFocus=function(e){return this.classFocused(e)+this.classDefocused(e)},C.classFocused=function(e){return" "+(this.focusedTargetIds.indexOf(e.id)>=0?s.focused:"")},C.classDefocused=function(e){return" "+(this.defocusedTargetIds.indexOf(e.id)>=0?s.defocused:"")},C.classChartText=function(e){return s.chartText+this.classTarget(e.id)},C.classChartLine=function(e){return s.chartLine+this.classTarget(e.id)},C.classChartBar=function(e){return s.chartBar+this.classTarget(e.id)},C.classChartArc=function(e){return s.chartArc+this.classTarget(e.data.id)},C.getTargetSelectorSuffix=function(e){return e||0===e?("-"+e).replace(/[\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\]/g,"-"):""},C.selectorTarget=function(e,t){return(t||"")+"."+s.target+this.getTargetSelectorSuffix(e)},C.selectorTargets=function(e,t){var n=this;return e=e||[],e.length?e.map(function(e){return n.selectorTarget(e,t)}):null},C.selectorLegend=function(e){return"."+s.legendItem+this.getTargetSelectorSuffix(e)},C.selectorLegends=function(e){var t=this;return e&&e.length?e.map(function(e){return t.selectorLegend(e)}):null},C.getClipPath=function(e){return"url("+(window.navigator.appVersion.toLowerCase().indexOf("msie 9.")>=0?"":document.URL.split("#")[0])+"#"+e+")"},C.appendClip=function(e,t){return e.append("clipPath").attr("id",t).append("rect")},C.getAxisClipX=function(e){var t=Math.max(30,this.margin.left);return e?-(1+t):-(t-1)},C.getAxisClipY=function(e){return e?-20:-this.margin.top},C.getXAxisClipX=function(){var e=this;return e.getAxisClipX(!e.config.axis_rotated)},C.getXAxisClipY=function(){var e=this;return e.getAxisClipY(!e.config.axis_rotated)},C.getYAxisClipX=function(){var e=this;return e.config.axis_y_inner?-1:e.getAxisClipX(e.config.axis_rotated)},C.getYAxisClipY=function(){var e=this;return e.getAxisClipY(e.config.axis_rotated)},C.getAxisClipWidth=function(e){var t=this,n=Math.max(30,t.margin.left),r=Math.max(30,t.margin.right);return e?t.width+2+n+r:t.margin.left+20},C.getAxisClipHeight=function(e){return(e?this.margin.bottom:this.margin.top+this.height)+20},C.getXAxisClipWidth=function(){var e=this;return e.getAxisClipWidth(!e.config.axis_rotated)},C.getXAxisClipHeight=function(){var e=this;return e.getAxisClipHeight(!e.config.axis_rotated)},C.getYAxisClipWidth=function(){var e=this;return e.getAxisClipWidth(e.config.axis_rotated)+(e.config.axis_y_inner?20:0)},C.getYAxisClipHeight=function(){var e=this;return e.getAxisClipHeight(e.config.axis_rotated)},C.generateColor=function(){var e=this,t=e.config,n=e.d3,r=t.data_colors,i=_(t.color_pattern)?t.color_pattern:n.scale.category10().range(),a=t.data_color,o=[];return function(e){var t,n=e.id||e.data&&e.data.id||e;return r[n]instanceof Function?t=r[n](e):r[n]?t=r[n]:(o.indexOf(n)<0&&o.push(n),t=i[o.indexOf(n)%i.length],r[n]=t),a instanceof Function?a(t,e):t}},C.generateLevelColor=function(){var e=this,t=e.config,n=t.color_pattern,r=t.color_threshold,i="value"===r.unit,a=r.values&&r.values.length?r.values:[],o=r.max||100;return _(t.color_threshold)?function(e){var t,r=n[n.length-1];for(t=0;t<a.length;t++)if((i?e:100*e/o)<a[t]){r=n[t];break}return r}:null},C.getDefaultConfig=function(){var e={bindto:"#chart",svg_classname:void 0,size_width:void 0,size_height:void 0,padding_left:void 0,padding_right:void 0,padding_top:void 0,padding_bottom:void 0,resize_auto:!0,zoom_enabled:!1,zoom_extent:void 0,zoom_privileged:!1,zoom_rescale:!1,zoom_onzoom:function(){},zoom_onzoomstart:function(){},zoom_onzoomend:function(){},zoom_x_min:void 0,zoom_x_max:void 0,interaction_brighten:!0,interaction_enabled:!0,onmouseover:function(){},onmouseout:function(){},onresize:function(){},onresized:function(){},oninit:function(){},onrendered:function(){},transition_duration:350,data_x:void 0,data_xs:{},data_xFormat:"%Y-%m-%d",data_xLocaltime:!0,data_xSort:!0,data_idConverter:function(e){return e},data_names:{},data_classes:{},data_groups:[],data_axes:{},data_type:void 0,data_types:{},data_labels:{},data_order:"desc",data_regions:{},data_color:void 0,data_colors:{},data_hide:!1,data_filter:void 0,data_selection_enabled:!1,data_selection_grouped:!1,data_selection_isselectable:function(){return!0},data_selection_multiple:!0,data_selection_draggable:!1,data_onclick:function(){},data_onmouseover:function(){},data_onmouseout:function(){},data_onselected:function(){},data_onunselected:function(){},data_url:void 0,data_headers:void 0,data_json:void 0,data_rows:void 0,data_columns:void 0,data_mimeType:void 0,data_keys:void 0,data_empty_label_text:"",subchart_show:!1,subchart_size_height:60,subchart_axis_x_show:!0,subchart_onbrush:function(){},color_pattern:[],color_threshold:{},legend_show:!0,legend_hide:!1,legend_position:"bottom",legend_inset_anchor:"top-left",legend_inset_x:10,legend_inset_y:0,legend_inset_step:void 0,legend_item_onclick:void 0,legend_item_onmouseover:void 0,legend_item_onmouseout:void 0,legend_equally:!1,legend_padding:0,legend_item_tile_width:10,legend_item_tile_height:10,axis_rotated:!1,axis_x_show:!0,axis_x_type:"indexed",axis_x_localtime:!0,axis_x_categories:[],axis_x_tick_centered:!1,axis_x_tick_format:void 0,axis_x_tick_culling:{},axis_x_tick_culling_max:10,axis_x_tick_count:void 0,axis_x_tick_fit:!0,axis_x_tick_values:null,axis_x_tick_rotate:0,axis_x_tick_outer:!0,axis_x_tick_multiline:!0,axis_x_tick_width:null,axis_x_max:void 0,axis_x_min:void 0,axis_x_padding:{},axis_x_height:void 0,axis_x_extent:void 0,axis_x_label:{},axis_y_show:!0,axis_y_type:void 0,axis_y_max:void 0,axis_y_min:void 0,axis_y_inverted:!1,axis_y_center:void 0,axis_y_inner:void 0,axis_y_label:{},axis_y_tick_format:void 0,axis_y_tick_outer:!0,axis_y_tick_values:null,axis_y_tick_rotate:0,axis_y_tick_count:void 0,axis_y_tick_time_value:void 0,axis_y_tick_time_interval:void 0,axis_y_padding:{},axis_y_default:void 0,axis_y2_show:!1,axis_y2_max:void 0,axis_y2_min:void 0,axis_y2_inverted:!1,axis_y2_center:void 0,axis_y2_inner:void 0,axis_y2_label:{},axis_y2_tick_format:void 0,axis_y2_tick_outer:!0,axis_y2_tick_values:null,axis_y2_tick_count:void 0,axis_y2_padding:{},axis_y2_default:void 0,grid_x_show:!1,grid_x_type:"tick",grid_x_lines:[],grid_y_show:!1,grid_y_lines:[],grid_y_ticks:10,grid_focus_show:!0,grid_lines_front:!0,point_show:!0,point_r:2.5,point_sensitivity:10,point_focus_expand_enabled:!0,point_focus_expand_r:void 0,point_select_r:void 0,line_connectNull:!1,line_step_type:"step",bar_width:void 0,bar_width_ratio:.6,bar_width_max:void 0,bar_zerobased:!0,bar_space:0,area_zerobased:!0,area_above:!1,pie_label_show:!0,pie_label_format:void 0,pie_label_threshold:.05,pie_label_ratio:void 0,pie_expand:{},pie_expand_duration:50,gauge_fullCircle:!1,gauge_label_show:!0,gauge_label_format:void 0,gauge_min:0,gauge_max:100,gauge_startingAngle:-1*Math.PI/2,gauge_label_extents:void 0,gauge_units:void 0,gauge_width:void 0,gauge_expand:{},gauge_expand_duration:50,donut_label_show:!0,donut_label_format:void 0,donut_label_threshold:.05,donut_label_ratio:void 0,donut_width:void 0,donut_title:"",donut_expand:{},donut_expand_duration:50,spline_interpolation_type:"cardinal",regions:[],tooltip_show:!0,tooltip_grouped:!0,tooltip_order:void 0,tooltip_format_title:void 0,tooltip_format_name:void 0,tooltip_format_value:void 0,tooltip_position:void 0,tooltip_contents:function(e,t,n,r){return this.getTooltipContent?this.getTooltipContent(e,t,n,r):""},tooltip_init_show:!1,tooltip_init_x:0,tooltip_init_position:{top:"0px",left:"50px"},tooltip_onshow:function(){},tooltip_onhide:function(){},title_text:void 0,title_padding:{top:0,right:0,bottom:0,left:0},title_position:"top-center"};return Object.keys(this.additionalConfig).forEach(function(t){e[t]=this.additionalConfig[t]},this),e},C.additionalConfig={},C.loadConfig=function(e){function t(){var e=r.shift();return e&&n&&"object"===(void 0===n?"undefined":c(n))&&e in n?(n=n[e],t()):e?void 0:n}var n,r,i,a=this.config;Object.keys(a).forEach(function(o){n=e,r=o.split("_"),i=t(),v(i)&&(a[o]=i)})},C.convertUrlToData=function(e,t,n,r,i){var a=this,o=t||"csv",s=a.d3.xhr(e);n&&Object.keys(n).forEach(function(e){s.header(e,n[e])}),s.get(function(e,t){var n,s=t.response||t.responseText;if(!t)throw new Error(e.responseURL+" "+e.status+" ("+e.statusText+")");n="json"===o?a.convertJsonToData(JSON.parse(s),r):"tsv"===o?a.convertTsvToData(s):a.convertCsvToData(s),i.call(a,n)})},C.convertXsvToData=function(e,t){var n,r=t.parseRows(e);return 1===r.length?(n=[{}],r[0].forEach(function(e){n[0][e]=null})):n=t.parse(e),n},C.convertCsvToData=function(e){return this.convertXsvToData(e,this.d3.csv)},C.convertTsvToData=function(e){return this.convertXsvToData(e,this.d3.tsv)},C.convertJsonToData=function(e,t){var n,r,i=this,a=[];return t?(t.x?(n=t.value.concat(t.x),i.config.data_x=t.x):n=t.value,a.push(n),e.forEach(function(e){var t=[];n.forEach(function(n){var r=i.findValueInJson(e,n);g(r)&&(r=null),t.push(r)}),a.push(t)}),r=i.convertRowsToData(a)):(Object.keys(e).forEach(function(t){a.push([t].concat(e[t]))}),r=i.convertColumnsToData(a)),r},C.findValueInJson=function(e,t){t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");for(var n=t.split("."),r=0;r<n.length;++r){var i=n[r];if(!(i in e))return;e=e[i]}return e},C.convertRowsToData=function(e){for(var t=[],n=e[0],r=1;r<e.length;r++){for(var i={},a=0;a<e[r].length;a++){if(g(e[r][a]))throw new Error("Source data is missing a component at ("+r+","+a+")!");i[n[a]]=e[r][a]}t.push(i)}return t},C.convertColumnsToData=function(e){for(var t=[],n=0;n<e.length;n++)for(var r=e[n][0],i=1;i<e[n].length;i++){if(g(t[i-1])&&(t[i-1]={}),g(e[n][i]))throw new Error("Source data is missing a component at ("+n+","+i+")!");t[i-1][r]=e[n][i]}return t},C.convertDataToTargets=function(e,t){var n,r=this,i=r.config,a=r.d3.keys(e[0]).filter(r.isNotX,r),o=r.d3.keys(e[0]).filter(r.isX,r);return a.forEach(function(n){var a=r.getXKey(n);r.isCustomX()||r.isTimeSeries()?o.indexOf(a)>=0?r.data.xs[n]=(t&&r.data.xs[n]?r.data.xs[n]:[]).concat(e.map(function(e){return e[a]}).filter(p).map(function(e,t){return r.generateTargetX(e,n,t)})):i.data_x?r.data.xs[n]=r.getOtherTargetXs():_(i.data_xs)&&(r.data.xs[n]=r.getXValuesOfXKey(a,r.data.targets)):r.data.xs[n]=e.map(function(e,t){return t})}),a.forEach(function(e){if(!r.data.xs[e])throw new Error('x is not defined for id = "'+e+'".')}),n=a.map(function(t,n){var a=i.data_idConverter(t);return{id:a,id_org:t,values:e.map(function(e,o){var s,c=r.getXKey(t),l=e[c],u=null===e[t]||isNaN(e[t])?null:+e[t];return r.isCustomX()&&r.isCategorized()&&!g(l)?(0===n&&0===o&&(i.axis_x_categories=[]),-1===(s=i.axis_x_categories.indexOf(l))&&(s=i.axis_x_categories.length,i.axis_x_categories.push(l))):s=r.generateTargetX(l,t,o),(g(e[t])||r.data.xs[t].length<=o)&&(s=void 0),{x:s,value:u,id:a}}).filter(function(e){return v(e.x)})}}),n.forEach(function(e){var t;i.data_xSort&&(e.values=e.values.sort(function(e,t){return(e.x||0===e.x?e.x:1/0)-(t.x||0===t.x?t.x:1/0)})),t=0,e.values.forEach(function(e){e.index=t++}),r.data.xs[e.id].sort(function(e,t){return e-t})}),r.hasNegativeValue=r.hasNegativeValueInTargets(n),r.hasPositiveValue=r.hasPositiveValueInTargets(n),i.data_type&&r.setTargetType(r.mapToIds(n).filter(function(e){return!(e in i.data_types)}),i.data_type),n.forEach(function(e){r.addCache(e.id_org,e)}),n},C.isX=function(e){var t=this,n=t.config;return n.data_x&&e===n.data_x||_(n.data_xs)&&A(n.data_xs,e)},C.isNotX=function(e){return!this.isX(e)},C.getXKey=function(e){var t=this,n=t.config;return n.data_x?n.data_x:_(n.data_xs)?n.data_xs[e]:null},C.getXValuesOfXKey=function(e,t){var n,r=this;return(t&&_(t)?r.mapToIds(t):[]).forEach(function(t){r.getXKey(t)===e&&(n=r.data.xs[t])}),n},C.getIndexByX=function(e){var t=this,n=t.filterByX(t.data.targets,e);return n.length?n[0].index:null},C.getXValue=function(e,t){var n=this;return e in n.data.xs&&n.data.xs[e]&&p(n.data.xs[e][t])?n.data.xs[e][t]:t},C.getOtherTargetXs=function(){var e=this,t=Object.keys(e.data.xs);return t.length?e.data.xs[t[0]]:null},C.getOtherTargetX=function(e){var t=this.getOtherTargetXs();return t&&e<t.length?t[e]:null},C.addXs=function(e){var t=this;Object.keys(e).forEach(function(n){t.config.data_xs[n]=e[n]})},C.hasMultipleX=function(e){return this.d3.set(Object.keys(e).map(function(t){return e[t]})).size()>1},C.isMultipleX=function(){return _(this.config.data_xs)||!this.config.data_xSort||this.hasType("scatter")},C.addName=function(e){var t,n=this;return e&&(t=n.config.data_names[e.id],e.name=void 0!==t?t:e.id),e},C.getValueOnIndex=function(e,t){var n=e.filter(function(e){return e.index===t});return n.length?n[0]:null},C.updateTargetX=function(e,t){var n=this;e.forEach(function(e){e.values.forEach(function(r,i){r.x=n.generateTargetX(t[i],e.id,i)}),n.data.xs[e.id]=t})},C.updateTargetXs=function(e,t){var n=this;e.forEach(function(e){t[e.id]&&n.updateTargetX([e],t[e.id])})},C.generateTargetX=function(e,t,n){var r=this;return r.isTimeSeries()?e?r.parseDate(e):r.parseDate(r.getXValue(t,n)):r.isCustomX()&&!r.isCategorized()?p(e)?+e:r.getXValue(t,n):n},C.cloneTarget=function(e){return{id:e.id,id_org:e.id_org,values:e.values.map(function(e){return{x:e.x,value:e.value,id:e.id}})}},C.updateXs=function(){var e=this;e.data.targets.length&&(e.xs=[],e.data.targets[0].values.forEach(function(t){e.xs[t.index]=t.x}))},C.getPrevX=function(e){var t=this.xs[e-1];return void 0!==t?t:null},C.getNextX=function(e){var t=this.xs[e+1];return void 0!==t?t:null},C.getMaxDataCount=function(){var e=this;return e.d3.max(e.data.targets,function(e){return e.values.length})},C.getMaxDataCountTarget=function(e){var t,n=e.length,r=0;return n>1?e.forEach(function(e){e.values.length>r&&(t=e,r=e.values.length)}):t=n?e[0]:null,t},C.getEdgeX=function(e){var t=this;return e.length?[t.d3.min(e,function(e){return e.values[0].x}),t.d3.max(e,function(e){return e.values[e.values.length-1].x})]:[0,0]},C.mapToIds=function(e){return e.map(function(e){return e.id})},C.mapToTargetIds=function(e){var t=this;return e?[].concat(e):t.mapToIds(t.data.targets)},C.hasTarget=function(e,t){var n,r=this.mapToIds(e);for(n=0;n<r.length;n++)if(r[n]===t)return!0;return!1},C.isTargetToShow=function(e){return this.hiddenTargetIds.indexOf(e)<0},C.isLegendToShow=function(e){return this.hiddenLegendIds.indexOf(e)<0},C.filterTargetsToShow=function(e){var t=this;return e.filter(function(e){return t.isTargetToShow(e.id)})},C.mapTargetsToUniqueXs=function(e){var t=this,n=t.d3.set(t.d3.merge(e.map(function(e){return e.values.map(function(e){return+e.x})}))).values();return n=t.isTimeSeries()?n.map(function(e){return new Date(+e)}):n.map(function(e){return+e}),n.sort(function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN})},C.addHiddenTargetIds=function(e){e=e instanceof Array?e:new Array(e);for(var t=0;t<e.length;t++)this.hiddenTargetIds.indexOf(e[t])<0&&(this.hiddenTargetIds=this.hiddenTargetIds.concat(e[t]))},C.removeHiddenTargetIds=function(e){this.hiddenTargetIds=this.hiddenTargetIds.filter(function(t){return e.indexOf(t)<0})},C.addHiddenLegendIds=function(e){e=e instanceof Array?e:new Array(e);for(var t=0;t<e.length;t++)this.hiddenLegendIds.indexOf(e[t])<0&&(this.hiddenLegendIds=this.hiddenLegendIds.concat(e[t]))},C.removeHiddenLegendIds=function(e){this.hiddenLegendIds=this.hiddenLegendIds.filter(function(t){return e.indexOf(t)<0})},C.getValuesAsIdKeyed=function(e){var t={};return e.forEach(function(e){t[e.id]=[],e.values.forEach(function(n){t[e.id].push(n.value)})}),t},C.checkValueInTargets=function(e,t){var n,r,i,a=Object.keys(e);for(n=0;n<a.length;n++)for(i=e[a[n]].values,r=0;r<i.length;r++)if(t(i[r].value))return!0;return!1},C.hasNegativeValueInTargets=function(e){return this.checkValueInTargets(e,function(e){return e<0})},C.hasPositiveValueInTargets=function(e){return this.checkValueInTargets(e,function(e){return e>0})},C.isOrderDesc=function(){var e=this.config;return"string"==typeof e.data_order&&"desc"===e.data_order.toLowerCase()},C.isOrderAsc=function(){var e=this.config;return"string"==typeof e.data_order&&"asc"===e.data_order.toLowerCase()},C.getOrderFunction=function(){var e=this,t=e.config,n=e.isOrderAsc(),r=e.isOrderDesc();if(n||r)return function(e,t){var n=function(e,t){return e+Math.abs(t.value)},i=e.values.reduce(n,0),a=t.values.reduce(n,0);return r?a-i:i-a};if(f(t.data_order))return t.data_order;if(h(t.data_order)){var i=t.data_order;return function(e,t){return i.indexOf(e.id)-i.indexOf(t.id)}}},C.orderTargets=function(e){var t=this.getOrderFunction();return t&&(e.sort(t),(this.isOrderAsc()||this.isOrderDesc())&&e.reverse()),e},C.filterByX=function(e,t){return this.d3.merge(e.map(function(e){return e.values})).filter(function(e){return e.x-t==0})},C.filterRemoveNull=function(e){return e.filter(function(e){return p(e.value)})},C.filterByXDomain=function(e,t){return e.map(function(e){return{id:e.id,id_org:e.id_org,values:e.values.filter(function(e){return t[0]<=e.x&&e.x<=t[1]})}})},C.hasDataLabel=function(){var e=this.config;return!("boolean"!=typeof e.data_labels||!e.data_labels)||!("object"!==c(e.data_labels)||!_(e.data_labels))},C.getDataLabelLength=function(e,t,n){var r=this,i=[0,0];return r.selectChart.select("svg").selectAll(".dummy").data([e,t]).enter().append("text").text(function(e){return r.dataLabelFormat(e.id)(e)}).each(function(e,t){i[t]=1.3*this.getBoundingClientRect()[n]}).remove(),i},C.isNoneArc=function(e){return this.hasTarget(this.data.targets,e.id)},C.isArc=function(e){return"data"in e&&this.hasTarget(this.data.targets,e.data.id)},C.findSameXOfValues=function(e,t){var n,r=e[t].x,i=[];for(n=t-1;n>=0&&r===e[n].x;n--)i.push(e[n]);for(n=t;n<e.length&&r===e[n].x;n++)i.push(e[n]);return i},C.findClosestFromTargets=function(e,t){var n,r=this;return n=e.map(function(e){return r.findClosest(e.values,t)}),r.findClosest(n,t)},C.findClosest=function(e,t){var n,r=this,i=r.config.point_sensitivity;return e.filter(function(e){return e&&r.isBarType(e.id)}).forEach(function(e){var t=r.main.select("."+s.bars+r.getTargetSelectorSuffix(e.id)+" ."+s.bar+"-"+e.index).node();!n&&r.isWithinBar(t)&&(n=e)}),e.filter(function(e){return e&&!r.isBarType(e.id)}).forEach(function(e){var a=r.dist(e,t);a<i&&(i=a,n=e)}),n},C.dist=function(e,t){var n=this,r=n.config,i=r.axis_rotated?1:0,a=r.axis_rotated?0:1,o=n.circleY(e,e.index),s=n.x(e.x);return Math.sqrt(Math.pow(s-t[i],2)+Math.pow(o-t[a],2))},C.convertValuesToStep=function(e){var t,n=[].concat(e);if(!this.isCategorized())return e;for(t=e.length+1;0<t;t--)n[t]=n[t-1];return n[0]={x:n[0].x-1,value:n[0].value,id:n[0].id},n[e.length+1]={x:n[e.length].x+1,value:n[e.length].value,id:n[e.length].id},n},C.updateDataAttributes=function(e,t){var n=this,r=n.config,i=r["data_"+e];return void 0===t?i:(Object.keys(t).forEach(function(e){i[e]=t[e]}),n.redraw({withLegend:!0}),i)},C.load=function(e,t){var n=this;e&&(t.filter&&(e=e.filter(t.filter)),(t.type||t.types)&&e.forEach(function(e){var r=t.types&&t.types[e.id]?t.types[e.id]:t.type;n.setTargetType(e.id,r)}),n.data.targets.forEach(function(t){for(var n=0;n<e.length;n++)if(t.id===e[n].id){t.values=e[n].values,e.splice(n,1);break}}),n.data.targets=n.data.targets.concat(e)),n.updateTargets(n.data.targets),n.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),t.done&&t.done()},C.loadFromArgs=function(e){var t=this;e.data?t.load(t.convertDataToTargets(e.data),e):e.url?t.convertUrlToData(e.url,e.mimeType,e.headers,e.keys,function(n){t.load(t.convertDataToTargets(n),e)}):e.json?t.load(t.convertDataToTargets(t.convertJsonToData(e.json,e.keys)),e):e.rows?t.load(t.convertDataToTargets(t.convertRowsToData(e.rows)),e):e.columns?t.load(t.convertDataToTargets(t.convertColumnsToData(e.columns)),e):t.load(null,e)},C.unload=function(e,t){var n=this;if(t||(t=function(){}),!(e=e.filter(function(e){return n.hasTarget(n.data.targets,e)}))||0===e.length)return void t();n.svg.selectAll(e.map(function(e){return n.selectorTarget(e)})).transition().style("opacity",0).remove().call(n.endall,t),e.forEach(function(e){n.withoutFadeIn[e]=!1,n.legend&&n.legend.selectAll("."+s.legendItem+n.getTargetSelectorSuffix(e)).remove(),n.data.targets=n.data.targets.filter(function(t){return t.id!==e})})},C.getYDomainMin=function(e){var t,n,r,i,a,o,s=this,c=s.config,l=s.mapToIds(e),u=s.getValuesAsIdKeyed(e);if(c.data_groups.length>0)for(o=s.hasNegativeValueInTargets(e),t=0;t<c.data_groups.length;t++)if(i=c.data_groups[t].filter(function(e){return l.indexOf(e)>=0}),0!==i.length)for(r=i[0],o&&u[r]&&u[r].forEach(function(e,t){u[r][t]=e<0?e:0}),n=1;n<i.length;n++)a=i[n],u[a]&&u[a].forEach(function(e,t){s.axis.getId(a)!==s.axis.getId(r)||!u[r]||o&&+e>0||(u[r][t]+=+e)});return s.d3.min(Object.keys(u).map(function(e){return s.d3.min(u[e])}))},C.getYDomainMax=function(e){var t,n,r,i,a,o,s=this,c=s.config,l=s.mapToIds(e),u=s.getValuesAsIdKeyed(e);if(c.data_groups.length>0)for(o=s.hasPositiveValueInTargets(e),t=0;t<c.data_groups.length;t++)if(i=c.data_groups[t].filter(function(e){return l.indexOf(e)>=0}),0!==i.length)for(r=i[0],o&&u[r]&&u[r].forEach(function(e,t){u[r][t]=e>0?e:0}),n=1;n<i.length;n++)a=i[n],u[a]&&u[a].forEach(function(e,t){s.axis.getId(a)!==s.axis.getId(r)||!u[r]||o&&+e<0||(u[r][t]+=+e)});return s.d3.max(Object.keys(u).map(function(e){return s.d3.max(u[e])}))},C.getYDomain=function(e,t,n){var r,i,a,o,s,c,l,u,d,f,h=this,m=h.config,g=e.filter(function(e){return h.axis.getId(e.id)===t}),v=n?h.filterByXDomain(g,n):g,b="y2"===t?m.axis_y2_min:m.axis_y_min,y="y2"===t?m.axis_y2_max:m.axis_y_max,M=h.getYDomainMin(v),w=h.getYDomainMax(v),A="y2"===t?m.axis_y2_center:m.axis_y_center,S=h.hasType("bar",v)&&m.bar_zerobased||h.hasType("area",v)&&m.area_zerobased,k="y2"===t?m.axis_y2_inverted:m.axis_y_inverted,$=h.hasDataLabel()&&m.axis_rotated,T=h.hasDataLabel()&&!m.axis_rotated;return M=p(b)?b:p(y)?M<y?M:y-10:M,w=p(y)?y:p(b)?b<w?w:b+10:w,0===v.length?"y2"===t?h.y2.domain():h.y.domain():(isNaN(M)&&(M=0),isNaN(w)&&(w=M),M===w&&(M<0?w=0:M=0),d=M>=0&&w>=0,f=M<=0&&w<=0,(p(b)&&d||p(y)&&f)&&(S=!1),
44S&&(d&&(M=0),f&&(w=0)),i=Math.abs(w-M),a=o=.1*i,void 0!==A&&(s=Math.max(Math.abs(M),Math.abs(w)),w=A+s,M=A-s),$?(c=h.getDataLabelLength(M,w,"width"),l=x(h.y.range()),u=[c[0]/l,c[1]/l],a+=i*(u[1]/(1-u[0]-u[1])),o+=i*(u[0]/(1-u[0]-u[1]))):T&&(c=h.getDataLabelLength(M,w,"height"),a+=h.axis.convertPixelsToAxisPadding(c[1],i),o+=h.axis.convertPixelsToAxisPadding(c[0],i)),"y"===t&&_(m.axis_y_padding)&&(a=h.axis.getPadding(m.axis_y_padding,"top",a,i),o=h.axis.getPadding(m.axis_y_padding,"bottom",o,i)),"y2"===t&&_(m.axis_y2_padding)&&(a=h.axis.getPadding(m.axis_y2_padding,"top",a,i),o=h.axis.getPadding(m.axis_y2_padding,"bottom",o,i)),S&&(d&&(o=M),f&&(a=-w)),r=[M-o,w+a],k?r.reverse():r)},C.getXDomainMin=function(e){var t=this,n=t.config;return v(n.axis_x_min)?t.isTimeSeries()?this.parseDate(n.axis_x_min):n.axis_x_min:t.d3.min(e,function(e){return t.d3.min(e.values,function(e){return e.x})})},C.getXDomainMax=function(e){var t=this,n=t.config;return v(n.axis_x_max)?t.isTimeSeries()?this.parseDate(n.axis_x_max):n.axis_x_max:t.d3.max(e,function(e){return t.d3.max(e.values,function(e){return e.x})})},C.getXDomainPadding=function(e){var t,n,r,i,a=this,o=a.config,s=e[1]-e[0];return a.isCategorized()?n=0:a.hasType("bar")?(t=a.getMaxDataCount(),n=t>1?s/(t-1)/2:.5):n=.01*s,"object"===c(o.axis_x_padding)&&_(o.axis_x_padding)?(r=p(o.axis_x_padding.left)?o.axis_x_padding.left:n,i=p(o.axis_x_padding.right)?o.axis_x_padding.right:n):r=i="number"==typeof o.axis_x_padding?o.axis_x_padding:n,{left:r,right:i}},C.getXDomain=function(e){var t=this,n=[t.getXDomainMin(e),t.getXDomainMax(e)],r=n[0],i=n[1],a=t.getXDomainPadding(n),o=0,s=0;return r-i!=0||t.isCategorized()||(t.isTimeSeries()?(r=new Date(.5*r.getTime()),i=new Date(1.5*i.getTime())):(r=0===r?1:.5*r,i=0===i?-1:1.5*i)),(r||0===r)&&(o=t.isTimeSeries()?new Date(r.getTime()-a.left):r-a.left),(i||0===i)&&(s=t.isTimeSeries()?new Date(i.getTime()+a.right):i+a.right),[o,s]},C.updateXDomain=function(e,t,n,r,i){var a=this,o=a.config;return n&&(a.x.domain(i||a.d3.extent(a.getXDomain(e))),a.orgXDomain=a.x.domain(),o.zoom_enabled&&a.zoom.scale(a.x).updateScaleExtent(),a.subX.domain(a.x.domain()),a.brush&&a.brush.scale(a.subX)),t&&(a.x.domain(i||(!a.brush||a.brush.empty()?a.orgXDomain:a.brush.extent())),o.zoom_enabled&&a.zoom.scale(a.x).updateScaleExtent()),r&&a.x.domain(a.trimXDomain(a.x.orgDomain())),a.x.domain()},C.trimXDomain=function(e){var t=this.getZoomDomain(),n=t[0],r=t[1];return e[0]<=n&&(e[1]=+e[1]+(n-e[0]),e[0]=n),r<=e[1]&&(e[0]=+e[0]-(e[1]-r),e[1]=r),e},C.drag=function(e){var t,n,r,i,a,o,c,l,u=this,d=u.config,p=u.main,f=u.d3;u.hasArcType()||d.data_selection_enabled&&(d.zoom_enabled&&!u.zoom.altDomain||d.data_selection_multiple&&(t=u.dragStart[0],n=u.dragStart[1],r=e[0],i=e[1],a=Math.min(t,r),o=Math.max(t,r),c=d.data_selection_grouped?u.margin.top:Math.min(n,i),l=d.data_selection_grouped?u.height:Math.max(n,i),p.select("."+s.dragarea).attr("x",a).attr("y",c).attr("width",o-a).attr("height",l-c),p.selectAll("."+s.shapes).selectAll("."+s.shape).filter(function(e){return d.data_selection_isselectable(e)}).each(function(e,t){var n,r,i,d,p,h,m=f.select(this),g=m.classed(s.SELECTED),v=m.classed(s.INCLUDED),b=!1;if(m.classed(s.circle))n=1*m.attr("cx"),r=1*m.attr("cy"),p=u.togglePoint,b=a<n&&n<o&&c<r&&r<l;else{if(!m.classed(s.bar))return;h=k(this),n=h.x,r=h.y,i=h.width,d=h.height,p=u.togglePath,b=!(o<n||n+i<a||l<r||r+d<c)}b^v&&(m.classed(s.INCLUDED,!v),m.classed(s.SELECTED,!g),p.call(u,!g,m,e,t))})))},C.dragstart=function(e){var t=this,n=t.config;t.hasArcType()||n.data_selection_enabled&&(t.dragStart=e,t.main.select("."+s.chart).append("rect").attr("class",s.dragarea).style("opacity",.1),t.dragging=!0)},C.dragend=function(){var e=this,t=e.config;e.hasArcType()||t.data_selection_enabled&&(e.main.select("."+s.dragarea).transition().duration(100).style("opacity",0).remove(),e.main.selectAll("."+s.shape).classed(s.INCLUDED,!1),e.dragging=!1)},C.getYFormat=function(e){var t=this,n=e&&!t.hasType("gauge")?t.defaultArcValueFormat:t.yFormat,r=e&&!t.hasType("gauge")?t.defaultArcValueFormat:t.y2Format;return function(e,i,a){return("y2"===t.axis.getId(a)?r:n).call(t,e,i)}},C.yFormat=function(e){var t=this,n=t.config;return(n.axis_y_tick_format?n.axis_y_tick_format:t.defaultValueFormat)(e)},C.y2Format=function(e){var t=this,n=t.config;return(n.axis_y2_tick_format?n.axis_y2_tick_format:t.defaultValueFormat)(e)},C.defaultValueFormat=function(e){return p(e)?+e:""},C.defaultArcValueFormat=function(e,t){return(100*t).toFixed(1)+"%"},C.dataLabelFormat=function(e){var t=this,n=t.config.data_labels,r=function(e){return p(e)?+e:""};return"function"==typeof n.format?n.format:"object"===c(n.format)?n.format[e]?!0===n.format[e]?r:n.format[e]:function(){return""}:r},C.initGrid=function(){var e=this,t=e.config,n=e.d3;e.grid=e.main.append("g").attr("clip-path",e.clipPathForGrid).attr("class",s.grid),t.grid_x_show&&e.grid.append("g").attr("class",s.xgrids),t.grid_y_show&&e.grid.append("g").attr("class",s.ygrids),t.grid_focus_show&&e.grid.append("g").attr("class",s.xgridFocus).append("line").attr("class",s.xgridFocus),e.xgrid=n.selectAll([]),t.grid_lines_front||e.initGridLines()},C.initGridLines=function(){var e=this,t=e.d3;e.gridLines=e.main.append("g").attr("clip-path",e.clipPathForGrid).attr("class",s.grid+" "+s.gridLines),e.gridLines.append("g").attr("class",s.xgridLines),e.gridLines.append("g").attr("class",s.ygridLines),e.xgridLines=t.selectAll([])},C.updateXGrid=function(e){var t=this,n=t.config,r=t.d3,i=t.generateGridData(n.grid_x_type,t.x),a=t.isCategorized()?t.xAxis.tickOffset():0;t.xgridAttr=n.axis_rotated?{x1:0,x2:t.width,y1:function(e){return t.x(e)-a},y2:function(e){return t.x(e)-a}}:{x1:function(e){return t.x(e)+a},x2:function(e){return t.x(e)+a},y1:0,y2:t.height},t.xgrid=t.main.select("."+s.xgrids).selectAll("."+s.xgrid).data(i),t.xgrid.enter().append("line").attr("class",s.xgrid),e||t.xgrid.attr(t.xgridAttr).style("opacity",function(){return+r.select(this).attr(n.axis_rotated?"y1":"x1")===(n.axis_rotated?t.height:0)?0:1}),t.xgrid.exit().remove()},C.updateYGrid=function(){var e=this,t=e.config,n=e.yAxis.tickValues()||e.y.ticks(t.grid_y_ticks);e.ygrid=e.main.select("."+s.ygrids).selectAll("."+s.ygrid).data(n),e.ygrid.enter().append("line").attr("class",s.ygrid),e.ygrid.attr("x1",t.axis_rotated?e.y:0).attr("x2",t.axis_rotated?e.y:e.width).attr("y1",t.axis_rotated?0:e.y).attr("y2",t.axis_rotated?e.height:e.y),e.ygrid.exit().remove(),e.smoothLines(e.ygrid,"grid")},C.gridTextAnchor=function(e){return e.position?e.position:"end"},C.gridTextDx=function(e){return"start"===e.position?4:"middle"===e.position?0:-4},C.xGridTextX=function(e){return"start"===e.position?-this.height:"middle"===e.position?-this.height/2:0},C.yGridTextX=function(e){return"start"===e.position?0:"middle"===e.position?this.width/2:this.width},C.updateGrid=function(e){var t,n,r,i=this,a=i.main,o=i.config;i.grid.style("visibility",i.hasArcType()?"hidden":"visible"),a.select("line."+s.xgridFocus).style("visibility","hidden"),o.grid_x_show&&i.updateXGrid(),i.xgridLines=a.select("."+s.xgridLines).selectAll("."+s.xgridLine).data(o.grid_x_lines),t=i.xgridLines.enter().append("g").attr("class",function(e){return s.xgridLine+(e.class?" "+e.class:"")}),t.append("line").style("opacity",0),t.append("text").attr("text-anchor",i.gridTextAnchor).attr("transform",o.axis_rotated?"":"rotate(-90)").attr("dx",i.gridTextDx).attr("dy",-5).style("opacity",0),i.xgridLines.exit().transition().duration(e).style("opacity",0).remove(),o.grid_y_show&&i.updateYGrid(),i.ygridLines=a.select("."+s.ygridLines).selectAll("."+s.ygridLine).data(o.grid_y_lines),n=i.ygridLines.enter().append("g").attr("class",function(e){return s.ygridLine+(e.class?" "+e.class:"")}),n.append("line").style("opacity",0),n.append("text").attr("text-anchor",i.gridTextAnchor).attr("transform",o.axis_rotated?"rotate(-90)":"").attr("dx",i.gridTextDx).attr("dy",-5).style("opacity",0),r=i.yv.bind(i),i.ygridLines.select("line").transition().duration(e).attr("x1",o.axis_rotated?r:0).attr("x2",o.axis_rotated?r:i.width).attr("y1",o.axis_rotated?0:r).attr("y2",o.axis_rotated?i.height:r).style("opacity",1),i.ygridLines.select("text").transition().duration(e).attr("x",o.axis_rotated?i.xGridTextX.bind(i):i.yGridTextX.bind(i)).attr("y",r).text(function(e){return e.text}).style("opacity",1),i.ygridLines.exit().transition().duration(e).style("opacity",0).remove()},C.redrawGrid=function(e){var t=this,n=t.config,r=t.xv.bind(t),i=t.xgridLines.select("line"),a=t.xgridLines.select("text");return[(e?i.transition():i).attr("x1",n.axis_rotated?0:r).attr("x2",n.axis_rotated?t.width:r).attr("y1",n.axis_rotated?r:0).attr("y2",n.axis_rotated?r:t.height).style("opacity",1),(e?a.transition():a).attr("x",n.axis_rotated?t.yGridTextX.bind(t):t.xGridTextX.bind(t)).attr("y",r).text(function(e){return e.text}).style("opacity",1)]},C.showXGridFocus=function(e){var t=this,n=t.config,r=e.filter(function(e){return e&&p(e.value)}),i=t.main.selectAll("line."+s.xgridFocus),a=t.xx.bind(t);n.tooltip_show&&(t.hasType("scatter")||t.hasArcType()||(i.style("visibility","visible").data([r[0]]).attr(n.axis_rotated?"y1":"x1",a).attr(n.axis_rotated?"y2":"x2",a),t.smoothLines(i,"grid")))},C.hideXGridFocus=function(){this.main.select("line."+s.xgridFocus).style("visibility","hidden")},C.updateXgridFocus=function(){var e=this,t=e.config;e.main.select("line."+s.xgridFocus).attr("x1",t.axis_rotated?0:-10).attr("x2",t.axis_rotated?e.width:-10).attr("y1",t.axis_rotated?-10:0).attr("y2",t.axis_rotated?-10:e.height)},C.generateGridData=function(e,t){var n,r,i,a,o=this,c=[],l=o.main.select("."+s.axisX).selectAll(".tick").size();if("year"===e)for(n=o.getXDomain(),r=n[0].getFullYear(),i=n[1].getFullYear(),a=r;a<=i;a++)c.push(new Date(a+"-01-01 00:00:00"));else c=t.ticks(10),c.length>l&&(c=c.filter(function(e){return(""+e).indexOf(".")<0}));return c},C.getGridFilterToRemove=function(e){return e?function(t){var n=!1;return[].concat(e).forEach(function(e){("value"in e&&t.value===e.value||"class"in e&&t.class===e.class)&&(n=!0)}),n}:function(){return!0}},C.removeGridLines=function(e,t){var n=this,r=n.config,i=n.getGridFilterToRemove(e),a=function(e){return!i(e)},o=t?s.xgridLines:s.ygridLines,c=t?s.xgridLine:s.ygridLine;n.main.select("."+o).selectAll("."+c).filter(i).transition().duration(r.transition_duration).style("opacity",0).remove(),t?r.grid_x_lines=r.grid_x_lines.filter(a):r.grid_y_lines=r.grid_y_lines.filter(a)},C.initEventRect=function(){this.main.select("."+s.chart).append("g").attr("class",s.eventRects).style("fill-opacity",0)},C.redrawEventRect=function(){var e,t,n=this,r=n.config,i=n.isMultipleX(),a=n.main.select("."+s.eventRects).style("cursor",r.zoom_enabled?r.axis_rotated?"ns-resize":"ew-resize":null).classed(s.eventRectsMultiple,i).classed(s.eventRectsSingle,!i);a.selectAll("."+s.eventRect).remove(),n.eventRect=a.selectAll("."+s.eventRect),i?(e=n.eventRect.data([0]),n.generateEventRectsForMultipleXs(e.enter()),n.updateEventRect(e)):(t=n.getMaxDataCountTarget(n.data.targets),a.datum(t?t.values:[]),n.eventRect=a.selectAll("."+s.eventRect),e=n.eventRect.data(function(e){return e}),n.generateEventRectsForSingleX(e.enter()),n.updateEventRect(e),e.exit().remove())},C.updateEventRect=function(e){var t,n,r,i,a,o,s=this,c=s.config;e=e||s.eventRect.data(function(e){return e}),s.isMultipleX()?(t=0,n=0,r=s.width,i=s.height):(!s.isCustomX()&&!s.isTimeSeries()||s.isCategorized()?(a=s.getEventRectWidth(),o=function(e){return s.x(e.x)-a/2}):(s.updateXs(),a=function(e){var t=s.getPrevX(e.index),n=s.getNextX(e.index);return null===t&&null===n?c.axis_rotated?s.height:s.width:(null===t&&(t=s.x.domain()[0]),null===n&&(n=s.x.domain()[1]),Math.max(0,(s.x(n)-s.x(t))/2))},o=function(e){var t=s.getPrevX(e.index),n=s.getNextX(e.index),r=s.data.xs[e.id][e.index];return null===t&&null===n?0:(null===t&&(t=s.x.domain()[0]),(s.x(r)+s.x(t))/2)}),t=c.axis_rotated?0:o,n=c.axis_rotated?o:0,r=c.axis_rotated?s.width:a,i=c.axis_rotated?a:s.height),e.attr("class",s.classEvent.bind(s)).attr("x",t).attr("y",n).attr("width",r).attr("height",i)},C.generateEventRectsForSingleX=function(e){var t=this,n=t.d3,r=t.config;e.append("rect").attr("class",t.classEvent.bind(t)).style("cursor",r.data_selection_enabled&&r.data_selection_grouped?"pointer":null).on("mouseover",function(e){var n=e.index;t.dragging||t.flowing||t.hasArcType()||(r.point_focus_expand_enabled&&t.expandCircles(n,null,!0),t.expandBars(n,null,!0),t.main.selectAll("."+s.shape+"-"+n).each(function(e){r.data_onmouseover.call(t.api,e)}))}).on("mouseout",function(e){var n=e.index;t.config&&(t.hasArcType()||(t.hideXGridFocus(),t.hideTooltip(),t.unexpandCircles(),t.unexpandBars(),t.main.selectAll("."+s.shape+"-"+n).each(function(e){r.data_onmouseout.call(t.api,e)})))}).on("mousemove",function(e){var i,a=e.index,o=t.svg.select("."+s.eventRect+"-"+a);t.dragging||t.flowing||t.hasArcType()||(t.isStepType(e)&&"step-after"===t.config.line_step_type&&n.mouse(this)[0]<t.x(t.getXValue(e.id,a))&&(a-=1),i=t.filterTargetsToShow(t.data.targets).map(function(e){return t.addName(t.getValueOnIndex(e.values,a))}),r.tooltip_grouped&&(t.showTooltip(i,this),t.showXGridFocus(i)),(!r.tooltip_grouped||r.data_selection_enabled&&!r.data_selection_grouped)&&t.main.selectAll("."+s.shape+"-"+a).each(function(){n.select(this).classed(s.EXPANDED,!0),r.data_selection_enabled&&o.style("cursor",r.data_selection_grouped?"pointer":null),r.tooltip_grouped||(t.hideXGridFocus(),t.hideTooltip(),r.data_selection_grouped||(t.unexpandCircles(a),t.unexpandBars(a)))}).filter(function(e){return t.isWithinShape(this,e)}).each(function(e){r.data_selection_enabled&&(r.data_selection_grouped||r.data_selection_isselectable(e))&&o.style("cursor","pointer"),r.tooltip_grouped||(t.showTooltip([e],this),t.showXGridFocus([e]),r.point_focus_expand_enabled&&t.expandCircles(a,e.id,!0),t.expandBars(a,e.id,!0))}))}).on("click",function(e){var i=e.index;if(!t.hasArcType()&&t.toggleShape){if(t.cancelClick)return void(t.cancelClick=!1);t.isStepType(e)&&"step-after"===r.line_step_type&&n.mouse(this)[0]<t.x(t.getXValue(e.id,i))&&(i-=1),t.main.selectAll("."+s.shape+"-"+i).each(function(e){(r.data_selection_grouped||t.isWithinShape(this,e))&&(t.toggleShape(this,e,i),t.config.data_onclick.call(t.api,e,this))})}}).call(r.data_selection_draggable&&t.drag?n.behavior.drag().origin(Object).on("drag",function(){t.drag(n.mouse(this))}).on("dragstart",function(){t.dragstart(n.mouse(this))}).on("dragend",function(){t.dragend()}):function(){})},C.generateEventRectsForMultipleXs=function(e){function t(){n.svg.select("."+s.eventRect).style("cursor",null),n.hideXGridFocus(),n.hideTooltip(),n.unexpandCircles(),n.unexpandBars()}var n=this,r=n.d3,i=n.config;e.append("rect").attr("x",0).attr("y",0).attr("width",n.width).attr("height",n.height).attr("class",s.eventRect).on("mouseout",function(){n.config&&(n.hasArcType()||t())}).on("mousemove",function(){var e,a,o,c,l=n.filterTargetsToShow(n.data.targets);if(!n.dragging&&!n.hasArcType(l)){if(e=r.mouse(this),a=n.findClosestFromTargets(l,e),!n.mouseover||a&&a.id===n.mouseover.id||(i.data_onmouseout.call(n.api,n.mouseover),n.mouseover=void 0),!a)return void t();o=n.isScatterType(a)||!i.tooltip_grouped?[a]:n.filterByX(l,a.x),c=o.map(function(e){return n.addName(e)}),n.showTooltip(c,this),i.point_focus_expand_enabled&&n.expandCircles(a.index,a.id,!0),n.expandBars(a.index,a.id,!0),n.showXGridFocus(c),(n.isBarType(a.id)||n.dist(a,e)<i.point_sensitivity)&&(n.svg.select("."+s.eventRect).style("cursor","pointer"),n.mouseover||(i.data_onmouseover.call(n.api,a),n.mouseover=a))}}).on("click",function(){var e,t,a=n.filterTargetsToShow(n.data.targets);n.hasArcType(a)||(e=r.mouse(this),(t=n.findClosestFromTargets(a,e))&&(n.isBarType(t.id)||n.dist(t,e)<i.point_sensitivity)&&n.main.selectAll("."+s.shapes+n.getTargetSelectorSuffix(t.id)).selectAll("."+s.shape+"-"+t.index).each(function(){(i.data_selection_grouped||n.isWithinShape(this,t))&&(n.toggleShape(this,t,t.index),n.config.data_onclick.call(n.api,t,this))}))}).call(i.data_selection_draggable&&n.drag?r.behavior.drag().origin(Object).on("drag",function(){n.drag(r.mouse(this))}).on("dragstart",function(){n.dragstart(r.mouse(this))}).on("dragend",function(){n.dragend()}):function(){})},C.dispatchEvent=function(e,t,n){var r=this,i="."+s.eventRect+(r.isMultipleX()?"":"-"+t),a=r.main.select(i).node(),o=a.getBoundingClientRect(),c=o.left+(n?n[0]:0),l=o.top+(n?n[1]:0),u=document.createEvent("MouseEvents");u.initMouseEvent(e,!0,!0,window,0,c,l,c,l,!1,!1,!1,!1,0,null),a.dispatchEvent(u)},C.initLegend=function(){var e=this;if(e.legendItemTextBox={},e.legendHasRendered=!1,e.legend=e.svg.append("g").attr("transform",e.getTranslate("legend")),!e.config.legend_show)return e.legend.style("visibility","hidden"),void(e.hiddenLegendIds=e.mapToIds(e.data.targets));e.updateLegendWithDefaults()},C.updateLegendWithDefaults=function(){var e=this;e.updateLegend(e.mapToIds(e.data.targets),{withTransform:!1,withTransitionForTransform:!1,withTransition:!1})},C.updateSizeForLegend=function(e,t){var n=this,r=n.config,i={top:n.isLegendTop?n.getCurrentPaddingTop()+r.legend_inset_y+5.5:n.currentHeight-e-n.getCurrentPaddingBottom()-r.legend_inset_y,left:n.isLegendLeft?n.getCurrentPaddingLeft()+r.legend_inset_x+.5:n.currentWidth-t-n.getCurrentPaddingRight()-r.legend_inset_x+.5};n.margin3={top:n.isLegendRight?0:n.isLegendInset?i.top:n.currentHeight-e,right:NaN,bottom:0,left:n.isLegendRight?n.currentWidth-t:n.isLegendInset?i.left:0}},C.transformLegend=function(e){var t=this;(e?t.legend.transition():t.legend).attr("transform",t.getTranslate("legend"))},C.updateLegendStep=function(e){this.legendStep=e},C.updateLegendItemWidth=function(e){this.legendItemWidth=e},C.updateLegendItemHeight=function(e){this.legendItemHeight=e},C.getLegendWidth=function(){var e=this;return e.config.legend_show?e.isLegendRight||e.isLegendInset?e.legendItemWidth*(e.legendStep+1):e.currentWidth:0},C.getLegendHeight=function(){var e=this,t=0;return e.config.legend_show&&(t=e.isLegendRight?e.currentHeight:Math.max(20,e.legendItemHeight)*(e.legendStep+1)),t},C.opacityForLegend=function(e){return e.classed(s.legendItemHidden)?null:1},C.opacityForUnfocusedLegend=function(e){return e.classed(s.legendItemHidden)?null:.3},C.toggleFocusLegend=function(e,t){var n=this;e=n.mapToTargetIds(e),n.legend.selectAll("."+s.legendItem).filter(function(t){return e.indexOf(t)>=0}).classed(s.legendItemFocused,t).transition().duration(100).style("opacity",function(){return(t?n.opacityForLegend:n.opacityForUnfocusedLegend).call(n,n.d3.select(this))})},C.revertLegend=function(){var e=this,t=e.d3;e.legend.selectAll("."+s.legendItem).classed(s.legendItemFocused,!1).transition().duration(100).style("opacity",function(){return e.opacityForLegend(t.select(this))})},C.showLegend=function(e){var t=this,n=t.config;n.legend_show||(n.legend_show=!0,t.legend.style("visibility","visible"),t.legendHasRendered||t.updateLegendWithDefaults()),t.removeHiddenLegendIds(e),t.legend.selectAll(t.selectorLegends(e)).style("visibility","visible").transition().style("opacity",function(){return t.opacityForLegend(t.d3.select(this))})},C.hideLegend=function(e){var t=this,n=t.config;n.legend_show&&M(e)&&(n.legend_show=!1,t.legend.style("visibility","hidden")),t.addHiddenLegendIds(e),t.legend.selectAll(t.selectorLegends(e)).style("opacity",0).style("visibility","hidden")},C.clearLegendItemTextBoxCache=function(){this.legendItemTextBox={}},C.updateLegend=function(e,t,n){function r(e,t){return A.legendItemTextBox[t]||(A.legendItemTextBox[t]=A.getTextRect(e.textContent,s.legendItem,e)),A.legendItemTextBox[t]}function i(t,n,i){function a(e,t){t||(o=(h-z-f)/2)<E&&(o=(h-f)/2,z=0,R++),D[e]=R,I[R]=A.isLegendInset?10:o,L[e]=z,z+=f}var o,s,c=0===i,l=i===e.length-1,u=r(t,n),d=u.width+O+(!l||A.isLegendRight||A.isLegendInset?$:0)+S.legend_padding,p=u.height+k,f=A.isLegendRight||A.isLegendInset?p:d,h=A.isLegendRight||A.isLegendInset?A.getLegendHeight():A.getLegendWidth();if(c&&(z=0,R=0,T=0,C=0),S.legend_show&&!A.isLegendToShow(n))return void(N[n]=P[n]=D[n]=L[n]=0);N[n]=d,P[n]=p,(!T||d>=T)&&(T=d),(!C||p>=C)&&(C=p),s=A.isLegendRight||A.isLegendInset?C:T,S.legend_equally?(Object.keys(N).forEach(function(e){N[e]=T}),Object.keys(P).forEach(function(e){P[e]=C}),o=(h-s*e.length)/2,o<E?(z=0,R=0,e.forEach(function(e){a(e)})):a(n,!0)):a(n)}var a,o,c,l,u,d,p,f,h,m,g,b,y,x,M,_,A=this,S=A.config,k=4,$=10,T=0,C=0,E=10,O=S.legend_item_tile_width+5,z=0,L={},N={},P={},I=[0],D={},R=0;e=e.filter(function(e){return!v(S.data_names[e])||null!==S.data_names[e]}),t=t||{},g=w(t,"withTransition",!0),b=w(t,"withTransitionForTransform",!0),A.isLegendInset&&(R=S.legend_inset_step?S.legend_inset_step:e.length,A.updateLegendStep(R)),A.isLegendRight?(a=function(e){return T*D[e]},l=function(e){return I[D[e]]+L[e]}):A.isLegendInset?(a=function(e){return T*D[e]+10},l=function(e){return I[D[e]]+L[e]}):(a=function(e){return I[D[e]]+L[e]},l=function(e){return C*D[e]}),o=function(e,t){return a(e,t)+4+S.legend_item_tile_width},u=function(e,t){return l(e,t)+9},c=function(e,t){return a(e,t)},d=function(e,t){return l(e,t)-5},p=function(e,t){return a(e,t)-2},f=function(e,t){return a(e,t)-2+S.legend_item_tile_width},h=function(e,t){return l(e,t)+4},m=A.legend.selectAll("."+s.legendItem).data(e).enter().append("g").attr("class",function(e){return A.generateClass(s.legendItem,e)}).style("visibility",function(e){return A.isLegendToShow(e)?"visible":"hidden"}).style("cursor","pointer").on("click",function(e){S.legend_item_onclick?S.legend_item_onclick.call(A,e):A.d3.event.altKey?(A.api.hide(),A.api.show(e)):(A.api.toggle(e),A.isTargetToShow(e)?A.api.focus(e):A.api.revert())}).on("mouseover",function(e){S.legend_item_onmouseover?S.legend_item_onmouseover.call(A,e):(A.d3.select(this).classed(s.legendItemFocused,!0),!A.transiting&&A.isTargetToShow(e)&&A.api.focus(e))}).on("mouseout",function(e){S.legend_item_onmouseout?S.legend_item_onmouseout.call(A,e):(A.d3.select(this).classed(s.legendItemFocused,!1),A.api.revert())}),m.append("text").text(function(e){return v(S.data_names[e])?S.data_names[e]:e}).each(function(e,t){i(this,e,t)}).style("pointer-events","none").attr("x",A.isLegendRight||A.isLegendInset?o:-200).attr("y",A.isLegendRight||A.isLegendInset?-200:u),m.append("rect").attr("class",s.legendItemEvent).style("fill-opacity",0).attr("x",A.isLegendRight||A.isLegendInset?c:-200).attr("y",A.isLegendRight||A.isLegendInset?-200:d),m.append("line").attr("class",s.legendItemTile).style("stroke",A.color).style("pointer-events","none").attr("x1",A.isLegendRight||A.isLegendInset?p:-200).attr("y1",A.isLegendRight||A.isLegendInset?-200:h).attr("x2",A.isLegendRight||A.isLegendInset?f:-200).attr("y2",A.isLegendRight||A.isLegendInset?-200:h).attr("stroke-width",S.legend_item_tile_height),_=A.legend.select("."+s.legendBackground+" rect"),A.isLegendInset&&T>0&&0===_.size()&&(_=A.legend.insert("g","."+s.legendItem).attr("class",s.legendBackground).append("rect")),y=A.legend.selectAll("text").data(e).text(function(e){return v(S.data_names[e])?S.data_names[e]:e}).each(function(e,t){i(this,e,t)}),(g?y.transition():y).attr("x",o).attr("y",u),x=A.legend.selectAll("rect."+s.legendItemEvent).data(e),(g?x.transition():x).attr("width",function(e){return N[e]}).attr("height",function(e){return P[e]}).attr("x",c).attr("y",d),M=A.legend.selectAll("line."+s.legendItemTile).data(e),(g?M.transition():M).style("stroke",A.color).attr("x1",p).attr("y1",h).attr("x2",f).attr("y2",h),_&&(g?_.transition():_).attr("height",A.getLegendHeight()-12).attr("width",T*(R+1)+10),A.legend.selectAll("."+s.legendItem).classed(s.legendItemHidden,function(e){return!A.isTargetToShow(e)}),A.updateLegendItemWidth(T),A.updateLegendItemHeight(C),A.updateLegendStep(R),A.updateSizes(),A.updateScales(),A.updateSvgSize(),A.transformAll(b,n),A.legendHasRendered=!0},C.initRegion=function(){var e=this;e.region=e.main.append("g").attr("clip-path",e.clipPath).attr("class",s.regions)},C.updateRegion=function(e){var t=this,n=t.config;t.region.style("visibility",t.hasArcType()?"hidden":"visible"),t.mainRegion=t.main.select("."+s.regions).selectAll("."+s.region).data(n.regions),t.mainRegion.enter().append("g").append("rect").style("fill-opacity",0),t.mainRegion.attr("class",t.classRegion.bind(t)),t.mainRegion.exit().transition().duration(e).style("opacity",0).remove()},C.redrawRegion=function(e){var t=this,n=t.mainRegion.selectAll("rect").each(function(){var e=t.d3.select(this.parentNode).datum();t.d3.select(this).datum(e)}),r=t.regionX.bind(t),i=t.regionY.bind(t),a=t.regionWidth.bind(t),o=t.regionHeight.bind(t);return[(e?n.transition():n).attr("x",r).attr("y",i).attr("width",a).attr("height",o).style("fill-opacity",function(e){return p(e.opacity)?e.opacity:.1})]},C.regionX=function(e){var t=this,n=t.config,r="y"===e.axis?t.y:t.y2;return"y"===e.axis||"y2"===e.axis?n.axis_rotated&&"start"in e?r(e.start):0:n.axis_rotated?0:"start"in e?t.x(t.isTimeSeries()?t.parseDate(e.start):e.start):0},C.regionY=function(e){var t=this,n=t.config,r="y"===e.axis?t.y:t.y2;return"y"===e.axis||"y2"===e.axis?n.axis_rotated?0:"end"in e?r(e.end):0:n.axis_rotated&&"start"in e?t.x(t.isTimeSeries()?t.parseDate(e.start):e.start):0},C.regionWidth=function(e){var t,n=this,r=n.config,i=n.regionX(e),a="y"===e.axis?n.y:n.y2;return t="y"===e.axis||"y2"===e.axis?r.axis_rotated&&"end"in e?a(e.end):n.width:r.axis_rotated?n.width:"end"in e?n.x(n.isTimeSeries()?n.parseDate(e.end):e.end):n.width,t<i?0:t-i},C.regionHeight=function(e){var t,n=this,r=n.config,i=this.regionY(e),a="y"===e.axis?n.y:n.y2;return t="y"===e.axis||"y2"===e.axis?r.axis_rotated?n.height:"start"in e?a(e.start):n.height:r.axis_rotated&&"end"in e?n.x(n.isTimeSeries()?n.parseDate(e.end):e.end):n.height,t<i?0:t-i},C.isRegionOnX=function(e){return!e.axis||"x"===e.axis},C.getScale=function(e,t,n){return(n?this.d3.time.scale():this.d3.scale.linear()).range([e,t])},C.getX=function(e,t,n,r){var i,a=this,o=a.getScale(e,t,a.isTimeSeries()),s=n?o.domain(n):o;a.isCategorized()?(r=r||function(){return 0},o=function(e,t){var n=s(e)+r(e);return t?n:Math.ceil(n)}):o=function(e,t){var n=s(e);return t?n:Math.ceil(n)};for(i in s)o[i]=s[i];return o.orgDomain=function(){return s.domain()},a.isCategorized()&&(o.domain=function(e){return arguments.length?(s.domain(e),o):(e=this.orgDomain(),[e[0],e[1]+1])}),o},C.getY=function(e,t,n){var r=this.getScale(e,t,this.isTimeSeriesY());return n&&r.domain(n),r},C.getYScale=function(e){return"y2"===this.axis.getId(e)?this.y2:this.y},C.getSubYScale=function(e){return"y2"===this.axis.getId(e)?this.subY2:this.subY},C.updateScales=function(){var e=this,t=e.config,n=!e.x;e.xMin=t.axis_rotated?1:0,e.xMax=t.axis_rotated?e.height:e.width,e.yMin=t.axis_rotated?0:e.height,e.yMax=t.axis_rotated?e.width:1,e.subXMin=e.xMin,e.subXMax=e.xMax,e.subYMin=t.axis_rotated?0:e.height2,e.subYMax=t.axis_rotated?e.width2:1,e.x=e.getX(e.xMin,e.xMax,n?void 0:e.x.orgDomain(),function(){return e.xAxis.tickOffset()}),e.y=e.getY(e.yMin,e.yMax,n?t.axis_y_default:e.y.domain()),e.y2=e.getY(e.yMin,e.yMax,n?t.axis_y2_default:e.y2.domain()),e.subX=e.getX(e.xMin,e.xMax,e.orgXDomain,function(t){return t%1?0:e.subXAxis.tickOffset()}),e.subY=e.getY(e.subYMin,e.subYMax,n?t.axis_y_default:e.subY.domain()),e.subY2=e.getY(e.subYMin,e.subYMax,n?t.axis_y2_default:e.subY2.domain()),e.xAxisTickFormat=e.axis.getXAxisTickFormat(),e.xAxisTickValues=e.axis.getXAxisTickValues(),e.yAxisTickValues=e.axis.getYAxisTickValues(),e.y2AxisTickValues=e.axis.getY2AxisTickValues(),e.xAxis=e.axis.getXAxis(e.x,e.xOrient,e.xAxisTickFormat,e.xAxisTickValues,t.axis_x_tick_outer),e.subXAxis=e.axis.getXAxis(e.subX,e.subXOrient,e.xAxisTickFormat,e.xAxisTickValues,t.axis_x_tick_outer),e.yAxis=e.axis.getYAxis(e.y,e.yOrient,t.axis_y_tick_format,e.yAxisTickValues,t.axis_y_tick_outer),e.y2Axis=e.axis.getYAxis(e.y2,e.y2Orient,t.axis_y2_tick_format,e.y2AxisTickValues,t.axis_y2_tick_outer),n||(e.brush&&e.brush.scale(e.subX),t.zoom_enabled&&e.zoom.scale(e.x)),e.updateArc&&e.updateArc()},C.selectPoint=function(e,t,n){var r=this,i=r.config,a=(i.axis_rotated?r.circleY:r.circleX).bind(r),o=(i.axis_rotated?r.circleX:r.circleY).bind(r),c=r.pointSelectR.bind(r);i.data_onselected.call(r.api,t,e.node()),r.main.select("."+s.selectedCircles+r.getTargetSelectorSuffix(t.id)).selectAll("."+s.selectedCircle+"-"+n).data([t]).enter().append("circle").attr("class",function(){return r.generateClass(s.selectedCircle,n)}).attr("cx",a).attr("cy",o).attr("stroke",function(){return r.color(t)}).attr("r",function(e){return 1.4*r.pointSelectR(e)}).transition().duration(100).attr("r",c)},C.unselectPoint=function(e,t,n){var r=this;r.config.data_onunselected.call(r.api,t,e.node()),r.main.select("."+s.selectedCircles+r.getTargetSelectorSuffix(t.id)).selectAll("."+s.selectedCircle+"-"+n).transition().duration(100).attr("r",0).remove()},C.togglePoint=function(e,t,n,r){e?this.selectPoint(t,n,r):this.unselectPoint(t,n,r)},C.selectPath=function(e,t){var n=this;n.config.data_onselected.call(n,t,e.node()),n.config.interaction_brighten&&e.transition().duration(100).style("fill",function(){return n.d3.rgb(n.color(t)).brighter(.75)})},C.unselectPath=function(e,t){var n=this;n.config.data_onunselected.call(n,t,e.node()),n.config.interaction_brighten&&e.transition().duration(100).style("fill",function(){return n.color(t)})},C.togglePath=function(e,t,n,r){e?this.selectPath(t,n,r):this.unselectPath(t,n,r)},C.getToggle=function(e,t){var n,r=this;return"circle"===e.nodeName?n=r.isStepType(t)?function(){}:r.togglePoint:"path"===e.nodeName&&(n=r.togglePath),n},C.toggleShape=function(e,t,n){var r=this,i=r.d3,a=r.config,o=i.select(e),c=o.classed(s.SELECTED),l=r.getToggle(e,t).bind(r);a.data_selection_enabled&&a.data_selection_isselectable(t)&&(a.data_selection_multiple||r.main.selectAll("."+s.shapes+(a.data_selection_grouped?r.getTargetSelectorSuffix(t.id):"")).selectAll("."+s.shape).each(function(e,t){var n=i.select(this);n.classed(s.SELECTED)&&l(!1,n.classed(s.SELECTED,!1),e,t)}),o.classed(s.SELECTED,!c),l(!c,o,t,n))},C.initBar=function(){this.main.select("."+s.chart).append("g").attr("class",s.chartBars)},C.updateTargetsForBar=function(e){var t,n,r=this,i=r.config,a=r.classChartBar.bind(r),o=r.classBars.bind(r),c=r.classFocus.bind(r);t=r.main.select("."+s.chartBars).selectAll("."+s.chartBar).data(e).attr("class",function(e){return a(e)+c(e)}),n=t.enter().append("g").attr("class",a).style("pointer-events","none"),n.append("g").attr("class",o).style("cursor",function(e){return i.data_selection_isselectable(e)?"pointer":null})},C.updateBar=function(e){var t=this,n=t.barData.bind(t),r=t.classBar.bind(t),i=t.initialOpacity.bind(t),a=function(e){return t.color(e.id)};t.mainBar=t.main.selectAll("."+s.bars).selectAll("."+s.bar).data(n),t.mainBar.enter().append("path").attr("class",r).style("stroke",a).style("fill",a),t.mainBar.style("opacity",i),t.mainBar.exit().transition().duration(e).remove()},C.redrawBar=function(e,t){return[(t?this.mainBar.transition(Math.random().toString()):this.mainBar).attr("d",e).style("stroke",this.color).style("fill",this.color).style("opacity",1)]},C.getBarW=function(e,t){var n=this,r=n.config,i="number"==typeof r.bar_width?r.bar_width:t?e.tickInterval()*r.bar_width_ratio/t:0;return r.bar_width_max&&i>r.bar_width_max?r.bar_width_max:i},C.getBars=function(e,t){var n=this;return(t?n.main.selectAll("."+s.bars+n.getTargetSelectorSuffix(t)):n.main).selectAll("."+s.bar+(p(e)?"-"+e:""))},C.expandBars=function(e,t,n){var r=this;n&&r.unexpandBars(),r.getBars(e,t).classed(s.EXPANDED,!0)},C.unexpandBars=function(e){this.getBars(e).classed(s.EXPANDED,!1)},C.generateDrawBar=function(e,t){var n=this,r=n.config,i=n.generateGetBarPoints(e,t);return function(e,t){var n=i(e,t),a=r.axis_rotated?1:0,o=r.axis_rotated?0:1;return"M "+n[0][a]+","+n[0][o]+" L"+n[1][a]+","+n[1][o]+" L"+n[2][a]+","+n[2][o]+" L"+n[3][a]+","+n[3][o]+" z"}},C.generateGetBarPoints=function(e,t){
45var n=this,r=t?n.subXAxis:n.xAxis,i=e.__max__+1,a=n.getBarW(r,i),o=n.getShapeX(a,i,e,!!t),s=n.getShapeY(!!t),c=n.getShapeOffset(n.isBarType,e,!!t),l=a*(n.config.bar_space/2),u=t?n.getSubYScale:n.getYScale;return function(e,t){var r=u.call(n,e.id)(0),i=c(e,t)||r,d=o(e),p=s(e);return n.config.axis_rotated&&(0<e.value&&p<r||e.value<0&&r<p)&&(p=r),[[d+l,i],[d+l,p-(r-i)],[d+a-l,p-(r-i)],[d+a-l,i]]}},C.isWithinBar=function(e){var t=this.d3.mouse(e),n=e.getBoundingClientRect(),r=e.pathSegList.getItem(0),i=e.pathSegList.getItem(1),a=Math.min(r.x,i.x),o=Math.min(r.y,i.y),s=n.width,c=n.height,l=a-2,u=a+s+2,d=o+c+2,p=o-2;return l<t[0]&&t[0]<u&&p<t[1]&&t[1]<d},C.getShapeIndices=function(e){var t,n,r=this,i=r.config,a={},o=0;return r.filterTargetsToShow(r.data.targets.filter(e,r)).forEach(function(e){for(t=0;t<i.data_groups.length;t++)if(!(i.data_groups[t].indexOf(e.id)<0))for(n=0;n<i.data_groups[t].length;n++)if(i.data_groups[t][n]in a){a[e.id]=a[i.data_groups[t][n]];break}g(a[e.id])&&(a[e.id]=o++)}),a.__max__=o-1,a},C.getShapeX=function(e,t,n,r){var i=this,a=r?i.subX:i.x;return function(r){var i=r.id in n?n[r.id]:0;return r.x||0===r.x?a(r.x)-e*(t/2-i):0}},C.getShapeY=function(e){var t=this;return function(n){return(e?t.getSubYScale(n.id):t.getYScale(n.id))(n.value)}},C.getShapeOffset=function(e,t,n){var r=this,i=r.orderTargets(r.filterTargetsToShow(r.data.targets.filter(e,r))),a=i.map(function(e){return e.id});return function(e,o){var s=n?r.getSubYScale(e.id):r.getYScale(e.id),c=s(0),l=c;return i.forEach(function(n){var i=r.isStepType(e)?r.convertValuesToStep(n.values):n.values;n.id!==e.id&&t[n.id]===t[e.id]&&a.indexOf(n.id)<a.indexOf(e.id)&&(void 0!==i[o]&&+i[o].x==+e.x||(o=-1,i.forEach(function(t,n){t.x===e.x&&(o=n)})),o in i&&i[o].value*e.value>=0&&(l+=s(i[o].value)-c))}),l}},C.isWithinShape=function(e,t){var n,r=this,i=r.d3.select(e);return r.isTargetToShow(t.id)?"circle"===e.nodeName?n=r.isStepType(t)?r.isWithinStep(e,r.getYScale(t.id)(t.value)):r.isWithinCircle(e,1.5*r.pointSelectR(t)):"path"===e.nodeName&&(n=!i.classed(s.bar)||r.isWithinBar(e)):n=!1,n},C.getInterpolate=function(e){var t=this,n=t.isInterpolationType(t.config.spline_interpolation_type)?t.config.spline_interpolation_type:"cardinal";return t.isSplineType(e)?n:t.isStepType(e)?t.config.line_step_type:"linear"},C.initLine=function(){this.main.select("."+s.chart).append("g").attr("class",s.chartLines)},C.updateTargetsForLine=function(e){var t,n,r=this,i=r.config,a=r.classChartLine.bind(r),o=r.classLines.bind(r),c=r.classAreas.bind(r),l=r.classCircles.bind(r),u=r.classFocus.bind(r);t=r.main.select("."+s.chartLines).selectAll("."+s.chartLine).data(e).attr("class",function(e){return a(e)+u(e)}),n=t.enter().append("g").attr("class",a).style("opacity",0).style("pointer-events","none"),n.append("g").attr("class",o),n.append("g").attr("class",c),n.append("g").attr("class",function(e){return r.generateClass(s.selectedCircles,e.id)}),n.append("g").attr("class",l).style("cursor",function(e){return i.data_selection_isselectable(e)?"pointer":null}),e.forEach(function(e){r.main.selectAll("."+s.selectedCircles+r.getTargetSelectorSuffix(e.id)).selectAll("."+s.selectedCircle).each(function(t){t.value=e.values[t.index].value})})},C.updateLine=function(e){var t=this;t.mainLine=t.main.selectAll("."+s.lines).selectAll("."+s.line).data(t.lineData.bind(t)),t.mainLine.enter().append("path").attr("class",t.classLine.bind(t)).style("stroke",t.color),t.mainLine.style("opacity",t.initialOpacity.bind(t)).style("shape-rendering",function(e){return t.isStepType(e)?"crispEdges":""}).attr("transform",null),t.mainLine.exit().transition().duration(e).style("opacity",0).remove()},C.redrawLine=function(e,t){return[(t?this.mainLine.transition(Math.random().toString()):this.mainLine).attr("d",e).style("stroke",this.color).style("opacity",1)]},C.generateDrawLine=function(e,t){var n=this,r=n.config,i=n.d3.svg.line(),a=n.generateGetLinePoints(e,t),o=t?n.getSubYScale:n.getYScale,s=function(e){return(t?n.subxx:n.xx).call(n,e)},c=function(e,t){return r.data_groups.length>0?a(e,t)[0][1]:o.call(n,e.id)(e.value)};return i=r.axis_rotated?i.x(c).y(s):i.x(s).y(c),r.line_connectNull||(i=i.defined(function(e){return null!=e.value})),function(e){var a,s=r.line_connectNull?n.filterRemoveNull(e.values):e.values,c=t?n.x:n.subX,l=o.call(n,e.id),u=0,d=0;return n.isLineType(e)?r.data_regions[e.id]?a=n.lineWithRegions(s,c,l,r.data_regions[e.id]):(n.isStepType(e)&&(s=n.convertValuesToStep(s)),a=i.interpolate(n.getInterpolate(e))(s)):(s[0]&&(u=c(s[0].x),d=l(s[0].value)),a=r.axis_rotated?"M "+d+" "+u:"M "+u+" "+d),a||"M 0 0"}},C.generateGetLinePoints=function(e,t){var n=this,r=n.config,i=e.__max__+1,a=n.getShapeX(0,i,e,!!t),o=n.getShapeY(!!t),s=n.getShapeOffset(n.isLineType,e,!!t),c=t?n.getSubYScale:n.getYScale;return function(e,t){var i=c.call(n,e.id)(0),l=s(e,t)||i,u=a(e),d=o(e);return r.axis_rotated&&(0<e.value&&d<i||e.value<0&&i<d)&&(d=i),[[u,d-(i-l)],[u,d-(i-l)],[u,d-(i-l)],[u,d-(i-l)]]}},C.lineWithRegions=function(e,t,n,r){function i(e){return"M"+e[0][0]+" "+e[0][1]+" "+e[1][0]+" "+e[1][1]}var a,o,s,c,l,u,d,p,f,h,m,b,y=this,x=y.config,M="M",_=y.isCategorized()?.5:0,w=[];if(v(r))for(a=0;a<r.length;a++)w[a]={},g(r[a].start)?w[a].start=e[0].x:w[a].start=y.isTimeSeries()?y.parseDate(r[a].start):r[a].start,g(r[a].end)?w[a].end=e[e.length-1].x:w[a].end=y.isTimeSeries()?y.parseDate(r[a].end):r[a].end;for(m=x.axis_rotated?function(e){return n(e.value)}:function(e){return t(e.x)},b=x.axis_rotated?function(e){return t(e.x)}:function(e){return n(e.value)},s=y.isTimeSeries()?function(e,r,a,o){var s,c=e.x.getTime(),u=r.x-e.x,d=new Date(c+u*a),p=new Date(c+u*(a+o));return s=x.axis_rotated?[[n(l(a)),t(d)],[n(l(a+o)),t(p)]]:[[t(d),n(l(a))],[t(p),n(l(a+o))]],i(s)}:function(e,r,a,o){var s;return s=x.axis_rotated?[[n(l(a),!0),t(c(a))],[n(l(a+o),!0),t(c(a+o))]]:[[t(c(a),!0),n(l(a))],[t(c(a+o),!0),n(l(a+o))]],i(s)},a=0;a<e.length;a++){if(g(w)||!function(e,t){var n;for(n=0;n<t.length;n++)if(t[n].start<e&&e<=t[n].end)return!0;return!1}(e[a].x,w))M+=" "+m(e[a])+" "+b(e[a]);else for(c=y.getScale(e[a-1].x+_,e[a].x+_,y.isTimeSeries()),l=y.getScale(e[a-1].value,e[a].value),u=t(e[a].x)-t(e[a-1].x),d=n(e[a].value)-n(e[a-1].value),p=Math.sqrt(Math.pow(u,2)+Math.pow(d,2)),f=2/p,h=2*f,o=f;o<=1;o+=h)M+=s(e[a-1],e[a],o,f);e[a].x}return M},C.updateArea=function(e){var t=this,n=t.d3;t.mainArea=t.main.selectAll("."+s.areas).selectAll("."+s.area).data(t.lineData.bind(t)),t.mainArea.enter().append("path").attr("class",t.classArea.bind(t)).style("fill",t.color).style("opacity",function(){return t.orgAreaOpacity=+n.select(this).style("opacity"),0}),t.mainArea.style("opacity",t.orgAreaOpacity),t.mainArea.exit().transition().duration(e).style("opacity",0).remove()},C.redrawArea=function(e,t){return[(t?this.mainArea.transition(Math.random().toString()):this.mainArea).attr("d",e).style("fill",this.color).style("opacity",this.orgAreaOpacity)]},C.generateDrawArea=function(e,t){var n=this,r=n.config,i=n.d3.svg.area(),a=n.generateGetAreaPoints(e,t),o=t?n.getSubYScale:n.getYScale,s=function(e){return(t?n.subxx:n.xx).call(n,e)},c=function(e,t){return r.data_groups.length>0?a(e,t)[0][1]:o.call(n,e.id)(n.getAreaBaseValue(e.id))},l=function(e,t){return r.data_groups.length>0?a(e,t)[1][1]:o.call(n,e.id)(e.value)};return i=r.axis_rotated?i.x0(c).x1(l).y(s):i.x(s).y0(r.area_above?0:c).y1(l),r.line_connectNull||(i=i.defined(function(e){return null!==e.value})),function(e){var t,a=r.line_connectNull?n.filterRemoveNull(e.values):e.values,o=0,s=0;return n.isAreaType(e)?(n.isStepType(e)&&(a=n.convertValuesToStep(a)),t=i.interpolate(n.getInterpolate(e))(a)):(a[0]&&(o=n.x(a[0].x),s=n.getYScale(e.id)(a[0].value)),t=r.axis_rotated?"M "+s+" "+o:"M "+o+" "+s),t||"M 0 0"}},C.getAreaBaseValue=function(){return 0},C.generateGetAreaPoints=function(e,t){var n=this,r=n.config,i=e.__max__+1,a=n.getShapeX(0,i,e,!!t),o=n.getShapeY(!!t),s=n.getShapeOffset(n.isAreaType,e,!!t),c=t?n.getSubYScale:n.getYScale;return function(e,t){var i=c.call(n,e.id)(0),l=s(e,t)||i,u=a(e),d=o(e);return r.axis_rotated&&(0<e.value&&d<i||e.value<0&&i<d)&&(d=i),[[u,l],[u,d-(i-l)],[u,d-(i-l)],[u,l]]}},C.updateCircle=function(){var e=this;e.mainCircle=e.main.selectAll("."+s.circles).selectAll("."+s.circle).data(e.lineOrScatterData.bind(e)),e.mainCircle.enter().append("circle").attr("class",e.classCircle.bind(e)).attr("r",e.pointR.bind(e)).style("fill",e.color),e.mainCircle.style("opacity",e.initialOpacityForCircle.bind(e)),e.mainCircle.exit().remove()},C.redrawCircle=function(e,t,n){var r=this.main.selectAll("."+s.selectedCircle);return[(n?this.mainCircle.transition(Math.random().toString()):this.mainCircle).style("opacity",this.opacityForCircle.bind(this)).style("fill",this.color).attr("cx",e).attr("cy",t),(n?r.transition(Math.random().toString()):r).attr("cx",e).attr("cy",t)]},C.circleX=function(e){return e.x||0===e.x?this.x(e.x):null},C.updateCircleY=function(){var e,t,n=this;n.config.data_groups.length>0?(e=n.getShapeIndices(n.isLineType),t=n.generateGetLinePoints(e),n.circleY=function(e,n){return t(e,n)[0][1]}):n.circleY=function(e){return n.getYScale(e.id)(e.value)}},C.getCircles=function(e,t){var n=this;return(t?n.main.selectAll("."+s.circles+n.getTargetSelectorSuffix(t)):n.main).selectAll("."+s.circle+(p(e)?"-"+e:""))},C.expandCircles=function(e,t,n){var r=this,i=r.pointExpandedR.bind(r);n&&r.unexpandCircles(),r.getCircles(e,t).classed(s.EXPANDED,!0).attr("r",i)},C.unexpandCircles=function(e){var t=this,n=t.pointR.bind(t);t.getCircles(e).filter(function(){return t.d3.select(this).classed(s.EXPANDED)}).classed(s.EXPANDED,!1).attr("r",n)},C.pointR=function(e){var t=this,n=t.config;return t.isStepType(e)?0:f(n.point_r)?n.point_r(e):n.point_r},C.pointExpandedR=function(e){var t=this,n=t.config;return n.point_focus_expand_enabled?f(n.point_focus_expand_r)?n.point_focus_expand_r(e):n.point_focus_expand_r?n.point_focus_expand_r:1.75*t.pointR(e):t.pointR(e)},C.pointSelectR=function(e){var t=this,n=t.config;return f(n.point_select_r)?n.point_select_r(e):n.point_select_r?n.point_select_r:4*t.pointR(e)},C.isWithinCircle=function(e,t){var n=this.d3,r=n.mouse(e),i=n.select(e),a=+i.attr("cx"),o=+i.attr("cy");return Math.sqrt(Math.pow(a-r[0],2)+Math.pow(o-r[1],2))<t},C.isWithinStep=function(e,t){return Math.abs(t-this.d3.mouse(e)[1])<30},C.getCurrentWidth=function(){var e=this,t=e.config;return t.size_width?t.size_width:e.getParentWidth()},C.getCurrentHeight=function(){var e=this,t=e.config,n=t.size_height?t.size_height:e.getParentHeight();return n>0?n:320/(e.hasType("gauge")&&!t.gauge_fullCircle?2:1)},C.getCurrentPaddingTop=function(){var e=this,t=e.config,n=p(t.padding_top)?t.padding_top:0;return e.title&&e.title.node()&&(n+=e.getTitlePadding()),n},C.getCurrentPaddingBottom=function(){var e=this.config;return p(e.padding_bottom)?e.padding_bottom:0},C.getCurrentPaddingLeft=function(e){var t=this,n=t.config;return p(n.padding_left)?n.padding_left:n.axis_rotated?n.axis_x_show?Math.max(b(t.getAxisWidthByAxisId("x",e)),40):1:!n.axis_y_show||n.axis_y_inner?t.axis.getYAxisLabelPosition().isOuter?30:1:b(t.getAxisWidthByAxisId("y",e))},C.getCurrentPaddingRight=function(){var e=this,t=e.config,n=e.isLegendRight?e.getLegendWidth()+20:0;return p(t.padding_right)?t.padding_right+1:t.axis_rotated?10+n:!t.axis_y2_show||t.axis_y2_inner?2+n+(e.axis.getY2AxisLabelPosition().isOuter?20:0):b(e.getAxisWidthByAxisId("y2"))+n},C.getParentRectValue=function(e){for(var t,n=this.selectChart.node();n&&"BODY"!==n.tagName;){try{t=n.getBoundingClientRect()[e]}catch(r){"width"===e&&(t=n.offsetWidth)}if(t)break;n=n.parentNode}return t},C.getParentWidth=function(){return this.getParentRectValue("width")},C.getParentHeight=function(){var e=this.selectChart.style("height");return e.indexOf("px")>0?+e.replace("px",""):0},C.getSvgLeft=function(e){var t=this,n=t.config,r=n.axis_rotated||!n.axis_rotated&&!n.axis_y_inner,i=n.axis_rotated?s.axisX:s.axisY,a=t.main.select("."+i).node(),o=a&&r?a.getBoundingClientRect():{right:0},c=t.selectChart.node().getBoundingClientRect(),l=t.hasArcType(),u=o.right-c.left-(l?0:t.getCurrentPaddingLeft(e));return u>0?u:0},C.getAxisWidthByAxisId=function(e,t){var n=this,r=n.axis.getLabelPositionById(e);return n.axis.getMaxTickWidth(e,t)+(r.isInner?20:40)},C.getHorizontalAxisHeight=function(e){var t=this,n=t.config,r=30;return"x"!==e||n.axis_x_show?"x"===e&&n.axis_x_height?n.axis_x_height:"y"!==e||n.axis_y_show?"y2"!==e||n.axis_y2_show?("x"===e&&!n.axis_rotated&&n.axis_x_tick_rotate&&(r=30+t.axis.getMaxTickWidth(e)*Math.cos(Math.PI*(90-n.axis_x_tick_rotate)/180)),"y"===e&&n.axis_rotated&&n.axis_y_tick_rotate&&(r=30+t.axis.getMaxTickWidth(e)*Math.cos(Math.PI*(90-n.axis_y_tick_rotate)/180)),r+(t.axis.getLabelPositionById(e).isInner?0:10)+("y2"===e?-10:0)):t.rotated_padding_top:!n.legend_show||t.isLegendRight||t.isLegendInset?1:10:8},C.getEventRectWidth=function(){return Math.max(0,this.xAxis.tickInterval())},C.initBrush=function(){var e=this,t=e.d3;e.brush=t.svg.brush().on("brush",function(){e.redrawForBrush()}),e.brush.update=function(){return e.context&&e.context.select("."+s.brush).call(this),this},e.brush.scale=function(t){return e.config.axis_rotated?this.y(t):this.x(t)}},C.initSubchart=function(){var e=this,t=e.config,n=e.context=e.svg.append("g").attr("transform",e.getTranslate("context")),r=t.subchart_show?"visible":"hidden";n.style("visibility",r),n.append("g").attr("clip-path",e.clipPathForSubchart).attr("class",s.chart),n.select("."+s.chart).append("g").attr("class",s.chartBars),n.select("."+s.chart).append("g").attr("class",s.chartLines),n.append("g").attr("clip-path",e.clipPath).attr("class",s.brush).call(e.brush),e.axes.subx=n.append("g").attr("class",s.axisX).attr("transform",e.getTranslate("subx")).attr("clip-path",t.axis_rotated?"":e.clipPathForXAxis).style("visibility",t.subchart_axis_x_show?r:"hidden")},C.updateTargetsForSubchart=function(e){var t,n,r,i,a=this,o=a.context,c=a.config,l=a.classChartBar.bind(a),u=a.classBars.bind(a),d=a.classChartLine.bind(a),p=a.classLines.bind(a),f=a.classAreas.bind(a);c.subchart_show&&(i=o.select("."+s.chartBars).selectAll("."+s.chartBar).data(e).attr("class",l),r=i.enter().append("g").style("opacity",0).attr("class",l),r.append("g").attr("class",u),n=o.select("."+s.chartLines).selectAll("."+s.chartLine).data(e).attr("class",d),t=n.enter().append("g").style("opacity",0).attr("class",d),t.append("g").attr("class",p),t.append("g").attr("class",f),o.selectAll("."+s.brush+" rect").attr(c.axis_rotated?"width":"height",c.axis_rotated?a.width2:a.height2))},C.updateBarForSubchart=function(e){var t=this;t.contextBar=t.context.selectAll("."+s.bars).selectAll("."+s.bar).data(t.barData.bind(t)),t.contextBar.enter().append("path").attr("class",t.classBar.bind(t)).style("stroke","none").style("fill",t.color),t.contextBar.style("opacity",t.initialOpacity.bind(t)),t.contextBar.exit().transition().duration(e).style("opacity",0).remove()},C.redrawBarForSubchart=function(e,t,n){(t?this.contextBar.transition(Math.random().toString()).duration(n):this.contextBar).attr("d",e).style("opacity",1)},C.updateLineForSubchart=function(e){var t=this;t.contextLine=t.context.selectAll("."+s.lines).selectAll("."+s.line).data(t.lineData.bind(t)),t.contextLine.enter().append("path").attr("class",t.classLine.bind(t)).style("stroke",t.color),t.contextLine.style("opacity",t.initialOpacity.bind(t)),t.contextLine.exit().transition().duration(e).style("opacity",0).remove()},C.redrawLineForSubchart=function(e,t,n){(t?this.contextLine.transition(Math.random().toString()).duration(n):this.contextLine).attr("d",e).style("opacity",1)},C.updateAreaForSubchart=function(e){var t=this,n=t.d3;t.contextArea=t.context.selectAll("."+s.areas).selectAll("."+s.area).data(t.lineData.bind(t)),t.contextArea.enter().append("path").attr("class",t.classArea.bind(t)).style("fill",t.color).style("opacity",function(){return t.orgAreaOpacity=+n.select(this).style("opacity"),0}),t.contextArea.style("opacity",0),t.contextArea.exit().transition().duration(e).style("opacity",0).remove()},C.redrawAreaForSubchart=function(e,t,n){(t?this.contextArea.transition(Math.random().toString()).duration(n):this.contextArea).attr("d",e).style("fill",this.color).style("opacity",this.orgAreaOpacity)},C.redrawSubchart=function(e,t,n,r,i,a,o){var s,c,l,u=this,d=u.d3,p=u.config;u.context.style("visibility",p.subchart_show?"visible":"hidden"),p.subchart_show&&(d.event&&"zoom"===d.event.type&&u.brush.extent(u.x.orgDomain()).update(),e&&(u.brush.empty()||u.brush.extent(u.x.orgDomain()).update(),s=u.generateDrawArea(i,!0),c=u.generateDrawBar(a,!0),l=u.generateDrawLine(o,!0),u.updateBarForSubchart(n),u.updateLineForSubchart(n),u.updateAreaForSubchart(n),u.redrawBarForSubchart(c,n,n),u.redrawLineForSubchart(l,n,n),u.redrawAreaForSubchart(s,n,n)))},C.redrawForBrush=function(){var e=this,t=e.x;e.redraw({withTransition:!1,withY:e.config.zoom_rescale,withSubchart:!1,withUpdateXDomain:!0,withDimension:!1}),e.config.subchart_onbrush.call(e.api,t.orgDomain())},C.transformContext=function(e,t){var n,r=this;t&&t.axisSubX?n=t.axisSubX:(n=r.context.select("."+s.axisX),e&&(n=n.transition())),r.context.attr("transform",r.getTranslate("context")),n.attr("transform",r.getTranslate("subx"))},C.getDefaultExtent=function(){var e=this,t=e.config,n=f(t.axis_x_extent)?t.axis_x_extent(e.getXDomain(e.data.targets)):t.axis_x_extent;return e.isTimeSeries()&&(n=[e.parseDate(n[0]),e.parseDate(n[1])]),n},C.initText=function(){var e=this;e.main.select("."+s.chart).append("g").attr("class",s.chartTexts),e.mainText=e.d3.selectAll([])},C.updateTargetsForText=function(e){var t,n,r=this,i=r.classChartText.bind(r),a=r.classTexts.bind(r),o=r.classFocus.bind(r);t=r.main.select("."+s.chartTexts).selectAll("."+s.chartText).data(e).attr("class",function(e){return i(e)+o(e)}),n=t.enter().append("g").attr("class",i).style("opacity",0).style("pointer-events","none"),n.append("g").attr("class",a)},C.updateText=function(e){var t=this,n=t.config,r=t.barOrLineData.bind(t),i=t.classText.bind(t);t.mainText=t.main.selectAll("."+s.texts).selectAll("."+s.text).data(r),t.mainText.enter().append("text").attr("class",i).attr("text-anchor",function(e){return n.axis_rotated?e.value<0?"end":"start":"middle"}).style("stroke","none").style("fill",function(e){return t.color(e)}).style("fill-opacity",0),t.mainText.text(function(e,n,r){return t.dataLabelFormat(e.id)(e.value,e.id,n,r)}),t.mainText.exit().transition().duration(e).style("fill-opacity",0).remove()},C.redrawText=function(e,t,n,r){return[(r?this.mainText.transition():this.mainText).attr("x",e).attr("y",t).style("fill",this.color).style("fill-opacity",n?0:this.opacityForText.bind(this))]},C.getTextRect=function(e,t,n){var r,i=this.d3.select("body").append("div").classed("c3",!0),a=i.append("svg").style("visibility","hidden").style("position","fixed").style("top",0).style("left",0),o=this.d3.select(n).style("font");return a.selectAll(".dummy").data([e]).enter().append("text").classed(t||"",!0).style("font",o).text(e).each(function(){r=this.getBoundingClientRect()}),i.remove(),r},C.generateXYForText=function(e,t,n,r){var i=this,a=i.generateGetAreaPoints(e,!1),o=i.generateGetBarPoints(t,!1),s=i.generateGetLinePoints(n,!1),c=r?i.getXForText:i.getYForText;return function(e,t){var n=i.isAreaType(e)?a:i.isBarType(e)?o:s;return c.call(i,n(e,t),e,this)}},C.getXForText=function(e,t,n){var r,i,a=this,o=n.getBoundingClientRect();return a.config.axis_rotated?(i=a.isBarType(t)?4:6,r=e[2][1]+i*(t.value<0?-1:1)):r=a.hasType("bar")?(e[2][0]+e[0][0])/2:e[0][0],null===t.value&&(r>a.width?r=a.width-o.width:r<0&&(r=4)),r},C.getYForText=function(e,t,n){var r,i=this,a=n.getBoundingClientRect();return i.config.axis_rotated?r=(e[0][0]+e[2][0]+.6*a.height)/2:(r=e[2][1],t.value<0||0===t.value&&!i.hasPositiveValue?(r+=a.height,i.isBarType(t)&&i.isSafari()?r-=3:!i.isBarType(t)&&i.isChrome()&&(r+=3)):r+=i.isBarType(t)?-3:-6),null!==t.value||i.config.axis_rotated||(r<a.height?r=a.height:r>this.height&&(r=this.height-4)),r},C.initTitle=function(){var e=this;e.title=e.svg.append("text").text(e.config.title_text).attr("class",e.CLASS.title)},C.redrawTitle=function(){var e=this;e.title.attr("x",e.xForTitle.bind(e)).attr("y",e.yForTitle.bind(e))},C.xForTitle=function(){var e=this,t=e.config,n=t.title_position||"left";return n.indexOf("right")>=0?e.currentWidth-e.getTextRect(e.title.node().textContent,e.CLASS.title,e.title.node()).width-t.title_padding.right:n.indexOf("center")>=0?(e.currentWidth-e.getTextRect(e.title.node().textContent,e.CLASS.title,e.title.node()).width)/2:t.title_padding.left},C.yForTitle=function(){var e=this;return e.config.title_padding.top+e.getTextRect(e.title.node().textContent,e.CLASS.title,e.title.node()).height},C.getTitlePadding=function(){var e=this;return e.yForTitle()+e.config.title_padding.bottom},C.initTooltip=function(){var e,t=this,n=t.config;if(t.tooltip=t.selectChart.style("position","relative").append("div").attr("class",s.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none"),n.tooltip_init_show){if(t.isTimeSeries()&&m(n.tooltip_init_x)){for(n.tooltip_init_x=t.parseDate(n.tooltip_init_x),e=0;e<t.data.targets[0].values.length&&t.data.targets[0].values[e].x-n.tooltip_init_x!=0;e++);n.tooltip_init_x=e}t.tooltip.html(n.tooltip_contents.call(t,t.data.targets.map(function(e){return t.addName(e.values[n.tooltip_init_x])}),t.axis.getXAxisTickFormat(),t.getYFormat(t.hasArcType()),t.color)),t.tooltip.style("top",n.tooltip_init_position.top).style("left",n.tooltip_init_position.left).style("display","block")}},C.getTooltipSortFunction=function(){var e=this,t=e.config;if(0!==t.data_groups.length&&void 0===t.tooltip_order){var n=e.orderTargets(e.data.targets).map(function(e){return e.id});return(e.isOrderAsc()||e.isOrderDesc())&&(n=n.reverse()),function(e,t){return n.indexOf(e.id)-n.indexOf(t.id)}}var r=t.tooltip_order;void 0===r&&(r=t.data_order);var i=function(e){return e?e.value:null};if(m(r)&&"asc"===r.toLowerCase())return function(e,t){return i(e)-i(t)};if(m(r)&&"desc"===r.toLowerCase())return function(e,t){return i(t)-i(e)};if(f(r)){var a=r;return void 0===t.tooltip_order&&(a=function(e,t){return r(e?{id:e.id,values:[e]}:null,t?{id:t.id,values:[t]}:null)}),a}return h(r)?function(e,t){return r.indexOf(e.id)-r.indexOf(t.id)}:void 0},C.getTooltipContent=function(e,t,n,r){var i,a,o,s,c,l,u=this,d=u.config,p=d.tooltip_format_title||t,f=d.tooltip_format_name||function(e){return e},h=d.tooltip_format_value||n,m=this.getTooltipSortFunction();for(m&&e.sort(m),a=0;a<e.length;a++)if(e[a]&&(e[a].value||0===e[a].value)&&(i||(o=S(p?p(e[a].x):e[a].x),i="<table class='"+u.CLASS.tooltip+"'>"+(o||0===o?"<tr><th colspan='2'>"+o+"</th></tr>":"")),void 0!==(s=S(h(e[a].value,e[a].ratio,e[a].id,e[a].index,e))))){if(null===e[a].name)continue;c=S(f(e[a].name,e[a].ratio,e[a].id,e[a].index)),l=u.levelColor?u.levelColor(e[a].value):r(e[a].id),i+="<tr class='"+u.CLASS.tooltipName+"-"+u.getTargetSelectorSuffix(e[a].id)+"'>",i+="<td class='name'><span style='background-color:"+l+"'></span>"+c+"</td>",i+="<td class='value'>"+s+"</td>",i+="</tr>"}return i+"</table>"},C.tooltipPosition=function(e,t,n,r){var i,a,o,s,c,l=this,u=l.config,d=l.d3,p=l.hasArcType(),f=d.mouse(r);return p?(a=(l.width-(l.isLegendRight?l.getLegendWidth():0))/2+f[0],s=l.height/2+f[1]+20):(i=l.getSvgLeft(!0),u.axis_rotated?(a=i+f[0]+100,o=a+t,c=l.currentWidth-l.getCurrentPaddingRight(),s=l.x(e[0].x)+20):(a=i+l.getCurrentPaddingLeft(!0)+l.x(e[0].x)+20,o=a+t,c=i+l.currentWidth-l.getCurrentPaddingRight(),s=f[1]+15),o>c&&(a-=o-c+20),s+n>l.currentHeight&&(s-=n+30)),s<0&&(s=0),{top:s,left:a}},C.showTooltip=function(e,t){var n,r,i,a=this,o=a.config,s=a.hasArcType(),c=e.filter(function(e){return e&&p(e.value)}),l=o.tooltip_position||C.tooltipPosition;0!==c.length&&o.tooltip_show&&(a.tooltip.html(o.tooltip_contents.call(a,e,a.axis.getXAxisTickFormat(),a.getYFormat(s),a.color)).style("display","block"),n=a.tooltip.property("offsetWidth"),r=a.tooltip.property("offsetHeight"),i=l.call(this,c,n,r,t),a.tooltip.style("top",i.top+"px").style("left",i.left+"px"))},C.hideTooltip=function(){this.tooltip.style("display","none")},C.setTargetType=function(e,t){var n=this,r=n.config;n.mapToTargetIds(e).forEach(function(e){n.withoutFadeIn[e]=t===r.data_types[e],r.data_types[e]=t}),e||(r.data_type=t)},C.hasType=function(e,t){var n=this,r=n.config.data_types,i=!1;return t=t||n.data.targets,t&&t.length?t.forEach(function(t){var n=r[t.id];(n&&n.indexOf(e)>=0||!n&&"line"===e)&&(i=!0)}):Object.keys(r).length?Object.keys(r).forEach(function(t){r[t]===e&&(i=!0)}):i=n.config.data_type===e,i},C.hasArcType=function(e){return this.hasType("pie",e)||this.hasType("donut",e)||this.hasType("gauge",e)},C.isLineType=function(e){var t=this.config,n=m(e)?e:e.id;return!t.data_types[n]||["line","spline","area","area-spline","step","area-step"].indexOf(t.data_types[n])>=0},C.isStepType=function(e){var t=m(e)?e:e.id;return["step","area-step"].indexOf(this.config.data_types[t])>=0},C.isSplineType=function(e){var t=m(e)?e:e.id;return["spline","area-spline"].indexOf(this.config.data_types[t])>=0},C.isAreaType=function(e){var t=m(e)?e:e.id;return["area","area-spline","area-step"].indexOf(this.config.data_types[t])>=0},C.isBarType=function(e){var t=m(e)?e:e.id;return"bar"===this.config.data_types[t]},C.isScatterType=function(e){var t=m(e)?e:e.id;return"scatter"===this.config.data_types[t]},C.isPieType=function(e){var t=m(e)?e:e.id;return"pie"===this.config.data_types[t]},C.isGaugeType=function(e){var t=m(e)?e:e.id;return"gauge"===this.config.data_types[t]},C.isDonutType=function(e){var t=m(e)?e:e.id;return"donut"===this.config.data_types[t]},C.isArcType=function(e){return this.isPieType(e)||this.isDonutType(e)||this.isGaugeType(e)},C.lineData=function(e){return this.isLineType(e)?[e]:[]},C.arcData=function(e){return this.isArcType(e.data)?[e]:[]},C.barData=function(e){return this.isBarType(e)?e.values:[]},C.lineOrScatterData=function(e){return this.isLineType(e)||this.isScatterType(e)?e.values:[]},C.barOrLineData=function(e){return this.isBarType(e)||this.isLineType(e)?e.values:[]},C.isInterpolationType=function(e){return["linear","linear-closed","basis","basis-open","basis-closed","bundle","cardinal","cardinal-open","cardinal-closed","monotone"].indexOf(e)>=0},C.isSafari=function(){var e=window.navigator.userAgent;return e.indexOf("Safari")>=0&&e.indexOf("Chrome")<0},C.isChrome=function(){return window.navigator.userAgent.indexOf("Chrome")>=0},C.initZoom=function(){var e,t=this,n=t.d3,r=t.config;t.zoom=n.behavior.zoom().on("zoomstart",function(){e=n.event.sourceEvent,t.zoom.altDomain=n.event.sourceEvent.altKey?t.x.orgDomain():null,r.zoom_onzoomstart.call(t.api,n.event.sourceEvent)}).on("zoom",function(){t.redrawForZoom.call(t)}).on("zoomend",function(){var i=n.event.sourceEvent;i&&e.clientX===i.clientX&&e.clientY===i.clientY||(t.redrawEventRect(),t.updateZoom(),r.zoom_onzoomend.call(t.api,t.x.orgDomain()))}),t.zoom.scale=function(e){return r.axis_rotated?this.y(e):this.x(e)},t.zoom.orgScaleExtent=function(){var e=r.zoom_extent?r.zoom_extent:[1,10];return[e[0],Math.max(t.getMaxDataCount()/e[1],e[1])]},t.zoom.updateScaleExtent=function(){var e=x(t.x.orgDomain())/x(t.getZoomDomain()),n=this.orgScaleExtent();return this.scaleExtent([n[0]*e,n[1]*e]),this}},C.getZoomDomain=function(){var e=this,t=e.config,n=e.d3;return[n.min([e.orgXDomain[0],t.zoom_x_min]),n.max([e.orgXDomain[1],t.zoom_x_max])]},C.updateZoom=function(){var e=this,t=e.config.zoom_enabled?e.zoom:function(){};e.main.select("."+s.zoomRect).call(t).on("dblclick.zoom",null),e.main.selectAll("."+s.eventRect).call(t).on("dblclick.zoom",null)},C.redrawForZoom=function(){var e=this,t=e.d3,n=e.config,r=e.zoom,i=e.x;if(n.zoom_enabled&&0!==e.filterTargetsToShow(e.data.targets).length){if("mousemove"===t.event.sourceEvent.type&&r.altDomain)return i.domain(r.altDomain),void r.scale(i).updateScaleExtent();e.isCategorized()&&i.orgDomain()[0]===e.orgXDomain[0]&&i.domain([e.orgXDomain[0]-1e-10,i.orgDomain()[1]]),e.redraw({withTransition:!1,withY:n.zoom_rescale,withSubchart:!1,withEventRect:!1,withDimension:!1}),"mousemove"===t.event.sourceEvent.type&&(e.cancelClick=!0),n.zoom_onzoom.call(e.api,i.orgDomain())}},E})},{d3:265}],265:[function(e,t,n){!function(){function e(e){return e&&(e.ownerDocument||e.document||e).documentElement}function n(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}function r(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function i(e){return null===e?NaN:+e}function a(e){return!isNaN(e)}function o(e){return{left:function(t,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);r<i;){var a=r+i>>>1;e(t[a],n)<0?r=a+1:i=a}return r},right:function(t,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);r<i;){var a=r+i>>>1;e(t[a],n)>0?i=a:r=a+1}return r}}}function s(e){return e.length}function c(e){for(var t=1;e*t%1;)t*=10;return t}function l(e,t){for(var n in t)Object.defineProperty(e.prototype,n,{value:t[n],enumerable:!1})}function u(){this._=Object.create(null)}function d(e){return(e+="")===xo||e[0]===Mo?Mo+e:e}function p(e){return(e+="")[0]===Mo?e.slice(1):e}function f(e){return d(e)in this._}function h(e){return(e=d(e))in this._&&delete this._[e]}function m(){var e=[];for(var t in this._)e.push(p(t));return e}function g(){var e=0;for(var t in this._)++e;return e}function v(){for(var e in this._)return!1;return!0}function b(){this._=Object.create(null)}function y(e){return e}function x(e,t,n){return function(){var r=n.apply(t,arguments);return r===t?e:r}}function M(e,t){if(t in e)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var n=0,r=_o.length;n<r;++n){var i=_o[n]+t;if(i in e)return i}}function _(){}function w(){}function A(e){function t(){for(var t,r=n,i=-1,a=r.length;++i<a;)(t=r[i].on)&&t.apply(this,arguments);return e}var n=[],r=new u;return t.on=function(t,i){var a,o=r.get(t);return arguments.length<2?o&&o.on:(o&&(o.on=null,n=n.slice(0,a=n.indexOf(o)).concat(n.slice(a+1)),r.remove(t)),i&&n.push(r.set(t,{on:i})),e)},t}function S(){co.event.preventDefault()}function k(){for(var e,t=co.event;e=t.sourceEvent;)t=e;return t}function $(e){for(var t=new w,n=0,r=arguments.length;++n<r;)t[arguments[n]]=A(t);return t.of=function(n,r){return function(i){try{var a=i.sourceEvent=co.event;i.target=e,co.event=i,t[i.type].apply(n,r)}finally{co.event=a}}},t}function T(e){return Ao(e,To),e}function C(e){return"function"==typeof e?e:function(){return So(e,this)}}function E(e){return"function"==typeof e?e:function(){return ko(e,this)}}function O(e,t){function n(){this.removeAttribute(e)}function r(){this.removeAttributeNS(e.space,e.local)}function i(){this.setAttribute(e,t)}function a(){this.setAttributeNS(e.space,e.local,t)}function o(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}function s(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}return e=co.ns.qualify(e),null==t?e.local?r:n:"function"==typeof t?e.local?s:o:e.local?a:i}function z(e){return e.trim().replace(/\s+/g," ")}function L(e){return new RegExp("(?:^|\\s+)"+co.requote(e)+"(?:\\s+|$)","g")}function N(e){return(e+"").trim().split(/^|\s+/)}function P(e,t){function n(){for(var n=-1;++n<i;)e[n](this,t)}function r(){for(var n=-1,r=t.apply(this,arguments);++n<i;)e[n](this,r)}e=N(e).map(I);var i=e.length;return"function"==typeof t?r:n}function I(e){var t=L(e);return function(n,r){if(i=n.classList)return r?i.add(e):i.remove(e);var i=n.getAttribute("class")||"";r?(t.lastIndex=0,t.test(i)||n.setAttribute("class",z(i+" "+e))):n.setAttribute("class",z(i.replace(t," ")))}}function D(e,t,n){function r(){this.style.removeProperty(e)}function i(){this.style.setProperty(e,t,n)}function a(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}return null==t?r:"function"==typeof t?a:i}function R(e,t){
46function n(){delete this[e]}function r(){this[e]=t}function i(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}return null==t?n:"function"==typeof t?i:r}function j(e){function t(){var t=this.ownerDocument,n=this.namespaceURI;return n===Co&&t.documentElement.namespaceURI===Co?t.createElement(e):t.createElementNS(n,e)}function n(){return this.ownerDocument.createElementNS(e.space,e.local)}return"function"==typeof e?e:(e=co.ns.qualify(e)).local?n:t}function q(){var e=this.parentNode;e&&e.removeChild(this)}function B(e){return{__data__:e}}function W(e){return function(){return $o(this,e)}}function H(e){return arguments.length||(e=r),function(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}}function F(e,t){for(var n=0,r=e.length;n<r;n++)for(var i,a=e[n],o=0,s=a.length;o<s;o++)(i=a[o])&&t(i,o,n);return e}function X(e){return Ao(e,Oo),e}function U(e){var t,n;return function(r,i,a){var o,s=e[a].update,c=s.length;for(a!=n&&(n=a,t=0),i>=t&&(t=i+1);!(o=s[t])&&++t<c;);return o}}function V(e,t,n){function r(){var t=this[o];t&&(this.removeEventListener(e,t,t.$),delete this[o])}function i(){var i=c(t,uo(arguments));r.call(this),this.addEventListener(e,this[o]=i,i.$=n),i._=t}function a(){var t,n=new RegExp("^__on([^.]+)"+co.requote(e)+"$");for(var r in this)if(t=r.match(n)){var i=this[r];this.removeEventListener(t[1],i,i.$),delete this[r]}}var o="__on"+e,s=e.indexOf("."),c=G;s>0&&(e=e.slice(0,s));var l=zo.get(e);return l&&(e=l,c=Y),s?t?i:r:t?_:a}function G(e,t){return function(n){var r=co.event;co.event=n,t[0]=this.__data__;try{e.apply(this,t)}finally{co.event=r}}}function Y(e,t){var n=G(e,t);return function(e){var t=this,r=e.relatedTarget;r&&(r===t||8&r.compareDocumentPosition(t))||n.call(t,e)}}function Q(t){var r=".dragsuppress-"+ ++No,i="click"+r,a=co.select(n(t)).on("touchmove"+r,S).on("dragstart"+r,S).on("selectstart"+r,S);if(null==Lo&&(Lo=!("onselectstart"in t)&&M(t.style,"userSelect")),Lo){var o=e(t).style,s=o[Lo];o[Lo]="none"}return function(e){if(a.on(r,null),Lo&&(o[Lo]=s),e){var t=function(){a.on(i,null)};a.on(i,function(){S(),t()},!0),setTimeout(t,0)}}}function K(e,t){t.changedTouches&&(t=t.changedTouches[0]);var r=e.ownerSVGElement||e;if(r.createSVGPoint){var i=r.createSVGPoint();if(Po<0){var a=n(e);if(a.scrollX||a.scrollY){r=co.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var o=r[0][0].getScreenCTM();Po=!(o.f||o.e),r.remove()}}return Po?(i.x=t.pageX,i.y=t.pageY):(i.x=t.clientX,i.y=t.clientY),i=i.matrixTransform(e.getScreenCTM().inverse()),[i.x,i.y]}var s=e.getBoundingClientRect();return[t.clientX-s.left-e.clientLeft,t.clientY-s.top-e.clientTop]}function Z(){return co.event.changedTouches[0].identifier}function J(e){return e>0?1:e<0?-1:0}function ee(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function te(e){return e>1?0:e<-1?Ro:Math.acos(e)}function ne(e){return e>1?Bo:e<-1?-Bo:Math.asin(e)}function re(e){return((e=Math.exp(e))-1/e)/2}function ie(e){return((e=Math.exp(e))+1/e)/2}function ae(e){return((e=Math.exp(2*e))-1)/(e+1)}function oe(e){return(e=Math.sin(e/2))*e}function se(){}function ce(e,t,n){return this instanceof ce?(this.h=+e,this.s=+t,void(this.l=+n)):arguments.length<2?e instanceof ce?new ce(e.h,e.s,e.l):_e(""+e,we,ce):new ce(e,t,n)}function le(e,t,n){function r(e){return e>360?e-=360:e<0&&(e+=360),e<60?a+(o-a)*e/60:e<180?o:e<240?a+(o-a)*(240-e)/60:a}function i(e){return Math.round(255*r(e))}var a,o;return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)?0:t<0?0:t>1?1:t,n=n<0?0:n>1?1:n,o=n<=.5?n*(1+t):n+t-n*t,a=2*n-o,new be(i(e+120),i(e),i(e-120))}function ue(e,t,n){return this instanceof ue?(this.h=+e,this.c=+t,void(this.l=+n)):arguments.length<2?e instanceof ue?new ue(e.h,e.c,e.l):e instanceof pe?he(e.l,e.a,e.b):he((e=Ae((e=co.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new ue(e,t,n)}function de(e,t,n){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new pe(n,Math.cos(e*=Wo)*t,Math.sin(e)*t)}function pe(e,t,n){return this instanceof pe?(this.l=+e,this.a=+t,void(this.b=+n)):arguments.length<2?e instanceof pe?new pe(e.l,e.a,e.b):e instanceof ue?de(e.h,e.c,e.l):Ae((e=be(e)).r,e.g,e.b):new pe(e,t,n)}function fe(e,t,n){var r=(e+16)/116,i=r+t/500,a=r-n/200;return i=me(i)*Ko,r=me(r)*Zo,a=me(a)*Jo,new be(ve(3.2404542*i-1.5371385*r-.4985314*a),ve(-.969266*i+1.8760108*r+.041556*a),ve(.0556434*i-.2040259*r+1.0572252*a))}function he(e,t,n){return e>0?new ue(Math.atan2(n,t)*Ho,Math.sqrt(t*t+n*n),e):new ue(NaN,NaN,e)}function me(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function ge(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function ve(e){return Math.round(255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function be(e,t,n){return this instanceof be?(this.r=~~e,this.g=~~t,void(this.b=~~n)):arguments.length<2?e instanceof be?new be(e.r,e.g,e.b):_e(""+e,be,le):new be(e,t,n)}function ye(e){return new be(e>>16,e>>8&255,255&e)}function xe(e){return ye(e)+""}function Me(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function _e(e,t,n){var r,i,a,o=0,s=0,c=0;if(r=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()))switch(i=r[2].split(","),r[1]){case"hsl":return n(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return t(ke(i[0]),ke(i[1]),ke(i[2]))}return(a=ns.get(e))?t(a.r,a.g,a.b):(null==e||"#"!==e.charAt(0)||isNaN(a=parseInt(e.slice(1),16))||(4===e.length?(o=(3840&a)>>4,o|=o>>4,s=240&a,s|=s>>4,c=15&a,c|=c<<4):7===e.length&&(o=(16711680&a)>>16,s=(65280&a)>>8,c=255&a)),t(o,s,c))}function we(e,t,n){var r,i,a=Math.min(e/=255,t/=255,n/=255),o=Math.max(e,t,n),s=o-a,c=(o+a)/2;return s?(i=c<.5?s/(o+a):s/(2-o-a),r=e==o?(t-n)/s+(t<n?6:0):t==o?(n-e)/s+2:(e-t)/s+4,r*=60):(r=NaN,i=c>0&&c<1?0:r),new ce(r,i,c)}function Ae(e,t,n){e=Se(e),t=Se(t),n=Se(n);var r=ge((.4124564*e+.3575761*t+.1804375*n)/Ko),i=ge((.2126729*e+.7151522*t+.072175*n)/Zo);return pe(116*i-16,500*(r-i),200*(i-ge((.0193339*e+.119192*t+.9503041*n)/Jo)))}function Se(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ke(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}function $e(e){return"function"==typeof e?e:function(){return e}}function Te(e){return function(t,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=null),Ce(t,n,e,r)}}function Ce(e,t,n,r){function i(){var e,t=c.status;if(!t&&Oe(c)||t>=200&&t<300||304===t){try{e=n.call(a,c)}catch(e){return void o.error.call(a,e)}o.load.call(a,e)}else o.error.call(a,c)}var a={},o=co.dispatch("beforesend","progress","load","error"),s={},c=new XMLHttpRequest,l=null;return!this.XDomainRequest||"withCredentials"in c||!/^(http(s)?:)?\/\//.test(e)||(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=i:c.onreadystatechange=function(){c.readyState>3&&i()},c.onprogress=function(e){var t=co.event;co.event=e;try{o.progress.call(a,c)}finally{co.event=t}},a.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?s[e]:(null==t?delete s[e]:s[e]=t+"",a)},a.mimeType=function(e){return arguments.length?(t=null==e?null:e+"",a):t},a.responseType=function(e){return arguments.length?(l=e,a):l},a.response=function(e){return n=e,a},["get","post"].forEach(function(e){a[e]=function(){return a.send.apply(a,[e].concat(uo(arguments)))}}),a.send=function(n,r,i){if(2===arguments.length&&"function"==typeof r&&(i=r,r=null),c.open(n,e,!0),null==t||"accept"in s||(s.accept=t+",*/*"),c.setRequestHeader)for(var u in s)c.setRequestHeader(u,s[u]);return null!=t&&c.overrideMimeType&&c.overrideMimeType(t),null!=l&&(c.responseType=l),null!=i&&a.on("error",i).on("load",function(e){i(null,e)}),o.beforesend.call(a,c),c.send(null==r?null:r),a},a.abort=function(){return c.abort(),a},co.rebind(a,o,"on"),null==r?a:a.get(Ee(r))}function Ee(e){return 1===e.length?function(t,n){e(null==t?n:null)}:e}function Oe(e){var t=e.responseType;return t&&"text"!==t?e.response:e.responseText}function ze(e,t,n){var r=arguments.length;r<2&&(t=0),r<3&&(n=Date.now());var i=n+t,a={c:e,t:i,n:null};return is?is.n=a:rs=a,is=a,as||(os=clearTimeout(os),as=1,ss(Le)),a}function Le(){var e=Ne(),t=Pe()-e;t>24?(isFinite(t)&&(clearTimeout(os),os=setTimeout(Le,t)),as=0):(as=1,ss(Le))}function Ne(){for(var e=Date.now(),t=rs;t;)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function Pe(){for(var e,t=rs,n=1/0;t;)t.c?(t.t<n&&(n=t.t),t=(e=t).n):t=e?e.n=t.n:rs=t.n;return is=e,n}function Ie(e,t){return t-(e?Math.ceil(Math.log(e)/Math.LN10):1)}function De(e,t){var n=Math.pow(10,3*yo(8-t));return{scale:t>8?function(e){return e/n}:function(e){return e*n},symbol:e}}function Re(e){var t=e.decimal,n=e.thousands,r=e.grouping,i=e.currency,a=r&&n?function(e,t){for(var i=e.length,a=[],o=0,s=r[0],c=0;i>0&&s>0&&(c+s+1>t&&(s=Math.max(1,t-c)),a.push(e.substring(i-=s,i+s)),!((c+=s+1)>t));)s=r[o=(o+1)%r.length];return a.reverse().join(n)}:y;return function(e){var n=ls.exec(e),r=n[1]||" ",o=n[2]||">",s=n[3]||"-",c=n[4]||"",l=n[5],u=+n[6],d=n[7],p=n[8],f=n[9],h=1,m="",g="",v=!1,b=!0;switch(p&&(p=+p.substring(1)),(l||"0"===r&&"="===o)&&(l=r="0",o="="),f){case"n":d=!0,f="g";break;case"%":h=100,g="%",f="f";break;case"p":h=100,g="%",f="r";break;case"b":case"o":case"x":case"X":"#"===c&&(m="0"+f.toLowerCase());case"c":b=!1;case"d":v=!0,p=0;break;case"s":h=-1,f="r"}"$"===c&&(m=i[0],g=i[1]),"r"!=f||p||(f="g"),null!=p&&("g"==f?p=Math.max(1,Math.min(21,p)):"e"!=f&&"f"!=f||(p=Math.max(0,Math.min(20,p)))),f=us.get(f)||je;var y=l&&d;return function(e){var n=g;if(v&&e%1)return"";var i=e<0||0===e&&1/e<0?(e=-e,"-"):"-"===s?"":s;if(h<0){var c=co.formatPrefix(e,p);e=c.scale(e),n=c.symbol+g}else e*=h;e=f(e,p);var x,M,_=e.lastIndexOf(".");if(_<0){var w=b?e.lastIndexOf("e"):-1;w<0?(x=e,M=""):(x=e.substring(0,w),M=e.substring(w))}else x=e.substring(0,_),M=t+e.substring(_+1);!l&&d&&(x=a(x,1/0));var A=m.length+x.length+M.length+(y?0:i.length),S=A<u?new Array(A=u-A+1).join(r):"";return y&&(x=a(S+x,S.length?u-M.length:1/0)),i+=m,e=x+M,("<"===o?i+e+S:">"===o?S+i+e:"^"===o?S.substring(0,A>>=1)+i+e+S.substring(A):i+(y?e:S+e))+n}}}function je(e){return e+""}function qe(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Be(e,t,n){function r(t){var n=e(t),r=a(n,1);return t-n<r-t?n:r}function i(n){return t(n=e(new ps(n-1)),1),n}function a(e,n){return t(e=new ps(+e),n),e}function o(e,r,a){var o=i(e),s=[];if(a>1)for(;o<r;)n(o)%a||s.push(new Date(+o)),t(o,1);else for(;o<r;)s.push(new Date(+o)),t(o,1);return s}function s(e,t,n){try{ps=qe;var r=new qe;return r._=e,o(r,t,n)}finally{ps=Date}}e.floor=e,e.round=r,e.ceil=i,e.offset=a,e.range=o;var c=e.utc=We(e);return c.floor=c,c.round=We(r),c.ceil=We(i),c.offset=We(a),c.range=s,e}function We(e){return function(t,n){try{ps=qe;var r=new qe;return r._=t,e(r,n)._}finally{ps=Date}}}function He(e){function t(e){function t(t){for(var n,i,a,o=[],s=-1,c=0;++s<r;)37===e.charCodeAt(s)&&(o.push(e.slice(c,s)),null!=(i=hs[n=e.charAt(++s)])&&(n=e.charAt(++s)),(a=T[n])&&(n=a(t,null==i?"e"===n?" ":"0":i)),o.push(n),c=s+1);return o.push(e.slice(c,s)),o.join("")}var r=e.length;return t.parse=function(t){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null};if(n(r,e,t,0)!=t.length)return null;"p"in r&&(r.H=r.H%12+12*r.p);var i=null!=r.Z&&ps!==qe,a=new(i?qe:ps);return"j"in r?a.setFullYear(r.y,0,r.j):"W"in r||"U"in r?("w"in r||(r.w="W"in r?1:0),a.setFullYear(r.y,0,1),a.setFullYear(r.y,0,"W"in r?(r.w+6)%7+7*r.W-(a.getDay()+5)%7:r.w+7*r.U-(a.getDay()+6)%7)):a.setFullYear(r.y,r.m,r.d),a.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),i?a._:a},t.toString=function(){return e},t}function n(e,t,n,r){for(var i,a,o,s=0,c=t.length,l=n.length;s<c;){if(r>=l)return-1;if(37===(i=t.charCodeAt(s++))){if(o=t.charAt(s++),!(a=C[o in hs?t.charAt(s++):o])||(r=a(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function r(e,t,n){_.lastIndex=0;var r=_.exec(t.slice(n));return r?(e.w=w.get(r[0].toLowerCase()),n+r[0].length):-1}function i(e,t,n){x.lastIndex=0;var r=x.exec(t.slice(n));return r?(e.w=M.get(r[0].toLowerCase()),n+r[0].length):-1}function a(e,t,n){k.lastIndex=0;var r=k.exec(t.slice(n));return r?(e.m=$.get(r[0].toLowerCase()),n+r[0].length):-1}function o(e,t,n){A.lastIndex=0;var r=A.exec(t.slice(n));return r?(e.m=S.get(r[0].toLowerCase()),n+r[0].length):-1}function s(e,t,r){return n(e,T.c.toString(),t,r)}function c(e,t,r){return n(e,T.x.toString(),t,r)}function l(e,t,r){return n(e,T.X.toString(),t,r)}function u(e,t,n){var r=y.get(t.slice(n,n+=2).toLowerCase());return null==r?-1:(e.p=r,n)}var d=e.dateTime,p=e.date,f=e.time,h=e.periods,m=e.days,g=e.shortDays,v=e.months,b=e.shortMonths;t.utc=function(e){function n(e){try{ps=qe;var t=new ps;return t._=e,r(t)}finally{ps=Date}}var r=t(e);return n.parse=function(e){try{ps=qe;var t=r.parse(e);return t&&t._}finally{ps=Date}},n.toString=r.toString,n},t.multi=t.utc.multi=lt;var y=co.map(),x=Xe(m),M=Ue(m),_=Xe(g),w=Ue(g),A=Xe(v),S=Ue(v),k=Xe(b),$=Ue(b);h.forEach(function(e,t){y.set(e.toLowerCase(),t)});var T={a:function(e){return g[e.getDay()]},A:function(e){return m[e.getDay()]},b:function(e){return b[e.getMonth()]},B:function(e){return v[e.getMonth()]},c:t(d),d:function(e,t){return Fe(e.getDate(),t,2)},e:function(e,t){return Fe(e.getDate(),t,2)},H:function(e,t){return Fe(e.getHours(),t,2)},I:function(e,t){return Fe(e.getHours()%12||12,t,2)},j:function(e,t){return Fe(1+ds.dayOfYear(e),t,3)},L:function(e,t){return Fe(e.getMilliseconds(),t,3)},m:function(e,t){return Fe(e.getMonth()+1,t,2)},M:function(e,t){return Fe(e.getMinutes(),t,2)},p:function(e){return h[+(e.getHours()>=12)]},S:function(e,t){return Fe(e.getSeconds(),t,2)},U:function(e,t){return Fe(ds.sundayOfYear(e),t,2)},w:function(e){return e.getDay()},W:function(e,t){return Fe(ds.mondayOfYear(e),t,2)},x:t(p),X:t(f),y:function(e,t){return Fe(e.getFullYear()%100,t,2)},Y:function(e,t){return Fe(e.getFullYear()%1e4,t,4)},Z:st,"%":function(){return"%"}},C={a:r,A:i,b:a,B:o,c:s,d:tt,e:tt,H:rt,I:rt,j:nt,L:ot,m:et,M:it,p:u,S:at,U:Ge,w:Ve,W:Ye,x:c,X:l,y:Ke,Y:Qe,Z:Ze,"%":ct};return t}function Fe(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function Xe(e){return new RegExp("^(?:"+e.map(co.requote).join("|")+")","i")}function Ue(e){for(var t=new u,n=-1,r=e.length;++n<r;)t.set(e[n].toLowerCase(),n);return t}function Ve(e,t,n){ms.lastIndex=0;var r=ms.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Ge(e,t,n){ms.lastIndex=0;var r=ms.exec(t.slice(n));return r?(e.U=+r[0],n+r[0].length):-1}function Ye(e,t,n){ms.lastIndex=0;var r=ms.exec(t.slice(n));return r?(e.W=+r[0],n+r[0].length):-1}function Qe(e,t,n){ms.lastIndex=0;var r=ms.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Ke(e,t,n){ms.lastIndex=0;var r=ms.exec(t.slice(n,n+2));return r?(e.y=Je(+r[0]),n+r[0].length):-1}function Ze(e,t,n){return/^[+-]\d{4}$/.test(t=t.slice(n,n+5))?(e.Z=-t,n+5):-1}function Je(e){return e+(e>68?1900:2e3)}function et(e,t,n){ms.lastIndex=0;var r=ms.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function tt(e,t,n){ms.lastIndex=0;var r=ms.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function nt(e,t,n){ms.lastIndex=0;var r=ms.exec(t.slice(n,n+3));return r?(e.j=+r[0],n+r[0].length):-1}function rt(e,t,n){ms.lastIndex=0;var r=ms.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function it(e,t,n){ms.lastIndex=0;var r=ms.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function at(e,t,n){ms.lastIndex=0;var r=ms.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function ot(e,t,n){ms.lastIndex=0;var r=ms.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function st(e){var t=e.getTimezoneOffset(),n=t>0?"-":"+",r=yo(t)/60|0,i=yo(t)%60;return n+Fe(r,"0",2)+Fe(i,"0",2)}function ct(e,t,n){gs.lastIndex=0;var r=gs.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function lt(e){for(var t=e.length,n=-1;++n<t;)e[n][0]=this(e[n][0]);return function(t){for(var n=0,r=e[n];!r[1](t);)r=e[++n];return r[0](t)}}function ut(){}function dt(e,t,n){var r=n.s=e+t,i=r-e,a=r-i;n.t=e-a+(t-i)}function pt(e,t){e&&xs.hasOwnProperty(e.type)&&xs[e.type](e,t)}function ft(e,t,n){var r,i=-1,a=e.length-n;for(t.lineStart();++i<a;)r=e[i],t.point(r[0],r[1],r[2]);t.lineEnd()}function ht(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)ft(e[n],t,1);t.polygonEnd()}function mt(){function e(e,t){e*=Wo,t=t*Wo/2+Ro/4;var n=e-r,o=n>=0?1:-1,s=o*n,c=Math.cos(t),l=Math.sin(t),u=a*l,d=i*c+u*Math.cos(s),p=u*o*Math.sin(s);_s.add(Math.atan2(p,d)),r=e,i=c,a=l}var t,n,r,i,a;ws.point=function(o,s){ws.point=e,r=(t=o)*Wo,i=Math.cos(s=(n=s)*Wo/2+Ro/4),a=Math.sin(s)},ws.lineEnd=function(){e(t,n)}}function gt(e){var t=e[0],n=e[1],r=Math.cos(n);return[r*Math.cos(t),r*Math.sin(t),Math.sin(n)]}function vt(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function bt(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function yt(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function xt(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Mt(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function _t(e){return[Math.atan2(e[1],e[0]),ne(e[2])]}function wt(e,t){return yo(e[0]-t[0])<Io&&yo(e[1]-t[1])<Io}function At(e,t){e*=Wo;var n=Math.cos(t*=Wo);St(n*Math.cos(e),n*Math.sin(e),Math.sin(t))}function St(e,t,n){++As,ks+=(e-ks)/As,$s+=(t-$s)/As,Ts+=(n-Ts)/As}function kt(){function e(e,i){e*=Wo;var a=Math.cos(i*=Wo),o=a*Math.cos(e),s=a*Math.sin(e),c=Math.sin(i),l=Math.atan2(Math.sqrt((l=n*c-r*s)*l+(l=r*o-t*c)*l+(l=t*s-n*o)*l),t*o+n*s+r*c);Ss+=l,Cs+=l*(t+(t=o)),Es+=l*(n+(n=s)),Os+=l*(r+(r=c)),St(t,n,r)}var t,n,r;Ps.point=function(i,a){i*=Wo;var o=Math.cos(a*=Wo);t=o*Math.cos(i),n=o*Math.sin(i),r=Math.sin(a),Ps.point=e,St(t,n,r)}}function $t(){Ps.point=At}function Tt(){function e(e,t){e*=Wo;var n=Math.cos(t*=Wo),o=n*Math.cos(e),s=n*Math.sin(e),c=Math.sin(t),l=i*c-a*s,u=a*o-r*c,d=r*s-i*o,p=Math.sqrt(l*l+u*u+d*d),f=r*o+i*s+a*c,h=p&&-te(f)/p,m=Math.atan2(p,f);zs+=h*l,Ls+=h*u,Ns+=h*d,Ss+=m,Cs+=m*(r+(r=o)),Es+=m*(i+(i=s)),Os+=m*(a+(a=c)),St(r,i,a)}var t,n,r,i,a;Ps.point=function(o,s){t=o,n=s,Ps.point=e,o*=Wo;var c=Math.cos(s*=Wo);r=c*Math.cos(o),i=c*Math.sin(o),a=Math.sin(s),St(r,i,a)},Ps.lineEnd=function(){e(t,n),Ps.lineEnd=$t,Ps.point=At}}function Ct(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return(n=t.invert(n,r))&&e.invert(n[0],n[1])}),n}function Et(){return!0}function Ot(e,t,n,r,i){var a=[],o=[];if(e.forEach(function(e){if(!((t=e.length-1)<=0)){var t,n=e[0],r=e[t];if(wt(n,r)){i.lineStart();for(var s=0;s<t;++s)i.point((n=e[s])[0],n[1]);return void i.lineEnd()}var c=new Lt(n,e,null,!0),l=new Lt(n,null,c,!1);c.o=l,a.push(c),o.push(l),c=new Lt(r,e,null,!1),l=new Lt(r,null,c,!0),c.o=l,a.push(c),o.push(l)}}),o.sort(t),zt(a),zt(o),a.length){for(var s=0,c=n,l=o.length;s<l;++s)o[s].e=c=!c;for(var u,d,p=a[0];;){for(var f=p,h=!0;f.v;)if((f=f.n)===p)return;u=f.z,i.lineStart();do{if(f.v=f.o.v=!0,f.e){if(h)for(var s=0,l=u.length;s<l;++s)i.point((d=u[s])[0],d[1]);else r(f.x,f.n.x,1,i);f=f.n}else{if(h){u=f.p.z;for(var s=u.length-1;s>=0;--s)i.point((d=u[s])[0],d[1])}else r(f.x,f.p.x,-1,i);f=f.p}f=f.o,u=f.z,h=!h}while(!f.v);i.lineEnd()}}}function zt(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r<t;)i.n=n=e[r],n.p=i,i=n;i.n=n=e[0],n.p=i}}function Lt(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function Nt(e,t,n,r){return function(i,a){function o(t,n){var r=i(t,n);e(t=r[0],n=r[1])&&a.point(t,n)}function s(e,t){var n=i(e,t);g.point(n[0],n[1])}function c(){b.point=s,g.lineStart()}function l(){b.point=o,g.lineEnd()}function u(e,t){m.push([e,t]);var n=i(e,t);x.point(n[0],n[1])}function d(){x.lineStart(),m=[]}function p(){u(m[0][0],m[0][1]),x.lineEnd();var e,t=x.clean(),n=y.buffer(),r=n.length;if(m.pop(),h.push(m),m=null,r)if(1&t){e=n[0];var i,r=e.length-1,o=-1;if(r>0){for(M||(a.polygonStart(),M=!0),a.lineStart();++o<r;)a.point((i=e[o])[0],i[1]);a.lineEnd()}}else r>1&&2&t&&n.push(n.pop().concat(n.shift())),f.push(n.filter(Pt))}var f,h,m,g=t(a),v=i.invert(r[0],r[1]),b={point:o,lineStart:c,lineEnd:l,polygonStart:function(){b.point=u,b.lineStart=d,b.lineEnd=p,f=[],h=[]},polygonEnd:function(){b.point=o,b.lineStart=c,b.lineEnd=l,f=co.merge(f);var e=Bt(v,h);f.length?(M||(a.polygonStart(),M=!0),Ot(f,Dt,e,n,a)):e&&(M||(a.polygonStart(),M=!0),a.lineStart(),n(null,null,1,a),a.lineEnd()),M&&(a.polygonEnd(),M=!1),f=h=null},sphere:function(){a.polygonStart(),a.lineStart(),n(null,null,1,a),a.lineEnd(),a.polygonEnd()}},y=It(),x=t(y),M=!1;return b}}function Pt(e){return e.length>1}function It(){var e,t=[];return{lineStart:function(){t.push(e=[])},point:function(t,n){e.push([t,n])},lineEnd:_,buffer:function(){var n=t;return t=[],e=null,n},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function Dt(e,t){return((e=e.x)[0]<0?e[1]-Bo-Io:Bo-e[1])-((t=t.x)[0]<0?t[1]-Bo-Io:Bo-t[1])}function Rt(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(a,o){var s=a>0?Ro:-Ro,c=yo(a-n);yo(c-Ro)<Io?(e.point(n,r=(r+o)/2>0?Bo:-Bo),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),e.point(a,r),t=0):i!==s&&c>=Ro&&(yo(n-i)<Io&&(n-=i*Io),yo(a-s)<Io&&(a-=s*Io),r=jt(n,r,a,o),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),t=0),e.point(n=a,r=o),i=s},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}function jt(e,t,n,r){var i,a,o=Math.sin(e-n);return yo(o)>Io?Math.atan((Math.sin(t)*(a=Math.cos(r))*Math.sin(n)-Math.sin(r)*(i=Math.cos(t))*Math.sin(e))/(i*a*o)):(t+r)/2}function qt(e,t,n,r){var i;if(null==e)i=n*Bo,r.point(-Ro,i),r.point(0,i),r.point(Ro,i),r.point(Ro,0),r.point(Ro,-i),r.point(0,-i),r.point(-Ro,-i),r.point(-Ro,0),r.point(-Ro,i);else if(yo(e[0]-t[0])>Io){var a=e[0]<t[0]?Ro:-Ro;i=n*a/2,r.point(-a,i),r.point(0,i),r.point(a,i)}else r.point(t[0],t[1])}function Bt(e,t){var n=e[0],r=e[1],i=[Math.sin(n),-Math.cos(n),0],a=0,o=0;_s.reset();for(var s=0,c=t.length;s<c;++s){var l=t[s],u=l.length;if(u)for(var d=l[0],p=d[0],f=d[1]/2+Ro/4,h=Math.sin(f),m=Math.cos(f),g=1;;){g===u&&(g=0),e=l[g];var v=e[0],b=e[1]/2+Ro/4,y=Math.sin(b),x=Math.cos(b),M=v-p,_=M>=0?1:-1,w=_*M,A=w>Ro,S=h*y;if(_s.add(Math.atan2(S*_*Math.sin(w),m*x+S*Math.cos(w))),a+=A?M+_*jo:M,A^p>=n^v>=n){var k=bt(gt(d),gt(e));Mt(k);var $=bt(i,k);Mt($);var T=(A^M>=0?-1:1)*ne($[2]);(r>T||r===T&&(k[0]||k[1]))&&(o+=A^M>=0?1:-1)}if(!g++)break;p=v,h=y,m=x,d=e}}return(a<-Io||a<Io&&_s<-Io)^1&o}function Wt(e){function t(e,t){return Math.cos(e)*Math.cos(t)>a}function n(e){var n,a,c,l,u;return{lineStart:function(){l=c=!1,u=1},point:function(d,p){var f,h=[d,p],m=t(d,p),g=o?m?0:i(d,p):m?i(d+(d<0?Ro:-Ro),p):0;if(!n&&(l=c=m)&&e.lineStart(),m!==c&&(f=r(n,h),(wt(n,f)||wt(h,f))&&(h[0]+=Io,h[1]+=Io,m=t(h[0],h[1]))),m!==c)u=0,m?(e.lineStart(),f=r(h,n),e.point(f[0],f[1])):(f=r(n,h),e.point(f[0],f[1]),e.lineEnd()),n=f;else if(s&&n&&o^m){var v;g&a||!(v=r(h,n,!0))||(u=0,o?(e.lineStart(),e.point(v[0][0],v[0][1]),e.point(v[1][0],v[1][1]),e.lineEnd()):(e.point(v[1][0],v[1][1]),e.lineEnd(),e.lineStart(),e.point(v[0][0],v[0][1])))}!m||n&&wt(n,h)||e.point(h[0],h[1]),n=h,c=m,a=g},lineEnd:function(){c&&e.lineEnd(),n=null},clean:function(){return u|(l&&c)<<1}}}function r(e,t,n){var r=gt(e),i=gt(t),o=[1,0,0],s=bt(r,i),c=vt(s,s),l=s[0],u=c-l*l;if(!u)return!n&&e;var d=a*c/u,p=-a*l/u,f=bt(o,s),h=xt(o,d);yt(h,xt(s,p));var m=f,g=vt(h,m),v=vt(m,m),b=g*g-v*(vt(h,h)-1);if(!(b<0)){var y=Math.sqrt(b),x=xt(m,(-g-y)/v);if(yt(x,h),x=_t(x),!n)return x;var M,_=e[0],w=t[0],A=e[1],S=t[1];w<_&&(M=_,_=w,w=M);var k=w-_,$=yo(k-Ro)<Io,T=$||k<Io;if(!$&&S<A&&(M=A,A=S,S=M),T?$?A+S>0^x[1]<(yo(x[0]-_)<Io?A:S):A<=x[1]&&x[1]<=S:k>Ro^(_<=x[0]&&x[0]<=w)){var C=xt(m,(-g+y)/v);return yt(C,h),[x,_t(C)]}}}function i(t,n){var r=o?e:Ro-e,i=0;return t<-r?i|=1:t>r&&(i|=2),n<-r?i|=4:n>r&&(i|=8),i}var a=Math.cos(e),o=a>0,s=yo(a)>Io;return Nt(t,n,gn(e,6*Wo),o?[0,-e]:[-Ro,e-Ro])}function Ht(e,t,n,r){return function(i){var a,o=i.a,s=i.b,c=o.x,l=o.y,u=s.x,d=s.y,p=0,f=1,h=u-c,m=d-l;if(a=e-c,h||!(a>0)){if(a/=h,h<0){if(a<p)return;a<f&&(f=a)}else if(h>0){if(a>f)return;a>p&&(p=a)}if(a=n-c,h||!(a<0)){if(a/=h,h<0){if(a>f)return;a>p&&(p=a)}else if(h>0){if(a<p)return;a<f&&(f=a)}if(a=t-l,m||!(a>0)){if(a/=m,m<0){if(a<p)return;a<f&&(f=a)}else if(m>0){if(a>f)return;a>p&&(p=a)}if(a=r-l,m||!(a<0)){if(a/=m,m<0){if(a>f)return;a>p&&(p=a)}else if(m>0){if(a<p)return;a<f&&(f=a)}return p>0&&(i.a={x:c+p*h,y:l+p*m}),f<1&&(i.b={x:c+f*h,y:l+f*m}),i}}}}}}function Ft(e,t,n,r){function i(r,i){return yo(r[0]-e)<Io?i>0?0:3:yo(r[0]-n)<Io?i>0?2:1:yo(r[1]-t)<Io?i>0?1:0:i>0?3:2}function a(e,t){return o(e.x,t.x)}function o(e,t){var n=i(e,1),r=i(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(s){function c(e){for(var t=0,n=g.length,r=e[1],i=0;i<n;++i)for(var a,o=1,s=g[i],c=s.length,l=s[0];o<c;++o)a=s[o],l[1]<=r?a[1]>r&&ee(l,a,e)>0&&++t:a[1]<=r&&ee(l,a,e)<0&&--t,l=a;return 0!==t}function l(a,s,c,l){var u=0,d=0;if(null==a||(u=i(a,c))!==(d=i(s,c))||o(a,s)<0^c>0)do{l.point(0===u||3===u?e:n,u>1?r:t)}while((u=(u+c+4)%4)!==d);else l.point(s[0],s[1])}function u(i,a){return e<=i&&i<=n&&t<=a&&a<=r}function d(e,t){u(e,t)&&s.point(e,t)}function p(){C.point=h,g&&g.push(v=[]),A=!0,w=!1,M=_=NaN}function f(){m&&(h(b,y),x&&w&&$.rejoin(),m.push($.buffer())),C.point=d,w&&s.lineEnd()}function h(e,t){e=Math.max(-Ds,Math.min(Ds,e)),t=Math.max(-Ds,Math.min(Ds,t));var n=u(e,t);if(g&&v.push([e,t]),A)b=e,y=t,x=n,A=!1,n&&(s.lineStart(),s.point(e,t));else if(n&&w)s.point(e,t);else{var r={a:{x:M,y:_},b:{x:e,y:t}};T(r)?(w||(s.lineStart(),s.point(r.a.x,r.a.y)),s.point(r.b.x,r.b.y),n||s.lineEnd(),S=!1):n&&(s.lineStart(),s.point(e,t),S=!1)}M=e,_=t,w=n}var m,g,v,b,y,x,M,_,w,A,S,k=s,$=It(),T=Ht(e,t,n,r),C={point:d,lineStart:p,lineEnd:f,polygonStart:function(){s=$,m=[],g=[],S=!0},polygonEnd:function(){s=k,m=co.merge(m);var t=c([e,r]),n=S&&t,i=m.length;(n||i)&&(s.polygonStart(),n&&(s.lineStart(),l(null,null,1,s),s.lineEnd()),i&&Ot(m,a,t,l,s),s.polygonEnd()),m=g=v=null}};return C}}function Xt(e){var t=0,n=Ro/3,r=cn(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*Ro/180,n=e[1]*Ro/180):[t/Ro*180,n/Ro*180]},i}function Ut(e,t){function n(e,t){var n=Math.sqrt(a-2*i*Math.sin(t))/i;return[n*Math.sin(e*=i),o-n*Math.cos(e)]}var r=Math.sin(e),i=(r+Math.sin(t))/2,a=1+r*(2*i-r),o=Math.sqrt(a)/i;return n.invert=function(e,t){var n=o-t;return[Math.atan2(e,n)/i,ne((a-(e*e+n*n)*i*i)/(2*i))]},n}function Vt(){function e(e,t){js+=i*e-r*t,r=e,i=t}var t,n,r,i;Fs.point=function(a,o){Fs.point=e,t=r=a,n=i=o},Fs.lineEnd=function(){e(t,n)}}function Gt(e,t){e<qs&&(qs=e),e>Ws&&(Ws=e),t<Bs&&(Bs=t),t>Hs&&(Hs=t)}function Yt(){function e(e,t){o.push("M",e,",",t,a)}function t(e,t){o.push("M",e,",",t),s.point=n}function n(e,t){o.push("L",e,",",t)}function r(){s.point=e}function i(){o.push("Z")}var a=Qt(4.5),o=[],s={point:e,lineStart:function(){s.point=t},lineEnd:r,polygonStart:function(){s.lineEnd=i},polygonEnd:function(){s.lineEnd=r,s.point=e},pointRadius:function(e){return a=Qt(e),s},result:function(){if(o.length){var e=o.join("");return o=[],e}}};return s}function Qt(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function Kt(e,t){ks+=e,$s+=t,++Ts}function Zt(){function e(e,r){var i=e-t,a=r-n,o=Math.sqrt(i*i+a*a);Cs+=o*(t+e)/2,Es+=o*(n+r)/2,Os+=o,Kt(t=e,n=r)}var t,n;Us.point=function(r,i){Us.point=e,Kt(t=r,n=i)}}function Jt(){Us.point=Kt}function en(){function e(e,t){var n=e-r,a=t-i,o=Math.sqrt(n*n+a*a);Cs+=o*(r+e)/2,Es+=o*(i+t)/2,Os+=o,o=i*e-r*t,zs+=o*(r+e),Ls+=o*(i+t),Ns+=3*o,Kt(r=e,i=t)}var t,n,r,i;Us.point=function(a,o){Us.point=e,Kt(t=r=a,n=i=o)},Us.lineEnd=function(){e(t,n)}}function tn(e){function t(t,n){e.moveTo(t+o,n),e.arc(t,n,o,0,jo)}function n(t,n){e.moveTo(t,n),s.point=r}function r(t,n){e.lineTo(t,n)}function i(){s.point=t}function a(){e.closePath()}var o=4.5,s={point:t,lineStart:function(){s.point=n},lineEnd:i,polygonStart:function(){s.lineEnd=a},polygonEnd:function(){s.lineEnd=i,s.point=t},pointRadius:function(e){return o=e,s},result:_};return s}function nn(e){function t(e){return(s?r:n)(e)}function n(t){return on(t,function(n,r){n=e(n,r),t.point(n[0],n[1])})}function r(t){function n(n,r){n=e(n,r),t.point(n[0],n[1])}function r(){y=NaN,A.point=a,t.lineStart()}function a(n,r){var a=gt([n,r]),o=e(n,r);i(y,x,b,M,_,w,y=o[0],x=o[1],b=n,M=a[0],_=a[1],w=a[2],s,t),t.point(y,x)}function o(){A.point=n,t.lineEnd()}function c(){r(),A.point=l,A.lineEnd=u}function l(e,t){a(d=e,p=t),f=y,h=x,m=M,g=_,v=w,A.point=a}function u(){i(y,x,b,M,_,w,f,h,d,m,g,v,s,t),A.lineEnd=o,o()}var d,p,f,h,m,g,v,b,y,x,M,_,w,A={point:n,lineStart:r,lineEnd:o,polygonStart:function(){t.polygonStart(),A.lineStart=c},polygonEnd:function(){t.polygonEnd(),A.lineStart=r}};return A}function i(t,n,r,s,c,l,u,d,p,f,h,m,g,v){var b=u-t,y=d-n,x=b*b+y*y;if(x>4*a&&g--){var M=s+f,_=c+h,w=l+m,A=Math.sqrt(M*M+_*_+w*w),S=Math.asin(w/=A),k=yo(yo(w)-1)<Io||yo(r-p)<Io?(r+p)/2:Math.atan2(_,M),$=e(k,S),T=$[0],C=$[1],E=T-t,O=C-n,z=y*E-b*O;(z*z/x>a||yo((b*E+y*O)/x-.5)>.3||s*f+c*h+l*m<o)&&(i(t,n,r,s,c,l,T,C,k,M/=A,_/=A,w,g,v),v.point(T,C),i(T,C,k,M,_,w,u,d,p,f,h,m,g,v))}}var a=.5,o=Math.cos(30*Wo),s=16;return t.precision=function(e){return arguments.length?(s=(a=e*e)>0&&16,t):Math.sqrt(a)},t}function rn(e){var t=nn(function(t,n){return e([t*Ho,n*Ho])});return function(e){return ln(t(e))}}function an(e){this.stream=e}function on(e,t){return{point:t,sphere:function(){e.sphere()},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}}}function sn(e){return cn(function(){return e})()}function cn(e){function t(e){return e=s(e[0]*Wo,e[1]*Wo),[e[0]*p+c,l-e[1]*p]}function n(e){return(e=s.invert((e[0]-c)/p,(l-e[1])/p))&&[e[0]*Ho,e[1]*Ho]}function r(){s=Ct(o=pn(v,b,x),a);var e=a(m,g);return c=f-e[0]*p,l=h+e[1]*p,i()}function i(){return u&&(u.valid=!1,u=null),t}var a,o,s,c,l,u,d=nn(function(e,t){return e=a(e,t),[e[0]*p+c,l-e[1]*p]}),p=150,f=480,h=250,m=0,g=0,v=0,b=0,x=0,M=Is,_=y,w=null,A=null;return t.stream=function(e){return u&&(u.valid=!1),u=ln(M(o,d(_(e)))),u.valid=!0,u},t.clipAngle=function(e){return arguments.length?(M=null==e?(w=e,Is):Wt((w=+e)*Wo),i()):w},t.clipExtent=function(e){return arguments.length?(A=e,_=e?Ft(e[0][0],e[0][1],e[1][0],e[1][1]):y,i()):A},t.scale=function(e){return arguments.length?(p=+e,r()):p},t.translate=function(e){return arguments.length?(f=+e[0],h=+e[1],r()):[f,h]},t.center=function(e){return arguments.length?(m=e[0]%360*Wo,g=e[1]%360*Wo,r()):[m*Ho,g*Ho]},t.rotate=function(e){return arguments.length?(v=e[0]%360*Wo,b=e[1]%360*Wo,x=e.length>2?e[2]%360*Wo:0,r()):[v*Ho,b*Ho,x*Ho]},co.rebind(t,d,"precision"),function(){return a=e.apply(this,arguments),t.invert=a.invert&&n,r()}}function ln(e){return on(e,function(t,n){e.point(t*Wo,n*Wo)})}function un(e,t){return[e,t]}function dn(e,t){return[e>Ro?e-jo:e<-Ro?e+jo:e,t]}function pn(e,t,n){return e?t||n?Ct(hn(e),mn(t,n)):hn(e):t||n?mn(t,n):dn}function fn(e){return function(t,n){return t+=e,[t>Ro?t-jo:t<-Ro?t+jo:t,n]}}function hn(e){var t=fn(e);return t.invert=fn(-e),t}function mn(e,t){function n(e,t){var n=Math.cos(t),s=Math.cos(e)*n,c=Math.sin(e)*n,l=Math.sin(t),u=l*r+s*i;return[Math.atan2(c*a-u*o,s*r-l*i),ne(u*a+c*o)]}var r=Math.cos(e),i=Math.sin(e),a=Math.cos(t),o=Math.sin(t);return n.invert=function(e,t){var n=Math.cos(t),s=Math.cos(e)*n,c=Math.sin(e)*n,l=Math.sin(t),u=l*a-c*o;return[Math.atan2(c*a+l*o,s*r+u*i),ne(u*r-s*i)]},n}function gn(e,t){var n=Math.cos(e),r=Math.sin(e);return function(i,a,o,s){var c=o*t;null!=i?(i=vn(n,i),a=vn(n,a),(o>0?i<a:i>a)&&(i+=o*jo)):(i=e+o*jo,a=e-.5*c);for(var l,u=i;o>0?u>a:u<a;u-=c)s.point((l=_t([n,-r*Math.cos(u),-r*Math.sin(u)]))[0],l[1])}}function vn(e,t){var n=gt(t);n[0]-=e,Mt(n);var r=te(-n[1]);return((-n[2]<0?-r:r)+2*Math.PI-Io)%(2*Math.PI)}function bn(e,t,n){var r=co.range(e,t-Io,n).concat(t);return function(e){return r.map(function(t){return[e,t]})}}function yn(e,t,n){var r=co.range(e,t-Io,n).concat(t);return function(e){return r.map(function(t){return[t,e]})}}function xn(e){return e.source}function Mn(e){
47return e.target}function _n(e,t,n,r){var i=Math.cos(t),a=Math.sin(t),o=Math.cos(r),s=Math.sin(r),c=i*Math.cos(e),l=i*Math.sin(e),u=o*Math.cos(n),d=o*Math.sin(n),p=2*Math.asin(Math.sqrt(oe(r-t)+i*o*oe(n-e))),f=1/Math.sin(p),h=p?function(e){var t=Math.sin(e*=p)*f,n=Math.sin(p-e)*f,r=n*c+t*u,i=n*l+t*d,o=n*a+t*s;return[Math.atan2(i,r)*Ho,Math.atan2(o,Math.sqrt(r*r+i*i))*Ho]}:function(){return[e*Ho,t*Ho]};return h.distance=p,h}function wn(){function e(e,i){var a=Math.sin(i*=Wo),o=Math.cos(i),s=yo((e*=Wo)-t),c=Math.cos(s);Vs+=Math.atan2(Math.sqrt((s=o*Math.sin(s))*s+(s=r*a-n*o*c)*s),n*a+r*o*c),t=e,n=a,r=o}var t,n,r;Gs.point=function(i,a){t=i*Wo,n=Math.sin(a*=Wo),r=Math.cos(a),Gs.point=e},Gs.lineEnd=function(){Gs.point=Gs.lineEnd=_}}function An(e,t){function n(t,n){var r=Math.cos(t),i=Math.cos(n),a=e(r*i);return[a*i*Math.sin(t),a*Math.sin(n)]}return n.invert=function(e,n){var r=Math.sqrt(e*e+n*n),i=t(r),a=Math.sin(i),o=Math.cos(i);return[Math.atan2(e*a,r*o),Math.asin(r&&n*a/r)]},n}function Sn(e,t){function n(e,t){o>0?t<-Bo+Io&&(t=-Bo+Io):t>Bo-Io&&(t=Bo-Io);var n=o/Math.pow(i(t),a);return[n*Math.sin(a*e),o-n*Math.cos(a*e)]}var r=Math.cos(e),i=function(e){return Math.tan(Ro/4+e/2)},a=e===t?Math.sin(e):Math.log(r/Math.cos(t))/Math.log(i(t)/i(e)),o=r*Math.pow(i(e),a)/a;return a?(n.invert=function(e,t){var n=o-t,r=J(a)*Math.sqrt(e*e+n*n);return[Math.atan2(e,n)/a,2*Math.atan(Math.pow(o/r,1/a))-Bo]},n):$n}function kn(e,t){function n(e,t){var n=a-t;return[n*Math.sin(i*e),a-n*Math.cos(i*e)]}var r=Math.cos(e),i=e===t?Math.sin(e):(r-Math.cos(t))/(t-e),a=r/i+e;return yo(i)<Io?un:(n.invert=function(e,t){var n=a-t;return[Math.atan2(e,n)/i,a-J(i)*Math.sqrt(e*e+n*n)]},n)}function $n(e,t){return[e,Math.log(Math.tan(Ro/4+t/2))]}function Tn(e){var t,n=sn(e),r=n.scale,i=n.translate,a=n.clipExtent;return n.scale=function(){var e=r.apply(n,arguments);return e===n?t?n.clipExtent(null):n:e},n.translate=function(){var e=i.apply(n,arguments);return e===n?t?n.clipExtent(null):n:e},n.clipExtent=function(e){var o=a.apply(n,arguments);if(o===n){if(t=null==e){var s=Ro*r(),c=i();a([[c[0]-s,c[1]-s],[c[0]+s,c[1]+s]])}}else t&&(o=null);return o},n.clipExtent(null)}function Cn(e,t){return[Math.log(Math.tan(Ro/4+t/2)),-e]}function En(e){return e[0]}function On(e){return e[1]}function zn(e){for(var t=e.length,n=[0,1],r=2,i=2;i<t;i++){for(;r>1&&ee(e[n[r-2]],e[n[r-1]],e[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function Ln(e,t){return e[0]-t[0]||e[1]-t[1]}function Nn(e,t,n){return(n[0]-t[0])*(e[1]-t[1])<(n[1]-t[1])*(e[0]-t[0])}function Pn(e,t,n,r){var i=e[0],a=n[0],o=t[0]-i,s=r[0]-a,c=e[1],l=n[1],u=t[1]-c,d=r[1]-l,p=(s*(c-l)-d*(i-a))/(d*o-s*u);return[i+p*o,c+p*u]}function In(e){var t=e[0],n=e[e.length-1];return!(t[0]-n[0]||t[1]-n[1])}function Dn(){ir(this),this.edge=this.site=this.circle=null}function Rn(e){var t=oc.pop()||new Dn;return t.site=e,t}function jn(e){Yn(e),rc.remove(e),oc.push(e),ir(e)}function qn(e){var t=e.circle,n=t.x,r=t.cy,i={x:n,y:r},a=e.P,o=e.N,s=[e];jn(e);for(var c=a;c.circle&&yo(n-c.circle.x)<Io&&yo(r-c.circle.cy)<Io;)a=c.P,s.unshift(c),jn(c),c=a;s.unshift(c),Yn(c);for(var l=o;l.circle&&yo(n-l.circle.x)<Io&&yo(r-l.circle.cy)<Io;)o=l.N,s.push(l),jn(l),l=o;s.push(l),Yn(l);var u,d=s.length;for(u=1;u<d;++u)l=s[u],c=s[u-1],tr(l.edge,c.site,l.site,i);c=s[0],l=s[d-1],l.edge=Jn(c.site,l.site,null,i),Gn(c),Gn(l)}function Bn(e){for(var t,n,r,i,a=e.x,o=e.y,s=rc._;s;)if((r=Wn(s,o)-a)>Io)s=s.L;else{if(!((i=a-Hn(s,o))>Io)){r>-Io?(t=s.P,n=s):i>-Io?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}var c=Rn(e);if(rc.insert(t,c),t||n){if(t===n)return Yn(t),n=Rn(t.site),rc.insert(c,n),c.edge=n.edge=Jn(t.site,c.site),Gn(t),void Gn(n);if(!n)return void(c.edge=Jn(t.site,c.site));Yn(t),Yn(n);var l=t.site,u=l.x,d=l.y,p=e.x-u,f=e.y-d,h=n.site,m=h.x-u,g=h.y-d,v=2*(p*g-f*m),b=p*p+f*f,y=m*m+g*g,x={x:(g*b-f*y)/v+u,y:(p*y-m*b)/v+d};tr(n.edge,l,h,x),c.edge=Jn(l,e,null,x),n.edge=Jn(e,h,null,x),Gn(t),Gn(n)}}function Wn(e,t){var n=e.site,r=n.x,i=n.y,a=i-t;if(!a)return r;var o=e.P;if(!o)return-1/0;n=o.site;var s=n.x,c=n.y,l=c-t;if(!l)return s;var u=s-r,d=1/a-1/l,p=u/l;return d?(-p+Math.sqrt(p*p-2*d*(u*u/(-2*l)-c+l/2+i-a/2)))/d+r:(r+s)/2}function Hn(e,t){var n=e.N;if(n)return Wn(n,t);var r=e.site;return r.y===t?r.x:1/0}function Fn(e){this.site=e,this.edges=[]}function Xn(e){for(var t,n,r,i,a,o,s,c,l,u,d=e[0][0],p=e[1][0],f=e[0][1],h=e[1][1],m=nc,g=m.length;g--;)if((a=m[g])&&a.prepare())for(s=a.edges,c=s.length,o=0;o<c;)u=s[o].end(),r=u.x,i=u.y,l=s[++o%c].start(),t=l.x,n=l.y,(yo(r-t)>Io||yo(i-n)>Io)&&(s.splice(o,0,new nr(er(a.site,u,yo(r-d)<Io&&h-i>Io?{x:d,y:yo(t-d)<Io?n:h}:yo(i-h)<Io&&p-r>Io?{x:yo(n-h)<Io?t:p,y:h}:yo(r-p)<Io&&i-f>Io?{x:p,y:yo(t-p)<Io?n:f}:yo(i-f)<Io&&r-d>Io?{x:yo(n-f)<Io?t:d,y:f}:null),a.site,null)),++c)}function Un(e,t){return t.angle-e.angle}function Vn(){ir(this),this.x=this.y=this.arc=this.site=this.cy=null}function Gn(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,i=e.site,a=n.site;if(r!==a){var o=i.x,s=i.y,c=r.x-o,l=r.y-s,u=a.x-o,d=a.y-s,p=2*(c*d-l*u);if(!(p>=-Do)){var f=c*c+l*l,h=u*u+d*d,m=(d*f-l*h)/p,g=(c*h-u*f)/p,d=g+s,v=sc.pop()||new Vn;v.arc=e,v.site=i,v.x=m+o,v.y=d+Math.sqrt(m*m+g*g),v.cy=d,e.circle=v;for(var b=null,y=ac._;y;)if(v.y<y.y||v.y===y.y&&v.x<=y.x){if(!y.L){b=y.P;break}y=y.L}else{if(!y.R){b=y;break}y=y.R}ac.insert(b,v),b||(ic=v)}}}}function Yn(e){var t=e.circle;t&&(t.P||(ic=t.N),ac.remove(t),sc.push(t),ir(t),e.circle=null)}function Qn(e){for(var t,n=tc,r=Ht(e[0][0],e[0][1],e[1][0],e[1][1]),i=n.length;i--;)t=n[i],(!Kn(t,e)||!r(t)||yo(t.a.x-t.b.x)<Io&&yo(t.a.y-t.b.y)<Io)&&(t.a=t.b=null,n.splice(i,1))}function Kn(e,t){var n=e.b;if(n)return!0;var r,i,a=e.a,o=t[0][0],s=t[1][0],c=t[0][1],l=t[1][1],u=e.l,d=e.r,p=u.x,f=u.y,h=d.x,m=d.y,g=(p+h)/2,v=(f+m)/2;if(m===f){if(g<o||g>=s)return;if(p>h){if(a){if(a.y>=l)return}else a={x:g,y:c};n={x:g,y:l}}else{if(a){if(a.y<c)return}else a={x:g,y:l};n={x:g,y:c}}}else if(r=(p-h)/(m-f),i=v-r*g,r<-1||r>1)if(p>h){if(a){if(a.y>=l)return}else a={x:(c-i)/r,y:c};n={x:(l-i)/r,y:l}}else{if(a){if(a.y<c)return}else a={x:(l-i)/r,y:l};n={x:(c-i)/r,y:c}}else if(f<m){if(a){if(a.x>=s)return}else a={x:o,y:r*o+i};n={x:s,y:r*s+i}}else{if(a){if(a.x<o)return}else a={x:s,y:r*s+i};n={x:o,y:r*o+i}}return e.a=a,e.b=n,!0}function Zn(e,t){this.l=e,this.r=t,this.a=this.b=null}function Jn(e,t,n,r){var i=new Zn(e,t);return tc.push(i),n&&tr(i,e,t,n),r&&tr(i,t,e,r),nc[e.i].edges.push(new nr(i,e,t)),nc[t.i].edges.push(new nr(i,t,e)),i}function er(e,t,n){var r=new Zn(e,null);return r.a=t,r.b=n,tc.push(r),r}function tr(e,t,n,r){e.a||e.b?e.l===n?e.b=r:e.a=r:(e.a=r,e.l=t,e.r=n)}function nr(e,t,n){var r=e.a,i=e.b;this.edge=e,this.site=t,this.angle=n?Math.atan2(n.y-t.y,n.x-t.x):e.l===t?Math.atan2(i.x-r.x,r.y-i.y):Math.atan2(r.x-i.x,i.y-r.y)}function rr(){this._=null}function ir(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function ar(e,t){var n=t,r=t.R,i=n.U;i?i.L===n?i.L=r:i.R=r:e._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function or(e,t){var n=t,r=t.L,i=n.U;i?i.L===n?i.L=r:i.R=r:e._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function sr(e){for(;e.L;)e=e.L;return e}function cr(e,t){var n,r,i,a=e.sort(lr).pop();for(tc=[],nc=new Array(e.length),rc=new rr,ac=new rr;;)if(i=ic,a&&(!i||a.y<i.y||a.y===i.y&&a.x<i.x))a.x===n&&a.y===r||(nc[a.i]=new Fn(a),Bn(a),n=a.x,r=a.y),a=e.pop();else{if(!i)break;qn(i.arc)}t&&(Qn(t),Xn(t));var o={cells:nc,edges:tc};return rc=ac=tc=nc=null,o}function lr(e,t){return t.y-e.y||t.x-e.x}function ur(e,t,n){return(e.x-n.x)*(t.y-e.y)-(e.x-t.x)*(n.y-e.y)}function dr(e){return e.x}function pr(e){return e.y}function fr(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function hr(e,t,n,r,i,a){if(!e(t,n,r,i,a)){var o=.5*(n+i),s=.5*(r+a),c=t.nodes;c[0]&&hr(e,c[0],n,r,o,s),c[1]&&hr(e,c[1],o,r,i,s),c[2]&&hr(e,c[2],n,s,o,a),c[3]&&hr(e,c[3],o,s,i,a)}}function mr(e,t,n,r,i,a,o){var s,c=1/0;return function e(l,u,d,p,f){if(!(u>a||d>o||p<r||f<i)){if(h=l.point){var h,m=t-l.x,g=n-l.y,v=m*m+g*g;if(v<c){var b=Math.sqrt(c=v);r=t-b,i=n-b,a=t+b,o=n+b,s=h}}for(var y=l.nodes,x=.5*(u+p),M=.5*(d+f),_=t>=x,w=n>=M,A=w<<1|_,S=A+4;A<S;++A)if(l=y[3&A])switch(3&A){case 0:e(l,u,d,x,M);break;case 1:e(l,x,d,p,M);break;case 2:e(l,u,M,x,f);break;case 3:e(l,x,M,p,f)}}}(e,r,i,a,o),s}function gr(e,t){e=co.rgb(e),t=co.rgb(t);var n=e.r,r=e.g,i=e.b,a=t.r-n,o=t.g-r,s=t.b-i;return function(e){return"#"+Me(Math.round(n+a*e))+Me(Math.round(r+o*e))+Me(Math.round(i+s*e))}}function vr(e,t){var n,r={},i={};for(n in e)n in t?r[n]=xr(e[n],t[n]):i[n]=e[n];for(n in t)n in e||(i[n]=t[n]);return function(e){for(n in r)i[n]=r[n](e);return i}}function br(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function yr(e,t){var n,r,i,a=lc.lastIndex=uc.lastIndex=0,o=-1,s=[],c=[];for(e+="",t+="";(n=lc.exec(e))&&(r=uc.exec(t));)(i=r.index)>a&&(i=t.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,c.push({i:o,x:br(n,r)})),a=uc.lastIndex;return a<t.length&&(i=t.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length<2?c[0]?(t=c[0].x,function(e){return t(e)+""}):function(){return t}:(t=c.length,function(e){for(var n,r=0;r<t;++r)s[(n=c[r]).i]=n.x(e);return s.join("")})}function xr(e,t){for(var n,r=co.interpolators.length;--r>=0&&!(n=co.interpolators[r](e,t)););return n}function Mr(e,t){var n,r=[],i=[],a=e.length,o=t.length,s=Math.min(e.length,t.length);for(n=0;n<s;++n)r.push(xr(e[n],t[n]));for(;n<a;++n)i[n]=e[n];for(;n<o;++n)i[n]=t[n];return function(e){for(n=0;n<s;++n)i[n]=r[n](e);return i}}function _r(e){return function(t){return t<=0?0:t>=1?1:e(t)}}function wr(e){return function(t){return 1-e(1-t)}}function Ar(e){return function(t){return.5*(t<.5?e(2*t):2-e(2-2*t))}}function Sr(e){return e*e}function kr(e){return e*e*e}function $r(e){if(e<=0)return 0;if(e>=1)return 1;var t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}function Tr(e){return function(t){return Math.pow(t,e)}}function Cr(e){return 1-Math.cos(e*Bo)}function Er(e){return Math.pow(2,10*(e-1))}function Or(e){return 1-Math.sqrt(1-e*e)}function zr(e,t){var n;return arguments.length<2&&(t=.45),arguments.length?n=t/jo*Math.asin(1/e):(e=1,n=t/4),function(r){return 1+e*Math.pow(2,-10*r)*Math.sin((r-n)*jo/t)}}function Lr(e){return e||(e=1.70158),function(t){return t*t*((e+1)*t-e)}}function Nr(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function Pr(e,t){e=co.hcl(e),t=co.hcl(t);var n=e.h,r=e.c,i=e.l,a=t.h-n,o=t.c-r,s=t.l-i;return isNaN(o)&&(o=0,r=isNaN(r)?t.c:r),isNaN(a)?(a=0,n=isNaN(n)?t.h:n):a>180?a-=360:a<-180&&(a+=360),function(e){return de(n+a*e,r+o*e,i+s*e)+""}}function Ir(e,t){e=co.hsl(e),t=co.hsl(t);var n=e.h,r=e.s,i=e.l,a=t.h-n,o=t.s-r,s=t.l-i;return isNaN(o)&&(o=0,r=isNaN(r)?t.s:r),isNaN(a)?(a=0,n=isNaN(n)?t.h:n):a>180?a-=360:a<-180&&(a+=360),function(e){return le(n+a*e,r+o*e,i+s*e)+""}}function Dr(e,t){e=co.lab(e),t=co.lab(t);var n=e.l,r=e.a,i=e.b,a=t.l-n,o=t.a-r,s=t.b-i;return function(e){return fe(n+a*e,r+o*e,i+s*e)+""}}function Rr(e,t){return t-=e,function(n){return Math.round(e+t*n)}}function jr(e){var t=[e.a,e.b],n=[e.c,e.d],r=Br(t),i=qr(t,n),a=Br(Wr(n,t,-i))||0;t[0]*n[1]<n[0]*t[1]&&(t[0]*=-1,t[1]*=-1,r*=-1,i*=-1),this.rotate=(r?Math.atan2(t[1],t[0]):Math.atan2(-n[0],n[1]))*Ho,this.translate=[e.e,e.f],this.scale=[r,a],this.skew=a?Math.atan2(i,a)*Ho:0}function qr(e,t){return e[0]*t[0]+e[1]*t[1]}function Br(e){var t=Math.sqrt(qr(e,e));return t&&(e[0]/=t,e[1]/=t),t}function Wr(e,t,n){return e[0]+=n*t[0],e[1]+=n*t[1],e}function Hr(e){return e.length?e.pop()+",":""}function Fr(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var i=n.push("translate(",null,",",null,")");r.push({i:i-4,x:br(e[0],t[0])},{i:i-2,x:br(e[1],t[1])})}else(t[0]||t[1])&&n.push("translate("+t+")")}function Xr(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(Hr(n)+"rotate(",null,")")-2,x:br(e,t)})):t&&n.push(Hr(n)+"rotate("+t+")")}function Ur(e,t,n,r){e!==t?r.push({i:n.push(Hr(n)+"skewX(",null,")")-2,x:br(e,t)}):t&&n.push(Hr(n)+"skewX("+t+")")}function Vr(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var i=n.push(Hr(n)+"scale(",null,",",null,")");r.push({i:i-4,x:br(e[0],t[0])},{i:i-2,x:br(e[1],t[1])})}else 1===t[0]&&1===t[1]||n.push(Hr(n)+"scale("+t+")")}function Gr(e,t){var n=[],r=[];return e=co.transform(e),t=co.transform(t),Fr(e.translate,t.translate,n,r),Xr(e.rotate,t.rotate,n,r),Ur(e.skew,t.skew,n,r),Vr(e.scale,t.scale,n,r),e=t=null,function(e){for(var t,i=-1,a=r.length;++i<a;)n[(t=r[i]).i]=t.x(e);return n.join("")}}function Yr(e,t){return t=(t-=e=+e)||1/t,function(n){return(n-e)/t}}function Qr(e,t){return t=(t-=e=+e)||1/t,function(n){return Math.max(0,Math.min(1,(n-e)/t))}}function Kr(e){for(var t=e.source,n=e.target,r=Jr(t,n),i=[t];t!==r;)t=t.parent,i.push(t);for(var a=i.length;n!==r;)i.splice(a,0,n),n=n.parent;return i}function Zr(e){for(var t=[],n=e.parent;null!=n;)t.push(e),e=n,n=n.parent;return t.push(e),t}function Jr(e,t){if(e===t)return e;for(var n=Zr(e),r=Zr(t),i=n.pop(),a=r.pop(),o=null;i===a;)o=i,i=n.pop(),a=r.pop();return o}function ei(e){e.fixed|=2}function ti(e){e.fixed&=-7}function ni(e){e.fixed|=4,e.px=e.x,e.py=e.y}function ri(e){e.fixed&=-5}function ii(e,t,n){var r=0,i=0;if(e.charge=0,!e.leaf)for(var a,o=e.nodes,s=o.length,c=-1;++c<s;)null!=(a=o[c])&&(ii(a,t,n),e.charge+=a.charge,r+=a.charge*a.cx,i+=a.charge*a.cy);if(e.point){e.leaf||(e.point.x+=Math.random()-.5,e.point.y+=Math.random()-.5);var l=t*n[e.point.index];e.charge+=e.pointCharge=l,r+=l*e.point.x,i+=l*e.point.y}e.cx=r/e.charge,e.cy=i/e.charge}function ai(e,t){return co.rebind(e,t,"sort","children","value"),e.nodes=e,e.links=di,e}function oi(e,t){for(var n=[e];null!=(e=n.pop());)if(t(e),(i=e.children)&&(r=i.length))for(var r,i;--r>=0;)n.push(i[r])}function si(e,t){for(var n=[e],r=[];null!=(e=n.pop());)if(r.push(e),(a=e.children)&&(i=a.length))for(var i,a,o=-1;++o<i;)n.push(a[o]);for(;null!=(e=r.pop());)t(e)}function ci(e){return e.children}function li(e){return e.value}function ui(e,t){return t.value-e.value}function di(e){return co.merge(e.map(function(e){return(e.children||[]).map(function(t){return{source:e,target:t}})}))}function pi(e){return e.x}function fi(e){return e.y}function hi(e,t,n){e.y0=t,e.y=n}function mi(e){return co.range(e.length)}function gi(e){for(var t=-1,n=e[0].length,r=[];++t<n;)r[t]=0;return r}function vi(e){for(var t,n=1,r=0,i=e[0][1],a=e.length;n<a;++n)(t=e[n][1])>i&&(r=n,i=t);return r}function bi(e){return e.reduce(yi,0)}function yi(e,t){return e+t[1]}function xi(e,t){return Mi(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function Mi(e,t){for(var n=-1,r=+e[0],i=(e[1]-r)/t,a=[];++n<=t;)a[n]=i*n+r;return a}function _i(e){return[co.min(e),co.max(e)]}function wi(e,t){return e.value-t.value}function Ai(e,t){var n=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=n,n._pack_prev=t}function Si(e,t){e._pack_next=t,t._pack_prev=e}function ki(e,t){var n=t.x-e.x,r=t.y-e.y,i=e.r+t.r;return.999*i*i>n*n+r*r}function $i(e){function t(e){u=Math.min(e.x-e.r,u),d=Math.max(e.x+e.r,d),p=Math.min(e.y-e.r,p),f=Math.max(e.y+e.r,f)}if((n=e.children)&&(l=n.length)){var n,r,i,a,o,s,c,l,u=1/0,d=-1/0,p=1/0,f=-1/0;if(n.forEach(Ti),r=n[0],r.x=-r.r,r.y=0,t(r),l>1&&(i=n[1],i.x=i.r,i.y=0,t(i),l>2))for(a=n[2],Oi(r,i,a),t(a),Ai(r,a),r._pack_prev=a,Ai(a,i),i=r._pack_next,o=3;o<l;o++){Oi(r,i,a=n[o]);var h=0,m=1,g=1;for(s=i._pack_next;s!==i;s=s._pack_next,m++)if(ki(s,a)){h=1;break}if(1==h)for(c=r._pack_prev;c!==s._pack_prev&&!ki(c,a);c=c._pack_prev,g++);h?(m<g||m==g&&i.r<r.r?Si(r,i=s):Si(r=c,i),o--):(Ai(r,a),i=a,t(a))}var v=(u+d)/2,b=(p+f)/2,y=0;for(o=0;o<l;o++)a=n[o],a.x-=v,a.y-=b,y=Math.max(y,a.r+Math.sqrt(a.x*a.x+a.y*a.y));e.r=y,n.forEach(Ci)}}function Ti(e){e._pack_next=e._pack_prev=e}function Ci(e){delete e._pack_next,delete e._pack_prev}function Ei(e,t,n,r){var i=e.children;if(e.x=t+=r*e.x,e.y=n+=r*e.y,e.r*=r,i)for(var a=-1,o=i.length;++a<o;)Ei(i[a],t,n,r)}function Oi(e,t,n){var r=e.r+n.r,i=t.x-e.x,a=t.y-e.y;if(r&&(i||a)){var o=t.r+n.r,s=i*i+a*a;o*=o,r*=r;var c=.5+(r-o)/(2*s),l=Math.sqrt(Math.max(0,2*o*(r+s)-(r-=s)*r-o*o))/(2*s);n.x=e.x+c*i+l*a,n.y=e.y+c*a-l*i}else n.x=e.x+r,n.y=e.y}function zi(e,t){return e.parent==t.parent?1:2}function Li(e){var t=e.children;return t.length?t[0]:e.t}function Ni(e){var t,n=e.children;return(t=n.length)?n[t-1]:e.t}function Pi(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function Ii(e){for(var t,n=0,r=0,i=e.children,a=i.length;--a>=0;)t=i[a],t.z+=n,t.m+=n,n+=t.s+(r+=t.c)}function Di(e,t,n){return e.a.parent===t.parent?e.a:n}function Ri(e){return 1+co.max(e,function(e){return e.y})}function ji(e){return e.reduce(function(e,t){return e+t.x},0)/e.length}function qi(e){var t=e.children;return t&&t.length?qi(t[0]):e}function Bi(e){var t,n=e.children;return n&&(t=n.length)?Bi(n[t-1]):e}function Wi(e){return{x:e.x,y:e.y,dx:e.dx,dy:e.dy}}function Hi(e,t){var n=e.x+t[3],r=e.y+t[0],i=e.dx-t[1]-t[3],a=e.dy-t[0]-t[2];return i<0&&(n+=i/2,i=0),a<0&&(r+=a/2,a=0),{x:n,y:r,dx:i,dy:a}}function Fi(e){var t=e[0],n=e[e.length-1];return t<n?[t,n]:[n,t]}function Xi(e){return e.rangeExtent?e.rangeExtent():Fi(e.range())}function Ui(e,t,n,r){var i=n(e[0],e[1]),a=r(t[0],t[1]);return function(e){return a(i(e))}}function Vi(e,t){var n,r=0,i=e.length-1,a=e[r],o=e[i];return o<a&&(n=r,r=i,i=n,n=a,a=o,o=n),e[r]=t.floor(a),e[i]=t.ceil(o),e}function Gi(e){return e?{floor:function(t){return Math.floor(t/e)*e},ceil:function(t){return Math.ceil(t/e)*e}}:Mc}function Yi(e,t,n,r){var i=[],a=[],o=0,s=Math.min(e.length,t.length)-1;for(e[s]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<=s;)i.push(n(e[o-1],e[o])),a.push(r(t[o-1],t[o]));return function(t){var n=co.bisect(e,t,1,s)-1;return a[n](i[n](t))}}function Qi(e,t,n,r){function i(){var i=Math.min(e.length,t.length)>2?Yi:Ui,c=r?Qr:Yr;return o=i(e,t,c,n),s=i(t,e,c,xr),a}function a(e){return o(e)}var o,s;return a.invert=function(e){return s(e)},a.domain=function(t){return arguments.length?(e=t.map(Number),i()):e},a.range=function(e){return arguments.length?(t=e,i()):t},a.rangeRound=function(e){return a.range(e).interpolate(Rr)},a.clamp=function(e){return arguments.length?(r=e,i()):r},a.interpolate=function(e){return arguments.length?(n=e,i()):n},a.ticks=function(t){return ea(e,t)},a.tickFormat=function(t,n){return ta(e,t,n)},a.nice=function(t){return Zi(e,t),i()},a.copy=function(){return Qi(e,t,n,r)},i()}function Ki(e,t){return co.rebind(e,t,"range","rangeRound","interpolate","clamp")}function Zi(e,t){return Vi(e,Gi(Ji(e,t)[2])),Vi(e,Gi(Ji(e,t)[2])),e}function Ji(e,t){null==t&&(t=10);var n=Fi(e),r=n[1]-n[0],i=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),a=t/r*i;return a<=.15?i*=10:a<=.35?i*=5:a<=.75&&(i*=2),n[0]=Math.ceil(n[0]/i)*i,n[1]=Math.floor(n[1]/i)*i+.5*i,n[2]=i,n}function ea(e,t){return co.range.apply(co,Ji(e,t))}function ta(e,t,n){var r=Ji(e,t);if(n){var i=ls.exec(n);if(i.shift(),"s"===i[8]){var a=co.formatPrefix(Math.max(yo(r[0]),yo(r[1])));return i[7]||(i[7]="."+na(a.scale(r[2]))),i[8]="f",n=co.format(i.join("")),function(e){return n(a.scale(e))+a.symbol}}i[7]||(i[7]="."+ra(i[8],r)),n=i.join("")}else n=",."+na(r[2])+"f";return co.format(n)}function na(e){return-Math.floor(Math.log(e)/Math.LN10+.01)}function ra(e,t){var n=na(t[2]);return e in _c?Math.abs(n-na(Math.max(yo(t[0]),yo(t[1]))))+ +("e"!==e):n-2*("%"===e)}function ia(e,t,n,r){function i(e){return(n?Math.log(e<0?0:e):-Math.log(e>0?0:-e))/Math.log(t)}function a(e){return n?Math.pow(t,e):-Math.pow(t,-e)}function o(t){return e(i(t))}return o.invert=function(t){return a(e.invert(t))},o.domain=function(t){return arguments.length?(n=t[0]>=0,e.domain((r=t.map(Number)).map(i)),o):r},o.base=function(n){return arguments.length?(t=+n,e.domain(r.map(i)),o):t},o.nice=function(){var t=Vi(r.map(i),n?Math:Ac);return e.domain(t),r=t.map(a),o},o.ticks=function(){var e=Fi(r),o=[],s=e[0],c=e[1],l=Math.floor(i(s)),u=Math.ceil(i(c)),d=t%1?2:t;if(isFinite(u-l)){if(n){for(;l<u;l++)for(var p=1;p<d;p++)o.push(a(l)*p);o.push(a(l))}else for(o.push(a(l));l++<u;)for(var p=d-1;p>0;p--)o.push(a(l)*p);for(l=0;o[l]<s;l++);for(u=o.length;o[u-1]>c;u--);o=o.slice(l,u)}return o},o.tickFormat=function(e,n){if(!arguments.length)return wc;arguments.length<2?n=wc:"function"!=typeof n&&(n=co.format(n));var r=Math.max(1,t*e/o.ticks().length);return function(e){var o=e/a(Math.round(i(e)));return o*t<t-.5&&(o*=t),o<=r?n(e):""}},o.copy=function(){return ia(e.copy(),t,n,r)},Ki(o,e)}function aa(e,t,n){function r(t){return e(i(t))}var i=oa(t),a=oa(1/t);return r.invert=function(t){return a(e.invert(t))},r.domain=function(t){return arguments.length?(e.domain((n=t.map(Number)).map(i)),r):n},r.ticks=function(e){return ea(n,e)},r.tickFormat=function(e,t){return ta(n,e,t)},r.nice=function(e){return r.domain(Zi(n,e))},r.exponent=function(o){return arguments.length?(i=oa(t=o),a=oa(1/t),e.domain(n.map(i)),r):t},r.copy=function(){return aa(e.copy(),t,n)},Ki(r,e)}function oa(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function sa(e,t){function n(n){return a[((i.get(n)||("range"===t.t?i.set(n,e.push(n)):NaN))-1)%a.length]}function r(t,n){return co.range(e.length).map(function(e){return t+n*e})}var i,a,o;return n.domain=function(r){if(!arguments.length)return e;e=[],i=new u;for(var a,o=-1,s=r.length;++o<s;)i.has(a=r[o])||i.set(a,e.push(a));return n[t.t].apply(n,t.a)},n.range=function(e){return arguments.length?(a=e,o=0,t={t:"range",a:arguments},n):a},n.rangePoints=function(i,s){arguments.length<2&&(s=0);var c=i[0],l=i[1],u=e.length<2?(c=(c+l)/2,0):(l-c)/(e.length-1+s);return a=r(c+u*s/2,u),o=0,t={t:"rangePoints",a:arguments},n},n.rangeRoundPoints=function(i,s){arguments.length<2&&(s=0);var c=i[0],l=i[1],u=e.length<2?(c=l=Math.round((c+l)/2),0):(l-c)/(e.length-1+s)|0;return a=r(c+Math.round(u*s/2+(l-c-(e.length-1+s)*u)/2),u),o=0,t={t:"rangeRoundPoints",a:arguments},n},n.rangeBands=function(i,s,c){arguments.length<2&&(s=0),arguments.length<3&&(c=s);var l=i[1]<i[0],u=i[l-0],d=i[1-l],p=(d-u)/(e.length-s+2*c);return a=r(u+p*c,p),l&&a.reverse(),o=p*(1-s),t={t:"rangeBands",a:arguments},n},n.rangeRoundBands=function(i,s,c){arguments.length<2&&(s=0),arguments.length<3&&(c=s);var l=i[1]<i[0],u=i[l-0],d=i[1-l],p=Math.floor((d-u)/(e.length-s+2*c));return a=r(u+Math.round((d-u-(e.length-s)*p)/2),p),l&&a.reverse(),o=Math.round(p*(1-s)),t={t:"rangeRoundBands",a:arguments},n},n.rangeBand=function(){return o},n.rangeExtent=function(){return Fi(t.a[0])},n.copy=function(){return sa(e,t)},n.domain(e)}function ca(e,t){function n(){var n=0,r=t.length;for(s=[];++n<r;)s[n-1]=co.quantile(e,n/r);return o}function o(e){if(!isNaN(e=+e))return t[co.bisect(s,e)]}var s;return o.domain=function(t){return arguments.length?(e=t.map(i).filter(a).sort(r),n()):e},o.range=function(e){return arguments.length?(t=e,n()):t},o.quantiles=function(){return s},o.invertExtent=function(n){return n=t.indexOf(n),n<0?[NaN,NaN]:[n>0?s[n-1]:e[0],n<s.length?s[n]:e[e.length-1]]},o.copy=function(){return ca(e,t)},n()}function la(e,t,n){function r(t){return n[Math.max(0,Math.min(o,Math.floor(a*(t-e))))]}function i(){return a=n.length/(t-e),o=n.length-1,r}var a,o;return r.domain=function(n){return arguments.length?(e=+n[0],t=+n[n.length-1],i()):[e,t]},r.range=function(e){return arguments.length?(n=e,i()):n},r.invertExtent=function(t){return t=n.indexOf(t),t=t<0?NaN:t/a+e,[t,t+1/a]},r.copy=function(){return la(e,t,n)},i()}function ua(e,t){function n(n){if(n<=n)return t[co.bisect(e,n)]}return n.domain=function(t){return arguments.length?(e=t,n):e},n.range=function(e){return arguments.length?(t=e,n):t},n.invertExtent=function(n){return n=t.indexOf(n),[e[n-1],e[n]]},n.copy=function(){return ua(e,t)},n}function da(e){function t(e){return+e}return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=n.map(t),t):e},t.ticks=function(t){return ea(e,t)},t.tickFormat=function(t,n){return ta(e,t,n)},t.copy=function(){return da(e)},t}function pa(){return 0}function fa(e){return e.innerRadius}function ha(e){return e.outerRadius}function ma(e){return e.startAngle}function ga(e){return e.endAngle}function va(e){return e&&e.padAngle}function ba(e,t,n,r){return(e-n)*t-(t-r)*e>0?0:1}function ya(e,t,n,r,i){var a=e[0]-t[0],o=e[1]-t[1],s=(i?r:-r)/Math.sqrt(a*a+o*o),c=s*o,l=-s*a,u=e[0]+c,d=e[1]+l,p=t[0]+c,f=t[1]+l,h=(u+p)/2,m=(d+f)/2,g=p-u,v=f-d,b=g*g+v*v,y=n-r,x=u*f-p*d,M=(v<0?-1:1)*Math.sqrt(Math.max(0,y*y*b-x*x)),_=(x*v-g*M)/b,w=(-x*g-v*M)/b,A=(x*v+g*M)/b,S=(-x*g+v*M)/b,k=_-h,$=w-m,T=A-h,C=S-m;return k*k+$*$>T*T+C*C&&(_=A,w=S),[[_-c,w-l],[_*n/y,w*n/y]]}function xa(e){function t(t){function o(){l.push("M",a(e(u),s))}for(var c,l=[],u=[],d=-1,p=t.length,f=$e(n),h=$e(r);++d<p;)i.call(this,c=t[d],d)?u.push([+f.call(this,c,d),+h.call(this,c,d)]):u.length&&(o(),u=[]);return u.length&&o(),l.length?l.join(""):null}var n=En,r=On,i=Et,a=Ma,o=a.key,s=.7;return t.x=function(e){return arguments.length?(n=e,t):n},t.y=function(e){return arguments.length?(r=e,t):r},t.defined=function(e){return arguments.length?(i=e,t):i},t.interpolate=function(e){return arguments.length?(o="function"==typeof e?a=e:(a=Ec.get(e)||Ma).key,t):o},t.tension=function(e){return arguments.length?(s=e,t):s},t}function Ma(e){return e.length>1?e.join("L"):e+"Z"}function _a(e){return e.join("L")+"Z"}function wa(e){for(var t=0,n=e.length,r=e[0],i=[r[0],",",r[1]];++t<n;)i.push("H",(r[0]+(r=e[t])[0])/2,"V",r[1]);return n>1&&i.push("H",r[0]),i.join("")}function Aa(e){for(var t=0,n=e.length,r=e[0],i=[r[0],",",r[1]];++t<n;)i.push("V",(r=e[t])[1],"H",r[0]);return i.join("")}function Sa(e){for(var t=0,n=e.length,r=e[0],i=[r[0],",",r[1]];++t<n;)i.push("H",(r=e[t])[0],"V",r[1]);return i.join("")}function ka(e,t){return e.length<4?Ma(e):e[1]+Ca(e.slice(1,-1),Ea(e,t))}function $a(e,t){return e.length<3?_a(e):e[0]+Ca((e.push(e[0]),e),Ea([e[e.length-2]].concat(e,[e[1]]),t))}function Ta(e,t){return e.length<3?Ma(e):e[0]+Ca(e,Ea(e,t))}function Ca(e,t){if(t.length<1||e.length!=t.length&&e.length!=t.length+2)return Ma(e);var n=e.length!=t.length,r="",i=e[0],a=e[1],o=t[0],s=o,c=1;if(n&&(r+="Q"+(a[0]-2*o[0]/3)+","+(a[1]-2*o[1]/3)+","+a[0]+","+a[1],i=e[1],c=2),t.length>1){s=t[1],a=e[c],c++,r+="C"+(i[0]+o[0])+","+(i[1]+o[1])+","+(a[0]-s[0])+","+(a[1]-s[1])+","+a[0]+","+a[1];for(var l=2;l<t.length;l++,c++)a=e[c],s=t[l],r+="S"+(a[0]-s[0])+","+(a[1]-s[1])+","+a[0]+","+a[1]}if(n){var u=e[c];r+="Q"+(a[0]+2*s[0]/3)+","+(a[1]+2*s[1]/3)+","+u[0]+","+u[1]}return r}function Ea(e,t){for(var n,r=[],i=(1-t)/2,a=e[0],o=e[1],s=1,c=e.length;++s<c;)n=a,a=o,o=e[s],r.push([i*(o[0]-n[0]),i*(o[1]-n[1])]);return r}function Oa(e){if(e.length<3)return Ma(e);var t=1,n=e.length,r=e[0],i=r[0],a=r[1],o=[i,i,i,(r=e[1])[0]],s=[a,a,a,r[1]],c=[i,",",a,"L",Pa(Lc,o),",",Pa(Lc,s)];for(e.push(e[n-1]);++t<=n;)r=e[t],o.shift(),o.push(r[0]),s.shift(),s.push(r[1]),Ia(c,o,s);return e.pop(),c.push("L",r),c.join("")}function za(e){if(e.length<4)return Ma(e);for(var t,n=[],r=-1,i=e.length,a=[0],o=[0];++r<3;)t=e[r],a.push(t[0]),o.push(t[1]);for(n.push(Pa(Lc,a)+","+Pa(Lc,o)),--r;++r<i;)t=e[r],a.shift(),a.push(t[0]),o.shift(),o.push(t[1]),Ia(n,a,o);return n.join("")}function La(e){for(var t,n,r=-1,i=e.length,a=i+4,o=[],s=[];++r<4;)n=e[r%i],o.push(n[0]),s.push(n[1]);for(t=[Pa(Lc,o),",",Pa(Lc,s)],--r;++r<a;)n=e[r%i],o.shift(),o.push(n[0]),s.shift(),s.push(n[1]),Ia(t,o,s);return t.join("")}function Na(e,t){var n=e.length-1;if(n)for(var r,i,a=e[0][0],o=e[0][1],s=e[n][0]-a,c=e[n][1]-o,l=-1;++l<=n;)r=e[l],i=l/n,r[0]=t*r[0]+(1-t)*(a+i*s),r[1]=t*r[1]+(1-t)*(o+i*c);return Oa(e)}function Pa(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}function Ia(e,t,n){e.push("C",Pa(Oc,t),",",Pa(Oc,n),",",Pa(zc,t),",",Pa(zc,n),",",Pa(Lc,t),",",Pa(Lc,n))}function Da(e,t){return(t[1]-e[1])/(t[0]-e[0])}function Ra(e){for(var t=0,n=e.length-1,r=[],i=e[0],a=e[1],o=r[0]=Da(i,a);++t<n;)r[t]=(o+(o=Da(i=a,a=e[t+1])))/2;return r[t]=o,r}function ja(e){for(var t,n,r,i,a=[],o=Ra(e),s=-1,c=e.length-1;++s<c;)t=Da(e[s],e[s+1]),yo(t)<Io?o[s]=o[s+1]=0:(n=o[s]/t,r=o[s+1]/t,(i=n*n+r*r)>9&&(i=3*t/Math.sqrt(i),o[s]=i*n,o[s+1]=i*r));for(s=-1;++s<=c;)i=(e[Math.min(c,s+1)][0]-e[Math.max(0,s-1)][0])/(6*(1+o[s]*o[s])),a.push([i||0,o[s]*i||0]);return a}function qa(e){return e.length<3?Ma(e):e[0]+Ca(e,ja(e))}function Ba(e){for(var t,n,r,i=-1,a=e.length;++i<a;)t=e[i],n=t[0],r=t[1]-Bo,t[0]=n*Math.cos(r),t[1]=n*Math.sin(r);return e}function Wa(e){function t(t){function c(){m.push("M",s(e(v),d),u,l(e(g.reverse()),d),"Z")}for(var p,f,h,m=[],g=[],v=[],b=-1,y=t.length,x=$e(n),M=$e(i),_=n===r?function(){return f}:$e(r),w=i===a?function(){return h}:$e(a);++b<y;)o.call(this,p=t[b],b)?(g.push([f=+x.call(this,p,b),h=+M.call(this,p,b)]),v.push([+_.call(this,p,b),+w.call(this,p,b)])):g.length&&(c(),g=[],v=[]);return g.length&&c(),m.length?m.join(""):null}var n=En,r=En,i=0,a=On,o=Et,s=Ma,c=s.key,l=s,u="L",d=.7;return t.x=function(e){return arguments.length?(n=r=e,t):r},t.x0=function(e){return arguments.length?(n=e,t):n},t.x1=function(e){return arguments.length?(r=e,t):r},t.y=function(e){return arguments.length?(i=a=e,t):a},t.y0=function(e){return arguments.length?(i=e,t):i},t.y1=function(e){return arguments.length?(a=e,t):a},t.defined=function(e){return arguments.length?(o=e,t):o},t.interpolate=function(e){return arguments.length?(c="function"==typeof e?s=e:(s=Ec.get(e)||Ma).key,l=s.reverse||s,u=s.closed?"M":"L",t):c},t.tension=function(e){return arguments.length?(d=e,t):d},t}function Ha(e){return e.radius}function Fa(e){return[e.x,e.y]}function Xa(e){return function(){var t=e.apply(this,arguments),n=t[0],r=t[1]-Bo;return[n*Math.cos(r),n*Math.sin(r)]}}function Ua(){return 64}function Va(){return"circle"}function Ga(e){var t=Math.sqrt(e/Ro);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}function Ya(e){return function(){var t,n,r;(t=this[e])&&(r=t[n=t.active])&&(r.timer.c=null,r.timer.t=NaN,--t.count?delete t[n]:delete this[e],t.active+=.5,r.event&&r.event.interrupt.call(this,this.__data__,r.index))}}function Qa(e,t,n){return Ao(e,qc),e.namespace=t,e.id=n,e}function Ka(e,t,n,r){var i=e.id,a=e.namespace;return F(e,"function"==typeof n?function(e,o,s){e[a][i].tween.set(t,r(n.call(e,e.__data__,o,s)))}:(n=r(n),function(e){e[a][i].tween.set(t,n)}))}function Za(e){return null==e&&(e=""),function(){this.textContent=e}}function Ja(e){return null==e?"__transition__":"__transition_"+e+"__"}function eo(e,t,n,r,i){function a(e){var t=m.delay;if(l.t=t+c,t<=e)return o(e-t);l.c=o}function o(n){var i=h.active,a=h[i];a&&(a.timer.c=null,a.timer.t=NaN,--h.count,delete h[i],a.event&&a.event.interrupt.call(e,e.__data__,a.index));for(var o in h)if(+o<r){var u=h[o];u.timer.c=null,u.timer.t=NaN,--h.count,delete h[o]}l.c=s,ze(function(){return l.c&&s(n||1)&&(l.c=null,l.t=NaN),1},0,c),h.active=r,m.event&&m.event.start.call(e,e.__data__,t),f=[],m.tween.forEach(function(n,r){(r=r.call(e,e.__data__,t))&&f.push(r)}),p=m.ease,d=m.duration}function s(i){for(var a=i/d,o=p(a),s=f.length;s>0;)f[--s].call(e,o);if(a>=1)return m.event&&m.event.end.call(e,e.__data__,t),--h.count?delete h[r]:delete e[n],1}var c,l,d,p,f,h=e[n]||(e[n]={active:0,count:0}),m=h[r];m||(c=i.time,l=ze(a,0,c),m=h[r]={tween:new u,time:c,timer:l,delay:i.delay,duration:i.duration,ease:i.ease,index:t},i=null,++h.count)}function to(e,t,n){e.attr("transform",function(e){var r=t(e);return"translate("+(isFinite(r)?r:n(e))+",0)"})}function no(e,t,n){e.attr("transform",function(e){var r=t(e);return"translate(0,"+(isFinite(r)?r:n(e))+")"})}function ro(e){return e.toISOString()}function io(e,t,n){function r(t){return e(t)}function i(e,n){var r=e[1]-e[0],i=r/n,a=co.bisect(Yc,i);return a==Yc.length?[t.year,Ji(e.map(function(e){return e/31536e6}),n)[2]]:a?t[i/Yc[a-1]<Yc[a]/i?a-1:a]:[Zc,Ji(e,n)[2]]}return r.invert=function(t){return ao(e.invert(t))},r.domain=function(t){return arguments.length?(e.domain(t),r):e.domain().map(ao)},r.nice=function(e,t){function n(n){return!isNaN(n)&&!e.range(n,ao(+n+1),t).length}var a=r.domain(),o=Fi(a),s=null==e?i(o,10):"number"==typeof e&&i(o,e);return s&&(e=s[0],t=s[1]),r.domain(Vi(a,t>1?{floor:function(t){for(;n(t=e.floor(t));)t=ao(t-1);return t},ceil:function(t){for(;n(t=e.ceil(t));)t=ao(+t+1);return t}}:e))},
48r.ticks=function(e,t){var n=Fi(r.domain()),a=null==e?i(n,10):"number"==typeof e?i(n,e):!e.range&&[{range:e},t];return a&&(e=a[0],t=a[1]),e.range(n[0],ao(+n[1]+1),t<1?1:t)},r.tickFormat=function(){return n},r.copy=function(){return io(e.copy(),t,n)},Ki(r,e)}function ao(e){return new Date(e)}function oo(e){return JSON.parse(e.responseText)}function so(e){var t=po.createRange();return t.selectNode(po.body),t.createContextualFragment(e.responseText)}var co={version:"3.5.17"},lo=[].slice,uo=function(e){return lo.call(e)},po=this.document;if(po)try{uo(po.documentElement.childNodes)[0].nodeType}catch(e){uo=function(e){for(var t=e.length,n=new Array(t);t--;)n[t]=e[t];return n}}if(Date.now||(Date.now=function(){return+new Date}),po)try{po.createElement("DIV").style.setProperty("opacity",0,"")}catch(e){var fo=this.Element.prototype,ho=fo.setAttribute,mo=fo.setAttributeNS,go=this.CSSStyleDeclaration.prototype,vo=go.setProperty;fo.setAttribute=function(e,t){ho.call(this,e,t+"")},fo.setAttributeNS=function(e,t,n){mo.call(this,e,t,n+"")},go.setProperty=function(e,t,n){vo.call(this,e,t+"",n)}}co.ascending=r,co.descending=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},co.min=function(e,t){var n,r,i=-1,a=e.length;if(1===arguments.length){for(;++i<a;)if(null!=(r=e[i])&&r>=r){n=r;break}for(;++i<a;)null!=(r=e[i])&&n>r&&(n=r)}else{for(;++i<a;)if(null!=(r=t.call(e,e[i],i))&&r>=r){n=r;break}for(;++i<a;)null!=(r=t.call(e,e[i],i))&&n>r&&(n=r)}return n},co.max=function(e,t){var n,r,i=-1,a=e.length;if(1===arguments.length){for(;++i<a;)if(null!=(r=e[i])&&r>=r){n=r;break}for(;++i<a;)null!=(r=e[i])&&r>n&&(n=r)}else{for(;++i<a;)if(null!=(r=t.call(e,e[i],i))&&r>=r){n=r;break}for(;++i<a;)null!=(r=t.call(e,e[i],i))&&r>n&&(n=r)}return n},co.extent=function(e,t){var n,r,i,a=-1,o=e.length;if(1===arguments.length){for(;++a<o;)if(null!=(r=e[a])&&r>=r){n=i=r;break}for(;++a<o;)null!=(r=e[a])&&(n>r&&(n=r),i<r&&(i=r))}else{for(;++a<o;)if(null!=(r=t.call(e,e[a],a))&&r>=r){n=i=r;break}for(;++a<o;)null!=(r=t.call(e,e[a],a))&&(n>r&&(n=r),i<r&&(i=r))}return[n,i]},co.sum=function(e,t){var n,r=0,i=e.length,o=-1;if(1===arguments.length)for(;++o<i;)a(n=+e[o])&&(r+=n);else for(;++o<i;)a(n=+t.call(e,e[o],o))&&(r+=n);return r},co.mean=function(e,t){var n,r=0,o=e.length,s=-1,c=o;if(1===arguments.length)for(;++s<o;)a(n=i(e[s]))?r+=n:--c;else for(;++s<o;)a(n=i(t.call(e,e[s],s)))?r+=n:--c;if(c)return r/c},co.quantile=function(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],a=n-r;return a?i+a*(e[r]-i):i},co.median=function(e,t){var n,o=[],s=e.length,c=-1;if(1===arguments.length)for(;++c<s;)a(n=i(e[c]))&&o.push(n);else for(;++c<s;)a(n=i(t.call(e,e[c],c)))&&o.push(n);if(o.length)return co.quantile(o.sort(r),.5)},co.variance=function(e,t){var n,r,o=e.length,s=0,c=0,l=-1,u=0;if(1===arguments.length)for(;++l<o;)a(n=i(e[l]))&&(r=n-s,s+=r/++u,c+=r*(n-s));else for(;++l<o;)a(n=i(t.call(e,e[l],l)))&&(r=n-s,s+=r/++u,c+=r*(n-s));if(u>1)return c/(u-1)},co.deviation=function(){var e=co.variance.apply(this,arguments);return e?Math.sqrt(e):e};var bo=o(r);co.bisectLeft=bo.left,co.bisect=co.bisectRight=bo.right,co.bisector=function(e){return o(1===e.length?function(t,n){return r(e(t),n)}:e)},co.shuffle=function(e,t,n){(a=arguments.length)<3&&(n=e.length,a<2&&(t=0));for(var r,i,a=n-t;a;)i=Math.random()*a--|0,r=e[a+t],e[a+t]=e[i+t],e[i+t]=r;return e},co.permute=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},co.pairs=function(e){for(var t=0,n=e.length-1,r=e[0],i=new Array(n<0?0:n);t<n;)i[t]=[r,r=e[++t]];return i},co.transpose=function(e){if(!(i=e.length))return[];for(var t=-1,n=co.min(e,s),r=new Array(n);++t<n;)for(var i,a=-1,o=r[t]=new Array(i);++a<i;)o[a]=e[a][t];return r},co.zip=function(){return co.transpose(arguments)},co.keys=function(e){var t=[];for(var n in e)t.push(n);return t},co.values=function(e){var t=[];for(var n in e)t.push(e[n]);return t},co.entries=function(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t},co.merge=function(e){for(var t,n,r,i=e.length,a=-1,o=0;++a<i;)o+=e[a].length;for(n=new Array(o);--i>=0;)for(r=e[i],t=r.length;--t>=0;)n[--o]=r[t];return n};var yo=Math.abs;co.range=function(e,t,n){if(arguments.length<3&&(n=1,arguments.length<2&&(t=e,e=0)),(t-e)/n==1/0)throw new Error("infinite range");var r,i=[],a=c(yo(n)),o=-1;if(e*=a,t*=a,n*=a,n<0)for(;(r=e+n*++o)>t;)i.push(r/a);else for(;(r=e+n*++o)<t;)i.push(r/a);return i},co.map=function(e,t){var n=new u;if(e instanceof u)e.forEach(function(e,t){n.set(e,t)});else if(Array.isArray(e)){var r,i=-1,a=e.length;if(1===arguments.length)for(;++i<a;)n.set(i,e[i]);else for(;++i<a;)n.set(t.call(e,r=e[i],i),r)}else for(var o in e)n.set(o,e[o]);return n};var xo="__proto__",Mo="\0";l(u,{has:f,get:function(e){return this._[d(e)]},set:function(e,t){return this._[d(e)]=t},remove:h,keys:m,values:function(){var e=[];for(var t in this._)e.push(this._[t]);return e},entries:function(){var e=[];for(var t in this._)e.push({key:p(t),value:this._[t]});return e},size:g,empty:v,forEach:function(e){for(var t in this._)e.call(this,p(t),this._[t])}}),co.nest=function(){function e(t,o,s){if(s>=a.length)return r?r.call(i,o):n?o.sort(n):o;for(var c,l,d,p,f=-1,h=o.length,m=a[s++],g=new u;++f<h;)(p=g.get(c=m(l=o[f])))?p.push(l):g.set(c,[l]);return t?(l=t(),d=function(n,r){l.set(n,e(t,r,s))}):(l={},d=function(n,r){l[n]=e(t,r,s)}),g.forEach(d),l}function t(e,n){if(n>=a.length)return e;var r=[],i=o[n++];return e.forEach(function(e,i){r.push({key:e,values:t(i,n)})}),i?r.sort(function(e,t){return i(e.key,t.key)}):r}var n,r,i={},a=[],o=[];return i.map=function(t,n){return e(n,t,0)},i.entries=function(n){return t(e(co.map,n,0),0)},i.key=function(e){return a.push(e),i},i.sortKeys=function(e){return o[a.length-1]=e,i},i.sortValues=function(e){return n=e,i},i.rollup=function(e){return r=e,i},i},co.set=function(e){var t=new b;if(e)for(var n=0,r=e.length;n<r;++n)t.add(e[n]);return t},l(b,{has:f,add:function(e){return this._[d(e+="")]=!0,e},remove:h,values:m,size:g,empty:v,forEach:function(e){for(var t in this._)e.call(this,p(t))}}),co.behavior={},co.rebind=function(e,t){for(var n,r=1,i=arguments.length;++r<i;)e[n=arguments[r]]=x(e,t,t[n]);return e};var _o=["webkit","ms","moz","Moz","o","O"];co.dispatch=function(){for(var e=new w,t=-1,n=arguments.length;++t<n;)e[arguments[t]]=A(e);return e},w.prototype.on=function(e,t){var n=e.indexOf("."),r="";if(n>=0&&(r=e.slice(n+1),e=e.slice(0,n)),e)return arguments.length<2?this[e].on(r):this[e].on(r,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(r,null);return this}},co.event=null,co.requote=function(e){return e.replace(wo,"\\$&")};var wo=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Ao={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)e[n]=t[n]},So=function(e,t){return t.querySelector(e)},ko=function(e,t){return t.querySelectorAll(e)},$o=function(e,t){var n=e.matches||e[M(e,"matchesSelector")];return($o=function(e,t){return n.call(e,t)})(e,t)};"function"==typeof Sizzle&&(So=function(e,t){return Sizzle(e,t)[0]||null},ko=Sizzle,$o=Sizzle.matchesSelector),co.selection=function(){return co.select(po.documentElement)};var To=co.selection.prototype=[];To.select=function(e){var t,n,r,i,a=[];e=C(e);for(var o=-1,s=this.length;++o<s;){a.push(t=[]),t.parentNode=(r=this[o]).parentNode;for(var c=-1,l=r.length;++c<l;)(i=r[c])?(t.push(n=e.call(i,i.__data__,c,o)),n&&"__data__"in i&&(n.__data__=i.__data__)):t.push(null)}return T(a)},To.selectAll=function(e){var t,n,r=[];e=E(e);for(var i=-1,a=this.length;++i<a;)for(var o=this[i],s=-1,c=o.length;++s<c;)(n=o[s])&&(r.push(t=uo(e.call(n,n.__data__,s,i))),t.parentNode=n);return T(r)};var Co="http://www.w3.org/1999/xhtml",Eo={svg:"http://www.w3.org/2000/svg",xhtml:Co,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};co.ns={prefix:Eo,qualify:function(e){var t=e.indexOf(":"),n=e;return t>=0&&"xmlns"!==(n=e.slice(0,t))&&(e=e.slice(t+1)),Eo.hasOwnProperty(n)?{space:Eo[n],local:e}:e}},To.attr=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node();return e=co.ns.qualify(e),e.local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(t in e)this.each(O(t,e[t]));return this}return this.each(O(e,t))},To.classed=function(e,t){if(arguments.length<2){if("string"==typeof e){var n=this.node(),r=(e=N(e)).length,i=-1;if(t=n.classList){for(;++i<r;)if(!t.contains(e[i]))return!1}else for(t=n.getAttribute("class");++i<r;)if(!L(e[i]).test(t))return!1;return!0}for(t in e)this.each(P(t,e[t]));return this}return this.each(P(e,t))},To.style=function(e,t,r){var i=arguments.length;if(i<3){if("string"!=typeof e){i<2&&(t="");for(r in e)this.each(D(r,e[r],t));return this}if(i<2){var a=this.node();return n(a).getComputedStyle(a,null).getPropertyValue(e)}r=""}return this.each(D(e,t,r))},To.property=function(e,t){if(arguments.length<2){if("string"==typeof e)return this.node()[e];for(t in e)this.each(R(t,e[t]));return this}return this.each(R(e,t))},To.text=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}:null==e?function(){this.textContent=""}:function(){this.textContent=e}):this.node().textContent},To.html=function(e){return arguments.length?this.each("function"==typeof e?function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}:null==e?function(){this.innerHTML=""}:function(){this.innerHTML=e}):this.node().innerHTML},To.append=function(e){return e=j(e),this.select(function(){return this.appendChild(e.apply(this,arguments))})},To.insert=function(e,t){return e=j(e),t=C(t),this.select(function(){return this.insertBefore(e.apply(this,arguments),t.apply(this,arguments)||null)})},To.remove=function(){return this.each(q)},To.data=function(e,t){function n(e,n){var r,i,a,o=e.length,d=n.length,p=Math.min(o,d),f=new Array(d),h=new Array(d),m=new Array(o);if(t){var g,v=new u,b=new Array(o);for(r=-1;++r<o;)(i=e[r])&&(v.has(g=t.call(i,i.__data__,r))?m[r]=i:v.set(g,i),b[r]=g);for(r=-1;++r<d;)(i=v.get(g=t.call(n,a=n[r],r)))?!0!==i&&(f[r]=i,i.__data__=a):h[r]=B(a),v.set(g,!0);for(r=-1;++r<o;)r in b&&!0!==v.get(b[r])&&(m[r]=e[r])}else{for(r=-1;++r<p;)i=e[r],a=n[r],i?(i.__data__=a,f[r]=i):h[r]=B(a);for(;r<d;++r)h[r]=B(n[r]);for(;r<o;++r)m[r]=e[r]}h.update=f,h.parentNode=f.parentNode=m.parentNode=e.parentNode,s.push(h),c.push(f),l.push(m)}var r,i,a=-1,o=this.length;if(!arguments.length){for(e=new Array(o=(r=this[0]).length);++a<o;)(i=r[a])&&(e[a]=i.__data__);return e}var s=X([]),c=T([]),l=T([]);if("function"==typeof e)for(;++a<o;)n(r=this[a],e.call(r,r.parentNode.__data__,a));else for(;++a<o;)n(r=this[a],e);return c.enter=function(){return s},c.exit=function(){return l},c},To.datum=function(e){return arguments.length?this.property("__data__",e):this.property("__data__")},To.filter=function(e){var t,n,r,i=[];"function"!=typeof e&&(e=W(e));for(var a=0,o=this.length;a<o;a++){i.push(t=[]),t.parentNode=(n=this[a]).parentNode;for(var s=0,c=n.length;s<c;s++)(r=n[s])&&e.call(r,r.__data__,s,a)&&t.push(r)}return T(i)},To.order=function(){for(var e=-1,t=this.length;++e<t;)for(var n,r=this[e],i=r.length-1,a=r[i];--i>=0;)(n=r[i])&&(a&&a!==n.nextSibling&&a.parentNode.insertBefore(n,a),a=n);return this},To.sort=function(e){e=H.apply(this,arguments);for(var t=-1,n=this.length;++t<n;)this[t].sort(e);return this.order()},To.each=function(e){return F(this,function(t,n,r){e.call(t,t.__data__,n,r)})},To.call=function(e){var t=uo(arguments);return e.apply(t[0]=this,t),this},To.empty=function(){return!this.node()},To.node=function(){for(var e=0,t=this.length;e<t;e++)for(var n=this[e],r=0,i=n.length;r<i;r++){var a=n[r];if(a)return a}return null},To.size=function(){var e=0;return F(this,function(){++e}),e};var Oo=[];co.selection.enter=X,co.selection.enter.prototype=Oo,Oo.append=To.append,Oo.empty=To.empty,Oo.node=To.node,Oo.call=To.call,Oo.size=To.size,Oo.select=function(e){for(var t,n,r,i,a,o=[],s=-1,c=this.length;++s<c;){r=(i=this[s]).update,o.push(t=[]),t.parentNode=i.parentNode;for(var l=-1,u=i.length;++l<u;)(a=i[l])?(t.push(r[l]=n=e.call(i.parentNode,a.__data__,l,s)),n.__data__=a.__data__):t.push(null)}return T(o)},Oo.insert=function(e,t){return arguments.length<2&&(t=U(this)),To.insert.call(this,e,t)},co.select=function(t){var n;return"string"==typeof t?(n=[So(t,po)],n.parentNode=po.documentElement):(n=[t],n.parentNode=e(t)),T([n])},co.selectAll=function(e){var t;return"string"==typeof e?(t=uo(ko(e,po)),t.parentNode=po.documentElement):(t=uo(e),t.parentNode=null),T([t])},To.on=function(e,t,n){var r=arguments.length;if(r<3){if("string"!=typeof e){r<2&&(t=!1);for(n in e)this.each(V(n,e[n],t));return this}if(r<2)return(r=this.node()["__on"+e])&&r._;n=!1}return this.each(V(e,t,n))};var zo=co.map({mouseenter:"mouseover",mouseleave:"mouseout"});po&&zo.forEach(function(e){"on"+e in po&&zo.remove(e)});var Lo,No=0;co.mouse=function(e){return K(e,k())};var Po=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;co.touch=function(e,t,n){if(arguments.length<3&&(n=t,t=k().changedTouches),t)for(var r,i=0,a=t.length;i<a;++i)if((r=t[i]).identifier===n)return K(e,r)},co.behavior.drag=function(){function e(){this.on("mousedown.drag",a).on("touchstart.drag",o)}function t(e,t,n,a,o){return function(){function s(){var e,n,r=t(p,m);r&&(e=r[0]-y[0],n=r[1]-y[1],h|=e|n,y=r,f({type:"drag",x:r[0]+l[0],y:r[1]+l[1],dx:e,dy:n}))}function c(){t(p,m)&&(v.on(a+g,null).on(o+g,null),b(h),f({type:"dragend"}))}var l,u=this,d=co.event.target.correspondingElement||co.event.target,p=u.parentNode,f=r.of(u,arguments),h=0,m=e(),g=".drag"+(null==m?"":"-"+m),v=co.select(n(d)).on(a+g,s).on(o+g,c),b=Q(d),y=t(p,m);i?(l=i.apply(u,arguments),l=[l.x-y[0],l.y-y[1]]):l=[0,0],f({type:"dragstart"})}}var r=$(e,"drag","dragstart","dragend"),i=null,a=t(_,co.mouse,n,"mousemove","mouseup"),o=t(Z,co.touch,y,"touchmove","touchend");return e.origin=function(t){return arguments.length?(i=t,e):i},co.rebind(e,r,"on")},co.touches=function(e,t){return arguments.length<2&&(t=k().touches),t?uo(t).map(function(t){var n=K(e,t);return n.identifier=t.identifier,n}):[]};var Io=1e-6,Do=Io*Io,Ro=Math.PI,jo=2*Ro,qo=jo-Io,Bo=Ro/2,Wo=Ro/180,Ho=180/Ro,Fo=Math.SQRT2;co.interpolateZoom=function(e,t){var n,r,i=e[0],a=e[1],o=e[2],s=t[0],c=t[1],l=t[2],u=s-i,d=c-a,p=u*u+d*d;if(p<Do)r=Math.log(l/o)/Fo,n=function(e){return[i+e*u,a+e*d,o*Math.exp(Fo*e*r)]};else{var f=Math.sqrt(p),h=(l*l-o*o+4*p)/(2*o*2*f),m=(l*l-o*o-4*p)/(2*l*2*f),g=Math.log(Math.sqrt(h*h+1)-h),v=Math.log(Math.sqrt(m*m+1)-m);r=(v-g)/Fo,n=function(e){var t=e*r,n=ie(g),s=o/(2*f)*(n*ae(Fo*t+g)-re(g));return[i+s*u,a+s*d,o*n/ie(Fo*t+g)]}}return n.duration=1e3*r,n},co.behavior.zoom=function(){function e(e){e.on(O,d).on(Uo+".zoom",f).on("dblclick.zoom",h).on(N,p)}function t(e){return[(e[0]-A.x)/A.k,(e[1]-A.y)/A.k]}function r(e){return[e[0]*A.k+A.x,e[1]*A.k+A.y]}function i(e){A.k=Math.max(T[0],Math.min(T[1],e))}function a(e,t){t=r(t),A.x+=e[0]-t[0],A.y+=e[1]-t[1]}function o(t,n,r,o){t.__chart__={x:A.x,y:A.y,k:A.k},i(Math.pow(2,o)),a(g=n,r),t=co.select(t),C>0&&(t=t.transition().duration(C)),t.call(e.event)}function s(){M&&M.domain(x.range().map(function(e){return(e-A.x)/A.k}).map(x.invert)),w&&w.domain(_.range().map(function(e){return(e-A.y)/A.k}).map(_.invert))}function c(e){E++||e({type:"zoomstart"})}function l(e){s(),e({type:"zoom",scale:A.k,translate:[A.x,A.y]})}function u(e){--E||(e({type:"zoomend"}),g=null)}function d(){function e(){s=1,a(co.mouse(i),p),l(o)}function r(){d.on(z,null).on(L,null),f(s),u(o)}var i=this,o=P.of(i,arguments),s=0,d=co.select(n(i)).on(z,e).on(L,r),p=t(co.mouse(i)),f=Q(i);jc.call(i),c(o)}function p(){function e(){var e=co.touches(h);return f=A.k,e.forEach(function(e){e.identifier in g&&(g[e.identifier]=t(e))}),e}function n(){var t=co.event.target;co.select(t).on(x,r).on(M,s),_.push(t);for(var n=co.event.changedTouches,i=0,a=n.length;i<a;++i)g[n[i].identifier]=null;var c=e(),l=Date.now();if(1===c.length){if(l-y<500){var u=c[0];o(h,u,g[u.identifier],Math.floor(Math.log(A.k)/Math.LN2)+1),S()}y=l}else if(c.length>1){var u=c[0],d=c[1],p=u[0]-d[0],f=u[1]-d[1];v=p*p+f*f}}function r(){var e,t,n,r,o=co.touches(h);jc.call(h);for(var s=0,c=o.length;s<c;++s,r=null)if(n=o[s],r=g[n.identifier]){if(t)break;e=n,t=r}if(r){var u=(u=n[0]-e[0])*u+(u=n[1]-e[1])*u,d=v&&Math.sqrt(u/v);e=[(e[0]+n[0])/2,(e[1]+n[1])/2],t=[(t[0]+r[0])/2,(t[1]+r[1])/2],i(d*f)}y=null,a(e,t),l(m)}function s(){if(co.event.touches.length){for(var t=co.event.changedTouches,n=0,r=t.length;n<r;++n)delete g[t[n].identifier];for(var i in g)return void e()}co.selectAll(_).on(b,null),w.on(O,d).on(N,p),k(),u(m)}var f,h=this,m=P.of(h,arguments),g={},v=0,b=".zoom-"+co.event.changedTouches[0].identifier,x="touchmove"+b,M="touchend"+b,_=[],w=co.select(h),k=Q(h);n(),c(m),w.on(O,null).on(N,n)}function f(){var e=P.of(this,arguments);b?clearTimeout(b):(jc.call(this),m=t(g=v||co.mouse(this)),c(e)),b=setTimeout(function(){b=null,u(e)},50),S(),i(Math.pow(2,.002*Xo())*A.k),a(g,m),l(e)}function h(){var e=co.mouse(this),n=Math.log(A.k)/Math.LN2;o(this,e,t(e),co.event.shiftKey?Math.ceil(n)-1:Math.floor(n)+1)}var m,g,v,b,y,x,M,_,w,A={x:0,y:0,k:1},k=[960,500],T=Vo,C=250,E=0,O="mousedown.zoom",z="mousemove.zoom",L="mouseup.zoom",N="touchstart.zoom",P=$(e,"zoomstart","zoom","zoomend");return Uo||(Uo="onwheel"in po?(Xo=function(){return-co.event.deltaY*(co.event.deltaMode?120:1)},"wheel"):"onmousewheel"in po?(Xo=function(){return co.event.wheelDelta},"mousewheel"):(Xo=function(){return-co.event.detail},"MozMousePixelScroll")),e.event=function(e){e.each(function(){var e=P.of(this,arguments),t=A;Dc?co.select(this).transition().each("start.zoom",function(){A=this.__chart__||{x:0,y:0,k:1},c(e)}).tween("zoom:zoom",function(){var n=k[0],r=k[1],i=g?g[0]:n/2,a=g?g[1]:r/2,o=co.interpolateZoom([(i-A.x)/A.k,(a-A.y)/A.k,n/A.k],[(i-t.x)/t.k,(a-t.y)/t.k,n/t.k]);return function(t){var r=o(t),s=n/r[2];this.__chart__=A={x:i-r[0]*s,y:a-r[1]*s,k:s},l(e)}}).each("interrupt.zoom",function(){u(e)}).each("end.zoom",function(){u(e)}):(this.__chart__=A,c(e),l(e),u(e))})},e.translate=function(t){return arguments.length?(A={x:+t[0],y:+t[1],k:A.k},s(),e):[A.x,A.y]},e.scale=function(t){return arguments.length?(A={x:A.x,y:A.y,k:null},i(+t),s(),e):A.k},e.scaleExtent=function(t){return arguments.length?(T=null==t?Vo:[+t[0],+t[1]],e):T},e.center=function(t){return arguments.length?(v=t&&[+t[0],+t[1]],e):v},e.size=function(t){return arguments.length?(k=t&&[+t[0],+t[1]],e):k},e.duration=function(t){return arguments.length?(C=+t,e):C},e.x=function(t){return arguments.length?(M=t,x=t.copy(),A={x:0,y:0,k:1},e):M},e.y=function(t){return arguments.length?(w=t,_=t.copy(),A={x:0,y:0,k:1},e):w},co.rebind(e,P,"on")};var Xo,Uo,Vo=[0,1/0];co.color=se,se.prototype.toString=function(){return this.rgb()+""},co.hsl=ce;var Go=ce.prototype=new se;Go.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new ce(this.h,this.s,this.l/e)},Go.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new ce(this.h,this.s,e*this.l)},Go.rgb=function(){return le(this.h,this.s,this.l)},co.hcl=ue;var Yo=ue.prototype=new se;Yo.brighter=function(e){return new ue(this.h,this.c,Math.min(100,this.l+Qo*(arguments.length?e:1)))},Yo.darker=function(e){return new ue(this.h,this.c,Math.max(0,this.l-Qo*(arguments.length?e:1)))},Yo.rgb=function(){return de(this.h,this.c,this.l).rgb()},co.lab=pe;var Qo=18,Ko=.95047,Zo=1,Jo=1.08883,es=pe.prototype=new se;es.brighter=function(e){return new pe(Math.min(100,this.l+Qo*(arguments.length?e:1)),this.a,this.b)},es.darker=function(e){return new pe(Math.max(0,this.l-Qo*(arguments.length?e:1)),this.a,this.b)},es.rgb=function(){return fe(this.l,this.a,this.b)},co.rgb=be;var ts=be.prototype=new se;ts.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,n=this.g,r=this.b,i=30;return t||n||r?(t&&t<i&&(t=i),n&&n<i&&(n=i),r&&r<i&&(r=i),new be(Math.min(255,t/e),Math.min(255,n/e),Math.min(255,r/e))):new be(i,i,i)},ts.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new be(e*this.r,e*this.g,e*this.b)},ts.hsl=function(){return we(this.r,this.g,this.b)},ts.toString=function(){return"#"+Me(this.r)+Me(this.g)+Me(this.b)};var ns=co.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});ns.forEach(function(e,t){ns.set(e,ye(t))}),co.functor=$e,co.xhr=Te(y),co.dsv=function(e,t){function n(e,n,a){arguments.length<3&&(a=n,n=null);var o=Ce(e,t,null==n?r:i(n),a);return o.row=function(e){return arguments.length?o.response(null==(n=e)?r:i(e)):n},o}function r(e){return n.parse(e.responseText)}function i(e){return function(t){return n.parse(t.responseText,e)}}function a(t){return t.map(o).join(e)}function o(e){return s.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}var s=new RegExp('["'+e+"\n]"),c=e.charCodeAt(0);return n.parse=function(e,t){var r;return n.parseRows(e,function(e,n){if(r)return r(e,n-1);var i=new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+"]"}).join(",")+"}");r=t?function(e,n){return t(i(e),n)}:i})},n.parseRows=function(e,t){function n(){if(u>=l)return o;if(i)return i=!1,a;var t=u;if(34===e.charCodeAt(t)){for(var n=t;n++<l;)if(34===e.charCodeAt(n)){if(34!==e.charCodeAt(n+1))break;++n}u=n+2;var r=e.charCodeAt(n+1);return 13===r?(i=!0,10===e.charCodeAt(n+2)&&++u):10===r&&(i=!0),e.slice(t+1,n).replace(/""/g,'"')}for(;u<l;){var r=e.charCodeAt(u++),s=1;if(10===r)i=!0;else if(13===r)i=!0,10===e.charCodeAt(u)&&(++u,++s);else if(r!==c)continue;return e.slice(t,u-s)}return e.slice(t)}for(var r,i,a={},o={},s=[],l=e.length,u=0,d=0;(r=n())!==o;){for(var p=[];r!==a&&r!==o;)p.push(r),r=n();t&&null==(p=t(p,d++))||s.push(p)}return s},n.format=function(t){if(Array.isArray(t[0]))return n.formatRows(t);var r=new b,i=[];return t.forEach(function(e){for(var t in e)r.has(t)||i.push(r.add(t))}),[i.map(o).join(e)].concat(t.map(function(t){return i.map(function(e){return o(t[e])}).join(e)})).join("\n")},n.formatRows=function(e){return e.map(a).join("\n")},n},co.csv=co.dsv(",","text/csv"),co.tsv=co.dsv("\t","text/tab-separated-values");var rs,is,as,os,ss=this[M(this,"requestAnimationFrame")]||function(e){setTimeout(e,17)};co.timer=function(){ze.apply(this,arguments)},co.timer.flush=function(){Ne(),Pe()},co.round=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)};var cs=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(De);co.formatPrefix=function(e,t){var n=0;return(e=+e)&&(e<0&&(e*=-1),t&&(e=co.round(e,Ie(e,t))),n=1+Math.floor(1e-12+Math.log(e)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),cs[8+n/3]};var ls=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,us=co.map({b:function(e){return e.toString(2)},c:function(e){return String.fromCharCode(e)},o:function(e){return e.toString(8)},x:function(e){return e.toString(16)},X:function(e){return e.toString(16).toUpperCase()},g:function(e,t){return e.toPrecision(t)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},r:function(e,t){return(e=co.round(e,Ie(e,t))).toFixed(Math.max(0,Math.min(20,Ie(e*(1+1e-15),t))))}}),ds=co.time={},ps=Date;qe.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){fs.setUTCDate.apply(this._,arguments)},setDay:function(){fs.setUTCDay.apply(this._,arguments)},setFullYear:function(){fs.setUTCFullYear.apply(this._,arguments)},setHours:function(){fs.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){fs.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){fs.setUTCMinutes.apply(this._,arguments)},setMonth:function(){fs.setUTCMonth.apply(this._,arguments)},setSeconds:function(){fs.setUTCSeconds.apply(this._,arguments)},setTime:function(){fs.setTime.apply(this._,arguments)}};var fs=Date.prototype;ds.year=Be(function(e){return e=ds.day(e),e.setMonth(0,1),e},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e){return e.getFullYear()}),ds.years=ds.year.range,ds.years.utc=ds.year.utc.range,ds.day=Be(function(e){var t=new ps(2e3,0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t},function(e,t){e.setDate(e.getDate()+t)},function(e){return e.getDate()-1}),ds.days=ds.day.range,ds.days.utc=ds.day.utc.range,ds.dayOfYear=function(e){var t=ds.year(e);return Math.floor((e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(e,t){t=7-t;var n=ds[e]=Be(function(e){return(e=ds.day(e)).setDate(e.getDate()-(e.getDay()+t)%7),e},function(e,t){e.setDate(e.getDate()+7*Math.floor(t))},function(e){var n=ds.year(e).getDay();return Math.floor((ds.dayOfYear(e)+(n+t)%7)/7)-(n!==t)});ds[e+"s"]=n.range,ds[e+"s"].utc=n.utc.range,ds[e+"OfYear"]=function(e){var n=ds.year(e).getDay();return Math.floor((ds.dayOfYear(e)+(n+t)%7)/7)}}),ds.week=ds.sunday,ds.weeks=ds.sunday.range,ds.weeks.utc=ds.sunday.utc.range,ds.weekOfYear=ds.sundayOfYear;var hs={"-":"",_:" ",0:"0"},ms=/^\s*\d+/,gs=/^%/;co.locale=function(e){return{numberFormat:Re(e),timeFormat:He(e)}};var vs=co.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});co.format=vs.numberFormat,co.geo={},ut.prototype={s:0,t:0,add:function(e){dt(e,this.t,bs),dt(bs.s,this.s,this),this.s?this.t+=bs.t:this.s=bs.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var bs=new ut;co.geo.stream=function(e,t){e&&ys.hasOwnProperty(e.type)?ys[e.type](e,t):pt(e,t)};var ys={Feature:function(e,t){pt(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)pt(n[r].geometry,t)}},xs={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){ft(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)ft(n[r],t,0)},Polygon:function(e,t){ht(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)ht(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)pt(n[r],t)}};co.geo.area=function(e){return Ms=0,co.geo.stream(e,ws),Ms};var Ms,_s=new ut,ws={sphere:function(){Ms+=4*Ro},point:_,lineStart:_,lineEnd:_,polygonStart:function(){_s.reset(),ws.lineStart=mt},polygonEnd:function(){var e=2*_s;Ms+=e<0?4*Ro+e:e,ws.lineStart=ws.lineEnd=ws.point=_}};co.geo.bounds=function(){function e(e,t){y.push(x=[u=e,p=e]),t<d&&(d=t),t>f&&(f=t)}function t(t,n){var r=gt([t*Wo,n*Wo]);if(v){var i=bt(v,r),a=[i[1],-i[0],0],o=bt(a,i);Mt(o),o=_t(o);var c=t-h,l=c>0?1:-1,m=o[0]*Ho*l,g=yo(c)>180;if(g^(l*h<m&&m<l*t)){var b=o[1]*Ho;b>f&&(f=b)}else if(m=(m+360)%360-180,g^(l*h<m&&m<l*t)){var b=-o[1]*Ho;b<d&&(d=b)}else n<d&&(d=n),n>f&&(f=n);g?t<h?s(u,t)>s(u,p)&&(p=t):s(t,p)>s(u,p)&&(u=t):p>=u?(t<u&&(u=t),t>p&&(p=t)):t>h?s(u,t)>s(u,p)&&(p=t):s(t,p)>s(u,p)&&(u=t)}else e(t,n);v=r,h=t}function n(){M.point=t}function r(){x[0]=u,x[1]=p,M.point=e,v=null}function i(e,n){if(v){var r=e-h;b+=yo(r)>180?r+(r>0?360:-360):r}else m=e,g=n;ws.point(e,n),t(e,n)}function a(){ws.lineStart()}function o(){i(m,g),ws.lineEnd(),yo(b)>Io&&(u=-(p=180)),x[0]=u,x[1]=p,v=null}function s(e,t){return(t-=e)<0?t+360:t}function c(e,t){return e[0]-t[0]}function l(e,t){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}var u,d,p,f,h,m,g,v,b,y,x,M={point:e,lineStart:n,lineEnd:r,polygonStart:function(){M.point=i,M.lineStart=a,M.lineEnd=o,b=0,ws.polygonStart()},polygonEnd:function(){ws.polygonEnd(),M.point=e,M.lineStart=n,M.lineEnd=r,_s<0?(u=-(p=180),d=-(f=90)):b>Io?f=90:b<-Io&&(d=-90),x[0]=u,x[1]=p}};return function(e){f=p=-(u=d=1/0),y=[],co.geo.stream(e,M);var t=y.length;if(t){y.sort(c);for(var n,r=1,i=y[0],a=[i];r<t;++r)n=y[r],l(n[0],i)||l(n[1],i)?(s(i[0],n[1])>s(i[0],i[1])&&(i[1]=n[1]),s(n[0],i[1])>s(i[0],i[1])&&(i[0]=n[0])):a.push(i=n);for(var o,n,h=-1/0,t=a.length-1,r=0,i=a[t];r<=t;i=n,++r)n=a[r],(o=s(i[1],n[0]))>h&&(h=o,u=n[0],p=i[1])}return y=x=null,u===1/0||d===1/0?[[NaN,NaN],[NaN,NaN]]:[[u,d],[p,f]]}}(),co.geo.centroid=function(e){As=Ss=ks=$s=Ts=Cs=Es=Os=zs=Ls=Ns=0,co.geo.stream(e,Ps);var t=zs,n=Ls,r=Ns,i=t*t+n*n+r*r;return i<Do&&(t=Cs,n=Es,r=Os,Ss<Io&&(t=ks,n=$s,r=Ts),(i=t*t+n*n+r*r)<Do)?[NaN,NaN]:[Math.atan2(n,t)*Ho,ne(r/Math.sqrt(i))*Ho]};var As,Ss,ks,$s,Ts,Cs,Es,Os,zs,Ls,Ns,Ps={sphere:_,point:At,lineStart:kt,lineEnd:$t,polygonStart:function(){Ps.lineStart=Tt},polygonEnd:function(){Ps.lineStart=kt}
49},Is=Nt(Et,Rt,qt,[-Ro,-Ro/2]),Ds=1e9;co.geo.clipExtent=function(){var e,t,n,r,i,a,o={stream:function(e){return i&&(i.valid=!1),i=a(e),i.valid=!0,i},extent:function(s){return arguments.length?(a=Ft(e=+s[0][0],t=+s[0][1],n=+s[1][0],r=+s[1][1]),i&&(i.valid=!1,i=null),o):[[e,t],[n,r]]}};return o.extent([[0,0],[960,500]])},(co.geo.conicEqualArea=function(){return Xt(Ut)}).raw=Ut,co.geo.albers=function(){return co.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},co.geo.albersUsa=function(){function e(e){var a=e[0],o=e[1];return t=null,n(a,o),t||(r(a,o),t)||i(a,o),t}var t,n,r,i,a=co.geo.albers(),o=co.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=co.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(e,n){t=[e,n]}};return e.invert=function(e){var t=a.scale(),n=a.translate(),r=(e[0]-n[0])/t,i=(e[1]-n[1])/t;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?o:i>=.166&&i<.234&&r>=-.214&&r<-.115?s:a).invert(e)},e.stream=function(e){var t=a.stream(e),n=o.stream(e),r=s.stream(e);return{point:function(e,i){t.point(e,i),n.point(e,i),r.point(e,i)},sphere:function(){t.sphere(),n.sphere(),r.sphere()},lineStart:function(){t.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},e.precision=function(t){return arguments.length?(a.precision(t),o.precision(t),s.precision(t),e):a.precision()},e.scale=function(t){return arguments.length?(a.scale(t),o.scale(.35*t),s.scale(t),e.translate(a.translate())):a.scale()},e.translate=function(t){if(!arguments.length)return a.translate();var l=a.scale(),u=+t[0],d=+t[1];return n=a.translate(t).clipExtent([[u-.455*l,d-.238*l],[u+.455*l,d+.238*l]]).stream(c).point,r=o.translate([u-.307*l,d+.201*l]).clipExtent([[u-.425*l+Io,d+.12*l+Io],[u-.214*l-Io,d+.234*l-Io]]).stream(c).point,i=s.translate([u-.205*l,d+.212*l]).clipExtent([[u-.214*l+Io,d+.166*l+Io],[u-.115*l-Io,d+.234*l-Io]]).stream(c).point,e},e.scale(1070)};var Rs,js,qs,Bs,Ws,Hs,Fs={point:_,lineStart:_,lineEnd:_,polygonStart:function(){js=0,Fs.lineStart=Vt},polygonEnd:function(){Fs.lineStart=Fs.lineEnd=Fs.point=_,Rs+=yo(js/2)}},Xs={point:Gt,lineStart:_,lineEnd:_,polygonStart:_,polygonEnd:_},Us={point:Kt,lineStart:Zt,lineEnd:Jt,polygonStart:function(){Us.lineStart=en},polygonEnd:function(){Us.point=Kt,Us.lineStart=Zt,Us.lineEnd=Jt}};co.geo.path=function(){function e(e){return e&&("function"==typeof s&&a.pointRadius(+s.apply(this,arguments)),o&&o.valid||(o=i(a)),co.geo.stream(e,o)),a.result()}function t(){return o=null,e}var n,r,i,a,o,s=4.5;return e.area=function(e){return Rs=0,co.geo.stream(e,i(Fs)),Rs},e.centroid=function(e){return ks=$s=Ts=Cs=Es=Os=zs=Ls=Ns=0,co.geo.stream(e,i(Us)),Ns?[zs/Ns,Ls/Ns]:Os?[Cs/Os,Es/Os]:Ts?[ks/Ts,$s/Ts]:[NaN,NaN]},e.bounds=function(e){return Ws=Hs=-(qs=Bs=1/0),co.geo.stream(e,i(Xs)),[[qs,Bs],[Ws,Hs]]},e.projection=function(e){return arguments.length?(i=(n=e)?e.stream||rn(e):y,t()):n},e.context=function(e){return arguments.length?(a=null==(r=e)?new Yt:new tn(e),"function"!=typeof s&&a.pointRadius(s),t()):r},e.pointRadius=function(t){return arguments.length?(s="function"==typeof t?t:(a.pointRadius(+t),+t),e):s},e.projection(co.geo.albersUsa()).context(null)},co.geo.transform=function(e){return{stream:function(t){var n=new an(t);for(var r in e)n[r]=e[r];return n}}},an.prototype={point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},co.geo.projection=sn,co.geo.projectionMutator=cn,(co.geo.equirectangular=function(){return sn(un)}).raw=un.invert=un,co.geo.rotation=function(e){function t(t){return t=e(t[0]*Wo,t[1]*Wo),t[0]*=Ho,t[1]*=Ho,t}return e=pn(e[0]%360*Wo,e[1]*Wo,e.length>2?e[2]*Wo:0),t.invert=function(t){return t=e.invert(t[0]*Wo,t[1]*Wo),t[0]*=Ho,t[1]*=Ho,t},t},dn.invert=un,co.geo.circle=function(){function e(){var e="function"==typeof r?r.apply(this,arguments):r,t=pn(-e[0]*Wo,-e[1]*Wo,0).invert,i=[];return n(null,null,1,{point:function(e,n){i.push(e=t(e,n)),e[0]*=Ho,e[1]*=Ho}}),{type:"Polygon",coordinates:[i]}}var t,n,r=[0,0],i=6;return e.origin=function(t){return arguments.length?(r=t,e):r},e.angle=function(r){return arguments.length?(n=gn((t=+r)*Wo,i*Wo),e):t},e.precision=function(r){return arguments.length?(n=gn(t*Wo,(i=+r)*Wo),e):i},e.angle(90)},co.geo.distance=function(e,t){var n,r=(t[0]-e[0])*Wo,i=e[1]*Wo,a=t[1]*Wo,o=Math.sin(r),s=Math.cos(r),c=Math.sin(i),l=Math.cos(i),u=Math.sin(a),d=Math.cos(a);return Math.atan2(Math.sqrt((n=d*o)*n+(n=l*u-c*d*s)*n),c*u+l*d*s)},co.geo.graticule=function(){function e(){return{type:"MultiLineString",coordinates:t()}}function t(){return co.range(Math.ceil(a/g)*g,i,g).map(p).concat(co.range(Math.ceil(l/v)*v,c,v).map(f)).concat(co.range(Math.ceil(r/h)*h,n,h).filter(function(e){return yo(e%g)>Io}).map(u)).concat(co.range(Math.ceil(s/m)*m,o,m).filter(function(e){return yo(e%v)>Io}).map(d))}var n,r,i,a,o,s,c,l,u,d,p,f,h=10,m=h,g=90,v=360,b=2.5;return e.lines=function(){return t().map(function(e){return{type:"LineString",coordinates:e}})},e.outline=function(){return{type:"Polygon",coordinates:[p(a).concat(f(c).slice(1),p(i).reverse().slice(1),f(l).reverse().slice(1))]}},e.extent=function(t){return arguments.length?e.majorExtent(t).minorExtent(t):e.minorExtent()},e.majorExtent=function(t){return arguments.length?(a=+t[0][0],i=+t[1][0],l=+t[0][1],c=+t[1][1],a>i&&(t=a,a=i,i=t),l>c&&(t=l,l=c,c=t),e.precision(b)):[[a,l],[i,c]]},e.minorExtent=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],s=+t[0][1],o=+t[1][1],r>n&&(t=r,r=n,n=t),s>o&&(t=s,s=o,o=t),e.precision(b)):[[r,s],[n,o]]},e.step=function(t){return arguments.length?e.majorStep(t).minorStep(t):e.minorStep()},e.majorStep=function(t){return arguments.length?(g=+t[0],v=+t[1],e):[g,v]},e.minorStep=function(t){return arguments.length?(h=+t[0],m=+t[1],e):[h,m]},e.precision=function(t){return arguments.length?(b=+t,u=bn(s,o,90),d=yn(r,n,b),p=bn(l,c,90),f=yn(a,i,b),e):b},e.majorExtent([[-180,-90+Io],[180,90-Io]]).minorExtent([[-180,-80-Io],[180,80+Io]])},co.geo.greatArc=function(){function e(){return{type:"LineString",coordinates:[t||r.apply(this,arguments),n||i.apply(this,arguments)]}}var t,n,r=xn,i=Mn;return e.distance=function(){return co.geo.distance(t||r.apply(this,arguments),n||i.apply(this,arguments))},e.source=function(n){return arguments.length?(r=n,t="function"==typeof n?null:n,e):r},e.target=function(t){return arguments.length?(i=t,n="function"==typeof t?null:t,e):i},e.precision=function(){return arguments.length?e:0},e},co.geo.interpolate=function(e,t){return _n(e[0]*Wo,e[1]*Wo,t[0]*Wo,t[1]*Wo)},co.geo.length=function(e){return Vs=0,co.geo.stream(e,Gs),Vs};var Vs,Gs={sphere:_,point:_,lineStart:wn,lineEnd:_,polygonStart:_,polygonEnd:_},Ys=An(function(e){return Math.sqrt(2/(1+e))},function(e){return 2*Math.asin(e/2)});(co.geo.azimuthalEqualArea=function(){return sn(Ys)}).raw=Ys;var Qs=An(function(e){var t=Math.acos(e);return t&&t/Math.sin(t)},y);(co.geo.azimuthalEquidistant=function(){return sn(Qs)}).raw=Qs,(co.geo.conicConformal=function(){return Xt(Sn)}).raw=Sn,(co.geo.conicEquidistant=function(){return Xt(kn)}).raw=kn;var Ks=An(function(e){return 1/e},Math.atan);(co.geo.gnomonic=function(){return sn(Ks)}).raw=Ks,$n.invert=function(e,t){return[e,2*Math.atan(Math.exp(t))-Bo]},(co.geo.mercator=function(){return Tn($n)}).raw=$n;var Zs=An(function(){return 1},Math.asin);(co.geo.orthographic=function(){return sn(Zs)}).raw=Zs;var Js=An(function(e){return 1/(1+e)},function(e){return 2*Math.atan(e)});(co.geo.stereographic=function(){return sn(Js)}).raw=Js,Cn.invert=function(e,t){return[-t,2*Math.atan(Math.exp(e))-Bo]},(co.geo.transverseMercator=function(){var e=Tn(Cn),t=e.center,n=e.rotate;return e.center=function(e){return e?t([-e[1],e[0]]):(e=t(),[e[1],-e[0]])},e.rotate=function(e){return e?n([e[0],e[1],e.length>2?e[2]+90:90]):(e=n(),[e[0],e[1],e[2]-90])},n([0,0,90])}).raw=Cn,co.geom={},co.geom.hull=function(e){function t(e){if(e.length<3)return[];var t,i=$e(n),a=$e(r),o=e.length,s=[],c=[];for(t=0;t<o;t++)s.push([+i.call(this,e[t],t),+a.call(this,e[t],t),t]);for(s.sort(Ln),t=0;t<o;t++)c.push([s[t][0],-s[t][1]]);var l=zn(s),u=zn(c),d=u[0]===l[0],p=u[u.length-1]===l[l.length-1],f=[];for(t=l.length-1;t>=0;--t)f.push(e[s[l[t]][2]]);for(t=+d;t<u.length-p;++t)f.push(e[s[u[t]][2]]);return f}var n=En,r=On;return arguments.length?t(e):(t.x=function(e){return arguments.length?(n=e,t):n},t.y=function(e){return arguments.length?(r=e,t):r},t)},co.geom.polygon=function(e){return Ao(e,ec),e};var ec=co.geom.polygon.prototype=[];ec.area=function(){for(var e,t=-1,n=this.length,r=this[n-1],i=0;++t<n;)e=r,r=this[t],i+=e[1]*r[0]-e[0]*r[1];return.5*i},ec.centroid=function(e){var t,n,r=-1,i=this.length,a=0,o=0,s=this[i-1];for(arguments.length||(e=-1/(6*this.area()));++r<i;)t=s,s=this[r],n=t[0]*s[1]-s[0]*t[1],a+=(t[0]+s[0])*n,o+=(t[1]+s[1])*n;return[a*e,o*e]},ec.clip=function(e){for(var t,n,r,i,a,o,s=In(e),c=-1,l=this.length-In(this),u=this[l-1];++c<l;){for(t=e.slice(),e.length=0,i=this[c],a=t[(r=t.length-s)-1],n=-1;++n<r;)o=t[n],Nn(o,u,i)?(Nn(a,u,i)||e.push(Pn(a,o,u,i)),e.push(o)):Nn(a,u,i)&&e.push(Pn(a,o,u,i)),a=o;s&&e.push(e[0]),u=i}return e};var tc,nc,rc,ic,ac,oc=[],sc=[];Fn.prototype.prepare=function(){for(var e,t=this.edges,n=t.length;n--;)e=t[n].edge,e.b&&e.a||t.splice(n,1);return t.sort(Un),t.length},nr.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},rr.prototype={insert:function(e,t){var n,r,i;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;n=e}else this._?(e=sr(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);for(t.L=t.R=null,t.U=n,t.C=!0,e=t;n&&n.C;)r=n.U,n===r.L?(i=r.R,i&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.R&&(ar(this,n),e=n,n=e.U),n.C=!1,r.C=!0,or(this,r))):(i=r.L,i&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.L&&(or(this,n),e=n,n=e.U),n.C=!1,r.C=!0,ar(this,r))),n=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,n,r,i=e.U,a=e.L,o=e.R;if(n=a?o?sr(o):a:o,i?i.L===e?i.L=n:i.R=n:this._=n,a&&o?(r=n.C,n.C=e.C,n.L=a,a.U=n,n!==o?(i=n.U,n.U=e.U,e=n.R,i.L=e,n.R=o,o.U=n):(n.U=i,i=n,e=n.R)):(r=e.C,e=n),e&&(e.U=i),!r){if(e&&e.C)return void(e.C=!1);do{if(e===this._)break;if(e===i.L){if(t=i.R,t.C&&(t.C=!1,i.C=!0,ar(this,i),t=i.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,or(this,t),t=i.R),t.C=i.C,i.C=t.R.C=!1,ar(this,i),e=this._;break}}else if(t=i.L,t.C&&(t.C=!1,i.C=!0,or(this,i),t=i.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,ar(this,t),t=i.L),t.C=i.C,i.C=t.L.C=!1,or(this,i),e=this._;break}t.C=!0,e=i,i=i.U}while(!e.C);e&&(e.C=!1)}}},co.geom.voronoi=function(e){function t(e){var t=new Array(e.length),r=s[0][0],i=s[0][1],a=s[1][0],o=s[1][1];return cr(n(e),s).cells.forEach(function(n,s){var c=n.edges,l=n.site;(t[s]=c.length?c.map(function(e){var t=e.start();return[t.x,t.y]}):l.x>=r&&l.x<=a&&l.y>=i&&l.y<=o?[[r,o],[a,o],[a,i],[r,i]]:[]).point=e[s]}),t}function n(e){return e.map(function(e,t){return{x:Math.round(a(e,t)/Io)*Io,y:Math.round(o(e,t)/Io)*Io,i:t}})}var r=En,i=On,a=r,o=i,s=cc;return e?t(e):(t.links=function(e){return cr(n(e)).edges.filter(function(e){return e.l&&e.r}).map(function(t){return{source:e[t.l.i],target:e[t.r.i]}})},t.triangles=function(e){var t=[];return cr(n(e)).cells.forEach(function(n,r){for(var i,a=n.site,o=n.edges.sort(Un),s=-1,c=o.length,l=o[c-1].edge,u=l.l===a?l.r:l.l;++s<c;)l,i=u,l=o[s].edge,u=l.l===a?l.r:l.l,r<i.i&&r<u.i&&ur(a,i,u)<0&&t.push([e[r],e[i.i],e[u.i]])}),t},t.x=function(e){return arguments.length?(a=$e(r=e),t):r},t.y=function(e){return arguments.length?(o=$e(i=e),t):i},t.clipExtent=function(e){return arguments.length?(s=null==e?cc:e,t):s===cc?null:s},t.size=function(e){return arguments.length?t.clipExtent(e&&[[0,0],e]):s===cc?null:s&&s[1]},t)};var cc=[[-1e6,-1e6],[1e6,1e6]];co.geom.delaunay=function(e){return co.geom.voronoi().triangles(e)},co.geom.quadtree=function(e,t,n,r,i){function a(e){function a(e,t,n,r,i,a,o,s){if(!isNaN(n)&&!isNaN(r))if(e.leaf){var c=e.x,u=e.y;if(null!=c)if(yo(c-n)+yo(u-r)<.01)l(e,t,n,r,i,a,o,s);else{var d=e.point;e.x=e.y=e.point=null,l(e,d,c,u,i,a,o,s),l(e,t,n,r,i,a,o,s)}else e.x=n,e.y=r,e.point=t}else l(e,t,n,r,i,a,o,s)}function l(e,t,n,r,i,o,s,c){var l=.5*(i+s),u=.5*(o+c),d=n>=l,p=r>=u,f=p<<1|d;e.leaf=!1,e=e.nodes[f]||(e.nodes[f]=fr()),d?i=l:s=l,p?o=u:c=u,a(e,t,n,r,i,o,s,c)}var u,d,p,f,h,m,g,v,b,y=$e(s),x=$e(c);if(null!=t)m=t,g=n,v=r,b=i;else if(v=b=-(m=g=1/0),d=[],p=[],h=e.length,o)for(f=0;f<h;++f)u=e[f],u.x<m&&(m=u.x),u.y<g&&(g=u.y),u.x>v&&(v=u.x),u.y>b&&(b=u.y),d.push(u.x),p.push(u.y);else for(f=0;f<h;++f){var M=+y(u=e[f],f),_=+x(u,f);M<m&&(m=M),_<g&&(g=_),M>v&&(v=M),_>b&&(b=_),d.push(M),p.push(_)}var w=v-m,A=b-g;w>A?b=g+w:v=m+A;var S=fr();if(S.add=function(e){a(S,e,+y(e,++f),+x(e,f),m,g,v,b)},S.visit=function(e){hr(e,S,m,g,v,b)},S.find=function(e){return mr(S,e[0],e[1],m,g,v,b)},f=-1,null==t){for(;++f<h;)a(S,e[f],d[f],p[f],m,g,v,b);--f}else e.forEach(S.add);return d=p=e=u=null,S}var o,s=En,c=On;return(o=arguments.length)?(s=dr,c=pr,3===o&&(i=n,r=t,n=t=0),a(e)):(a.x=function(e){return arguments.length?(s=e,a):s},a.y=function(e){return arguments.length?(c=e,a):c},a.extent=function(e){return arguments.length?(null==e?t=n=r=i=null:(t=+e[0][0],n=+e[0][1],r=+e[1][0],i=+e[1][1]),a):null==t?null:[[t,n],[r,i]]},a.size=function(e){return arguments.length?(null==e?t=n=r=i=null:(t=n=0,r=+e[0],i=+e[1]),a):null==t?null:[r-t,i-n]},a)},co.interpolateRgb=gr,co.interpolateObject=vr,co.interpolateNumber=br,co.interpolateString=yr;var lc=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,uc=new RegExp(lc.source,"g");co.interpolate=xr,co.interpolators=[function(e,t){var n=void 0===t?"undefined":_typeof2(t);return("string"===n?ns.has(t.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(t)?gr:yr:t instanceof se?gr:Array.isArray(t)?Mr:"object"===n&&isNaN(t)?vr:br)(e,t)}],co.interpolateArray=Mr;var dc=function(){return y},pc=co.map({linear:dc,poly:Tr,quad:function(){return Sr},cubic:function(){return kr},sin:function(){return Cr},exp:function(){return Er},circle:function(){return Or},elastic:zr,back:Lr,bounce:function(){return Nr}}),fc=co.map({in:y,out:wr,"in-out":Ar,"out-in":function(e){return Ar(wr(e))}});co.ease=function(e){var t=e.indexOf("-"),n=t>=0?e.slice(0,t):e,r=t>=0?e.slice(t+1):"in";return n=pc.get(n)||dc,r=fc.get(r)||y,_r(r(n.apply(null,lo.call(arguments,1))))},co.interpolateHcl=Pr,co.interpolateHsl=Ir,co.interpolateLab=Dr,co.interpolateRound=Rr,co.transform=function(e){var t=po.createElementNS(co.ns.prefix.svg,"g");return(co.transform=function(e){if(null!=e){t.setAttribute("transform",e);var n=t.transform.baseVal.consolidate()}return new jr(n?n.matrix:hc)})(e)},jr.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var hc={a:1,b:0,c:0,d:1,e:0,f:0};co.interpolateTransform=Gr,co.layout={},co.layout.bundle=function(){return function(e){for(var t=[],n=-1,r=e.length;++n<r;)t.push(Kr(e[n]));return t}},co.layout.chord=function(){function e(){var e,l,d,p,f,h={},m=[],g=co.range(a),v=[];for(n=[],r=[],e=0,p=-1;++p<a;){for(l=0,f=-1;++f<a;)l+=i[p][f];m.push(l),v.push(co.range(a)),e+=l}for(o&&g.sort(function(e,t){return o(m[e],m[t])}),s&&v.forEach(function(e,t){e.sort(function(e,n){return s(i[t][e],i[t][n])})}),e=(jo-u*a)/e,l=0,p=-1;++p<a;){for(d=l,f=-1;++f<a;){var b=g[p],y=v[b][f],x=i[b][y],M=l,_=l+=x*e;h[b+"-"+y]={index:b,subindex:y,startAngle:M,endAngle:_,value:x}}r[b]={index:b,startAngle:d,endAngle:l,value:m[b]},l+=u}for(p=-1;++p<a;)for(f=p-1;++f<a;){var w=h[p+"-"+f],A=h[f+"-"+p];(w.value||A.value)&&n.push(w.value<A.value?{source:A,target:w}:{source:w,target:A})}c&&t()}function t(){n.sort(function(e,t){return c((e.source.value+e.target.value)/2,(t.source.value+t.target.value)/2)})}var n,r,i,a,o,s,c,l={},u=0;return l.matrix=function(e){return arguments.length?(a=(i=e)&&i.length,n=r=null,l):i},l.padding=function(e){return arguments.length?(u=e,n=r=null,l):u},l.sortGroups=function(e){return arguments.length?(o=e,n=r=null,l):o},l.sortSubgroups=function(e){return arguments.length?(s=e,n=null,l):s},l.sortChords=function(e){return arguments.length?(c=e,n&&t(),l):c},l.chords=function(){return n||e(),n},l.groups=function(){return r||e(),r},l},co.layout.force=function(){function e(e){return function(t,n,r,i){if(t.point!==e){var a=t.cx-e.x,o=t.cy-e.y,s=i-n,c=a*a+o*o;if(s*s/v<c){if(c<m){var l=t.charge/c;e.px-=a*l,e.py-=o*l}return!0}if(t.point&&c&&c<m){var l=t.pointCharge/c;e.px-=a*l,e.py-=o*l}}return!t.charge}}function t(e){e.px=co.event.x,e.py=co.event.y,c.resume()}var n,r,i,a,o,s,c={},l=co.dispatch("start","tick","end"),u=[1,1],d=.9,p=mc,f=gc,h=-30,m=vc,g=.1,v=.64,b=[],x=[];return c.tick=function(){if((i*=.99)<.005)return n=null,l.end({type:"end",alpha:i=0}),!0;var t,r,c,p,f,m,v,y,M,_=b.length,w=x.length;for(r=0;r<w;++r)c=x[r],p=c.source,f=c.target,y=f.x-p.x,M=f.y-p.y,(m=y*y+M*M)&&(m=i*o[r]*((m=Math.sqrt(m))-a[r])/m,y*=m,M*=m,f.x-=y*(v=p.weight+f.weight?p.weight/(p.weight+f.weight):.5),f.y-=M*v,p.x+=y*(v=1-v),p.y+=M*v);if((v=i*g)&&(y=u[0]/2,M=u[1]/2,r=-1,v))for(;++r<_;)c=b[r],c.x+=(y-c.x)*v,c.y+=(M-c.y)*v;if(h)for(ii(t=co.geom.quadtree(b),i,s),r=-1;++r<_;)(c=b[r]).fixed||t.visit(e(c));for(r=-1;++r<_;)c=b[r],c.fixed?(c.x=c.px,c.y=c.py):(c.x-=(c.px-(c.px=c.x))*d,c.y-=(c.py-(c.py=c.y))*d);l.tick({type:"tick",alpha:i})},c.nodes=function(e){return arguments.length?(b=e,c):b},c.links=function(e){return arguments.length?(x=e,c):x},c.size=function(e){return arguments.length?(u=e,c):u},c.linkDistance=function(e){return arguments.length?(p="function"==typeof e?e:+e,c):p},c.distance=c.linkDistance,c.linkStrength=function(e){return arguments.length?(f="function"==typeof e?e:+e,c):f},c.friction=function(e){return arguments.length?(d=+e,c):d},c.charge=function(e){return arguments.length?(h="function"==typeof e?e:+e,c):h},c.chargeDistance=function(e){return arguments.length?(m=e*e,c):Math.sqrt(m)},c.gravity=function(e){return arguments.length?(g=+e,c):g},c.theta=function(e){return arguments.length?(v=e*e,c):Math.sqrt(v)},c.alpha=function(e){return arguments.length?(e=+e,i?e>0?i=e:(n.c=null,n.t=NaN,n=null,l.end({type:"end",alpha:i=0})):e>0&&(l.start({type:"start",alpha:i=e}),n=ze(c.tick)),c):i},c.start=function(){function e(e,r){if(!n){for(n=new Array(i),c=0;c<i;++c)n[c]=[];for(c=0;c<l;++c){var a=x[c];n[a.source.index].push(a.target),n[a.target.index].push(a.source)}}for(var o,s=n[t],c=-1,u=s.length;++c<u;)if(!isNaN(o=s[c][e]))return o;return Math.random()*r}var t,n,r,i=b.length,l=x.length,d=u[0],m=u[1];for(t=0;t<i;++t)(r=b[t]).index=t,r.weight=0;for(t=0;t<l;++t)r=x[t],"number"==typeof r.source&&(r.source=b[r.source]),"number"==typeof r.target&&(r.target=b[r.target]),++r.source.weight,++r.target.weight;for(t=0;t<i;++t)r=b[t],isNaN(r.x)&&(r.x=e("x",d)),isNaN(r.y)&&(r.y=e("y",m)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(a=[],"function"==typeof p)for(t=0;t<l;++t)a[t]=+p.call(this,x[t],t);else for(t=0;t<l;++t)a[t]=p;if(o=[],"function"==typeof f)for(t=0;t<l;++t)o[t]=+f.call(this,x[t],t);else for(t=0;t<l;++t)o[t]=f;if(s=[],"function"==typeof h)for(t=0;t<i;++t)s[t]=+h.call(this,b[t],t);else for(t=0;t<i;++t)s[t]=h;return c.resume()},c.resume=function(){return c.alpha(.1)},c.stop=function(){return c.alpha(0)},c.drag=function(){if(r||(r=co.behavior.drag().origin(y).on("dragstart.force",ei).on("drag.force",t).on("dragend.force",ti)),!arguments.length)return r;this.on("mouseover.force",ni).on("mouseout.force",ri).call(r)},co.rebind(c,l,"on")};var mc=20,gc=1,vc=1/0;co.layout.hierarchy=function(){function e(i){var a,o=[i],s=[];for(i.depth=0;null!=(a=o.pop());)if(s.push(a),(l=n.call(e,a,a.depth))&&(c=l.length)){for(var c,l,u;--c>=0;)o.push(u=l[c]),u.parent=a,u.depth=a.depth+1;r&&(a.value=0),a.children=l}else r&&(a.value=+r.call(e,a,a.depth)||0),delete a.children;return si(i,function(e){var n,i;t&&(n=e.children)&&n.sort(t),r&&(i=e.parent)&&(i.value+=e.value)}),s}var t=ui,n=ci,r=li;return e.sort=function(n){return arguments.length?(t=n,e):t},e.children=function(t){return arguments.length?(n=t,e):n},e.value=function(t){return arguments.length?(r=t,e):r},e.revalue=function(t){return r&&(oi(t,function(e){e.children&&(e.value=0)}),si(t,function(t){var n;t.children||(t.value=+r.call(e,t,t.depth)||0),(n=t.parent)&&(n.value+=t.value)})),t},e},co.layout.partition=function(){function e(t,n,r,i){var a=t.children;if(t.x=n,t.y=t.depth*i,t.dx=r,t.dy=i,a&&(o=a.length)){var o,s,c,l=-1;for(r=t.value?r/t.value:0;++l<o;)e(s=a[l],n,c=s.value*r,i),n+=c}}function t(e){var n=e.children,r=0;if(n&&(i=n.length))for(var i,a=-1;++a<i;)r=Math.max(r,t(n[a]));return 1+r}function n(n,a){var o=r.call(this,n,a);return e(o[0],0,i[0],i[1]/t(o[0])),o}var r=co.layout.hierarchy(),i=[1,1];return n.size=function(e){return arguments.length?(i=e,n):i},ai(n,r)},co.layout.pie=function(){function e(o){var s,c=o.length,l=o.map(function(n,r){return+t.call(e,n,r)}),u=+("function"==typeof r?r.apply(this,arguments):r),d=("function"==typeof i?i.apply(this,arguments):i)-u,p=Math.min(Math.abs(d)/c,+("function"==typeof a?a.apply(this,arguments):a)),f=p*(d<0?-1:1),h=co.sum(l),m=h?(d-c*f)/h:0,g=co.range(c),v=[];return null!=n&&g.sort(n===bc?function(e,t){return l[t]-l[e]}:function(e,t){return n(o[e],o[t])}),g.forEach(function(e){v[e]={data:o[e],value:s=l[e],startAngle:u,endAngle:u+=s*m+f,padAngle:p}}),v}var t=Number,n=bc,r=0,i=jo,a=0;return e.value=function(n){return arguments.length?(t=n,e):t},e.sort=function(t){return arguments.length?(n=t,e):n},e.startAngle=function(t){return arguments.length?(r=t,e):r},e.endAngle=function(t){return arguments.length?(i=t,e):i},e.padAngle=function(t){return arguments.length?(a=t,e):a},e};var bc={};co.layout.stack=function(){function e(s,c){if(!(p=s.length))return s;var l=s.map(function(n,r){return t.call(e,n,r)}),u=l.map(function(t){return t.map(function(t,n){return[a.call(e,t,n),o.call(e,t,n)]})}),d=n.call(e,u,c);l=co.permute(l,d),u=co.permute(u,d);var p,f,h,m,g=r.call(e,u,c),v=l[0].length;for(h=0;h<v;++h)for(i.call(e,l[0][h],m=g[h],u[0][h][1]),f=1;f<p;++f)i.call(e,l[f][h],m+=u[f-1][h][1],u[f][h][1]);return s}var t=y,n=mi,r=gi,i=hi,a=pi,o=fi;return e.values=function(n){return arguments.length?(t=n,e):t},e.order=function(t){return arguments.length?(n="function"==typeof t?t:yc.get(t)||mi,e):n},e.offset=function(t){return arguments.length?(r="function"==typeof t?t:xc.get(t)||gi,e):r},e.x=function(t){return arguments.length?(a=t,e):a},e.y=function(t){return arguments.length?(o=t,e):o},e.out=function(t){return arguments.length?(i=t,e):i},e};var yc=co.map({"inside-out":function(e){var t,n,r=e.length,i=e.map(vi),a=e.map(bi),o=co.range(r).sort(function(e,t){return i[e]-i[t]}),s=0,c=0,l=[],u=[];for(t=0;t<r;++t)n=o[t],s<c?(s+=a[n],l.push(n)):(c+=a[n],u.push(n));return u.reverse().concat(l)},reverse:function(e){return co.range(e.length).reverse()},default:mi}),xc=co.map({silhouette:function(e){var t,n,r,i=e.length,a=e[0].length,o=[],s=0,c=[];for(n=0;n<a;++n){for(t=0,r=0;t<i;t++)r+=e[t][n][1];r>s&&(s=r),o.push(r)}for(n=0;n<a;++n)c[n]=(s-o[n])/2;return c},wiggle:function(e){var t,n,r,i,a,o,s,c,l,u=e.length,d=e[0],p=d.length,f=[];for(f[0]=c=l=0,n=1;n<p;++n){for(t=0,i=0;t<u;++t)i+=e[t][n][1];for(t=0,a=0,s=d[n][0]-d[n-1][0];t<u;++t){for(r=0,o=(e[t][n][1]-e[t][n-1][1])/(2*s);r<t;++r)o+=(e[r][n][1]-e[r][n-1][1])/s;a+=o*e[t][n][1]}f[n]=c-=i?a/i*s:0,c<l&&(l=c)}for(n=0;n<p;++n)f[n]-=l;return f},expand:function(e){var t,n,r,i=e.length,a=e[0].length,o=1/i,s=[];for(n=0;n<a;++n){for(t=0,r=0;t<i;t++)r+=e[t][n][1];if(r)for(t=0;t<i;t++)e[t][n][1]/=r;else for(t=0;t<i;t++)e[t][n][1]=o}for(n=0;n<a;++n)s[n]=0;return s},zero:gi});co.layout.histogram=function(){function e(e,a){for(var o,s,c=[],l=e.map(n,this),u=r.call(this,l,a),d=i.call(this,u,l,a),a=-1,p=l.length,f=d.length-1,h=t?1:1/p;++a<f;)o=c[a]=[],o.dx=d[a+1]-(o.x=d[a]),o.y=0;if(f>0)for(a=-1;++a<p;)(s=l[a])>=u[0]&&s<=u[1]&&(o=c[co.bisect(d,s,1,f)-1],o.y+=h,o.push(e[a]));return c}var t=!0,n=Number,r=_i,i=xi;return e.value=function(t){return arguments.length?(n=t,e):n},e.range=function(t){return arguments.length?(r=$e(t),e):r},e.bins=function(t){return arguments.length?(i="number"==typeof t?function(e){return Mi(e,t)}:$e(t),e):i},e.frequency=function(n){return arguments.length?(t=!!n,e):t},e},co.layout.pack=function(){function e(e,a){var o=n.call(this,e,a),s=o[0],c=i[0],l=i[1],u=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(s.x=s.y=0,si(s,function(e){e.r=+u(e.value)}),si(s,$i),r){var d=r*(t?1:Math.max(2*s.r/c,2*s.r/l))/2;si(s,function(e){e.r+=d}),si(s,$i),si(s,function(e){e.r-=d})}return Ei(s,c/2,l/2,t?1:1/Math.max(2*s.r/c,2*s.r/l)),o}var t,n=co.layout.hierarchy().sort(wi),r=0,i=[1,1];return e.size=function(t){return arguments.length?(i=t,e):i},e.radius=function(n){return arguments.length?(t=null==n||"function"==typeof n?n:+n,e):t},e.padding=function(t){return arguments.length?(r=+t,e):r},ai(e,n)},co.layout.tree=function(){function e(e,i){var u=o.call(this,e,i),d=u[0],p=t(d);if(si(p,n),p.parent.m=-p.z,oi(p,r),l)oi(d,a);else{var f=d,h=d,m=d;oi(d,function(e){e.x<f.x&&(f=e),e.x>h.x&&(h=e),e.depth>m.depth&&(m=e)});var g=s(f,h)/2-f.x,v=c[0]/(h.x+s(h,f)/2+g),b=c[1]/(m.depth||1);oi(d,function(e){e.x=(e.x+g)*v,e.y=e.depth*b})}return u}function t(e){for(var t,n={A:null,children:[e]},r=[n];null!=(t=r.pop());)for(var i,a=t.children,o=0,s=a.length;o<s;++o)r.push((a[o]=i={_:a[o],parent:t,children:(i=a[o].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=i);return n.children[0]}function n(e){var t=e.children,n=e.parent.children,r=e.i?n[e.i-1]:null;if(t.length){Ii(e);var a=(t[0].z+t[t.length-1].z)/2;r?(e.z=r.z+s(e._,r._),e.m=e.z-a):e.z=a}else r&&(e.z=r.z+s(e._,r._));e.parent.A=i(e,r,e.parent.A||n[0])}function r(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function i(e,t,n){if(t){for(var r,i=e,a=e,o=t,c=i.parent.children[0],l=i.m,u=a.m,d=o.m,p=c.m;o=Ni(o),i=Li(i),o&&i;)c=Li(c),a=Ni(a),a.a=e,r=o.z+d-i.z-l+s(o._,i._),r>0&&(Pi(Di(o,e,n),e,r),l+=r,u+=r),d+=o.m,l+=i.m,p+=c.m,u+=a.m;o&&!Ni(a)&&(a.t=o,a.m+=d-u),i&&!Li(c)&&(c.t=i,c.m+=l-p,n=e)}return n}function a(e){e.x*=c[0],e.y=e.depth*c[1]}var o=co.layout.hierarchy().sort(null).value(null),s=zi,c=[1,1],l=null;return e.separation=function(t){return arguments.length?(s=t,e):s},e.size=function(t){return arguments.length?(l=null==(c=t)?a:null,e):l?null:c},e.nodeSize=function(t){return arguments.length?(l=null==(c=t)?null:a,e):l?c:null},ai(e,o)},co.layout.cluster=function(){function e(e,a){var o,s=t.call(this,e,a),c=s[0],l=0;si(c,function(e){var t=e.children;t&&t.length?(e.x=ji(t),e.y=Ri(t)):(e.x=o?l+=n(e,o):0,e.y=0,o=e)});var u=qi(c),d=Bi(c),p=u.x-n(u,d)/2,f=d.x+n(d,u)/2;return si(c,i?function(e){e.x=(e.x-c.x)*r[0],e.y=(c.y-e.y)*r[1]}:function(e){e.x=(e.x-p)/(f-p)*r[0],e.y=(1-(c.y?e.y/c.y:1))*r[1]}),s}var t=co.layout.hierarchy().sort(null).value(null),n=zi,r=[1,1],i=!1;return e.separation=function(t){return arguments.length?(n=t,e):n},e.size=function(t){return arguments.length?(i=null==(r=t),e):i?null:r},e.nodeSize=function(t){return arguments.length?(i=null!=(r=t),e):i?r:null},ai(e,t)},co.layout.treemap=function(){function e(e,t){for(var n,r,i=-1,a=e.length;++i<a;)r=(n=e[i]).value*(t<0?0:t),n.area=isNaN(r)||r<=0?0:r}function t(n){var a=n.children;if(a&&a.length){var o,s,c,l=d(n),u=[],p=a.slice(),h=1/0,m="slice"===f?l.dx:"dice"===f?l.dy:"slice-dice"===f?1&n.depth?l.dy:l.dx:Math.min(l.dx,l.dy);for(e(p,l.dx*l.dy/n.value),u.area=0;(c=p.length)>0;)u.push(o=p[c-1]),u.area+=o.area,"squarify"!==f||(s=r(u,m))<=h?(p.pop(),h=s):(u.area-=u.pop().area,i(u,m,l,!1),m=Math.min(l.dx,l.dy),u.length=u.area=0,h=1/0);u.length&&(i(u,m,l,!0),u.length=u.area=0),a.forEach(t)}}function n(t){var r=t.children;if(r&&r.length){var a,o=d(t),s=r.slice(),c=[];for(e(s,o.dx*o.dy/t.value),c.area=0;a=s.pop();)c.push(a),c.area+=a.area,null!=a.z&&(i(c,a.z?o.dx:o.dy,o,!s.length),c.length=c.area=0);r.forEach(n)}}function r(e,t){for(var n,r=e.area,i=0,a=1/0,o=-1,s=e.length;++o<s;)(n=e[o].area)&&(n<a&&(a=n),n>i&&(i=n));return r*=r,t*=t,r?Math.max(t*i*h/r,r/(t*a*h)):1/0}function i(e,t,n,r){var i,a=-1,o=e.length,s=n.x,l=n.y,u=t?c(e.area/t):0;if(t==n.dx){for((r||u>n.dy)&&(u=n.dy);++a<o;)i=e[a],i.x=s,i.y=l,i.dy=u,s+=i.dx=Math.min(n.x+n.dx-s,u?c(i.area/u):0);i.z=!0,i.dx+=n.x+n.dx-s,n.y+=u,n.dy-=u}else{for((r||u>n.dx)&&(u=n.dx);++a<o;)i=e[a],i.x=s,i.y=l,i.dx=u,l+=i.dy=Math.min(n.y+n.dy-l,u?c(i.area/u):0);i.z=!1,i.dy+=n.y+n.dy-l,n.x+=u,n.dx-=u}}function a(r){var i=o||s(r),a=i[0];return a.x=a.y=0,a.value?(a.dx=l[0],a.dy=l[1]):a.dx=a.dy=0,o&&s.revalue(a),e([a],a.dx*a.dy/a.value),(o?n:t)(a),p&&(o=i),i}var o,s=co.layout.hierarchy(),c=Math.round,l=[1,1],u=null,d=Wi,p=!1,f="squarify",h=.5*(1+Math.sqrt(5));return a.size=function(e){return arguments.length?(l=e,a):l},a.padding=function(e){function t(t){var n=e.call(a,t,t.depth);return null==n?Wi(t):Hi(t,"number"==typeof n?[n,n,n,n]:n)}function n(t){return Hi(t,e)}if(!arguments.length)return u;var r;return d=null==(u=e)?Wi:"function"===(r=void 0===e?"undefined":_typeof2(e))?t:"number"===r?(e=[e,e,e,e],n):n,a},a.round=function(e){return arguments.length?(c=e?Math.round:Number,a):c!=Number},a.sticky=function(e){return arguments.length?(p=e,o=null,a):p},a.ratio=function(e){return arguments.length?(h=e,a):h},a.mode=function(e){return arguments.length?(f=e+"",a):f},ai(a,s)},co.random={normal:function(e,t){var n=arguments.length;return n<2&&(t=1),n<1&&(e=0),function(){var n,r,i;do{n=2*Math.random()-1,r=2*Math.random()-1,i=n*n+r*r}while(!i||i>1);return e+t*n*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var e=co.random.normal.apply(co,arguments);return function(){return Math.exp(e())}},bates:function(e){var t=co.random.irwinHall(e);return function(){return t()/e}},irwinHall:function(e){return function(){for(var t=0,n=0;n<e;n++)t+=Math.random();return t}}},co.scale={};var Mc={floor:y,ceil:y};co.scale.linear=function(){return Qi([0,1],[0,1],xr,!1)};var _c={s:1,g:1,p:1,r:1,e:1};co.scale.log=function(){return ia(co.scale.linear().domain([0,1]),10,!0,[1,10])};var wc=co.format(".0e"),Ac={floor:function(e){return-Math.ceil(-e)},ceil:function(e){return-Math.floor(-e)}};co.scale.pow=function(){return aa(co.scale.linear(),1,[0,1])},co.scale.sqrt=function(){return co.scale.pow().exponent(.5)},co.scale.ordinal=function(){return sa([],{t:"range",a:[[]]})},co.scale.category10=function(){return co.scale.ordinal().range(Sc)},co.scale.category20=function(){return co.scale.ordinal().range(kc)},co.scale.category20b=function(){return co.scale.ordinal().range($c)},co.scale.category20c=function(){return co.scale.ordinal().range(Tc)};var Sc=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(xe),kc=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(xe),$c=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(xe),Tc=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(xe);co.scale.quantile=function(){return ca([],[])},co.scale.quantize=function(){return la(0,1,[0,1])},co.scale.threshold=function(){return ua([.5],[0,1])},co.scale.identity=function(){return da([0,1])},co.svg={},co.svg.arc=function(){function e(){var e=Math.max(0,+n.apply(this,arguments)),l=Math.max(0,+r.apply(this,arguments)),u=o.apply(this,arguments)-Bo,d=s.apply(this,arguments)-Bo,p=Math.abs(d-u),f=u>d?0:1;if(l<e&&(h=l,
50l=e,e=h),p>=qo)return t(l,f)+(e?t(e,1-f):"")+"Z";var h,m,g,v,b,y,x,M,_,w,A,S,k=0,$=0,T=[];if((v=(+c.apply(this,arguments)||0)/2)&&(g=a===Cc?Math.sqrt(e*e+l*l):+a.apply(this,arguments),f||($*=-1),l&&($=ne(g/l*Math.sin(v))),e&&(k=ne(g/e*Math.sin(v)))),l){b=l*Math.cos(u+$),y=l*Math.sin(u+$),x=l*Math.cos(d-$),M=l*Math.sin(d-$);var C=Math.abs(d-u-2*$)<=Ro?0:1;if($&&ba(b,y,x,M)===f^C){var E=(u+d)/2;b=l*Math.cos(E),y=l*Math.sin(E),x=M=null}}else b=y=0;if(e){_=e*Math.cos(d-k),w=e*Math.sin(d-k),A=e*Math.cos(u+k),S=e*Math.sin(u+k);var O=Math.abs(u-d+2*k)<=Ro?0:1;if(k&&ba(_,w,A,S)===1-f^O){var z=(u+d)/2;_=e*Math.cos(z),w=e*Math.sin(z),A=S=null}}else _=w=0;if(p>Io&&(h=Math.min(Math.abs(l-e)/2,+i.apply(this,arguments)))>.001){m=e<l^f?0:1;var L=h,N=h;if(p<Ro){var P=null==A?[_,w]:null==x?[b,y]:Pn([b,y],[A,S],[x,M],[_,w]),I=b-P[0],D=y-P[1],R=x-P[0],j=M-P[1],q=1/Math.sin(Math.acos((I*R+D*j)/(Math.sqrt(I*I+D*D)*Math.sqrt(R*R+j*j)))/2),B=Math.sqrt(P[0]*P[0]+P[1]*P[1]);N=Math.min(h,(e-B)/(q-1)),L=Math.min(h,(l-B)/(q+1))}if(null!=x){var W=ya(null==A?[_,w]:[A,S],[b,y],l,L,f),H=ya([x,M],[_,w],l,L,f);h===L?T.push("M",W[0],"A",L,",",L," 0 0,",m," ",W[1],"A",l,",",l," 0 ",1-f^ba(W[1][0],W[1][1],H[1][0],H[1][1]),",",f," ",H[1],"A",L,",",L," 0 0,",m," ",H[0]):T.push("M",W[0],"A",L,",",L," 0 1,",m," ",H[0])}else T.push("M",b,",",y);if(null!=A){var F=ya([b,y],[A,S],e,-N,f),X=ya([_,w],null==x?[b,y]:[x,M],e,-N,f);h===N?T.push("L",X[0],"A",N,",",N," 0 0,",m," ",X[1],"A",e,",",e," 0 ",f^ba(X[1][0],X[1][1],F[1][0],F[1][1]),",",1-f," ",F[1],"A",N,",",N," 0 0,",m," ",F[0]):T.push("L",X[0],"A",N,",",N," 0 0,",m," ",F[0])}else T.push("L",_,",",w)}else T.push("M",b,",",y),null!=x&&T.push("A",l,",",l," 0 ",C,",",f," ",x,",",M),T.push("L",_,",",w),null!=A&&T.push("A",e,",",e," 0 ",O,",",1-f," ",A,",",S);return T.push("Z"),T.join("")}function t(e,t){return"M0,"+e+"A"+e+","+e+" 0 1,"+t+" 0,"+-e+"A"+e+","+e+" 0 1,"+t+" 0,"+e}var n=fa,r=ha,i=pa,a=Cc,o=ma,s=ga,c=va;return e.innerRadius=function(t){return arguments.length?(n=$e(t),e):n},e.outerRadius=function(t){return arguments.length?(r=$e(t),e):r},e.cornerRadius=function(t){return arguments.length?(i=$e(t),e):i},e.padRadius=function(t){return arguments.length?(a=t==Cc?Cc:$e(t),e):a},e.startAngle=function(t){return arguments.length?(o=$e(t),e):o},e.endAngle=function(t){return arguments.length?(s=$e(t),e):s},e.padAngle=function(t){return arguments.length?(c=$e(t),e):c},e.centroid=function(){var e=(+n.apply(this,arguments)+ +r.apply(this,arguments))/2,t=(+o.apply(this,arguments)+ +s.apply(this,arguments))/2-Bo;return[Math.cos(t)*e,Math.sin(t)*e]},e};var Cc="auto";co.svg.line=function(){return xa(y)};var Ec=co.map({linear:Ma,"linear-closed":_a,step:wa,"step-before":Aa,"step-after":Sa,basis:Oa,"basis-open":za,"basis-closed":La,bundle:Na,cardinal:Ta,"cardinal-open":ka,"cardinal-closed":$a,monotone:qa});Ec.forEach(function(e,t){t.key=e,t.closed=/-closed$/.test(e)});var Oc=[0,2/3,1/3,0],zc=[0,1/3,2/3,0],Lc=[0,1/6,2/3,1/6];co.svg.line.radial=function(){var e=xa(Ba);return e.radius=e.x,delete e.x,e.angle=e.y,delete e.y,e},Aa.reverse=Sa,Sa.reverse=Aa,co.svg.area=function(){return Wa(y)},co.svg.area.radial=function(){var e=Wa(Ba);return e.radius=e.x,delete e.x,e.innerRadius=e.x0,delete e.x0,e.outerRadius=e.x1,delete e.x1,e.angle=e.y,delete e.y,e.startAngle=e.y0,delete e.y0,e.endAngle=e.y1,delete e.y1,e},co.svg.chord=function(){function e(e,s){var c=t(this,a,e,s),l=t(this,o,e,s);return"M"+c.p0+r(c.r,c.p1,c.a1-c.a0)+(n(c,l)?i(c.r,c.p1,c.r,c.p0):i(c.r,c.p1,l.r,l.p0)+r(l.r,l.p1,l.a1-l.a0)+i(l.r,l.p1,c.r,c.p0))+"Z"}function t(e,t,n,r){var i=t.call(e,n,r),a=s.call(e,i,r),o=c.call(e,i,r)-Bo,u=l.call(e,i,r)-Bo;return{r:a,a0:o,a1:u,p0:[a*Math.cos(o),a*Math.sin(o)],p1:[a*Math.cos(u),a*Math.sin(u)]}}function n(e,t){return e.a0==t.a0&&e.a1==t.a1}function r(e,t,n){return"A"+e+","+e+" 0 "+ +(n>Ro)+",1 "+t}function i(e,t,n,r){return"Q 0,0 "+r}var a=xn,o=Mn,s=Ha,c=ma,l=ga;return e.radius=function(t){return arguments.length?(s=$e(t),e):s},e.source=function(t){return arguments.length?(a=$e(t),e):a},e.target=function(t){return arguments.length?(o=$e(t),e):o},e.startAngle=function(t){return arguments.length?(c=$e(t),e):c},e.endAngle=function(t){return arguments.length?(l=$e(t),e):l},e},co.svg.diagonal=function(){function e(e,i){var a=t.call(this,e,i),o=n.call(this,e,i),s=(a.y+o.y)/2,c=[a,{x:a.x,y:s},{x:o.x,y:s},o];return c=c.map(r),"M"+c[0]+"C"+c[1]+" "+c[2]+" "+c[3]}var t=xn,n=Mn,r=Fa;return e.source=function(n){return arguments.length?(t=$e(n),e):t},e.target=function(t){return arguments.length?(n=$e(t),e):n},e.projection=function(t){return arguments.length?(r=t,e):r},e},co.svg.diagonal.radial=function(){var e=co.svg.diagonal(),t=Fa,n=e.projection;return e.projection=function(e){return arguments.length?n(Xa(t=e)):t},e},co.svg.symbol=function(){function e(e,r){return(Nc.get(t.call(this,e,r))||Ga)(n.call(this,e,r))}var t=Va,n=Ua;return e.type=function(n){return arguments.length?(t=$e(n),e):t},e.size=function(t){return arguments.length?(n=$e(t),e):n},e};var Nc=co.map({circle:Ga,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*Ic)),n=t*Ic;return"M0,"+-t+"L"+n+",0 0,"+t+" "+-n+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/Pc),n=t*Pc/2;return"M0,"+n+"L"+t+","+-n+" "+-t+","+-n+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/Pc),n=t*Pc/2;return"M0,"+-n+"L"+t+","+n+" "+-t+","+n+"Z"}});co.svg.symbolTypes=Nc.keys();var Pc=Math.sqrt(3),Ic=Math.tan(30*Wo);To.transition=function(e){for(var t,n,r=Dc||++Bc,i=Ja(e),a=[],o=Rc||{time:Date.now(),ease:$r,delay:0,duration:250},s=-1,c=this.length;++s<c;){a.push(t=[]);for(var l=this[s],u=-1,d=l.length;++u<d;)(n=l[u])&&eo(n,u,i,r,o),t.push(n)}return Qa(a,i,r)},To.interrupt=function(e){return this.each(null==e?jc:Ya(Ja(e)))};var Dc,Rc,jc=Ya(Ja()),qc=[],Bc=0;qc.call=To.call,qc.empty=To.empty,qc.node=To.node,qc.size=To.size,co.transition=function(e,t){return e&&e.transition?Dc?e.transition(t):e:co.selection().transition(e)},co.transition.prototype=qc,qc.select=function(e){var t,n,r,i=this.id,a=this.namespace,o=[];e=C(e);for(var s=-1,c=this.length;++s<c;){o.push(t=[]);for(var l=this[s],u=-1,d=l.length;++u<d;)(r=l[u])&&(n=e.call(r,r.__data__,u,s))?("__data__"in r&&(n.__data__=r.__data__),eo(n,u,a,i,r[a][i]),t.push(n)):t.push(null)}return Qa(o,a,i)},qc.selectAll=function(e){var t,n,r,i,a,o=this.id,s=this.namespace,c=[];e=E(e);for(var l=-1,u=this.length;++l<u;)for(var d=this[l],p=-1,f=d.length;++p<f;)if(r=d[p]){a=r[s][o],n=e.call(r,r.__data__,p,l),c.push(t=[]);for(var h=-1,m=n.length;++h<m;)(i=n[h])&&eo(i,h,s,o,a),t.push(i)}return Qa(c,s,o)},qc.filter=function(e){var t,n,r,i=[];"function"!=typeof e&&(e=W(e));for(var a=0,o=this.length;a<o;a++){i.push(t=[]);for(var n=this[a],s=0,c=n.length;s<c;s++)(r=n[s])&&e.call(r,r.__data__,s,a)&&t.push(r)}return Qa(i,this.namespace,this.id)},qc.tween=function(e,t){var n=this.id,r=this.namespace;return arguments.length<2?this.node()[r][n].tween.get(e):F(this,null==t?function(t){t[r][n].tween.remove(e)}:function(i){i[r][n].tween.set(e,t)})},qc.attr=function(e,t){function n(){this.removeAttribute(s)}function r(){this.removeAttributeNS(s.space,s.local)}function i(e){return null==e?n:(e+="",function(){var t,n=this.getAttribute(s);return n!==e&&(t=o(n,e),function(e){this.setAttribute(s,t(e))})})}function a(e){return null==e?r:(e+="",function(){var t,n=this.getAttributeNS(s.space,s.local);return n!==e&&(t=o(n,e),function(e){this.setAttributeNS(s.space,s.local,t(e))})})}if(arguments.length<2){for(t in e)this.attr(t,e[t]);return this}var o="transform"==e?Gr:xr,s=co.ns.qualify(e);return Ka(this,"attr."+e,t,s.local?a:i)},qc.attrTween=function(e,t){function n(e,n){var r=t.call(this,e,n,this.getAttribute(i));return r&&function(e){this.setAttribute(i,r(e))}}function r(e,n){var r=t.call(this,e,n,this.getAttributeNS(i.space,i.local));return r&&function(e){this.setAttributeNS(i.space,i.local,r(e))}}var i=co.ns.qualify(e);return this.tween("attr."+e,i.local?r:n)},qc.style=function(e,t,r){function i(){this.style.removeProperty(e)}function a(t){return null==t?i:(t+="",function(){var i,a=n(this).getComputedStyle(this,null).getPropertyValue(e);return a!==t&&(i=xr(a,t),function(t){this.style.setProperty(e,i(t),r)})})}var o=arguments.length;if(o<3){if("string"!=typeof e){o<2&&(t="");for(r in e)this.style(r,e[r],t);return this}r=""}return Ka(this,"style."+e,t,a)},qc.styleTween=function(e,t,r){function i(i,a){var o=t.call(this,i,a,n(this).getComputedStyle(this,null).getPropertyValue(e));return o&&function(t){this.style.setProperty(e,o(t),r)}}return arguments.length<3&&(r=""),this.tween("style."+e,i)},qc.text=function(e){return Ka(this,"text",e,Za)},qc.remove=function(){var e=this.namespace;return this.each("end.transition",function(){var t;this[e].count<2&&(t=this.parentNode)&&t.removeChild(this)})},qc.ease=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].ease:("function"!=typeof e&&(e=co.ease.apply(co,arguments)),F(this,function(r){r[n][t].ease=e}))},qc.delay=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].delay:F(this,"function"==typeof e?function(r,i,a){r[n][t].delay=+e.call(r,r.__data__,i,a)}:(e=+e,function(r){r[n][t].delay=e}))},qc.duration=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].duration:F(this,"function"==typeof e?function(r,i,a){r[n][t].duration=Math.max(1,e.call(r,r.__data__,i,a))}:(e=Math.max(1,e),function(r){r[n][t].duration=e}))},qc.each=function(e,t){var n=this.id,r=this.namespace;if(arguments.length<2){var i=Rc,a=Dc;try{Dc=n,F(this,function(t,i,a){Rc=t[r][n],e.call(t,t.__data__,i,a)})}finally{Rc=i,Dc=a}}else F(this,function(i){var a=i[r][n];(a.event||(a.event=co.dispatch("start","end","interrupt"))).on(e,t)});return this},qc.transition=function(){for(var e,t,n,r,i=this.id,a=++Bc,o=this.namespace,s=[],c=0,l=this.length;c<l;c++){s.push(e=[]);for(var t=this[c],u=0,d=t.length;u<d;u++)(n=t[u])&&(r=n[o][i],eo(n,u,o,a,{time:r.time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration})),e.push(n)}return Qa(s,o,a)},co.svg.axis=function(){function e(e){e.each(function(){var e,l=co.select(this),u=this.__chart__||n,d=this.__chart__=n.copy(),p=null==c?d.ticks?d.ticks.apply(d,s):d.domain():c,f=null==t?d.tickFormat?d.tickFormat.apply(d,s):y:t,h=l.selectAll(".tick").data(p,d),m=h.enter().insert("g",".domain").attr("class","tick").style("opacity",Io),g=co.transition(h.exit()).style("opacity",Io).remove(),v=co.transition(h.order()).style("opacity",1),b=Math.max(i,0)+o,x=Xi(d),M=l.selectAll(".domain").data([0]),_=(M.enter().append("path").attr("class","domain"),co.transition(M));m.append("line"),m.append("text");var w,A,S,k,$=m.select("line"),T=v.select("line"),C=h.select("text").text(f),E=m.select("text"),O=v.select("text"),z="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(e=to,w="x",S="y",A="x2",k="y2",C.attr("dy",z<0?"0em":".71em").style("text-anchor","middle"),_.attr("d","M"+x[0]+","+z*a+"V0H"+x[1]+"V"+z*a)):(e=no,w="y",S="x",A="y2",k="x2",C.attr("dy",".32em").style("text-anchor",z<0?"end":"start"),_.attr("d","M"+z*a+","+x[0]+"H0V"+x[1]+"H"+z*a)),$.attr(k,z*i),E.attr(S,z*b),T.attr(A,0).attr(k,z*i),O.attr(w,0).attr(S,z*b),d.rangeBand){var L=d,N=L.rangeBand()/2;u=d=function(e){return L(e)+N}}else u.rangeBand?u=d:g.call(e,d,u);m.call(e,u,d),v.call(e,d,d)})}var t,n=co.scale.linear(),r=Wc,i=6,a=6,o=3,s=[10],c=null;return e.scale=function(t){return arguments.length?(n=t,e):n},e.orient=function(t){return arguments.length?(r=t in Hc?t+"":Wc,e):r},e.ticks=function(){return arguments.length?(s=uo(arguments),e):s},e.tickValues=function(t){return arguments.length?(c=t,e):c},e.tickFormat=function(n){return arguments.length?(t=n,e):t},e.tickSize=function(t){var n=arguments.length;return n?(i=+t,a=+arguments[n-1],e):i},e.innerTickSize=function(t){return arguments.length?(i=+t,e):i},e.outerTickSize=function(t){return arguments.length?(a=+t,e):a},e.tickPadding=function(t){return arguments.length?(o=+t,e):o},e.tickSubdivide=function(){return arguments.length&&e},e};var Wc="bottom",Hc={top:1,right:1,bottom:1,left:1};co.svg.brush=function(){function e(n){n.each(function(){var n=co.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",a).on("touchstart.brush",a),o=n.selectAll(".background").data([0]);o.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),n.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var s=n.selectAll(".resize").data(m,y);s.exit().remove(),s.enter().append("g").attr("class",function(e){return"resize "+e}).style("cursor",function(e){return Fc[e]}).append("rect").attr("x",function(e){return/[ew]$/.test(e)?-3:null}).attr("y",function(e){return/^[ns]/.test(e)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),s.style("display",e.empty()?"none":null);var c,d=co.transition(n),p=co.transition(o);l&&(c=Xi(l),p.attr("x",c[0]).attr("width",c[1]-c[0]),r(d)),u&&(c=Xi(u),p.attr("y",c[0]).attr("height",c[1]-c[0]),i(d)),t(d)})}function t(e){e.selectAll(".resize").attr("transform",function(e){return"translate("+d[+/e$/.test(e)]+","+p[+/^s/.test(e)]+")"})}function r(e){e.select(".extent").attr("x",d[0]),e.selectAll(".extent,.n>rect,.s>rect").attr("width",d[1]-d[0])}function i(e){e.select(".extent").attr("y",p[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",p[1]-p[0])}function a(){function a(){32==co.event.keyCode&&(C||(y=null,O[0]-=d[1],O[1]-=p[1],C=2),S())}function m(){32==co.event.keyCode&&2==C&&(O[0]+=d[1],O[1]+=p[1],C=0,S())}function g(){var e=co.mouse(M),n=!1;x&&(e[0]+=x[0],e[1]+=x[1]),C||(co.event.altKey?(y||(y=[(d[0]+d[1])/2,(p[0]+p[1])/2]),O[0]=d[+(e[0]<y[0])],O[1]=p[+(e[1]<y[1])]):y=null),$&&v(e,l,0)&&(r(A),n=!0),T&&v(e,u,1)&&(i(A),n=!0),n&&(t(A),w({type:"brush",mode:C?"move":"resize"}))}function v(e,t,n){var r,i,a=Xi(t),c=a[0],l=a[1],u=O[n],m=n?p:d,g=m[1]-m[0];if(C&&(c-=u,l-=g+u),r=(n?h:f)?Math.max(c,Math.min(l,e[n])):e[n],C?i=(r+=u)+g:(y&&(u=Math.max(c,Math.min(l,2*y[n]-r))),u<r?(i=r,r=u):i=u),m[0]!=r||m[1]!=i)return n?s=null:o=null,m[0]=r,m[1]=i,!0}function b(){g(),A.style("pointer-events","all").selectAll(".resize").style("display",e.empty()?"none":null),co.select("body").style("cursor",null),z.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),E(),w({type:"brushend"})}var y,x,M=this,_=co.select(co.event.target),w=c.of(M,arguments),A=co.select(M),k=_.datum(),$=!/^(n|s)$/.test(k)&&l,T=!/^(e|w)$/.test(k)&&u,C=_.classed("extent"),E=Q(M),O=co.mouse(M),z=co.select(n(M)).on("keydown.brush",a).on("keyup.brush",m);if(co.event.changedTouches?z.on("touchmove.brush",g).on("touchend.brush",b):z.on("mousemove.brush",g).on("mouseup.brush",b),A.interrupt().selectAll("*").interrupt(),C)O[0]=d[0]-O[0],O[1]=p[0]-O[1];else if(k){var L=+/w$/.test(k),N=+/^n/.test(k);x=[d[1-L]-O[0],p[1-N]-O[1]],O[0]=d[L],O[1]=p[N]}else co.event.altKey&&(y=O.slice());A.style("pointer-events","none").selectAll(".resize").style("display",null),co.select("body").style("cursor",_.style("cursor")),w({type:"brushstart"}),g()}var o,s,c=$(e,"brushstart","brush","brushend"),l=null,u=null,d=[0,0],p=[0,0],f=!0,h=!0,m=Xc[0];return e.event=function(e){e.each(function(){var e=c.of(this,arguments),t={x:d,y:p,i:o,j:s},n=this.__chart__||t;this.__chart__=t,Dc?co.select(this).transition().each("start.brush",function(){o=n.i,s=n.j,d=n.x,p=n.y,e({type:"brushstart"})}).tween("brush:brush",function(){var n=Mr(d,t.x),r=Mr(p,t.y);return o=s=null,function(i){d=t.x=n(i),p=t.y=r(i),e({type:"brush",mode:"resize"})}}).each("end.brush",function(){o=t.i,s=t.j,e({type:"brush",mode:"resize"}),e({type:"brushend"})}):(e({type:"brushstart"}),e({type:"brush",mode:"resize"}),e({type:"brushend"}))})},e.x=function(t){return arguments.length?(l=t,m=Xc[!l<<1|!u],e):l},e.y=function(t){return arguments.length?(u=t,m=Xc[!l<<1|!u],e):u},e.clamp=function(t){return arguments.length?(l&&u?(f=!!t[0],h=!!t[1]):l?f=!!t:u&&(h=!!t),e):l&&u?[f,h]:l?f:u?h:null},e.extent=function(t){var n,r,i,a,c;return arguments.length?(l&&(n=t[0],r=t[1],u&&(n=n[0],r=r[0]),o=[n,r],l.invert&&(n=l(n),r=l(r)),r<n&&(c=n,n=r,r=c),n==d[0]&&r==d[1]||(d=[n,r])),u&&(i=t[0],a=t[1],l&&(i=i[1],a=a[1]),s=[i,a],u.invert&&(i=u(i),a=u(a)),a<i&&(c=i,i=a,a=c),i==p[0]&&a==p[1]||(p=[i,a])),e):(l&&(o?(n=o[0],r=o[1]):(n=d[0],r=d[1],l.invert&&(n=l.invert(n),r=l.invert(r)),r<n&&(c=n,n=r,r=c))),u&&(s?(i=s[0],a=s[1]):(i=p[0],a=p[1],u.invert&&(i=u.invert(i),a=u.invert(a)),a<i&&(c=i,i=a,a=c))),l&&u?[[n,i],[r,a]]:l?[n,r]:u&&[i,a])},e.clear=function(){return e.empty()||(d=[0,0],p=[0,0],o=s=null),e},e.empty=function(){return!!l&&d[0]==d[1]||!!u&&p[0]==p[1]},co.rebind(e,c,"on")};var Fc={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Xc=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Uc=ds.format=vs.timeFormat,Vc=Uc.utc,Gc=Vc("%Y-%m-%dT%H:%M:%S.%LZ");Uc.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?ro:Gc,ro.parse=function(e){var t=new Date(e);return isNaN(t)?null:t},ro.toString=Gc.toString,ds.second=Be(function(e){return new ps(1e3*Math.floor(e/1e3))},function(e,t){e.setTime(e.getTime()+1e3*Math.floor(t))},function(e){return e.getSeconds()}),ds.seconds=ds.second.range,ds.seconds.utc=ds.second.utc.range,ds.minute=Be(function(e){return new ps(6e4*Math.floor(e/6e4))},function(e,t){e.setTime(e.getTime()+6e4*Math.floor(t))},function(e){return e.getMinutes()}),ds.minutes=ds.minute.range,ds.minutes.utc=ds.minute.utc.range,ds.hour=Be(function(e){var t=e.getTimezoneOffset()/60;return new ps(36e5*(Math.floor(e/36e5-t)+t))},function(e,t){e.setTime(e.getTime()+36e5*Math.floor(t))},function(e){return e.getHours()}),ds.hours=ds.hour.range,ds.hours.utc=ds.hour.utc.range,ds.month=Be(function(e){return e=ds.day(e),e.setDate(1),e},function(e,t){e.setMonth(e.getMonth()+t)},function(e){return e.getMonth()}),ds.months=ds.month.range,ds.months.utc=ds.month.utc.range;var Yc=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Qc=[[ds.second,1],[ds.second,5],[ds.second,15],[ds.second,30],[ds.minute,1],[ds.minute,5],[ds.minute,15],[ds.minute,30],[ds.hour,1],[ds.hour,3],[ds.hour,6],[ds.hour,12],[ds.day,1],[ds.day,2],[ds.week,1],[ds.month,1],[ds.month,3],[ds.year,1]],Kc=Uc.multi([[".%L",function(e){return e.getMilliseconds()}],[":%S",function(e){return e.getSeconds()}],["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%a %d",function(e){return e.getDay()&&1!=e.getDate()}],["%b %d",function(e){return 1!=e.getDate()}],["%B",function(e){return e.getMonth()}],["%Y",Et]]),Zc={range:function(e,t,n){return co.range(Math.ceil(e/n)*n,+t,n).map(ao)},floor:y,ceil:y};Qc.year=ds.year,ds.scale=function(){return io(co.scale.linear(),Qc,Kc)};var Jc=Qc.map(function(e){return[e[0].utc,e[1]]}),el=Vc.multi([[".%L",function(e){return e.getUTCMilliseconds()}],[":%S",function(e){return e.getUTCSeconds()}],["%I:%M",function(e){return e.getUTCMinutes()}],["%I %p",function(e){return e.getUTCHours()}],["%a %d",function(e){return e.getUTCDay()&&1!=e.getUTCDate()}],["%b %d",function(e){return 1!=e.getUTCDate()}],["%B",function(e){return e.getUTCMonth()}],["%Y",Et]]);Jc.year=ds.year.utc,ds.scale.utc=function(){return io(co.scale.linear(),Jc,el)},co.text=Te(function(e){return e.responseText}),co.json=function(e,t){return Ce(e,"application/json",oo,t)},co.html=function(e,t){return Ce(e,"text/html",so,t)},co.xml=Te(function(e){return e.responseXML}),"function"==typeof define&&define.amd?(this.d3=co,define(co)):"object"===(void 0===t?"undefined":_typeof2(t))&&t.exports?t.exports=co:this.d3=co}()},{}],266:[function(e,t,n){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(e){return"function"==typeof e}function a(e){return"number"==typeof e}function o(e){return"object"===(void 0===e?"undefined":_typeof2(e))&&null!==e}function s(e){return void 0===e}t.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(e){if(!a(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},r.prototype.emit=function(e){var t,n,r,a,c,l;if(this._events||(this._events={}),"error"===e&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var u=new Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(n=this._events[e],s(n))return!1;if(i(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),n.apply(this,a)}else if(o(n))for(a=Array.prototype.slice.call(arguments,1),l=n.slice(),r=l.length,c=0;c<r;c++)l[c].apply(this,a);return!0},r.prototype.addListener=function(e,t){var n;if(!i(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,i(t.listener)?t.listener:t),this._events[e]?o(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,o(this._events[e])&&!this._events[e].warned&&(n=s(this._maxListeners)?r.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,console.trace),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(e,t){function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}if(!i(t))throw TypeError("listener must be a function");var r=!1;return n.listener=t,this.on(e,n),this},r.prototype.removeListener=function(e,t){var n,r,a,s;if(!i(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,r=-1,n===t||i(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(o(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){r=s;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},r.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],i(n))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},r.prototype.listeners=function(e){return this._events&&this._events[e]?i(this._events[e])?[this._events[e]]:this._events[e].slice():[]},r.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(i(t))return 1;if(t)return t.length}return 0},r.listenerCount=function(e,t){return e.listenerCount(t)}},{}],267:[function(e,t,n){"use strict";function r(e){for(var t,n=e.length,r=0;r<n;r++)if(((t=e.charCodeAt(r))<9||t>13)&&32!==t&&133!==t&&160!==t&&5760!==t&&6158!==t&&(t<8192||t>8205)&&8232!==t&&8233!==t&&8239!==t&&8287!==t&&8288!==t&&12288!==t&&65279!==t)return!1;return!0}t.exports=function(e){var t=void 0===e?"undefined":_typeof2(e);if("string"===t){var n=e;if(0===(e=+e)&&r(n))return!1}else if("number"!==t)return!1;return e-e<1}},{}],268:[function(e,t,n){var r=r||function(e){"use strict";if(!(void 0===e||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var t=e.document,n=function(){return e.URL||e.webkitURL||e},r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),i="download"in r,a=function(e){var t=new MouseEvent("click");e.dispatchEvent(t)},o=/constructor/i.test(e.HTMLElement)||e.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent),c=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},l=function(e){var t=function(){"string"==typeof e?n().revokeObjectURL(e):e.remove()};setTimeout(t,4e4)},u=function(e,t,n){t=[].concat(t);for(var r=t.length;r--;){var i=e["on"+t[r]];if("function"==typeof i)try{i.call(e,n||e)}catch(e){c(e)}}},d=function(e){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},p=function(t,c,p){p||(t=d(t));var f,h=this,m=t.type,g="application/octet-stream"===m,v=function(){u(h,"writestart progress write writeend".split(" "))};if(h.readyState=h.INIT,i)return f=n().createObjectURL(t),void setTimeout(function(){r.href=f,r.download=c,a(r),v(),l(f),h.readyState=h.DONE});!function(){if((s||g&&o)&&e.FileReader){var r=new FileReader;return r.onloadend=function(){var t=s?r.result:r.result.replace(/^data:[^;]*;/,"data:attachment/file;");e.open(t,"_blank")||(e.location.href=t),t=void 0,h.readyState=h.DONE,v()},r.readAsDataURL(t),void(h.readyState=h.INIT)}if(f||(f=n().createObjectURL(t)),g)e.location.href=f;else{e.open(f,"_blank")||(e.location.href=f)}h.readyState=h.DONE,v(),l(f)}()},f=p.prototype,h=function(e,t,n){return new p(e,t||e.name||"download",n)};return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,n){return t=t||e.name||"download",n||(e=d(e)),navigator.msSaveOrOpenBlob(e,t)}:(f.abort=function(){},f.readyState=f.INIT=0,f.WRITING=1,f.DONE=2,f.error=f.onwritestart=f.onprogress=f.onwrite=f.onabort=f.onerror=f.onwriteend=null,h)}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);void 0!==t&&t.exports?t.exports.saveAs=r:"undefined"!=typeof define&&null!==define&&null!==define.amd&&define("FileSaver.js",function(){return r})},{}],269:[function(e,t,n){function r(e,t){var n=t[0],r=t[1],i=t[2],a=t[3],o=n+n,s=r+r,c=i+i,l=n*o,u=r*o,d=r*s,p=i*o,f=i*s,h=i*c,m=a*o,g=a*s,v=a*c;return e[0]=1-d-h,e[1]=u+v,e[2]=p-g,e[3]=0,e[4]=u-v,e[5]=1-l-h,e[6]=f+m,e[7]=0,e[8]=p+g,e[9]=f-m,e[10]=1-l-d,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}t.exports=r},{}],270:[function(e,t,n){(function(r){!function(e,r){"object"===(void 0===n?"undefined":_typeof2(n))&&"object"===(void 0===t?"undefined":_typeof2(t))?t.exports=r():"function"==typeof define&&define.amd?define([],r):"object"===(void 0===n?"undefined":_typeof2(n))?n.jwt=r():e.jwt=r()}("undefined"!=typeof self?self:this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);t.default=r.default},function(e,t,n){"use strict";function r(e){try{Me.CacheUtils.get("debug-logging").then(function(e){e&&e.value})}catch(e){}}function i(){var e="test-local-storage";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}function a(e){r("[jwt.js] initializing");var t=e.keycloakOptions?Object.assign({},Le,e.keycloakOptions):Le;return t.url=t.url?t.url:k(t.internalAuth),Oe=e.disablePolling,Re.keycloak=xe(t),Re.keycloak.onAuthSuccess=$,Re.keycloak.onAuthError=T,Re.keycloak.onAuthRefreshSuccess=C,Re.keycloak.onAuthRefreshError=E,Re.keycloak.onAuthLogout=O,Re.keycloak.onTokenExpired=P,Re.keycloak.init(e.keycloakInitOptions?Object.assign({},Ne,e.keycloakInitOptions):Ne).success(o).error(x)}function o(e){r("[jwt.js] initialized (authenticated: "+e+")"),e&&(V(Re.keycloak.token),F(Re.keycloak.refreshToken),ge().then(function(){j()}).catch(function(){r("[jwt.js] unable to reset the fail count"),j()})),M()}function s(){for(;je.init.length;){var e=je.init.shift();"function"==typeof e&&e(We)}}function c(){je.refreshError.length>0&&je.refreshError.forEach(function(e){"function"==typeof e&&e(We)})}function l(){je.refreshSuccess.length>0&&je.refreshSuccess.forEach(function(e){"function"==typeof e&&e(We)})}function u(){je.logout.length>0&&je.logout.forEach(function(e){"function"==typeof e&&e(We)})}function d(){je.tokenExpired.length>0&&je.tokenExpired.forEach(function(e){"function"==typeof e&&e(We)})}function p(){for(;je.token.length;){var e=je.token.shift();"function"==typeof e&&e(We)}}function f(){for(;je.tokenMismatch.length;){var e=je.tokenMismatch.shift();"function"==typeof e&&e(We)}}function h(e){r("[jwt.js] registering init handler"),Re.initialized?(r("[jwt.js] running event handler: onInit"),e(We)):je.init.push(e)}function m(e){r("[jwt.js] registering the onInitialUpdateToken handler"),Re.initialized&&null!==Re.keycloak.timeSkew?(r("[jwt.js] running event handler: onInitialUpdateToken"),e(We)):je.token.push(e)}function g(e){r("[jwt.js] registering the onTokenMismatch handler"),Re.initialized?(r("[jwt.js] running event handler: onTokenMismatch"),e(We)):je.tokenMismatch.push(e)}function v(){return ve(this,void 0,void 0,function(){var e,t;return be(this,function(n){switch(n.label){case 0:return[4,Me.CacheUtils.get("debug-logging")];case 1:return(e=n.sent())&&!0===e.value?(r("[jwt.js] Debug logging already enabled"),[3,4]):[3,2];case 2:return t={value:!0},[4,Me.CacheUtils.set("debug-logging",t)];case 3:n.sent(),r("[jwt.js] Enabled debug logging"),n.label=4;case 4:return[2]}})})}function b(){r("[jwt.js] Disabling debug logging");var e={value:!1};Me.CacheUtils.set("debug-logging",e)}function y(){return!qe||qe.isMaster}function x(){r("[jwt.js] init error"),M(),G(),X()}function M(){Re.initialized=!0,s()}function _(){c()}function w(){l()}function A(){u()}function S(){d()}function k(e){var t=!0===e?"auth":"sso";switch(location.hostname){case"access.redhat.com":case"prod.foo.redhat.com":case"rhn.redhat.com":case"hardware.redhat.com":case"unified.gsslab.rdu2.redhat.com":return r("[jwt.js] ENV: prod"),"https://"+t+".redhat.com/auth";case"access.stage.redhat.com":case"accessstage.usersys.redhat.com":case"stage.foo.redhat.com":return r("[jwt.js] ENV: stage"),"https://"+t+".stage.redhat.com/auth";case"access.qa.redhat.com":case"qa.foo.redhat.com":case"accessqa.usersys.redhat.com":case"unified-qa.gsslab.pnq2.redhat.com":return r("[jwt.js] ENV: qa"),"https://"+t+".qa.redhat.com/auth";case"ui.foo.redhat.com":return r("[jwt.js] ENV: qa / dev"),"https://"+t+".dev1.redhat.com/auth";case"fte.foo.redhat.com":return r("[jwt.js] ENV: fte"),"https://"+t+".dev.redhat.com/auth";case"access.devgssci.devlab.phx1.redhat.com":case"accessci.usersys.redhat.com":case"ci.foo.redhat.com":default:return r("[jwt.js] ENV: ci"),"https://"+t+".dev2.redhat.com/auth"}}function $(){r("[jwt.js] onAuthSuccess")}function T(){G(),X(),r("[jwt.js] onAuthError")}function C(){r("[jwt.js] onAuthRefreshSuccess"),w()}function E(){r("[jwt.js] onAuthRefreshError"),_()}function O(){r("[jwt.js] onAuthLogout"),A()}function z(e){r("[jwt.js] registering auth refresh error handler"),je.refreshError.push(e)}function L(e){r("[jwt.js] registering auth refresh success handler"),je.refreshSuccess.push(e)}function N(e){r("[jwt.js] registering auth logout handler"),je.logout.push(e)}function P(){r("[jwt.js] onTokenExpired"),S()}function I(e){r("[jwt.js] registering token expired handler"),je.tokenExpired.push(e)}function D(e){return void 0===e&&(e=Te),i&&qe?!!qe.isMaster&&!0===Re.keycloak.isTokenExpired(e):!0===Re.keycloak.isTokenExpired(e)}function R(e){return void 0===e&&(e=!1),ve(this,void 0,void 0,function(){var t
51;return be(this,function(n){switch(n.label){case 0:return[4,he()];case 1:return t=n.sent(),[2,new Promise(function(n,a){try{if(t&&!0!==e){var o="Not updating token because updating failed more than "+Ee+" times in a row";r("[jwt.js] "+o),a(o)}else if(i&&qe){if(qe.isMaster)return r("[jwt.js] running updateToken as this tab is master"+(!0===e?", forcing the token update":", updating if within "+Te+" seconds")),Re.keycloak.updateToken(!0===e?-1:Te).success(function(e){W(e),n(e)}).error(function(e){H(e),a(e)});r("[jwt.js] skipping updateToken call as this tab is a slave, see master tab"),n(!1)}else r("[jwt.js] running updateToken (without cross-tab communcation)"),Re.keycloak.updateToken(!0===e?-1:Te).success(function(e){W(e),n(e)}).error(function(e){H(e),a(e)})}catch(e){a(e)}})]}})})}function j(){B(),!0===Oe?r("[jwt.js] Not starting the refresh loop interval as disablePolling is true."):Be?r("[jwt.js] Cannot start refresh loop as it is already started."):Be=setInterval(B,$e)}function q(e){Be&&(clearInterval(Be),r("[jwt.js] token refresh interval cancelled"))}function B(){return R().then(function(e){return r("[jwt.js] The refresh loop "+["did not refresh","refreshed"][~~e]+" the token"),e}).catch(function(e){return r("[jwt.js] The refresh loop failed to update the token due to: "+e),e&&e.message&&-1!==e.message.indexOf("not match")&&f(),!1})}function W(e){r("[jwt.js] updateTokenSuccess, token was "+["not ",""][~~e]+"refreshed"),e&&ge(),V(Re.keycloak.token),F(Re.keycloak.refreshToken),null===ze&&null!=Re.keycloak.timeSkew&&(ze=Re.keycloak.timeSkew,p());try{(e&&!ye||e&&ye&&ye.username!==Z().username)&&ue()}catch(e){r("[jwt.js] Could not set Raven user context due to: "+e.message)}}function H(e){r("[jwt.js] updateTokenFailure"),me(),pe(new Error("Update token failure"),e)}function F(e){r("[jwt.js] setting refresh token"),we.store.local.set(ke,e),U()}function X(){r("[jwt.js] removing refresh token"),we.store.local.remove(ke)}function U(){if(qe){var e={token:Re.keycloak.token,refreshToken:Re.keycloak.refreshToken,idToken:Re.keycloak.idToken,timeLocal:Re.keycloak.timeLocal};qe.broadcast("updateTokenEvent",e)}}function V(e){e&&(r("[jwt.js] setting access token"),we.store.local.set(Se,e),document.cookie=Se+"="+e+";path=/;max-age=900;domain=."+Pe+";secure;",U())}function G(){r("[jwt.js] removing access token"),we.store.local.remove(Se),document.cookie=Se+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT; domain=."+Pe+"; path=/;secure;"}function Y(){return Re.keycloak.tokenParsed}function Q(){return we.store.local.get(Se)||we.getCookieValue(Se)}function K(){return Re.keycloak.token}function Z(){var e=Y();return e?{user_id:e.user_id,id:e.user_id,username:e.username,account_id:e.account_id,account_number:e.account_number,email:e.email,firstName:e.firstName,lastName:e.lastName,lang:e.lang,region:e.region,login:e.username,internal:ee()}:null}function J(){return Re.keycloak.authenticated}function ee(){return Re.keycloak.hasRealmRole(Ae)}function te(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!e)return!1;for(var n=0;n<e.length;++n)if(!Re.keycloak.hasRealmRole(e[n]))return!1;return!0}function ne(){return Re.keycloak.createRegisterUrl()}function re(e){void 0===e&&(e={});var t=e.redirectUri||location.href;return e.redirectUri=t,Re.keycloak.createLoginUrl(e)}function ie(){return Re.keycloak.createLogoutUrl()}function ae(){return Re.keycloak.createAccountUrl()}function oe(e){return function(){return Re.initialized?e.apply({},arguments):void 0}}function se(e){void 0===e&&(e={});var t=e.redirectUri||location.href;e.redirectUri=t,Re.keycloak.login(e)}function ce(e){void 0===e&&(e={}),G(),X(),Re.keycloak.logout(e)}function le(e){Re.keycloak.register(e)}function ue(){ye=Z(),void 0!==window.Raven&&"function"==typeof window.Raven.setUserContext&&(r("[jwt.js] sent user context to Raven"),Raven.setUserContext(ye))}function de(){try{return Re.keycloak.tokenParsed.exp-Math.ceil((new Date).getTime()/1e3)+Re.keycloak.timeSkew}catch(e){return null}}function pe(e,t){ye=Z(),void 0!==window.Raven&&"function"==typeof window.Raven.captureException&&(Raven.setTagsContext({is_authenticated:J(),is_token_expired:Re.keycloak.authenticated?Re.keycloak.isTokenExpired(0):null,token_expires_in:de(),state_changed:t&&t.message&&-1!==t.message.toLowerCase().indexOf("Cookie sessionId and keycloak sessionId do not match")}),Raven.captureException(e,{extra:t}))}function fe(){try{return Me.CacheUtils.get(Ce).then(function(e){return e.value}).catch(function(e){return 0})}catch(e){return Promise.resolve(0)}}function he(){return fe().then(function(e){return e>Ee})}function me(){return fe().then(function(e){var t=e+1,n={value:t};return Me.CacheUtils.set(Ce,n),t})}function ge(){var e={value:0};return Me.CacheUtils.set(Ce,e)}var ve=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(o,s)}c((r=r.apply(e,t||[])).next())})},be=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(;c;)try{if(i=1,a&&(o=a[2&n[0]?"return":n[0]?"throw":"next"])&&!(o=o.call(a,n[1])).done)return o;switch(a=0,o&&(n=[0,o.value]),n[0]){case 0:case 1:o=n;break;case 4:return c.label++,{value:n[1],done:!1};case 5:c.label++,a=n[1],n=[0];continue;case 7:n=c.ops.pop(),c.trys.pop();continue;default:if(o=c.trys,!(o=o.length>0&&o[o.length-1])&&(6===n[0]||2===n[0])){c=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){c.label=n[1];break}if(6===n[0]&&c.label<o[1]){c.label=o[1],o=n;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(n);break}o[2]&&c.ops.pop(),c.trys.pop();continue}n=t.call(e,c)}catch(e){n=[6,e],a=0}finally{i=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,a,o,s,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s};Object.defineProperty(t,"__esModule",{value:!0});var ye,xe=n(2),Me=n(4),_e={make_store:function(e){var t;try{if(!(t=window[e+"Storage"]))throw new Error("DOM Storage is disabled")}catch(e){t={getItem:function(e){return t[e]},setItem:function(e,n){return t[e]=n},removeItem:function(e){return delete t[e]}}}return{get:function(e){var n=t.getItem(e);return n&&JSON.parse(n)},set:function(e,n){if(void 0!==n)return t.setItem(e,JSON.stringify(n))},remove:function(e){return t.removeItem(e)}}}},we={getCookieValue:function(e){var t,n;return document.cookie.length>0&&-1!==(t=document.cookie.indexOf(e+"="))&&(0===t||" "===document.cookie.charAt(t-1))?(t+=e.length+1,n=document.cookie.indexOf(";",t),-1===n&&(n=document.cookie.length),decodeURI(document.cookie.substring(t,n))):""},setCookie:function(e,t,n,r,i,a){var o=new Date;o.setTime(o.getTime()),n&&(n=1e3*n*60*60);var s=new Date(o.getTime()+n);document.cookie=e+"="+encodeURI(t)+(n?";expires="+s.toUTCString():"")+(r?";path="+r:"")+(i?";domain="+i:"")+(a?";secure":"")},removeCookie:function(e){var t=new Date;t.setTime(t.getTime()-1),document.cookie=e+="=; expires="+t.toUTCString()},log:function(e){},store:{local:_e.make_store("local"),session:_e.make_store("session")}},Ae="redhat:employees",Se="rh_jwt",ke="rh_refresh_token",$e=58e3,Te=90,Ce="refresh_fail_count",Ee=5,Oe=!1,ze=null,Le={realm:"redhat-external",clientId:"changeme"},Ne={responseMode:"query",flow:"standard",token:null,refreshToken:null},Pe=location.hostname,Ie=we.store.local.get(Se)||we.getCookieValue(Se),De=we.store.local.get(ke);Ie&&"undefined"!==Ie&&(Ne.token=Ie),De&&(Ne.refreshToken=De);var Re={initialized:!1,keycloak:null},je={init:[],token:[],tokenMismatch:[],refreshError:[],refreshSuccess:[],logout:[],tokenExpired:[]};document.cookie=Se+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT; domain=.redhat.com; path=/; secure;";var qe=null;qe&&(qe.logMessage=function(e){r("[jwt.js] [Token Update Scheduler] "+e.text)},qe.masterDidChange=function(){r("[jwt.js] [Token Update Scheduler] This tab became "+(this.isMaster?"master":"slave"))},qe.masterDidChange(),qe.updateTokenEvent=function(e){!qe.isMaster&&e&&(r("[jwt.js] [Token Update Scheduler] calling keycloak setToken on this slave instance to update with the refreshed master token."),Re.keycloak.setToken(e.token,e.refreshToken,e.idToken,e.timeLocal),ze=Re.keycloak.timeSkew)});var Be,We={login:oe(se),logout:oe(ce),register:oe(le),hasRole:oe(te),isInternal:oe(ee),isAuthenticated:oe(J),getRegisterUrl:oe(ne),getLoginUrl:oe(re),getLogoutUrl:oe(ie),getAccountUrl:oe(ae),getToken:oe(Y),getStoredTokenValue:oe(Q),getEncodedToken:oe(K),getUserInfo:oe(Z),updateToken:oe(R),cancelRefreshLoop:oe(q),startRefreshLoop:oe(j),isTokenExpired:oe(D),onInit:h,onAuthRefreshError:z,onAuthRefreshSuccess:L,onAuthLogout:N,onTokenExpired:I,onInitialUpdateToken:m,onTokenMismatch:g,onAuthError:T,enableDebugLogging:v,disableDebugLogging:b,isMaster:y,init:a,_state:Re,getFailCount:fe,failCountPassed:he,expiresIn:de};t.default=We},function(e,t,n){(function(e){var n,r;!function(i,a){var o=function e(t){function n(){return"/"==b.authServerUrl.charAt(b.authServerUrl.length-1)?b.authServerUrl+"realms/"+encodeURIComponent(b.realm):b.authServerUrl+"/realms/"+encodeURIComponent(b.realm)}function r(){return i.location.origin?i.location.origin:i.location.protocol+"//"+i.location.hostname+(i.location.port?":"+i.location.port:"")}function a(e,t){function r(n,r,i,a){s=(s+(new Date).getTime())/2,b.setToken(n,r,i,s),b.tokenParsed&&b.tokenParsed.nonce!=e.storedNonce||b.refreshTokenParsed&&b.refreshTokenParsed.nonce!=e.storedNonce||b.idTokenParsed&&b.idTokenParsed.nonce!=e.storedNonce?(b.clearToken(),t&&t.setError()):a&&(b.onAuthSuccess&&b.onAuthSuccess(),t&&t.setSuccess())}var i=e.code,a=e.error,o=e.prompt,s=(new Date).getTime();if(a)if("none"!=o){var c={error:a,error_description:e.error_description};b.onAuthError&&b.onAuthError(c),t&&t.setError(c)}else t&&t.setSuccess();else if("standard"!=b.flow&&(e.access_token||e.id_token)&&r(e.access_token,null,e.id_token,!0),"implicit"!=b.flow&&i){var l="code="+i+"&grant_type=authorization_code",u=n()+"/protocol/openid-connect/token",d=new XMLHttpRequest;d.open("POST",u,!0),d.setRequestHeader("Content-type","application/x-www-form-urlencoded"),b.clientId&&b.clientSecret?d.setRequestHeader("Authorization","Basic "+btoa(b.clientId+":"+b.clientSecret)):l+="&client_id="+encodeURIComponent(b.clientId),l+="&redirect_uri="+e.redirectUri,d.withCredentials=!0,d.onreadystatechange=function(){if(4==d.readyState)if(200==d.status){var e=JSON.parse(d.responseText);r(e.access_token,e.refresh_token,e.id_token,"standard"===b.flow)}else b.onAuthError&&b.onAuthError(),t&&t.setError()},d.send(l)}}function o(e){var n,r=d();if(t?"string"==typeof t&&(n=t):n="keycloak.json",n){var i=new XMLHttpRequest;i.open("GET",n,!0),i.setRequestHeader("Accept","application/json"),i.onreadystatechange=function(){if(4==i.readyState)if(200==i.status||s(i)){var e=JSON.parse(i.responseText);b.authServerUrl=e["auth-server-url"],b.realm=e.realm,b.clientId=e.resource,b.clientSecret=(e.credentials||{}).secret,r.setSuccess()}else r.setError()},i.send()}else{if(!t.url)for(var a=document.getElementsByTagName("script"),o=0;o<a.length;o++)if(a[o].src.match(/.*keycloak\.js/)){t.url=a[o].src.substr(0,a[o].src.indexOf("/js/keycloak.js"));break}if(!t.realm)throw"realm missing";if(!t.clientId)throw"clientId missing";b.authServerUrl=t.url,b.realm=t.realm,b.clientId=t.clientId,b.clientSecret=(t.credentials||{}).secret,r.setSuccess()}return r.promise}function s(e){return 0==e.status&&e.responseText&&e.responseURL.startsWith("file:")}function c(e){switch(e=e.split(".")[1],e=e.replace("/-/g","+"),e=e.replace("/_/g","/"),e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw"Invalid token"}return e=(e+"===").slice(0,e.length+e.length%4),e=e.replace(/-/g,"+").replace(/_/g,"/"),e=decodeURIComponent(escape(atob(e))),e=JSON.parse(e)}function l(){for(var e=[],t="0123456789abcdef",n=0;n<36;n++)e[n]=t.substr(Math.floor(16*Math.random()),1);return e[14]="4",e[19]=t.substr(3&e[19]|8,1),e[8]=e[13]=e[18]=e[23]="-",e.join("")}function u(e){var t=new S(e,b.responseMode).parseUri(),n=v.get(t.state);if(n&&(t.code||t.error||t.access_token||t.id_token))return t.redirectUri=n.redirectUri,t.storedNonce=n.nonce,t.prompt=n.prompt,t.fragment&&(t.newUrl+="#"+t.fragment),t}function d(){var e={setSuccess:function(t){e.success=!0,e.result=t,e.successCallback&&e.successCallback(t)},setError:function(t){e.error=!0,e.result=t,e.errorCallback&&e.errorCallback(t)},promise:{success:function(t){return e.success?t(e.result):e.error||(e.successCallback=t),e.promise},error:function(t){return e.error?t(e.result):e.success||(e.errorCallback=t),e.promise}}};return e}function p(){var e=d();if(!x.enable)return e.setSuccess(),e.promise;if(x.iframe)return e.setSuccess(),e.promise;var t=document.createElement("iframe");x.iframe=t,t.onload=function(){var t=n();"/"===t.charAt(0)?x.iframeOrigin=r():x.iframeOrigin=t.substring(0,t.indexOf("/",8)),e.setSuccess(),setTimeout(s,1e3*x.interval)};var a=n()+"/protocol/openid-connect/login-status-iframe.html";b.iframeVersion&&(a=a+"?version="+b.iframeVersion),t.setAttribute("src",a),t.setAttribute("title","keycloak-session-iframe"),t.style.display="none",document.body.appendChild(t);var o=function(e){if(e.origin===x.iframeOrigin&&x.iframe.contentWindow===e.source&&("unchanged"==e.data||"changed"==e.data||"error"==e.data)){"unchanged"!=e.data&&b.clearToken();for(var t=x.callbackList.splice(0,x.callbackList.length),n=t.length-1;n>=0;--n){var r=t[n];"unchanged"==e.data?r.setSuccess():r.setError(new Error("Cookie sessionId and keycloak sessionId do not match. Please logout and log back in."))}}};i.addEventListener("message",o,!1);var s=function e(){f(),b.token&&setTimeout(e,1e3*x.interval)};return e.promise}function f(){var e=d();if(x.iframe&&x.iframeOrigin){var t=b.clientId+" "+b.sessionId;x.callbackList.push(e);var n=x.iframeOrigin;1==x.callbackList.length&&x.iframe.contentWindow.postMessage(t,n)}else e.setSuccess();return e.promise}function h(e){if(!e||"default"==e)return{login:function(e){return i.location.href=b.createLoginUrl(e),d().promise},logout:function(e){return i.location.href=b.createLogoutUrl(e),d().promise},register:function(e){return i.location.href=b.createRegisterUrl(e),d().promise},accountManagement:function(){return i.location.href=b.createAccountUrl(),d().promise},redirectUri:function(e,t){if(1==arguments.length&&(t=!0),e&&e.redirectUri)return e.redirectUri;if(b.redirectUri)return b.redirectUri;var n=location.href;return location.hash&&t&&(n=n.substring(0,location.href.indexOf("#")),n+=(-1==n.indexOf("?")?"?":"&")+"redirect_fragment="+encodeURIComponent(location.hash.substring(1))),n}};if("cordova"==e){x.enable=!1;var t=function(e,t,n){return i.cordova&&i.cordova.InAppBrowser?i.cordova.InAppBrowser.open(e,t,n):i.open(e,t,n)};return{login:function(e){var n=d(),r="location=no";e&&"none"==e.prompt&&(r+=",hidden=yes");var i=b.createLoginUrl(e),o=t(i,"_blank",r),s=!1;return o.addEventListener("loadstart",function(e){if(0==e.url.indexOf("http://localhost")){a(u(e.url),n),o.close(),s=!0}}),o.addEventListener("loaderror",function(e){if(!s)if(0==e.url.indexOf("http://localhost")){var t=u(e.url);a(t,n),o.close(),s=!0}else n.setError(),o.close()}),n.promise},logout:function(e){var n,r=d(),i=b.createLogoutUrl(e),a=t(i,"_blank","location=no,hidden=yes");return a.addEventListener("loadstart",function(e){0==e.url.indexOf("http://localhost")&&a.close()}),a.addEventListener("loaderror",function(e){0==e.url.indexOf("http://localhost")?a.close():(n=!0,a.close())}),a.addEventListener("exit",function(e){n?r.setError():(b.clearToken(),r.setSuccess())}),r.promise},register:function(){var e=b.createRegisterUrl(),n=t(e,"_blank","location=no");n.addEventListener("loadstart",function(e){0==e.url.indexOf("http://localhost")&&n.close()})},accountManagement:function(){var e=b.createAccountUrl(),n=t(e,"_blank","location=no");n.addEventListener("loadstart",function(e){0==e.url.indexOf("http://localhost")&&n.close()})},redirectUri:function(e){return"http://localhost"}}}throw"invalid adapter type: "+e}function m(){try{return new w}catch(e){}return new A}if(!(this instanceof e))return new e(t);for(var g,v,b=this,y=[],x={enable:!0,callbackList:[],interval:5},M=document.getElementsByTagName("script"),_=0;_<M.length;_++)-1===M[_].src.indexOf("keycloak.js")&&-1===M[_].src.indexOf("keycloak.min.js")||-1===M[_].src.indexOf("version=")||(b.iframeVersion=M[_].src.substring(M[_].src.indexOf("version=")+8).split("&")[0]);b.init=function(e){function n(){var t=function(e){e||(n.prompt="none"),b.login(n).success(function(){c.setSuccess()}).error(function(){c.setError()})},n={};switch(e.onLoad){case"check-sso":x.enable?p().success(function(){f().success(function(){t(!1)}).error(function(){c.setSuccess()})}):t(!1);break;case"login-required":t(!0);break;default:throw"Invalid value for onLoad"}}function r(){var t=u(i.location.href);if(t)return p().success(function(){i.history.replaceState({},null,t.newUrl),a(t,c)}).error(function(e){throw"Could not initialize iframe"});e?e.token&&e.refreshToken?(b.setToken(e.token,e.refreshToken,e.idToken),x.enable?p().success(function(){f().success(function(){b.onAuthSuccess&&b.onAuthSuccess(),c.setSuccess()}).error(function(){b.setToken(null,null,null),c.setSuccess()})}):b.updateToken(-1).success(function(){b.onAuthSuccess&&b.onAuthSuccess(),c.setSuccess()}).error(function(){b.onAuthError&&b.onAuthError(),e.onLoad?n():c.setError()})):e.onLoad?n():c.setSuccess():c.setSuccess()}if(b.authenticated=!1,v=m(),g=e&&"cordova"===e.adapter?h("cordova"):e&&"default"===e.adapter?h():i.Cordova||i.cordova?h("cordova"):h(),e){if(void 0!==e.checkLoginIframe&&(x.enable=e.checkLoginIframe),e.checkLoginIframeInterval&&(x.interval=e.checkLoginIframeInterval),"login-required"===e.onLoad&&(b.loginRequired=!0),e.responseMode){if("query"!==e.responseMode&&"fragment"!==e.responseMode)throw"Invalid value for responseMode";b.responseMode=e.responseMode}if(e.flow){switch(e.flow){case"standard":b.responseType="code";break;case"implicit":b.responseType="id_token token";break;case"hybrid":b.responseType="code id_token token";break;default:throw"Invalid value for flow"}b.flow=e.flow}null!=e.timeSkew&&(b.timeSkew=e.timeSkew)}b.responseMode||(b.responseMode="fragment"),b.responseType||(b.responseType="code",b.flow="standard");var s=d(),c=d();c.promise.success(function(){b.onReady&&b.onReady(b.authenticated),s.setSuccess(b.authenticated)}).error(function(e){s.setError(e)});var l=o(t);return l.success(r),l.error(function(){s.setError()}),s.promise},b.login=function(e){return g.login(e)},b.createLoginUrl=function(e){var t=l(),r=l(),i=g.redirectUri(e),a={state:t,nonce:r,redirectUri:encodeURIComponent(i)};e&&e.prompt&&(a.prompt=e.prompt),v.add(a);var o="auth";e&&"register"==e.action&&(o="registrations");var s=e&&e.scope?"openid "+e.scope:"openid",c=n()+"/protocol/openid-connect/"+o+"?client_id="+encodeURIComponent(b.clientId)+"&redirect_uri="+encodeURIComponent(i)+"&state="+encodeURIComponent(t)+"&nonce="+encodeURIComponent(r)+"&response_mode="+encodeURIComponent(b.responseMode)+"&response_type="+encodeURIComponent(b.responseType)+"&scope="+encodeURIComponent(s);return e&&e.prompt&&(c+="&prompt="+encodeURIComponent(e.prompt)),e&&e.maxAge&&(c+="&max_age="+encodeURIComponent(e.maxAge)),e&&e.loginHint&&(c+="&login_hint="+encodeURIComponent(e.loginHint)),e&&e.idpHint&&(c+="&kc_idp_hint="+encodeURIComponent(e.idpHint)),e&&e.locale&&(c+="&ui_locales="+encodeURIComponent(e.locale)),c},b.logout=function(e){return g.logout(e)},b.createLogoutUrl=function(e){return n()+"/protocol/openid-connect/logout?redirect_uri="+encodeURIComponent(g.redirectUri(e,!1))},b.register=function(e){return g.register(e)},b.createRegisterUrl=function(e){return e||(e={}),e.action="register",b.createLoginUrl(e)},b.createAccountUrl=function(e){return n()+"/account?referrer="+encodeURIComponent(b.clientId)+"&referrer_uri="+encodeURIComponent(g.redirectUri(e))},b.accountManagement=function(){return g.accountManagement()},b.hasRealmRole=function(e){var t=b.realmAccess;return!!t&&t.roles.indexOf(e)>=0},b.hasResourceRole=function(e,t){if(!b.resourceAccess)return!1;var n=b.resourceAccess[t||b.clientId];return!!n&&n.roles.indexOf(e)>=0},b.loadUserProfile=function(){var e=n()+"/account",t=new XMLHttpRequest;t.open("GET",e,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Authorization","bearer "+b.token);var r=d();return t.onreadystatechange=function(){4==t.readyState&&(200==t.status?(b.profile=JSON.parse(t.responseText),r.setSuccess(b.profile)):r.setError())},t.send(),r.promise},b.loadUserInfo=function(){var e=n()+"/protocol/openid-connect/userinfo",t=new XMLHttpRequest;t.open("GET",e,!0),t.setRequestHeader("Accept","application/json"),t.setRequestHeader("Authorization","bearer "+b.token);var r=d();return t.onreadystatechange=function(){4==t.readyState&&(200==t.status?(b.userInfo=JSON.parse(t.responseText),r.setSuccess(b.userInfo)):r.setError())},t.send(),r.promise},b.isTokenExpired=function(e){if(!b.tokenParsed||!b.refreshToken&&"implicit"!=b.flow)throw"Not authenticated";if(null==b.timeSkew)return!0;var t=b.tokenParsed.exp-Math.ceil((new Date).getTime()/1e3)+b.timeSkew;return e&&(t-=e),t<0},b.updateToken=function(e){var t=d();if(!b.refreshToken)return t.setError(),t.promise;e=e||5;var r=function(){var r=!1;if(-1==e?r=!0:b.tokenParsed&&!b.isTokenExpired(e)||(r=!0),r){var i="grant_type=refresh_token&refresh_token="+b.refreshToken,a=n()+"/protocol/openid-connect/token";if(y.push(t),1==y.length){var o=new XMLHttpRequest;o.open("POST",a,!0),o.setRequestHeader("Content-type","application/x-www-form-urlencoded"),o.withCredentials=!0,b.clientId&&b.clientSecret?o.setRequestHeader("Authorization","Basic "+btoa(b.clientId+":"+b.clientSecret)):i+="&client_id="+encodeURIComponent(b.clientId);var s=(new Date).getTime();o.onreadystatechange=function(){if(4==o.readyState)if(200==o.status){s=(s+(new Date).getTime())/2;var t=JSON.parse(o.responseText);b.setToken(t.access_token,t.refresh_token,t.id_token,s),b.onAuthRefreshSuccess&&b.onAuthRefreshSuccess();for(var n=y.pop();null!=n;n=y.pop())n.setSuccess(!0)}else{b.onAuthRefreshError&&b.onAuthRefreshError();for(var n=y.pop();null!=n;n=y.pop())if(n){var r={status:o.status,statusText:o.statusText,url:a,date:(new Date).toISOString(),minValidity:e,body:o.body};n.setError(r)}}},o.send(i)}}else t.setSuccess(!1)};if(x.enable){f().success(function(){r()}).error(function(e){t.setError(e)})}else r();return t.promise},b.clearToken=function(){b.token&&(b.setToken(null,null,null),b.onAuthLogout&&b.onAuthLogout(),b.loginRequired&&b.login())},b.setToken=function(e,t,n,r){if(b.tokenTimeoutHandle&&(clearTimeout(b.tokenTimeoutHandle),b.tokenTimeoutHandle=null),t?(b.refreshToken=t,b.refreshTokenParsed=c(t)):(delete b.refreshToken,delete b.refreshTokenParsed),n?(b.idToken=n,b.idTokenParsed=c(n)):(delete b.idToken,delete b.idTokenParsed),e){if(b.token=e,b.tokenParsed=c(e),b.sessionId=b.tokenParsed.session_state,b.authenticated=!0,b.subject=b.tokenParsed.sub,b.realmAccess=b.tokenParsed.realm_access,b.resourceAccess=b.tokenParsed.resource_access,r&&(b.timeLocal=r,b.timeSkew=Math.floor(r/1e3)-b.tokenParsed.iat),null!=b.timeSkew&&b.onTokenExpired){var i=1e3*(b.tokenParsed.exp-(new Date).getTime()/1e3+b.timeSkew);i<=0?b.onTokenExpired():b.tokenTimeoutHandle=setTimeout(b.onTokenExpired,i)}}else delete b.token,delete b.tokenParsed,delete b.subject,delete b.realmAccess,delete b.resourceAccess,b.authenticated=!1},b.callback_id=0;var w=function e(){function t(){for(var e=(new Date).getTime(),t=0;t<localStorage.length;t++){var n=localStorage.key(t);if(n&&0==n.indexOf("kc-callback-")){var r=localStorage.getItem(n);if(r)try{var i=JSON.parse(r).expires;(!i||i<e)&&localStorage.removeItem(n)}catch(e){localStorage.removeItem(n)}}}}if(!(this instanceof e))return new e;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var n=this;n.get=function(e){if(e){var n="kc-callback-"+e,r=localStorage.getItem(n);return r&&(localStorage.removeItem(n),r=JSON.parse(r)),t(),r}},n.add=function(e){t();var n="kc-callback-"+e.state;e.expires=(new Date).getTime()+36e5,localStorage.setItem(n,JSON.stringify(e))}},A=function e(){if(!(this instanceof e))return new e;var t=this;t.get=function(e){if(e){var t=r("kc-callback-"+e);return i("kc-callback-"+e,"",n(-100)),t?JSON.parse(t):void 0}},t.add=function(e){i("kc-callback-"+e.state,JSON.stringify(e),n(60))},t.removeItem=function(e){i(e,"",n(-100))};var n=function(e){var t=new Date;return t.setTime(t.getTime()+60*e*1e3),t},r=function(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];" "==i.charAt(0);)i=i.substring(1);if(0==i.indexOf(t))return i.substring(t.length,i.length)}return""},i=function(e,t,n){var r=e+"="+t+"; expires="+n.toUTCString()+"; ";document.cookie=r}},S=function e(t,n){if(!(this instanceof e))return new e(t,n);var r=this,i=function(){var e=null,n=null,r=null,i=t.indexOf("?"),a=t.indexOf("#",i+1);return-1==i&&-1==a?e=t:-1!=i?(e=t.substring(0,i),n=t.substring(i+1),-1!=a&&(a=n.indexOf("#"),r=n.substring(a+1),n=n.substring(0,a))):(e=t.substring(0,a),r=t.substring(a+1)),{baseUri:e,queryString:n,fragmentString:r}},a=function(e){for(var t={},n=e.split("&"),r=0;r<n.length;r++){var i=n[r].split("="),a=decodeURIComponent(i[0]),o=decodeURIComponent(i[1]);t[a]=o}return t},o=function(e,t,n){for(var r=["code","state","error","error_description"],i=0;i<r.length;i++)if(e===r[i])return n[e]=t,!0;return!1};r.parseUri=function(){var e=i(),t={};e.queryString&&(t=a(e.queryString));var r={newUrl:e.baseUri};for(var s in t)switch(s){case"redirect_fragment":r.fragment=t[s];break;default:"query"==n&&o(s,t[s],r)||(r.newUrl+=(-1==r.newUrl.indexOf("?")?"?":"&")+s+"="+encodeURIComponent(t[s]))}if("fragment"===n){var c={};e.fragmentString&&(c=a(e.fragmentString));for(var s in c)r[s]=c[s]}return r}}};"object"===(void 0===e?"undefined":_typeof2(e))&&e&&"object"===_typeof2(e.exports)?e.exports=o:(i.Keycloak=o,n=[],void 0!==(r=function(){return o}.apply(t,n))&&(e.exports=r))}(window)}).call(t,n(3)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5);t.CACHE_STORAGE_NAME="jwt-redhat-lf",r.config({name:t.CACHE_STORAGE_NAME,driver:[r.LOCALSTORAGE]});var i=function(){function e(){}return e.set=function(e,t,n){t.lastModifiedDate||(t.lastModifiedDate=(new Date).toISOString());try{return r.setItem(e,t)}catch(e){}},e.get=function(e){try{return r.getItem(e)}catch(e){}},e.delete=function(e){try{return r.removeItem(e)}catch(e){}},e.clear=function(){try{return r.clear()}catch(e){}},e.keys=function(e){try{return e?r.keys().then(function(t){return t?t.filter(function(t){return-1!==t.indexOf(e)}):[]}):r.keys()}catch(e){}},e.setInSessionStorage=function(e,t){try{sessionStorage.setItem(e,t)}catch(e){}},e.getInSessionStorage=function(e){try{return sessionStorage.getItem(e)}catch(e){}},e}();t.CacheUtils=i},function(t,n){!function(e){if("object"===(void 0===n?"undefined":_typeof2(n))&&void 0!==t)t.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var i;i="undefined"!=typeof window?window:void 0!==r?r:"undefined"!=typeof self?self:this,i.localforage=e()}}(function(){return function t(n,r,i){function a(s,c){if(!r[s]){if(!n[s]){var l="function"==typeof e&&e;if(!c&&l)return l(s,!0);if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var d=r[s]={exports:{}};n[s][0].call(d.exports,function(e){var t=n[s][1][e];return a(t||e)},d,d.exports,t,n,r,i)}return r[s].exports}for(var o="function"==typeof e&&e,s=0;s<i.length;s++)a(i[s]);return a}({1:[function(e,t,n){(function(e){"use strict";function n(){u=!0;for(var e,t,n=d.length;n;){for(t=d,d=[],e=-1;++e<n;)t[e]();n=d.length}u=!1}function r(e){1!==d.push(e)||u||i()}var i,a=e.MutationObserver||e.WebKitMutationObserver;if(a){var o=0,s=new a(n),c=e.document.createTextNode("");s.observe(c,{characterData:!0}),i=function(){c.data=o=++o%2}}else if(e.setImmediate||void 0===e.MessageChannel)i="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){n(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(n,0)};else{var l=new e.MessageChannel;l.port1.onmessage=n,i=function(){l.port2.postMessage(0)}}var u,d=[];t.exports=r}).call(this,void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,n){"use strict";function r(){}function i(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=b,this.queue=[],this.outcome=void 0,e!==r&&c(this,e)}function a(e,t,n){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function o(e,t,n){h(function(){var r;try{r=t(n)}catch(t){return m.reject(e,t)}r===e?m.reject(e,new TypeError("Cannot resolve promise with itself")):m.resolve(e,r)})}function s(e){var t=e&&e.then;if(e&&"object"===(void 0===e?"undefined":_typeof2(e))&&"function"==typeof t)return function(){t.apply(e,arguments)}}function c(e,t){function n(t){a||(a=!0,m.reject(e,t))}function r(t){a||(a=!0,m.resolve(e,t))}function i(){t(r,n)}var a=!1,o=l(i);"error"===o.status&&n(o.value)}function l(e,t){var n={};try{n.value=e(t),n.status="success"}catch(e){n.status="error",n.value=e}return n}function u(e){return e instanceof this?e:m.resolve(new this(r),e)}function d(e){var t=new this(r);return m.reject(t,e)}function p(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,i=!1;if(!n)return this.resolve([]);for(var a=new Array(n),o=0,s=-1,c=new this(r);++s<n;)!function(e,r){function s(e){a[r]=e,++o!==n||i||(i=!0,m.resolve(c,a))}t.resolve(e).then(s,function(e){i||(i=!0,m.reject(c,e))})}(e[s],s);return c}function f(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,i=!1;if(!n)return this.resolve([]);for(var a=-1,o=new this(r);++a<n;)!function(e){t.resolve(e).then(function(e){i||(i=!0,m.resolve(o,e))},function(e){i||(i=!0,m.reject(o,e))})}(e[a]);return o}var h=e(1),m={},g=["REJECTED"],v=["FULFILLED"],b=["PENDING"];t.exports=n=i,i.prototype.catch=function(e){return this.then(null,e)},i.prototype.then=function(e,t){if("function"!=typeof e&&this.state===v||"function"!=typeof t&&this.state===g)return this;var n=new this.constructor(r);if(this.state!==b){o(n,this.state===v?e:t,this.outcome)}else this.queue.push(new a(n,e,t));return n},a.prototype.callFulfilled=function(e){m.resolve(this.promise,e)},a.prototype.otherCallFulfilled=function(e){o(this.promise,this.onFulfilled,e)},a.prototype.callRejected=function(e){m.reject(this.promise,e)},a.prototype.otherCallRejected=function(e){o(this.promise,this.onRejected,e)},m.resolve=function(e,t){var n=l(s,t);if("error"===n.status)return m.reject(e,n.value);var r=n.value;if(r)c(e,r);else{e.state=v,e.outcome=t;for(var i=-1,a=e.queue.length;++i<a;)e.queue[i].callFulfilled(t)}return e},m.reject=function(e,t){e.state=g,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},n.resolve=u,n.reject=d,n.all=p,n.race=f},{1:1}],3:[function(e,t,n){(function(t){"use strict";"function"!=typeof t.Promise&&(t.Promise=e(2))
52}).call(this,void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{2:2}],4:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(a){if("TypeError"!==a.name)throw a;for(var n="undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder,r=new n,i=0;i<e.length;i+=1)r.append(e[i]);return r.getBlob(t.type)}}function a(e,t){t&&e.then(function(e){t(null,e)},function(e){t(e)})}function o(e,t,n){"function"==typeof t&&e.then(t),"function"==typeof n&&e.catch(n)}function s(e){return"string"!=typeof e&&(e=String(e)),e}function c(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),i=0;i<t;i++)r[i]=e.charCodeAt(i);return n}function l(e){return new ue(function(t){var n=e.transaction(de,he),r=i([""]);n.objectStore(de).put(r,"key"),n.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},n.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/),n=navigator.userAgent.match(/Edge\//);t(n||!e||parseInt(e[1],10)>=43)}}).catch(function(){return!1})}function u(e){return"boolean"==typeof ce?ue.resolve(ce):l(e).then(function(e){return ce=e})}function d(e){var t=le[e.name],n={};n.promise=new ue(function(e){n.resolve=e}),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then(function(){return n.promise}):t.dbReady=n.promise}function p(e){var t=le[e.name],n=t.deferredOperations.pop();n&&n.resolve()}function f(e,t){var n=le[e.name],r=n.deferredOperations.pop();r&&r.reject(t)}function h(e,t){return new ue(function(n,r){if(e.db){if(!t)return n(e.db);d(e),e.db.close()}var i=[e.name];t&&i.push(e.version);var a=se.open.apply(se,i);t&&(a.onupgradeneeded=function(t){var n=a.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore(de)}catch(e){if("ConstraintError"!==e.name)throw e}}),a.onerror=function(e){e.preventDefault(),r(a.error)},a.onsuccess=function(){n(a.result),p(e)}})}function m(e){return h(e,!1)}function g(e){return h(e,!0)}function v(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.version<e.db.version,i=e.version>e.db.version;if(r&&(e.version,e.version=e.db.version),i||n){if(n){var a=e.db.version+1;a>e.version&&(e.version=a)}return!0}return!1}function b(e){return new ue(function(t,n){var r=new FileReader;r.onerror=n,r.onloadend=function(n){var r=btoa(n.target.result||"");t({__local_forage_encoded_blob:!0,data:r,type:e.type})},r.readAsBinaryString(e)})}function y(e){return i([c(atob(e.data))],{type:e.type})}function x(e){return e&&e.__local_forage_encoded_blob}function M(e){var t=this,n=t._initReady().then(function(){var e=le[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady});return o(n,e,e),n}function _(e){d(e);for(var t=le[e.name],n=t.forages,r=0;r<n.length;r++)n[r]._dbInfo.db&&(n[r]._dbInfo.db.close(),n[r]._dbInfo.db=null);return h(e,!1).then(function(e){for(var t=0;t<n.length;t++)n[t]._dbInfo.db=e}).catch(function(t){throw f(e,t),t})}function w(e,t,n){try{var r=e.db.transaction(e.storeName,t);n(null,r)}catch(r){if(!e.db||"InvalidStateError"===r.name)return _(e).then(function(){var r=e.db.transaction(e.storeName,t);n(null,r)});n(r)}}function A(e){function t(){return ue.resolve()}var n=this,r={db:null};if(e)for(var i in e)r[i]=e[i];le||(le={});var a=le[r.name];a||(a={forages:[],db:null,dbReady:null,deferredOperations:[]},le[r.name]=a),a.forages.push(n),n._initReady||(n._initReady=n.ready,n.ready=M);for(var o=[],s=0;s<a.forages.length;s++){var c=a.forages[s];c!==n&&o.push(c._initReady().catch(t))}var l=a.forages.slice(0);return ue.all(o).then(function(){return r.db=a.db,m(r)}).then(function(e){return r.db=e,v(r,n._defaultConfig.version)?g(r):e}).then(function(e){r.db=a.db=e,n._dbInfo=r;for(var t=0;t<l.length;t++){var i=l[t];i!==n&&(i._dbInfo.db=r.db,i._dbInfo.version=r.version)}})}function S(e,t){var n=this;e=s(e);var r=new ue(function(t,r){n.ready().then(function(){w(n._dbInfo,fe,function(i,a){if(i)return r(i);try{var o=a.objectStore(n._dbInfo.storeName),s=o.get(e);s.onsuccess=function(){var e=s.result;void 0===e&&(e=null),x(e)&&(e=y(e)),t(e)},s.onerror=function(){r(s.error)}}catch(e){r(e)}})}).catch(r)});return a(r,t),r}function k(e,t){var n=this,r=new ue(function(t,r){n.ready().then(function(){w(n._dbInfo,fe,function(i,a){if(i)return r(i);try{var o=a.objectStore(n._dbInfo.storeName),s=o.openCursor(),c=1;s.onsuccess=function(){var n=s.result;if(n){var r=n.value;x(r)&&(r=y(r));var i=e(r,n.key,c++);void 0!==i?t(i):n.continue()}else t()},s.onerror=function(){r(s.error)}}catch(e){r(e)}})}).catch(r)});return a(r,t),r}function $(e,t,n){var r=this;e=s(e);var i=new ue(function(n,i){var a;r.ready().then(function(){return a=r._dbInfo,"[object Blob]"===pe.call(t)?u(a.db).then(function(e){return e?t:b(t)}):t}).then(function(t){w(r._dbInfo,he,function(a,o){if(a)return i(a);try{var s=o.objectStore(r._dbInfo.storeName);null===t&&(t=void 0);var c=s.put(t,e);o.oncomplete=function(){void 0===t&&(t=null),n(t)},o.onabort=o.onerror=function(){var e=c.error?c.error:c.transaction.error;i(e)}}catch(e){i(e)}})}).catch(i)});return a(i,n),i}function T(e,t){var n=this;e=s(e);var r=new ue(function(t,r){n.ready().then(function(){w(n._dbInfo,he,function(i,a){if(i)return r(i);try{var o=a.objectStore(n._dbInfo.storeName),s=o.delete(e);a.oncomplete=function(){t()},a.onerror=function(){r(s.error)},a.onabort=function(){var e=s.error?s.error:s.transaction.error;r(e)}}catch(e){r(e)}})}).catch(r)});return a(r,t),r}function C(e){var t=this,n=new ue(function(e,n){t.ready().then(function(){w(t._dbInfo,he,function(r,i){if(r)return n(r);try{var a=i.objectStore(t._dbInfo.storeName),o=a.clear();i.oncomplete=function(){e()},i.onabort=i.onerror=function(){var e=o.error?o.error:o.transaction.error;n(e)}}catch(e){n(e)}})}).catch(n)});return a(n,e),n}function E(e){var t=this,n=new ue(function(e,n){t.ready().then(function(){w(t._dbInfo,fe,function(r,i){if(r)return n(r);try{var a=i.objectStore(t._dbInfo.storeName),o=a.count();o.onsuccess=function(){e(o.result)},o.onerror=function(){n(o.error)}}catch(e){n(e)}})}).catch(n)});return a(n,e),n}function O(e,t){var n=this,r=new ue(function(t,r){if(e<0)return void t(null);n.ready().then(function(){w(n._dbInfo,fe,function(i,a){if(i)return r(i);try{var o=a.objectStore(n._dbInfo.storeName),s=!1,c=o.openCursor();c.onsuccess=function(){var n=c.result;if(!n)return void t(null);0===e?t(n.key):s?t(n.key):(s=!0,n.advance(e))},c.onerror=function(){r(c.error)}}catch(e){r(e)}})}).catch(r)});return a(r,t),r}function z(e){var t=this,n=new ue(function(e,n){t.ready().then(function(){w(t._dbInfo,fe,function(r,i){if(r)return n(r);try{var a=i.objectStore(t._dbInfo.storeName),o=a.openCursor(),s=[];o.onsuccess=function(){var t=o.result;if(!t)return void e(s);s.push(t.key),t.continue()},o.onerror=function(){n(o.error)}}catch(e){n(e)}})}).catch(n)});return a(n,e),n}function L(e){var t,n,r,i,a,o=.75*e.length,s=e.length,c=0;"="===e[e.length-1]&&(o--,"="===e[e.length-2]&&o--);var l=new ArrayBuffer(o),u=new Uint8Array(l);for(t=0;t<s;t+=4)n=ge.indexOf(e[t]),r=ge.indexOf(e[t+1]),i=ge.indexOf(e[t+2]),a=ge.indexOf(e[t+3]),u[c++]=n<<2|r>>4,u[c++]=(15&r)<<4|i>>2,u[c++]=(3&i)<<6|63&a;return l}function N(e){var t,n=new Uint8Array(e),r="";for(t=0;t<n.length;t+=3)r+=ge[n[t]>>2],r+=ge[(3&n[t])<<4|n[t+1]>>4],r+=ge[(15&n[t+1])<<2|n[t+2]>>6],r+=ge[63&n[t+2]];return n.length%3==2?r=r.substring(0,r.length-1)+"=":n.length%3==1&&(r=r.substring(0,r.length-2)+"=="),r}function P(e,t){var n="";if(e&&(n=Le.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===Le.call(e.buffer))){var r,i=ye;e instanceof ArrayBuffer?(r=e,i+=Me):(r=e.buffer,"[object Int8Array]"===n?i+=we:"[object Uint8Array]"===n?i+=Ae:"[object Uint8ClampedArray]"===n?i+=Se:"[object Int16Array]"===n?i+=ke:"[object Uint16Array]"===n?i+=Te:"[object Int32Array]"===n?i+=$e:"[object Uint32Array]"===n?i+=Ce:"[object Float32Array]"===n?i+=Ee:"[object Float64Array]"===n?i+=Oe:t(new Error("Failed to get type for BinaryArray"))),t(i+N(r))}else if("[object Blob]"===n){var a=new FileReader;a.onload=function(){var n=ve+e.type+"~"+N(this.result);t(ye+_e+n)},a.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(e){t(null,e)}}function I(e){if(e.substring(0,xe)!==ye)return JSON.parse(e);var t,n=e.substring(ze),r=e.substring(xe,ze);if(r===_e&&be.test(n)){var a=n.match(be);t=a[1],n=n.substring(a[0].length)}var o=L(n);switch(r){case Me:return o;case _e:return i([o],{type:t});case we:return new Int8Array(o);case Ae:return new Uint8Array(o);case Se:return new Uint8ClampedArray(o);case ke:return new Int16Array(o);case Te:return new Uint16Array(o);case $e:return new Int32Array(o);case Ce:return new Uint32Array(o);case Ee:return new Float32Array(o);case Oe:return new Float64Array(o);default:throw new Error("Unkown type: "+r)}}function D(e){var t=this,n={db:null};if(e)for(var r in e)n[r]="string"!=typeof e[r]?e[r].toString():e[r];var i=new ue(function(e,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(e){return r(e)}n.db.transaction(function(i){i.executeSql("CREATE TABLE IF NOT EXISTS "+n.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],function(){t._dbInfo=n,e()},function(e,t){r(t)})})});return n.serializer=Ne,i}function R(e,t){var n=this;e=s(e);var r=new ue(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){n.executeSql("SELECT * FROM "+i.storeName+" WHERE key = ? LIMIT 1",[e],function(e,n){var r=n.rows.length?n.rows.item(0).value:null;r&&(r=i.serializer.deserialize(r)),t(r)},function(e,t){r(t)})})}).catch(r)});return a(r,t),r}function j(e,t){var n=this,r=new ue(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){n.executeSql("SELECT * FROM "+i.storeName,[],function(n,r){for(var a=r.rows,o=a.length,s=0;s<o;s++){var c=a.item(s),l=c.value;if(l&&(l=i.serializer.deserialize(l)),void 0!==(l=e(l,c.key,s+1)))return void t(l)}t()},function(e,t){r(t)})})}).catch(r)});return a(r,t),r}function q(e,t,n,r){var i=this;e=s(e);var o=new ue(function(a,o){i.ready().then(function(){void 0===t&&(t=null);var s=t,c=i._dbInfo;c.serializer.serialize(t,function(t,l){l?o(l):c.db.transaction(function(n){n.executeSql("INSERT OR REPLACE INTO "+c.storeName+" (key, value) VALUES (?, ?)",[e,t],function(){a(s)},function(e,t){o(t)})},function(t){if(t.code===t.QUOTA_ERR){if(r>0)return void a(q.apply(i,[e,s,n,r-1]));o(t)}})})}).catch(o)});return a(o,n),o}function B(e,t,n){return q.apply(this,[e,t,n,1])}function W(e,t){var n=this;e=s(e);var r=new ue(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){n.executeSql("DELETE FROM "+i.storeName+" WHERE key = ?",[e],function(){t()},function(e,t){r(t)})})}).catch(r)});return a(r,t),r}function H(e){var t=this,n=new ue(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){t.executeSql("DELETE FROM "+r.storeName,[],function(){e()},function(e,t){n(t)})})}).catch(n)});return a(n,e),n}function F(e){var t=this,n=new ue(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){t.executeSql("SELECT COUNT(key) as c FROM "+r.storeName,[],function(t,n){var r=n.rows.item(0).c;e(r)},function(e,t){n(t)})})}).catch(n)});return a(n,e),n}function X(e,t){var n=this,r=new ue(function(t,r){n.ready().then(function(){var i=n._dbInfo;i.db.transaction(function(n){n.executeSql("SELECT key FROM "+i.storeName+" WHERE id = ? LIMIT 1",[e+1],function(e,n){var r=n.rows.length?n.rows.item(0).key:null;t(r)},function(e,t){r(t)})})}).catch(r)});return a(r,t),r}function U(e){var t=this,n=new ue(function(e,n){t.ready().then(function(){var r=t._dbInfo;r.db.transaction(function(t){t.executeSql("SELECT key FROM "+r.storeName,[],function(t,n){for(var r=[],i=0;i<n.rows.length;i++)r.push(n.rows.item(i).key);e(r)},function(e,t){n(t)})})}).catch(n)});return a(n,e),n}function V(){try{return localStorage.setItem("_localforage_support_test",!0),localStorage.removeItem("_localforage_support_test"),!1}catch(e){return!0}}function G(){return!V()||localStorage.length>0}function Y(e){var t=this,n={};if(e)for(var r in e)n[r]=e[r];return n.keyPrefix=n.name+"/",n.storeName!==t._defaultConfig.storeName&&(n.keyPrefix+=n.storeName+"/"),G()?(t._dbInfo=n,n.serializer=Ne,ue.resolve()):ue.reject()}function Q(e){var t=this,n=t.ready().then(function(){for(var e=t._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}});return a(n,e),n}function K(e,t){var n=this;e=s(e);var r=n.ready().then(function(){var t=n._dbInfo,r=localStorage.getItem(t.keyPrefix+e);return r&&(r=t.serializer.deserialize(r)),r});return a(r,t),r}function Z(e,t){var n=this,r=n.ready().then(function(){for(var t=n._dbInfo,r=t.keyPrefix,i=r.length,a=localStorage.length,o=1,s=0;s<a;s++){var c=localStorage.key(s);if(0===c.indexOf(r)){var l=localStorage.getItem(c);if(l&&(l=t.serializer.deserialize(l)),void 0!==(l=e(l,c.substring(i),o++)))return l}}});return a(r,t),r}function J(e,t){var n=this,r=n.ready().then(function(){var t,r=n._dbInfo;try{t=localStorage.key(e)}catch(e){t=null}return t&&(t=t.substring(r.keyPrefix.length)),t});return a(r,t),r}function ee(e){var t=this,n=t.ready().then(function(){for(var e=t._dbInfo,n=localStorage.length,r=[],i=0;i<n;i++){var a=localStorage.key(i);0===a.indexOf(e.keyPrefix)&&r.push(a.substring(e.keyPrefix.length))}return r});return a(n,e),n}function te(e){var t=this,n=t.keys().then(function(e){return e.length});return a(n,e),n}function ne(e,t){var n=this;e=s(e);var r=n.ready().then(function(){var t=n._dbInfo;localStorage.removeItem(t.keyPrefix+e)});return a(r,t),r}function re(e,t,n){var r=this;e=s(e);var i=r.ready().then(function(){void 0===t&&(t=null);var n=t;return new ue(function(i,a){var o=r._dbInfo;o.serializer.serialize(t,function(t,r){if(r)a(r);else try{localStorage.setItem(o.keyPrefix+e,t),i(n)}catch(e){"QuotaExceededError"!==e.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==e.name||a(e),a(e)}})})});return a(i,n),i}function ie(e,t){e[t]=function(){var n=arguments;return e.ready().then(function(){return e[t].apply(e,n)})}}function ae(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var n in t)t.hasOwnProperty(n)&&(De(t[n])?arguments[0][n]=t[n].slice():arguments[0][n]=t[n])}return arguments[0]}var oe="function"==typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof2(e)},se=function(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof OIndexedDB)return OIndexedDB;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(e){return}}();"undefined"==typeof Promise&&e(3);var ce,le,ue=Promise,de="local-forage-detect-blob-support",pe=Object.prototype.toString,fe="readonly",he="readwrite",me={_driver:"asyncStorage",_initStorage:A,_support:function(){try{if(!se)return!1;var e="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(e){return!1}}(),iterate:k,getItem:S,setItem:$,removeItem:T,clear:C,length:E,key:O,keys:z},ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ve="~~local_forage_type~",be=/^~~local_forage_type~([^~]+)~/,ye="__lfsc__:",xe=ye.length,Me="arbf",_e="blob",we="si08",Ae="ui08",Se="uic8",ke="si16",$e="si32",Te="ur16",Ce="ui32",Ee="fl32",Oe="fl64",ze=xe+Me.length,Le=Object.prototype.toString,Ne={serialize:P,deserialize:I,stringToBuffer:L,bufferToString:N},Pe={_driver:"webSQLStorage",_initStorage:D,_support:function(){return"function"==typeof openDatabase}(),iterate:j,getItem:R,setItem:B,removeItem:W,clear:H,length:F,key:X,keys:U},Ie={_driver:"localStorageWrapper",_initStorage:Y,_support:function(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&"function"==typeof localStorage.setItem}catch(e){return!1}}(),iterate:Z,getItem:K,setItem:re,removeItem:ne,clear:Q,length:te,key:J,keys:ee},De=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},Re={},je={},qe={INDEXEDDB:me,WEBSQL:Pe,LOCALSTORAGE:Ie},Be=[qe.INDEXEDDB._driver,qe.WEBSQL._driver,qe.LOCALSTORAGE._driver],We=["clear","getItem","iterate","key","keys","length","removeItem","setItem"],He={description:"",driver:Be.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1},Fe=function(){function e(t){r(this,e);for(var n in qe)if(qe.hasOwnProperty(n)){var i=qe[n],a=i._driver;this[n]=a,Re[a]||this.defineDriver(i)}this._defaultConfig=ae({},He),this._config=ae({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return e.prototype.config=function(e){if("object"===(void 0===e?"undefined":oe(e))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!=typeof e[t])return new Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e&&e.driver)||this.setDriver(this._config.driver)}return"string"==typeof e?this._config[e]:this._config},e.prototype.defineDriver=function(e,t,n){var r=new ue(function(t,n){try{var r=e._driver,i=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void n(i);for(var a=We.concat("_initStorage"),o=0,s=a.length;o<s;o++){var c=a[o];if(!c||!e[c]||"function"!=typeof e[c])return void n(i)}var l=function(n){Re[r],Re[r]=e,je[r]=n,t()};"_support"in e?e._support&&"function"==typeof e._support?e._support().then(l,n):l(!!e._support):l(!0)}catch(e){n(e)}});return o(r,t,n),r},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,t,n){var r=Re[e]?ue.resolve(Re[e]):ue.reject(new Error("Driver not found."));return o(r,t,n),r},e.prototype.getSerializer=function(e){var t=ue.resolve(Ne);return o(t,e),t},e.prototype.ready=function(e){var t=this,n=t._driverSet.then(function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready});return o(n,e,e),n},e.prototype.setDriver=function(e,t,n){function r(){s._config.driver=s.driver()}function i(e){return s._extend(e),r(),s._ready=s._initStorage(s._config),s._ready}function a(e){return function(){function t(){for(;n<e.length;){var a=e[n];return n++,s._dbInfo=null,s._ready=null,s.getDriver(a).then(i).catch(t)}r();var o=new Error("No available storage method found.");return s._driverSet=ue.reject(o),s._driverSet}var n=0;return t()}}var s=this;De(e)||(e=[e]);var c=this._getSupportedDrivers(e),l=null!==this._driverSet?this._driverSet.catch(function(){return ue.resolve()}):ue.resolve();return this._driverSet=l.then(function(){var e=c[0];return s._dbInfo=null,s._ready=null,s.getDriver(e).then(function(e){s._driver=e._driver,r(),s._wrapLibraryMethodsWithReady(),s._initDriver=a(c)})}).catch(function(){r();var e=new Error("No available storage method found.");return s._driverSet=ue.reject(e),s._driverSet}),o(this._driverSet,t,n),this._driverSet},e.prototype.supports=function(e){return!!je[e]},e.prototype._extend=function(e){ae(this,e)},e.prototype._getSupportedDrivers=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];this.supports(i)&&t.push(i)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0,t=We.length;e<t;e++)ie(this,We[e])},e.prototype.createInstance=function(t){return new e(t)},e}(),Xe=new Fe;t.exports=Xe},{3:3}]},{},[4])(4)})}])})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],271:[function(e,t,n){var r=e("./_getNative"),i=e("./_root"),a=r(i,"DataView");t.exports=a},{"./_getNative":409,"./_root":463}],272:[function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var i=e("./_hashClear"),a=e("./_hashDelete"),o=e("./_hashGet"),s=e("./_hashHas"),c=e("./_hashSet");r.prototype.clear=i,r.prototype.delete=a,r.prototype.get=o,r.prototype.has=s,r.prototype.set=c,t.exports=r},{"./_hashClear":419,"./_hashDelete":420,"./_hashGet":421,"./_hashHas":422,"./_hashSet":423}],273:[function(e,t,n){function r(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=o,this.__views__=[]}var i=e("./_baseCreate"),a=e("./_baseLodash"),o=4294967295;r.prototype=i(a.prototype),r.prototype.constructor=r,t.exports=r},{"./_baseCreate":305,"./_baseLodash":334}],274:[function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var i=e("./_listCacheClear"),a=e("./_listCacheDelete"),o=e("./_listCacheGet"),s=e("./_listCacheHas"),c=e("./_listCacheSet");r.prototype.clear=i,r.prototype.delete=a,r.prototype.get=o,r.prototype.has=s,r.prototype.set=c,t.exports=r},{"./_listCacheClear":437,"./_listCacheDelete":438,"./_listCacheGet":439,"./_listCacheHas":440,"./_listCacheSet":441}],275:[function(e,t,n){function r(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}var i=e("./_baseCreate"),a=e("./_baseLodash");r.prototype=i(a.prototype),r.prototype.constructor=r,t.exports=r},{"./_baseCreate":305,"./_baseLodash":334}],276:[function(e,t,n){var r=e("./_getNative"),i=e("./_root"),a=r(i,"Map");t.exports=a},{"./_getNative":409,"./_root":463}],277:[function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}var i=e("./_mapCacheClear"),a=e("./_mapCacheDelete"),o=e("./_mapCacheGet"),s=e("./_mapCacheHas"),c=e("./_mapCacheSet");r.prototype.clear=i,r.prototype.delete=a,r.prototype.get=o,r.prototype.has=s,r.prototype.set=c,t.exports=r},{"./_mapCacheClear":442,"./_mapCacheDelete":443,"./_mapCacheGet":444,"./_mapCacheHas":445,"./_mapCacheSet":446}],278:[function(e,t,n){var r=e("./_getNative"),i=e("./_root"),a=r(i,"Promise");t.exports=a},{"./_getNative":409,"./_root":463}],279:[function(e,t,n){var r=e("./_getNative"),i=e("./_root"),a=r(i,"Set");t.exports=a},{"./_getNative":409,"./_root":463}],280:[function(e,t,n){function r(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new i;++t<n;)this.add(e[t])}var i=e("./_MapCache"),a=e("./_setCacheAdd"),o=e("./_setCacheHas");r.prototype.add=r.prototype.push=a,r.prototype.has=o,t.exports=r},{"./_MapCache":277,"./_setCacheAdd":464,"./_setCacheHas":465}],281:[function(e,t,n){function r(e){var t=this.__data__=new i(e);this.size=t.size}var i=e("./_ListCache"),a=e("./_stackClear"),o=e("./_stackDelete"),s=e("./_stackGet"),c=e("./_stackHas"),l=e("./_stackSet");r.prototype.clear=a,r.prototype.delete=o,r.prototype.get=s,r.prototype.has=c,r.prototype.set=l,t.exports=r},{"./_ListCache":274,"./_stackClear":471,"./_stackDelete":472,"./_stackGet":473,"./_stackHas":474,"./_stackSet":475}],282:[function(e,t,n){var r=e("./_root"),i=r.Symbol;t.exports=i},{"./_root":463}],283:[function(e,t,n){var r=e("./_root"),i=r.Uint8Array;t.exports=i},{"./_root":463}],284:[function(e,t,n){var r=e("./_getNative"),i=e("./_root"),a=r(i,"WeakMap");t.exports=a},{"./_getNative":409,"./_root":463}],285:[function(e,t,n){function r(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}t.exports=r},{}],286:[function(e,t,n){function r(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}t.exports=r},{}],287:[function(e,t,n){function r(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}t.exports=r},{}],288:[function(e,t,n){function r(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}t.exports=r},{}],289:[function(e,t,n){function r(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}t.exports=r},{}],290:[function(e,t,n){function r(e,t){return!!(null==e?0:e.length)&&i(e,t,0)>-1}var i=e("./_baseIndexOf");t.exports=r},{"./_baseIndexOf":321}],291:[function(e,t,n){function r(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}t.exports=r},{}],292:[function(e,t,n){function r(e,t){var n=o(e),r=!n&&a(e),u=!n&&!r&&s(e),p=!n&&!r&&!u&&l(e),f=n||r||u||p,h=f?i(e.length,String):[],m=h.length;for(var g in e)!t&&!d.call(e,g)||f&&("length"==g||u&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||c(g,m))||h.push(g);return h}var i=e("./_baseTimes"),a=e("./isArguments"),o=e("./isArray"),s=e("./isBuffer"),c=e("./_isIndex"),l=e("./isTypedArray"),u=Object.prototype,d=u.hasOwnProperty;t.exports=r},{"./_baseTimes":354,"./_isIndex":429,"./isArguments":508,"./isArray":509,"./isBuffer":512,"./isTypedArray":522}],293:[function(e,t,n){function r(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}t.exports=r},{}],294:[function(e,t,n){function r(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}t.exports=r},{}],295:[function(e,t,n){function r(e,t,n,r){var i=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}t.exports=r},{}],296:[function(e,t,n){function r(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}t.exports=r},{}],297:[function(e,t,n){function r(e){return e.split("")}t.exports=r},{}],298:[function(e,t,n){function r(e,t,n){var r=e[t];s.call(e,t)&&a(r,n)&&(void 0!==n||t in e)||i(e,t,n)}var i=e("./_baseAssignValue"),a=e("./eq"),o=Object.prototype,s=o.hasOwnProperty;t.exports=r},{"./_baseAssignValue":303,"./eq":493}],299:[function(e,t,n){function r(e,t){for(var n=e.length;n--;)if(i(e[n][0],t))return n;return-1}var i=e("./eq");t.exports=r},{"./eq":493}],300:[function(e,t,n){function r(e,t,n,r){return i(e,function(e,i,a){t(r,e,n(e),a)}),r}var i=e("./_baseEach");t.exports=r},{"./_baseEach":307}],301:[function(e,t,n){function r(e,t){return e&&i(t,a(t),e)}var i=e("./_copyObject"),a=e("./keys");t.exports=r},{"./_copyObject":375,"./keys":524}],302:[function(e,t,n){function r(e,t){return e&&i(t,a(t),e)}var i=e("./_copyObject"),a=e("./keysIn");t.exports=r},{"./_copyObject":375,"./keysIn":525}],303:[function(e,t,n){function r(e,t,n){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var i=e("./_defineProperty");t.exports=r},{"./_defineProperty":395}],304:[function(e,t,n){function r(e,t,n,L,N,P){var I,D=t&S,R=t&k,j=t&$;if(n&&(I=N?n(e,L,N,P):n(e)),void 0!==I)return I;if(!_(e))return e;var q=y(e);if(q){if(I=g(e),!D)return u(e,I)}else{var B=m(e),W=B==C||B==E;if(x(e))return l(e,D);if(B==O||B==T||W&&!N){if(I=R||W?{}:b(e),!D)return R?p(e,c(I,e)):d(e,s(I,e))}else{if(!z[B])return N?e:{};I=v(e,B,D)}}P||(P=new i);var H=P.get(e);if(H)return H;if(P.set(e,I),w(e))return e.forEach(function(i){I.add(r(i,t,n,i,e,P))}),I;if(M(e))return e.forEach(function(i,a){I.set(a,r(i,t,n,a,e,P))}),I;var F=j?R?h:f:R?keysIn:A,X=q?void 0:F(e);return a(X||e,function(i,a){X&&(a=i,i=e[a]),o(I,a,r(i,t,n,a,e,P))}),I}var i=e("./_Stack"),a=e("./_arrayEach"),o=e("./_assignValue"),s=e("./_baseAssign"),c=e("./_baseAssignIn"),l=e("./_cloneBuffer"),u=e("./_copyArray"),d=e("./_copySymbols"),p=e("./_copySymbolsIn"),f=e("./_getAllKeys"),h=e("./_getAllKeysIn"),m=e("./_getTag"),g=e("./_initCloneArray"),v=e("./_initCloneByTag"),b=e("./_initCloneObject"),y=e("./isArray"),x=e("./isBuffer"),M=e("./isMap"),_=e("./isObject"),w=e("./isSet"),A=e("./keys"),S=1,k=2,$=4,T="[object Arguments]",C="[object Function]",E="[object GeneratorFunction]",O="[object Object]",z={};z[T]=z["[object Array]"]=z["[object ArrayBuffer]"]=z["[object DataView]"]=z["[object Boolean]"]=z["[object Date]"]=z["[object Float32Array]"]=z["[object Float64Array]"]=z["[object Int8Array]"]=z["[object Int16Array]"]=z["[object Int32Array]"]=z["[object Map]"]=z["[object Number]"]=z[O]=z["[object RegExp]"]=z["[object Set]"]=z["[object String]"]=z["[object Symbol]"]=z["[object Uint8Array]"]=z["[object Uint8ClampedArray]"]=z["[object Uint16Array]"]=z["[object Uint32Array]"]=!0,z["[object Error]"]=z[C]=z["[object WeakMap]"]=!1,t.exports=r},{"./_Stack":281,"./_arrayEach":287,"./_assignValue":298,"./_baseAssign":301,"./_baseAssignIn":302,"./_cloneBuffer":365,"./_copyArray":374,"./_copySymbols":376,"./_copySymbolsIn":377,"./_getAllKeys":402,"./_getAllKeysIn":403,"./_getTag":414,"./_initCloneArray":424,"./_initCloneByTag":425,"./_initCloneObject":426,"./isArray":509,"./isBuffer":512,"./isMap":516,"./isObject":517,"./isSet":519,"./keys":524}],305:[function(e,t,n){var r=e("./isObject"),i=Object.create,a=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();t.exports=a},{"./isObject":517}],306:[function(e,t,n){function r(e,t,n,r){var d=-1,p=a,f=!0,h=e.length,m=[],g=t.length;if(!h)return m;n&&(t=s(t,c(n))),r?(p=o,f=!1):t.length>=u&&(p=l,f=!1,t=new i(t));e:for(;++d<h;){var v=e[d],b=null==n?v:n(v);if(v=r||0!==v?v:0,f&&b===b){for(var y=g;y--;)if(t[y]===b)continue e;m.push(v)}else p(t,b,r)||m.push(v)}return m}var i=e("./_SetCache"),a=e("./_arrayIncludes"),o=e("./_arrayIncludesWith"),s=e("./_arrayMap"),c=e("./_baseUnary"),l=e("./_cacheHas"),u=200;t.exports=r},{"./_SetCache":280,"./_arrayIncludes":290,"./_arrayIncludesWith":291,"./_arrayMap":293,"./_baseUnary":356,"./_cacheHas":360}],307:[function(e,t,n){var r=e("./_baseForOwn"),i=e("./_createBaseEach"),a=i(r);t.exports=a},{"./_baseForOwn":314,"./_createBaseEach":382}],308:[function(e,t,n){function r(e,t){var n=!0;return i(e,function(e,r,i){return n=!!t(e,r,i)}),n}var i=e("./_baseEach");t.exports=r},{"./_baseEach":307}],309:[function(e,t,n){function r(e,t,n){for(var r=-1,a=e.length;++r<a;){var o=e[r],s=t(o);if(null!=s&&(void 0===c?s===s&&!i(s):n(s,c)))var c=s,l=o}return l}var i=e("./isSymbol");t.exports=r},{"./isSymbol":521}],310:[function(e,t,n){function r(e,t){var n=[];return i(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}var i=e("./_baseEach");t.exports=r},{"./_baseEach":307}],311:[function(e,t,n){function r(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}t.exports=r},{}],312:[function(e,t,n){function r(e,t,n,o,s){var c=-1,l=e.length;for(n||(n=a),s||(s=[]);++c<l;){var u=e[c];t>0&&n(u)?t>1?r(u,t-1,n,o,s):i(s,u):o||(s[s.length]=u)}return s}var i=e("./_arrayPush"),a=e("./_isFlattenable");t.exports=r},{"./_arrayPush":294,"./_isFlattenable":428}],313:[function(e,t,n){var r=e("./_createBaseFor"),i=r();t.exports=i},{"./_createBaseFor":383}],314:[function(e,t,n){function r(e,t){return e&&i(e,t,a)}var i=e("./_baseFor"),a=e("./keys");t.exports=r},{"./_baseFor":313,"./keys":524}],315:[function(e,t,n){function r(e,t){t=i(t,e);for(var n=0,r=t.length;null!=e&&n<r;)e=e[a(t[n++])];return n&&n==r?e:void 0}var i=e("./_castPath"),a=e("./_toKey");t.exports=r},{"./_castPath":362,"./_toKey":479}],316:[function(e,t,n){function r(e,t,n){var r=t(e);return a(e)?r:i(r,n(e))}var i=e("./_arrayPush"),a=e("./isArray");t.exports=r},{"./_arrayPush":294,"./isArray":509}],317:[function(e,t,n){function r(e){return null==e?void 0===e?c:s:l&&l in Object(e)?a(e):o(e)}var i=e("./_Symbol"),a=e("./_getRawTag"),o=e("./_objectToString"),s="[object Null]",c="[object Undefined]",l=i?i.toStringTag:void 0;t.exports=r},{"./_Symbol":282,"./_getRawTag":411,"./_objectToString":456}],318:[function(e,t,n){function r(e,t){return e>t}t.exports=r},{}],319:[function(e,t,n){function r(e,t){return null!=e&&a.call(e,t)}
53var i=Object.prototype,a=i.hasOwnProperty;t.exports=r},{}],320:[function(e,t,n){function r(e,t){return null!=e&&t in Object(e)}t.exports=r},{}],321:[function(e,t,n){function r(e,t,n){return t===t?o(e,t,n):i(e,a,n)}var i=e("./_baseFindIndex"),a=e("./_baseIsNaN"),o=e("./_strictIndexOf");t.exports=r},{"./_baseFindIndex":311,"./_baseIsNaN":327,"./_strictIndexOf":476}],322:[function(e,t,n){function r(e){return a(e)&&i(e)==o}var i=e("./_baseGetTag"),a=e("./isObjectLike"),o="[object Arguments]";t.exports=r},{"./_baseGetTag":317,"./isObjectLike":518}],323:[function(e,t,n){function r(e,t,n,o,s){return e===t||(null==e||null==t||!a(e)&&!a(t)?e!==e&&t!==t:i(e,t,n,o,r,s))}var i=e("./_baseIsEqualDeep"),a=e("./isObjectLike");t.exports=r},{"./_baseIsEqualDeep":324,"./isObjectLike":518}],324:[function(e,t,n){function r(e,t,n,r,g,b){var y=l(e),x=l(t),M=y?h:c(e),_=x?h:c(t);M=M==f?m:M,_=_==f?m:_;var w=M==m,A=_==m,S=M==_;if(S&&u(e)){if(!u(t))return!1;y=!0,w=!1}if(S&&!w)return b||(b=new i),y||d(e)?a(e,t,n,r,g,b):o(e,t,M,n,r,g,b);if(!(n&p)){var k=w&&v.call(e,"__wrapped__"),$=A&&v.call(t,"__wrapped__");if(k||$){var T=k?e.value():e,C=$?t.value():t;return b||(b=new i),g(T,C,n,r,b)}}return!!S&&(b||(b=new i),s(e,t,n,r,g,b))}var i=e("./_Stack"),a=e("./_equalArrays"),o=e("./_equalByTag"),s=e("./_equalObjects"),c=e("./_getTag"),l=e("./isArray"),u=e("./isBuffer"),d=e("./isTypedArray"),p=1,f="[object Arguments]",h="[object Array]",m="[object Object]",g=Object.prototype,v=g.hasOwnProperty;t.exports=r},{"./_Stack":281,"./_equalArrays":396,"./_equalByTag":397,"./_equalObjects":398,"./_getTag":414,"./isArray":509,"./isBuffer":512,"./isTypedArray":522}],325:[function(e,t,n){function r(e){return a(e)&&i(e)==o}var i=e("./_getTag"),a=e("./isObjectLike"),o="[object Map]";t.exports=r},{"./_getTag":414,"./isObjectLike":518}],326:[function(e,t,n){function r(e,t,n,r){var c=n.length,l=c,u=!r;if(null==e)return!l;for(e=Object(e);c--;){var d=n[c];if(u&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++c<l;){d=n[c];var p=d[0],f=e[p],h=d[1];if(u&&d[2]){if(void 0===f&&!(p in e))return!1}else{var m=new i;if(r)var g=r(f,h,p,e,t,m);if(!(void 0===g?a(h,f,o|s,r,m):g))return!1}}return!0}var i=e("./_Stack"),a=e("./_baseIsEqual"),o=1,s=2;t.exports=r},{"./_Stack":281,"./_baseIsEqual":323}],327:[function(e,t,n){function r(e){return e!==e}t.exports=r},{}],328:[function(e,t,n){function r(e){return!(!o(e)||a(e))&&(i(e)?h:l).test(s(e))}var i=e("./isFunction"),a=e("./_isMasked"),o=e("./isObject"),s=e("./_toSource"),c=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,u=Function.prototype,d=Object.prototype,p=u.toString,f=d.hasOwnProperty,h=RegExp("^"+p.call(f).replace(c,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=r},{"./_isMasked":434,"./_toSource":480,"./isFunction":514,"./isObject":517}],329:[function(e,t,n){function r(e){return a(e)&&i(e)==o}var i=e("./_getTag"),a=e("./isObjectLike"),o="[object Set]";t.exports=r},{"./_getTag":414,"./isObjectLike":518}],330:[function(e,t,n){function r(e){return o(e)&&a(e.length)&&!!s[i(e)]}var i=e("./_baseGetTag"),a=e("./isLength"),o=e("./isObjectLike"),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=r},{"./_baseGetTag":317,"./isLength":515,"./isObjectLike":518}],331:[function(e,t,n){function r(e){return"function"==typeof e?e:null==e?o:"object"==(void 0===e?"undefined":_typeof2(e))?s(e)?a(e[0],e[1]):i(e):c(e)}var i=e("./_baseMatches"),a=e("./_baseMatchesProperty"),o=e("./identity"),s=e("./isArray"),c=e("./property");t.exports=r},{"./_baseMatches":336,"./_baseMatchesProperty":337,"./identity":506,"./isArray":509,"./property":540}],332:[function(e,t,n){function r(e){if(!i(e))return a(e);var t=[];for(var n in Object(e))s.call(e,n)&&"constructor"!=n&&t.push(n);return t}var i=e("./_isPrototype"),a=e("./_nativeKeys"),o=Object.prototype,s=o.hasOwnProperty;t.exports=r},{"./_isPrototype":435,"./_nativeKeys":453}],333:[function(e,t,n){function r(e){if(!i(e))return o(e);var t=a(e),n=[];for(var r in e)("constructor"!=r||!t&&c.call(e,r))&&n.push(r);return n}var i=e("./isObject"),a=e("./_isPrototype"),o=e("./_nativeKeysIn"),s=Object.prototype,c=s.hasOwnProperty;t.exports=r},{"./_isPrototype":435,"./_nativeKeysIn":454,"./isObject":517}],334:[function(e,t,n){function r(){}t.exports=r},{}],335:[function(e,t,n){function r(e,t){var n=-1,r=a(e)?Array(e.length):[];return i(e,function(e,i,a){r[++n]=t(e,i,a)}),r}var i=e("./_baseEach"),a=e("./isArrayLike");t.exports=r},{"./_baseEach":307,"./isArrayLike":510}],336:[function(e,t,n){function r(e){var t=a(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||i(n,e,t)}}var i=e("./_baseIsMatch"),a=e("./_getMatchData"),o=e("./_matchesStrictComparable");t.exports=r},{"./_baseIsMatch":326,"./_getMatchData":408,"./_matchesStrictComparable":448}],337:[function(e,t,n){function r(e,t){return s(e)&&c(t)?l(u(e),t):function(n){var r=a(n,e);return void 0===r&&r===t?o(n,e):i(t,r,d|p)}}var i=e("./_baseIsEqual"),a=e("./get"),o=e("./hasIn"),s=e("./_isKey"),c=e("./_isStrictComparable"),l=e("./_matchesStrictComparable"),u=e("./_toKey"),d=1,p=2;t.exports=r},{"./_baseIsEqual":323,"./_isKey":431,"./_isStrictComparable":436,"./_matchesStrictComparable":448,"./_toKey":479,"./get":502,"./hasIn":505}],338:[function(e,t,n){function r(e,t,n){var r=-1;t=i(t.length?t:[u],c(a));var d=o(e,function(e,n,a){return{criteria:i(t,function(t){return t(e)}),index:++r,value:e}});return s(d,function(e,t){return l(e,t,n)})}var i=e("./_arrayMap"),a=e("./_baseIteratee"),o=e("./_baseMap"),s=e("./_baseSortBy"),c=e("./_baseUnary"),l=e("./_compareMultiple"),u=e("./identity");t.exports=r},{"./_arrayMap":293,"./_baseIteratee":331,"./_baseMap":335,"./_baseSortBy":352,"./_baseUnary":356,"./_compareMultiple":371,"./identity":506}],339:[function(e,t,n){function r(e,t){return i(e,t,function(t,n){return a(e,n)})}var i=e("./_basePickBy"),a=e("./hasIn");t.exports=r},{"./_basePickBy":340,"./hasIn":505}],340:[function(e,t,n){function r(e,t,n){for(var r=-1,s=t.length,c={};++r<s;){var l=t[r],u=i(e,l);n(u,l)&&a(c,o(l,e),u)}return c}var i=e("./_baseGet"),a=e("./_baseSet"),o=e("./_castPath");t.exports=r},{"./_baseGet":315,"./_baseSet":347,"./_castPath":362}],341:[function(e,t,n){function r(e){return function(t){return null==t?void 0:t[e]}}t.exports=r},{}],342:[function(e,t,n){function r(e){return function(t){return i(t,e)}}var i=e("./_baseGet");t.exports=r},{"./_baseGet":315}],343:[function(e,t,n){function r(e){return function(t){return null==e?void 0:e[t]}}t.exports=r},{}],344:[function(e,t,n){function r(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==c){var c=o;a(o)?s.call(e,o,1):i(e,o)}}return e}var i=e("./_baseUnset"),a=e("./_isIndex"),o=Array.prototype,s=o.splice;t.exports=r},{"./_baseUnset":358,"./_isIndex":429}],345:[function(e,t,n){function r(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}t.exports=r},{}],346:[function(e,t,n){function r(e,t){return o(a(e,t,i),e+"")}var i=e("./identity"),a=e("./_overRest"),o=e("./_setToString");t.exports=r},{"./_overRest":458,"./_setToString":468,"./identity":506}],347:[function(e,t,n){function r(e,t,n,r){if(!s(e))return e;t=a(t,e);for(var l=-1,u=t.length,d=u-1,p=e;null!=p&&++l<u;){var f=c(t[l]),h=n;if(l!=d){var m=p[f];h=r?r(m,f,p):void 0,void 0===h&&(h=s(m)?m:o(t[l+1])?[]:{})}i(p,f,h),p=p[f]}return e}var i=e("./_assignValue"),a=e("./_castPath"),o=e("./_isIndex"),s=e("./isObject"),c=e("./_toKey");t.exports=r},{"./_assignValue":298,"./_castPath":362,"./_isIndex":429,"./_toKey":479,"./isObject":517}],348:[function(e,t,n){var r=e("./identity"),i=e("./_metaMap"),a=i?function(e,t){return i.set(e,t),e}:r;t.exports=a},{"./_metaMap":451,"./identity":506}],349:[function(e,t,n){var r=e("./constant"),i=e("./_defineProperty"),a=e("./identity"),o=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a;t.exports=o},{"./_defineProperty":395,"./constant":488,"./identity":506}],350:[function(e,t,n){function r(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}t.exports=r},{}],351:[function(e,t,n){function r(e,t){var n;return i(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}var i=e("./_baseEach");t.exports=r},{"./_baseEach":307}],352:[function(e,t,n){function r(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}t.exports=r},{}],353:[function(e,t,n){function r(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);void 0!==a&&(n=void 0===n?a:n+a)}return n}t.exports=r},{}],354:[function(e,t,n){function r(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}t.exports=r},{}],355:[function(e,t,n){function r(e){if("string"==typeof e)return e;if(o(e))return a(e,r)+"";if(s(e))return u?u.call(e):"";var t=e+"";return"0"==t&&1/e==-c?"-0":t}var i=e("./_Symbol"),a=e("./_arrayMap"),o=e("./isArray"),s=e("./isSymbol"),c=1/0,l=i?i.prototype:void 0,u=l?l.toString:void 0;t.exports=r},{"./_Symbol":282,"./_arrayMap":293,"./isArray":509,"./isSymbol":521}],356:[function(e,t,n){function r(e){return function(t){return e(t)}}t.exports=r},{}],357:[function(e,t,n){function r(e,t,n){var r=-1,d=a,p=e.length,f=!0,h=[],m=h;if(n)f=!1,d=o;else if(p>=u){var g=t?null:c(e);if(g)return l(g);f=!1,d=s,m=new i}else m=t?[]:h;e:for(;++r<p;){var v=e[r],b=t?t(v):v;if(v=n||0!==v?v:0,f&&b===b){for(var y=m.length;y--;)if(m[y]===b)continue e;t&&m.push(b),h.push(v)}else d(m,b,n)||(m!==h&&m.push(b),h.push(v))}return h}var i=e("./_SetCache"),a=e("./_arrayIncludes"),o=e("./_arrayIncludesWith"),s=e("./_cacheHas"),c=e("./_createSet"),l=e("./_setToArray"),u=200;t.exports=r},{"./_SetCache":280,"./_arrayIncludes":290,"./_arrayIncludesWith":291,"./_cacheHas":360,"./_createSet":393,"./_setToArray":467}],358:[function(e,t,n){function r(e,t){return t=i(t,e),null==(e=o(e,t))||delete e[s(a(t))]}var i=e("./_castPath"),a=e("./last"),o=e("./_parent"),s=e("./_toKey");t.exports=r},{"./_castPath":362,"./_parent":459,"./_toKey":479,"./last":526}],359:[function(e,t,n){function r(e,t){return i(t,function(t){return e[t]})}var i=e("./_arrayMap");t.exports=r},{"./_arrayMap":293}],360:[function(e,t,n){function r(e,t){return e.has(t)}t.exports=r},{}],361:[function(e,t,n){function r(e){return"function"==typeof e?e:i}var i=e("./identity");t.exports=r},{"./identity":506}],362:[function(e,t,n){function r(e,t){return i(e)?e:a(e,t)?[e]:o(s(e))}var i=e("./isArray"),a=e("./_isKey"),o=e("./_stringToPath"),s=e("./toString");t.exports=r},{"./_isKey":431,"./_stringToPath":478,"./isArray":509,"./toString":555}],363:[function(e,t,n){function r(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:i(e,t,n)}var i=e("./_baseSlice");t.exports=r},{"./_baseSlice":350}],364:[function(e,t,n){function r(e){var t=new e.constructor(e.byteLength);return new i(t).set(new i(e)),t}var i=e("./_Uint8Array");t.exports=r},{"./_Uint8Array":283}],365:[function(e,t,n){function r(e,t){if(t)return e.slice();var n=e.length,r=l?l(n):new e.constructor(n);return e.copy(r),r}var i=e("./_root"),a="object"==(void 0===n?"undefined":_typeof2(n))&&n&&!n.nodeType&&n,o=a&&"object"==(void 0===t?"undefined":_typeof2(t))&&t&&!t.nodeType&&t,s=o&&o.exports===a,c=s?i.Buffer:void 0,l=c?c.allocUnsafe:void 0;t.exports=r},{"./_root":463}],366:[function(e,t,n){function r(e,t){var n=t?i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var i=e("./_cloneArrayBuffer");t.exports=r},{"./_cloneArrayBuffer":364}],367:[function(e,t,n){function r(e){var t=new e.constructor(e.source,i.exec(e));return t.lastIndex=e.lastIndex,t}var i=/\w*$/;t.exports=r},{}],368:[function(e,t,n){function r(e){return o?Object(o.call(e)):{}}var i=e("./_Symbol"),a=i?i.prototype:void 0,o=a?a.valueOf:void 0;t.exports=r},{"./_Symbol":282}],369:[function(e,t,n){function r(e,t){var n=t?i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var i=e("./_cloneArrayBuffer");t.exports=r},{"./_cloneArrayBuffer":364}],370:[function(e,t,n){function r(e,t){if(e!==t){var n=void 0!==e,r=null===e,a=e===e,o=i(e),s=void 0!==t,c=null===t,l=t===t,u=i(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||r&&s&&l||!n&&l||!a)return 1;if(!r&&!o&&!u&&e<t||u&&n&&a&&!r&&!o||c&&n&&a||!s&&a||!l)return-1}return 0}var i=e("./isSymbol");t.exports=r},{"./isSymbol":521}],371:[function(e,t,n){function r(e,t,n){for(var r=-1,a=e.criteria,o=t.criteria,s=a.length,c=n.length;++r<s;){var l=i(a[r],o[r]);if(l){if(r>=c)return l;return l*("desc"==n[r]?-1:1)}}return e.index-t.index}var i=e("./_compareAscending");t.exports=r},{"./_compareAscending":370}],372:[function(e,t,n){function r(e,t,n,r){for(var a=-1,o=e.length,s=n.length,c=-1,l=t.length,u=i(o-s,0),d=Array(l+u),p=!r;++c<l;)d[c]=t[c];for(;++a<s;)(p||a<o)&&(d[n[a]]=e[a]);for(;u--;)d[c++]=e[a++];return d}var i=Math.max;t.exports=r},{}],373:[function(e,t,n){function r(e,t,n,r){for(var a=-1,o=e.length,s=-1,c=n.length,l=-1,u=t.length,d=i(o-c,0),p=Array(d+u),f=!r;++a<d;)p[a]=e[a];for(var h=a;++l<u;)p[h+l]=t[l];for(;++s<c;)(f||a<o)&&(p[h+n[s]]=e[a++]);return p}var i=Math.max;t.exports=r},{}],374:[function(e,t,n){function r(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}t.exports=r},{}],375:[function(e,t,n){function r(e,t,n,r){var o=!n;n||(n={});for(var s=-1,c=t.length;++s<c;){var l=t[s],u=r?r(n[l],e[l],l,n,e):void 0;void 0===u&&(u=e[l]),o?a(n,l,u):i(n,l,u)}return n}var i=e("./_assignValue"),a=e("./_baseAssignValue");t.exports=r},{"./_assignValue":298,"./_baseAssignValue":303}],376:[function(e,t,n){function r(e,t){return i(e,a(e),t)}var i=e("./_copyObject"),a=e("./_getSymbols");t.exports=r},{"./_copyObject":375,"./_getSymbols":412}],377:[function(e,t,n){function r(e,t){return i(e,a(e),t)}var i=e("./_copyObject"),a=e("./_getSymbolsIn");t.exports=r},{"./_copyObject":375,"./_getSymbolsIn":413}],378:[function(e,t,n){var r=e("./_root"),i=r["__core-js_shared__"];t.exports=i},{"./_root":463}],379:[function(e,t,n){function r(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}t.exports=r},{}],380:[function(e,t,n){function r(e,t){return function(n,r){var c=s(n)?i:a,l=t?t():{};return c(n,e,o(r,2),l)}}var i=e("./_arrayAggregator"),a=e("./_baseAggregator"),o=e("./_baseIteratee"),s=e("./isArray");t.exports=r},{"./_arrayAggregator":286,"./_baseAggregator":300,"./_baseIteratee":331,"./isArray":509}],381:[function(e,t,n){function r(e){return i(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,s&&a(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var c=n[r];c&&e(t,c,r,o)}return t})}var i=e("./_baseRest"),a=e("./_isIterateeCall");t.exports=r},{"./_baseRest":346,"./_isIterateeCall":430}],382:[function(e,t,n){function r(e,t){return function(n,r){if(null==n)return n;if(!i(n))return e(n,r);for(var a=n.length,o=t?a:-1,s=Object(n);(t?o--:++o<a)&&!1!==r(s[o],o,s););return n}}var i=e("./isArrayLike");t.exports=r},{"./isArrayLike":510}],383:[function(e,t,n){function r(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(!1===n(a[c],c,a))break}return t}}t.exports=r},{}],384:[function(e,t,n){function r(e,t,n){function r(){return(this&&this!==a&&this instanceof r?c:e).apply(s?n:this,arguments)}var s=t&o,c=i(e);return r}var i=e("./_createCtor"),a=e("./_root"),o=1;t.exports=r},{"./_createCtor":386,"./_root":463}],385:[function(e,t,n){function r(e){return function(t){t=s(t);var n=a(t)?o(t):void 0,r=n?n[0]:t.charAt(0),c=n?i(n,1).join(""):t.slice(1);return r[e]()+c}}var i=e("./_castSlice"),a=e("./_hasUnicode"),o=e("./_stringToArray"),s=e("./toString");t.exports=r},{"./_castSlice":363,"./_hasUnicode":418,"./_stringToArray":477,"./toString":555}],386:[function(e,t,n){function r(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=i(e.prototype),r=e.apply(n,t);return a(r)?r:n}}var i=e("./_baseCreate"),a=e("./isObject");t.exports=r},{"./_baseCreate":305,"./isObject":517}],387:[function(e,t,n){function r(e,t,n){function r(){for(var a=arguments.length,p=Array(a),f=a,h=c(r);f--;)p[f]=arguments[f];var m=a<3&&p[0]!==h&&p[a-1]!==h?[]:l(p,h);return(a-=m.length)<n?s(e,t,o,r.placeholder,void 0,p,m,void 0,void 0,n-a):i(this&&this!==u&&this instanceof r?d:e,this,p)}var d=a(e);return r}var i=e("./_apply"),a=e("./_createCtor"),o=e("./_createHybrid"),s=e("./_createRecurry"),c=e("./_getHolder"),l=e("./_replaceHolders"),u=e("./_root");t.exports=r},{"./_apply":285,"./_createCtor":386,"./_createHybrid":389,"./_createRecurry":392,"./_getHolder":406,"./_replaceHolders":462,"./_root":463}],388:[function(e,t,n){function r(e){return function(t,n,r){var s=Object(t);if(!a(t)){var c=i(n,3);t=o(t),n=function(e){return c(s[e],e,s)}}var l=e(t,n,r);return l>-1?s[c?t[l]:l]:void 0}}var i=e("./_baseIteratee"),a=e("./isArrayLike"),o=e("./keys");t.exports=r},{"./_baseIteratee":331,"./isArrayLike":510,"./keys":524}],389:[function(e,t,n){function r(e,t,n,y,x,M,_,w,A,S){function k(){for(var f=arguments.length,h=Array(f),m=f;m--;)h[m]=arguments[m];if(E)var g=l(k),v=o(h,g);if(y&&(h=i(h,y,x,E)),M&&(h=a(h,M,_,E)),f-=v,E&&f<S){var b=d(h,g);return c(e,t,r,k.placeholder,n,h,b,w,A,S-f)}var L=T?n:this,N=C?L[e]:e;return f=h.length,w?h=u(h,w):O&&f>1&&h.reverse(),$&&A<f&&(h.length=A),this&&this!==p&&this instanceof k&&(N=z||s(N)),N.apply(L,h)}var $=t&v,T=t&f,C=t&h,E=t&(m|g),O=t&b,z=C?void 0:s(e);return k}var i=e("./_composeArgs"),a=e("./_composeArgsRight"),o=e("./_countHolders"),s=e("./_createCtor"),c=e("./_createRecurry"),l=e("./_getHolder"),u=e("./_reorder"),d=e("./_replaceHolders"),p=e("./_root"),f=1,h=2,m=8,g=16,v=128,b=512;t.exports=r},{"./_composeArgs":372,"./_composeArgsRight":373,"./_countHolders":379,"./_createCtor":386,"./_createRecurry":392,"./_getHolder":406,"./_reorder":461,"./_replaceHolders":462,"./_root":463}],390:[function(e,t,n){function r(e){return l(function(t){return t=a(t,c(o)),s(function(n){var r=this;return e(t,function(e){return i(e,r,n)})})})}var i=e("./_apply"),a=e("./_arrayMap"),o=e("./_baseIteratee"),s=e("./_baseRest"),c=e("./_baseUnary"),l=e("./_flatRest");t.exports=r},{"./_apply":285,"./_arrayMap":293,"./_baseIteratee":331,"./_baseRest":346,"./_baseUnary":356,"./_flatRest":400}],391:[function(e,t,n){function r(e,t,n,r){function c(){for(var t=-1,a=arguments.length,s=-1,d=r.length,p=Array(d+a),f=this&&this!==o&&this instanceof c?u:e;++s<d;)p[s]=r[s];for(;a--;)p[s++]=arguments[++t];return i(f,l?n:this,p)}var l=t&s,u=a(e);return c}var i=e("./_apply"),a=e("./_createCtor"),o=e("./_root"),s=1;t.exports=r},{"./_apply":285,"./_createCtor":386,"./_root":463}],392:[function(e,t,n){function r(e,t,n,r,f,h,m,g,v,b){var y=t&u,x=y?m:void 0,M=y?void 0:m,_=y?h:void 0,w=y?void 0:h;t|=y?d:p,(t&=~(y?p:d))&l||(t&=~(s|c));var A=[e,t,f,_,x,w,M,g,v,b],S=n.apply(void 0,A);return i(e)&&a(S,A),S.placeholder=r,o(S,e,t)}var i=e("./_isLaziable"),a=e("./_setData"),o=e("./_setWrapToString"),s=1,c=2,l=4,u=8,d=32,p=64;t.exports=r},{"./_isLaziable":433,"./_setData":466,"./_setWrapToString":469}],393:[function(e,t,n){var r=e("./_Set"),i=e("./noop"),a=e("./_setToArray"),o=r&&1/a(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;t.exports=o},{"./_Set":279,"./_setToArray":467,"./noop":532}],394:[function(e,t,n){function r(e,t,n,r,_,w,A,S){var k=t&g;if(!k&&"function"!=typeof e)throw new TypeError(h);var $=r?r.length:0;if($||(t&=~(y|x),r=_=void 0),A=void 0===A?A:M(f(A),0),S=void 0===S?S:f(S),$-=_?_.length:0,t&x){var T=r,C=_;r=_=void 0}var E=k?void 0:l(e),O=[e,t,n,r,_,T,C,w,A,S];if(E&&u(O,E),e=O[0],t=O[1],n=O[2],r=O[3],_=O[4],S=O[9]=void 0===O[9]?k?0:e.length:M(O[9]-$,0),!S&&t&(v|b)&&(t&=~(v|b)),t&&t!=m)z=t==v||t==b?o(e,t,S):t!=y&&t!=(m|y)||_.length?s.apply(void 0,O):c(e,t,n,r);else var z=a(e,t,n);return p((E?i:d)(z,O),e,t)}var i=e("./_baseSetData"),a=e("./_createBind"),o=e("./_createCurry"),s=e("./_createHybrid"),c=e("./_createPartial"),l=e("./_getData"),u=e("./_mergeData"),d=e("./_setData"),p=e("./_setWrapToString"),f=e("./toInteger"),h="Expected a function",m=1,g=2,v=8,b=16,y=32,x=64,M=Math.max;t.exports=r},{"./_baseSetData":348,"./_createBind":384,"./_createCurry":387,"./_createHybrid":389,"./_createPartial":391,"./_getData":404,"./_mergeData":450,"./_setData":466,"./_setWrapToString":469,"./toInteger":553}],395:[function(e,t,n){var r=e("./_getNative"),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();t.exports=i},{"./_getNative":409}],396:[function(e,t,n){function r(e,t,n,r,l,u){var d=n&s,p=e.length,f=t.length;if(p!=f&&!(d&&f>p))return!1;var h=u.get(e);if(h&&u.get(t))return h==t;var m=-1,g=!0,v=n&c?new i:void 0;for(u.set(e,t),u.set(t,e);++m<p;){var b=e[m],y=t[m];if(r)var x=d?r(y,b,m,t,e,u):r(b,y,m,e,t,u);if(void 0!==x){if(x)continue;g=!1;break}if(v){if(!a(t,function(e,t){if(!o(v,t)&&(b===e||l(b,e,n,r,u)))return v.push(t)})){g=!1;break}}else if(b!==y&&!l(b,y,n,r,u)){g=!1;break}}return u.delete(e),u.delete(t),g}var i=e("./_SetCache"),a=e("./_arraySome"),o=e("./_cacheHas"),s=1,c=2;t.exports=r},{"./_SetCache":280,"./_arraySome":296,"./_cacheHas":360}],397:[function(e,t,n){function r(e,t,n,r,i,w,S){switch(n){case _:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case M:return!(e.byteLength!=t.byteLength||!w(new a(e),new a(t)));case p:case f:case g:return o(+e,+t);case h:return e.name==t.name&&e.message==t.message;case v:case y:return e==t+"";case m:var k=c;case b:var $=r&u;if(k||(k=l),e.size!=t.size&&!$)return!1;var T=S.get(e);if(T)return T==t;r|=d,S.set(e,t);var C=s(k(e),k(t),r,i,w,S);return S.delete(e),C;case x:if(A)return A.call(e)==A.call(t)}return!1}var i=e("./_Symbol"),a=e("./_Uint8Array"),o=e("./eq"),s=e("./_equalArrays"),c=e("./_mapToArray"),l=e("./_setToArray"),u=1,d=2,p="[object Boolean]",f="[object Date]",h="[object Error]",m="[object Map]",g="[object Number]",v="[object RegExp]",b="[object Set]",y="[object String]",x="[object Symbol]",M="[object ArrayBuffer]",_="[object DataView]",w=i?i.prototype:void 0,A=w?w.valueOf:void 0;t.exports=r},{"./_Symbol":282,"./_Uint8Array":283,"./_equalArrays":396,"./_mapToArray":447,"./_setToArray":467,"./eq":493}],398:[function(e,t,n){function r(e,t,n,r,o,c){var l=n&a,u=i(e),d=u.length;if(d!=i(t).length&&!l)return!1;for(var p=d;p--;){var f=u[p];if(!(l?f in t:s.call(t,f)))return!1}var h=c.get(e);if(h&&c.get(t))return h==t;var m=!0;c.set(e,t),c.set(t,e);for(var g=l;++p<d;){f=u[p];var v=e[f],b=t[f];if(r)var y=l?r(b,v,f,t,e,c):r(v,b,f,e,t,c);if(!(void 0===y?v===b||o(v,b,n,r,c):y)){m=!1;break}g||(g="constructor"==f)}if(m&&!g){var x=e.constructor,M=t.constructor;x!=M&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof M&&M instanceof M)&&(m=!1)}return c.delete(e),c.delete(t),m}var i=e("./_getAllKeys"),a=1,o=Object.prototype,s=o.hasOwnProperty;t.exports=r},{"./_getAllKeys":402}],399:[function(e,t,n){var r=e("./_basePropertyOf"),i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},a=r(i);t.exports=a},{"./_basePropertyOf":343}],400:[function(e,t,n){function r(e){return o(a(e,void 0,i),e+"")}var i=e("./flatten"),a=e("./_overRest"),o=e("./_setToString");t.exports=r},{"./_overRest":458,"./_setToString":468,"./flatten":500}],401:[function(e,t,n){(function(e){var n="object"==(void 0===e?"undefined":_typeof2(e))&&e&&e.Object===Object&&e;t.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],402:[function(e,t,n){function r(e){return i(e,o,a)}var i=e("./_baseGetAllKeys"),a=e("./_getSymbols"),o=e("./keys");t.exports=r},{"./_baseGetAllKeys":316,"./_getSymbols":412,"./keys":524}],403:[function(e,t,n){function r(e){return i(e,o,a)}var i=e("./_baseGetAllKeys"),a=e("./_getSymbolsIn"),o=e("./keysIn");t.exports=r},{"./_baseGetAllKeys":316,"./_getSymbolsIn":413,"./keysIn":525}],404:[function(e,t,n){var r=e("./_metaMap"),i=e("./noop"),a=r?function(e){return r.get(e)}:i;t.exports=a},{"./_metaMap":451,"./noop":532}],405:[function(e,t,n){function r(e){for(var t=e.name+"",n=i[t],r=o.call(i,t)?n.length:0;r--;){var a=n[r],s=a.func;if(null==s||s==e)return a.name}return t}var i=e("./_realNames"),a=Object.prototype,o=a.hasOwnProperty;t.exports=r},{"./_realNames":460}],406:[function(e,t,n){function r(e){return e.placeholder}t.exports=r},{}],407:[function(e,t,n){function r(e,t){var n=e.__data__;return i(t)?n["string"==typeof t?"string":"hash"]:n.map}var i=e("./_isKeyable");t.exports=r},{"./_isKeyable":432}],408:[function(e,t,n){function r(e){for(var t=a(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,i(o)]}return t}var i=e("./_isStrictComparable"),a=e("./keys");t.exports=r},{"./_isStrictComparable":436,"./keys":524}],409:[function(e,t,n){function r(e,t){var n=a(e,t);return i(n)?n:void 0}var i=e("./_baseIsNative"),a=e("./_getValue");t.exports=r},{"./_baseIsNative":328,"./_getValue":415}],410:[function(e,t,n){var r=e("./_overArg"),i=r(Object.getPrototypeOf,Object);t.exports=i},{"./_overArg":457}],411:[function(e,t,n){function r(e){var t=o.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var i=s.call(e);return r&&(t?e[c]=n:delete e[c]),i}var i=e("./_Symbol"),a=Object.prototype,o=a.hasOwnProperty,s=a.toString,c=i?i.toStringTag:void 0;t.exports=r},{"./_Symbol":282}],412:[function(e,t,n){var r=e("./_arrayFilter"),i=e("./stubArray"),a=Object.prototype,o=a.propertyIsEnumerable,s=Object.getOwnPropertySymbols,c=s?function(e){return null==e?[]:(e=Object(e),r(s(e),function(t){return o.call(e,t)}))}:i;t.exports=c},{"./_arrayFilter":289,"./stubArray":546}],413:[function(e,t,n){var r=e("./_arrayPush"),i=e("./_getPrototype"),a=e("./_getSymbols"),o=e("./stubArray"),s=Object.getOwnPropertySymbols,c=s?function(e){for(var t=[];e;)r(t,a(e)),e=i(e);return t}:o;t.exports=c},{"./_arrayPush":294,"./_getPrototype":410,"./_getSymbols":412,"./stubArray":546}],414:[function(e,t,n){var r=e("./_DataView"),i=e("./_Map"),a=e("./_Promise"),o=e("./_Set"),s=e("./_WeakMap"),c=e("./_baseGetTag"),l=e("./_toSource"),u=l(r),d=l(i),p=l(a),f=l(o),h=l(s),m=c;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=m(new i)||a&&"[object Promise]"!=m(a.resolve())||o&&"[object Set]"!=m(new o)||s&&"[object WeakMap]"!=m(new s))&&(m=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case u:return"[object DataView]";case d:return"[object Map]";case p:return"[object Promise]";case f:return"[object Set]";case h:return"[object WeakMap]"}return t}),t.exports=m},{"./_DataView":271,"./_Map":276,"./_Promise":278,"./_Set":279,"./_WeakMap":284,"./_baseGetTag":317,"./_toSource":480}],415:[function(e,t,n){function r(e,t){return null==e?void 0:e[t]}t.exports=r},{}],416:[function(e,t,n){function r(e){var t=e.match(i);return t?t[1].split(a):[]}var i=/\{\n\/\* \[wrapped with (.+)\] \*/,a=/,? & /;t.exports=r},{}],417:[function(e,t,n){function r(e,t,n){t=i(t,e);for(var r=-1,u=t.length,d=!1;++r<u;){var p=l(t[r]);if(!(d=null!=e&&n(e,p)))break;e=e[p]}return d||++r!=u?d:!!(u=null==e?0:e.length)&&c(u)&&s(p,u)&&(o(e)||a(e))}var i=e("./_castPath"),a=e("./isArguments"),o=e("./isArray"),s=e("./_isIndex"),c=e("./isLength"),l=e("./_toKey");t.exports=r},{"./_castPath":362,"./_isIndex":429,"./_toKey":479,"./isArguments":508,"./isArray":509,"./isLength":515}],418:[function(e,t,n){function r(e){return i.test(e)}var i=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=r},{}],419:[function(e,t,n){function r(){this.__data__=i?i(null):{},this.size=0}var i=e("./_nativeCreate");t.exports=r},{"./_nativeCreate":452}],420:[function(e,t,n){function r(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}t.exports=r},{}],421:[function(e,t,n){function r(e){var t=this.__data__;if(i){var n=t[e];return n===a?void 0:n}return s.call(t,e)?t[e]:void 0}var i=e("./_nativeCreate"),a="__lodash_hash_undefined__",o=Object.prototype,s=o.hasOwnProperty;t.exports=r},{"./_nativeCreate":452}],422:[function(e,t,n){function r(e){var t=this.__data__;return i?void 0!==t[e]:o.call(t,e)}var i=e("./_nativeCreate"),a=Object.prototype,o=a.hasOwnProperty;t.exports=r},{"./_nativeCreate":452}],423:[function(e,t,n){function r(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?a:t,this}var i=e("./_nativeCreate"),a="__lodash_hash_undefined__";t.exports=r},{"./_nativeCreate":452}],424:[function(e,t,n){function r(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&a.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var i=Object.prototype,a=i.hasOwnProperty;t.exports=r},{}],425:[function(e,t,n){function r(e,t,n){var r=e.constructor;switch(t){case v:return i(e);case l:case u:return new r(+e);case b:return a(e,n);case y:case x:case M:case _:case w:case A:case S:case k:case $:return c(e,n);case d:return new r;case p:case m:return new r(e);case f:return o(e);case h:return new r;case g:return s(e)}}var i=e("./_cloneArrayBuffer"),a=e("./_cloneDataView"),o=e("./_cloneRegExp"),s=e("./_cloneSymbol"),c=e("./_cloneTypedArray"),l="[object Boolean]",u="[object Date]",d="[object Map]",p="[object Number]",f="[object RegExp]",h="[object Set]",m="[object String]",g="[object Symbol]",v="[object ArrayBuffer]",b="[object DataView]",y="[object Float32Array]",x="[object Float64Array]",M="[object Int8Array]",_="[object Int16Array]",w="[object Int32Array]",A="[object Uint8Array]",S="[object Uint8ClampedArray]",k="[object Uint16Array]",$="[object Uint32Array]";t.exports=r},{"./_cloneArrayBuffer":364,"./_cloneDataView":366,"./_cloneRegExp":367,"./_cloneSymbol":368,"./_cloneTypedArray":369}],426:[function(e,t,n){function r(e){return"function"!=typeof e.constructor||o(e)?{}:i(a(e))}var i=e("./_baseCreate"),a=e("./_getPrototype"),o=e("./_isPrototype");t.exports=r},{"./_baseCreate":305,"./_getPrototype":410,"./_isPrototype":435}],427:[function(e,t,n){function r(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(i,"{\n/* [wrapped with "+t+"] */\n")}var i=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;t.exports=r},{}],428:[function(e,t,n){function r(e){return o(e)||a(e)||!!(s&&e&&e[s])}var i=e("./_Symbol"),a=e("./isArguments"),o=e("./isArray"),s=i?i.isConcatSpreadable:void 0;t.exports=r},{"./_Symbol":282,"./isArguments":508,"./isArray":509}],429:[function(e,t,n){function r(e,t){var n=void 0===e?"undefined":_typeof2(e);return!!(t=null==t?i:t)&&("number"==n||"symbol"!=n&&a.test(e))&&e>-1&&e%1==0&&e<t}var i=9007199254740991,a=/^(?:0|[1-9]\d*)$/;t.exports=r},{}],430:[function(e,t,n){function r(e,t,n){if(!s(n))return!1;var r=void 0===t?"undefined":_typeof2(t);return!!("number"==r?a(n)&&o(t,n.length):"string"==r&&t in n)&&i(n[t],e)}var i=e("./eq"),a=e("./isArrayLike"),o=e("./_isIndex"),s=e("./isObject");t.exports=r},{"./_isIndex":429,"./eq":493,"./isArrayLike":510,"./isObject":517}],431:[function(e,t,n){function r(e,t){if(i(e))return!1;var n=void 0===e?"undefined":_typeof2(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!a(e))||(s.test(e)||!o.test(e)||null!=t&&e in Object(t))}var i=e("./isArray"),a=e("./isSymbol"),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=r},{"./isArray":509,"./isSymbol":521}],432:[function(e,t,n){function r(e){var t=void 0===e?"undefined":_typeof2(e)
54;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}t.exports=r},{}],433:[function(e,t,n){function r(e){var t=o(e),n=s[t];if("function"!=typeof n||!(t in i.prototype))return!1;if(e===n)return!0;var r=a(n);return!!r&&e===r[0]}var i=e("./_LazyWrapper"),a=e("./_getData"),o=e("./_getFuncName"),s=e("./wrapperLodash");t.exports=r},{"./_LazyWrapper":273,"./_getData":404,"./_getFuncName":405,"./wrapperLodash":560}],434:[function(e,t,n){function r(e){return!!a&&a in e}var i=e("./_coreJsData"),a=function(){var e=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();t.exports=r},{"./_coreJsData":378}],435:[function(e,t,n){function r(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||i)}var i=Object.prototype;t.exports=r},{}],436:[function(e,t,n){function r(e){return e===e&&!i(e)}var i=e("./isObject");t.exports=r},{"./isObject":517}],437:[function(e,t,n){function r(){this.__data__=[],this.size=0}t.exports=r},{}],438:[function(e,t,n){function r(e){var t=this.__data__,n=i(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}var i=e("./_assocIndexOf"),a=Array.prototype,o=a.splice;t.exports=r},{"./_assocIndexOf":299}],439:[function(e,t,n){function r(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]}var i=e("./_assocIndexOf");t.exports=r},{"./_assocIndexOf":299}],440:[function(e,t,n){function r(e){return i(this.__data__,e)>-1}var i=e("./_assocIndexOf");t.exports=r},{"./_assocIndexOf":299}],441:[function(e,t,n){function r(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var i=e("./_assocIndexOf");t.exports=r},{"./_assocIndexOf":299}],442:[function(e,t,n){function r(){this.size=0,this.__data__={hash:new i,map:new(o||a),string:new i}}var i=e("./_Hash"),a=e("./_ListCache"),o=e("./_Map");t.exports=r},{"./_Hash":272,"./_ListCache":274,"./_Map":276}],443:[function(e,t,n){function r(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}var i=e("./_getMapData");t.exports=r},{"./_getMapData":407}],444:[function(e,t,n){function r(e){return i(this,e).get(e)}var i=e("./_getMapData");t.exports=r},{"./_getMapData":407}],445:[function(e,t,n){function r(e){return i(this,e).has(e)}var i=e("./_getMapData");t.exports=r},{"./_getMapData":407}],446:[function(e,t,n){function r(e,t){var n=i(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var i=e("./_getMapData");t.exports=r},{"./_getMapData":407}],447:[function(e,t,n){function r(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}t.exports=r},{}],448:[function(e,t,n){function r(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}t.exports=r},{}],449:[function(e,t,n){function r(e){var t=i(e,function(e){return n.size===a&&n.clear(),e}),n=t.cache;return t}var i=e("./memoize"),a=500;t.exports=r},{"./memoize":530}],450:[function(e,t,n){function r(e,t){var n=e[1],r=t[1],m=n|r,g=m<(c|l|p),v=r==p&&n==d||r==p&&n==f&&e[7].length<=t[8]||r==(p|f)&&t[7].length<=t[8]&&n==d;if(!g&&!v)return e;r&c&&(e[2]=t[2],m|=n&c?0:u);var b=t[3];if(b){var y=e[3];e[3]=y?i(y,b,t[4]):b,e[4]=y?o(e[3],s):t[4]}return b=t[5],b&&(y=e[5],e[5]=y?a(y,b,t[6]):b,e[6]=y?o(e[5],s):t[6]),b=t[7],b&&(e[7]=b),r&p&&(e[8]=null==e[8]?t[8]:h(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=m,e}var i=e("./_composeArgs"),a=e("./_composeArgsRight"),o=e("./_replaceHolders"),s="__lodash_placeholder__",c=1,l=2,u=4,d=8,p=128,f=256,h=Math.min;t.exports=r},{"./_composeArgs":372,"./_composeArgsRight":373,"./_replaceHolders":462}],451:[function(e,t,n){var r=e("./_WeakMap"),i=r&&new r;t.exports=i},{"./_WeakMap":284}],452:[function(e,t,n){var r=e("./_getNative"),i=r(Object,"create");t.exports=i},{"./_getNative":409}],453:[function(e,t,n){var r=e("./_overArg"),i=r(Object.keys,Object);t.exports=i},{"./_overArg":457}],454:[function(e,t,n){function r(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}t.exports=r},{}],455:[function(e,t,n){var r=e("./_freeGlobal"),i="object"==(void 0===n?"undefined":_typeof2(n))&&n&&!n.nodeType&&n,a=i&&"object"==(void 0===t?"undefined":_typeof2(t))&&t&&!t.nodeType&&t,o=a&&a.exports===i,s=o&&r.process,c=function(){try{return s&&s.binding&&s.binding("util")}catch(e){}}();t.exports=c},{"./_freeGlobal":401}],456:[function(e,t,n){function r(e){return a.call(e)}var i=Object.prototype,a=i.toString;t.exports=r},{}],457:[function(e,t,n){function r(e,t){return function(n){return e(t(n))}}t.exports=r},{}],458:[function(e,t,n){function r(e,t,n){return t=a(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,s=a(r.length-t,0),c=Array(s);++o<s;)c[o]=r[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=r[o];return l[t]=n(c),i(e,this,l)}}var i=e("./_apply"),a=Math.max;t.exports=r},{"./_apply":285}],459:[function(e,t,n){function r(e,t){return t.length<2?e:i(e,a(t,0,-1))}var i=e("./_baseGet"),a=e("./_baseSlice");t.exports=r},{"./_baseGet":315,"./_baseSlice":350}],460:[function(e,t,n){var r={};t.exports=r},{}],461:[function(e,t,n){function r(e,t){for(var n=e.length,r=o(t.length,n),s=i(e);r--;){var c=t[r];e[r]=a(c,n)?s[c]:void 0}return e}var i=e("./_copyArray"),a=e("./_isIndex"),o=Math.min;t.exports=r},{"./_copyArray":374,"./_isIndex":429}],462:[function(e,t,n){function r(e,t){for(var n=-1,r=e.length,a=0,o=[];++n<r;){var s=e[n];s!==t&&s!==i||(e[n]=i,o[a++]=n)}return o}var i="__lodash_placeholder__";t.exports=r},{}],463:[function(e,t,n){var r=e("./_freeGlobal"),i="object"==("undefined"==typeof self?"undefined":_typeof2(self))&&self&&self.Object===Object&&self,a=r||i||Function("return this")();t.exports=a},{"./_freeGlobal":401}],464:[function(e,t,n){function r(e){return this.__data__.set(e,i),this}var i="__lodash_hash_undefined__";t.exports=r},{}],465:[function(e,t,n){function r(e){return this.__data__.has(e)}t.exports=r},{}],466:[function(e,t,n){var r=e("./_baseSetData"),i=e("./_shortOut"),a=i(r);t.exports=a},{"./_baseSetData":348,"./_shortOut":470}],467:[function(e,t,n){function r(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}t.exports=r},{}],468:[function(e,t,n){var r=e("./_baseSetToString"),i=e("./_shortOut"),a=i(r);t.exports=a},{"./_baseSetToString":349,"./_shortOut":470}],469:[function(e,t,n){function r(e,t,n){var r=t+"";return o(e,a(r,s(i(r),n)))}var i=e("./_getWrapDetails"),a=e("./_insertWrapDetails"),o=e("./_setToString"),s=e("./_updateWrapDetails");t.exports=r},{"./_getWrapDetails":416,"./_insertWrapDetails":427,"./_setToString":468,"./_updateWrapDetails":482}],470:[function(e,t,n){function r(e){var t=0,n=0;return function(){var r=o(),s=a-(r-n);if(n=r,s>0){if(++t>=i)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var i=800,a=16,o=Date.now;t.exports=r},{}],471:[function(e,t,n){function r(){this.__data__=new i,this.size=0}var i=e("./_ListCache");t.exports=r},{"./_ListCache":274}],472:[function(e,t,n){function r(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}t.exports=r},{}],473:[function(e,t,n){function r(e){return this.__data__.get(e)}t.exports=r},{}],474:[function(e,t,n){function r(e){return this.__data__.has(e)}t.exports=r},{}],475:[function(e,t,n){function r(e,t){var n=this.__data__;if(n instanceof i){var r=n.__data__;if(!a||r.length<s-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(r)}return n.set(e,t),this.size=n.size,this}var i=e("./_ListCache"),a=e("./_Map"),o=e("./_MapCache"),s=200;t.exports=r},{"./_ListCache":274,"./_Map":276,"./_MapCache":277}],476:[function(e,t,n){function r(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}t.exports=r},{}],477:[function(e,t,n){function r(e){return a(e)?o(e):i(e)}var i=e("./_asciiToArray"),a=e("./_hasUnicode"),o=e("./_unicodeToArray");t.exports=r},{"./_asciiToArray":297,"./_hasUnicode":418,"./_unicodeToArray":481}],478:[function(e,t,n){var r=e("./_memoizeCapped"),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,function(e,n,r,i){t.push(r?i.replace(a,"$1"):n||e)}),t});t.exports=o},{"./_memoizeCapped":449}],479:[function(e,t,n){function r(e){if("string"==typeof e||i(e))return e;var t=e+"";return"0"==t&&1/e==-a?"-0":t}var i=e("./isSymbol"),a=1/0;t.exports=r},{"./isSymbol":521}],480:[function(e,t,n){function r(e){if(null!=e){try{return a.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var i=Function.prototype,a=i.toString;t.exports=r},{}],481:[function(e,t,n){function r(e){return e.match(p)||[]}var i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",a="\\ud83c[\\udffb-\\udfff]",o="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",l="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",o,s].join("|")+")[\\ufe0e\\ufe0f]?"+c+")*",u="[\\ufe0e\\ufe0f]?"+c+l,d="(?:"+["[^\\ud800-\\udfff]"+i+"?",i,o,s,"[\\ud800-\\udfff]"].join("|")+")",p=RegExp(a+"(?="+a+")|"+d+u,"g");t.exports=r},{}],482:[function(e,t,n){function r(e,t){return i(o,function(n){var r="_."+n[0];t&n[1]&&!a(e,r)&&e.push(r)}),e.sort()}var i=e("./_arrayEach"),a=e("./_arrayIncludes"),o=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];t.exports=r},{"./_arrayEach":287,"./_arrayIncludes":290}],483:[function(e,t,n){function r(e){if(e instanceof i)return e.clone();var t=new a(e.__wrapped__,e.__chain__);return t.__actions__=o(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var i=e("./_LazyWrapper"),a=e("./_LodashWrapper"),o=e("./_copyArray");t.exports=r},{"./_LazyWrapper":273,"./_LodashWrapper":275,"./_copyArray":374}],484:[function(e,t,n){var r=e("./_assignValue"),i=e("./_copyObject"),a=e("./_createAssigner"),o=e("./isArrayLike"),s=e("./_isPrototype"),c=e("./keys"),l=Object.prototype,u=l.hasOwnProperty,d=a(function(e,t){if(s(t)||o(t))return void i(t,c(t),e);for(var n in t)u.call(t,n)&&r(e,n,t[n])});t.exports=d},{"./_assignValue":298,"./_copyObject":375,"./_createAssigner":381,"./_isPrototype":435,"./isArrayLike":510,"./keys":524}],485:[function(e,t,n){function r(e){return a(i(e).toLowerCase())}var i=e("./toString"),a=e("./upperFirst");t.exports=r},{"./toString":555,"./upperFirst":558}],486:[function(e,t,n){function r(e){return i(e,a)}var i=e("./_baseClone"),a=4;t.exports=r},{"./_baseClone":304}],487:[function(e,t,n){function r(e){return i(e,a|o)}var i=e("./_baseClone"),a=1,o=4;t.exports=r},{"./_baseClone":304}],488:[function(e,t,n){function r(e){return function(){return e}}t.exports=r},{}],489:[function(e,t,n){var r=e("./_baseAssignValue"),i=e("./_createAggregator"),a=Object.prototype,o=a.hasOwnProperty,s=i(function(e,t,n){o.call(e,n)?++e[n]:r(e,n,1)});t.exports=s},{"./_baseAssignValue":303,"./_createAggregator":380}],490:[function(e,t,n){function r(e,t,n){function r(t){var n=b,r=y;return b=y=void 0,A=t,M=e.apply(r,n)}function u(e){return A=e,_=setTimeout(f,t),S?r(e):M}function d(e){var n=e-w,r=e-A,i=t-n;return k?l(i,x-r):i}function p(e){var n=e-w,r=e-A;return void 0===w||n>=t||n<0||k&&r>=x}function f(){var e=a();if(p(e))return h(e);_=setTimeout(f,d(e))}function h(e){return _=void 0,$&&b?r(e):(b=y=void 0,M)}function m(){void 0!==_&&clearTimeout(_),A=0,b=w=y=_=void 0}function g(){return void 0===_?M:h(a())}function v(){var e=a(),n=p(e);if(b=arguments,y=this,w=e,n){if(void 0===_)return u(w);if(k)return _=setTimeout(f,t),r(w)}return void 0===_&&(_=setTimeout(f,t)),M}var b,y,x,M,_,w,A=0,S=!1,k=!1,$=!0;if("function"!=typeof e)throw new TypeError(s);return t=o(t)||0,i(n)&&(S=!!n.leading,k="maxWait"in n,x=k?c(o(n.maxWait)||0,t):x,$="trailing"in n?!!n.trailing:$),v.cancel=m,v.flush=g,v}var i=e("./isObject"),a=e("./now"),o=e("./toNumber"),s="Expected a function",c=Math.max,l=Math.min;t.exports=r},{"./isObject":517,"./now":533,"./toNumber":554}],491:[function(e,t,n){var r=e("./_baseDifference"),i=e("./_baseFlatten"),a=e("./_baseRest"),o=e("./isArrayLikeObject"),s=a(function(e,t){return o(e)?r(e,i(t,1,o,!0)):[]});t.exports=s},{"./_baseDifference":306,"./_baseFlatten":312,"./_baseRest":346,"./isArrayLikeObject":511}],492:[function(e,t,n){var r=e("./_baseDifference"),i=e("./_baseFlatten"),a=e("./_baseRest"),o=e("./isArrayLikeObject"),s=e("./last"),c=a(function(e,t){var n=s(t);return o(n)&&(n=void 0),o(e)?r(e,i(t,1,o,!0),void 0,n):[]});t.exports=c},{"./_baseDifference":306,"./_baseFlatten":312,"./_baseRest":346,"./isArrayLikeObject":511,"./last":526}],493:[function(e,t,n){function r(e,t){return e===t||e!==e&&t!==t}t.exports=r},{}],494:[function(e,t,n){function r(e){return e=a(e),e&&s.test(e)?e.replace(o,i):e}var i=e("./_escapeHtmlChar"),a=e("./toString"),o=/[&<>"']/g,s=RegExp(o.source);t.exports=r},{"./_escapeHtmlChar":399,"./toString":555}],495:[function(e,t,n){function r(e,t,n){var r=s(e)?i:a;return n&&c(e,t,n)&&(t=void 0),r(e,o(t,3))}var i=e("./_arrayEvery"),a=e("./_baseEvery"),o=e("./_baseIteratee"),s=e("./isArray"),c=e("./_isIterateeCall");t.exports=r},{"./_arrayEvery":288,"./_baseEvery":308,"./_baseIteratee":331,"./_isIterateeCall":430,"./isArray":509}],496:[function(e,t,n){function r(e,t){return(s(e)?i:a)(e,o(t,3))}var i=e("./_arrayFilter"),a=e("./_baseFilter"),o=e("./_baseIteratee"),s=e("./isArray");t.exports=r},{"./_arrayFilter":289,"./_baseFilter":310,"./_baseIteratee":331,"./isArray":509}],497:[function(e,t,n){var r=e("./_createFind"),i=e("./findIndex"),a=r(i);t.exports=a},{"./_createFind":388,"./findIndex":498}],498:[function(e,t,n){function r(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var c=null==n?0:o(n);return c<0&&(c=s(r+c,0)),i(e,a(t,3),c)}var i=e("./_baseFindIndex"),a=e("./_baseIteratee"),o=e("./toInteger"),s=Math.max;t.exports=r},{"./_baseFindIndex":311,"./_baseIteratee":331,"./toInteger":553}],499:[function(e,t,n){function r(e,t){return i(a(e,t),1)}var i=e("./_baseFlatten"),a=e("./map");t.exports=r},{"./_baseFlatten":312,"./map":527}],500:[function(e,t,n){function r(e){return(null==e?0:e.length)?i(e,1):[]}var i=e("./_baseFlatten");t.exports=r},{"./_baseFlatten":312}],501:[function(e,t,n){function r(e,t){return e&&i(e,a(t))}var i=e("./_baseForOwn"),a=e("./_castFunction");t.exports=r},{"./_baseForOwn":314,"./_castFunction":361}],502:[function(e,t,n){function r(e,t,n){var r=null==e?void 0:i(e,t);return void 0===r?n:r}var i=e("./_baseGet");t.exports=r},{"./_baseGet":315}],503:[function(e,t,n){var r=e("./_baseAssignValue"),i=e("./_createAggregator"),a=Object.prototype,o=a.hasOwnProperty,s=i(function(e,t,n){o.call(e,n)?e[n].push(t):r(e,n,[t])});t.exports=s},{"./_baseAssignValue":303,"./_createAggregator":380}],504:[function(e,t,n){function r(e,t){return null!=e&&a(e,t,i)}var i=e("./_baseHas"),a=e("./_hasPath");t.exports=r},{"./_baseHas":319,"./_hasPath":417}],505:[function(e,t,n){function r(e,t){return null!=e&&a(e,t,i)}var i=e("./_baseHasIn"),a=e("./_hasPath");t.exports=r},{"./_baseHasIn":320,"./_hasPath":417}],506:[function(e,t,n){function r(e){return e}t.exports=r},{}],507:[function(e,t,n){function r(e,t,n,r){e=a(e)?e:c(e),n=n&&!r?s(n):0;var u=e.length;return n<0&&(n=l(u+n,0)),o(e)?n<=u&&e.indexOf(t,n)>-1:!!u&&i(e,t,n)>-1}var i=e("./_baseIndexOf"),a=e("./isArrayLike"),o=e("./isString"),s=e("./toInteger"),c=e("./values"),l=Math.max;t.exports=r},{"./_baseIndexOf":321,"./isArrayLike":510,"./isString":520,"./toInteger":553,"./values":559}],508:[function(e,t,n){var r=e("./_baseIsArguments"),i=e("./isObjectLike"),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return i(e)&&o.call(e,"callee")&&!s.call(e,"callee")};t.exports=c},{"./_baseIsArguments":322,"./isObjectLike":518}],509:[function(e,t,n){var r=Array.isArray;t.exports=r},{}],510:[function(e,t,n){function r(e){return null!=e&&a(e.length)&&!i(e)}var i=e("./isFunction"),a=e("./isLength");t.exports=r},{"./isFunction":514,"./isLength":515}],511:[function(e,t,n){function r(e){return a(e)&&i(e)}var i=e("./isArrayLike"),a=e("./isObjectLike");t.exports=r},{"./isArrayLike":510,"./isObjectLike":518}],512:[function(e,t,n){var r=e("./_root"),i=e("./stubFalse"),a="object"==(void 0===n?"undefined":_typeof2(n))&&n&&!n.nodeType&&n,o=a&&"object"==(void 0===t?"undefined":_typeof2(t))&&t&&!t.nodeType&&t,s=o&&o.exports===a,c=s?r.Buffer:void 0,l=c?c.isBuffer:void 0,u=l||i;t.exports=u},{"./_root":463,"./stubFalse":547}],513:[function(e,t,n){function r(e){if(null==e)return!0;if(c(e)&&(s(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||d(e)||o(e)))return!e.length;var t=a(e);if(t==p||t==f)return!e.size;if(u(e))return!i(e).length;for(var n in e)if(m.call(e,n))return!1;return!0}var i=e("./_baseKeys"),a=e("./_getTag"),o=e("./isArguments"),s=e("./isArray"),c=e("./isArrayLike"),l=e("./isBuffer"),u=e("./_isPrototype"),d=e("./isTypedArray"),p="[object Map]",f="[object Set]",h=Object.prototype,m=h.hasOwnProperty;t.exports=r},{"./_baseKeys":332,"./_getTag":414,"./_isPrototype":435,"./isArguments":508,"./isArray":509,"./isArrayLike":510,"./isBuffer":512,"./isTypedArray":522}],514:[function(e,t,n){function r(e){if(!a(e))return!1;var t=i(e);return t==s||t==c||t==o||t==l}var i=e("./_baseGetTag"),a=e("./isObject"),o="[object AsyncFunction]",s="[object Function]",c="[object GeneratorFunction]",l="[object Proxy]";t.exports=r},{"./_baseGetTag":317,"./isObject":517}],515:[function(e,t,n){function r(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}var i=9007199254740991;t.exports=r},{}],516:[function(e,t,n){var r=e("./_baseIsMap"),i=e("./_baseUnary"),a=e("./_nodeUtil"),o=a&&a.isMap,s=o?i(o):r;t.exports=s},{"./_baseIsMap":325,"./_baseUnary":356,"./_nodeUtil":455}],517:[function(e,t,n){function r(e){var t=void 0===e?"undefined":_typeof2(e);return null!=e&&("object"==t||"function"==t)}t.exports=r},{}],518:[function(e,t,n){function r(e){return null!=e&&"object"==(void 0===e?"undefined":_typeof2(e))}t.exports=r},{}],519:[function(e,t,n){var r=e("./_baseIsSet"),i=e("./_baseUnary"),a=e("./_nodeUtil"),o=a&&a.isSet,s=o?i(o):r;t.exports=s},{"./_baseIsSet":329,"./_baseUnary":356,"./_nodeUtil":455}],520:[function(e,t,n){function r(e){return"string"==typeof e||!a(e)&&o(e)&&i(e)==s}var i=e("./_baseGetTag"),a=e("./isArray"),o=e("./isObjectLike"),s="[object String]";t.exports=r},{"./_baseGetTag":317,"./isArray":509,"./isObjectLike":518}],521:[function(e,t,n){function r(e){return"symbol"==(void 0===e?"undefined":_typeof2(e))||a(e)&&i(e)==o}var i=e("./_baseGetTag"),a=e("./isObjectLike"),o="[object Symbol]";t.exports=r},{"./_baseGetTag":317,"./isObjectLike":518}],522:[function(e,t,n){var r=e("./_baseIsTypedArray"),i=e("./_baseUnary"),a=e("./_nodeUtil"),o=a&&a.isTypedArray,s=o?i(o):r;t.exports=s},{"./_baseIsTypedArray":330,"./_baseUnary":356,"./_nodeUtil":455}],523:[function(e,t,n){var r=e("./_baseAssignValue"),i=e("./_createAggregator"),a=i(function(e,t,n){r(e,n,t)});t.exports=a},{"./_baseAssignValue":303,"./_createAggregator":380}],524:[function(e,t,n){function r(e){return o(e)?i(e):a(e)}var i=e("./_arrayLikeKeys"),a=e("./_baseKeys"),o=e("./isArrayLike");t.exports=r},{"./_arrayLikeKeys":292,"./_baseKeys":332,"./isArrayLike":510}],525:[function(e,t,n){function r(e){return o(e)?i(e,!0):a(e)}var i=e("./_arrayLikeKeys"),a=e("./_baseKeysIn"),o=e("./isArrayLike");t.exports=r},{"./_arrayLikeKeys":292,"./_baseKeysIn":333,"./isArrayLike":510}],526:[function(e,t,n){function r(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}t.exports=r},{}],527:[function(e,t,n){function r(e,t){return(s(e)?i:o)(e,a(t,3))}var i=e("./_arrayMap"),a=e("./_baseIteratee"),o=e("./_baseMap"),s=e("./isArray");t.exports=r},{"./_arrayMap":293,"./_baseIteratee":331,"./_baseMap":335,"./isArray":509}],528:[function(e,t,n){function r(e,t){var n={};return t=o(t,3),a(e,function(e,r,a){i(n,r,t(e,r,a))}),n}var i=e("./_baseAssignValue"),a=e("./_baseForOwn"),o=e("./_baseIteratee");t.exports=r},{"./_baseAssignValue":303,"./_baseForOwn":314,"./_baseIteratee":331}],529:[function(e,t,n){function r(e,t){return e&&e.length?i(e,o(t,2),a):void 0}var i=e("./_baseExtremum"),a=e("./_baseGt"),o=e("./_baseIteratee");t.exports=r},{"./_baseExtremum":309,"./_baseGt":318,"./_baseIteratee":331}],530:[function(e,t,n){function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(a);var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(r.Cache||i),n}var i=e("./_MapCache"),a="Expected a function";r.Cache=i,t.exports=r},{"./_MapCache":277}],531:[function(e,t,n){function r(e){if("function"!=typeof e)throw new TypeError(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}var i="Expected a function";t.exports=r},{}],532:[function(e,t,n){function r(){}t.exports=r},{}],533:[function(e,t,n){var r=e("./_root"),i=function(){return r.Date.now()};t.exports=i},{"./_root":463}],534:[function(e,t,n){function r(e,t,n,r){return null==e?[]:(a(t)||(t=null==t?[]:[t]),n=r?void 0:n,a(n)||(n=null==n?[]:[n]),i(e,t,n))}var i=e("./_baseOrderBy"),a=e("./isArray");t.exports=r},{"./_baseOrderBy":338,"./isArray":509}],535:[function(e,t,n){var r=e("./_arraySome"),i=e("./_createOver"),a=i(r);t.exports=a},{"./_arraySome":296,"./_createOver":390}],536:[function(e,t,n){var r=e("./_baseRest"),i=e("./_createWrap"),a=e("./_getHolder"),o=e("./_replaceHolders"),s=r(function(e,t){var n=o(t,a(s));return i(e,32,void 0,t,n)});s.placeholder={},t.exports=s},{"./_baseRest":346,"./_createWrap":394,"./_getHolder":406,"./_replaceHolders":462}],537:[function(e,t,n){var r=e("./_createAggregator"),i=r(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});t.exports=i},{"./_createAggregator":380}],538:[function(e,t,n){var r=e("./_basePick"),i=e("./_flatRest"),a=i(function(e,t){return null==e?{}:r(e,t)});t.exports=a},{"./_basePick":339,"./_flatRest":400}],539:[function(e,t,n){function r(e,t){if(null==e)return{};var n=i(s(e),function(e){return[e]});return t=a(t),o(e,n,function(e,n){return t(e,n[0])})}var i=e("./_arrayMap"),a=e("./_baseIteratee"),o=e("./_basePickBy"),s=e("./_getAllKeysIn");t.exports=r},{"./_arrayMap":293,"./_baseIteratee":331,"./_basePickBy":340,"./_getAllKeysIn":403}],540:[function(e,t,n){function r(e){return o(e)?i(s(e)):a(e)}var i=e("./_baseProperty"),a=e("./_basePropertyDeep"),o=e("./_isKey"),s=e("./_toKey");t.exports=r},{"./_baseProperty":341,"./_basePropertyDeep":342,"./_isKey":431,"./_toKey":479}],541:[function(e,t,n){function r(e,t,n){var r=c(e)?i:s,l=arguments.length<3;return r(e,o(t,4),n,l,a)}var i=e("./_arrayReduce"),a=e("./_baseEach"),o=e("./_baseIteratee"),s=e("./_baseReduce"),c=e("./isArray");t.exports=r},{"./_arrayReduce":295,"./_baseEach":307,"./_baseIteratee":331,"./_baseReduce":345,"./isArray":509}],542:[function(e,t,n){function r(e,t){return(s(e)?i:a)(e,c(o(t,3)))}var i=e("./_arrayFilter"),a=e("./_baseFilter"),o=e("./_baseIteratee"),s=e("./isArray"),c=e("./negate");t.exports=r},{"./_arrayFilter":289,"./_baseFilter":310,"./_baseIteratee":331,"./isArray":509,"./negate":531}],543:[function(e,t,n){function r(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],s=e.length;for(t=i(t,3);++r<s;){var c=e[r];t(c,r,e)&&(n.push(c),o.push(r))}return a(e,o),n}var i=e("./_baseIteratee"),a=e("./_basePullAt");t.exports=r},{"./_baseIteratee":331,"./_basePullAt":344}],544:[function(e,t,n){function r(e,t,n){var r=s(e)?i:o;return n&&c(e,t,n)&&(t=void 0),r(e,a(t,3))}var i=e("./_arraySome"),a=e("./_baseIteratee"),o=e("./_baseSome"),s=e("./isArray"),c=e("./_isIterateeCall");t.exports=r},{"./_arraySome":296,"./_baseIteratee":331,"./_baseSome":351,"./_isIterateeCall":430,"./isArray":509}],545:[function(e,t,n){var r=e("./_baseFlatten"),i=e("./_baseOrderBy"),a=e("./_baseRest"),o=e("./_isIterateeCall"),s=a(function(e,t){if(null==e)return[];var n=t.length;return n>1&&o(e,t[0],t[1])?t=[]:n>2&&o(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])});t.exports=s},{"./_baseFlatten":312,"./_baseOrderBy":338,"./_baseRest":346,"./_isIterateeCall":430}],546:[function(e,t,n){function r(){return[]}t.exports=r},{}],547:[function(e,t,n){function r(){return!1}t.exports=r},{}],548:[function(e,t,n){function r(e){return e&&e.length?i(e,a):0}var i=e("./_baseSum"),a=e("./identity");t.exports=r},{"./_baseSum":353,"./identity":506}],549:[function(e,t,n){function r(e,t){return e&&e.length?a(e,i(t,2)):0}var i=e("./_baseIteratee"),a=e("./_baseSum");t.exports=r},{"./_baseIteratee":331,"./_baseSum":353}],550:[function(e,t,n){function r(e,t,n){var r=null==e?0:e.length;return r?(t=n||void 0===t?1:a(t),t=r-t,i(e,t<0?0:t,r)):[]}var i=e("./_baseSlice"),a=e("./toInteger");t.exports=r},{"./_baseSlice":350,"./toInteger":553}],551:[function(e,t,n){function r(e,t,n){var r=!0,s=!0;if("function"!=typeof e)throw new TypeError(o);return a(n)&&(r="leading"in n?!!n.leading:r,s="trailing"in n?!!n.trailing:s),i(e,t,{leading:r,maxWait:t,trailing:s})}var i=e("./debounce"),a=e("./isObject"),o="Expected a function";t.exports=r},{"./debounce":490,"./isObject":517}],552:[function(e,t,n){function r(e){if(!e)return 0===e?e:0;if((e=i(e))===a||e===-a){return(e<0?-1:1)*o}return e===e?e:0}var i=e("./toNumber"),a=1/0,o=1.7976931348623157e308;t.exports=r},{"./toNumber":554}],553:[function(e,t,n){function r(e){var t=i(e),n=t%1;return t===t?n?t-n:t:0}var i=e("./toFinite");t.exports=r},{"./toFinite":552}],554:[function(e,t,n){function r(e){if("number"==typeof e)return e;if(a(e))return o;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=l.test(e);return n||u.test(e)?d(e.slice(2),n?2:8):c.test(e)?o:+e}var i=e("./isObject"),a=e("./isSymbol"),o=NaN,s=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,d=parseInt;t.exports=r},{"./isObject":517,"./isSymbol":521}],555:[function(e,t,n){function r(e){return null==e?"":i(e)}var i=e("./_baseToString");t.exports=r},{"./_baseToString":355}],556:[function(e,t,n){function r(e){return e&&e.length?i(e):[]}var i=e("./_baseUniq");t.exports=r},{"./_baseUniq":357}],557:[function(e,t,n){function r(e,t){return e&&e.length?a(e,i(t,2)):[]}var i=e("./_baseIteratee"),a=e("./_baseUniq");t.exports=r},{"./_baseIteratee":331,"./_baseUniq":357}],558:[function(e,t,n){var r=e("./_createCaseFirst"),i=r("toUpperCase");t.exports=i},{"./_createCaseFirst":385}],559:[function(e,t,n){function r(e){return null==e?[]:i(e,a(e))}var i=e("./_baseValues"),a=e("./keys");t.exports=r},{"./_baseValues":359,"./keys":524}],560:[function(e,t,n){function r(e){if(c(e)&&!s(e)&&!(e instanceof i)){if(e instanceof a)return e;if(d.call(e,"__wrapped__"))return l(e)}return new a(e)}var i=e("./_LazyWrapper"),a=e("./_LodashWrapper"),o=e("./_baseLodash"),s=e("./isArray"),c=e("./isObjectLike"),l=e("./_wrapperClone"),u=Object.prototype,d=u.hasOwnProperty;r.prototype=o.prototype,r.prototype.constructor=r,t.exports=r},{"./_LazyWrapper":273,"./_LodashWrapper":275,"./_baseLodash":334,"./_wrapperClone":483,"./isArray":509,"./isObjectLike":518}],561:[function(e,t,n){t.exports={version:"2017c",
55zones:["Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5","Africa/Accra|LMT GMT +0020|.Q 0 -k|012121212121212121212121212121212121212121212121|-26BbX.8 6tzX.8 MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE 1BAk MnE 1C0k MnE 1BAk MnE 1BAk MnE|41e5","Africa/Nairobi|LMT EAT +0230 +0245|-2r.g -30 -2u -2J|01231|-1F3Cr.g 3Dzr.g okMu MFXJ|47e5","Africa/Algiers|PMT WET WEST CET CEST|-9.l 0 -10 -10 -20|0121212121212121343431312123431213|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 DA0 Imo0 rd0 De0 9Xz0 1fb0 1ap0 16K0 2yo0 mEp0 hwL0 jxA0 11A0 dDd0 17b0 11B0 1cN0 2Dy0 1cN0 1fB0 1cL0|26e5","Africa/Lagos|LMT WAT|-d.A -10|01|-22y0d.A|17e6","Africa/Bissau|LMT -01 GMT|12.k 10 0|012|-2ldWV.E 2xonV.E|39e4","Africa/Maputo|LMT CAT|-2a.k -20|01|-2GJea.k|26e5","Africa/Cairo|EET EEST|-20 -30|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1bIO0 vb0 1ip0 11z0 1iN0 1nz0 12p0 1pz0 10N0 1pz0 16p0 1jz0 s3d0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1WL0 rd0 1Rz0 wp0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1qL0 Xd0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1ny0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 WL0 1qN0 Rb0 1wp0 On0 1zd0 Lz0 1EN0 Fb0 c10 8n0 8Nd0 gL0 e10 mn0|15e6","Africa/Casablanca|LMT WET WEST CET|u.k 0 -10 -10|0121212121212121213121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2gMnt.E 130Lt.E rb0 Dd0 dVb0 b6p0 TX0 EoB0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4mn0 SyN0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 Rc0 11A0 e00 e00 U00 11A0 8o0 e00 11A0 11A0 5A0 e00 17c0 1fA0 1a00 1a00 1fA0 17c0 1io0 14o0 1lc0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1lc0 14o0 1fA0|32e5","Africa/Ceuta|WET WEST CET CEST|0 -10 -10 -20|010101010101010101010232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-25KN0 11z0 drd0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1y7o0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4VB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|85e3","Africa/El_Aaiun|LMT -01 WET WEST|Q.M 10 0 -10|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1rDz7.c 1GVA7.c 6L0 AL0 1Nd0 XX0 1Cp0 pz0 1cBB0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 Rc0 11A0 e00 e00 U00 11A0 8o0 e00 11A0 11A0 5A0 e00 17c0 1fA0 1a00 1a00 1fA0 17c0 1io0 14o0 1lc0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1lc0 14o0 1fA0|20e4","Africa/Johannesburg|SAST SAST SAST|-1u -20 -30|012121|-2GJdu 1Ajdu 1cL0 1cN0 1cL0|84e5","Africa/Juba|LMT CAT CAST EAT|-26.s -20 -30 -30|01212121212121212121212121212121213|-1yW26.s 1zK06.s 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0","Africa/Khartoum|LMT CAT CAST EAT|-2a.8 -20 -30 -30|012121212121212121212121212121212131|-1yW2a.8 1zK0a.8 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 HjL0|51e5","Africa/Monrovia|MMT MMT GMT|H.8 I.u 0|012|-23Lzg.Q 28G01.m|11e5","Africa/Ndjamena|LMT WAT WAST|-10.c -10 -20|0121|-2le10.c 2J3c0.c Wn0|13e5","Africa/Tripoli|LMT CET CEST EET|-Q.I -10 -20 -20|012121213121212121212121213123123|-21JcQ.I 1hnBQ.I vx0 4iP0 xx0 4eN0 Bb0 7ip0 U0n0 A10 1db0 1cN0 1db0 1dd0 1db0 1eN0 1bb0 1e10 1cL0 1c10 1db0 1dd0 1db0 1cN0 1db0 1q10 fAn0 1ep0 1db0 AKq0 TA0 1o00|11e5","Africa/Tunis|PMT CET CEST|-9.l -10 -20|0121212121212121212121212121212121|-2nco9.l 18pa9.l 1qM0 DA0 3Tc0 11B0 1ze0 WM0 7z0 3d0 14L0 1cN0 1f90 1ar0 16J0 1gXB0 WM0 1rA0 11c0 nwo0 Ko0 1cM0 1cM0 1rA0 10M0 zuM0 10N0 1aN0 1qM0 WM0 1qM0 11A0 1o00|20e5","Africa/Windhoek|+0130 SAST SAST CAT WAT WAST|-1u -20 -30 -20 -10 -20|01213454545454545454545454545454545454545454545454543|-2GJdu 1Ajdu 1cL0 1SqL0 9Io0 16P0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0|32e4","America/Adak|NST NWT NPT BST BDT AHST HST HDT|b0 a0 a0 b0 a0 a0 a0 90|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|326","America/Anchorage|AST AWT APT AHST AHDT YST AKST AKDT|a0 90 90 a0 90 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T00 8wX0 iA0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|30e4","America/Port_of_Spain|LMT AST|46.4 40|01|-2kNvR.U|43e3","America/Araguaina|LMT -03 -02|3c.M 30 20|0121212121212121212121212121212121212121212121212121|-2glwL.c HdKL.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 ny10 Lz0|14e4","America/Argentina/Buenos_Aires|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 A4p0 uL0 1qN0 WL0","America/Argentina/Catamarca|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 7B0 8zb0 uL0","America/Argentina/Cordoba|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0 1qN0 WL0","America/Argentina/Jujuy|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1ze0 TX0 1ld0 WK0 1wp0 TX0 A4p0 uL0","America/Argentina/La_Rioja|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0","America/Argentina/Mendoza|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232312121321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1u20 SL0 1vd0 Tb0 1wp0 TW0 ri10 Op0 7TX0 uL0","America/Argentina/Rio_Gallegos|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0","America/Argentina/Salta|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0","America/Argentina/San_Juan|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rld0 m10 8lb0 uL0","America/Argentina/San_Luis|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121212321212|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 XX0 1q20 SL0 AN0 vDb0 m10 8lb0 8L0 jd0 1qN0 WL0 1qN0","America/Argentina/Tucuman|CMT -04 -03 -02|4g.M 40 30 20|0121212121212121212121212121212121212121212323232313232123232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 4N0 8BX0 uL0 1qN0 WL0","America/Argentina/Ushuaia|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rkN0 8p0 8zb0 uL0","America/Curacao|LMT -0430 AST|4z.L 4u 40|012|-2kV7o.d 28KLS.d|15e4","America/Asuncion|AMT -04 -03|3O.E 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-1x589.k 1DKM9.k 3CL0 3Dd0 10L0 1pB0 10n0 1pB0 10n0 1pB0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1lB0 14n0 1dd0 1cL0 1fd0 WL0 1rd0 1aL0 1dB0 Xz0 1qp0 Xb0 1qN0 10L0 1rB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 WN0 1qL0 11B0 1nX0 1ip0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 TX0 1tB0 19X0 1a10 1fz0 1a10 1fz0 1cN0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0|28e5","America/Atikokan|CST CDT CWT CPT EST|60 50 50 50 50|0101234|-25TQ0 1in0 Rnb0 3je0 8x30 iw0|28e2","America/Bahia|LMT -03 -02|2y.4 30 20|01212121212121212121212121212121212121212121212121212121212121|-2glxp.U HdLp.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 l5B0 Rb0|27e5","America/Bahia_Banderas|LMT MST CST PST MDT CDT|71 70 60 80 60 50|0121212131414141414141414141414141414152525252525252525252525252525252525252525252525252525252|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nW0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|84e3","America/Barbados|LMT BMT AST ADT|3W.t 3W.t 40 30|01232323232|-1Q0I1.v jsM0 1ODC1.v IL0 1ip0 17b0 1ip0 17b0 1ld0 13b0|28e4","America/Belem|LMT -03 -02|3d.U 30 20|012121212121212121212121212121|-2glwK.4 HdKK.4 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|20e5","America/Belize|LMT CST -0530 CDT|5Q.M 60 5u 50|01212121212121212121212121212121212121212121212121213131|-2kBu7.c fPA7.c Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1f0Mu qn0 lxB0 mn0|57e3","America/Blanc-Sablon|AST ADT AWT APT|40 30 30 30|010230|-25TS0 1in0 UGp0 8x50 iu0|11e2","America/Boa_Vista|LMT -04 -03|42.E 40 30|0121212121212121212121212121212121|-2glvV.k HdKV.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 smp0 WL0 1tB0 2L0|62e2","America/Bogota|BMT -05 -04|4U.g 50 40|0121|-2eb73.I 38yo3.I 2en0|90e5","America/Boise|PST PDT MST MWT MPT MDT|80 70 70 60 60 60|0101023425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-261q0 1nX0 11B0 1nX0 8C10 JCL0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 Dd0 1Kn0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e4","America/Cambridge_Bay|-00 MST MWT MPT MDDT MDT CST CDT EST|0 70 60 60 50 60 60 50 50|0123141515151515151515151515151515151515151515678651515151515151515151515151515151515151515151515151515151515151515151515151|-21Jc0 RO90 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11A0 1nX0 2K0 WQ0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e2","America/Campo_Grande|LMT -04 -03|3C.s 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2glwl.w HdLl.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1C10 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1C10 Lz0 1C10 Lz0 1C10 Lz0 1C10 On0 1zd0 Rb0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0|77e4","America/Cancun|LMT CST EST EDT CDT|5L.4 60 50 40 50|0123232341414141414141414141414141414141412|-1UQG0 2q2o0 yLB0 1lb0 14p0 1lb0 14p0 Lz0 xB0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 Dd0|63e4","America/Caracas|CMT -0430 -04|4r.E 4u 40|01212|-2kV7w.k 28KM2.k 1IwOu kqo0|29e5","America/Cayenne|LMT -04 -03|3t.k 40 30|012|-2mrwu.E 2gWou.E|58e3","America/Panama|CMT EST|5j.A 50|01|-2uduE.o|15e5","America/Chicago|CST CDT EST CWT CPT|60 50 50 50 50|01010101010101010101010101010101010102010101010103401010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 1wp0 TX0 WN0 1qL0 1cN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 11B0 1Hz0 14p0 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|92e5","America/Chihuahua|LMT MST CST CDT MDT|74.k 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|81e4","America/Costa_Rica|SJMT CST CDT|5A.d 60 50|0121212121|-1Xd6n.L 2lu0n.L Db0 1Kp0 Db0 pRB0 15b0 1kp0 mL0|12e5","America/Creston|MST PST|70 80|010|-29DR0 43B0|53e2","America/Cuiaba|LMT -04 -03|3I.k 40 30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2glwf.E HdLf.E 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 4a10 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1C10 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1C10 Lz0 1C10 Lz0 1C10 Lz0 1C10 On0 1zd0 Rb0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0|54e4","America/Danmarkshavn|LMT -03 -02 GMT|1e.E 30 20 0|01212121212121212121212121212121213|-2a5WJ.k 2z5fJ.k 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 DC0|8","America/Dawson|YST YDT YWT YPT YDDT PST PDT|90 80 80 80 70 80 70|0101023040565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 jrA0 fNd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|13e2","America/Dawson_Creek|PST PDT PWT PPT MST|80 70 70 70 70|0102301010101010101010101010101010101010101010101010101014|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 ML0|12e3","America/Denver|MST MDT MWT MPT|70 60 60 60|01010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 11B0 1qL0 WN0 mn0 Ord0 8x20 ix0 LCN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e5","America/Detroit|LMT CST EST EWT EPT EDT|5w.b 60 50 40 40 40|012342525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2Cgir.N peqr.N 156L0 8x40 iv0 6fd0 11z0 XQp0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e5","America/Edmonton|LMT MST MDT MWT MPT|7x.Q 70 60 60 60|01212121212121341212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2yd4q.8 shdq.8 1in0 17d0 hz0 2dB0 1fz0 1a10 11z0 1qN0 WL0 1qN0 11z0 IGN0 8x20 ix0 3NB0 11z0 LFB0 1cL0 3Cp0 1cL0 66N0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|10e5","America/Eirunepe|LMT -05 -04|4D.s 50 40|0121212121212121212121212121212121|-2glvk.w HdLk.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0 yTd0 d5X0|31e3","America/El_Salvador|LMT CST CDT|5U.M 60 50|012121|-1XiG3.c 2Fvc3.c WL0 1qN0 WL0|11e5","America/Tijuana|LMT MST PST PDT PWT PPT|7M.4 70 80 70 70 70|012123245232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQE0 4PX0 8mM0 8lc0 SN0 1cL0 pHB0 83r0 zI0 5O10 1Rz0 cOO0 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 BUp0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|20e5","America/Fort_Nelson|PST PDT PWT PPT MST|80 70 70 70 70|01023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010104|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0|39e2","America/Fort_Wayne|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010101023010101010101010101040454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 QI10 Db0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 5Tz0 1o10 qLb0 1cL0 1cN0 1cL0 1qhd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","America/Fortaleza|LMT -03 -02|2y 30 20|0121212121212121212121212121212121212121|-2glxq HdLq 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 5z0 2mN0 On0|34e5","America/Glace_Bay|LMT AST ADT AWT APT|3X.M 40 30 30 30|012134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsI0.c CwO0.c 1in0 UGp0 8x50 iu0 iq10 11z0 Jg10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","America/Godthab|LMT -03 -02|3q.U 30 20|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5Ux.4 2z5dx.4 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e3","America/Goose_Bay|NST NDT NST NDT NWT NPT AST ADT ADDT|3u.Q 2u.Q 3u 2u 2u 2u 40 30 20|010232323232323245232323232323232323232323232323232323232326767676767676767676767676767676767676767676768676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-25TSt.8 1in0 DXb0 2HbX.8 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 S10 g0u 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|76e2","America/Grand_Turk|KMT EST EDT AST|57.b 50 40 40|01212121212121212121212121212121212121212121212121212121212121212121212121232121212121212121212121212121212121212121|-2l1uQ.N 2HHBQ.N 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 5Ip0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e2","America/Guatemala|LMT CST CDT|62.4 60 50|0121212121|-24KhV.U 2efXV.U An0 mtd0 Nz0 ifB0 17b0 zDB0 11z0|13e5","America/Guayaquil|QMT -05 -04|5e 50 40|0121|-1yVSK 2uILK rz0|27e5","America/Guyana|LMT -0345 -03 -04|3Q.E 3J 30 40|0123|-2dvU7.k 2r6LQ.k Bxbf|80e4","America/Halifax|LMT AST ADT AWT APT|4e.o 40 30 30 30|0121212121212121212121212121212121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsHJ.A xzzJ.A 1db0 3I30 1in0 3HX0 IL0 1E10 ML0 1yN0 Pb0 1Bd0 Mn0 1Bd0 Rz0 1w10 Xb0 1w10 LX0 1w10 Xb0 1w10 Lz0 1C10 Jz0 1E10 OL0 1yN0 Un0 1qp0 Xb0 1qp0 11X0 1w10 Lz0 1HB0 LX0 1C10 FX0 1w10 Xb0 1qp0 Xb0 1BB0 LX0 1td0 Xb0 1qp0 Xb0 Rf0 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 6i10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|39e4","America/Havana|HMT CST CDT|5t.A 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Meuu.o 72zu.o ML0 sld0 An0 1Nd0 Db0 1Nd0 An0 6Ep0 An0 1Nd0 An0 JDd0 Mn0 1Ap0 On0 1fd0 11X0 1qN0 WL0 1wp0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 14n0 1ld0 14L0 1kN0 15b0 1kp0 1cL0 1cN0 1fz0 1a10 1fz0 1fB0 11z0 14p0 1nX0 11B0 1nX0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 1a10 1in0 1a10 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 17c0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 11A0 6i00 Rc0 1wo0 U00 1tA0 Rc0 1wo0 U00 1wo0 U00 1zc0 U00 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0|21e5","America/Hermosillo|LMT MST CST PST MDT|7n.Q 70 60 80 60|0121212131414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0|64e4","America/Indiana/Knox|CST CDT CWT CPT EST|60 50 50 50 50|0101023010101010101010101010101010101040101010101010101010101010101010101010101010101010141010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 3Cn0 8wp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 z8o0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","America/Indiana/Marengo|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010104545454545414545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 dyN0 11z0 6fd0 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1e6p0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","America/Indiana/Petersburg|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010104010101010101010101010141014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 3Fb0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 19co0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","America/Indiana/Tell_City|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010454541010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 g0p0 11z0 1o10 11z0 1qL0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 caL0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","America/Indiana/Vevay|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010102304545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 kPB0 Awn0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1lnd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","America/Indiana/Vincennes|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010454541014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 g0p0 11z0 1o10 11z0 1qL0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 caL0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","America/Indiana/Winamac|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010101010454541054545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1za0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","America/Inuvik|-00 PST PDDT MST MDT|0 80 60 70 60|0121343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-FnA0 tWU0 1fA0 wPe0 2pz0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|35e2","America/Iqaluit|-00 EWT EPT EST EDDT EDT CST CDT|0 40 40 50 30 40 60 50|01234353535353535353535353535353535353535353567353535353535353535353535353535353535353535353535353535353535353535353535353|-16K00 7nX0 iv0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|67e2","America/Jamaica|KMT EST EDT|57.b 50 40|0121212121212121212121|-2l1uQ.N 2uM1Q.N 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0|94e4","America/Juneau|PST PWT PPT PDT YDT YST AKST AKDT|80 70 70 70 80 90 90 80|01203030303030303030303030403030356767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cM0 1cM0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|33e3","America/Kentucky/Louisville|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101010102301010101010101010101010101454545454545414545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 3Fd0 Nb0 LPd0 11z0 RB0 8x30 iw0 Bb0 10N0 2bB0 8in0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 xz0 gso0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","America/Kentucky/Monticello|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 SWp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","America/La_Paz|CMT BOST -04|4w.A 3w.A 40|012|-1x37r.o 13b0|19e5","America/Lima|LMT -05 -04|58.A 50 40|0121212121212121|-2tyGP.o 1bDzP.o zX0 1aN0 1cL0 1cN0 1cL0 1PrB0 zX0 1O10 zX0 6Gp0 zX0 98p0 zX0|11e6","America/Los_Angeles|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 5Wp1 1VaX 3dA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e6","America/Maceio|LMT -03 -02|2m.Q 30 20|012121212121212121212121212121212121212121|-2glxB.8 HdLB.8 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 8Q10 WL0 1tB0 5z0 2mN0 On0|93e4","America/Managua|MMT CST EST CDT|5J.c 60 50 50|0121313121213131|-1quie.M 1yAMe.M 4mn0 9Up0 Dz0 1K10 Dz0 s3F0 1KH0 DB0 9In0 k8p0 19X0 1o30 11y0|22e5","America/Manaus|LMT -04 -03|40.4 40 30|01212121212121212121212121212121|-2glvX.U HdKX.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0|19e5","America/Martinique|FFMT AST ADT|44.k 40 30|0121|-2mPTT.E 2LPbT.E 19X0|39e4","America/Matamoros|LMT CST CDT|6E 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|45e4","America/Mazatlan|LMT MST CST PST MDT|75.E 70 60 80 60|0121212131414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|44e4","America/Menominee|CST CDT CWT CPT EST|60 50 50 50 50|01010230101041010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 LCN0 1fz0 6410 9Jb0 1cM0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|85e2","America/Merida|LMT CST EST CDT|5W.s 60 50 50|0121313131313131313131313131313131313131313131313131313131313131313131313131313131313131|-1UQG0 2q2o0 2hz0 wu30 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|11e5","America/Metlakatla|PST PWT PPT PDT AKST AKDT|80 70 70 70 90 80|0120303030303030303030303030303030454545454545454545454545454545454545454545454|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1hU10 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Mexico_City|LMT MST CST CDT CWT|6A.A 70 60 50 50|012121232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 gEn0 TX0 3xd0 Jb0 6zB0 SL0 e5d0 17b0 1Pff0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|20e6","America/Miquelon|LMT AST -03 -02|3I.E 40 30 20|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2mKkf.k 2LTAf.k gQ10 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|61e2","America/Moncton|EST AST ADT AWT APT|50 40 30 30 30|012121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsH0 CwN0 1in0 zAo0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1K10 Lz0 1zB0 NX0 1u10 Wn0 S20 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14n1 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 ReX 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|64e3","America/Monterrey|LMT CST CDT|6F.g 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|41e5","America/Montevideo|MMT -0330 -03 -02 -0230|3I.I 3u 30 20 2u|012121212121212121212121213232323232324242423243232323232323232323232323232323232323232|-20UIf.g 8jzJ.g 1cLu 1dcu 1cLu 1dcu 1cLu ircu 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu WLu 1qMu WLu 1qMu 11zu 1o0u 11zu NAu 11bu 2iMu zWu Dq10 19X0 pd0 jz0 cm10 19X0 1fB0 1on0 11d0 1oL0 1nB0 1fzu 1aou 1fzu 1aou 1fzu 3nAu Jb0 3MN0 1SLu 4jzu 2PB0 Lb0 3Dd0 1pb0 ixd0 An0 1MN0 An0 1wp0 On0 1wp0 Rb0 1zd0 On0 1wp0 Rb0 s8p0 1fB0 1ip0 11z0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 11z0|17e5","America/Toronto|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101012301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 11Wu 1nzu 1fD0 WJ0 1wr0 Nb0 1Ap0 On0 1zd0 On0 1wp0 TX0 1tB0 TX0 1tB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 4kM0 8x40 iv0 1o10 11z0 1nX0 11z0 1o10 11z0 1o10 1qL0 11D0 1nX0 11B0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e5","America/Nassau|LMT EST EDT|59.u 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2kNuO.u 26XdO.u 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|24e4","America/New_York|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 11B0 1qL0 1a10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x40 iv0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e6","America/Nipigon|EST EDT EWT EPT|50 40 40 40|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 Rnb0 3je0 8x40 iv0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|16e2","America/Nome|NST NWT NPT BST BDT YST AKST AKDT|b0 a0 a0 b0 a0 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cl0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|38e2","America/Noronha|LMT -02 -01|29.E 20 10|0121212121212121212121212121212121212121|-2glxO.k HdKO.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|30e2","America/North_Dakota/Beulah|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","America/North_Dakota/Center|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","America/North_Dakota/New_Salem|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","America/Ojinaga|LMT MST CST CDT MDT|6V.E 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e3","America/Pangnirtung|-00 AST AWT APT ADDT ADT EDT EST CST CDT|0 40 30 30 20 30 40 50 60 50|012314151515151515151515151515151515167676767689767676767676767676767676767676767676767676767676767676767676767676767676767|-1XiM0 PnG0 8x50 iu0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1o00 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Paramaribo|LMT PMT PMT -0330 -03|3E.E 3E.Q 3E.A 3u 30|01234|-2nDUj.k Wqo0.c qanX.I 1yVXN.o|24e4","America/Phoenix|MST MDT MWT|70 60 60|01010202010|-261r0 1nX0 11B0 1nX0 SgN0 4Al1 Ap0 1db0 SWqX 1cL0|42e5","America/Port-au-Prince|PPMT EST EDT|4N 50 40|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-28RHb 2FnMb 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14q0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 i6n0 1nX0 11B0 1nX0 d430 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 3iN0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Rio_Branco|LMT -05 -04|4v.c 50 40|01212121212121212121212121212121|-2glvs.M HdLs.M 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0 d5X0|31e4","America/Porto_Velho|LMT -04 -03|4f.A 40 30|012121212121212121212121212121|-2glvI.o HdKI.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|37e4","America/Puerto_Rico|AST AWT APT|40 30 30|0120|-17lU0 7XT0 iu0|24e5","America/Punta_Arenas|SMT -05 -04 -03|4G.K 50 40 30|0102021212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 blz0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0","America/Rainy_River|CST CDT CWT CPT|60 50 50 50|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TQ0 1in0 Rnb0 3je0 8x30 iw0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|842","America/Rankin_Inlet|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313131313131313131313131313131313131313131313131313131313131313131|-vDc0 keu0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e2","America/Recife|LMT -03 -02|2j.A 30 20|0121212121212121212121212121212121212121|-2glxE.o HdLE.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|33e5","America/Regina|LMT MST MDT MWT MPT CST|6W.A 70 60 60 60 60|012121212121212121212121341212121212121212121212121215|-2AD51.o uHe1.o 1in0 s2L0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 66N0 1cL0 1cN0 19X0 1fB0 1cL0 1fB0 1cL0 1cN0 1cL0 M30 8x20 ix0 1ip0 1cL0 1ip0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 3NB0 1cL0 1cN0|19e4","America/Resolute|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313431313131313131313131313131313131313131313131313131313131313131|-SnA0 GWS0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|229","America/Santarem|LMT -04 -03|3C.M 40 30|0121212121212121212121212121212|-2glwl.c HdLl.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0|21e4","America/Santiago|SMT -05 -04 -03|4G.K 50 40 30|010202121212121212321232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 9Bz0 jb0 1oN0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Dd0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Dd0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Dd0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0|62e5","America/Santo_Domingo|SDMT EST EDT -0430 AST|4E 50 40 4u 40|01213131313131414|-1ttjk 1lJMk Mn0 6sp0 Lbu 1Cou yLu 1RAu wLu 1QMu xzu 1Q0u xXu 1PAu 13jB0 e00|29e5","America/Sao_Paulo|LMT -03 -02|36.s 30 20|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2glwR.w HdKR.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 pTd0 PX0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1C10 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1C10 Lz0 1C10 Lz0 1C10 Lz0 1C10 On0 1zd0 Rb0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0|20e6","America/Scoresbysund|LMT -02 -01 +00|1r.Q 20 10 0|0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2a5Ww.8 2z5ew.8 1a00 1cK0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|452","America/Sitka|PST PWT PPT PDT YST AKST AKDT|80 70 70 70 90 90 80|01203030303030303030303030303030345656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|90e2","America/St_Johns|NST NDT NST NDT NWT NPT NDDT|3u.Q 2u.Q 3u 2u 2u 2u 1u|01010101010101010101010101010101010102323232323232324523232323232323232323232323232323232323232323232323232323232323232323232323232323232326232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28oit.8 14L0 1nB0 1in0 1gm0 Dz0 1JB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1fB0 19X0 1fB0 19X0 10O0 eKX.8 19X0 1iq0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Swift_Current|LMT MST MDT MWT MPT CST|7b.k 70 60 60 60 60|012134121212121212121215|-2AD4M.E uHdM.E 1in0 UGp0 8x20 ix0 1o10 17b0 1ip0 11z0 1o10 11z0 1o10 11z0 isN0 1cL0 3Cp0 1cL0 1cN0 11z0 1qN0 WL0 pMp0|16e3","America/Tegucigalpa|LMT CST CDT|5M.Q 60 50|01212121|-1WGGb.8 2ETcb.8 WL0 1qN0 WL0 GRd0 AL0|11e5","America/Thule|LMT AST ADT|4z.8 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5To.Q 31NBo.Q 1cL0 1cN0 1cL0 1fB0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|656","America/Thunder_Bay|CST EST EWT EPT EDT|60 50 40 40 40|0123141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-2q5S0 1iaN0 8x40 iv0 XNB0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Vancouver|PST PDT PWT PPT|80 70 70 70|0102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TO0 1in0 UGp0 8x10 iy0 1o10 17b0 1ip0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Whitehorse|YST YDT YWT YPT YDDT PST PDT|90 80 80 80 70 80 70|0101023040565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 3NA0 vrd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e3","America/Winnipeg|CST CDT CWT CPT|60 50 50 50|010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aIi0 WL0 3ND0 1in0 Jap0 Rb0 aCN0 8x30 iw0 1tB0 11z0 1ip0 11z0 1o10 11z0 1o10 11z0 1rd0 10L0 1op0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 1cL0 1cN0 11z0 6i10 WL0 6i10 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|66e4","America/Yakutat|YST YWT YPT YDT AKST AKDT|90 80 80 80 90 80|01203030303030303030303030303030304545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-17T10 8x00 iz0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cn0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|642","America/Yellowknife|-00 MST MWT MPT MDDT MDT|0 70 60 60 50 60|012314151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151|-1pdA0 hix0 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","Antarctica/Casey|-00 +08 +11|0 -80 -b0|0121212|-2q00 1DjS0 T90 40P0 KL0 blz0|10","Antarctica/Davis|-00 +07 +05|0 -70 -50|01012121|-vyo0 iXt0 alj0 1D7v0 VB0 3Wn0 KN0|70","Antarctica/DumontDUrville|-00 +10|0 -a0|0101|-U0o0 cfq0 bFm0|80","Antarctica/Macquarie|AEST AEDT -00 +11|-a0 -b0 0 -b0|0102010101010101010101010101010101010101010101010101010101010101010101010101010101010101013|-29E80 19X0 4SL0 1ayy0 Lvs0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0|1","Antarctica/Mawson|-00 +06 +05|0 -60 -50|012|-CEo0 2fyk0|60","Pacific/Auckland|NZMT NZST NZST NZDT|-bu -cu -c0 -d0|01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1GCVu Lz0 1tB0 11zu 1o0u 11zu 1o0u 11zu 1o0u 14nu 1lcu 14nu 1lcu 1lbu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1qLu WMu 1qLu 11Au 1n1bu IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|14e5","Antarctica/Palmer|-00 -03 -04 -02|0 30 40 20|0121212121213121212121212121212121212121212121212121212121212121212121212121212121|-cao0 nD0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 jsN0 14N0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|40","Antarctica/Rothera|-00 -03|0 30|01|gOo0|130","Antarctica/Syowa|-00 +03|0 -30|01|-vs00|20","Antarctica/Troll|-00 +00 +02|0 0 -20|01212121212121212121212121212121212121212121212121212121212121212121|1puo0 hd0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|40","Antarctica/Vostok|-00 +06|0 -60|01|-tjA0|25","Europe/Oslo|CET CEST|-10 -20|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2awM0 Qm0 W6o0 5pf0 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 wJc0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1qM0 WM0 zpc0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e4","Asia/Riyadh|LMT +03|-36.Q -30|01|-TvD6.Q|57e5","Asia/Almaty|LMT +05 +06 +07|-57.M -50 -60 -70|012323232323232323232321232323232323232323232323232|-1Pc57.M eUo7.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|15e5","Asia/Amman|LMT EET EEST|-2n.I -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1yW2n.I 1HiMn.I KL0 1oN0 11b0 1oN0 11b0 1pd0 1dz0 1cp0 11b0 1op0 11b0 fO10 1db0 1e10 1cL0 1cN0 1cL0 1cN0 1fz0 1pd0 10n0 1ld0 14n0 1hB0 15b0 1ip0 19X0 1cN0 1cL0 1cN0 17b0 1ld0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1So0 y00 1fc0 1dc0 1co0 1dc0 1cM0 1cM0 1cM0 1o00 11A0 1lc0 17c0 1cM0 1cM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 4bX0 Dd0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|25e5","Asia/Anadyr|LMT +12 +13 +14 +11|-bN.U -c0 -d0 -e0 -b0|01232121212121212121214121212121212121212121212121212121212141|-1PcbN.U eUnN.U 23CL0 1db0 2q10 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|13e3","Asia/Aqtau|LMT +04 +05 +06|-3l.4 -40 -50 -60|012323232323232323232123232312121212121212121212|-1Pc3l.4 eUnl.4 24PX0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|15e4","Asia/Aqtobe|LMT +04 +05 +06|-3M.E -40 -50 -60|0123232323232323232321232323232323232323232323232|-1Pc3M.E eUnM.E 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|27e4","Asia/Ashgabat|LMT +04 +05 +06|-3R.w -40 -50 -60|0123232323232323232323212|-1Pc3R.w eUnR.w 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0|41e4","Asia/Atyrau|LMT +03 +05 +06 +04|-3r.I -30 -50 -60 -40|01232323232323232323242323232323232324242424242|-1Pc3r.I eUor.I 24PW0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 2sp0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0","Asia/Baghdad|BMT +03 +04|-2V.A -30 -40|012121212121212121212121212121212121212121212121212121|-26BeV.A 2ACnV.A 11b0 1cp0 1dz0 1dd0 1db0 1cN0 1cp0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1de0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0|66e5","Asia/Qatar|LMT +04 +03|-3q.8 -40 -30|012|-21Jfq.8 27BXq.8|96e4","Asia/Baku|LMT +03 +04 +05|-3j.o -30 -40 -50|01232323232323232323232123232323232323232323232323232323232323232|-1Pc3j.o 1jUoj.o WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 9Je0 1o00 11z0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e5","Asia/Bangkok|BMT +07|-6G.4 -70|01|-218SG.4|15e6","Asia/Barnaul|LMT +06 +07 +08|-5z -60 -70 -80|0123232323232323232323212323232321212121212121212121212121212121212|-21S5z pCnz 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 p90 LE0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0","Asia/Beirut|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-21aq0 1on0 1410 1db0 19B0 1in0 1ip0 WL0 1lQp0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 q6N0 En0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1op0 11b0 dA10 17b0 1iN0 17b0 1iN0 17b0 1iN0 17b0 1vB0 SL0 1mp0 13z0 1iN0 17b0 1iN0 17b0 1jd0 12n0 1a10 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0|22e5","Asia/Bishkek|LMT +05 +06 +07|-4W.o -50 -60 -70|012323232323232323232321212121212121212121212121212|-1Pc4W.o eUnW.o 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2e00 1tX0 17b0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1cPu 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0|87e4","Asia/Brunei|LMT +0730 +08|-7D.E -7u -80|012|-1KITD.E gDc9.E|42e4","Asia/Kolkata|MMT IST +0630|-5l.a -5u -6u|012121|-2zOtl.a 1r2LP.a 1un0 HB0 7zX0|15e6","Asia/Chita|LMT +08 +09 +10|-7x.Q -80 -90 -a0|012323232323232323232321232323232323232323232323232323232323232312|-21Q7x.Q pAnx.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3re0|33e4","Asia/Choibalsan|LMT +07 +08 +10 +09|-7C -70 -80 -a0 -90|0123434343434343434343434343434343434343434343424242|-2APHC 2UkoC cKn0 1da0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 3Db0 h1f0 1cJ0 1cP0 1cJ0|38e3","Asia/Shanghai|CST CDT|-80 -90|01010101010101010|-1c1I0 LX0 16p0 1jz0 1Myp0 Rb0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0|23e6","Asia/Colombo|MMT +0530 +06 +0630|-5j.w -5u -60 -6u|01231321|-2zOtj.w 1rFbN.w 1zzu 7Apu 23dz0 11zu n3cu|22e5","Asia/Dhaka|HMT +0630 +0530 +06 +07|-5R.k -6u -5u -60 -70|0121343|-18LFR.k 1unn.k HB0 m6n0 2kxbu 1i00|16e6","Asia/Damascus|LMT EET EEST|-2p.c -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-21Jep.c Hep.c 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1xRB0 11X0 1oN0 10L0 1pB0 11b0 1oN0 10L0 1mp0 13X0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 Nb0 1AN0 Nb0 bcp0 19X0 1gp0 19X0 3ld0 1xX0 Vd0 1Bz0 Sp0 1vX0 10p0 1dz0 1cN0 1cL0 1db0 1db0 1g10 1an0 1ap0 1db0 1fd0 1db0 1cN0 1db0 1dd0 1db0 1cp0 1dz0 1c10 1dX0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 19z0 1fB0 1qL0 11B0 1on0 Wp0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0|26e5","Asia/Dili|LMT +08 +09|-8m.k -80 -90|01212|-2le8m.k 1dnXm.k 1nfA0 Xld0|19e4","Asia/Dubai|LMT +04|-3F.c -40|01|-21JfF.c|39e5","Asia/Dushanbe|LMT +05 +06 +07|-4z.c -50 -60 -70|012323232323232323232321|-1Pc4z.c eUnz.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2hB0|76e4","Asia/Famagusta|LMT EET EEST +03|-2f.M -20 -30 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212312121212121212121212121212121212121212121|-1Vc2f.M 2a3cf.M 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 15U0 2Ks0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00","Asia/Gaza|EET EEST IST IDT|-20 -30 -20 -30|010101010101010101010101010101012323232323232323232323232320101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2q0 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 pBd0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 npB0 11z0 1C10 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 11z0 1o10 14o0 1lA1 SKX 1xd1 MKX 1AN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nz0 1220 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0|18e5","Asia/Hebron|EET EEST IST IDT|-20 -30 -20 -30|01010101010101010101010101010101232323232323232323232323232010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2q0 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 pBd0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 npB0 11z0 1C10 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 12L0 1mN0 14o0 1lc0 Tb0 1xd1 MKX bB0 cn0 1cN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nz0 1220 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0|25e4","Asia/Ho_Chi_Minh|LMT PLMT +07 +08 +09|-76.E -76.u -70 -80 -90|0123423232|-2yC76.E bK00.a 1h7b6.u 5lz0 18o0 3Oq0 k5b0 aW00 BAM0|90e5","Asia/Hong_Kong|LMT HKT HKST JST|-7A.G -80 -90 -90|0121312121212121212121212121212121212121212121212121212121212121212121|-2CFHA.G 1sEP6.G 1cL0 ylu 93X0 1qQu 1tX0 Rd0 1In0 NB0 1cL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1kL0 14N0 1nX0 U10 1tz0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|73e5","Asia/Hovd|LMT +06 +07 +08|-66.A -60 -70 -80|012323232323232323232323232323232323232323232323232|-2APG6.A 2Uko6.A cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|81e3","Asia/Irkutsk|IMT +07 +08 +09|-6V.5 -70 -80 -90|01232323232323232323232123232323232323232323232323232323232323232|-21zGV.5 pjXV.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Europe/Istanbul|IMT EET EEST +04 +03|-1U.U -20 -30 -40 -30|012121212121212121212121212121212121212121212121212121234343434342121212121212121212121212121212121212121212121212121212121212124|-2ogNU.U dzzU.U 11b0 8tB0 1on0 1410 1db0 19B0 1in0 3Rd0 Un0 1oN0 11b0 zSp0 CL0 mN0 1Vz0 1gN0 1pz0 5Rd0 1fz0 1yp0 ML0 1kp0 17b0 1ip0 17b0 1fB0 19X0 1jB0 18L0 1ip0 17z0 qdd0 xX0 3S10 Tz0 dA10 11z0 1o10 11z0 1qN0 11z0 1ze0 11B0 WM0 1qO0 WI0 1nX0 1rB0 10L0 11B0 1in0 17d0 1in0 2pX0 19E0 1fU0 16Q0 1iI0 16Q0 1iI0 1Vd0 pb0 3Kp0 14o0 1de0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1a00 1fA0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WO0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 Xc0 1qo0 WM0 1qM0 11A0 1o00 1200 1nA0 11A0 1tA0 U00 15w0|13e6","Asia/Jakarta|BMT +0720 +0730 +09 +08 WIB|-77.c -7k -7u -90 -80 -70|01232425|-1Q0Tk luM0 mPzO 8vWu 6kpu 4PXu xhcu|31e6","Asia/Jayapura|LMT +09 +0930 WIT|-9m.M -90 -9u -90|0123|-1uu9m.M sMMm.M L4nu|26e4","Asia/Jerusalem|JMT IST IDT IDDT|-2k.E -20 -30 -40|01212121212132121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-26Bek.E SyMk.E 5Rb0 10r0 1px0 10N0 1pz0 16p0 1jB0 16p0 1jx0 3LB0 Em0 or0 1cn0 1dB0 16n0 10O0 1ja0 1tC0 14o0 1cM0 1a00 11A0 1Na0 An0 1MP0 AJ0 1Kp0 LC0 1oo0 Wl0 EQN0 Db0 1fB0 Rb0 npB0 11z0 1C10 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 1hB0 1dX0 1ep0 1aL0 1eN0 17X0 1nf0 11z0 1tB0 19W0 1e10 17b0 1ep0 1gL0 18N0 1fz0 1eN0 17b0 1gq0 1gn0 19d0 1dz0 1c10 17X0 1hB0 1gn0 19d0 1dz0 1c10 17X0 1kp0 1dz0 1c10 1aL0 1eN0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0|81e4","Asia/Kabul|+04 +0430|-40 -4u|01|-10Qs0|46e5","Asia/Kamchatka|LMT +11 +12 +13|-ay.A -b0 -c0 -d0|012323232323232323232321232323232323232323232323232323232323212|-1SLKy.A ivXy.A 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|18e4","Asia/Karachi|LMT +0530 +0630 +05 PKT PKST|-4s.c -5u -6u -50 -50 -60|012134545454|-2xoss.c 1qOKW.c 7zX0 eup0 LqMu 1fy00 1cL0 dK10 11b0 1610 1jX0|24e6","Asia/Urumqi|LMT +06|-5O.k -60|01|-1GgtO.k|32e5","Asia/Kathmandu|LMT +0530 +0545|-5F.g -5u -5J|012|-21JhF.g 2EGMb.g|12e5","Asia/Khandyga|LMT +08 +09 +10 +11|-92.d -80 -90 -a0 -b0|0123232323232323232323212323232323232323232323232343434343434343432|-21Q92.d pAp2.d 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 qK0 yN0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|66e2","Asia/Krasnoyarsk|LMT +06 +07 +08|-6b.q -60 -70 -80|01232323232323232323232123232323232323232323232323232323232323232|-21Hib.q prAb.q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|10e5","Asia/Kuala_Lumpur|SMT +07 +0720 +0730 +09 +08|-6T.p -70 -7k -7u -90 -80|0123435|-2Bg6T.p 17anT.p l5XE 17bO 8Fyu 1so1u|71e5","Asia/Kuching|LMT +0730 +08 +0820 +09|-7l.k -7u -80 -8k -90|0123232323232323242|-1KITl.k gDbP.k 6ynu AnE 1O0k AnE 1NAk AnE 1NAk AnE 1NAk AnE 1O0k AnE 1NAk AnE pAk 8Fz0|13e4","Asia/Macau|LMT CST CDT|-7y.k -80 -90|012121212121212121212121212121212121212121|-2le7y.k 1XO34.k 1wn0 Rd0 1wn0 R9u 1wqu U10 1tz0 TVu 1tz0 17gu 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cJu 1cL0 1cN0 1fz0 1cN0 1cOu 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cJu 1cL0 1cN0 1fz0 1cN0 1cL0|57e4","Asia/Magadan|LMT +10 +11 +12|-a3.c -a0 -b0 -c0|012323232323232323232321232323232323232323232323232323232323232312|-1Pca3.c eUo3.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Cq0|95e3","Asia/Makassar|LMT MMT +08 +09 WITA|-7V.A -7V.A -80 -90 -80|01234|-21JjV.A vfc0 myLV.A 8ML0|15e5","Asia/Manila|+08 +09|-80 -90|010101010|-1kJI0 AL0 cK10 65X0 mXB0 vX0 VK10 1db0|24e6","Asia/Nicosia|LMT EET EEST|-2d.s -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Vc2d.s 2a3cd.s 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|32e4","Asia/Novokuznetsk|LMT +06 +07 +08|-5M.M -60 -70 -80|012323232323232323232321232323232323232323232323232323232323212|-1PctM.M eULM.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|55e4","Asia/Novosibirsk|LMT +06 +07 +08|-5v.E -60 -70 -80|0123232323232323232323212323212121212121212121212121212121212121212|-21Qnv.E pAFv.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 ml0 Os0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 4eN0|15e5","Asia/Omsk|LMT +05 +06 +07|-4R.u -50 -60 -70|01232323232323232323232123232323232323232323232323232323232323232|-224sR.u pMLR.u 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|12e5","Asia/Oral|LMT +03 +05 +06 +04|-3p.o -30 -50 -60 -40|01232323232323232424242424242424242424242424242|-1Pc3p.o eUop.o 23CK0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 1cM0 IM0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|27e4","Asia/Pontianak|LMT PMT +0730 +09 +08 WITA WIB|-7h.k -7h.k -7u -90 -80 -80 -70|012324256|-2ua7h.k XE00 munL.k 8Rau 6kpu 4PXu xhcu Wqnu|23e4","Asia/Pyongyang|LMT KST JST KST|-8n -8u -90 -90|01231|-2um8n 97XR 1lTzu 2Onc0|29e5","Asia/Qyzylorda|LMT +04 +05 +06|-4l.Q -40 -50 -60|0123232323232323232323232323232323232323232323|-1Pc4l.Q eUol.Q 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 3ao0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|73e4","Asia/Rangoon|RMT +0630 +09|-6o.L -6u -90|0121|-21Jio.L SmnS.L 7j9u|48e5","Asia/Sakhalin|LMT +09 +11 +12 +10|-9u.M -90 -b0 -c0 -a0|01232323232323232323232423232323232424242424242424242424242424242|-2AGVu.M 1BoMu.M 1qFa0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 2pB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|58e4","Asia/Samarkand|LMT +04 +05 +06|-4r.R -40 -50 -60|01232323232323232323232|-1Pc4r.R eUor.R 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0|36e4","Asia/Seoul|LMT KST JST KST KDT KDT|-8r.Q -8u -90 -90 -9u -a0|0123141414141414135353|-2um8r.Q 97XV.Q 1m1zu kKo0 2I0u OL0 1FB0 Rb0 1qN0 TX0 1tB0 TX0 1tB0 TX0 1tB0 TX0 2ap0 12FBu 11A0 1o00 11A0|23e6","Asia/Srednekolymsk|LMT +10 +11 +12|-ae.Q -a0 -b0 -c0|01232323232323232323232123232323232323232323232323232323232323232|-1Pcae.Q eUoe.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|35e2","Asia/Taipei|CST JST CDT|-80 -90 -90|01020202020202020202020202020202020202020|-1iw80 joM0 1yo0 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 10N0 1BX0 10p0 1pz0 10p0 1pz0 10p0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1BB0 ML0 1Bd0 ML0 uq10 1db0 1cN0 1db0 97B0 AL0|74e5","Asia/Tashkent|LMT +05 +06 +07|-4B.b -50 -60 -70|012323232323232323232321|-1Pc4B.b eUnB.b 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0|23e5","Asia/Tbilisi|TBMT +03 +04 +05|-2X.b -30 -40 -50|0123232323232323232323212121232323232323232323212|-1Pc2X.b 1jUnX.b WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cK0 1cL0 1cN0 1cL0 1cN0 2pz0 1cL0 1fB0 3Nz0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 An0 Os0 WM0|11e5","Asia/Tehran|LMT TMT +0330 +04 +05 +0430|-3p.I -3p.I -3u -40 -50 -4u|01234325252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2btDp.I 1d3c0 1huLT.I TXu 1pz0 sN0 vAu 1cL0 1dB0 1en0 pNB0 UL0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 64p0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0|14e6","Asia/Thimphu|LMT +0530 +06|-5W.A -5u -60|012|-Su5W.A 1BGMs.A|79e3","Asia/Tokyo|JST JDT|-90 -a0|010101010|-QJH0 QL0 1lB0 13X0 1zB0 NX0 1zB0 NX0|38e6","Asia/Tomsk|LMT +06 +07 +08|-5D.P -60 -70 -80|0123232323232323232323212323232323232323232323212121212121212121212|-21NhD.P pxzD.P 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 co0 1bB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Qp0|10e5","Asia/Ulaanbaatar|LMT +07 +08 +09|-77.w -70 -80 -90|012323232323232323232323232323232323232323232323232|-2APH7.w 2Uko7.w cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|12e5","Asia/Ust-Nera|LMT +08 +09 +12 +11 +10|-9w.S -80 -90 -c0 -b0 -a0|012343434343434343434345434343434343434343434343434343434343434345|-21Q9w.S pApw.S 23CL0 1d90 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|65e2","Asia/Vladivostok|LMT +09 +10 +11|-8L.v -90 -a0 -b0|01232323232323232323232123232323232323232323232323232323232323232|-1SJIL.v itXL.v 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Asia/Yakutsk|LMT +08 +09 +10|-8C.W -80 -90 -a0|01232323232323232323232123232323232323232323232323232323232323232|-21Q8C.W pAoC.W 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|28e4","Asia/Yekaterinburg|LMT PMT +04 +05 +06|-42.x -3J.5 -40 -50 -60|012343434343434343434343234343434343434343434343434343434343434343|-2ag42.x 7mQh.s qBvJ.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|14e5","Asia/Yerevan|LMT +03 +04 +05|-2W -30 -40 -50|0123232323232323232323212121212323232323232323232323232323232|-1Pc2W 1jUnW WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 4RX0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|13e5","Atlantic/Azores|HMT -02 -01 +00 WET|1S.w 20 10 0 0|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323234323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2ldW5.s aPX5.s Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 3Co0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|25e4","Atlantic/Bermuda|LMT AST ADT|4j.i 40 30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1BnRE.G 1LTbE.G 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e3","Atlantic/Canary|LMT -01 WET WEST|11.A 10 0 -10|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UtaW.o XPAW.o 1lAK0 1a10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Atlantic/Cape_Verde|LMT -02 -01|1y.4 20 10|01212|-2xomp.U 1qOMp.U 7zX0 1djf0|50e4","Atlantic/Faroe|LMT WET WEST|r.4 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2uSnw.U 2Wgow.U 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|49e3","Atlantic/Madeira|FMT -01 +00 +01 WET WEST|17.A 10 0 -10 0 -10|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2ldWQ.o aPWQ.o Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 3Co0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e4","Atlantic/Reykjavik|LMT -01 +00 GMT|1s 10 0 0|012121212121212121212121212121212121212121212121212121212121212121213|-2uWmw mfaw 1Bd0 ML0 1LB0 Cn0 1LB0 3fX0 C10 HrX0 1cO0 LB0 1EL0 LA0 1C00 Oo0 1wo0 Rc0 1wo0 Rc0 1wo0 Rc0 1zc0 Oo0 1zc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0|12e4","Atlantic/South_Georgia|-02|20|0||30","Atlantic/Stanley|SMT -04 -03 -02|3P.o 40 30 20|012121212121212323212121212121212121212121212121212121212121212121212|-2kJw8.A 12bA8.A 19X0 1fB0 19X0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 Cn0 1Cc10 WL0 1qL0 U10 1tz0 2mN0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 U10 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qN0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 U10 1tz0 U10 1tz0 U10|21e2","Australia/Sydney|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|40e5","Australia/Adelaide|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 WM0 1qM0 Rc0 1zc0 U00 1tA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|11e5","Australia/Brisbane|AEST AEDT|-a0 -b0|01010101010101010|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0|20e5","Australia/Broken_Hill|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|18e3","Australia/Currie|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 19X0 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|746","Australia/Darwin|ACST ACDT|-9u -au|010101010|-293lt xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0|12e4","Australia/Eucla|+0845 +0945|-8J -9J|0101010101010101010|-293kI xcX 10jd0 yL0 1cN0 1cL0 1gSp0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|368","Australia/Hobart|AEST AEDT|-a0 -b0|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 19X0 10jd0 yL0 1cN0 1cL0 1fB0 19X0 VfB0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|21e4","Australia/Lord_Howe|AEST +1030 +1130 +11|-a0 -au -bu -b0|0121212121313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313|raC0 1zdu Rb0 1zd0 On0 1zd0 On0 1zd0 On0 1zd0 TXu 1qMu WLu 1tAu WLu 1tAu TXu 1tAu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 11Au 1nXu 1qMu 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu 11zu 1o0u WLu 1qMu 14nu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu|347","Australia/Lindeman|AEST AEDT|-a0 -b0|010101010101010101010|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0|10","Australia/Melbourne|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293lX xcX 10jd0 yL0 1cN0 1cL0 1fB0 19X0 17c10 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1qM0 11A0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|39e5","Australia/Perth|AWST AWDT|-80 -90|0101010101010101010|-293jX xcX 10jd0 yL0 1cN0 1cL0 1gSp0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|18e5","CET|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00","CST6CDT|CST CDT CWT CPT|60 50 50 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","Pacific/Easter|EMT -07 -06 -05|7h.s 70 60 50|012121212121212121212121212123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1uSgG.w 1s4IG.w WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 2pA0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Dd0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Dd0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Dd0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1Nb0 Ap0|30e2","EET|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00","EST|EST|50|0|","EST5EDT|EST EDT EWT EPT|50 40 40 40|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 SgN0 8x40 iv0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","Europe/Dublin|DMT IST GMT BST IST|p.l -y.D 0 -10 -10|01232323232324242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242|-2ax9y.D Rc0 1fzy.D 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 g600 14o0 1wo0 17c0 1io0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Etc/GMT+0|GMT|0|0|","Etc/GMT+1|-01|10|0|","Etc/GMT+10|-10|a0|0|","Etc/GMT+11|-11|b0|0|","Etc/GMT+12|-12|c0|0|","Etc/GMT+3|-03|30|0|","Etc/GMT+4|-04|40|0|","Etc/GMT+5|-05|50|0|","Etc/GMT+6|-06|60|0|","Etc/GMT+7|-07|70|0|","Etc/GMT+8|-08|80|0|","Etc/GMT+9|-09|90|0|","Etc/GMT-1|+01|-10|0|","Pacific/Port_Moresby|+10|-a0|0||25e4","Pacific/Pohnpei|+11|-b0|0||34e3","Pacific/Tarawa|+12|-c0|0||29e3","Etc/GMT-13|+13|-d0|0|","Etc/GMT-14|+14|-e0|0|","Etc/GMT-2|+02|-20|0|","Etc/GMT-3|+03|-30|0|","Etc/GMT-4|+04|-40|0|","Etc/GMT-5|+05|-50|0|","Etc/GMT-6|+06|-60|0|","Indian/Christmas|+07|-70|0||21e2","Etc/GMT-8|+08|-80|0|","Pacific/Palau|+09|-90|0||21e3","Etc/UCT|UCT|0|0|","Etc/UTC|UTC|0|0|","Europe/Amsterdam|AMT NST +0120 +0020 CEST CET|-j.w -1j.w -1k -k -20 -10|010101010101010101010101010101010101010101012323234545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545|-2aFcj.w 11b0 1iP0 11A0 1io0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1co0 1io0 1yo0 Pc0 1a00 1fA0 1Bc0 Mo0 1tc0 Uo0 1tA0 U00 1uo0 W00 1s00 VA0 1so0 Vc0 1sM0 UM0 1wo0 Rc0 1u00 Wo0 1rA0 W00 1s00 VA0 1sM0 UM0 1w00 fV0 BCX.w 1tA0 U00 1u00 Wo0 1sm0 601k WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|16e5","Europe/Andorra|WET CET CEST|0 -10 -20|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-UBA0 1xIN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|79e3","Europe/Astrakhan|LMT +03 +04 +05|-3c.c -30 -40 -50|012323232323232323212121212121212121212121212121212121212121212|-1Pcrc.c eUMc.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0","Europe/Athens|AMT EET EEST CEST CET|-1y.Q -20 -30 -20 -10|012123434121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a61x.Q CNbx.Q mn0 kU10 9b0 3Es0 Xa0 1fb0 1dd0 k3X0 Nz0 SCp0 1vc0 SO0 1cM0 1a00 1ao0 1fc0 1a10 1fG0 1cg0 1dX0 1bX0 1cQ0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|35e5","Europe/London|GMT BST BDST|0 -10 -20|0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|10e6","Europe/Belgrade|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19RC0 3IP0 WM0 1fA0 1cM0 1cM0 1rc0 Qo0 1vmo0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Berlin|CET CEST CEMT|-10 -20 -30|01010101010101210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 kL0 Nc0 m10 WM0 1ao0 1cp0 dX0 jz0 Dd0 1io0 17c0 1fA0 1a00 1ehA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e5","Europe/Prague|CET CEST|-10 -20|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 16M0 1lc0 1tA0 17A0 11c0 1io0 17c0 1io0 17c0 1fc0 1ao0 1bNc0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|13e5","Europe/Brussels|WET CET CEST WEST|0 -10 -20 -10|0121212103030303030303030303030303030303030303030303212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ehc0 3zX0 11c0 1iO0 11A0 1o00 11A0 my0 Ic0 1qM0 Rc0 1EM0 UM0 1u00 10o0 1io0 1io0 17c0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a30 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 y00 5Wn0 WM0 1fA0 1cM0 16M0 1iM0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|21e5","Europe/Bucharest|BMT EET EEST|-1I.o -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1xApI.o 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Axc0 On0 1fA0 1a10 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|19e5","Europe/Budapest|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1ip0 17b0 1op0 1tb0 Q2m0 3Ne0 WM0 1fA0 1cM0 1cM0 1oJ0 1dc0 1030 1fA0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1iM0 1fA0 8Ha0 Rb0 1wN0 Rb0 1BB0 Lz0 1C20 LB0 SNX0 1a10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5","Europe/Zurich|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19Lc0 11A0 1o00 11A0 1xG10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e4","Europe/Chisinau|CMT BMT EET EEST CEST CET MSK MSD|-1T -1I.o -20 -30 -20 -10 -30 -40|012323232323232323234545467676767676767676767323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-26jdT wGMa.A 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 27A0 2en0 39g0 WM0 1fA0 1cM0 V90 1t7z0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 gL0 WO0 1cM0 1cM0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11D0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|67e4","Europe/Copenhagen|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 Tz0 VuO0 60q0 WM0 1fA0 1cM0 1cM0 1cM0 S00 1HA0 Nc0 1C00 Dc0 1Nc0 Ao0 1h5A0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Gibraltar|GMT BST BDST CET CEST|0 -10 -20 -10 -20|010101010101010101010101010101010101010101010101012121212121010121010101010101010101034343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 10Jz0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|30e3","Europe/Helsinki|HMT EET EEST|-1D.N -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1WuND.N OULD.N 1dA0 1xGq0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Kaliningrad|CET CEST CET CEST MSK MSD EEST EET +03|-10 -20 -20 -30 -30 -40 -30 -20 -30|0101010101010232454545454545454546767676767676767676767676767676767676767676787|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 Am0 Lb0 1en0 op0 1pNz0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|44e4","Europe/Kiev|KMT EET MSK CEST CET MSD EEST|-22.4 -20 -30 -20 -10 -40 -30|0123434252525252525252525256161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc22.4 eUo2.4 rnz0 2Hg0 WM0 1fA0 da0 1v4m0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 Db0 3220 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|34e5","Europe/Kirov|LMT +03 +04 +05|-3i.M -30 -40 -50|01232323232323232321212121212121212121212121212121212121212121|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|48e4","Europe/Lisbon|LMT WET WEST WEMT CET CEST|A.J 0 -10 -20 -10 -20|012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121214121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ldXn.f aPWn.f Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 3Co0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 pvy0 1cM0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e5","Europe/Luxembourg|LMT CET CEST WET WEST WEST WET|-o.A -10 -20 0 -10 -20 -10|0121212134343434343434343434343434343434343434343434565651212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2DG0o.A t6mo.A TB0 1nX0 Up0 1o20 11A0 rW0 CM0 1qP0 R90 1EO0 UK0 1u20 10m0 1ip0 1in0 17e0 19W0 1fB0 1db0 1cp0 1in0 17d0 1fz0 1a10 1in0 1a10 1in0 17f0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 vA0 60L0 WM0 1fA0 1cM0 17c0 1io0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Europe/Madrid|WET WEST WEMT CET CEST|0 -10 -20 -10 -20|010101010101010101210343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-25Td0 19B0 1cL0 1dd0 b1z0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1in0 17d0 iIn0 Hd0 1cL0 bb0 1200 2s20 14n0 5aL0 Mp0 1vz0 17d0 1in0 17d0 1in0 17d0 1in0 17d0 6hX0 11B0 XHX0 1a10 1fz0 1a10 19X0 1cN0 1fz0 1a10 1fC0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e5","Europe/Malta|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1co0 17c0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1co0 1cM0 1lA0 Xc0 1qq0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1iN0 19z0 1fB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4","Europe/Minsk|MMT EET MSK CEST CET MSD EEST +03|-1O -20 -30 -20 -10 -40 -30 -30|01234343252525252525252525261616161616161616161616161616161616161617|-1Pc1O eUnO qNX0 3gQ0 WM0 1fA0 1cM0 Al0 1tsn0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 3Fc0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0|19e5","Europe/Monaco|PMT WET WEST WEMT CET CEST|-9.l 0 -10 -20 -10 -20|01212121212121212121212121212121212121212121212121232323232345454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 2RV0 11z0 11B0 1ze0 WM0 1fA0 1cM0 1fa0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e3","Europe/Moscow|MMT MMT MST MDST MSD MSK +05 EET EEST MSK|-2u.h -2v.j -3v.j -4v.j -40 -30 -50 -20 -30 -40|012132345464575454545454545454545458754545454545454545454545454545454545454595|-2ag2u.h 2pyW.W 1bA0 11X0 GN0 1Hb0 c4v.j ik0 3DA0 dz0 15A0 c10 2q10 iM10 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|16e6","Europe/Paris|PMT WET WEST CEST CET WEMT|-9.l 0 -10 -20 -10 -20|0121212121212121212121212121212121212121212121212123434352543434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-2nco8.l cNb8.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 Ik0 5M30 WM0 1fA0 1cM0 Vx0 hB0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e6","Europe/Riga|RMT LST EET MSK CEST CET MSD EEST|-1A.y -2A.y -20 -30 -20 -10 -40 -30|010102345454536363636363636363727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272|-25TzA.y 11A0 1iM0 ko0 gWm0 yDXA.y 2bX0 3fE0 WM0 1fA0 1cM0 1cM0 4m0 1sLy0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 1o00 11A0 1o00 11A0 1qM0 3oo0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|64e4","Europe/Rome|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1cM0 16M0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1C00 LA0 1zc0 Oo0 1C00 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1zc0 Oo0 1fC0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|39e5","Europe/Samara|LMT +03 +04 +05|-3k.k -30 -40 -50|0123232323232323232121232323232323232323232323232323232323212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2y10 14m0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|12e5","Europe/Saratov|LMT +03 +04 +05|-34.i -30 -40 -50|012323232323232321212121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 5810","Europe/Simferopol|SMT EET MSK CEST CET MSD EEST MSK|-2g -20 -30 -20 -10 -40 -30 -40|012343432525252525252525252161616525252616161616161616161616161616161616172|-1Pc2g eUog rEn0 2qs0 WM0 1fA0 1cM0 3V0 1u0L0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 4eL0 1cL0 1cN0 1cL0 1cN0 dX0 WL0 1cN0 1cL0 1fB0 1o30 11B0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11z0 1nW0|33e4","Europe/Sofia|EET CET CEST EEST|-20 -10 -20 -30|01212103030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030|-168L0 WM0 1fA0 1cM0 1cM0 1cN0 1mKH0 1dd0 1fb0 1ap0 1fb0 1a20 1fy0 1a30 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Stockholm|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 TB0 2yDe0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|15e5","Europe/Tallinn|TMT CET CEST EET MSK MSD EEST|-1D -10 -20 -20 -30 -40 -30|012103421212454545454545454546363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363|-26oND teD 11A0 1Ta0 4rXl KSLD 2FX0 2Jg0 WM0 1fA0 1cM0 18J0 1sTX0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o10 11A0 1qM0 5QM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e4","Europe/Tirane|LMT CET CEST|-1j.k -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glBj.k 14pcj.k 5LC0 WM0 4M0 1fCK0 10n0 1op0 11z0 1pd0 11z0 1qN0 WL0 1qp0 Xb0 1qp0 Xb0 1qp0 11z0 1lB0 11z0 1qN0 11z0 1iN0 16n0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4","Europe/Ulyanovsk|LMT +03 +04 +05 +02|-3d.A -30 -40 -50 -20|01232323232323232321214121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0","Europe/Uzhgorod|CET CEST MSK MSD EET EEST|-10 -20 -30 -40 -20 -30|010101023232323232323232320454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-1cqL0 6i00 WM0 1fA0 1cM0 1ml0 1Cp0 1r3W0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 1Nf0 2pw0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e4","Europe/Vienna|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 3KM0 14o0 LA00 6i00 WM0 1fA0 1cM0 1cM0 1cM0 400 2qM0 1a00 1cM0 1cM0 1io0 17c0 1gHa0 19X0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|18e5","Europe/Vilnius|WMT KMT CET EET MSK CEST MSD EEST|-1o -1z.A -10 -20 -30 -20 -40 -30|012324525254646464646464646473737373737373737352537373737373737373737373737373737373737373737373737373737373737373737373|-293do 6ILM.o 1Ooz.A zz0 Mfd0 29W0 3is0 WM0 1fA0 1cM0 LV0 1tgL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11B0 1o00 11A0 1qM0 8io0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Europe/Volgograd|LMT +03 +04 +05|-2V.E -30 -40 -50|01232323232323232121212121212121212121212121212121212121212121|-21IqV.E psLV.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|10e5","Europe/Warsaw|WMT CET CEST EET EEST|-1o -10 -20 -20 -30|012121234312121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ctdo 1LXo 11d0 1iO0 11A0 1o00 11A0 1on0 11A0 6zy0 HWP0 5IM0 WM0 1fA0 1cM0 1dz0 1mL0 1en0 15B0 1aq0 1nA0 11A0 1io0 17c0 1fA0 1a00 iDX0 LA0 1cM0 1cM0 1C00 Oo0 1cM0 1cM0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1C00 LA0 uso0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5","Europe/Zaporozhye|+0220 EET MSK CEST CET MSD EEST|-2k -20 -30 -20 -10 -40 -30|01234342525252525252525252526161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc2k eUok rdb0 2RE0 WM0 1fA0 8m0 1v9a0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cK0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|77e4","HST|HST|a0|0|","Indian/Chagos|LMT +05 +06|-4N.E -50 -60|012|-2xosN.E 3AGLN.E|30e2","Indian/Cocos|+0630|-6u|0||596","Indian/Kerguelen|-00 +05|0 -50|01|-MG00|130","Indian/Mahe|LMT +04|-3F.M -40|01|-2yO3F.M|79e3","Indian/Maldives|MMT +05|-4S -50|01|-olgS|35e4","Indian/Mauritius|LMT +04 +05|-3O -40 -50|012121|-2xorO 34unO 14L0 12kr0 11z0|15e4","Indian/Reunion|LMT +04|-3F.Q -40|01|-2mDDF.Q|84e4","Pacific/Kwajalein|+11 -12 +12|-b0 c0 -c0|012|-AX0 W9X0|14e3","MET|MET MEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00","MST|MST|70|0|","MST7MDT|MST MDT MWT MPT|70 60 60 60|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","Pacific/Chatham|+1215 +1245 +1345|-cf -cJ -dJ|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-WqAf 1adef IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|600","PST8PDT|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0","Pacific/Apia|LMT -1130 -11 -10 +14 +13|bq.U bu b0 a0 -e0 -d0|01232345454545454545454545454545454545454545454545454545454|-2nDMx.4 1yW03.4 2rRbu 1ff0 1a00 CI0 AQ0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|37e3","Pacific/Bougainville|+10 +09 +11|-a0 -90 -b0|0102|-16Wy0 7CN0 2MQp0|18e4","Pacific/Efate|LMT +11 +12|-bd.g -b0 -c0|0121212121212121212121|-2l9nd.g 2Szcd.g 1cL0 1oN0 10L0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 Lz0 1Nd0 An0|66e3","Pacific/Enderbury|-12 -11 +13|c0 b0 -d0|012|nIc0 B8n0|1","Pacific/Fakaofo|-11 +13|b0 -d0|01|1Gfn0|483","Pacific/Fiji|LMT +12 +13|-bT.I -c0 -d0|0121212121212121212121212121212121212121212121212121212121212121|-2bUzT.I 3m8NT.I LA0 1EM0 IM0 nJc0 LA0 1o00 Rc0 1wo0 Ao0 1Nc0 Ao0 1Q00 xz0 1SN0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 uM0 1SM0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 s00 1VA0 uM0 1SM0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 uM0 1SM0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 s00 1VA0 uM0 1SM0 uM0 1SM0 uM0|88e4","Pacific/Galapagos|LMT -05 -06|5W.o 50 60|01212|-1yVS1.A 2dTz1.A gNd0 rz0|25e3","Pacific/Gambier|LMT -09|8X.M 90|01|-2jof0.c|125","Pacific/Guadalcanal|LMT +11|-aD.M -b0|01|-2joyD.M|11e4","Pacific/Guam|GST ChST|-a0 -a0|01|1fpq0|17e4","Pacific/Honolulu|HST HDT HST|au 9u a0|010102|-1thLu 8x0 lef0 8Pz0 46p0|37e4","Pacific/Kiritimati|-1040 -10 +14|aE a0 -e0|012|nIaE B8nk|51e2","Pacific/Kosrae|+11 +12|-b0 -c0|010|-AX0 1bdz0|66e2","Pacific/Majuro|+11 +12|-b0 -c0|01|-AX0|28e3","Pacific/Marquesas|LMT -0930|9i 9u|01|-2joeG|86e2","Pacific/Pago_Pago|LMT SST|bm.M b0|01|-2nDMB.c|37e2","Pacific/Nauru|LMT +1130 +09 +12|-b7.E -bu -90 -c0|01213|-1Xdn7.E PvzB.E 5RCu 1ouJu|10e3","Pacific/Niue|-1120 -1130 -11|bk bu b0|012|-KfME 17y0a|12e2","Pacific/Norfolk|+1112 +1130 +1230 +11|-bc -bu -cu -b0|01213|-Kgbc W01G On0 1COp0|25e4","Pacific/Noumea|LMT +11 +12|-b5.M -b0 -c0|01212121|-2l9n5.M 2EqM5.M xX0 1PB0 yn0 HeP0 Ao0|98e3","Pacific/Pitcairn|-0830 -08|8u 80|01|18Vku|56","Pacific/Rarotonga|-1030 -0930 -10|au 9u a0|012121212121212121212121212|lyWu IL0 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu|13e3","Pacific/Tahiti|LMT -10|9W.g a0|01|-2joe1.I|18e4","Pacific/Tongatapu|+1220 +13 +14|-ck -d0 -e0|0121212121|-1aB0k 2n5dk 15A0 1wo0 xz0 1Q10 xz0 zWN0 s00|75e3","WET|WET WEST|0 -10|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00"],
56links:["Africa/Abidjan|Africa/Bamako","Africa/Abidjan|Africa/Banjul","Africa/Abidjan|Africa/Conakry","Africa/Abidjan|Africa/Dakar","Africa/Abidjan|Africa/Freetown","Africa/Abidjan|Africa/Lome","Africa/Abidjan|Africa/Nouakchott","Africa/Abidjan|Africa/Ouagadougou","Africa/Abidjan|Africa/Sao_Tome","Africa/Abidjan|Africa/Timbuktu","Africa/Abidjan|Atlantic/St_Helena","Africa/Cairo|Egypt","Africa/Johannesburg|Africa/Maseru","Africa/Johannesburg|Africa/Mbabane","Africa/Lagos|Africa/Bangui","Africa/Lagos|Africa/Brazzaville","Africa/Lagos|Africa/Douala","Africa/Lagos|Africa/Kinshasa","Africa/Lagos|Africa/Libreville","Africa/Lagos|Africa/Luanda","Africa/Lagos|Africa/Malabo","Africa/Lagos|Africa/Niamey","Africa/Lagos|Africa/Porto-Novo","Africa/Maputo|Africa/Blantyre","Africa/Maputo|Africa/Bujumbura","Africa/Maputo|Africa/Gaborone","Africa/Maputo|Africa/Harare","Africa/Maputo|Africa/Kigali","Africa/Maputo|Africa/Lubumbashi","Africa/Maputo|Africa/Lusaka","Africa/Nairobi|Africa/Addis_Ababa","Africa/Nairobi|Africa/Asmara","Africa/Nairobi|Africa/Asmera","Africa/Nairobi|Africa/Dar_es_Salaam","Africa/Nairobi|Africa/Djibouti","Africa/Nairobi|Africa/Kampala","Africa/Nairobi|Africa/Mogadishu","Africa/Nairobi|Indian/Antananarivo","Africa/Nairobi|Indian/Comoro","Africa/Nairobi|Indian/Mayotte","Africa/Tripoli|Libya","America/Adak|America/Atka","America/Adak|US/Aleutian","America/Anchorage|US/Alaska","America/Argentina/Buenos_Aires|America/Buenos_Aires","America/Argentina/Catamarca|America/Argentina/ComodRivadavia","America/Argentina/Catamarca|America/Catamarca","America/Argentina/Cordoba|America/Cordoba","America/Argentina/Cordoba|America/Rosario","America/Argentina/Jujuy|America/Jujuy","America/Argentina/Mendoza|America/Mendoza","America/Atikokan|America/Coral_Harbour","America/Chicago|US/Central","America/Curacao|America/Aruba","America/Curacao|America/Kralendijk","America/Curacao|America/Lower_Princes","America/Denver|America/Shiprock","America/Denver|Navajo","America/Denver|US/Mountain","America/Detroit|US/Michigan","America/Edmonton|Canada/Mountain","America/Fort_Wayne|America/Indiana/Indianapolis","America/Fort_Wayne|America/Indianapolis","America/Fort_Wayne|US/East-Indiana","America/Halifax|Canada/Atlantic","America/Havana|Cuba","America/Indiana/Knox|America/Knox_IN","America/Indiana/Knox|US/Indiana-Starke","America/Jamaica|Jamaica","America/Kentucky/Louisville|America/Louisville","America/Los_Angeles|US/Pacific","America/Los_Angeles|US/Pacific-New","America/Manaus|Brazil/West","America/Mazatlan|Mexico/BajaSur","America/Mexico_City|Mexico/General","America/New_York|US/Eastern","America/Noronha|Brazil/DeNoronha","America/Panama|America/Cayman","America/Phoenix|US/Arizona","America/Port_of_Spain|America/Anguilla","America/Port_of_Spain|America/Antigua","America/Port_of_Spain|America/Dominica","America/Port_of_Spain|America/Grenada","America/Port_of_Spain|America/Guadeloupe","America/Port_of_Spain|America/Marigot","America/Port_of_Spain|America/Montserrat","America/Port_of_Spain|America/St_Barthelemy","America/Port_of_Spain|America/St_Kitts","America/Port_of_Spain|America/St_Lucia","America/Port_of_Spain|America/St_Thomas","America/Port_of_Spain|America/St_Vincent","America/Port_of_Spain|America/Tortola","America/Port_of_Spain|America/Virgin","America/Regina|Canada/Saskatchewan","America/Rio_Branco|America/Porto_Acre","America/Rio_Branco|Brazil/Acre","America/Santiago|Chile/Continental","America/Sao_Paulo|Brazil/East","America/St_Johns|Canada/Newfoundland","America/Tijuana|America/Ensenada","America/Tijuana|America/Santa_Isabel","America/Tijuana|Mexico/BajaNorte","America/Toronto|America/Montreal","America/Toronto|Canada/Eastern","America/Vancouver|Canada/Pacific","America/Whitehorse|Canada/Yukon","America/Winnipeg|Canada/Central","Asia/Ashgabat|Asia/Ashkhabad","Asia/Bangkok|Asia/Phnom_Penh","Asia/Bangkok|Asia/Vientiane","Asia/Dhaka|Asia/Dacca","Asia/Dubai|Asia/Muscat","Asia/Ho_Chi_Minh|Asia/Saigon","Asia/Hong_Kong|Hongkong","Asia/Jerusalem|Asia/Tel_Aviv","Asia/Jerusalem|Israel","Asia/Kathmandu|Asia/Katmandu","Asia/Kolkata|Asia/Calcutta","Asia/Kuala_Lumpur|Asia/Singapore","Asia/Kuala_Lumpur|Singapore","Asia/Macau|Asia/Macao","Asia/Makassar|Asia/Ujung_Pandang","Asia/Nicosia|Europe/Nicosia","Asia/Qatar|Asia/Bahrain","Asia/Rangoon|Asia/Yangon","Asia/Riyadh|Asia/Aden","Asia/Riyadh|Asia/Kuwait","Asia/Seoul|ROK","Asia/Shanghai|Asia/Chongqing","Asia/Shanghai|Asia/Chungking","Asia/Shanghai|Asia/Harbin","Asia/Shanghai|PRC","Asia/Taipei|ROC","Asia/Tehran|Iran","Asia/Thimphu|Asia/Thimbu","Asia/Tokyo|Japan","Asia/Ulaanbaatar|Asia/Ulan_Bator","Asia/Urumqi|Asia/Kashgar","Atlantic/Faroe|Atlantic/Faeroe","Atlantic/Reykjavik|Iceland","Atlantic/South_Georgia|Etc/GMT+2","Australia/Adelaide|Australia/South","Australia/Brisbane|Australia/Queensland","Australia/Broken_Hill|Australia/Yancowinna","Australia/Darwin|Australia/North","Australia/Hobart|Australia/Tasmania","Australia/Lord_Howe|Australia/LHI","Australia/Melbourne|Australia/Victoria","Australia/Perth|Australia/West","Australia/Sydney|Australia/ACT","Australia/Sydney|Australia/Canberra","Australia/Sydney|Australia/NSW","Etc/GMT+0|Etc/GMT","Etc/GMT+0|Etc/GMT-0","Etc/GMT+0|Etc/GMT0","Etc/GMT+0|Etc/Greenwich","Etc/GMT+0|GMT","Etc/GMT+0|GMT+0","Etc/GMT+0|GMT-0","Etc/GMT+0|GMT0","Etc/GMT+0|Greenwich","Etc/UCT|UCT","Etc/UTC|Etc/Universal","Etc/UTC|Etc/Zulu","Etc/UTC|UTC","Etc/UTC|Universal","Etc/UTC|Zulu","Europe/Belgrade|Europe/Ljubljana","Europe/Belgrade|Europe/Podgorica","Europe/Belgrade|Europe/Sarajevo","Europe/Belgrade|Europe/Skopje","Europe/Belgrade|Europe/Zagreb","Europe/Chisinau|Europe/Tiraspol","Europe/Dublin|Eire","Europe/Helsinki|Europe/Mariehamn","Europe/Istanbul|Asia/Istanbul","Europe/Istanbul|Turkey","Europe/Lisbon|Portugal","Europe/London|Europe/Belfast","Europe/London|Europe/Guernsey","Europe/London|Europe/Isle_of_Man","Europe/London|Europe/Jersey","Europe/London|GB","Europe/London|GB-Eire","Europe/Moscow|W-SU","Europe/Oslo|Arctic/Longyearbyen","Europe/Oslo|Atlantic/Jan_Mayen","Europe/Prague|Europe/Bratislava","Europe/Rome|Europe/San_Marino","Europe/Rome|Europe/Vatican","Europe/Warsaw|Poland","Europe/Zurich|Europe/Busingen","Europe/Zurich|Europe/Vaduz","Indian/Christmas|Etc/GMT-7","Pacific/Auckland|Antarctica/McMurdo","Pacific/Auckland|Antarctica/South_Pole","Pacific/Auckland|NZ","Pacific/Chatham|NZ-CHAT","Pacific/Easter|Chile/EasterIsland","Pacific/Guam|Pacific/Saipan","Pacific/Honolulu|Pacific/Johnston","Pacific/Honolulu|US/Hawaii","Pacific/Kwajalein|Kwajalein","Pacific/Pago_Pago|Pacific/Midway","Pacific/Pago_Pago|Pacific/Samoa","Pacific/Pago_Pago|US/Samoa","Pacific/Palau|Etc/GMT-9","Pacific/Pohnpei|Etc/GMT-11","Pacific/Pohnpei|Pacific/Ponape","Pacific/Port_Moresby|Etc/GMT-10","Pacific/Port_Moresby|Pacific/Chuuk","Pacific/Port_Moresby|Pacific/Truk","Pacific/Port_Moresby|Pacific/Yap","Pacific/Tarawa|Etc/GMT-12","Pacific/Tarawa|Pacific/Funafuti","Pacific/Tarawa|Pacific/Wake","Pacific/Tarawa|Pacific/Wallis"]}},{}],562:[function(e,t,n){(t.exports=e("./moment-timezone")).tz.load(e("./data/packed/latest.json"))},{"./data/packed/latest.json":561,"./moment-timezone":563}],563:[function(e,t,n){!function(n,r){"use strict";"function"==typeof define&&define.amd?define(["moment"],r):"object"===(void 0===t?"undefined":_typeof2(t))&&t.exports?t.exports=r(e("moment")):r(n.moment)}(this,function(e){"use strict";function t(e){return e>96?e-87:e>64?e-29:e-48}function n(e){var n,r=0,i=e.split("."),a=i[0],o=i[1]||"",s=1,c=0,l=1;for(45===e.charCodeAt(0)&&(r=1,l=-1),r;r<a.length;r++)n=t(a.charCodeAt(r)),c=60*c+n;for(r=0;r<o.length;r++)s/=60,n=t(o.charCodeAt(r)),c+=n*s;return c*l}function r(e){for(var t=0;t<e.length;t++)e[t]=n(e[t])}function i(e,t){for(var n=0;n<t;n++)e[n]=Math.round((e[n-1]||0)+6e4*e[n]);e[t-1]=1/0}function a(e,t){var n,r=[];for(n=0;n<t.length;n++)r[n]=e[t[n]];return r}function o(e){var t=e.split("|"),n=t[2].split(" "),o=t[3].split(""),s=t[4].split(" ");return r(n),r(o),r(s),i(s,o.length),{name:t[0],abbrs:a(t[1].split(" "),o),offsets:a(n,o),untils:s,population:0|t[5]}}function s(e){e&&this._set(o(e))}function c(e){var t=e.toTimeString(),n=t.match(/\([a-z ]+\)/i);n&&n[0]?(n=n[0].match(/[A-Z]/g),n=n?n.join(""):void 0):(n=t.match(/[A-Z]{3,5}/g),n=n?n[0]:void 0),"GMT"===n&&(n=void 0),this.at=+e,this.abbr=n,this.offset=e.getTimezoneOffset()}function l(e){this.zone=e,this.offsetScore=0,this.abbrScore=0}function u(e,t){for(var n,r;r=6e4*((t.at-e.at)/12e4|0);)n=new c(new Date(e.at+r)),n.offset===e.offset?e=n:t=n;return e}function d(){var e,t,n,r=(new Date).getFullYear()-2,i=new c(new Date(r,0,1)),a=[i];for(n=1;n<48;n++)t=new c(new Date(r,n,1)),t.offset!==i.offset&&(e=u(i,t),a.push(e),a.push(new c(new Date(e.at+6e4)))),i=t;for(n=0;n<4;n++)a.push(new c(new Date(r+n,0,1))),a.push(new c(new Date(r+n,6,1)));return a}function p(e,t){return e.offsetScore!==t.offsetScore?e.offsetScore-t.offsetScore:e.abbrScore!==t.abbrScore?e.abbrScore-t.abbrScore:t.zone.population-e.zone.population}function f(e,t){var n,i;for(r(t),n=0;n<t.length;n++)i=t[n],z[i]=z[i]||{},z[i][e]=!0}function h(e){var t,n,r,i=e.length,a={},o=[];for(t=0;t<i;t++){r=z[e[t].offset]||{};for(n in r)r.hasOwnProperty(n)&&(a[n]=!0)}for(t in a)a.hasOwnProperty(t)&&o.push(O[t]);return o}function m(){try{var e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(e&&e.length>3){var t=O[v(e)];if(t)return t;S("Moment Timezone found "+e+" from the Intl api, but did not have that data loaded.")}}catch(e){}var n,r,i,a=d(),o=a.length,s=h(a),c=[];for(r=0;r<s.length;r++){for(n=new l(y(s[r]),o),i=0;i<o;i++)n.scoreOffsetAt(a[i]);c.push(n)}return c.sort(p),c.length>0?c[0].zone.name:void 0}function g(e){return T&&!e||(T=m()),T}function v(e){return(e||"").toLowerCase().replace(/\//g,"_")}function b(e){var t,n,r,i;for("string"==typeof e&&(e=[e]),t=0;t<e.length;t++)r=e[t].split("|"),n=r[0],i=v(n),C[i]=e[t],O[i]=n,f(i,r[2].split(" "))}function y(e,t){e=v(e);var n,r=C[e];return r instanceof s?r:"string"==typeof r?(r=new s(r),C[e]=r,r):E[e]&&t!==y&&(n=y(E[e],y))?(r=C[e]=new s,r._set(n),r.name=O[e],r):null}function x(){var e,t=[];for(e in O)O.hasOwnProperty(e)&&(C[e]||C[E[e]])&&O[e]&&t.push(O[e]);return t.sort()}function M(e){var t,n,r,i;for("string"==typeof e&&(e=[e]),t=0;t<e.length;t++)n=e[t].split("|"),r=v(n[0]),i=v(n[1]),E[r]=i,O[r]=n[0],E[i]=r,O[i]=n[1]}function _(e){b(e.zones),M(e.links),k.dataVersion=e.version}function w(e){return w.didShowError||(w.didShowError=!0,S("moment.tz.zoneExists('"+e+"') has been deprecated in favor of !moment.tz.zone('"+e+"')")),!!y(e)}function A(e){var t="X"===e._f||"x"===e._f;return!(!e._a||void 0!==e._tzm||t)}function S(e){"undefined"!=typeof console&&console.error}function k(t){var n=Array.prototype.slice.call(arguments,0,-1),r=arguments[arguments.length-1],i=y(r),a=e.utc.apply(null,n);return i&&!e.isMoment(t)&&A(a)&&a.add(i.parse(a),"minutes"),a.tz(r),a}function $(e){return function(){return this._z?this._z.abbr(this):e.call(this)}}var T,C={},E={},O={},z={},L=e.version.split("."),N=+L[0],P=+L[1];(N<2||2===N&&P<6)&&S("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+e.version+". See momentjs.com"),s.prototype={_set:function(e){this.name=e.name,this.abbrs=e.abbrs,this.untils=e.untils,this.offsets=e.offsets,this.population=e.population},_index:function(e){var t,n=+e,r=this.untils;for(t=0;t<r.length;t++)if(n<r[t])return t},parse:function(e){var t,n,r,i,a=+e,o=this.offsets,s=this.untils,c=s.length-1;for(i=0;i<c;i++)if(t=o[i],n=o[i+1],r=o[i?i-1:i],t<n&&k.moveAmbiguousForward?t=n:t>r&&k.moveInvalidForward&&(t=r),a<s[i]-6e4*t)return o[i];return o[c]},abbr:function(e){return this.abbrs[this._index(e)]},offset:function(e){return S("zone.offset has been deprecated in favor of zone.utcOffset"),this.offsets[this._index(e)]},utcOffset:function(e){return this.offsets[this._index(e)]}},l.prototype.scoreOffsetAt=function(e){this.offsetScore+=Math.abs(this.zone.utcOffset(e.at)-e.offset),this.zone.abbr(e.at).replace(/[^A-Z]/g,"")!==e.abbr&&this.abbrScore++},k.version="0.5.14",k.dataVersion="",k._zones=C,k._links=E,k._names=O,k.add=b,k.link=M,k.load=_,k.zone=y,k.zoneExists=w,k.guess=g,k.names=x,k.Zone=s,k.unpack=o,k.unpackBase60=n,k.needsOffset=A,k.moveInvalidForward=!0,k.moveAmbiguousForward=!1;var I=e.fn;e.tz=k,e.defaultZone=null,e.updateOffset=function(t,n){var r,i=e.defaultZone;void 0===t._z&&(i&&A(t)&&!t._isUTC&&(t._d=e.utc(t._a)._d,t.utc().add(i.parse(t),"minutes")),t._z=i),t._z&&(r=t._z.utcOffset(t),Math.abs(r)<16&&(r/=60),void 0!==t.utcOffset?t.utcOffset(-r,n):t.zone(r,n))},I.tz=function(t,n){return t?(this._z=y(t),this._z?e.updateOffset(this,n):S("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this):this._z?this._z.name:void 0},I.zoneName=$(I.zoneName),I.zoneAbbr=$(I.zoneAbbr),I.utc=function(e){return function(){return this._z=null,e.apply(this,arguments)}}(I.utc),e.tz.setDefault=function(t){return(N<2||2===N&&P<9)&&S("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?y(t):null,e};var D=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(D)?(D.push("_z"),D.push("_a")):D&&(D._z=null),e})},{moment:564}],564:[function(e,t,n){!function(e,r){"object"===(void 0===n?"undefined":_typeof2(n))&&void 0!==t?t.exports=r():"function"==typeof define&&define.amd?define(r):e.moment=r()}(this,function(){"use strict";function n(){return xr.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e){var t;for(t in e)return!1;return!0}function o(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d(e,t){for(var n in t)u(t,n)&&(e[n]=t[n]);return u(t,"toString")&&(e.toString=t.toString),u(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return yt(e,t,n,r,!0).utc()}function f(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function h(e){return null==e._pf&&(e._pf=f()),e._pf}function m(e){if(null==e._isValid){var t=h(e),n=_r.call(t.parsedDateParts,function(e){return null!=e}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function g(e){var t=p(NaN);return null!=e?d(h(t),e):h(t).userInvalidated=!0,t}function v(e,t){var n,r,i;if(o(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),o(t._i)||(e._i=t._i),o(t._f)||(e._f=t._f),o(t._l)||(e._l=t._l),o(t._strict)||(e._strict=t._strict),o(t._tzm)||(e._tzm=t._tzm),o(t._isUTC)||(e._isUTC=t._isUTC),o(t._offset)||(e._offset=t._offset),o(t._pf)||(e._pf=h(t)),o(t._locale)||(e._locale=t._locale),wr.length>0)for(n=0;n<wr.length;n++)r=wr[n],i=t[r],o(i)||(e[r]=i);return e}function b(e){v(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Ar&&(Ar=!0,n.updateOffset(this),Ar=!1)}function y(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function x(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function M(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=x(t)),n}function _(e,t,n){var r,i=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),o=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&M(e[r])!==M(t[r]))&&o++;return o+a}function w(e){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn}function A(e,t){var r=!0;return d(function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,e),r){for(var i,a=[],o=0;o<arguments.length;o++){if(i="","object"===_typeof2(arguments[o])){i+="\n["+o+"] ";for(var s in arguments[0])i+=s+": "+arguments[0][s]+", ";i=i.slice(0,-2)}else i=arguments[o];a.push(i)}w(e+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),r=!1}return t.apply(this,arguments)},t)}function S(e,t){null!=n.deprecationHandler&&n.deprecationHandler(e,t),Sr[e]||(w(t),Sr[e]=!0)}function k(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function $(e){var t,n;for(n in e)t=e[n],k(t)?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function T(e,t){var n,r=d({},e);for(n in t)u(t,n)&&(i(e[n])&&i(t[n])?(r[n]={},d(r[n],e[n]),d(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)u(e,n)&&!u(t,n)&&i(e[n])&&(r[n]=d({},r[n]));return r}function C(e){null!=e&&this.set(e)}function E(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return k(r)?r.call(t,n):r}function O(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function z(){return this._invalidDate}function L(e){return this._ordinal.replace("%d",e)}function N(e,t,n,r){var i=this._relativeTime[n];return k(i)?i(e,t,n,r):i.replace(/%d/i,e)}function P(e,t){var n=this._relativeTime[e>0?"future":"past"];return k(n)?n(t):n.replace(/%s/i,t)}function I(e,t){var n=e.toLowerCase();Lr[n]=Lr[n+"s"]=Lr[t]=e}function D(e){return"string"==typeof e?Lr[e]||Lr[e.toLowerCase()]:void 0}function R(e){var t,n,r={};for(n in e)u(e,n)&&(t=D(n))&&(r[t]=e[n]);return r}function j(e,t){Nr[e]=t}function q(e){var t=[];for(var n in e)t.push({unit:n,priority:Nr[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function B(e,t){return function(r){return null!=r?(H(this,e,r),n.updateOffset(this,t),this):W(this,e)}}function W(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function H(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function F(e){return e=D(e),k(this[e])?this[e]():this}function X(e,t){if("object"===(void 0===e?"undefined":_typeof2(e))){e=R(e);for(var n=q(e),r=0;r<n.length;r++)this[n[r].unit](e[n[r].unit])}else if(e=D(e),k(this[e]))return this[e](t);return this}function U(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}function V(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(Rr[e]=i),t&&(Rr[t[0]]=function(){return U(i.apply(this,arguments),t[1],t[2])}),n&&(Rr[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function G(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Y(e){var t,n,r=e.match(Pr);for(t=0,n=r.length;t<n;t++)Rr[r[t]]?r[t]=Rr[r[t]]:r[t]=G(r[t]);return function(t){var i,a="";for(i=0;i<n;i++)a+=k(r[i])?r[i].call(t,e):r[i];return a}}function Q(e,t){return e.isValid()?(t=K(t,e.localeData()),Dr[t]=Dr[t]||Y(t),Dr[t](e)):e.localeData().invalidDate()}function K(e,t){function n(e){return t.longDateFormat(e)||e}var r=5;for(Ir.lastIndex=0;r>=0&&Ir.test(e);)e=e.replace(Ir,n),Ir.lastIndex=0,r-=1;return e}function Z(e,t,n){ni[e]=k(t)?t:function(e,r){return e&&n?n:t}}function J(e,t){return u(ni,e)?ni[e](t._strict,t._locale):new RegExp(ee(e))}function ee(e){return te(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}))}function te(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ne(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),s(t)&&(r=function(e,n){n[t]=M(e)}),n=0;n<e.length;n++)ri[e[n]]=r}function re(e,t){ne(e,function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)})}function ie(e,t,n){null!=t&&u(ri,e)&&ri[e](t,n._a,n,e)}function ae(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function oe(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||hi).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone}function se(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[hi.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ce(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?(i=fi.call(this._shortMonthsParse,o),-1!==i?i:null):(i=fi.call(this._longMonthsParse,o),-1!==i?i:null):"MMM"===t?-1!==(i=fi.call(this._shortMonthsParse,o))?i:(i=fi.call(this._longMonthsParse,o),-1!==i?i:null):-1!==(i=fi.call(this._longMonthsParse,o))?i:(i=fi.call(this._shortMonthsParse,o),-1!==i?i:null)}function le(e,t,n){var r,i,a;if(this._monthsParseExact)return ce.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function ue(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=M(t);else if(t=e.localeData().monthsParse(t),!s(t))return e;return n=Math.min(e.date(),ae(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function de(e){return null!=e?(ue(this,e),n.updateOffset(this,!0),this):W(this,"Month")}function pe(){return ae(this.year(),this.month())}function fe(e){return this._monthsParseExact?(u(this,"_monthsRegex")||me.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=vi),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function he(e){return this._monthsParseExact?(u(this,"_monthsRegex")||me.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=bi),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function me(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],a=[];for(t=0;t<12;t++)n=p([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),a.sort(e),t=0;t<12;t++)r[t]=te(r[t]),i[t]=te(i[t]);for(t=0;t<24;t++)a[t]=te(a[t]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function ge(e){return ve(e)?366:365}function ve(e){return e%4==0&&e%100!=0||e%400==0}function be(){return ve(this.year())}function ye(e,t,n,r,i,a,o){var s=new Date(e,t,n,r,i,a,o);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function xe(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Me(e,t,n){var r=7+t-n;return-(7+xe(e,0,r).getUTCDay()-t)%7+r-1}function _e(e,t,n,r,i){var a,o,s=(7+n-r)%7,c=Me(e,r,i),l=1+7*(t-1)+s+c;return l<=0?(a=e-1,o=ge(a)+l):l>ge(e)?(a=e+1,o=l-ge(e)):(a=e,o=l),{year:a,dayOfYear:o}}function we(e,t,n){var r,i,a=Me(e.year(),t,n),o=Math.floor((e.dayOfYear()-a-1)/7)+1;return o<1?(i=e.year()-1,r=o+Ae(i,t,n)):o>Ae(e.year(),t,n)?(r=o-Ae(e.year(),t,n),i=e.year()+1):(i=e.year(),r=o),{week:r,year:i}}function Ae(e,t,n){var r=Me(e,t,n),i=Me(e+1,t,n);return(ge(e)-r+i)/7}function Se(e){return we(e,this._week.dow,this._week.doy).week}function ke(){return this._week.dow}function $e(){return this._week.doy}function Te(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Ce(e){var t=we(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Ee(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Oe(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function ze(e,t){return e?r(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:r(this._weekdays)?this._weekdays:this._weekdays.standalone}function Le(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ne(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Pe(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?(i=fi.call(this._weekdaysParse,o),-1!==i?i:null):"ddd"===t?(i=fi.call(this._shortWeekdaysParse,o),-1!==i?i:null):(i=fi.call(this._minWeekdaysParse,o),-1!==i?i:null):"dddd"===t?-1!==(i=fi.call(this._weekdaysParse,o))?i:-1!==(i=fi.call(this._shortWeekdaysParse,o))?i:(i=fi.call(this._minWeekdaysParse,o),-1!==i?i:null):"ddd"===t?-1!==(i=fi.call(this._shortWeekdaysParse,o))?i:-1!==(i=fi.call(this._weekdaysParse,o))?i:(i=fi.call(this._minWeekdaysParse,o),-1!==i?i:null):-1!==(i=fi.call(this._minWeekdaysParse,o))?i:-1!==(i=fi.call(this._weekdaysParse,o))?i:(i=fi.call(this._shortWeekdaysParse,o),-1!==i?i:null)}function Ie(e,t,n){var r,i,a;if(this._weekdaysParseExact)return Pe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function De(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Ee(e,this.localeData()),this.add(e-t,"d")):t}function Re(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function je(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Oe(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function qe(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||He.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Ai),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Be(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||He.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Si),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function We(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||He.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ki),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function He(){function e(e,t){return t.length-e.length}var t,n,r,i,a,o=[],s=[],c=[],l=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),a=this.weekdays(n,""),o.push(r),s.push(i),c.push(a),l.push(r),l.push(i),l.push(a);for(o.sort(e),s.sort(e),c.sort(e),l.sort(e),t=0;t<7;t++)s[t]=te(s[t]),c[t]=te(c[t]),l[t]=te(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Fe(){return this.hours()%12||12}function Xe(){return this.hours()||24}function Ue(e,t){V(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ve(e,t){return t._meridiemParse}function Ge(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ye(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Qe(e){return e?e.toLowerCase().replace("_","-"):e}function Ke(e){for(var t,n,r,i,a=0;a<e.length;){for(i=Qe(e[a]).split("-"),t=i.length,n=Qe(e[a+1]),n=n?n.split("-"):null;t>0;){if(r=Ze(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&_(i,n,!0)>=t-1)break;t--}a++}return null}function Ze(n){var r=null;if(!Oi[n]&&void 0!==t&&t&&t.exports)try{r=$i._abbr,e("./locale/"+n),Je(r)}catch(e){}return Oi[n]}function Je(e,t){var n;return e&&(n=o(t)?nt(e):et(e,t))&&($i=n),$i._abbr}function et(e,t){if(null!==t){var n=Ei;if(t.abbr=e,null!=Oi[e])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Oi[e]._config;else if(null!=t.parentLocale){if(null==Oi[t.parentLocale])return zi[t.parentLocale]||(zi[t.parentLocale]=[]),zi[t.parentLocale].push({name:e,config:t}),null;n=Oi[t.parentLocale]._config}return Oi[e]=new C(T(n,t)),zi[e]&&zi[e].forEach(function(e){et(e.name,e.config)}),Je(e),Oi[e]}return delete Oi[e],null}function tt(e,t){if(null!=t){var n,r=Ei;null!=Oi[e]&&(r=Oi[e]._config),t=T(r,t),n=new C(t),n.parentLocale=Oi[e],Oi[e]=n,Je(e)}else null!=Oi[e]&&(null!=Oi[e].parentLocale?Oi[e]=Oi[e].parentLocale:null!=Oi[e]&&delete Oi[e]);return Oi[e]}function nt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return $i;if(!r(e)){if(t=Ze(e))return t;e=[e]}return Ke(e)}function rt(){return Tr(Oi)}function it(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[ai]<0||n[ai]>11?ai:n[oi]<1||n[oi]>ae(n[ii],n[ai])?oi:n[si]<0||n[si]>24||24===n[si]&&(0!==n[ci]||0!==n[li]||0!==n[ui])?si:n[ci]<0||n[ci]>59?ci:n[li]<0||n[li]>59?li:n[ui]<0||n[ui]>999?ui:-1,h(e)._overflowDayOfYear&&(t<ii||t>oi)&&(t=oi),h(e)._overflowWeeks&&-1===t&&(t=di),h(e)._overflowWeekday&&-1===t&&(t=pi),h(e).overflow=t),e}function at(e){var t,n,r,i,a,o,s=e._i,c=Li.exec(s)||Ni.exec(s);if(c){for(h(e).iso=!0,t=0,n=Ii.length;t<n;t++)if(Ii[t][1].exec(c[1])){i=Ii[t][0],r=!1!==Ii[t][2];break}if(null==i)return void(e._isValid=!1);if(c[3]){for(t=0,n=Di.length;t<n;t++)if(Di[t][1].exec(c[3])){a=(c[2]||" ")+Di[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(c[4]){if(!Pi.exec(c[4]))return void(e._isValid=!1);o="Z"}e._f=i+(a||"")+(o||""),pt(e)}else e._isValid=!1}function ot(e){var t,n,r,i,a,o,s,c,l={" GMT":" +0000"," EDT":" -0400"," EST":" -0500"," CDT":" -0500"," CST":" -0600"," MDT":" -0600"," MST":" -0700"," PDT":" -0700"," PST":" -0800"
57},u="YXWVUTSRQPONZABCDEFGHIKLM";if(t=e._i.replace(/\([^\)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s|\s$/g,""),n=ji.exec(t)){if(r=n[1]?"ddd"+(5===n[1].length?", ":" "):"",i="D MMM "+(n[2].length>10?"YYYY ":"YY "),a="HH:mm"+(n[4]?":ss":""),n[1]){var d=new Date(n[2]),p=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][d.getDay()];if(n[1].substr(0,3)!==p)return h(e).weekdayMismatch=!0,void(e._isValid=!1)}switch(n[5].length){case 2:0===c?s=" +0000":(c=u.indexOf(n[5][1].toUpperCase())-12,s=(c<0?" -":" +")+(""+c).replace(/^-?/,"0").match(/..$/)[0]+"00");break;case 4:s=l[n[5]];break;default:s=l[" GMT"]}n[5]=s,e._i=n.splice(1).join(""),o=" ZZ",e._f=r+i+a+o,pt(e),h(e).rfc2822=!0}else e._isValid=!1}function st(e){var t=Ri.exec(e._i);if(null!==t)return void(e._d=new Date(+t[1]));at(e),!1===e._isValid&&(delete e._isValid,ot(e),!1===e._isValid&&(delete e._isValid,n.createFromInputFallback(e)))}function ct(e,t,n){return null!=e?e:null!=t?t:n}function lt(e){var t=new Date(n.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function ut(e){var t,n,r,i,a=[];if(!e._d){for(r=lt(e),e._w&&null==e._a[oi]&&null==e._a[ai]&&dt(e),null!=e._dayOfYear&&(i=ct(e._a[ii],r[ii]),(e._dayOfYear>ge(i)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=xe(i,0,e._dayOfYear),e._a[ai]=n.getUTCMonth(),e._a[oi]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[si]&&0===e._a[ci]&&0===e._a[li]&&0===e._a[ui]&&(e._nextDay=!0,e._a[si]=0),e._d=(e._useUTC?xe:ye).apply(null,a),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[si]=24)}}function dt(e){var t,n,r,i,a,o,s,c;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)a=1,o=4,n=ct(t.GG,e._a[ii],we(xt(),1,4).year),r=ct(t.W,1),((i=ct(t.E,1))<1||i>7)&&(c=!0);else{a=e._locale._week.dow,o=e._locale._week.doy;var l=we(xt(),a,o);n=ct(t.gg,e._a[ii],l.year),r=ct(t.w,l.week),null!=t.d?((i=t.d)<0||i>6)&&(c=!0):null!=t.e?(i=t.e+a,(t.e<0||t.e>6)&&(c=!0)):i=a}r<1||r>Ae(n,a,o)?h(e)._overflowWeeks=!0:null!=c?h(e)._overflowWeekday=!0:(s=_e(n,r,i,a,o),e._a[ii]=s.year,e._dayOfYear=s.dayOfYear)}function pt(e){if(e._f===n.ISO_8601)return void at(e);if(e._f===n.RFC_2822)return void ot(e);e._a=[],h(e).empty=!0;var t,r,i,a,o,s=""+e._i,c=s.length,l=0;for(i=K(e._f,e._locale).match(Pr)||[],t=0;t<i.length;t++)a=i[t],r=(s.match(J(a,e))||[])[0],r&&(o=s.substr(0,s.indexOf(r)),o.length>0&&h(e).unusedInput.push(o),s=s.slice(s.indexOf(r)+r.length),l+=r.length),Rr[a]?(r?h(e).empty=!1:h(e).unusedTokens.push(a),ie(a,r,e)):e._strict&&!r&&h(e).unusedTokens.push(a);h(e).charsLeftOver=c-l,s.length>0&&h(e).unusedInput.push(s),e._a[si]<=12&&!0===h(e).bigHour&&e._a[si]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[si]=ft(e._locale,e._a[si],e._meridiem),ut(e),it(e)}function ft(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function ht(e){var t,n,r,i,a;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)a=0,t=v({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],pt(t),m(t)&&(a+=h(t).charsLeftOver,a+=10*h(t).unusedTokens.length,h(t).score=a,(null==r||a<r)&&(r=a,n=t));d(e,n||t)}function mt(e){if(!e._d){var t=R(e._i);e._a=l([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),ut(e)}}function gt(e){var t=new b(it(vt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function vt(e){var t=e._i,n=e._f;return e._locale=e._locale||nt(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),y(t)?new b(it(t)):(c(t)?e._d=t:r(n)?ht(e):n?pt(e):bt(e),m(e)||(e._d=null),e))}function bt(e){var t=e._i;o(t)?e._d=new Date(n.now()):c(t)?e._d=new Date(t.valueOf()):"string"==typeof t?st(e):r(t)?(e._a=l(t.slice(0),function(e){return parseInt(e,10)}),ut(e)):i(t)?mt(e):s(t)?e._d=new Date(t):n.createFromInputFallback(e)}function yt(e,t,n,o,s){var c={};return!0!==n&&!1!==n||(o=n,n=void 0),(i(e)&&a(e)||r(e)&&0===e.length)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=s,c._l=n,c._i=e,c._f=t,c._strict=o,gt(c)}function xt(e,t,n,r){return yt(e,t,n,r,!1)}function Mt(e,t){var n,i;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return xt();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}function _t(){return Mt("isBefore",[].slice.call(arguments,0))}function wt(){return Mt("isAfter",[].slice.call(arguments,0))}function At(e){for(var t in e)if(-1===Hi.indexOf(t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,r=0;r<Hi.length;++r)if(e[Hi[r]]){if(n)return!1;parseFloat(e[Hi[r]])!==M(e[Hi[r]])&&(n=!0)}return!0}function St(){return this._isValid}function kt(){return Xt(NaN)}function $t(e){var t=R(e),n=t.year||0,r=t.quarter||0,i=t.month||0,a=t.week||0,o=t.day||0,s=t.hour||0,c=t.minute||0,l=t.second||0,u=t.millisecond||0;this._isValid=At(t),this._milliseconds=+u+1e3*l+6e4*c+1e3*s*60*60,this._days=+o+7*a,this._months=+i+3*r+12*n,this._data={},this._locale=nt(),this._bubble()}function Tt(e){return e instanceof $t}function Ct(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Et(e,t){V(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+U(~~(e/60),2)+t+U(~~e%60,2)})}function Ot(e,t){var n=(t||"").match(e);if(null===n)return null;var r=n[n.length-1]||[],i=(r+"").match(Fi)||["-",0,0],a=60*i[1]+M(i[2]);return 0===a?0:"+"===i[0]?a:-a}function zt(e,t){var r,i;return t._isUTC?(r=t.clone(),i=(y(e)||c(e)?e.valueOf():xt(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+i),n.updateOffset(r,!1),r):xt(e).local()}function Lt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Nt(e,t,r){var i,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ot(Jr,e)))return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&t&&(i=Lt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==e&&(!t||this._changeInProgress?Qt(this,Xt(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:Lt(this)}function Pt(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function It(e){return this.utcOffset(0,e)}function Dt(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Lt(this),"m")),this}function Rt(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ot(Zr,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function jt(e){return!!this.isValid()&&(e=e?xt(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function qt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Bt(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e={};if(v(e,this),e=vt(e),e._a){var t=e._isUTC?p(e._a):xt(e._a);this._isDSTShifted=this.isValid()&&_(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Wt(){return!!this.isValid()&&!this._isUTC}function Ht(){return!!this.isValid()&&this._isUTC}function Ft(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Xt(e,t){var n,r,i,a=e,o=null;return Tt(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:s(e)?(a={},t?a[t]=e:a.milliseconds=e):(o=Xi.exec(e))?(n="-"===o[1]?-1:1,a={y:0,d:M(o[oi])*n,h:M(o[si])*n,m:M(o[ci])*n,s:M(o[li])*n,ms:M(Ct(1e3*o[ui]))*n}):(o=Ui.exec(e))?(n="-"===o[1]?-1:1,a={y:Ut(o[2],n),M:Ut(o[3],n),w:Ut(o[4],n),d:Ut(o[5],n),h:Ut(o[6],n),m:Ut(o[7],n),s:Ut(o[8],n)}):null==a?a={}:"object"===(void 0===a?"undefined":_typeof2(a))&&("from"in a||"to"in a)&&(i=Gt(xt(a.from),xt(a.to)),a={},a.ms=i.milliseconds,a.M=i.months),r=new $t(a),Tt(e)&&u(e,"_locale")&&(r._locale=e._locale),r}function Ut(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Vt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Gt(e,t){var n;return e.isValid()&&t.isValid()?(t=zt(t,e),e.isBefore(t)?n=Vt(e,t):(n=Vt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Yt(e,t){return function(n,r){var i,a;return null===r||isNaN(+r)||(S(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),n="string"==typeof n?+n:n,i=Xt(n,r),Qt(this,i,e),this}}function Qt(e,t,r,i){var a=t._milliseconds,o=Ct(t._days),s=Ct(t._months);e.isValid()&&(i=null==i||i,a&&e._d.setTime(e._d.valueOf()+a*r),o&&H(e,"Date",W(e,"Date")+o*r),s&&ue(e,W(e,"Month")+s*r),i&&n.updateOffset(e,o||s))}function Kt(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Zt(e,t){var r=e||xt(),i=zt(r,this).startOf("day"),a=n.calendarFormat(this,i)||"sameElse",o=t&&(k(t[a])?t[a].call(this,r):t[a]);return this.format(o||this.localeData().calendar(a,this,xt(r)))}function Jt(){return new b(this)}function en(e,t){var n=y(e)?e:xt(e);return!(!this.isValid()||!n.isValid())&&(t=D(o(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function tn(e,t){var n=y(e)?e:xt(e);return!(!this.isValid()||!n.isValid())&&(t=D(o(t)?"millisecond":t),"millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function nn(e,t,n,r){return r=r||"()",("("===r[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))}function rn(e,t){var n,r=y(e)?e:xt(e);return!(!this.isValid()||!r.isValid())&&(t=D(t||"millisecond"),"millisecond"===t?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function an(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function on(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function sn(e,t,n){var r,i,a,o;return this.isValid()?(r=zt(e,this),r.isValid()?(i=6e4*(r.utcOffset()-this.utcOffset()),t=D(t),"year"===t||"month"===t||"quarter"===t?(o=cn(this,r),"quarter"===t?o/=3:"year"===t&&(o/=12)):(a=this-r,o="second"===t?a/1e3:"minute"===t?a/6e4:"hour"===t?a/36e5:"day"===t?(a-i)/864e5:"week"===t?(a-i)/6048e5:a),n?o:x(o)):NaN):NaN}function cn(e,t){var n,r,i=12*(t.year()-e.year())+(t.month()-e.month()),a=e.clone().add(i,"months");return t-a<0?(n=e.clone().add(i-1,"months"),r=(t-a)/(a-n)):(n=e.clone().add(i+1,"months"),r=(t-a)/(n-a)),-(i+r)||0}function ln(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function un(){if(!this.isValid())return null;var e=this.clone().utc();return e.year()<0||e.year()>9999?Q(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):k(Date.prototype.toISOString)?this.toDate().toISOString():Q(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function dn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)}function pn(e){e||(e=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var t=Q(this,e);return this.localeData().postformat(t)}function fn(e,t){return this.isValid()&&(y(e)&&e.isValid()||xt(e).isValid())?Xt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function hn(e){return this.from(xt(),e)}function mn(e,t){return this.isValid()&&(y(e)&&e.isValid()||xt(e).isValid())?Xt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function gn(e){return this.to(xt(),e)}function vn(e){var t;return void 0===e?this._locale._abbr:(t=nt(e),null!=t&&(this._locale=t),this)}function bn(){return this._locale}function yn(e){switch(e=D(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function xn(e){return void 0===(e=D(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function Mn(){return this._d.valueOf()-6e4*(this._offset||0)}function _n(){return Math.floor(this.valueOf()/1e3)}function wn(){return new Date(this.valueOf())}function An(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Sn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function kn(){return this.isValid()?this.toISOString():null}function $n(){return m(this)}function Tn(){return d({},h(this))}function Cn(){return h(this).overflow}function En(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function On(e,t){V(0,[e,e.length],0,t)}function zn(e){return In.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Ln(e){return In.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Nn(){return Ae(this.year(),1,4)}function Pn(){var e=this.localeData()._week;return Ae(this.year(),e.dow,e.doy)}function In(e,t,n,r,i){var a;return null==e?we(this,r,i).year:(a=Ae(e,r,i),t>a&&(t=a),Dn.call(this,e,t,n,r,i))}function Dn(e,t,n,r,i){var a=_e(e,t,n,r,i),o=xe(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Rn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function jn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function qn(e,t){t[ui]=M(1e3*("0."+e))}function Bn(){return this._isUTC?"UTC":""}function Wn(){return this._isUTC?"Coordinated Universal Time":""}function Hn(e){return xt(1e3*e)}function Fn(){return xt.apply(null,arguments).parseZone()}function Xn(e){return e}function Un(e,t,n,r){var i=nt(),a=p().set(r,t);return i[n](a,e)}function Vn(e,t,n){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return Un(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Un(e,r,n,"month");return i}function Gn(e,t,n,r){"boolean"==typeof e?(s(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,s(t)&&(n=t,t=void 0),t=t||"");var i=nt(),a=e?i._week.dow:0;if(null!=n)return Un(t,(n+a)%7,r,"day");var o,c=[];for(o=0;o<7;o++)c[o]=Un(t,(o+a)%7,r,"day");return c}function Yn(e,t){return Vn(e,t,"months")}function Qn(e,t){return Vn(e,t,"monthsShort")}function Kn(e,t,n){return Gn(e,t,n,"weekdays")}function Zn(e,t,n){return Gn(e,t,n,"weekdaysShort")}function Jn(e,t,n){return Gn(e,t,n,"weekdaysMin")}function er(){var e=this._data;return this._milliseconds=ra(this._milliseconds),this._days=ra(this._days),this._months=ra(this._months),e.milliseconds=ra(e.milliseconds),e.seconds=ra(e.seconds),e.minutes=ra(e.minutes),e.hours=ra(e.hours),e.months=ra(e.months),e.years=ra(e.years),this}function tr(e,t,n,r){var i=Xt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function nr(e,t){return tr(this,e,t,1)}function rr(e,t){return tr(this,e,t,-1)}function ir(e){return e<0?Math.floor(e):Math.ceil(e)}function ar(){var e,t,n,r,i,a=this._milliseconds,o=this._days,s=this._months,c=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*ir(sr(s)+o),o=0,s=0),c.milliseconds=a%1e3,e=x(a/1e3),c.seconds=e%60,t=x(e/60),c.minutes=t%60,n=x(t/60),c.hours=n%24,o+=x(n/24),i=x(or(o)),s+=i,o-=ir(sr(i)),r=x(s/12),s%=12,c.days=o,c.months=s,c.years=r,this}function or(e){return 4800*e/146097}function sr(e){return 146097*e/4800}function cr(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=D(e))||"year"===e)return t=this._days+r/864e5,n=this._months+or(t),"month"===e?n:n/12;switch(t=this._days+Math.round(sr(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function lr(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*M(this._months/12):NaN}function ur(e){return function(){return this.as(e)}}function dr(e){return e=D(e),this.isValid()?this[e+"s"]():NaN}function pr(e){return function(){return this.isValid()?this._data[e]:NaN}}function fr(){return x(this.days()/7)}function hr(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function mr(e,t,n){var r=Xt(e).abs(),i=ya(r.as("s")),a=ya(r.as("m")),o=ya(r.as("h")),s=ya(r.as("d")),c=ya(r.as("M")),l=ya(r.as("y")),u=i<=xa.ss&&["s",i]||i<xa.s&&["ss",i]||a<=1&&["m"]||a<xa.m&&["mm",a]||o<=1&&["h"]||o<xa.h&&["hh",o]||s<=1&&["d"]||s<xa.d&&["dd",s]||c<=1&&["M"]||c<xa.M&&["MM",c]||l<=1&&["y"]||["yy",l];return u[2]=t,u[3]=+e>0,u[4]=n,hr.apply(null,u)}function gr(e){return void 0===e?ya:"function"==typeof e&&(ya=e,!0)}function vr(e,t){return void 0!==xa[e]&&(void 0===t?xa[e]:(xa[e]=t,"s"===e&&(xa.ss=t-1),!0))}function br(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=mr(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function yr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r=Ma(this._milliseconds)/1e3,i=Ma(this._days),a=Ma(this._months);e=x(r/60),t=x(e/60),r%=60,e%=60,n=x(a/12),a%=12;var o=n,s=a,c=i,l=t,u=e,d=r,p=this.asSeconds();return p?(p<0?"-":"")+"P"+(o?o+"Y":"")+(s?s+"M":"")+(c?c+"D":"")+(l||u||d?"T":"")+(l?l+"H":"")+(u?u+"M":"")+(d?d+"S":""):"P0D"}var xr,Mr;Mr=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};var _r=Mr,wr=n.momentProperties=[],Ar=!1,Sr={};n.suppressDeprecationWarnings=!1,n.deprecationHandler=null;var kr;kr=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)u(e,t)&&n.push(t);return n};var $r,Tr=kr,Cr={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Er={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Or=/\d{1,2}/,zr={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Lr={},Nr={},Pr=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Ir=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Dr={},Rr={},jr=/\d/,qr=/\d\d/,Br=/\d{3}/,Wr=/\d{4}/,Hr=/[+-]?\d{6}/,Fr=/\d\d?/,Xr=/\d\d\d\d?/,Ur=/\d\d\d\d\d\d?/,Vr=/\d{1,3}/,Gr=/\d{1,4}/,Yr=/[+-]?\d{1,6}/,Qr=/\d+/,Kr=/[+-]?\d+/,Zr=/Z|[+-]\d\d:?\d\d/gi,Jr=/Z|[+-]\d\d(?::?\d\d)?/gi,ei=/[+-]?\d+(\.\d{1,3})?/,ti=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ni={},ri={},ii=0,ai=1,oi=2,si=3,ci=4,li=5,ui=6,di=7,pi=8;$r=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};var fi=$r;V("M",["MM",2],"Mo",function(){return this.month()+1}),V("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),V("MMMM",0,0,function(e){return this.localeData().months(this,e)}),I("month","M"),j("month",8),Z("M",Fr),Z("MM",Fr,qr),Z("MMM",function(e,t){return t.monthsShortRegex(e)}),Z("MMMM",function(e,t){return t.monthsRegex(e)}),ne(["M","MM"],function(e,t){t[ai]=M(e)-1}),ne(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[ai]=i:h(n).invalidMonth=e});var hi=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,mi="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),gi="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),vi=ti,bi=ti;V("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),V(0,["YY",2],0,function(){return this.year()%100}),V(0,["YYYY",4],0,"year"),V(0,["YYYYY",5],0,"year"),V(0,["YYYYYY",6,!0],0,"year"),I("year","y"),j("year",1),Z("Y",Kr),Z("YY",Fr,qr),Z("YYYY",Gr,Wr),Z("YYYYY",Yr,Hr),Z("YYYYYY",Yr,Hr),ne(["YYYYY","YYYYYY"],ii),ne("YYYY",function(e,t){t[ii]=2===e.length?n.parseTwoDigitYear(e):M(e)}),ne("YY",function(e,t){t[ii]=n.parseTwoDigitYear(e)}),ne("Y",function(e,t){t[ii]=parseInt(e,10)}),n.parseTwoDigitYear=function(e){return M(e)+(M(e)>68?1900:2e3)};var yi=B("FullYear",!0);V("w",["ww",2],"wo","week"),V("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),j("week",5),j("isoWeek",5),Z("w",Fr),Z("ww",Fr,qr),Z("W",Fr),Z("WW",Fr,qr),re(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=M(e)});var xi={dow:0,doy:6};V("d",0,"do","day"),V("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),V("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),V("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),V("e",0,0,"weekday"),V("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),j("day",11),j("weekday",11),j("isoWeekday",11),Z("d",Fr),Z("e",Fr),Z("E",Fr),Z("dd",function(e,t){return t.weekdaysMinRegex(e)}),Z("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Z("dddd",function(e,t){return t.weekdaysRegex(e)}),re(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:h(n).invalidWeekday=e}),re(["d","e","E"],function(e,t,n,r){t[r]=M(e)});var Mi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),_i="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),wi="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ai=ti,Si=ti,ki=ti;V("H",["HH",2],0,"hour"),V("h",["hh",2],0,Fe),V("k",["kk",2],0,Xe),V("hmm",0,0,function(){return""+Fe.apply(this)+U(this.minutes(),2)}),V("hmmss",0,0,function(){return""+Fe.apply(this)+U(this.minutes(),2)+U(this.seconds(),2)}),V("Hmm",0,0,function(){return""+this.hours()+U(this.minutes(),2)}),V("Hmmss",0,0,function(){return""+this.hours()+U(this.minutes(),2)+U(this.seconds(),2)}),Ue("a",!0),Ue("A",!1),I("hour","h"),j("hour",13),Z("a",Ve),Z("A",Ve),Z("H",Fr),Z("h",Fr),Z("k",Fr),Z("HH",Fr,qr),Z("hh",Fr,qr),Z("kk",Fr,qr),Z("hmm",Xr),Z("hmmss",Ur),Z("Hmm",Xr),Z("Hmmss",Ur),ne(["H","HH"],si),ne(["k","kk"],function(e,t,n){var r=M(e);t[si]=24===r?0:r}),ne(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ne(["h","hh"],function(e,t,n){t[si]=M(e),h(n).bigHour=!0}),ne("hmm",function(e,t,n){var r=e.length-2;t[si]=M(e.substr(0,r)),t[ci]=M(e.substr(r)),h(n).bigHour=!0}),ne("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[si]=M(e.substr(0,r)),t[ci]=M(e.substr(r,2)),t[li]=M(e.substr(i)),h(n).bigHour=!0}),ne("Hmm",function(e,t,n){var r=e.length-2;t[si]=M(e.substr(0,r)),t[ci]=M(e.substr(r))}),ne("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[si]=M(e.substr(0,r)),t[ci]=M(e.substr(r,2)),t[li]=M(e.substr(i))});var $i,Ti=/[ap]\.?m?\.?/i,Ci=B("Hours",!0),Ei={calendar:Cr,longDateFormat:Er,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:Or,relativeTime:zr,months:mi,monthsShort:gi,week:xi,weekdays:Mi,weekdaysMin:wi,weekdaysShort:_i,meridiemParse:Ti},Oi={},zi={},Li=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ni=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Pi=/Z|[+-]\d\d(?::?\d\d)?/,Ii=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Di=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ri=/^\/?Date\((\-?\d+)/i,ji=/^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/;n.createFromInputFallback=A("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),n.ISO_8601=function(){},n.RFC_2822=function(){};var qi=A("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=xt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()}),Bi=A("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=xt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()}),Wi=function(){return Date.now?Date.now():+new Date},Hi=["year","quarter","month","week","day","hour","minute","second","millisecond"];Et("Z",":"),Et("ZZ",""),Z("Z",Jr),Z("ZZ",Jr),ne(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ot(Jr,e)});var Fi=/([\+\-]|\d\d)/gi;n.updateOffset=function(){};var Xi=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ui=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Xt.fn=$t.prototype,Xt.invalid=kt;var Vi=Yt(1,"add"),Gi=Yt(-1,"subtract");n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Yi=A("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});V(0,["gg",2],0,function(){return this.weekYear()%100}),V(0,["GG",2],0,function(){return this.isoWeekYear()%100}),On("gggg","weekYear"),On("ggggg","weekYear"),On("GGGG","isoWeekYear"),On("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),j("weekYear",1),j("isoWeekYear",1),Z("G",Kr),Z("g",Kr),Z("GG",Fr,qr),Z("gg",Fr,qr),Z("GGGG",Gr,Wr),Z("gggg",Gr,Wr),Z("GGGGG",Yr,Hr),Z("ggggg",Yr,Hr),re(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=M(e)}),re(["gg","GG"],function(e,t,r,i){t[i]=n.parseTwoDigitYear(e)}),V("Q",0,"Qo","quarter"),I("quarter","Q"),j("quarter",7),Z("Q",jr),ne("Q",function(e,t){t[ai]=3*(M(e)-1)}),V("D",["DD",2],"Do","date"),I("date","D"),j("date",9),Z("D",Fr),Z("DD",Fr,qr),Z("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ne(["D","DD"],oi),ne("Do",function(e,t){t[oi]=M(e.match(Fr)[0],10)});var Qi=B("Date",!0);V("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),j("dayOfYear",4),Z("DDD",Vr),Z("DDDD",Br),ne(["DDD","DDDD"],function(e,t,n){n._dayOfYear=M(e)}),V("m",["mm",2],0,"minute"),I("minute","m"),j("minute",14),Z("m",Fr),Z("mm",Fr,qr),ne(["m","mm"],ci);var Ki=B("Minutes",!1);V("s",["ss",2],0,"second"),I("second","s"),j("second",15),Z("s",Fr),Z("ss",Fr,qr),ne(["s","ss"],li);var Zi=B("Seconds",!1);V("S",0,0,function(){return~~(this.millisecond()/100)}),V(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),V(0,["SSS",3],0,"millisecond"),V(0,["SSSS",4],0,function(){return 10*this.millisecond()}),V(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),V(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),V(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),V(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),V(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),I("millisecond","ms"),j("millisecond",16),Z("S",Vr,jr),Z("SS",Vr,qr),Z("SSS",Vr,Br);var Ji;for(Ji="SSSS";Ji.length<=9;Ji+="S")Z(Ji,Qr);for(Ji="S";Ji.length<=9;Ji+="S")ne(Ji,qn);var ea=B("Milliseconds",!1);V("z",0,0,"zoneAbbr"),V("zz",0,0,"zoneName");var ta=b.prototype;ta.add=Vi,ta.calendar=Zt,ta.clone=Jt,ta.diff=sn,ta.endOf=xn,ta.format=pn,ta.from=fn,ta.fromNow=hn,ta.to=mn,ta.toNow=gn,ta.get=F,ta.invalidAt=Cn,ta.isAfter=en,ta.isBefore=tn,ta.isBetween=nn,ta.isSame=rn,ta.isSameOrAfter=an,ta.isSameOrBefore=on,ta.isValid=$n,ta.lang=Yi,ta.locale=vn,ta.localeData=bn,ta.max=Bi,ta.min=qi,ta.parsingFlags=Tn,ta.set=X,ta.startOf=yn,ta.subtract=Gi,ta.toArray=An,ta.toObject=Sn,ta.toDate=wn,ta.toISOString=un,ta.inspect=dn,ta.toJSON=kn,ta.toString=ln,ta.unix=_n,ta.valueOf=Mn,ta.creationData=En,ta.year=yi,ta.isLeapYear=be,ta.weekYear=zn,ta.isoWeekYear=Ln,ta.quarter=ta.quarters=Rn,ta.month=de,ta.daysInMonth=pe,ta.week=ta.weeks=Te,ta.isoWeek=ta.isoWeeks=Ce,ta.weeksInYear=Pn,ta.isoWeeksInYear=Nn,ta.date=Qi,ta.day=ta.days=De,ta.weekday=Re,ta.isoWeekday=je,ta.dayOfYear=jn,ta.hour=ta.hours=Ci,ta.minute=ta.minutes=Ki,ta.second=ta.seconds=Zi,ta.millisecond=ta.milliseconds=ea,ta.utcOffset=Nt,ta.utc=It,ta.local=Dt,ta.parseZone=Rt,ta.hasAlignedHourOffset=jt,ta.isDST=qt,ta.isLocal=Wt,ta.isUtcOffset=Ht,ta.isUtc=Ft,ta.isUTC=Ft,ta.zoneAbbr=Bn,ta.zoneName=Wn,ta.dates=A("dates accessor is deprecated. Use date instead.",Qi),ta.months=A("months accessor is deprecated. Use month instead",de),ta.years=A("years accessor is deprecated. Use year instead",yi),ta.zone=A("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Pt),ta.isDSTShifted=A("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Bt);var na=C.prototype;na.calendar=E,na.longDateFormat=O,na.invalidDate=z,na.ordinal=L,na.preparse=Xn,na.postformat=Xn,na.relativeTime=N,na.pastFuture=P,na.set=$,na.months=oe,na.monthsShort=se,na.monthsParse=le,na.monthsRegex=he,na.monthsShortRegex=fe,na.week=Se,na.firstDayOfYear=$e,na.firstDayOfWeek=ke,na.weekdays=ze,na.weekdaysMin=Ne,na.weekdaysShort=Le,na.weekdaysParse=Ie,na.weekdaysRegex=qe,na.weekdaysShortRegex=Be,na.weekdaysMinRegex=We,na.isPM=Ge,na.meridiem=Ye,Je("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===M(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),n.lang=A("moment.lang is deprecated. Use moment.locale instead.",Je),n.langData=A("moment.langData is deprecated. Use moment.localeData instead.",nt);var ra=Math.abs,ia=ur("ms"),aa=ur("s"),oa=ur("m"),sa=ur("h"),ca=ur("d"),la=ur("w"),ua=ur("M"),da=ur("y"),pa=pr("milliseconds"),fa=pr("seconds"),ha=pr("minutes"),ma=pr("hours"),ga=pr("days"),va=pr("months"),ba=pr("years"),ya=Math.round,xa={ss:44,s:45,m:45,h:22,d:26,M:11},Ma=Math.abs,_a=$t.prototype;return _a.isValid=St,_a.abs=er,_a.add=nr,_a.subtract=rr,_a.as=cr,_a.asMilliseconds=ia,_a.asSeconds=aa,_a.asMinutes=oa,_a.asHours=sa,_a.asDays=ca,_a.asWeeks=la,_a.asMonths=ua,_a.asYears=da,_a.valueOf=lr,_a._bubble=ar,_a.get=dr,_a.milliseconds=pa,_a.seconds=fa,_a.minutes=ha,_a.hours=ma,_a.days=ga,_a.weeks=fr,_a.months=va,_a.years=ba,_a.humanize=br,_a.toISOString=yr,_a.toString=yr,_a.toJSON=yr,_a.locale=vn,_a.localeData=bn,_a.toIsoString=A("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",yr),_a.lang=Yi,V("X",0,0,"unix"),V("x",0,0,"valueOf"),Z("x",Kr),Z("X",ei),ne("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),
58ne("x",function(e,t,n){n._d=new Date(M(e))}),n.version="2.18.1",function(e){xr=e}(xt),n.fn=ta,n.min=_t,n.max=wt,n.now=Wi,n.utc=p,n.unix=Hn,n.months=Yn,n.isDate=c,n.locale=Je,n.invalid=g,n.duration=Xt,n.isMoment=y,n.weekdays=Kn,n.parseZone=Fn,n.localeData=nt,n.isDuration=Tt,n.monthsShort=Qn,n.weekdaysMin=Jn,n.defineLocale=et,n.updateLocale=tt,n.locales=rt,n.weekdaysShort=Zn,n.normalizeUnits=D,n.relativeTimeRounding=gr,n.relativeTimeThreshold=vr,n.calendarFormat=Kt,n.prototype=ta,n})},{}],565:[function(e,t,n){angular.module("infinite-scroll",[]).value("THROTTLE_MILLISECONDS",null).directive("infiniteScroll",["$rootScope","$window","$interval","THROTTLE_MILLISECONDS",function(e,t,n,r){return{scope:{infiniteScroll:"&",infiniteScrollContainer:"=",infiniteScrollDistance:"=",infiniteScrollDisabled:"=",infiniteScrollUseDocumentBottom:"=",infiniteScrollListenForEvent:"@"},link:function(i,a,o){var s,c,l,u,d,p,f,h,m,g,v,b,y,x,M,_,w,A,S;return S=angular.element(t),x=null,M=null,l=null,u=null,v=!0,A=!1,w=null,c=!1,g=function(e){return e=e[0]||e,isNaN(e.offsetHeight)?e.document.documentElement.clientHeight:e.offsetHeight},b=function(e){if(e[0].getBoundingClientRect&&!e.css("none"))return e[0].getBoundingClientRect().top+y(e)},y=function(e){return e=e[0]||e,isNaN(window.pageYOffset)?e.document.documentElement.scrollTop:e.ownerDocument.defaultView.pageYOffset},m=function(){var t,r,o,s,d;return u===S?(t=g(u)+y(u[0].document.documentElement),o=b(a)+g(a)):(t=g(u),r=0,void 0!==b(u)&&(r=b(u)),o=b(a)-r+g(a)),A&&(o=g((a[0].ownerDocument||a[0].document).documentElement)),s=o-t,d=s<=g(u)*x+1,d?(l=!0,M?i.$$phase||e.$$phase?i.infiniteScroll():i.$apply(i.infiniteScroll):void 0):(c&&n.cancel(c),l=!1)},_=function(e,t){var r,i,a;return a=null,i=0,r=function(){return i=(new Date).getTime(),n.cancel(a),a=null,e.call()},function(){var o,s;return o=(new Date).getTime(),s=t-(o-i),s<=0?(n.cancel(a),a=null,i=o,e.call()):a?void 0:a=n(r,s,1)}},null!=r&&(m=_(m,r)),i.$on("$destroy",function(){if(u.unbind("scroll",m),null!=w&&(w(),w=null),c)return n.cancel(c)}),f=function(e){return x=parseFloat(e)||0},i.$watch("infiniteScrollDistance",f),f(i.infiniteScrollDistance),p=function(e){if((M=!e)&&l)return l=!1,m()},i.$watch("infiniteScrollDisabled",p),p(i.infiniteScrollDisabled),h=function(e){return A=e},i.$watch("infiniteScrollUseDocumentBottom",h),h(i.infiniteScrollUseDocumentBottom),s=function(e){if(null!=u&&u.unbind("scroll",m),u=e,null!=e)return u.bind("scroll",m)},s(S),i.infiniteScrollListenForEvent&&(w=e.$on(i.infiniteScrollListenForEvent,m)),d=function(e){if(null!=e&&0!==e.length){if(e.nodeType&&1===e.nodeType?e=angular.element(e):"function"==typeof e.append?e=angular.element(e[e.length-1]):"string"==typeof e&&(e=angular.element(document.querySelector(e))),null!=e)return s(e);throw new Error("invalid infinite-scroll-container attribute.")}},i.$watch("infiniteScrollContainer",d),d(i.infiniteScrollContainer||[]),null!=o.infiniteScrollParent&&s(angular.element(a.parent())),null!=o.infiniteScrollImmediateCheck&&(v=i.$eval(o.infiniteScrollImmediateCheck)),c=n(function(){return v&&m(),n.cancel(c)})}}}]),void 0!==t&&void 0!==n&&t.exports===n&&(t.exports="infinite-scroll")},{}],566:[function(e,t,n){!function(e,t){"use strict";if("function"!=typeof define||!define.amd)return t(e);define(["angular"],function(e){return t(e)})}(window.angular||null,function(e){"use strict";var t=e.module("ngTable",[]);return function(){function t(t){function n(t,n){var a=t.charAt(0).toUpperCase()+t.substring(1),o={};return o["on"+a]=r(t),o["publish"+a]=i(t),e.extend(n,o)}function r(n){return function(r){var i=e.identity,o=t;if(2===arguments.length?e.isFunction(arguments[1].$new)?o=arguments[1]:i=arguments[1]:arguments.length>2&&(o=arguments[1],i=arguments[2]),e.isObject(i)){var s=i;i=function(e){return e===s}}return o.$on("ngTable:"+n,function(e,t){if(!t.isNullInstance){var n=a(arguments,2),o=[t].concat(n);i.apply(this,o)&&r.apply(this,o)}})}}function i(e){return function(){var n=["ngTable:"+e].concat(Array.prototype.slice.call(arguments));t.$broadcast.apply(t,n)}}function a(e,t){return Array.prototype.slice.call(e,null==t?1:t)}var o={};return o=n("afterCreated",o),o=n("afterReloadData",o),o=n("datasetChanged",o),o=n("pagesChanged",o)}t.$inject=["$rootScope"],e.module("ngTable").factory("ngTableEventsChannel",t),t.$inject=["$rootScope"]}(),function(){function t(){function t(){i=a}function n(t){var n=e.extend({},i,t);n.aliasUrls=e.extend({},i.aliasUrls,t.aliasUrls),i=n}function r(){function t(e,t){return-1!==e.indexOf("/")?e:a.getUrlForAlias(e,t)}function n(e){return i.aliasUrls[e]||i.defaultBaseUrl+e+i.defaultExt}var r,a={config:r,getTemplateUrl:t,getUrlForAlias:n};return Object.defineProperty(a,"config",{get:function(){return r=r||e.copy(i)},enumerable:!0}),a}var i,a={defaultBaseUrl:"ng-table/filters/",defaultExt:".html",aliasUrls:{}};this.$get=r,this.resetConfigs=t,this.setConfig=n,function(){t()}(),r.$inject=[]}e.module("ngTable").provider("ngTableFilterConfig",t),t.$inject=[]}(),function(){function t(){function e(e){function n(n,r){if(null==n)return[];var i=r.hasFilter()?e(t.filterFilterName)(n,r.filter(!0)):n,a=r.orderBy(),o=a.length?e(t.sortingFilterName)(i,a):i,s=o.slice((r.page()-1)*r.count(),r.page()*r.count());return r.total(o.length),s}return n}var t=this;t.$get=e,t.filterFilterName="filter",t.sortingFilterName="orderBy",e.$inject=["$filter"]}e.module("ngTable").provider("ngTableDefaultGetData",t),t.$inject=[]}(),function(){function t(e){function t(t){return function(){var n=e.defer(),r=t.apply(this,[n].concat(Array.prototype.slice.call(arguments)));return r||(r=n.promise),r}}return t}t.$inject=["$q"],e.module("ngTable").factory("ngTableGetDataBcShim",t),t.$inject=["$q"]}(),t.value("ngTableDefaults",{params:{},settings:{}}),t.factory("NgTableParams",["$q","$log","ngTableDefaults","ngTableGetDataBcShim","ngTableDefaultGetData","ngTableEventsChannel",function(t,n,r,i,a,o){var s=function(e){return!isNaN(parseFloat(e))&&isFinite(e)};return function(c,l){function u(){var e=b.getDataFnAdaptor(b.getData);return t.when(e.call(b,h))}function d(){var e=b.getGroupsFnAdaptor(b.getGroups);return t.when(e.call(b,b.groupBy,h))}function p(e){return(b.interceptors||[]).reduce(function(e,n){var r=n.response&&n.response.bind(n)||t.when,i=n.responseError&&n.responseError.bind(n)||t.reject;return e.then(function(e){return r(e,h)},function(e){return i(e,h)})},e())}"boolean"==typeof c&&(this.isNullInstance=!0);var f,h=this,m=!1,g=function(){b.debugMode&&n.debug&&n.debug.apply(this,arguments)};this.data=[],this.parameters=function(t,n){if(n=n||!1,e.isDefined(t)){for(var r in t){var i=t[r];if(n&&r.indexOf("[")>=0){for(var a=r.split(/\[(.*)\]/).reverse(),o="",c=0,l=a.length;c<l;c++){var u=a[c];if(""!==u){var d=i;i={},i[o=u]=s(d)?parseFloat(d):d}}"sorting"===o&&(v[o]={}),v[o]=e.extend(v[o]||{},i[o])}else v[r]=s(t[r])?parseFloat(t[r]):t[r]}return g("ngTable: set parameters",v),this}return v},this.settings=function(t){if(e.isDefined(t)){e.isArray(t.data)&&(t.total=t.data.length),t.getData&&t.getData.length>1&&(t.getDataFnAdaptor=i),t.getGroups&&t.getGroups.length>2&&(t.getGroupsFnAdaptor=i);var n=b.data;b=e.extend(b,t);return t.hasOwnProperty("data")&&t.data!=n&&(m&&this.page(1),m=!1,o.publishDatasetChanged(this,t.data,n)),g("ngTable: set settings",b),this}return b},this.page=function(t){return e.isDefined(t)?this.parameters({page:t}):v.page},this.total=function(t){return e.isDefined(t)?this.settings({total:t}):b.total},this.count=function(t){return e.isDefined(t)?this.parameters({count:t,page:1}):v.count},this.filter=function(t){if(e.isDefined(t)&&e.isObject(t))return this.parameters({filter:t,page:1});if(!0===t){for(var n=Object.keys(v.filter),r={},i=0;i<n.length;i++){var a=v.filter[n[i]];null!=a&&""!==a&&(r[n[i]]=a)}return r}return v.filter},this.sorting=function(t){if(2==arguments.length){var n={};return n[t]=arguments[1],this.parameters({sorting:n}),this}return e.isDefined(t)?this.parameters({sorting:t}):v.sorting},this.isSortBy=function(t,n){return void 0!==n?e.isDefined(v.sorting[t])&&v.sorting[t]==n:e.isDefined(v.sorting[t])},this.orderBy=function(){var e=[];for(var t in v.sorting)e.push(("asc"===v.sorting[t]?"+":"-")+t);return e},this.getData=function(e){return a(this.data,e)},this.getGroups=function(t){return u().then(function(n){var r={};e.forEach(n,function(n){var i=e.isFunction(t)?t(n):n[t];r[i]=r[i]||{data:[]},r[i].value=i,r[i].data.push(n)});var i=[];for(var a in r)i.push(r[a]);return g("ngTable: refresh groups",i),i})},this.generatePagesArray=function(e,t,n,r){arguments.length||(e=this.page(),t=this.total(),n=this.count());var i,a,o,s,c;if(r=r&&r<6?6:r,c=[],(s=Math.ceil(t/n))>1){c.push({type:"prev",number:Math.max(1,e-1),active:e>1}),c.push({type:"first",number:1,active:e>1,current:1===e}),a=Math.round((b.paginationMaxBlocks-b.paginationMinBlocks)/2),o=Math.max(2,e-a),i=Math.min(s-1,e+2*a-(e-o)),o=Math.max(2,o-(2*a-(i-o)));for(var l=o;l<=i;)l===o&&2!==l||l===i&&l!==s-1?c.push({type:"more",active:!1}):c.push({type:"page",number:l,active:e!==l,current:e===l}),l++;c.push({type:"last",number:s,active:e!==s,current:e===s}),c.push({type:"next",number:Math.min(s,e+1),active:e<s})}return c},this.isDataReloadRequired=function(){return!m||!e.equals(v,f)},this.hasFilter=function(){return Object.keys(this.filter(!0)).length>0},this.hasFilterChanges=function(){return!e.equals(v&&v.filter,f&&f.filter)},this.url=function(t){t=t||!1;var n=t?[]:{};for(var r in v)if(v.hasOwnProperty(r)){var i=v[r],a=encodeURIComponent(r);if("object"===(void 0===i?"undefined":_typeof2(i))){for(var o in i)if(!e.isUndefined(i[o])&&""!==i[o]){var s=a+"["+encodeURIComponent(o)+"]";t?n.push(s+"="+i[o]):n[s]=i[o]}}else e.isFunction(i)||e.isUndefined(i)||""===i||(t?n.push(a+"="+encodeURIComponent(i)):n[a]=encodeURIComponent(i))}return n},this.reload=function(){var n=this,r=null;b.$loading=!0,f=e.copy(v),m=!0,r=p(b.groupBy?d:u),g("ngTable: reload data");var i=n.data;return r.then(function(e){return b.$loading=!1,n.data=e,o.publishAfterReloadData(n,e,i),n.reloadPages(),b.$scope&&b.$scope.$emit("ngTableAfterReloadData"),e}).catch(function(e){return f=null,m=!1,t.reject(e)})},this.reloadPages=function(){var t;return function(){var n=t,r=h.generatePagesArray(h.page(),h.total(),h.count());e.equals(n,r)||(t=r,o.publishPagesChanged(this,r,n))}}();var v={page:1,count:1,filter:{},sorting:{},group:{},groupBy:null};e.extend(v,r.params);var b={$scope:null,$loading:!1,data:null,total:0,defaultSort:"desc",filterDelay:750,counts:[10,25,50,100],interceptors:[],paginationMaxBlocks:11,paginationMinBlocks:5,sortingIndicator:"span",getDataFnAdaptor:e.identity,getGroupsFnAdaptor:e.identity,getGroups:this.getGroups,getData:this.getData};return this.settings(r.settings),this.settings(l),this.parameters(c,!0),o.publishAfterCreated(this),this}}]),t.factory("ngTableParams",["NgTableParams",function(e){return e}]),function(){function t(e,t){e.config=t}t.$inject=["$scope","ngTableFilterConfig"],e.module("ngTable").controller("ngTableFilterRowController",t),t.$inject=["$scope","ngTableFilterConfig"]}(),function(){function t(e){function t(t,n){var r=t.sortable&&t.sortable();if(r){var i=e.params.settings().defaultSort,a="asc"===i?"desc":"asc",o=e.params.sorting()&&e.params.sorting()[r]&&e.params.sorting()[r]===i,s=n.ctrlKey||n.metaKey?e.params.sorting():{};s[r]=o?a:i,e.params.parameters({sorting:s})}}e.sortBy=t}t.$inject=["$scope"],e.module("ngTable").controller("ngTableSorterRowController",t),t.$inject=["$scope"]}(),t.controller("ngTableController",["$scope","NgTableParams","$timeout","$parse","$compile","$attrs","$element","ngTableColumn","ngTableEventsChannel",function(t,n,r,i,a,o,s,c,l){function u(e){if(e){t.params.settings().$scope=t;var n=t.params;if(n.hasFilterChanges()){var r=function(){n.page(1),n.reload()};n.settings().filterDelay?d(r,n.settings().filterDelay):r()}else n.reload()}}t.$filterRow={},t.$loading=!1,t.hasOwnProperty("params")||(t.params=new n(!0)),t.params.settings().$scope=t;var d=function(){var e=0;return function(t,n){r.cancel(e),e=r(t,n)}}();t.$watch("params",function(e,t){e!==t&&e&&e.reload()},!1),t.$watch("params.isDataReloadRequired()",u),this.compileDirectiveTemplates=function(){if(!s.hasClass("ng-table")){t.templates={header:o.templateHeader?o.templateHeader:"ng-table/header.html",pagination:o.templatePagination?o.templatePagination:"ng-table/pager.html"},s.addClass("ng-table");var n=null,r=!1;e.forEach(s.children(),function(e){"THEAD"===e.tagName&&(r=!0)}),r||(n=e.element(document.createElement("thead")).attr("ng-include","templates.header"),s.prepend(n));var i=e.element(document.createElement("div")).attr({"ng-table-pagination":"params","template-url":"templates.pagination"});s.after(i),n&&a(n)(t),a(i)(t)}},this.loadFilterData=function(n){e.forEach(n,function(n){var r;return r=n.filterData(t,{$column:n}),r?e.isObject(r)&&e.isObject(r.promise)?(delete n.filterData,r.promise.then(function(t){e.isArray(t)||e.isFunction(t)||e.isObject(t)?e.isArray(t)&&t.unshift({title:"",id:""}):t=[],n.data=t})):n.data=r:void delete n.filterData})},this.buildColumns=function(e){return e.map(function(e){return c.buildColumn(e,t)})},this.parseNgTableDynamicExpr=function(e){if(!e||e.indexOf(" with ")>-1){var t=e.split(/\s+with\s+/);return{tableParams:t[0],columns:t[1]}}throw new Error("Parse error (expected example: ng-table-dynamic='tableParams with cols')")},this.setupBindingsToInternalScope=function(n){var r=i(n);t.$watch(r,function(n){e.isUndefined(n)||(t.paramsModel=r,t.params=n)},!1),o.showFilter&&t.$parent.$watch(o.showFilter,function(e){t.show_filter=e}),o.disableFilter&&t.$parent.$watch(o.disableFilter,function(e){t.$filterRow.disabled=e})},function(){function e(e,n){e.settings().groupBy?t.$groups=n:t.$data=n}function n(e,n){t.pages=n}function r(e){return t.params===e}l.onAfterReloadData(e,t,r),l.onPagesChanged(n,t,r)}()}]),t.factory("ngTableColumn",[function(){function t(t,r){var i=Object.create(t);for(var a in n)void 0===i[a]&&(i[a]=n[a]),e.isFunction(i[a])||function(e){i[e]=function(){return t[e]}}(a),function(e){var n=i[e];i[e]=function(){return 0===arguments.length?n.call(t,r):n.apply(t,arguments)}}(a);return i}var n={class:function(){return""},filter:function(){return!1},filterData:e.noop,headerTemplateURL:function(){return!1},headerTitle:function(){return""},sortable:function(){return!1},show:function(){return!0},title:function(){return""},titleAlt:function(){return""}};return{buildColumn:t}}]),t.directive("ngTable",["$q","$parse",function(t,n){return{restrict:"A",priority:1001,scope:!0,controller:"ngTableController",compile:function(t){var r=[],i=0,a=null;if(e.forEach(e.element(t.find("tr")),function(t){t=e.element(t),t.hasClass("ng-table-group")||a||(a=t)}),a)return e.forEach(a.find("td"),function(t){var a=e.element(t);if(!a.attr("ignore-cell")||"true"!==a.attr("ignore-cell")){var o=function(e){return a.attr("x-data-"+e)||a.attr("data-"+e)||a.attr(e)},s=function(t){var i=o(t);if(i)return function(t,a){return n(i)(t,e.extend(a||{},{$columns:r}))}},c=o("title-alt")||o("title");c&&a.attr("data-title-text","{{"+c+"}}"),r.push({id:i++,title:s("title"),titleAlt:s("title-alt"),headerTitle:s("header-title"),sortable:s("sortable"),class:s("header-class"),filter:s("filter"),headerTemplateURL:s("header"),filterData:s("filter-data"),show:a.attr("ng-if")?function(e){return n(a.attr("ng-if"))(e)}:void 0})}}),function(e,t,n,i){e.$columns=r=i.buildColumns(r),i.setupBindingsToInternalScope(n.ngTable),i.loadFilterData(r),i.compileDirectiveTemplates()}}}}]),t.directive("ngTableDynamic",["$parse",function(t){return{restrict:"A",priority:1001,scope:!0,controller:"ngTableController",compile:function(t){var n;if(e.forEach(e.element(t.find("tr")),function(t){t=e.element(t),t.hasClass("ng-table-group")||n||(n=t)}),n)return e.forEach(n.find("td"),function(t){var n=e.element(t);(function(e){return n.attr("x-data-"+e)||n.attr("data-"+e)||n.attr(e)})("title")||n.attr("data-title-text","{{$columns[$index].titleAlt(this) || $columns[$index].title(this)}}"),n.attr("ng-if")||n.attr("ng-if","$columns[$index].show(this)")}),function(e,t,n,r){var i=r.parseNgTableDynamicExpr(n.ngTableDynamic);r.setupBindingsToInternalScope(i.tableParams),r.compileDirectiveTemplates(),e.$watchCollection(i.columns,function(t){e.$columns=r.buildColumns(t),r.loadFilterData(e.$columns)})}}}}]),function(){function t(){return{restrict:"E",replace:!0,templateUrl:"ng-table/filterRow.html",scope:!0,controller:"ngTableFilterRowController"}}e.module("ngTable").directive("ngTableFilterRow",t),t.$inject=[]}(),function(){function t(){return{restrict:"E",replace:!0,templateUrl:"ng-table/sorterRow.html",scope:!0,controller:"ngTableSorterRowController"}}e.module("ngTable").directive("ngTableSorterRow",t),t.$inject=[]}(),t.directive("ngTablePagination",["$compile","ngTableEventsChannel",function(t,n){return{restrict:"A",scope:{params:"=ngTablePagination",templateUrl:"="},replace:!1,link:function(r,i){n.onAfterReloadData(function(e){r.pages=e.generatePagesArray()},r,function(e){return e===r.params}),r.$watch("templateUrl",function(n){if(!e.isUndefined(n)){var a=e.element(document.createElement("div"));a.attr({"ng-include":"templateUrl"}),i.append(a),t(a)(r)}})}}}]),e.module("ngTable").run(["$templateCache",function(e){e.put("ng-table/filterRow.html",'<tr ng-show="show_filter" class="ng-table-filters"> <th data-title-text="{{$column.titleAlt(this) || $column.title(this)}}" ng-repeat="$column in $columns" ng-if="$column.show(this)" class="filter"> <div ng-repeat="(name, filter) in $column.filter(this)"> <div ng-include="config.getTemplateUrl(filter)"></div> </div> </th> </tr> '),e.put("ng-table/filters/number.html",'<input type="number" name="{{name}}" ng-disabled="$filterRow.disabled" ng-model="params.filter()[name]" class="input-filter form-control"/> '),e.put("ng-table/filters/select-multiple.html",'<select ng-options="data.id as data.title for data in $column.data" ng-disabled="$filterRow.disabled" multiple ng-multiple="true" ng-model="params.filter()[name]" class="filter filter-select-multiple form-control" name="{{name}}"> </select> '),e.put("ng-table/filters/select.html",'<select ng-options="data.id as data.title for data in $column.data" ng-disabled="$filterRow.disabled" ng-model="params.filter()[name]" class="filter filter-select form-control" name="{{name}}"> <option style="display:none" value=""></option> </select> '),e.put("ng-table/filters/text.html",'<input type="text" name="{{name}}" ng-disabled="$filterRow.disabled" ng-model="params.filter()[name]" class="input-filter form-control"/> '),e.put("ng-table/header.html","<ng-table-sorter-row></ng-table-sorter-row> <ng-table-filter-row></ng-table-filter-row> "),e.put("ng-table/pager.html",'<div class="ng-cloak ng-table-pager" ng-if="params.data.length"> <div ng-if="params.settings().counts.length" class="ng-table-counts btn-group pull-right"> <button ng-repeat="count in params.settings().counts" type="button" ng-class="{\'active\':params.count()==count}" ng-click="params.count(count)" class="btn btn-default"> <span ng-bind="count"></span> </button> </div> <ul class="pagination ng-table-pagination"> <li ng-class="{\'disabled\': !page.active && !page.current, \'active\': page.current}" ng-repeat="page in pages" ng-switch="page.type"> <a ng-switch-when="prev" ng-click="params.page(page.number)" href="">&laquo;</a> <a ng-switch-when="first" ng-click="params.page(page.number)" href=""><span ng-bind="page.number"></span></a> <a ng-switch-when="page" ng-click="params.page(page.number)" href=""><span ng-bind="page.number"></span></a> <a ng-switch-when="more" ng-click="params.page(page.number)" href="">&#8230;</a> <a ng-switch-when="last" ng-click="params.page(page.number)" href=""><span ng-bind="page.number"></span></a> <a ng-switch-when="next" ng-click="params.page(page.number)" href="">&raquo;</a> </li> </ul> </div> '),e.put("ng-table/sorterRow.html",'<tr> <th title="{{$column.headerTitle(this)}}" ng-repeat="$column in $columns" ng-class="{ \'sortable\': $column.sortable(this), \'sort-asc\': params.sorting()[$column.sortable(this)]==\'asc\', \'sort-desc\': params.sorting()[$column.sortable(this)]==\'desc\' }" ng-click="sortBy($column, $event)" ng-if="$column.show(this)" ng-init="template=$column.headerTemplateURL(this)" class="header {{$column.class(this)}}"> <div ng-if="!template" class="ng-table-header" ng-class="{\'sort-indicator\': params.settings().sortingIndicator==\'div\'}"> <span ng-bind="$column.title(this)" ng-class="{\'sort-indicator\': params.settings().sortingIndicator==\'span\'}"></span> </div> <div ng-if="template" ng-include="template"></div> </th> </tr> ')}]),t})},{}],567:[function(e,t,n){function r(e){var t=/(?:;|,)/g,n=/=/;if(e&&t.test(e)){var r=e.split(t);n.test(e)?r.forEach(function(e,t){var r=e.split(n).map(function(e){return e.trim()});2===r.length?(this[r[0]]||(this[r[0]]={}),this[r[0]]=r[1],this[t]={},this[t][r[0]]=r[1]):this[t]=e},this):this[0]=r[0]}else this[0]=e;return this}r.prototype.toArray=function(){return Object.keys(this).filter(function(e){return!isNaN(+e)}).map(function(e){return this[e]},this)},t.exports=function(e){return r.prototype.toString=function(){return e},new r(e)}},{}],568:[function(e,t,n){"use strict";var r=e("../src/lib"),i={"X,X div":"font-family:'Open Sans', verdana, arial, sans-serif;margin:0;padding:0;","X input,X button":"font-family:'Open Sans', verdana, arial, sans-serif;","X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .modebar":"position:absolute;top:2px;right:2px;z-index:1001;background:rgba(255,255,255,0.7);","X .modebar--hover":"opacity:0;-webkit-transition:opacity 0.3s ease 0s;-moz-transition:opacity 0.3s ease 0s;-ms-transition:opacity 0.3s ease 0s;-o-transition:opacity 0.3s ease 0s;transition:opacity 0.3s ease 0s;","X:hover .modebar--hover":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;margin-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-group:first-child":"margin-left:0px;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar-btn path":"fill:rgba(0,31,95,0.3);","X .modebar-btn.active path,X .modebar-btn:hover path":"fill:rgba(0,22,72,0.5);","X .modebar-btn.modebar-btn--logo":"padding:3px 1px;","X .modebar-btn.modebar-btn--logo path":"fill:#447adb !important;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":"content:'';position:absolute;background:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;","X [data-title]:after":"content:attr(data-title);background:#69738a;color:white;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .select-outline":"fill:none;stroke-width:1;shape-rendering:crispEdges;","X .select-outline-1":"stroke:white;","X .select-outline-2":"stroke:black;stroke-dasharray:2px 2px;",Y:"font-family:'Open Sans';position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;","Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,0.9);color:#fff;padding:10px;","Y .notifier-close":"color:#fff;opacity:0.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var a in i){var o=a.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");r.addStyleRule(o,i[a])}},{"../src/lib":697}],569:[function(e,t,n){"use strict";t.exports={undo:{width:857.1,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",ascent:850,descent:-150},home:{width:928.6,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",ascent:850,descent:-150},"camera-retro":{width:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",ascent:850,descent:-150},zoombox:{width:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",ascent:850,descent:-150},pan:{width:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",ascent:850,descent:-150},zoom_plus:{width:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",ascent:850,descent:-150},zoom_minus:{width:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",ascent:850,descent:-150},autoscale:{width:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",ascent:850,descent:-150},tooltip_basic:{width:1500,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",ascent:850,descent:-150},tooltip_compare:{width:1125,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",ascent:850,descent:-150},plotlylogo:{width:1542,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",ascent:850,descent:-150},"z-axis":{width:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",ascent:850,descent:-150},"3d_rotate":{width:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",ascent:850,descent:-150},camera:{width:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",ascent:850,descent:-150},movie:{width:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",ascent:850,descent:-150},question:{width:857.1,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",ascent:850,descent:-150},disk:{width:857.1,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",ascent:850,descent:-150},lasso:{width:1031,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",ascent:850,descent:-150},selectbox:{width:1e3,
59path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",ascent:850,descent:-150},spikeline:{width:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",ascent:850,descent:-150}}},{}],570:[function(e,t,n){"use strict";t.exports=e("../src/traces/bar")},{"../src/traces/bar":781}],571:[function(e,t,n){"use strict";t.exports=e("../src/core")},{"../src/core":686}],572:[function(e,t,n){"use strict";var r=e("./core");r.register([e("./bar"),e("./pie")]),t.exports=r},{"./bar":570,"./core":571,"./pie":573}],573:[function(e,t,n){"use strict";t.exports=e("../src/traces/pie")},{"../src/traces/pie":794}],574:[function(e,t,n){(function(r,i){!function(e,r){"object"===(void 0===n?"undefined":_typeof2(n))&&void 0!==t?t.exports=r():"function"==typeof define&&define.amd?define(r):e.ES6Promise=r()}(this,function(){"use strict";function t(e){return"function"==typeof e||"object"===(void 0===e?"undefined":_typeof2(e))&&null!==e}function n(e){return"function"==typeof e}function a(e){X=e}function o(e){U=e}function s(){return function(){F(l)}}function c(){var e=setTimeout;return function(){return e(l,1)}}function l(){for(var e=0;e<H;e+=2){(0,Z[e])(Z[e+1]),Z[e]=void 0,Z[e+1]=void 0}H=0}function u(e,t){var n=arguments,r=this,i=new this.constructor(p);void 0===i[ee]&&O(i);var a=r._state;return a?function(){var e=n[a-1];U(function(){return T(a,i,e,r._result)})}():A(r,i,e,t),i}function d(e){var t=this;if(e&&"object"===(void 0===e?"undefined":_typeof2(e))&&e.constructor===t)return e;var n=new t(p);return x(n,e),n}function p(){}function f(){return new TypeError("You cannot resolve a promise with itself")}function h(){return new TypeError("A promises callback cannot return that same promise.")}function m(e){try{return e.then}catch(e){return ie.error=e,ie}}function g(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}function v(e,t,n){U(function(e){var r=!1,i=g(n,t,function(n){r||(r=!0,t!==n?x(e,n):_(e,n))},function(t){r||(r=!0,w(e,t))},"Settle: "+(e._label||" unknown promise"));!r&&i&&(r=!0,w(e,i))},e)}function b(e,t){t._state===ne?_(e,t._result):t._state===re?w(e,t._result):A(t,void 0,function(t){return x(e,t)},function(t){return w(e,t)})}function y(e,t,r){t.constructor===e.constructor&&r===u&&t.constructor.resolve===d?b(e,t):r===ie?w(e,ie.error):void 0===r?_(e,t):n(r)?v(e,t,r):_(e,t)}function x(e,n){e===n?w(e,f()):t(n)?y(e,n,m(n)):_(e,n)}function M(e){e._onerror&&e._onerror(e._result),S(e)}function _(e,t){e._state===te&&(e._result=t,e._state=ne,0!==e._subscribers.length&&U(S,e))}function w(e,t){e._state===te&&(e._state=re,e._result=t,U(M,e))}function A(e,t,n,r){var i=e._subscribers,a=i.length;e._onerror=null,i[a]=t,i[a+ne]=n,i[a+re]=r,0===a&&e._state&&U(S,e)}function S(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,i=void 0,a=e._result,o=0;o<t.length;o+=3)r=t[o],i=t[o+n],r?T(n,r,i,a):i(a);e._subscribers.length=0}}function k(){this.error=null}function $(e,t){try{return e(t)}catch(e){return ae.error=e,ae}}function T(e,t,r,i){var a=n(r),o=void 0,s=void 0,c=void 0,l=void 0;if(a){if(o=$(r,i),o===ae?(l=!0,s=o.error,o=null):c=!0,t===o)return void w(t,h())}else o=i,c=!0;t._state!==te||(a&&c?x(t,o):l?w(t,s):e===ne?_(t,o):e===re&&w(t,o))}function C(e,t){try{t(function(t){x(e,t)},function(t){w(e,t)})}catch(t){w(e,t)}}function E(){return oe++}function O(e){e[ee]=oe++,e._state=void 0,e._result=void 0,e._subscribers=[]}function z(e,t){this._instanceConstructor=e,this.promise=new e(p),this.promise[ee]||O(this.promise),W(t)?(this._input=t,this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?_(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&_(this.promise,this._result))):w(this.promise,L())}function L(){return new Error("Array Methods must be provided an Array")}function N(e){return new z(this,e).promise}function P(e){var t=this;return new t(W(e)?function(n,r){for(var i=e.length,a=0;a<i;a++)t.resolve(e[a]).then(n,r)}:function(e,t){return t(new TypeError("You must pass an array to race."))})}function I(e){var t=this,n=new t(p);return w(n,e),n}function D(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function R(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function j(e){this[ee]=E(),this._result=this._state=void 0,this._subscribers=[],p!==e&&("function"!=typeof e&&D(),this instanceof j?C(this,e):R())}function q(){var e=void 0;if(void 0!==i)e=i;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var n=null;try{n=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===n&&!t.cast)return}e.Promise=j}var B=void 0;B=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var W=B,H=0,F=void 0,X=void 0,U=function(e,t){Z[H]=e,Z[H+1]=t,2===(H+=2)&&(X?X(l):J())},V="undefined"!=typeof window?window:void 0,G=V||{},Y=G.MutationObserver||G.WebKitMutationObserver,Q="undefined"==typeof self&&void 0!==r&&"[object process]"==={}.toString.call(r),K="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,Z=new Array(1e3),J=void 0;J=Q?function(){return function(){return r.nextTick(l)}}():Y?function(){var e=0,t=new Y(l),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}():K?function(){var e=new MessageChannel;return e.port1.onmessage=l,function(){return e.port2.postMessage(0)}}():void 0===V&&"function"==typeof e?function(){try{var t=e,n=t("vertx");return F=n.runOnLoop||n.runOnContext,s()}catch(e){return c()}}():c();var ee=Math.random().toString(36).substring(16),te=void 0,ne=1,re=2,ie=new k,ae=new k,oe=0;return z.prototype._enumerate=function(){for(var e=this.length,t=this._input,n=0;this._state===te&&n<e;n++)this._eachEntry(t[n],n)},z.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===d){var i=m(e);if(i===u&&e._state!==te)this._settledAt(e._state,t,e._result);else if("function"!=typeof i)this._remaining--,this._result[t]=e;else if(n===j){var a=new n(p);y(a,e,i),this._willSettleAt(a,t)}else this._willSettleAt(new n(function(t){return t(e)}),t)}else this._willSettleAt(r(e),t)},z.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===te&&(this._remaining--,e===re?w(r,n):this._result[t]=n),0===this._remaining&&_(r,this._result)},z.prototype._willSettleAt=function(e,t){var n=this;A(e,void 0,function(e){return n._settledAt(ne,t,e)},function(e){return n._settledAt(re,t,e)})},j.all=N,j.race=P,j.resolve=d,j.reject=I,j._setScheduler=a,j._setAsap=o,j._asap=U,j.prototype={constructor:j,then:u,catch:function(e){return this.then(null,e)}},q(),j.polyfill=q,j.Promise=j,j})}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:824}],575:[function(e,t,n){"use strict";var r=e("../../lib"),i=e("../color"),a=e("../../plots/cartesian/axes"),o=e("./attributes");t.exports=function(e,t,n,s,c){function l(n,i){return r.coerce(e,t,o,n,i)}s=s||{},c=c||{};var u=l("visible",!c.itemIsNotPlainObject),d=l("clicktoshow");if(!u&&!d)return t;l("opacity");var p=l("bgcolor"),f=l("bordercolor"),h=i.opacity(f);l("borderpad");var m=l("borderwidth"),g=l("showarrow");l("text",g?" ":"new text"),l("textangle"),r.coerceFont(l,"font",n.font),l("width"),l("align"),l("height")&&l("valign");for(var v=["x","y"],b=[-10,-30],y={_fullLayout:n},x=0;x<2;x++){var M=v[x],_=a.coerceRef(e,t,y,M,"","paper");if(a.coercePosition(t,y,l,_,M,.5),g){var w="a"+M,A=a.coerceRef(e,t,y,w,"pixel");"pixel"!==A&&A!==_&&(A=t[w]="pixel");var S="pixel"===A?b[x]:.4;a.coercePosition(t,y,l,A,w,S)}l(M+"anchor"),l(M+"shift")}if(r.noneOrAll(e,t,["x","y"]),g&&(l("arrowcolor",h?t.bordercolor:i.defaultLine),l("arrowhead"),l("arrowsize"),l("arrowwidth",2*(h&&m||1)),l("standoff"),r.noneOrAll(e,t,["ax","ay"])),d){var k=l("xclick"),$=l("yclick");t._xclick=void 0===k?t.x:k,t._yclick=void 0===$?t.y:$}var T=l("hovertext"),C=n.hoverlabel||{};if(T){var E=l("hoverlabel.bgcolor",C.bgcolor||(i.opacity(p)?i.rgb(p):i.defaultLine)),O=l("hoverlabel.bordercolor",C.bordercolor||i.contrast(E));r.coerceFont(l,"hoverlabel.font",{family:C.font.family,size:C.font.size,color:C.font.color||O})}return l("captureevents",!!T),t}},{"../../lib":697,"../../plots/cartesian/axes":732,"../color":586,"./attributes":577}],576:[function(e,t,n){"use strict";t.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0},{path:"M2,2V-2H-2V2Z",backoff:0}]},{}],577:[function(e,t,n){"use strict";var r=e("./arrow_paths"),i=e("../../plots/font_attributes"),a=e("../../plots/cartesian/constants"),o=e("../../lib/extend").extendFlat;t.exports={_isLinkedToArray:"annotation",visible:{valType:"boolean",role:"info",dflt:!0,description:["Determines whether or not this annotation is visible."].join(" ")},text:{valType:"string",role:"info",description:["Sets the text associated with this annotation.","Plotly uses a subset of HTML tags to do things like","newline (<br>), bold (<b></b>), italics (<i></i>),","hyperlinks (<a href='...'></a>). Tags <em>, <sup>, <sub>","<span> are also supported."].join(" ")},textangle:{valType:"angle",dflt:0,role:"style",description:["Sets the angle at which the `text` is drawn","with respect to the horizontal."].join(" ")},font:o({},i,{description:"Sets the annotation text font."}),width:{valType:"number",min:1,dflt:null,role:"style",description:["Sets an explicit width for the text box. null (default) lets the","text set the box width. Wider text will be clipped.","There is no automatic wrapping; use <br> to start a new line."].join(" ")},height:{valType:"number",min:1,dflt:null,role:"style",description:["Sets an explicit height for the text box. null (default) lets the","text set the box height. Taller text will be clipped."].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,role:"style",description:"Sets the opacity of the annotation (text + arrow)."},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",role:"style",description:["Sets the horizontal alignment of the `text` within the box.","Has an effect only if `text` spans more two or more lines","(i.e. `text` contains one or more <br> HTML tags) or if an","explicit width is set to override the text width."].join(" ")},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",role:"style",description:["Sets the vertical alignment of the `text` within the box.","Has an effect only if an explicit height is set to override","the text height."].join(" ")},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",role:"style",description:"Sets the background color of the annotation."},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",role:"style",description:["Sets the color of the border enclosing the annotation `text`."].join(" ")},borderpad:{valType:"number",min:0,dflt:1,role:"style",description:["Sets the padding (in px) between the `text`","and the enclosing border."].join(" ")},borderwidth:{valType:"number",min:0,dflt:1,role:"style",description:["Sets the width (in px) of the border enclosing","the annotation `text`."].join(" ")},showarrow:{valType:"boolean",dflt:!0,role:"style",description:["Determines whether or not the annotation is drawn with an arrow.","If *true*, `text` is placed near the arrow's tail.","If *false*, `text` lines up with the `x` and `y` provided."].join(" ")},arrowcolor:{valType:"color",role:"style",description:"Sets the color of the annotation arrow."},arrowhead:{valType:"integer",min:0,max:r.length,dflt:1,role:"style",description:"Sets the annotation arrow head style."},arrowsize:{valType:"number",min:.3,dflt:1,role:"style",description:"Sets the size (in px) of annotation arrow head."},arrowwidth:{valType:"number",min:.1,role:"style",description:"Sets the width (in px) of annotation arrow."},standoff:{valType:"number",min:0,dflt:0,role:"style",description:["Sets a distance, in pixels, to move the arrowhead away from the","position it is pointing at, for example to point at the edge of","a marker independent of zoom. Note that this shortens the arrow","from the `ax` / `ay` vector, in contrast to `xshift` / `yshift`","which moves everything by this amount."].join(" ")},ax:{valType:"any",role:"info",description:["Sets the x component of the arrow tail about the arrow head.","If `axref` is `pixel`, a positive (negative) ","component corresponds to an arrow pointing","from right to left (left to right).","If `axref` is an axis, this is an absolute value on that axis,","like `x`, NOT a relative value."].join(" ")},ay:{valType:"any",role:"info",description:["Sets the y component of the arrow tail about the arrow head.","If `ayref` is `pixel`, a positive (negative) ","component corresponds to an arrow pointing","from bottom to top (top to bottom).","If `ayref` is an axis, this is an absolute value on that axis,","like `y`, NOT a relative value."].join(" ")},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",a.idRegex.x.toString()],role:"info",description:["Indicates in what terms the tail of the annotation (ax,ay) ","is specified. If `pixel`, `ax` is a relative offset in pixels ","from `x`. If set to an x axis id (e.g. *x* or *x2*), `ax` is ","specified in the same terms as that axis. This is useful ","for trendline annotations which should continue to indicate ","the correct trend when zoomed."].join(" ")},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",a.idRegex.y.toString()],role:"info",description:["Indicates in what terms the tail of the annotation (ax,ay) ","is specified. If `pixel`, `ay` is a relative offset in pixels ","from `y`. If set to a y axis id (e.g. *y* or *y2*), `ay` is ","specified in the same terms as that axis. This is useful ","for trendline annotations which should continue to indicate ","the correct trend when zoomed."].join(" ")},xref:{valType:"enumerated",values:["paper",a.idRegex.x.toString()],role:"info",description:["Sets the annotation's x coordinate axis.","If set to an x axis id (e.g. *x* or *x2*), the `x` position","refers to an x coordinate","If set to *paper*, the `x` position refers to the distance from","the left side of the plotting area in normalized coordinates","where 0 (1) corresponds to the left (right) side."].join(" ")},x:{valType:"any",role:"info",description:["Sets the annotation's x position.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",role:"info",description:["Sets the text box's horizontal position anchor","This anchor binds the `x` position to the *left*, *center*","or *right* of the annotation.","For example, if `x` is set to 1, `xref` to *paper* and","`xanchor` to *right* then the right-most portion of the","annotation lines up with the right-most edge of the","plotting area.","If *auto*, the anchor is equivalent to *center* for","data-referenced annotations or if there is an arrow,","whereas for paper-referenced with no arrow, the anchor picked","corresponds to the closest side."].join(" ")},xshift:{valType:"number",dflt:0,role:"style",description:["Shifts the position of the whole annotation and arrow to the","right (positive) or left (negative) by this many pixels."].join(" ")},yref:{valType:"enumerated",values:["paper",a.idRegex.y.toString()],role:"info",description:["Sets the annotation's y coordinate axis.","If set to an y axis id (e.g. *y* or *y2*), the `y` position","refers to an y coordinate","If set to *paper*, the `y` position refers to the distance from","the bottom of the plotting area in normalized coordinates","where 0 (1) corresponds to the bottom (top)."].join(" ")},y:{valType:"any",role:"info",description:["Sets the annotation's y position.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",role:"info",description:["Sets the text box's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the annotation.","For example, if `y` is set to 1, `yref` to *paper* and","`yanchor` to *top* then the top-most portion of the","annotation lines up with the top-most edge of the","plotting area.","If *auto*, the anchor is equivalent to *middle* for","data-referenced annotations or if there is an arrow,","whereas for paper-referenced with no arrow, the anchor picked","corresponds to the closest side."].join(" ")},yshift:{valType:"number",dflt:0,role:"style",description:["Shifts the position of the whole annotation and arrow up","(positive) or down (negative) by this many pixels."].join(" ")},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,role:"style",description:["Makes this annotation respond to clicks on the plot.","If you click a data point that exactly matches the `x` and `y`","values of this annotation, and it is hidden (visible: false),","it will appear. In *onoff* mode, you must click the same point","again to make it disappear, so if you click multiple points,","you can show multiple annotations. In *onout* mode, a click","anywhere else in the plot (on another data point or not) will","hide this annotation.","If you need to show/hide this annotation in response to different","`x` or `y` values, you can set `xclick` and/or `yclick`. This is","useful for example to label the side of a bar. To label markers","though, `standoff` is preferred over `xclick` and `yclick`."].join(" ")},xclick:{valType:"any",role:"info",description:["Toggle this annotation when clicking a data point whose `x` value","is `xclick` rather than the annotation's `x` value."].join(" ")},yclick:{valType:"any",role:"info",description:["Toggle this annotation when clicking a data point whose `y` value","is `yclick` rather than the annotation's `y` value."].join(" ")},hovertext:{valType:"string",role:"info",description:["Sets text to appear when hovering over this annotation.","If omitted or blank, no hover label will appear."].join(" ")},hoverlabel:{bgcolor:{valType:"color",role:"style",description:["Sets the background color of the hover label.","By default uses the annotation's `bgcolor` made opaque,","or white if it was transparent."].join(" ")},bordercolor:{valType:"color",role:"style",description:["Sets the border color of the hover label.","By default uses either dark grey or white, for maximum","contrast with `hoverlabel.bgcolor`."].join(" ")},font:o({},i,{description:["Sets the hover label text font.","By default uses the global hover font and size,","with color from `hoverlabel.bordercolor`."].join(" ")})},captureevents:{valType:"boolean",role:"info",description:["Determines whether the annotation text box captures mouse move","and click events, or allows those events to pass through to data","points in the plot that may be behind the annotation. By default","`captureevents` is *false* unless `hovertext` is provided.","If you use the event `plotly_clickannotation` without `hovertext`","you must explicitly enable `captureevents`."].join(" ")},_deprecated:{ref:{valType:"string",role:"info",description:["Obsolete. Set `xref` and `yref` separately instead."].join(" ")}}}},{"../../lib/extend":693,"../../plots/cartesian/constants":737,"../../plots/font_attributes":756,"./arrow_paths":576}],578:[function(e,t,n){"use strict";function r(e){var t=e._fullLayout;i.filterVisible(t.annotations).forEach(function(t){var n,r,i=a.getFromId(e,t.xref),o=a.getFromId(e,t.yref),s=3*t.arrowsize*t.arrowwidth||0;i&&i.autorange&&(n=s+t.xshift,r=s-t.xshift,t.axref===t.xref?(a.expand(i,[i.r2c(t.x)],{ppadplus:n,ppadminus:r}),a.expand(i,[i.r2c(t.ax)],{ppadplus:t._xpadplus,ppadminus:t._xpadminus})):a.expand(i,[i.r2c(t.x)],{ppadplus:Math.max(t._xpadplus,n),ppadminus:Math.max(t._xpadminus,r)})),o&&o.autorange&&(n=s-t.yshift,r=s+t.yshift,t.ayref===t.yref?(a.expand(o,[o.r2c(t.y)],{ppadplus:n,ppadminus:r}),a.expand(o,[o.r2c(t.ay)],{ppadplus:t._ypadplus,ppadminus:t._ypadminus})):a.expand(o,[o.r2c(t.y)],{ppadplus:Math.max(t._ypadplus,n),ppadminus:Math.max(t._ypadminus,r)}))})}var i=e("../../lib"),a=e("../../plots/cartesian/axes"),o=e("./draw").draw;t.exports=function(e){var t=e._fullLayout,n=i.filterVisible(t.annotations);if(n.length&&e._fullData.length){var s={};n.forEach(function(e){s[e.xref]=!0,s[e.yref]=!0});if(a.list(e).filter(function(e){return e.autorange&&s[e._id]}).length)return i.syncOrAsync([o,r],e)}}},{"../../lib":697,"../../plots/cartesian/axes":732,"./draw":582}],579:[function(e,t,n){"use strict";function r(e,t){var n=a(e,t);return n.on.length>0||n.explicitOff.length>0}function i(e,t){var n,r=a(e,t),i=r.on,s=r.off.concat(r.explicitOff),c={};if(i.length||s.length){for(n=0;n<i.length;n++)c["annotations["+i[n]+"].visible"]=!0;for(n=0;n<s.length;n++)c["annotations["+s[n]+"].visible"]=!1;return o.update(e,{},c)}}function a(e,t){var n,r,i,a,o,s,c=e._fullLayout.annotations,l=[],u=[],d=[],p=(t||[]).length;for(n=0;n<c.length;n++)if(i=c[n],a=i.clicktoshow){for(r=0;r<p;r++)if(o=t[r],o.xaxis._id===i.xref&&o.yaxis._id===i.yref&&o.xaxis.d2r(o.x)===i._xclick&&o.yaxis.d2r(o.y)===i._yclick){s=i.visible?"onout"===a?u:d:l,s.push(n);break}r===p&&i.visible&&"onout"===a&&u.push(n)}return{on:l,off:u,explicitOff:d}}var o=e("../../plotly");t.exports={hasClickToShow:r,onClick:i}},{"../../plotly":727}],580:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),i=e("../../lib/to_log_range");t.exports=function(e,t,n,a){function o(e){var n=l[e],o=null;o=s?i(n,t.range):Math.pow(10,n),r(o)||(o=null),a(u+e,o)}t=t||{};var s="log"===n&&"linear"===t.type,c="linear"===n&&"log"===t.type;if(s||c)for(var l,u,d=e._fullLayout.annotations,p=t._id.charAt(0),f=0;f<d.length;f++)l=d[f],u="annotations["+f+"].",l[p+"ref"]===t._id&&o(p),l["a"+p+"ref"]===t._id&&o("a"+p)}},{"../../lib/to_log_range":715,"fast-isnumeric":267}],581:[function(e,t,n){"use strict";var r=e("../../plots/array_container_defaults"),i=e("./annotation_defaults");t.exports=function(e,t){r(e,t,{name:"annotations",handleItemDefaults:i})}},{"../../plots/array_container_defaults":729,"./annotation_defaults":575}],582:[function(e,t,n){"use strict";function r(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var n=0;n<t.annotations.length;n++)t.annotations[n].visible&&i(e,n);return c.previousPromises(e)}function i(e,t){function n(e){return e.call(p.font,P).attr({"text-anchor":{left:"start",right:"end"}[x.align]||"middle"}),h.convertToTspans(e,r),e}function r(){function n(e,t){return"auto"===t&&(t=e<1/3?"left":e>2/3?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[t]}var r=I.selectAll("a");if(1===r.size()&&r.text()===I.text()){T.insert("a",":first-child").attr({"xlink:xlink:href":r.attr("xlink:href"),"xlink:xlink:show":r.attr("xlink:show")}).style({cursor:"pointer"}).node().appendChild(z.node())}I.selectAll("tspan.line").attr({y:0,x:0});var i=T.select(".annotation-math-group"),f=!i.empty(),h=p.bBox((f?i:I).node()),y=h.width,E=h.height,P=x.width||y,D=x.height||E,R=Math.round(P+2*O),j=Math.round(D+2*O);x._w=P,x._h=D;var q=!1;if(["x","y"].forEach(function(t){var r,i,a,o,s,d=x[t+"ref"]||t,p=x["a"+t+"ref"],f=u.getFromId(e,d),h=(S+("x"===t?0:-90))*Math.PI/180,m=R*Math.cos(h),g=j*Math.sin(h),v=Math.abs(m)+Math.abs(g),y=x[t+"anchor"],M=x[t+"shift"]*("x"===t?1:-1),_=A[t];if(f){var w=f.r2fraction(x[t]);if((e._dragging||!f.autorange)&&(w<0||w>1)&&(p===d?((w=f.r2fraction(x["a"+t]))<0||w>1)&&(q=!0):q=!0,q))return;r=f._offset+f.r2p(x[t]),o=.5}else"x"===t?(a=x[t],r=b.l+b.w*a):(a=1-x[t],r=b.t+b.h*a),o=x.showarrow?.5:a;if(x.showarrow){_.head=r;var k=x["a"+t];s=m*n(.5,x.xanchor)-g*n(.5,x.yanchor),p===d?(_.tail=f._offset+f.r2p(k),i=s):(_.tail=r+k,i=s+k),_.text=_.tail+s;var $=c["x"===t?"width":"height"];if("paper"===d&&(_.head=l.constrain(_.head,1,$-1)),"pixel"===p){var T=-Math.max(_.tail-3,_.text),C=Math.min(_.tail+3,_.text)-$;T>0?(_.tail+=T,_.text+=T):C>0&&(_.tail-=C,_.text-=C)}_.tail+=M,_.head+=M}else s=v*n(o,y),i=s,_.text=r+s;_.text+=M,s+=M,i+=M,x["_"+t+"padplus"]=v/2+i,x["_"+t+"padminus"]=v/2-i,x["_"+t+"size"]=v,x["_"+t+"shift"]=s}),q)return void T.remove();var B=0,W=0;if("left"!==x.align&&(B=(P-y)*("center"===x.align?.5:1)),"top"!==x.valign&&(W=(D-E)*("middle"===x.valign?.5:1)),f)i.select("svg").attr({x:O+B-1,y:O+W}).call(p.setClipUrl,L?M:null);else{var H=O+W-h.top,F=O+B-h.left;I.attr({x:F,y:H}).call(p.setClipUrl,L?M:null),I.selectAll("tspan.line").attr({y:H,x:F})}N.select("rect").call(p.setRect,O,O,P,D),z.call(p.setRect,C/2,C/2,R-C,j-C),T.call(p.setTranslate,Math.round(A.x.text-R/2),Math.round(A.y.text-j/2)),$.attr({transform:"rotate("+S+","+A.x.text+","+A.y.text+")"});var X="annotations["+t+"]",U=function(n,r){o.select(e).selectAll('.annotation-arrow-g[data-index="'+t+'"]').remove();var i=A.x.head,c=A.y.head,u=A.x.tail+n,f=A.y.tail+r,h=A.x.text+n,m=A.y.text+r,y=l.rotationXYMatrix(S,h,m),M=l.apply2DTransform(y),C=l.apply2DTransform2(y),E=+z.attr("width"),O=+z.attr("height"),L=h-.5*E,N=L+E,P=m-.5*O,I=P+O,D=[[L,P,L,I],[L,I,N,I],[N,I,N,P],[N,P,L,P]].map(C);if(!D.reduce(function(e,t){return e^!!a(i,c,i+1e6,c+1e6,t[0],t[1],t[2],t[3])},!1)){D.forEach(function(e){var t=a(u,f,i,c,e[0],e[1],e[2],e[3]);t&&(u=t.x,f=t.y)});var R=x.arrowwidth,j=x.arrowcolor,q=k.append("g").style({opacity:d.opacity(j)}).classed("annotation-arrow-g",!0).attr("data-index",String(t)),B=q.append("path").attr("d","M"+u+","+f+"L"+i+","+c).style("stroke-width",R+"px").call(d.stroke,d.rgb(j));if(v(B,x.arrowhead,"end",x.arrowsize,x.standoff),e._context.editable&&B.node().parentNode){var W=i,H=c;if(x.standoff){var F=Math.sqrt(Math.pow(i-u,2)+Math.pow(c-f,2));W+=x.standoff*(u-i)/F,H+=x.standoff*(f-c)/F}var U,V,G,Y=q.append("path").classed("annotation",!0).classed("anndrag",!0).attr({"data-index":String(t),d:"M3,3H-3V-3H3ZM0,0L"+(u-W)+","+(f-H),transform:"translate("+W+","+H+")"}).style("stroke-width",R+6+"px").call(d.stroke,"rgba(0,0,0,0)").call(d.fill,"rgba(0,0,0,0)");g.init({element:Y.node(),prepFn:function(){var e=p.getTranslate(T);V=e.x,G=e.y,U={},_&&_.autorange&&(U[_._name+".autorange"]=!0),w&&w.autorange&&(U[w._name+".autorange"]=!0)},moveFn:function(e,t){var n=M(V,G),r=n[0]+e,i=n[1]+t;T.call(p.setTranslate,r,i),U[X+".x"]=_?_.p2r(_.r2p(x.x)+e):x.x+e/b.w,U[X+".y"]=w?w.p2r(w.r2p(x.y)+t):x.y-t/b.h,x.axref===x.xref&&(U[X+".ax"]=_.p2r(_.r2p(x.ax)+e)),x.ayref===x.yref&&(U[X+".ay"]=w.p2r(w.r2p(x.ay)+t)),q.attr("transform","translate("+e+","+t+")"),$.attr({transform:"rotate("+S+","+r+","+i+")"})},doneFn:function(t){if(t){s.relayout(e,U);var n=document.querySelector(".js-notes-box-panel");n&&n.redraw(n.selectedObj)}}})}}};if(x.showarrow&&U(0,0),e._context.editable){var V,G;g.init({element:T.node(),prepFn:function(){G=$.attr("transform"),V={}},moveFn:function(e,t){var n="pointer";if(x.showarrow)x.axref===x.xref?V[X+".ax"]=_.p2r(_.r2p(x.ax)+e):V[X+".ax"]=x.ax+e,x.ayref===x.yref?V[X+".ay"]=w.p2r(w.r2p(x.ay)+t):V[X+".ay"]=x.ay+t,U(e,t);else{if(_)V[X+".x"]=x.x+e/_._m;else{var r=x._xsize/b.w,i=x.x+(x._xshift-x.xshift)/b.w-r/2;V[X+".x"]=g.align(i+e/b.w,r,0,1,x.xanchor)}if(w)V[X+".y"]=x.y+t/w._m;else{var a=x._ysize/b.h,o=x.y-(x._yshift+x.yshift)/b.h-a/2;V[X+".y"]=g.align(o-t/b.h,a,0,1,x.yanchor)}_&&w||(n=g.getCursor(_?.5:V[X+".x"],w?.5:V[X+".y"],x.xanchor,x.yanchor))}$.attr({transform:"translate("+e+","+t+")"+G}),m(T,n)},doneFn:function(t){if(m(T),t){s.relayout(e,V);var n=document.querySelector(".js-notes-box-panel");n&&n.redraw(n.selectedObj)}}})}}var i=e.layout,c=e._fullLayout,b=e._fullLayout._size;c._infolayer.selectAll('.annotation[data-index="'+t+'"]').remove();var y=(i.annotations||[])[t],x=c.annotations[t],M="clip"+c._uid+"_ann"+t;if(!y||!1===x.visible)return void o.selectAll("#"+M).remove();var _=u.getFromId(e,x.xref),w=u.getFromId(e,x.yref),A={x:{},y:{}},S=+x.textangle||0,k=c._infolayer.append("g").classed("annotation",!0).attr("data-index",String(t)).style("opacity",x.opacity),$=k.append("g").classed("annotation-text-g",!0).attr("data-index",String(t)),T=$.append("g").style("pointer-events",x.captureevents?"all":null).call(m,"default").on("click",function(){e._dragging=!1,e.emit("plotly_clickannotation",{index:t,annotation:y,fullAnnotation:x,event:o.event})});x.hovertext&&T.on("mouseover",function(){var t=x.hoverlabel,n=t.font,r=this.getBoundingClientRect(),i=e.getBoundingClientRect();f.loneHover({x0:r.left-i.left,x1:r.right-i.left,y:(r.top+r.bottom)/2-i.top,text:x.hovertext,color:t.bgcolor,borderColor:t.bordercolor,fontFamily:n.family,fontSize:n.size,fontColor:n.color},{container:c._hoverlayer.node(),outerContainer:c._paper.node()})}).on("mouseout",function(){f.loneUnhover(c._hoverlayer.node())});var C=x.borderwidth,E=x.borderpad,O=C+E,z=T.append("rect").attr("class","bg").style("stroke-width",C+"px").call(d.stroke,x.bordercolor).call(d.fill,x.bgcolor),L=x.width||x.height,N=c._defs.select(".clips").selectAll("#"+M).data(L?[0]:[]);N.enter().append("clipPath").classed("annclip",!0).attr("id",M).append("rect"),N.exit().remove();var P=x.font,I=T.append("text").classed("annotation",!0).attr("data-unformatted",x.text).text(x.text);e._context.editable?I.call(h.makeEditable,T).call(n).on("edit",function(r){x.text=r,this.attr({"data-unformatted":x.text}),this.call(n);var i={};i["annotations["+t+"].text"]=x.text,_&&_.autorange&&(i[_._name+".autorange"]=!0),w&&w.autorange&&(i[w._name+".autorange"]=!0),s.relayout(e,i)}):I.call(n)}function a(e,t,n,r,i,a,o,s){var c=n-e,l=i-e,u=o-i,d=r-t,p=a-t,f=s-a,h=c*f-u*d;if(0===h)return null;var m=(l*f-u*p)/h,g=(l*d-c*p)/h;return g<0||g>1||m<0||m>1?null:{x:e+c*m,y:t+d*m}}var o=e("d3"),s=e("../../plotly"),c=e("../../plots/plots"),l=e("../../lib"),u=e("../../plots/cartesian/axes"),d=e("../color"),p=e("../drawing"),f=e("../fx"),h=e("../../lib/svg_text_utils"),m=e("../../lib/setcursor"),g=e("../dragelement"),v=e("./draw_arrow_head");t.exports={draw:r,drawOne:i}},{"../../lib":697,"../../lib/setcursor":712,"../../lib/svg_text_utils":714,"../../plotly":727,"../../plots/cartesian/axes":732,"../../plots/plots":760,"../color":586,"../dragelement":607,"../drawing":610,"../fx":627,"./draw_arrow_head":583,d3:265}],583:[function(e,t,n){"use strict";var r=e("d3"),i=e("fast-isnumeric"),a=e("../color"),o=e("../drawing"),s=e("./arrow_paths");t.exports=function(e,t,n,c,l){function u(){e.style("stroke-dasharray","0px,100px")}function d(n,i){f.path&&(t>5&&(i=0),
60r.select(p.parentElement).append("path").attr({class:e.attr("class"),d:f.path,transform:"translate("+n.x+","+n.y+")rotate("+180*i/Math.PI+")scale("+b+")"}).style({fill:y,opacity:x,"stroke-width":0}))}i(c)||(c=1);var p=e.node(),f=s[t||0];"string"==typeof n&&n||(n="end");var h,m,g,v,b=(o.getPx(e,"stroke-width")||1)*c,y=e.style("stroke")||a.defaultLine,x=e.style("stroke-opacity")||1,M=n.indexOf("start")>=0,_=n.indexOf("end")>=0,w=f.backoff*b+l;if("line"===p.nodeName){h={x:+e.attr("x1"),y:+e.attr("y1")},m={x:+e.attr("x2"),y:+e.attr("y2")};var A=h.x-m.x,S=h.y-m.y;if(g=Math.atan2(S,A),v=g+Math.PI,w){if(w*w>A*A+S*S)return void u();var k=w*Math.cos(g),$=w*Math.sin(g);M&&(h.x-=k,h.y-=$,e.attr({x1:h.x,y1:h.y})),_&&(m.x+=k,m.y+=$,e.attr({x2:m.x,y2:m.y}))}}else if("path"===p.nodeName){var T=p.getTotalLength(),C="";if(T<w)return void u();if(M){var E=p.getPointAtLength(0),O=p.getPointAtLength(.1);g=Math.atan2(E.y-O.y,E.x-O.x),h=p.getPointAtLength(Math.min(w,T)),w&&(C="0px,"+w+"px,")}if(_){var z=p.getPointAtLength(T),L=p.getPointAtLength(T-.1);if(v=Math.atan2(z.y-L.y,z.x-L.x),m=p.getPointAtLength(Math.max(0,T-w)),w){var N=C?2*w:w;C+=T-N+"px,"+T+"px"}}else C&&(C+=T+"px");C&&e.style("stroke-dasharray",C)}M&&d(h,g),_&&d(m,v)}},{"../color":586,"../drawing":610,"./arrow_paths":576,d3:265,"fast-isnumeric":267}],584:[function(e,t,n){"use strict";var r=e("./draw"),i=e("./click");t.exports={moduleType:"component",name:"annotations",layoutAttributes:e("./attributes"),supplyLayoutDefaults:e("./defaults"),calcAutorange:e("./calc_autorange"),draw:r.draw,drawOne:r.drawOne,hasClickToShow:i.hasClickToShow,onClick:i.onClick,convertCoords:e("./convert_coords")}},{"./attributes":577,"./calc_autorange":578,"./click":579,"./convert_coords":580,"./defaults":581,"./draw":582}],585:[function(e,t,n){"use strict";n.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],n.defaultLine="#444",n.lightLine="#eee",n.background="#fff",n.borderLine="#BEC8D9",n.lightFraction=1e3/11},{}],586:[function(e,t,n){"use strict";function r(e){if(a(e)||"string"!=typeof e)return e;var t=e.trim();if("rgb"!==t.substr(0,3))return e;var n=t.match(/^rgba?\s*\(([^()]*)\)$/);if(!n)return e;var r=n[1].trim().split(/\s*[\s,]\s*/),i="a"===t.charAt(3)&&4===r.length;if(!i&&3!==r.length)return e;for(var o=0;o<r.length;o++){if(!r[o].length)return e;if(r[o]=Number(r[o]),!(r[o]>=0))return e;if(3===o)r[o]>1&&(r[o]=1);else if(r[o]>=1)return e}var s=Math.round(255*r[0])+", "+Math.round(255*r[1])+", "+Math.round(255*r[2]);return i?"rgba("+s+", "+r[3]+")":"rgb("+s+")"}var i=e("tinycolor2"),a=e("fast-isnumeric"),o=t.exports={},s=e("./attributes");o.defaults=s.defaults;var c=o.defaultLine=s.defaultLine;o.lightLine=s.lightLine;var l=o.background=s.background;o.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"},o.rgb=function(e){return o.tinyRGB(i(e))},o.opacity=function(e){return e?i(e).getAlpha():0},o.addOpacity=function(e,t){var n=i(e).toRgb();return"rgba("+Math.round(n.r)+", "+Math.round(n.g)+", "+Math.round(n.b)+", "+t+")"},o.combine=function(e,t){var n=i(e).toRgb();if(1===n.a)return i(e).toRgbString();var r=i(t||l).toRgb(),a=1===r.a?r:{r:255*(1-r.a)+r.r*r.a,g:255*(1-r.a)+r.g*r.a,b:255*(1-r.a)+r.b*r.a},o={r:a.r*(1-n.a)+n.r*n.a,g:a.g*(1-n.a)+n.g*n.a,b:a.b*(1-n.a)+n.b*n.a};return i(o).toRgbString()},o.contrast=function(e,t,n){var r=i(e);return 1!==r.getAlpha()&&(r=i(o.combine(e,l))),(r.isDark()?t?r.lighten(t):l:n?r.darken(n):c).toString()},o.stroke=function(e,t){var n=i(t);e.style({stroke:o.tinyRGB(n),"stroke-opacity":n.getAlpha()})},o.fill=function(e,t){var n=i(t);e.style({fill:o.tinyRGB(n),"fill-opacity":n.getAlpha()})},o.clean=function(e){if(e&&"object"===(void 0===e?"undefined":_typeof2(e))){var t,n,i,a,s=Object.keys(e);for(t=0;t<s.length;t++)if(i=s[t],a=e[i],"color"===i.substr(i.length-5))if(Array.isArray(a))for(n=0;n<a.length;n++)a[n]=r(a[n]);else e[i]=r(a);else if("colorscale"===i.substr(i.length-10)&&Array.isArray(a))for(n=0;n<a.length;n++)Array.isArray(a[n])&&(a[n][1]=r(a[n][1]));else if(Array.isArray(a)){var c=a[0];if(!Array.isArray(c)&&c&&"object"===(void 0===c?"undefined":_typeof2(c)))for(n=0;n<a.length;n++)o.clean(a[n])}else a&&"object"===(void 0===a?"undefined":_typeof2(a))&&o.clean(a)}}},{"./attributes":585,"fast-isnumeric":267,tinycolor2:826}],587:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/layout_attributes"),i=e("../../plots/font_attributes"),a=e("../../lib/extend").extendFlat;t.exports={thicknessmode:{valType:"enumerated",values:["fraction","pixels"],role:"style",dflt:"pixels",description:["Determines whether this color bar's thickness","(i.e. the measure in the constant color direction)","is set in units of plot *fraction* or in *pixels*.","Use `thickness` to set the value."].join(" ")},thickness:{valType:"number",role:"style",min:0,dflt:30,description:["Sets the thickness of the color bar","This measure excludes the size of the padding, ticks and labels."].join(" ")},lenmode:{valType:"enumerated",values:["fraction","pixels"],role:"info",dflt:"fraction",description:["Determines whether this color bar's length","(i.e. the measure in the color variation direction)","is set in units of plot *fraction* or in *pixels.","Use `len` to set the value."].join(" ")},len:{valType:"number",min:0,dflt:1,role:"style",description:["Sets the length of the color bar","This measure excludes the padding of both ends.","That is, the color bar length is this length minus the","padding on both ends."].join(" ")},x:{valType:"number",dflt:1.02,min:-2,max:3,role:"style",description:["Sets the x position of the color bar (in plot fraction)."].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",role:"style",description:["Sets this color bar's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the color bar."].join(" ")},xpad:{valType:"number",role:"style",min:0,dflt:10,description:"Sets the amount of padding (in px) along the x direction."},y:{valType:"number",role:"style",dflt:.5,min:-2,max:3,description:["Sets the y position of the color bar (in plot fraction)."].join(" ")},yanchor:{valType:"enumerated",values:["top","middle","bottom"],role:"style",dflt:"middle",description:["Sets this color bar's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the color bar."].join(" ")},ypad:{valType:"number",role:"style",min:0,dflt:10,description:"Sets the amount of padding (in px) along the y direction."},outlinecolor:r.linecolor,outlinewidth:r.linewidth,bordercolor:r.linecolor,borderwidth:{valType:"number",role:"style",min:0,dflt:0,description:["Sets the width (in px) or the border enclosing this color bar."].join(" ")},bgcolor:{valType:"color",role:"style",dflt:"rgba(0,0,0,0)",description:"Sets the color of padded area."},tickmode:r.tickmode,nticks:r.nticks,tick0:r.tick0,dtick:r.dtick,tickvals:r.tickvals,ticktext:r.ticktext,ticks:a({},r.ticks,{dflt:""}),ticklen:r.ticklen,tickwidth:r.tickwidth,tickcolor:r.tickcolor,showticklabels:r.showticklabels,tickfont:r.tickfont,tickangle:r.tickangle,tickformat:r.tickformat,tickprefix:r.tickprefix,showtickprefix:r.showtickprefix,ticksuffix:r.ticksuffix,showticksuffix:r.showticksuffix,separatethousands:r.separatethousands,exponentformat:r.exponentformat,showexponent:r.showexponent,title:{valType:"string",role:"info",dflt:"Click to enter colorscale title",description:"Sets the title of the color bar."},titlefont:a({},i,{description:["Sets this color bar's title font."].join(" ")}),titleside:{valType:"enumerated",values:["right","top","bottom"],role:"style",dflt:"top",description:["Determines the location of the colorbar title","with respect to the color bar."].join(" ")}}},{"../../lib/extend":693,"../../plots/cartesian/layout_attributes":743,"../../plots/font_attributes":756}],588:[function(e,t,n){"use strict";var r=e("../../lib"),i=e("../../plots/cartesian/tick_value_defaults"),a=e("../../plots/cartesian/tick_mark_defaults"),o=e("../../plots/cartesian/tick_label_defaults"),s=e("./attributes");t.exports=function(e,t,n){function c(e,t){return r.coerce(u,l,s,e,t)}var l=t.colorbar={},u=e.colorbar||{};c("thickness","fraction"===c("thicknessmode")?30/(n.width-n.margin.l-n.margin.r):30),c("len","fraction"===c("lenmode")?1:n.height-n.margin.t-n.margin.b),c("x"),c("xanchor"),c("xpad"),c("y"),c("yanchor"),c("ypad"),r.noneOrAll(u,l,["x","y"]),c("outlinecolor"),c("outlinewidth"),c("bordercolor"),c("borderwidth"),c("bgcolor"),i(u,l,c,"linear"),o(u,l,c,"linear",{outerTicks:!1,font:n.font,noHover:!0}),a(u,l,c,"linear",{outerTicks:!1,font:n.font,noHover:!0}),c("title"),r.coerceFont(c,"titlefont",n.font),c("titleside")}},{"../../lib":697,"../../plots/cartesian/tick_label_defaults":750,"../../plots/cartesian/tick_mark_defaults":751,"../../plots/cartesian/tick_value_defaults":752,"./attributes":587}],589:[function(e,t,n){"use strict";var r=e("d3"),i=e("tinycolor2"),a=e("../../plotly"),o=e("../../plots/plots"),s=e("../../registry"),c=e("../../plots/cartesian/axes"),l=e("../dragelement"),u=e("../../lib"),d=e("../../lib/extend").extendFlat,p=e("../../lib/setcursor"),f=e("../drawing"),h=e("../color"),m=e("../titles"),g=e("../../plots/cartesian/axis_defaults"),v=e("../../plots/cartesian/position_defaults"),b=e("../../plots/cartesian/layout_attributes"),y=e("./attributes");t.exports=function(e,t){function n(){function y(e,t){return u.coerce(Z,J,b,e,t)}function _(){if(-1!==["top","bottom"].indexOf(M.titleside)){var t=ae.select(".cbtitle"),n=t.select("text"),a=[-M.outlinewidth/2,M.outlinewidth/2],o=t.select(".h"+J._id+"title-math-group").node(),s=15.6;if(n.node()&&(s=1.3*parseInt(n.style("font-size"),10)),o?(se=f.bBox(o).height)>s&&(a[1]-=(se-s)/2):n.node()&&!n.classed("js-placeholder")&&(se=f.bBox(t.node()).height),se){if(se+=5,"top"===M.titleside)J.domain[1]-=se/k.h,a[1]*=-1;else{J.domain[0]+=se/k.h;var l=Math.max(1,n.selectAll("tspan.line").size());a[1]+=(1-l)*s}t.attr("transform","translate("+a+")"),J.setScale()}}ae.selectAll(".cbfills,.cblines,.cbaxis").attr("transform","translate(0,"+Math.round(k.h*(1-J.domain[1]))+")");var d=ae.select(".cbfills").selectAll("rect.cbfill").data(E);d.enter().append("rect").classed("cbfill",!0).style("stroke","none"),d.exit().remove(),d.each(function(e,t){var n=[0===t?T[0]:(E[t]+E[t-1])/2,t===E.length-1?T[1]:(E[t]+E[t+1])/2].map(J.c2p).map(Math.round);t!==E.length-1&&(n[1]+=n[1]>n[0]?1:-1);var a=z(e).replace("e-",""),o=i(a).toHexString();r.select(this).attr({x:V,width:Math.max(q,2),y:r.min(n),height:Math.max(r.max(n)-r.min(n),2),fill:o})});var p=ae.select(".cblines").selectAll("path.cbline").data(M.line.color&&M.line.width?C:[]);return p.enter().append("path").classed("cbline",!0),p.exit().remove(),p.each(function(e){r.select(this).attr("d","M"+V+","+(Math.round(J.c2p(e))+M.line.width/2%1)+"h"+q).call(f.lineGroupStyle,M.line.width,O(e),M.line.dash)}),J._axislayer.selectAll("g."+J._id+"tick,path").remove(),J._pos=V+q+(M.outlinewidth||0)/2-("outside"===M.ticks?1:0),J.side="right",u.syncOrAsync([function(){return c.doTicks(e,J,!0)},function(){if(-1===["top","bottom"].indexOf(M.titleside)){var t=J.titlefont.size,n=J._offset+J._length/2,i=k.l+(J.position||0)*k.w+("right"===J.side?10+t*(J.showticklabels?1:.5):-10-t*(J.showticklabels?.5:0));w("h"+J._id+"title",{avoid:{selection:r.select(e).selectAll("g."+J._id+"tick"),side:M.titleside,offsetLeft:k.l,offsetTop:k.t,maxShift:S.width},attributes:{x:i,y:n,"text-anchor":"middle"},transform:{rotate:"-90",offset:0}})}}])}function w(t,n){var r,i=x();r=s.traceIs(i,"markerColorscale")?"marker.colorbar.title":"colorbar.title";var a={propContainer:J,propName:r,traceIndex:i.index,dfltName:"colorscale",containerGroup:ae.select(".cbtitle")},o="h"===t.charAt(0)?t.substr(1):"h"+t;ae.selectAll("."+o+",."+o+"-math-group").remove(),m.draw(e,t,d(a,n||{}))}function A(){var n=q+M.outlinewidth/2+f.bBox(J._axislayer.node()).width;if(D=oe.select("text"),D.node()&&!D.classed("js-placeholder")){var r,i=oe.select(".h"+J._id+"title-math-group").node();r=i&&-1!==["top","bottom"].indexOf(M.titleside)?f.bBox(i).width:f.bBox(oe.node()).right-V-k.l,n=Math.max(n,r)}var a=2*M.xpad+n+M.borderwidth+M.outlinewidth/2,s=Q-K;ae.select(".cbbg").attr({x:V-M.xpad-(M.borderwidth+M.outlinewidth)/2,y:K-X,width:Math.max(a,2),height:Math.max(s+2*X,2)}).call(h.fill,M.bgcolor).call(h.stroke,M.bordercolor).style({"stroke-width":M.borderwidth}),ae.selectAll(".cboutline").attr({x:V,y:K+M.ypad+("top"===M.titleside?se:0),width:Math.max(q,2),height:Math.max(s-2*M.ypad-se,2)}).call(h.stroke,M.outlinecolor).style({fill:"None","stroke-width":M.outlinewidth});var c=({center:.5,right:1}[M.xanchor]||0)*a;ae.attr("transform","translate("+(k.l-c)+","+k.t+")"),o.autoMargin(e,t,{x:M.x,y:M.y,l:a*({right:1,center:.5}[M.xanchor]||0),r:a*({left:1,center:.5}[M.xanchor]||0),t:s*({bottom:1,middle:.5}[M.yanchor]||0),b:s*({top:1,middle:.5}[M.yanchor]||0)})}var S=e._fullLayout,k=S._size;if("function"!=typeof M.fillcolor&&"function"!=typeof M.line.color)return void S._infolayer.selectAll("g."+t).remove();var $,T=r.extent(("function"==typeof M.fillcolor?M.fillcolor:M.line.color).domain()),C=[],E=[],O="function"==typeof M.line.color?M.line.color:function(){return M.line.color},z="function"==typeof M.fillcolor?M.fillcolor:function(){return M.fillcolor},L=M.levels.end+M.levels.size/100,N=M.levels.size,P=1.001*T[0]-.001*T[1],I=1.001*T[1]-.001*T[0];for($=M.levels.start;($-L)*N<0;$+=N)$>P&&$<I&&C.push($);if("function"==typeof M.fillcolor)if(M.filllevels)for(L=M.filllevels.end+M.filllevels.size/100,N=M.filllevels.size,$=M.filllevels.start;($-L)*N<0;$+=N)$>T[0]&&$<T[1]&&E.push($);else E=C.map(function(e){return e-M.levels.size/2}),E.push(E[E.length-1]+M.levels.size);else M.fillcolor&&"string"==typeof M.fillcolor&&(E=[0]);M.levels.size<0&&(C.reverse(),E.reverse());var D,R=S.height-S.margin.t-S.margin.b,j=S.width-S.margin.l-S.margin.r,q=Math.round(M.thickness*("fraction"===M.thicknessmode?j:1)),B=q/k.w,W=Math.round(M.len*("fraction"===M.lenmode?R:1)),H=W/k.h,F=M.xpad/k.w,X=(M.borderwidth+M.outlinewidth)/2,U=M.ypad/k.h,V=Math.round(M.x*k.w+M.xpad),G=M.x-B*({middle:.5,right:1}[M.xanchor]||0),Y=M.y+H*(({top:-.5,bottom:.5}[M.yanchor]||0)-.5),Q=Math.round(k.h*(1-Y)),K=Q-W,Z={type:"linear",range:T,tickmode:M.tickmode,nticks:M.nticks,tick0:M.tick0,dtick:M.dtick,tickvals:M.tickvals,ticktext:M.ticktext,ticks:M.ticks,ticklen:M.ticklen,tickwidth:M.tickwidth,tickcolor:M.tickcolor,showticklabels:M.showticklabels,tickfont:M.tickfont,tickangle:M.tickangle,tickformat:M.tickformat,exponentformat:M.exponentformat,separatethousands:M.separatethousands,showexponent:M.showexponent,showtickprefix:M.showtickprefix,tickprefix:M.tickprefix,showticksuffix:M.showticksuffix,ticksuffix:M.ticksuffix,title:M.title,titlefont:M.titlefont,anchor:"free",position:1},J={type:"linear",_id:"y"+t},ee={letter:"y",font:S.font,noHover:!0,calendar:S.calendar};if(g(Z,J,y,ee,S),v(Z,J,y,ee),J.position=M.x+F+B,n.axis=J,-1!==["top","bottom"].indexOf(M.titleside)&&(J.titleside=M.titleside,J.titlex=M.x+F,J.titley=Y+("top"===M.titleside?H-U:U)),M.line.color&&"auto"===M.tickmode){J.tickmode="linear",J.tick0=M.levels.start;var te=M.levels.size,ne=u.constrain((Q-K)/50,4,15)+1,re=(T[1]-T[0])/((M.nticks||ne)*te);if(re>1){var ie=Math.pow(10,Math.floor(Math.log(re)/Math.LN10));te*=ie*u.roundUp(re/ie,[2,5,10]),(Math.abs(M.levels.start)/M.levels.size+1e-6)%1<2e-6&&(J.tick0=0)}J.dtick=te}J.domain=[Y+U,Y+H-U],J.setScale();var ae=S._infolayer.selectAll("g."+t).data([0]);ae.enter().append("g").classed(t,!0).each(function(){var e=r.select(this);e.append("rect").classed("cbbg",!0),e.append("g").classed("cbfills",!0),e.append("g").classed("cblines",!0),e.append("g").classed("cbaxis",!0).classed("crisp",!0),e.append("g").classed("cbtitleunshift",!0).append("g").classed("cbtitle",!0),e.append("rect").classed("cboutline",!0),e.select(".cbtitle").datum(0)}),ae.attr("transform","translate("+Math.round(k.l)+","+Math.round(k.t)+")");var oe=ae.select(".cbtitleunshift").attr("transform","translate(-"+Math.round(k.l)+",-"+Math.round(k.t)+")");J._axislayer=ae.select(".cbaxis");var se=0;if(-1!==["top","bottom"].indexOf(M.titleside)){var ce,le=k.l+(M.x+F)*k.w,ue=J.titlefont.size;ce="top"===M.titleside?(1-(Y+H-U))*k.h+k.t+3+.75*ue:(1-(Y+U))*k.h+k.t-3-.25*ue,w(J._id+"title",{attributes:{x:le,y:ce,"text-anchor":"start"}})}var de=u.syncOrAsync([o.previousPromises,_,o.previousPromises,A],e);if(de&&de.then&&(e._promises||[]).push(de),e._context.editable){var pe,fe,he;l.init({element:ae.node(),prepFn:function(){pe=ae.attr("transform"),p(ae)},moveFn:function(e,t){ae.attr("transform",pe+" translate("+e+","+t+")"),fe=l.align(G+e/k.w,B,0,1,M.xanchor),he=l.align(Y-t/k.h,H,0,1,M.yanchor);var n=l.getCursor(fe,he,M.xanchor,M.yanchor);p(ae,n)},doneFn:function(t){p(ae),t&&void 0!==fe&&void 0!==he&&a.restyle(e,{"colorbar.x":fe,"colorbar.y":he},x().index)}})}return de}function x(){var n,r,i=t.substr(2);for(n=0;n<e._fullData.length;n++)if(r=e._fullData[n],r.uid===i)return r}var M={};return Object.keys(y).forEach(function(e){M[e]=null}),M.fillcolor=null,M.line={color:null,width:null,dash:null},M.levels={start:null,end:null,size:null},M.filllevels=null,Object.keys(M).forEach(function(e){n[e]=function(t){return arguments.length?(M[e]=u.isPlainObject(M[e])?u.extendFlat(M[e],t):t,n):M[e]}}),n.options=function(e){return Object.keys(e).forEach(function(t){"function"==typeof n[t]&&n[t](e[t])}),n},n._opts=M,n}},{"../../lib":697,"../../lib/extend":693,"../../lib/setcursor":712,"../../plotly":727,"../../plots/cartesian/axes":732,"../../plots/cartesian/axis_defaults":734,"../../plots/cartesian/layout_attributes":743,"../../plots/cartesian/position_defaults":746,"../../plots/plots":760,"../../registry":767,"../color":586,"../dragelement":607,"../drawing":610,"../titles":675,"./attributes":587,d3:265,tinycolor2:826}],590:[function(e,t,n){"use strict";var r=e("../../lib");t.exports=function(e){return r.isPlainObject(e.colorbar)}},{"../../lib":697}],591:[function(e,t,n){"use strict";t.exports={zauto:{valType:"boolean",role:"info",dflt:!0,description:["Determines the whether or not the color domain is computed","with respect to the input data."].join(" ")},zmin:{valType:"number",role:"info",dflt:null,description:"Sets the lower bound of color domain."},zmax:{valType:"number",role:"info",dflt:null,description:"Sets the upper bound of color domain."},colorscale:{valType:"colorscale",role:"style",description:["Sets the colorscale.","The colorscale must be an array containing","arrays mapping a normalized value to an","rgb, rgba, hex, hsl, hsv, or named color string.","At minimum, a mapping for the lowest (0) and highest (1)","values are required. For example,","`[[0, 'rgb(0,0,255)', [1, 'rgb(255,0,0)']]`.","To control the bounds of the colorscale in z space,","use zmin and zmax"].join(" ")},autocolorscale:{valType:"boolean",role:"style",dflt:!0,description:["Determines whether or not the colorscale is picked using the sign of","the input z values."].join(" ")},reversescale:{valType:"boolean",role:"style",dflt:!1,description:"Reverses the colorscale."},showscale:{valType:"boolean",role:"info",dflt:!0,description:["Determines whether or not a colorbar is displayed for this trace."].join(" ")}}},{}],592:[function(e,t,n){"use strict";var r=e("../../lib"),i=e("./scales"),a=e("./flip_scale");t.exports=function(e,t,n,o){var s,c;n?(s=r.nestedProperty(e,n).get(),c=r.nestedProperty(e._input,n).get()):(s=e,c=e._input);var l=o+"auto",u=o+"min",d=o+"max",p=s[l],f=s[u],h=s[d],m=s.colorscale;!1===p&&void 0!==f||(f=r.aggNums(Math.min,null,t)),!1===p&&void 0!==h||(h=r.aggNums(Math.max,null,t)),f===h&&(f-=.5,h+=.5),s[u]=f,s[d]=h,c[u]=f,c[d]=h,c[l]=!1!==p||void 0===f&&void 0===h,s.autocolorscale&&(m=f*h<0?i.RdBu:f>=0?i.Reds:i.Blues,c.colorscale=m,s.reversescale&&(m=a(m)),s.colorscale=m)}},{"../../lib":697,"./flip_scale":597,"./scales":604}],593:[function(e,t,n){"use strict";var r=e("./attributes"),i=e("../../lib/extend").extendDeep,a=e("./scales.js");t.exports=function(e){return{color:{valType:"color",arrayOk:!0,role:"style",description:["Sets the ",e," color. It accepts either a specific color"," or an array of numbers that are mapped to the colorscale"," relative to the max and min values of the array or relative to"," `cmin` and `cmax` if set."].join("")},colorscale:i({},r.colorscale,{description:["Sets the colorscale and only has an effect"," if `",e,".color` is set to a numerical array."," The colorscale must be an array containing"," arrays mapping a normalized value to an"," rgb, rgba, hex, hsl, hsv, or named color string."," At minimum, a mapping for the lowest (0) and highest (1)"," values are required. For example,"," `[[0, 'rgb(0,0,255)', [1, 'rgb(255,0,0)']]`."," To control the bounds of the colorscale in color space,"," use `",e,".cmin` and `",e,".cmax`."," Alternatively, `colorscale` may be a palette name string"," of the following list: "].join("").concat(Object.keys(a).join(", "))}),cauto:i({},r.zauto,{description:["Has an effect only if `",e,".color` is set to a numerical array"," and `cmin`, `cmax` are set by the user. In this case,"," it controls whether the range of colors in `colorscale` is mapped to"," the range of values in the `color` array (`cauto: true`), or the `cmin`/`cmax`"," values (`cauto: false`)."," Defaults to `false` when `cmin`, `cmax` are set by the user."].join("")}),cmax:i({},r.zmax,{description:["Has an effect only if `",e,".color` is set to a numerical array."," Sets the upper bound of the color domain."," Value should be associated to the `",e,".color` array index,"," and if set, `",e,".cmin` must be set as well."].join("")}),cmin:i({},r.zmin,{description:["Has an effect only if `",e,".color` is set to a numerical array."," Sets the lower bound of the color domain."," Value should be associated to the `",e,".color` array index,"," and if set, `",e,".cmax` must be set as well."].join("")}),autocolorscale:i({},r.autocolorscale,{description:["Has an effect only if `",e,".color` is set to a numerical array."," Determines whether the colorscale is a default palette (`autocolorscale: true`)"," or the palette determined by `",e,".colorscale`."," In case `colorscale` is unspecified or `autocolorscale` is true, the default "," palette will be chosen according to whether numbers in the `color` array are"," all positive, all negative or mixed."].join("")}),reversescale:i({},r.reversescale,{description:["Has an effect only if `",e,".color` is set to a numerical array."," Reverses the color mapping if true (`cmin` will correspond to the last color"," in the array and `cmax` will correspond to the first color)."].join("")})}}},{"../../lib/extend":693,"./attributes":591,"./scales.js":604}],594:[function(e,t,n){"use strict";var r=e("./scales");t.exports=r.RdBu},{"./scales":604}],595:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),i=e("../../lib"),a=e("../colorbar/has_colorbar"),o=e("../colorbar/defaults"),s=e("./is_valid_scale"),c=e("./flip_scale");t.exports=function(e,t,n,l,u){var d=u.prefix,p=u.cLetter,f=d.slice(0,d.length-1),h=d?i.nestedProperty(e,f).get()||{}:e,m=d?i.nestedProperty(t,f).get()||{}:t,g=h[p+"min"],v=h[p+"max"],b=h.colorscale;l(d+p+"auto",!(r(g)&&r(v)&&g<v)),l(d+p+"min"),l(d+p+"max");var y;void 0!==b&&(y=!s(b)),l(d+"autocolorscale",y);var x=l(d+"colorscale");if(l(d+"reversescale")&&(m.colorscale=c(x)),"marker.line."!==d){var M;d&&(M=a(h)),l(d+"showscale",M)&&o(h,m,n)}}},{"../../lib":697,"../colorbar/defaults":588,"../colorbar/has_colorbar":590,"./flip_scale":597,"./is_valid_scale":601,"fast-isnumeric":267}],596:[function(e,t,n){"use strict";t.exports=function(e,t,n){for(var r=e.length,i=new Array(r),a=new Array(r),o=0;o<r;o++){var s=e[o];i[o]=t+s[0]*(n-t),a[o]=s[1]}return{domain:i,range:a}}},{}],597:[function(e,t,n){"use strict";t.exports=function(e){for(var t,n=e.length,r=new Array(n),i=n-1,a=0;i>=0;i--,a++)t=e[i],r[a]=[1-t[0],t[1]];return r}},{}],598:[function(e,t,n){"use strict";var r=e("./scales"),i=e("./default_scale"),a=e("./is_valid_scale_array");t.exports=function(e,t){function n(){try{e=r[e]||JSON.parse(e)}catch(n){e=t}}return t||(t=i),e?("string"==typeof e&&(n(),"string"==typeof e&&n()),a(e)?e:t):t}},{"./default_scale":594,"./is_valid_scale_array":602,"./scales":604}],599:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),i=e("../../lib"),a=e("./is_valid_scale");t.exports=function(e,t){var n=t?i.nestedProperty(e,t).get()||{}:e,o=n.color,s=!1;if(Array.isArray(o))for(var c=0;c<o.length;c++)if(r(o[c])){s=!0;break}return i.isPlainObject(n)&&(s||!0===n.showscale||r(n.cmin)&&r(n.cmax)||a(n.colorscale)||i.isPlainObject(n.colorbar))}},{"../../lib":697,"./is_valid_scale":601,"fast-isnumeric":267}],600:[function(e,t,n){"use strict";n.scales=e("./scales"),n.defaultScale=e("./default_scale"),n.attributes=e("./attributes"),n.handleDefaults=e("./defaults"),n.calc=e("./calc"),n.hasColorscale=e("./has_colorscale"),n.isValidScale=e("./is_valid_scale"),n.getScale=e("./get_scale"),n.flipScale=e("./flip_scale"),n.extractScale=e("./extract_scale"),n.makeColorScaleFunc=e("./make_color_scale_func")},{"./attributes":591,"./calc":592,"./default_scale":594,"./defaults":595,"./extract_scale":596,"./flip_scale":597,"./get_scale":598,"./has_colorscale":599,"./is_valid_scale":601,"./make_color_scale_func":603,"./scales":604}],601:[function(e,t,n){"use strict";var r=e("./scales"),i=e("./is_valid_scale_array");t.exports=function(e){return void 0!==r[e]||i(e)}},{"./is_valid_scale_array":602,"./scales":604}],602:[function(e,t,n){"use strict";var r=e("tinycolor2");t.exports=function(e){var t=0;if(!Array.isArray(e)||e.length<2)return!1;if(!e[0]||!e[e.length-1])return!1;if(0!=+e[0][0]||1!=+e[e.length-1][0])return!1;for(var n=0;n<e.length;n++){var i=e[n];if(2!==i.length||+i[0]<t||!r(i[1]).isValid())return!1;t=+i[0]}return!0}},{tinycolor2:826}],603:[function(e,t,n){"use strict";function r(e){var t={r:e[0],g:e[1],b:e[2],a:e[3]};return a(t).toRgbString()}var i=e("d3"),a=e("tinycolor2"),o=e("fast-isnumeric"),s=e("../color");t.exports=function(e,t){t=t||{};for(var n=e.domain,c=e.range,l=c.length,u=new Array(l),d=0;d<l;d++){var p=a(c[d]).toRgb();u[d]=[p.r,p.g,p.b,p.a]}var f,h=i.scale.linear().domain(n).range(u).clamp(!0),m=t.noNumericCheck,g=t.returnArray;return f=m&&g?h:m?function(e){return r(h(e))}:g?function(e){return o(e)?h(e):a(e).isValid()?e:s.defaultLine}:function(e){return o(e)?r(h(e)):a(e).isValid()?e:s.defaultLine},f.domain=h.domain,f.range=function(){return c},f}},{"../color":586,d3:265,"fast-isnumeric":267,tinycolor2:826}],604:[function(e,t,n){"use strict";t.exports={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]]}},{}],605:[function(e,t,n){"use strict";t.exports=function(e,t,n,r,i){var a=(e-n)/(r-n),o=a+t/(r-n),s=(a+o)/2;return"left"===i||"bottom"===i?a:"center"===i||"middle"===i?s:"right"===i||"top"===i?o:a<2/3-s?a:o>4/3-s?o:s}},{}],606:[function(e,t,n){"use strict";var r=e("../../lib"),i=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];t.exports=function(e,t,n,a){return e="left"===n?0:"center"===n?1:"right"===n?2:r.constrain(Math.floor(3*e),0,2),t="bottom"===a?0:"middle"===a?1:"top"===a?2:r.constrain(Math.floor(3*t),0,2),i[t][e]}},{"../../lib":697}],607:[function(e,t,n){"use strict";function r(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}function i(e){e._dragging=!1,e._replotPending&&a.plot(e)}var a=e("../../plotly"),o=e("../../lib"),s=e("../../plots/cartesian/constants"),c=e("../../constants/interactions"),l=t.exports={};l.align=e("./align"),l.getCursor=e("./cursor");var u=e("./unhover");l.unhover=u.wrapped,l.unhoverRaw=u.raw,l.init=function(e){function t(t){return e.element.onmousemove=m,g._dragged=!1,g._dragging=!0,u=t.clientX,d=t.clientY,h=t.target,p=(new Date).getTime(),p-g._mouseDownTime<b?v+=1:(v=1,g._mouseDownTime=p),e.prepFn&&e.prepFn(t,u,d),f=r(),f.onmousemove=n,f.onmouseup=a,f.onmouseout=a,f.style.cursor=window.getComputedStyle(e.element).cursor,o.pauseEvent(t)}function n(t){var n=t.clientX-u,r=t.clientY-d,i=e.minDrag||s.MINDRAG;return Math.abs(n)<i&&(n=0),Math.abs(r)<i&&(r=0),(n||r)&&(g._dragged=!0,l.unhover(g)),e.moveFn&&e.moveFn(n,r,g._dragged),o.pauseEvent(t)}function a(t){if(m=e.element.onmousemove,e.setCursor&&(e.element.onmousemove=e.setCursor),f.onmousemove=null,f.onmouseup=null,f.onmouseout=null,o.removeElement(f),!g._dragging)return void(g._dragged=!1);if(g._dragging=!1,(new Date).getTime()-g._mouseDownTime>b&&(v=Math.max(v-1,1)),e.doneFn&&e.doneFn(g._dragged,v,t),!g._dragged){var n;try{n=new MouseEvent("click",t)}catch(e){n=document.createEvent("MouseEvents"),n.initMouseEvent("click",t.bubbles,t.cancelable,t.view,t.detail,t.screenX,t.screenY,t.clientX,t.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget)}h.dispatchEvent(n)}return i(g),g._dragged=!1,o.pauseEvent(t)}var u,d,p,f,h,m,g=o.getPlotDiv(e.element)||{},v=1,b=c.DBLCLICKDELAY;g._mouseDownTime||(g._mouseDownTime=0),
61m=e.element.onmousemove,e.setCursor&&(e.element.onmousemove=e.setCursor),e.element.onmousedown=t,e.element.style.pointerEvents="all"},l.coverSlip=r},{"../../constants/interactions":682,"../../lib":697,"../../plotly":727,"../../plots/cartesian/constants":737,"./align":605,"./cursor":606,"./unhover":608}],608:[function(e,t,n){"use strict";var r=e("../../lib/events"),i=t.exports={};i.wrapped=function(e,t,n){"string"==typeof e&&(e=document.getElementById(e)),e._hoverTimer&&(clearTimeout(e._hoverTimer),e._hoverTimer=void 0),i.raw(e,t,n)},i.raw=function(e,t){var n=e._fullLayout,i=e._hoverdata;t||(t={}),t.target&&!1===r.triggerHandler(e,"plotly_beforehover",t)||(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),e._hoverdata=void 0,t.target&&i&&e.emit("plotly_unhover",{event:t,points:i}))}},{"../../lib/events":692}],609:[function(e,t,n){"use strict";n.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",role:"style",description:["Sets the dash style of lines. Set to a dash type string","(*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*)","or a dash length list in px (eg *5px,10px,2px,2px*)."].join(" ")}},{}],610:[function(e,t,n){"use strict";function r(e,t,n,r,i,a,o,s){if(c.traceIs(n,"symbols")){var u=m(n);t.attr("d",function(e){var t;t="various"===e.ms||"various"===a.size?3:h.isBubble(n)?u(e.ms):(a.size||6)/2,e.mrc=t;var r=g.symbolNumber(e.mx||a.symbol)||0,i=r%100;return e.om=r%200>=100,g.symbolFuncs[i](t)+(r>=200?y:"")}).style("opacity",function(e){return(e.mo+1||a.opacity+1)-1})}var d,p,f,v=!1;if(e.so?(f=o.outlierwidth,p=o.outliercolor,d=a.outliercolor):(f=(e.mlw+1||o.width+1||(e.trace?e.trace.marker.line.width:0)+1)-1,p="mlc"in e?e.mlcc=i(e.mlc):Array.isArray(o.color)?l.defaultLine:o.color,Array.isArray(a.color)&&(d=l.defaultLine,v=!0),d="mc"in e?e.mcc=r(e.mc):a.color||"rgba(0,0,0,0)"),e.om)t.call(l.stroke,d).style({"stroke-width":(f||1)+"px",fill:"none"});else{t.style("stroke-width",f+"px");var b=a.gradient,x=e.mgt;if(x?v=!0:x=b&&b.type,x&&"none"!==x){var M=e.mgc;M?v=!0:M=b.color;var _="g"+s._fullLayout._uid+"-"+n.uid;v&&(_+="-"+e.i),t.call(g.gradient,s,_,x,d,M)}else t.call(l.fill,d);f&&t.call(l.stroke,p)}}function i(e,t,n,r){var i=e[0]-t[0],o=e[1]-t[1],s=n[0]-t[0],c=n[1]-t[1],l=Math.pow(i*i+o*o,w/2),u=Math.pow(s*s+c*c,w/2),d=(u*u*i-l*l*s)*r,p=(u*u*o-l*l*c)*r,f=3*u*(l+u),h=3*l*(l+u);return[[a.round(t[0]+(f&&d/f),2),a.round(t[1]+(f&&p/f),2)],[a.round(t[0]-(h&&d/h),2),a.round(t[1]-(h&&p/h),2)]]}var a=e("d3"),o=e("fast-isnumeric"),s=e("tinycolor2"),c=e("../../registry"),l=e("../color"),u=e("../colorscale"),d=e("../../lib"),p=e("../../lib/svg_text_utils"),f=e("../../constants/xmlns_namespaces"),h=e("../../traces/scatter/subtypes"),m=e("../../traces/scatter/make_bubble_size_func"),g=t.exports={};g.font=function(e,t,n,r){t&&t.family&&(r=t.color,n=t.size,t=t.family),t&&e.style("font-family",t),n+1&&e.style("font-size",n+"px"),r&&e.call(l.fill,r)},g.setPosition=function(e,t,n){e.attr("x",t).attr("y",n)},g.setSize=function(e,t,n){e.attr("width",t).attr("height",n)},g.setRect=function(e,t,n,r,i){e.call(g.setPosition,t,n).call(g.setSize,r,i)},g.translatePoint=function(e,t,n,r){var i=e.xp||n.c2p(e.x),a=e.yp||r.c2p(e.y);return o(i)&&o(a)&&t.node()?("text"===t.node().nodeName?t.attr("x",i).attr("y",a):t.attr("transform","translate("+i+","+a+")"),!0):(t.remove(),!1)},g.translatePoints=function(e,t,n,r){e.each(function(e){var i=a.select(this);g.translatePoint(e,i,t,n,r)})},g.getPx=function(e,t){return Number(e.style(t).replace(/px$/,""))},g.crispRound=function(e,t,n){return t&&o(t)?e._context.staticPlot?t:t<1?1:Math.round(t):n||0},g.singleLineStyle=function(e,t,n,r,i){t.style("fill","none");var a=(((e||[])[0]||{}).trace||{}).line||{},o=n||a.width||0,s=i||a.dash||"";l.stroke(t,r||a.color),g.dashLine(t,s,o)},g.lineGroupStyle=function(e,t,n,r){e.style("fill","none").each(function(e){var i=(((e||[])[0]||{}).trace||{}).line||{},o=t||i.width||0,s=r||i.dash||"";a.select(this).call(l.stroke,n||i.color).call(g.dashLine,s,o)})},g.dashLine=function(e,t,n){n=+n||0,t=g.dashStyle(t,n),e.style({"stroke-dasharray":t,"stroke-width":n+"px"})},g.dashStyle=function(e,t){t=+t||1;var n=Math.max(t,3);return"solid"===e?e="":"dot"===e?e=n+"px,"+n+"px":"dash"===e?e=3*n+"px,"+3*n+"px":"longdash"===e?e=5*n+"px,"+5*n+"px":"dashdot"===e?e=3*n+"px,"+n+"px,"+n+"px,"+n+"px":"longdashdot"===e&&(e=5*n+"px,"+2*n+"px,"+n+"px,"+2*n+"px"),e},g.fillGroupStyle=function(e){e.style("stroke-width",0).each(function(t){var n=a.select(this);try{n.call(l.fill,t[0].trace.fillcolor)}catch(t){d.error(t,e),n.remove()}})};var v=e("./symbol_defs");g.symbolNames=[],g.symbolFuncs=[],g.symbolNeedLines={},g.symbolNoDot={},g.symbolList=[],Object.keys(v).forEach(function(e){var t=v[e];g.symbolList=g.symbolList.concat([t.n,e,t.n+100,e+"-open"]),g.symbolNames[t.n]=e,g.symbolFuncs[t.n]=t.f,t.needLine&&(g.symbolNeedLines[t.n]=!0),t.noDot?g.symbolNoDot[t.n]=!0:g.symbolList=g.symbolList.concat([t.n+200,e+"-dot",t.n+300,e+"-open-dot"])});var b=g.symbolNames.length,y="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";g.symbolNumber=function(e){if("string"==typeof e){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),e=g.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=b||e>=400?0:Math.floor(Math.max(e,0))};var x={x1:1,x2:0,y1:0,y2:0},M={x1:0,x2:0,y1:1,y2:0};g.gradient=function(e,t,n,r,i,o){var c=t._fullLayout._defs.select(".gradients").selectAll("#"+n).data([r+i+o],d.identity);c.exit().remove(),c.enter().append("radial"===r?"radialGradient":"linearGradient").each(function(){var e=a.select(this);"horizontal"===r?e.attr(x):"vertical"===r&&e.attr(M),e.attr("id",n);var t=s(i),c=s(o);e.append("stop").attr({offset:"0%","stop-color":l.tinyRGB(c),"stop-opacity":c.getAlpha()}),e.append("stop").attr({offset:"100%","stop-color":l.tinyRGB(t),"stop-opacity":t.getAlpha()})}),e.style({fill:"url(#"+n+")","fill-opacity":null})},g.initGradients=function(e){var t=e._fullLayout._defs.selectAll(".gradients").data([0]);t.enter().append("g").classed("gradients",!0),t.selectAll("linearGradient,radialGradient").remove()},g.singlePointStyle=function(e,t,n,i,a,o){var s=n.marker;r(e,t,n,i,a,s,s.line,o)},g.pointStyle=function(e,t){if(e.size()){var n=t.marker,r=g.tryColorscale(n,""),i=g.tryColorscale(n,"line"),o=d.getPlotDiv(e.node());e.each(function(e){g.singlePointStyle(e,a.select(this),t,r,i,o)})}},g.tryColorscale=function(e,t){var n=t?d.nestedProperty(e,t).get():e,r=n.colorscale,i=n.color;return r&&Array.isArray(i)?u.makeColorScaleFunc(u.extractScale(r,n.cmin,n.cmax)):d.identity};var _={start:1,end:-1,middle:0,bottom:1,top:-1};g.textPointStyle=function(e,t){e.each(function(e){var n=a.select(this),r=e.tx||t.text;if(!r||Array.isArray(r))return void n.remove();var i=e.tp||t.textposition,s=-1!==i.indexOf("top")?"top":-1!==i.indexOf("bottom")?"bottom":"middle",c=-1!==i.indexOf("left")?"end":-1!==i.indexOf("right")?"start":"middle",l=e.ts||t.textfont.size,u=e.mrc?e.mrc/.8+1:0;l=o(l)&&l>0?l:0,n.call(g.font,e.tf||t.textfont.family,l,e.tc||t.textfont.color).attr("text-anchor",c).text(r).call(p.convertToTspans);var d=a.select(this.parentNode),f=n.selectAll("tspan.line"),h=1.3*((f[0].length||1)-1)+1,m=_[c]*u,v=.75*l+_[s]*u+(_[s]-1)*h*l/2;d.attr("transform","translate("+m+","+v+")"),h>1&&f.attr({x:n.attr("x"),y:n.attr("y")})})};var w=.5;g.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var n,r="M"+e[0],a=[];for(n=1;n<e.length-1;n++)a.push(i(e[n-1],e[n],e[n+1],t));for(r+="Q"+a[0][0]+" "+e[1],n=2;n<e.length-1;n++)r+="C"+a[n-2][1]+" "+a[n-1][0]+" "+e[n];return r+="Q"+a[e.length-3][1]+" "+e[e.length-1]},g.smoothclosed=function(e,t){if(e.length<3)return"M"+e.join("L")+"Z";var n,r="M"+e[0],a=e.length-1,o=[i(e[a],e[0],e[1],t)];for(n=1;n<a;n++)o.push(i(e[n-1],e[n],e[n+1],t));for(o.push(i(e[a-1],e[a],e[0],t)),n=1;n<=a;n++)r+="C"+o[n-1][1]+" "+o[n][0]+" "+e[n];return r+="C"+o[a][1]+" "+o[0][0]+" "+e[0]+"Z"};var A={hv:function(e,t){return"H"+a.round(t[0],2)+"V"+a.round(t[1],2)},vh:function(e,t){return"V"+a.round(t[1],2)+"H"+a.round(t[0],2)},hvh:function(e,t){return"H"+a.round((e[0]+t[0])/2,2)+"V"+a.round(t[1],2)+"H"+a.round(t[0],2)},vhv:function(e,t){return"V"+a.round((e[1]+t[1])/2,2)+"H"+a.round(t[0],2)+"V"+a.round(t[1],2)}},S=function(e,t){return"L"+a.round(t[0],2)+","+a.round(t[1],2)};g.steps=function(e){var t=A[e]||S;return function(e){for(var n="M"+a.round(e[0][0],2)+","+a.round(e[0][1],2),r=1;r<e.length;r++)n+=t(e[r-1],e[r]);return n}},g.makeTester=function(){var e=a.select("body").selectAll("#js-plotly-tester").data([0]);e.enter().append("svg").attr("id","js-plotly-tester").attr(f.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"});var t=e.selectAll(".js-reference-point").data([0]);t.enter().append("path").classed("js-reference-point",!0).attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"}),e.node()._cache||(e.node()._cache={}),g.tester=e,g.testref=t};var k=[];g.bBox=function(e){var t=e.attributes["data-bb"];if(t&&t.value)return d.extendFlat({},k[t.value]);var n=g.tester,r=n.node(),i=e.cloneNode(!0);r.appendChild(i),a.select(i).attr({x:0,y:0,transform:""});var o=i.getBoundingClientRect(),s=g.testref.node().getBoundingClientRect();r.removeChild(i);var c={height:o.height,width:o.width,left:o.left-s.left,top:o.top-s.top,right:o.right-s.left,bottom:o.bottom-s.top};return k.length>=1e4&&(a.selectAll("[data-bb]").attr("data-bb",null),k=[]),e.setAttribute("data-bb",k.length),k.push(c),d.extendFlat({},c)},g.setClipUrl=function(e,t){if(!t)return void e.attr("clip-path",null);var n="#"+t,r=a.select("base");r.size()&&r.attr("href")&&(n=window.location.href.split("#")[0]+n),e.attr("clip-path","url("+n+")")},g.getTranslate=function(e){var t=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,n=e.attr?"attr":"getAttribute",r=e[n]("transform")||"",i=r.replace(t,function(e,t,n){return[t,n].join(" ")}).split(" ");return{x:+i[0]||0,y:+i[1]||0}},g.setTranslate=function(e,t,n){var r=/(\btranslate\(.*?\);?)/,i=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[i]("transform")||"";return t=t||0,n=n||0,o=o.replace(r,"").trim(),o+=" translate("+t+", "+n+")",o=o.trim(),e[a]("transform",o),o},g.getScale=function(e){var t=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,n=e.attr?"attr":"getAttribute",r=e[n]("transform")||"",i=r.replace(t,function(e,t,n){return[t,n].join(" ")}).split(" ");return{x:+i[0]||1,y:+i[1]||1}},g.setScale=function(e,t,n){var r=/(\bscale\(.*?\);?)/,i=e.attr?"attr":"getAttribute",a=e.attr?"attr":"setAttribute",o=e[i]("transform")||"";return t=t||1,n=n||1,o=o.replace(r,"").trim(),o+=" scale("+t+", "+n+")",o=o.trim(),e[a]("transform",o),o},g.setPointGroupScale=function(e,t,n){var r,i,a;return t=t||1,n=n||1,i=1===t&&1===n?"":" scale("+t+","+n+")",a=/\s*sc.*/,e.each(function(){r=(this.getAttribute("transform")||"").replace(a,""),r+=i,r=r.trim(),this.setAttribute("transform",r)}),i};var $=/translate\([^)]*\)\s*$/;g.setTextPointsScale=function(e,t,n){e.each(function(){var e,r=a.select(this),i=r.select("text"),o=parseFloat(i.attr("x")||0),s=parseFloat(i.attr("y")||0),c=(r.attr("transform")||"").match($);e=1===t&&1===n?[]:["translate("+o+","+s+")","scale("+t+","+n+")","translate("+-o+","+-s+")"],c&&e.push(c),r.attr("transform",e.join(" "))})},g.measureText=function(e,t,n){var r=e.append("text").text(t).call(g.font,n),i=g.bBox(r.node());return r.remove(),i}},{"../../constants/xmlns_namespaces":685,"../../lib":697,"../../lib/svg_text_utils":714,"../../registry":767,"../../traces/scatter/make_bubble_size_func":816,"../../traces/scatter/subtypes":821,"../color":586,"../colorscale":600,"./symbol_defs":611,d3:265,"fast-isnumeric":267,tinycolor2:826}],611:[function(e,t,n){"use strict";var r=e("d3");t.exports={circle:{n:0,f:function(e){var t=r.round(e,2);return"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"}},square:{n:1,f:function(e){var t=r.round(e,2);return"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"}},diamond:{n:2,f:function(e){var t=r.round(1.3*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"Z"}},cross:{n:3,f:function(e){var t=r.round(.4*e,2),n=r.round(1.2*e,2);return"M"+n+","+t+"H"+t+"V"+n+"H-"+t+"V"+t+"H-"+n+"V-"+t+"H-"+t+"V-"+n+"H"+t+"V-"+t+"H"+n+"Z"}},x:{n:4,f:function(e){var t=r.round(.8*e/Math.sqrt(2),2),n="l"+t+","+t,i="l"+t+",-"+t,a="l-"+t+",-"+t,o="l-"+t+","+t;return"M0,"+t+n+i+a+i+a+o+a+o+n+o+n+"Z"}},"triangle-up":{n:5,f:function(e){var t=r.round(2*e/Math.sqrt(3),2);return"M-"+t+","+r.round(e/2,2)+"H"+t+"L0,-"+r.round(e,2)+"Z"}},"triangle-down":{n:6,f:function(e){var t=r.round(2*e/Math.sqrt(3),2);return"M-"+t+",-"+r.round(e/2,2)+"H"+t+"L0,"+r.round(e,2)+"Z"}},"triangle-left":{n:7,f:function(e){var t=r.round(2*e/Math.sqrt(3),2);return"M"+r.round(e/2,2)+",-"+t+"V"+t+"L-"+r.round(e,2)+",0Z"}},"triangle-right":{n:8,f:function(e){var t=r.round(2*e/Math.sqrt(3),2);return"M-"+r.round(e/2,2)+",-"+t+"V"+t+"L"+r.round(e,2)+",0Z"}},"triangle-ne":{n:9,f:function(e){var t=r.round(.6*e,2),n=r.round(1.2*e,2);return"M-"+n+",-"+t+"H"+t+"V"+n+"Z"}},"triangle-se":{n:10,f:function(e){var t=r.round(.6*e,2),n=r.round(1.2*e,2);return"M"+t+",-"+n+"V"+t+"H-"+n+"Z"}},"triangle-sw":{n:11,f:function(e){var t=r.round(.6*e,2),n=r.round(1.2*e,2);return"M"+n+","+t+"H-"+t+"V-"+n+"Z"}},"triangle-nw":{n:12,f:function(e){var t=r.round(.6*e,2),n=r.round(1.2*e,2);return"M-"+t+","+n+"V-"+t+"H"+n+"Z"}},pentagon:{n:13,f:function(e){var t=r.round(.951*e,2),n=r.round(.588*e,2),i=r.round(-e,2),a=r.round(-.309*e,2);return"M"+t+","+a+"L"+n+","+r.round(.809*e,2)+"H-"+n+"L-"+t+","+a+"L0,"+i+"Z"}},hexagon:{n:14,f:function(e){var t=r.round(e,2),n=r.round(e/2,2),i=r.round(e*Math.sqrt(3)/2,2);return"M"+i+",-"+n+"V"+n+"L0,"+t+"L-"+i+","+n+"V-"+n+"L0,-"+t+"Z"}},hexagon2:{n:15,f:function(e){var t=r.round(e,2),n=r.round(e/2,2),i=r.round(e*Math.sqrt(3)/2,2);return"M-"+n+","+i+"H"+n+"L"+t+",0L"+n+",-"+i+"H-"+n+"L-"+t+",0Z"}},octagon:{n:16,f:function(e){var t=r.round(.924*e,2),n=r.round(.383*e,2);return"M-"+n+",-"+t+"H"+n+"L"+t+",-"+n+"V"+n+"L"+n+","+t+"H-"+n+"L-"+t+","+n+"V-"+n+"Z"}},star:{n:17,f:function(e){var t=1.4*e,n=r.round(.225*t,2),i=r.round(.951*t,2),a=r.round(.363*t,2),o=r.round(.588*t,2),s=r.round(-t,2),c=r.round(-.309*t,2),l=r.round(.118*t,2),u=r.round(.809*t,2);return"M"+n+","+c+"H"+i+"L"+a+","+l+"L"+o+","+u+"L0,"+r.round(.382*t,2)+"L-"+o+","+u+"L-"+a+","+l+"L-"+i+","+c+"H-"+n+"L0,"+s+"Z"}},hexagram:{n:18,f:function(e){var t=r.round(.66*e,2),n=r.round(.38*e,2),i=r.round(.76*e,2);return"M-"+i+",0l-"+n+",-"+t+"h"+i+"l"+n+",-"+t+"l"+n+","+t+"h"+i+"l-"+n+","+t+"l"+n+","+t+"h-"+i+"l-"+n+","+t+"l-"+n+",-"+t+"h-"+i+"Z"}},"star-triangle-up":{n:19,f:function(e){var t=r.round(e*Math.sqrt(3)*.8,2),n=r.round(.8*e,2),i=r.round(1.6*e,2),a=r.round(4*e,2),o="A "+a+","+a+" 0 0 1 ";return"M-"+t+","+n+o+t+","+n+o+"0,-"+i+o+"-"+t+","+n+"Z"}},"star-triangle-down":{n:20,f:function(e){var t=r.round(e*Math.sqrt(3)*.8,2),n=r.round(.8*e,2),i=r.round(1.6*e,2),a=r.round(4*e,2),o="A "+a+","+a+" 0 0 1 ";return"M"+t+",-"+n+o+"-"+t+",-"+n+o+"0,"+i+o+t+",-"+n+"Z"}},"star-square":{n:21,f:function(e){var t=r.round(1.1*e,2),n=r.round(2*e,2),i="A "+n+","+n+" 0 0 1 ";return"M-"+t+",-"+t+i+"-"+t+","+t+i+t+","+t+i+t+",-"+t+i+"-"+t+",-"+t+"Z"}},"star-diamond":{n:22,f:function(e){var t=r.round(1.4*e,2),n=r.round(1.9*e,2),i="A "+n+","+n+" 0 0 1 ";return"M-"+t+",0"+i+"0,"+t+i+t+",0"+i+"0,-"+t+i+"-"+t+",0Z"}},"diamond-tall":{n:23,f:function(e){var t=r.round(.7*e,2),n=r.round(1.4*e,2);return"M0,"+n+"L"+t+",0L0,-"+n+"L-"+t+",0Z"}},"diamond-wide":{n:24,f:function(e){var t=r.round(1.4*e,2),n=r.round(.7*e,2);return"M0,"+n+"L"+t+",0L0,-"+n+"L-"+t+",0Z"}},hourglass:{n:25,f:function(e){var t=r.round(e,2);return"M"+t+","+t+"H-"+t+"L"+t+",-"+t+"H-"+t+"Z"},noDot:!0},bowtie:{n:26,f:function(e){var t=r.round(e,2);return"M"+t+","+t+"V-"+t+"L-"+t+","+t+"V-"+t+"Z"},noDot:!0},"circle-cross":{n:27,f:function(e){var t=r.round(e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e){var t=r.round(e,2),n=r.round(e/Math.sqrt(2),2);return"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e){var t=r.round(e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e){var t=r.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t+"M"+t+",-"+t+"L-"+t+","+t+"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e){var t=r.round(1.3*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"ZM0,-"+t+"V"+t+"M-"+t+",0H"+t},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e){var t=r.round(1.3*e,2),n=r.round(.65*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e){var t=r.round(1.4*e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t},needLine:!0,noDot:!0},"x-thin":{n:34,f:function(e){var t=r.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t+"M"+t+",-"+t+"L-"+t+","+t},needLine:!0,noDot:!0},asterisk:{n:35,f:function(e){var t=r.round(1.2*e,2),n=r.round(.85*e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n},needLine:!0,noDot:!0},hash:{n:36,f:function(e){var t=r.round(e/2,2),n=r.round(e,2);return"M"+t+","+n+"V-"+n+"m-"+n+",0V"+n+"M"+n+","+t+"H-"+n+"m0,-"+n+"H"+n},needLine:!0},"y-up":{n:37,f:function(e){var t=r.round(1.2*e,2),n=r.round(1.6*e,2),i=r.round(.8*e,2);return"M-"+t+","+i+"L0,0M"+t+","+i+"L0,0M0,-"+n+"L0,0"},needLine:!0,noDot:!0},"y-down":{n:38,f:function(e){var t=r.round(1.2*e,2),n=r.round(1.6*e,2),i=r.round(.8*e,2);return"M-"+t+",-"+i+"L0,0M"+t+",-"+i+"L0,0M0,"+n+"L0,0"},needLine:!0,noDot:!0},"y-left":{n:39,f:function(e){var t=r.round(1.2*e,2),n=r.round(1.6*e,2),i=r.round(.8*e,2);return"M"+i+","+t+"L0,0M"+i+",-"+t+"L0,0M-"+n+",0L0,0"},needLine:!0,noDot:!0},"y-right":{n:40,f:function(e){var t=r.round(1.2*e,2),n=r.round(1.6*e,2),i=r.round(.8*e,2);return"M-"+i+","+t+"L0,0M-"+i+",-"+t+"L0,0M"+n+",0L0,0"},needLine:!0,noDot:!0},"line-ew":{n:41,f:function(e){var t=r.round(1.4*e,2);return"M"+t+",0H-"+t},needLine:!0,noDot:!0},"line-ns":{n:42,f:function(e){var t=r.round(1.4*e,2);return"M0,"+t+"V-"+t},needLine:!0,noDot:!0},"line-ne":{n:43,f:function(e){var t=r.round(e,2);return"M"+t+",-"+t+"L-"+t+","+t},needLine:!0,noDot:!0},"line-nw":{n:44,f:function(e){var t=r.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t},needLine:!0,noDot:!0}}},{d3:265}],612:[function(e,t,n){"use strict";t.exports={visible:{valType:"boolean",role:"info",description:["Determines whether or not this set of error bars is visible."].join(" ")},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],role:"info",description:["Determines the rule used to generate the error bars.","If *constant`, the bar lengths are of a constant value.","Set this constant in `value`.","If *percent*, the bar lengths correspond to a percentage of","underlying data. Set this percentage in `value`.","If *sqrt*, the bar lengths correspond to the sqaure of the","underlying data.","If *array*, the bar lengths are set with data set `array`."].join(" ")},symmetric:{valType:"boolean",role:"info",description:["Determines whether or not the error bars have the same length","in both direction","(top/bottom for vertical bars, left/right for horizontal bars."].join(" ")},array:{valType:"data_array",description:["Sets the data corresponding the length of each error bar.","Values are plotted relative to the underlying data."].join(" ")},arrayminus:{valType:"data_array",description:["Sets the data corresponding the length of each error bar in the","bottom (left) direction for vertical (horizontal) bars","Values are plotted relative to the underlying data."].join(" ")},value:{valType:"number",min:0,dflt:10,role:"info",description:["Sets the value of either the percentage","(if `type` is set to *percent*) or the constant","(if `type` is set to *constant*) corresponding to the lengths of","the error bars."].join(" ")},valueminus:{valType:"number",min:0,dflt:10,role:"info",description:["Sets the value of either the percentage","(if `type` is set to *percent*) or the constant","(if `type` is set to *constant*) corresponding to the lengths of","the error bars in the","bottom (left) direction for vertical (horizontal) bars"].join(" ")},traceref:{valType:"integer",min:0,dflt:0,role:"info"},tracerefminus:{valType:"integer",min:0,dflt:0,role:"info"},copy_ystyle:{valType:"boolean",role:"style"},copy_zstyle:{valType:"boolean",role:"style"},color:{valType:"color",role:"style",description:"Sets the stoke color of the error bars."},thickness:{valType:"number",min:0,dflt:2,role:"style",description:"Sets the thickness (in px) of the error bars."},width:{valType:"number",min:0,role:"style",description:["Sets the width (in px) of the cross-bar at both ends","of the error bars."].join(" ")},_deprecated:{opacity:{valType:"number",role:"style",description:["Obsolete.","Use the alpha channel in error bar `color` to set the opacity."].join(" ")}}}},{}],613:[function(e,t,n){"use strict";function r(e,t,n,r){var a=t["error_"+r]||{},c=a.visible&&-1!==["linear","log"].indexOf(n.type),l=[];if(c){for(var u=s(a),d=0;d<e.length;d++){var p=e[d],f=p[r];if(i(n.c2l(f))){var h=u(f,d);if(i(h[0])&&i(h[1])){var m=p[r+"s"]=f-h[0],g=p[r+"h"]=f+h[1];l.push(m,g)}}}o.expand(n,l,{padded:!0})}}var i=e("fast-isnumeric"),a=e("../../registry"),o=e("../../plots/cartesian/axes"),s=e("./compute_error");t.exports=function(e){for(var t=e.calcdata,n=0;n<t.length;n++){var i=t[n],s=i[0].trace;if(a.traceIs(s,"errorBarsOK")){var c=o.getFromId(e,s.xaxis),l=o.getFromId(e,s.yaxis);r(i,s,c,"x"),r(i,s,l,"y")}}}},{"../../plots/cartesian/axes":732,"../../registry":767,"./compute_error":614,"fast-isnumeric":267}],614:[function(e,t,n){"use strict";function r(e,t){return"percent"===e?function(e){return Math.abs(e*t/100)}:"constant"===e?function(){return Math.abs(t)}:"sqrt"===e?function(e){return Math.sqrt(Math.abs(e))}:void 0}t.exports=function(e){var t=e.type,n=e.symmetric;if("data"===t){var i=e.array,a=e.arrayminus;return n||void 0===a?function(e,t){var n=+i[t];return[n,n]}:function(e,t){return[+a[t],+i[t]]}}var o=r(t,e.value),s=r(t,e.valueminus);return n||void 0===e.valueminus?function(e){var t=o(e);return[t,t]}:function(e){return[s(e),o(e)]}}},{}],615:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),i=e("../../registry"),a=e("../../lib"),o=e("./attributes");t.exports=function(e,t,n,s){function c(e,t){return a.coerce(d,u,o,e,t)}var l="error_"+s.axis,u=t[l]={},d=e[l]||{};if(!1!==c("visible",void 0!==d.array||void 0!==d.value||"sqrt"===d.type)){var p=c("type","array"in d?"data":"percent"),f=!0;"sqrt"!==p&&(f=c("symmetric",!(("data"===p?"arrayminus":"valueminus")in d))),"data"===p?(c("array")||(u.array=[]),c("traceref"),f||(c("arrayminus")||(u.arrayminus=[]),c("tracerefminus"))):"percent"!==p&&"constant"!==p||(c("value"),f||c("valueminus"));var h="copy_"+s.inherit+"style";s.inherit&&(t["error_"+s.inherit]||{}).visible&&c(h,!(d.color||r(d.thickness)||r(d.width))),s.inherit&&u[h]||(c("color",n),c("thickness"),c("width",i.traceIs(t,"gl3d")?0:4))}}},{"../../lib":697,"../../registry":767,"./attributes":612,"fast-isnumeric":267}],616:[function(e,t,n){"use strict";var r=t.exports={};r.attributes=e("./attributes"),r.supplyDefaults=e("./defaults"),r.calc=e("./calc"),r.calcFromTrace=function(e,t){for(var n=e.x||[],i=e.y||[],a=n.length||i.length,o=new Array(a),s=0;s<a;s++)o[s]={x:n[s],y:i[s]};return o[0].trace=e,r.calc({calcdata:[o],_fullLayout:t}),o},r.plot=e("./plot"),r.style=e("./style"),r.hoverInfo=function(e,t,n){(t.error_y||{}).visible&&(n.yerr=e.yh-e.y,t.error_y.symmetric||(n.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(n.xerr=e.xh-e.x,t.error_x.symmetric||(n.xerrneg=e.x-e.xs))}},{"./attributes":612,"./calc":613,"./defaults":615,"./plot":617,"./style":618}],617:[function(e,t,n){"use strict";function r(e,t,n){var r={x:t.c2p(e.x),y:n.c2p(e.y)};return void 0!==e.yh&&(r.yh=n.c2p(e.yh),r.ys=n.c2p(e.ys),a(r.ys)||(r.noYS=!0,r.ys=n.c2p(e.ys,!0))),void 0!==e.xh&&(r.xh=t.c2p(e.xh),r.xs=t.c2p(e.xs),a(r.xs)||(r.noXS=!0,r.xs=t.c2p(e.xs,!0))),r}var i=e("d3"),a=e("fast-isnumeric"),o=e("../../traces/scatter/subtypes");t.exports=function(e,t,n){var s,c=t.xaxis,l=t.yaxis,u=n&&n.duration>0;e.each(function(e){var t,d=e[0].trace,p=d.error_x||{},f=d.error_y||{};d.ids&&(t=function(e){return e.id});var h=o.hasMarkers(d)&&d.marker.maxdisplayed>0;if(f.visible||p.visible){var m=i.select(this).selectAll("g.errorbar").data(e,t);m.exit().remove(),m.style("opacity",1);var g=m.enter().append("g").classed("errorbar",!0);u&&g.style("opacity",0).transition().duration(n.duration).style("opacity",1),m.each(function(e){var t=i.select(this),o=r(e,c,l);if(!h||e.vis){var d;if(f.visible&&a(o.x)&&a(o.yh)&&a(o.ys)){var m=f.width;d="M"+(o.x-m)+","+o.yh+"h"+2*m+"m-"+m+",0V"+o.ys,o.noYS||(d+="m-"+m+",0h"+2*m);var g=t.select("path.yerror");s=!g.size(),s?g=t.append("path").classed("yerror",!0):u&&(g=g.transition().duration(n.duration).ease(n.easing)),g.attr("d",d)}if(p.visible&&a(o.y)&&a(o.xh)&&a(o.xs)){var v=(p.copy_ystyle?f:p).width;d="M"+o.xh+","+(o.y-v)+"v"+2*v+"m0,-"+v+"H"+o.xs,o.noXS||(d+="m0,-"+v+"v"+2*v);var b=t.select("path.xerror");s=!b.size(),s?b=t.append("path").classed("xerror",!0):u&&(b=b.transition().duration(n.duration).ease(n.easing)),b.attr("d",d)}}})}})}},{"../../traces/scatter/subtypes":821,d3:265,"fast-isnumeric":267}],618:[function(e,t,n){"use strict";var r=e("d3"),i=e("../color");t.exports=function(e){e.each(function(e){var t=e[0].trace,n=t.error_y||{},a=t.error_x||{},o=r.select(this);o.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(i.stroke,n.color),a.copy_ystyle&&(a=n),o.selectAll("path.xerror").style("stroke-width",a.thickness+"px").call(i.stroke,a.color)})}},{"../color":586,d3:265}],619:[function(e,t,n){"use strict";var r=e("../../lib/extend").extendFlat,i=e("../../plots/font_attributes");t.exports={hoverlabel:{bgcolor:{valType:"color",role:"style",arrayOk:!0,description:["Sets the background color of the hover labels for this trace"].join(" ")},bordercolor:{valType:"color",role:"style",arrayOk:!0,description:["Sets the border color of the hover labels for this trace."].join(" ")},font:{family:r({},i.family,{arrayOk:!0}),size:r({},i.size,{arrayOk:!0}),color:r({},i.color,{arrayOk:!0})}}}},{"../../lib/extend":693,"../../plots/font_attributes":756}],620:[function(e,t,n){"use strict";function r(e,t,n){Array.isArray(e)&&(t[0][n]=e)}var i=e("../../lib"),a=e("../../registry");t.exports=function(e){for(var t=e.calcdata,n=0;n<t.length;n++){var o=t[n],s=o[0].trace;if(s.hoverlabel){var c=a.traceIs(s,"2dMap")?r:i.mergeArray;c(s.hoverlabel.bgcolor,o,"hbg"),c(s.hoverlabel.bordercolor,o,"hbc"),c(s.hoverlabel.font.size,o,"hts"),c(s.hoverlabel.font.color,o,"htc"),c(s.hoverlabel.font.family,o,"htf")}}}},{"../../lib":697,"../../registry":767}],621:[function(e,t,n){"use strict";var r=e("../../registry");t.exports=function(e,t){function n(){e.emit("plotly_click",{points:e._hoverdata,event:t})}var i=r.getComponentMethod("annotations","onClick")(e,e._hoverdata);e._hoverdata&&t&&t.target&&(i&&i.then?i.then(n):n(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}},{"../../registry":767}],622:[function(e,t,n){"use strict";t.exports={MAXDIST:20,YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50}},{}],623:[function(e,t,n){"use strict";var r=e("../../lib"),i=e("./attributes"),a=e("./hoverlabel_defaults");t.exports=function(e,t,n,o){function s(n,a){return r.coerce(e,t,i,n,a)}a(e,t,s,o.hoverlabel)}},{"../../lib":697,"./attributes":619,"./hoverlabel_defaults":626}],624:[function(e,t,n){"use strict";function r(e,t){return function(n){var r=e(n),i=t(n);return Math.sqrt(r*r+i*i)}}var i=e("./constants");n.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo},n.flat=function(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)n[r]=t;return n},n.p2c=function(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)n[r]=e[r].p2c(t);return n},n.getDistanceFunction=function(e,t,n,i){return"closest"===e?i||r(t,n):"x"===e?t:n},n.getClosest=function(e,t,n){if(!1!==n.index)n.index>=0&&n.index<e.length?n.distance=0:n.index=!1;else for(var r=0;r<e.length;r++){var i=t(e[r]);i<=n.distance&&(n.index=r,n.distance=i)}return n},n.inbox=function(e,t){return e*t<0||0===e?i.MAXDIST*(.6-.3/Math.max(3,Math.abs(e-t))):1/0}},{"./constants":622}],625:[function(e,t,n){"use strict";function r(e,t,n){if("pie"===n||"sankey"===n)return void e.emit("plotly_hover",{event:t.originalEvent,points:[t]});n||(n="xy");var r=Array.isArray(n)?n:[n],p=e._fullLayout,m=p._plots||[],v=m[n];if(v){var A=v.overlays.map(function(e){return e.id});r=r.concat(A)}for(var S=r.length,k=new Array(S),$=new Array(S),T=0;T<S;T++){var C=r[T],E=m[C];if(E)k[T]=x.getFromId(e,E.xaxis._id),$[T]=x.getFromId(e,E.yaxis._id);else{var O=p[C]._subplot;k[T]=O.xaxis,$[T]=O.yaxis}}var z=t.hovermode||p.hovermode;if(-1===["x","y","closest"].indexOf(z)||!e.calcdata||e.querySelector(".zoombox")||e._dragging)return y.unhoverRaw(e,t);var L,N,P,I,D,R,j,q,B,W,H,F,X,U=[],V=[];if(Array.isArray(t))for(z="array",P=0;P<t.length;P++)D=e.calcdata[t[P].curveNumber||0],"skip"!==D[0].trace.hoverinfo&&V.push(D);else{for(I=0;I<e.calcdata.length;I++)D=e.calcdata[I],R=D[0].trace,"skip"!==R.hoverinfo&&-1!==r.indexOf(_.getSubplot(R))&&V.push(D);var G,Y,Q=!t.target;if(Q)G="xpx"in t?t.xpx:k[0]._length/2,Y="ypx"in t?t.ypx:$[0]._length/2;else{if(!1===h.triggerHandler(e,"plotly_beforehover",t))return;var K=t.target.getBoundingClientRect();if(G=t.clientX-K.left,Y=t.clientY-K.top,G<0||G>K.width||Y<0||Y>K.height)return y.unhoverRaw(e,t)}if(L="xval"in t?_.flat(r,t.xval):_.p2c(k,G),N="yval"in t?_.flat(r,t.yval):_.p2c($,Y),!d(L[0])||!d(N[0]))return f.warn("Fx.hover failed",t,e),y.unhoverRaw(e,t)}var Z=1/0;for(I=0;I<V.length;I++)if((D=V[I])&&D[0]&&D[0].trace&&!0===D[0].trace.visible&&(R=D[0].trace,-1===["carpet","contourcarpet"].indexOf(R._module.name))){if(j=_.getSubplot(R),q=r.indexOf(j),B=z,F={cd:D,trace:R,xa:k[q],ya:$[q],name:e.data.length>1||-1!==R.hoverinfo.indexOf("name")?R.name:void 0,index:!1,distance:Math.min(Z,w.MAXDIST),color:b.defaultLine,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},p[j]&&(F.subplot=p[j]._subplot),X=U.length,"array"===B){var J=t[I];"pointNumber"in J?(F.index=J.pointNumber,B="closest"):(B="","xval"in J&&(W=J.xval,B="x"),"yval"in J&&(H=J.yval,B=B?"closest":"y"))}else W=L[q],H=N[q];if(R._module&&R._module.hoverPoints){var ee=R._module.hoverPoints(F,W,H,B);if(ee)for(var te,ne=0;ne<ee.length;ne++)te=ee[ne],d(te.x0)&&d(te.y0)&&U.push(s(te,z))}else f.log("Unrecognized trace type in hover:",R);"closest"===z&&U.length>X&&(U.splice(0,X),Z=U[0].distance)}if(0===U.length)return y.unhoverRaw(e,t);U.sort(function(e,t){return e.distance-t.distance});var re=e._hoverdata,ie=[];for(P=0;P<U.length;P++){var ae=U[P],oe={data:ae.trace._input,fullData:ae.trace,curveNumber:ae.trace.index,pointNumber:ae.index};ae.trace._module.eventData?oe=ae.trace._module.eventData(oe,ae):(oe.x=ae.xVal,oe.y=ae.yVal,oe.xaxis=ae.xa,oe.yaxis=ae.ya,void 0!==ae.zLabelVal&&(oe.z=ae.zLabelVal)),ie.push(oe)}if(e._hoverdata=ie,l(e,t,re)&&p._hasCartesian){c(U,{hovermode:z,fullLayout:p,container:p._hoverlayer,outerContainer:p._paperdiv})}var se="y"===z&&V.length>1,ce=b.combine(p.plot_bgcolor||b.background,p.paper_bgcolor),le={hovermode:z,rotateLabels:se,bgColor:ce,container:p._hoverlayer,outerContainer:p._paperdiv,commonLabelOpts:p.hoverlabel},ue=i(U,le);if(a(U,se?"xa":"ya"),o(ue,se),t.target&&t.target.tagName){var de=M.getComponentMethod("annotations","hasClickToShow")(e,ie);g(u.select(t.target),de?"pointer":"")}t.target&&l(e,t,re)&&(re&&e.emit("plotly_unhover",{event:t,points:re}),
62e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:k,yaxes:$,xvals:L,yvals:N}))}function i(e,t){var n,r,i=t.hovermode,a=t.rotateLabels,o=t.bgColor,s=t.container,c=t.outerContainer,l=t.commonLabelOpts||{},d=t.fontFamily||w.HOVERFONT,p=t.fontSize||w.HOVERFONTSIZE,f=e[0],h=f.xa,g=f.ya,y="y"===i?"yLabel":"xLabel",x=f[y],M=(String(x)||"").split(" ")[0],_=c.node().getBoundingClientRect(),S=_.top,k=_.width,$=_.height,T=f.distance<=w.MAXDIST&&("x"===i||"y"===i);for(n=0;n<e.length;n++){r=e[n].trace.hoverinfo;var O=r.split("+");if(-1===O.indexOf("all")&&-1===O.indexOf(i)){T=!1;break}}var z=s.selectAll("g.axistext").data(T?[0]:[]);z.enter().append("g").classed("axistext",!0),z.exit().remove(),z.each(function(){var t=u.select(this),n=t.selectAll("path").data([0]),r=t.selectAll("text").data([0]);n.enter().append("path").style({fill:l.bgcolor||b.defaultLine,stroke:l.bordercolor||b.background,"stroke-width":"1px"}),r.enter().append("text").call(v.font,l.font.family||d,l.font.size||p,l.font.color||b.background).attr("data-notex",1),r.text(x).call(m.convertToTspans).call(v.setPosition,0,0).selectAll("tspan.line").call(v.setPosition,0,0),t.attr("transform","");var a=r.node().getBoundingClientRect();if("x"===i){r.attr("text-anchor","middle").call(v.setPosition,0,"top"===h.side?S-a.bottom-C-E:S-a.top+C+E).selectAll("tspan.line").attr({x:r.attr("x"),y:r.attr("y")});var o="top"===h.side?"-":"";n.attr("d","M0,0L"+C+","+o+C+"H"+(E+a.width/2)+"v"+o+(2*E+a.height)+"H-"+(E+a.width/2)+"V"+o+C+"H-"+C+"Z"),t.attr("transform","translate("+(h._offset+(f.x0+f.x1)/2)+","+(g._offset+("top"===h.side?0:g._length))+")")}else{r.attr("text-anchor","right"===g.side?"start":"end").call(v.setPosition,("right"===g.side?1:-1)*(E+C),S-a.top-a.height/2).selectAll("tspan.line").attr({x:r.attr("x"),y:r.attr("y")});var s="right"===g.side?"":"-";n.attr("d","M0,0L"+s+C+","+C+"V"+(E+a.height/2)+"h"+s+(2*E+a.width)+"V-"+(E+a.height/2)+"H"+s+C+"V-"+C+"Z"),t.attr("transform","translate("+(h._offset+("right"===g.side?h._length:0))+","+(g._offset+(f.y0+f.y1)/2)+")")}e=e.filter(function(e){return void 0!==e.zLabelVal||(e[y]||"").split(" ")[0]===M})});var L=s.selectAll("g.hovertext").data(e,function(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa,e.ya||""].join(",")});return L.enter().append("g").classed("hovertext",!0).each(function(){var e=u.select(this);e.append("rect").call(b.fill,b.addOpacity(o,.8)),e.append("text").classed("name",!0),e.append("path").style("stroke-width","1px"),e.append("text").classed("nums",!0).call(v.font,d,p)}),L.exit().remove(),L.each(function(e){var t=u.select(this).attr("transform",""),n="",r="",s=b.opacity(e.color)?e.color:b.defaultLine,c=b.combine(s,o),l=e.borderColor||b.contrast(c);void 0!==e.nameOverride&&(e.name=e.nameOverride),e.name&&(n=m.plainText(e.name||""),n.length>15&&(n=n.substr(0,12)+"...")),void 0!==e.extraText&&(r+=e.extraText),void 0!==e.zLabel?(void 0!==e.xLabel&&(r+="x: "+e.xLabel+"<br>"),void 0!==e.yLabel&&(r+="y: "+e.yLabel+"<br>"),r+=(r?"z: ":"")+e.zLabel):T&&e[i+"Label"]===x?r=e[("x"===i?"y":"x")+"Label"]||"":void 0===e.xLabel?void 0!==e.yLabel&&(r=e.yLabel):r=void 0===e.yLabel?e.xLabel:"("+e.xLabel+", "+e.yLabel+")",e.text&&!Array.isArray(e.text)&&(r+=(r?"<br>":"")+e.text),""===r&&(""===n&&t.remove(),r=n);var f=t.select("text.nums").call(v.font,e.fontFamily||d,e.fontSize||p,e.fontColor||l).call(v.setPosition,0,0).text(r).attr("data-notex",1).call(m.convertToTspans);f.selectAll("tspan.line").call(v.setPosition,0,0);var h=t.select("text.name"),g=0;n&&n!==r?(h.call(v.font,e.fontFamily||d,e.fontSize||p,c).text(n).call(v.setPosition,0,0).attr("data-notex",1).call(m.convertToTspans),h.selectAll("tspan.line").call(v.setPosition,0,0),g=h.node().getBoundingClientRect().width+2*E):(h.remove(),t.select("rect").remove()),t.select("path").style({fill:c,stroke:l});var y,M,_=f.node().getBoundingClientRect(),w=e.xa._offset+(e.x0+e.x1)/2,O=e.ya._offset+(e.y0+e.y1)/2,z=Math.abs(e.x1-e.x0),L=Math.abs(e.y1-e.y0),N=_.width+C+E+g;e.ty0=S-_.top,e.bx=_.width+2*E,e.by=_.height+2*E,e.anchor="start",e.txwidth=_.width,e.tx2width=g,e.offset=0,a?(e.pos=w,y=O+L/2+N<=$,M=O-L/2-N>=0,"top"!==e.idealAlign&&y||!M?y?(O+=L/2,e.anchor="start"):e.anchor="middle":(O-=L/2,e.anchor="end")):(e.pos=O,y=w+z/2+N<=k,M=w-z/2-N>=0,"left"!==e.idealAlign&&y||!M?y?(w+=z/2,e.anchor="start"):e.anchor="middle":(w-=z/2,e.anchor="end")),f.attr("text-anchor",e.anchor),g&&h.attr("text-anchor",e.anchor),t.attr("transform","translate("+w+","+O+")"+(a?"rotate("+A+")":""))}),L}function a(e,t){function n(e){var t=e[0],n=e[e.length-1];if(i=t.pmin-t.pos-t.dp+t.size,a=n.pos+n.dp+n.size-t.pmax,i>.01){for(s=e.length-1;s>=0;s--)e[s].dp+=i;r=!1}if(!(a<.01)){if(i<-.01){for(s=e.length-1;s>=0;s--)e[s].dp-=a;r=!1}if(r){var l=0;for(o=0;o<e.length;o++)c=e[o],c.pos+c.dp+c.size>t.pmax&&l++;for(o=e.length-1;o>=0&&!(l<=0);o--)c=e[o],c.pos>t.pmax-1&&(c.del=!0,l--);for(o=0;o<e.length&&!(l<=0);o++)if(c=e[o],c.pos<t.pmin+1)for(c.del=!0,l--,a=2*c.size,s=e.length-1;s>=0;s--)e[s].dp-=a;for(o=e.length-1;o>=0&&!(l<=0);o--)c=e[o],c.pos+c.dp+c.size>t.pmax&&(c.del=!0,l--)}}}for(var r,i,a,o,s,c,l,u=0,d=e.map(function(e,n){var r=e[t];return[{i:n,dp:0,pos:e.pos,posref:e.posref,size:e.by*("x"===r._id.charAt(0)?k:1)/2,pmin:r._offset,pmax:r._offset+r._length}]}).sort(function(e,t){return e[0].posref-t[0].posref});!r&&u<=e.length;){for(u++,r=!0,o=0;o<d.length-1;){var p=d[o],f=d[o+1],h=p[p.length-1],m=f[0];if((i=h.pos+h.dp+h.size-m.pos-m.dp+m.size)>.01&&h.pmin===m.pmin&&h.pmax===m.pmax){for(s=f.length-1;s>=0;s--)f[s].dp+=i;for(p.push.apply(p,f),d.splice(o+1,1),l=0,s=p.length-1;s>=0;s--)l+=p[s].dp;for(a=l/p.length,s=p.length-1;s>=0;s--)p[s].dp-=a;r=!1}else o++}d.forEach(n)}for(o=d.length-1;o>=0;o--){var g=d[o];for(s=g.length-1;s>=0;s--){var v=g[s],b=e[v.i];b.offset=v.dp,b.del=v.del}}}function o(e,t){e.each(function(e){var n=u.select(this);if(e.del)return void n.remove();var r="end"===e.anchor?-1:1,i=n.select("text.nums"),a={start:1,end:-1,middle:0}[e.anchor],o=a*(C+E),s=o+a*(e.txwidth+E),c=0,l=e.offset;"middle"===e.anchor&&(o-=e.tx2width/2,s-=e.tx2width/2),t&&(l*=-T,c=e.offset*$),n.select("path").attr("d","middle"===e.anchor?"M-"+e.bx/2+",-"+e.by/2+"h"+e.bx+"v"+e.by+"h-"+e.bx+"Z":"M0,0L"+(r*C+c)+","+(C+l)+"v"+(e.by/2-C)+"h"+r*e.bx+"v-"+e.by+"H"+(r*C+c)+"V"+(l-C)+"Z"),i.call(v.setPosition,o+c,l+e.ty0-e.by/2+E).selectAll("tspan.line").attr({x:i.attr("x"),y:i.attr("y")}),e.tx2width&&(n.select("text.name, text.name tspan.line").call(v.setPosition,s+a*E+c,l+e.ty0-e.by/2+E),n.select("rect").call(v.setRect,s+(a-1)*e.tx2width/2+c,l-e.by/2-1,e.tx2width,e.by+2))})}function s(e,t){function n(t,n,o){var s;if(a[n])s=a[n];else if(i[n]){var c=i[n];Array.isArray(c)&&Array.isArray(c[e.index[0]])&&(s=c[e.index[0]][e.index[1]])}else s=f.nestedProperty(r,o).get();s&&(e[t]=s)}var r=e.trace||{},i=e.cd[0],a=e.cd[e.index]||{};e.posref="y"===t?(e.x0+e.x1)/2:(e.y0+e.y1)/2,e.x0=f.constrain(e.x0,0,e.xa._length),e.x1=f.constrain(e.x1,0,e.xa._length),e.y0=f.constrain(e.y0,0,e.ya._length),e.y1=f.constrain(e.y1,0,e.ya._length);var o;if(void 0!==e.xLabelVal){o="log"===e.xa.type&&e.xLabelVal<=0;var s=x.tickText(e.xa,e.xa.c2l(o?-e.xLabelVal:e.xLabelVal),"hover");o?0===e.xLabelVal?e.xLabel="0":e.xLabel="-"+s.text:e.xLabel=s.text,e.xVal=e.xa.c2d(e.xLabelVal)}if(void 0!==e.yLabelVal){o="log"===e.ya.type&&e.yLabelVal<=0;var c=x.tickText(e.ya,e.ya.c2l(o?-e.yLabelVal:e.yLabelVal),"hover");o?0===e.yLabelVal?e.yLabel="0":e.yLabel="-"+c.text:e.yLabel=c.text,e.yVal=e.ya.c2d(e.yLabelVal)}if(void 0!==e.zLabelVal&&(e.zLabel=String(e.zLabelVal)),!(isNaN(e.xerr)||"log"===e.xa.type&&e.xerr<=0)){var l=x.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;void 0!==e.xerrneg?e.xLabel+=" +"+l+" / -"+x.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" ± "+l,"x"===t&&(e.distance+=1)}if(!(isNaN(e.yerr)||"log"===e.ya.type&&e.yerr<=0)){var u=x.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;void 0!==e.yerrneg?e.yLabel+=" +"+u+" / -"+x.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" ± "+u,"y"===t&&(e.distance+=1)}var d=e.trace.hoverinfo;return"all"!==d&&(d=d.split("+"),-1===d.indexOf("x")&&(e.xLabel=void 0),-1===d.indexOf("y")&&(e.yLabel=void 0),-1===d.indexOf("z")&&(e.zLabel=void 0),-1===d.indexOf("text")&&(e.text=void 0),-1===d.indexOf("name")&&(e.name=void 0)),n("color","hbg","hoverlabel.bgcolor"),n("borderColor","hbc","hoverlabel.bordercolor"),n("fontFamily","htf","hoverlabel.font.family"),n("fontSize","hts","hoverlabel.font.size"),n("fontColor","htc","hoverlabel.font.color"),e}function c(e,t){var n=t.hovermode,r=t.container,i=e[0],a=i.xa,o=i.ya,s=a.showspikes,c=o.showspikes;if(r.selectAll(".spikeline").remove(),"closest"===n&&(s||c)){var l=t.fullLayout,u=a._offset+(i.x0+i.x1)/2,d=o._offset+(i.y0+i.y1)/2,f=b.combine(l.plot_bgcolor,l.paper_bgcolor),h=p.readability(i.color,f)<1.5?b.contrast(f):i.color;if(c){var m=o.spikemode,g=o.spikethickness,y=o.spikecolor||h,x=o._boundingBox,M=(x.left+x.right)/2<u?x.right:x.left;if(-1!==m.indexOf("toaxis")||-1!==m.indexOf("across")){var _=M,w=u;-1!==m.indexOf("across")&&(_=o._counterSpan[0],w=o._counterSpan[1]),r.append("line").attr({x1:_,x2:w,y1:d,y2:d,"stroke-width":g+2,stroke:f}).classed("spikeline",!0).classed("crisp",!0),r.append("line").attr({x1:_,x2:w,y1:d,y2:d,"stroke-width":g,stroke:y,"stroke-dasharray":v.dashStyle(o.spikedash,g)}).classed("spikeline",!0).classed("crisp",!0)}-1!==m.indexOf("marker")&&r.append("circle").attr({cx:M+("right"!==o.side?g:-g),cy:d,r:g,fill:y}).classed("spikeline",!0)}if(s){var A=a.spikemode,S=a.spikethickness,k=a.spikecolor||h,$=a._boundingBox,T=($.top+$.bottom)/2<d?$.bottom:$.top;if(-1!==A.indexOf("toaxis")||-1!==A.indexOf("across")){var C=T,E=d;-1!==A.indexOf("across")&&(C=a._counterSpan[0],E=a._counterSpan[1]),r.append("line").attr({x1:u,x2:u,y1:C,y2:E,"stroke-width":S+2,stroke:f}).classed("spikeline",!0).classed("crisp",!0),r.append("line").attr({x1:u,x2:u,y1:C,y2:E,"stroke-width":S,stroke:k,"stroke-dasharray":v.dashStyle(a.spikedash,S)}).classed("spikeline",!0).classed("crisp",!0)}-1!==A.indexOf("marker")&&r.append("circle").attr({cx:u,cy:T-("top"!==a.side?S:-S),r:S,fill:k}).classed("spikeline",!0)}}}function l(e,t,n){if(!n||n.length!==e._hoverdata.length)return!0;for(var r=n.length-1;r>=0;r--){var i=n[r],a=e._hoverdata[r];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber))return!0}return!1}var u=e("d3"),d=e("fast-isnumeric"),p=e("tinycolor2"),f=e("../../lib"),h=e("../../lib/events"),m=e("../../lib/svg_text_utils"),g=e("../../lib/override_cursor"),v=e("../drawing"),b=e("../color"),y=e("../dragelement"),x=e("../../plots/cartesian/axes"),M=e("../../registry"),_=e("./helpers"),w=e("./constants"),A=w.YANGLE,S=Math.PI*A/180,k=1/Math.sin(S),$=Math.cos(S),T=Math.sin(S),C=w.HOVERARROWSIZE,E=w.HOVERTEXTPAD;n.hover=function(e,t,n){if("string"==typeof e&&(e=document.getElementById(e)),void 0===e._lastHoverTime&&(e._lastHoverTime=0),void 0!==e._hoverTimer&&(clearTimeout(e._hoverTimer),e._hoverTimer=void 0),Date.now()>e._lastHoverTime+w.HOVERMINTIME)return r(e,t,n),void(e._lastHoverTime=Date.now());e._hoverTimer=setTimeout(function(){r(e,t,n),e._lastHoverTime=Date.now(),e._hoverTimer=void 0},w.HOVERMINTIME)},n.loneHover=function(e,t){var n={color:e.color||b.defaultLine,x0:e.x0||e.x||0,x1:e.x1||e.x||0,y0:e.y0||e.y||0,y1:e.y1||e.y||0,xLabel:e.xLabel,yLabel:e.yLabel,zLabel:e.zLabel,text:e.text,name:e.name,idealAlign:e.idealAlign,borderColor:e.borderColor,fontFamily:e.fontFamily,fontSize:e.fontSize,fontColor:e.fontColor,trace:{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0},r=u.select(t.container),a=t.outerContainer?u.select(t.outerContainer):r,s={hovermode:"closest",rotateLabels:!1,bgColor:t.bgColor||b.background,container:r,outerContainer:a},c=i([n],s);return o(c,s.rotateLabels),c.node()}},{"../../lib":697,"../../lib/events":692,"../../lib/override_cursor":706,"../../lib/svg_text_utils":714,"../../plots/cartesian/axes":732,"../../registry":767,"../color":586,"../dragelement":607,"../drawing":610,"./constants":622,"./helpers":624,d3:265,"fast-isnumeric":267,tinycolor2:826}],626:[function(e,t,n){"use strict";var r=e("../../lib");t.exports=function(e,t,n,i){i=i||{},n("hoverlabel.bgcolor",i.bgcolor),n("hoverlabel.bordercolor",i.bordercolor),r.coerceFont(n,"hoverlabel.font",i.font)}},{"../../lib":697}],627:[function(e,t,n){"use strict";function r(e){var t=o.isD3Selection(e)?e:a.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function i(e,t,n){var r=e.hoverlabel||{},i=o.nestedProperty(r,n).get();return Array.isArray(i)?Array.isArray(t)&&Array.isArray(i[t[0]])?i[t[0]][t[1]]:i[t]:i}var a=e("d3"),o=e("../../lib"),s=e("../dragelement"),c=e("./helpers"),l=e("./layout_attributes");t.exports={moduleType:"component",name:"fx",constants:e("./constants"),schema:{layout:l},attributes:e("./attributes"),layoutAttributes:l,supplyLayoutGlobalDefaults:e("./layout_global_defaults"),supplyDefaults:e("./defaults"),supplyLayoutDefaults:e("./layout_defaults"),calc:e("./calc"),getDistanceFunction:c.getDistanceFunction,getClosest:c.getClosest,inbox:c.inbox,castHoverOption:i,hover:e("./hover").hover,unhover:s.unhover,loneHover:e("./hover").loneHover,loneUnhover:r,click:e("./click")}},{"../../lib":697,"../dragelement":607,"./attributes":619,"./calc":620,"./click":621,"./constants":622,"./defaults":623,"./helpers":624,"./hover":625,"./layout_attributes":628,"./layout_defaults":629,"./layout_global_defaults":630,d3:265}],628:[function(e,t,n){"use strict";var r=e("../../lib/extend").extendFlat,i=e("../../plots/font_attributes"),a=e("./constants");t.exports={dragmode:{valType:"enumerated",role:"info",values:["zoom","pan","select","lasso","orbit","turntable"],dflt:"zoom",description:["Determines the mode of drag interactions.","*select* and *lasso* apply only to scatter traces with","markers or text. *orbit* and *turntable* apply only to","3D scenes."].join(" ")},hovermode:{valType:"enumerated",role:"info",values:["x","y","closest",!1],description:"Determines the mode of hover interactions."},hoverlabel:{bgcolor:{valType:"color",role:"style",description:["Sets the background color of all hover labels on graph"].join(" ")},bordercolor:{valType:"color",role:"style",description:["Sets the border color of all hover labels on graph."].join(" ")},font:{family:r({},i.family,{dflt:a.HOVERFONT}),size:r({},i.size,{dflt:a.HOVERFONTSIZE}),color:r({},i.color)}}}},{"../../lib/extend":693,"../../plots/font_attributes":756,"./constants":622}],629:[function(e,t,n){"use strict";function r(e){for(var t=!0,n=0;n<e.length;n++){if("h"!==e[n].orientation){t=!1;break}}return t}var i=e("../../lib"),a=e("./layout_attributes");t.exports=function(e,t,n){function o(n,r){return i.coerce(e,t,a,n,r)}o("dragmode");var s;t._has("cartesian")?(t._isHoriz=r(n),s=t._isHoriz?"y":"x"):s="closest",o("hovermode",s)}},{"../../lib":697,"./layout_attributes":628}],630:[function(e,t,n){"use strict";var r=e("../../lib"),i=e("./hoverlabel_defaults"),a=e("./layout_attributes");t.exports=function(e,t){function n(n,i){return r.coerce(e,t,a,n,i)}i(e,t,n)}},{"../../lib":697,"./hoverlabel_defaults":626,"./layout_attributes":628}],631:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/constants");t.exports={_isLinkedToArray:"image",visible:{valType:"boolean",role:"info",dflt:!0,description:["Determines whether or not this image is visible."].join(" ")},source:{valType:"string",role:"info",description:["Specifies the URL of the image to be used.","The URL must be accessible from the domain where the","plot code is run, and can be either relative or absolute."].join(" ")},layer:{valType:"enumerated",values:["below","above"],dflt:"above",role:"info",description:["Specifies whether images are drawn below or above traces.","When `xref` and `yref` are both set to `paper`,","image is drawn below the entire plot area."].join(" ")},sizex:{valType:"number",role:"info",dflt:0,description:["Sets the image container size horizontally.","The image will be sized based on the `position` value.","When `xref` is set to `paper`, units are sized relative","to the plot width."].join(" ")},sizey:{valType:"number",role:"info",dflt:0,description:["Sets the image container size vertically.","The image will be sized based on the `position` value.","When `yref` is set to `paper`, units are sized relative","to the plot height."].join(" ")},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",role:"info",description:["Specifies which dimension of the image to constrain."].join(" ")},opacity:{valType:"number",role:"info",min:0,max:1,dflt:1,description:"Sets the opacity of the image."},x:{valType:"any",role:"info",dflt:0,description:["Sets the image's x position.","When `xref` is set to `paper`, units are sized relative","to the plot height.","See `xref` for more info"].join(" ")},y:{valType:"any",role:"info",dflt:0,description:["Sets the image's y position.","When `yref` is set to `paper`, units are sized relative","to the plot height.","See `yref` for more info"].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",role:"info",description:"Sets the anchor for the x position"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",role:"info",description:"Sets the anchor for the y position."},xref:{valType:"enumerated",values:["paper",r.idRegex.x.toString()],dflt:"paper",role:"info",description:["Sets the images's x coordinate axis.","If set to a x axis id (e.g. *x* or *x2*), the `x` position","refers to an x data coordinate","If set to *paper*, the `x` position refers to the distance from","the left of plot in normalized coordinates","where *0* (*1*) corresponds to the left (right)."].join(" ")},yref:{valType:"enumerated",values:["paper",r.idRegex.y.toString()],dflt:"paper",role:"info",description:["Sets the images's y coordinate axis.","If set to a y axis id (e.g. *y* or *y2*), the `y` position","refers to a y data coordinate.","If set to *paper*, the `y` position refers to the distance from","the bottom of the plot in normalized coordinates","where *0* (*1*) corresponds to the bottom (top)."].join(" ")}}},{"../../plots/cartesian/constants":737}],632:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),i=e("../../lib/to_log_range");t.exports=function(e,t,n,a){t=t||{};var o="log"===n&&"linear"===t.type,s="linear"===n&&"log"===t.type;if(o||s)for(var c,l,u=e._fullLayout.images,d=t._id.charAt(0),p=0;p<u.length;p++)if(c=u[p],l="images["+p+"].",c[d+"ref"]===t._id){var f=c[d],h=c["size"+d],m=null,g=null;if(o){m=i(f,t.range);var v=h/Math.pow(10,m)/2;g=2*Math.log(v+Math.sqrt(1+v*v))/Math.LN10}else m=Math.pow(10,f),g=m*(Math.pow(10,h/2)-Math.pow(10,-h/2));r(m)?r(g)||(g=null):(m=null,g=null),a(l+d,m),a(l+"size"+d,g)}}},{"../../lib/to_log_range":715,"fast-isnumeric":267}],633:[function(e,t,n){"use strict";function r(e,t,n){function r(n,r){return i.coerce(e,t,s,n,r)}if(!r("visible",!!r("source")))return t;r("layer"),r("xanchor"),r("yanchor"),r("sizex"),r("sizey"),r("sizing"),r("opacity");for(var o={_fullLayout:n},c=["x","y"],l=0;l<2;l++){var u=c[l],d=a.coerceRef(e,t,o,u,"paper");a.coercePosition(t,o,r,d,u,0)}return t}var i=e("../../lib"),a=e("../../plots/cartesian/axes"),o=e("../../plots/array_container_defaults"),s=e("./attributes");t.exports=function(e,t){o(e,t,{name:"images",handleItemDefaults:r})}},{"../../lib":697,"../../plots/array_container_defaults":729,"../../plots/cartesian/axes":732,"./attributes":631}],634:[function(e,t,n){"use strict";var r=e("d3"),i=e("../drawing"),a=e("../../plots/cartesian/axes"),o=e("../../constants/xmlns_namespaces");t.exports=function(e){function t(t){var n=r.select(this);if(!this.img||this.img.src!==t.source){n.attr("xmlns",o.svg);var i=new Promise(function(e){function r(){n.remove(),e()}var i=new Image;this.img=i,i.setAttribute("crossOrigin","anonymous"),i.onerror=r,i.onload=function(){var t=document.createElement("canvas");t.width=this.width,t.height=this.height,t.getContext("2d").drawImage(this,0,0);var r=t.toDataURL("image/png");n.attr("xlink:href",r),e()},n.on("error",r),i.src=t.source}.bind(this));e._promises.push(i)}}function n(t){var n=r.select(this),o=a.getFromId(e,t.xref),s=a.getFromId(e,t.yref),c=l._size,u=o?Math.abs(o.l2p(t.sizex)-o.l2p(0)):t.sizex*c.w,d=s?Math.abs(s.l2p(t.sizey)-s.l2p(0)):t.sizey*c.h,p=u*m.x[t.xanchor].offset,f=d*m.y[t.yanchor].offset,h=m.x[t.xanchor].sizing+m.y[t.yanchor].sizing,g=(o?o.r2p(t.x)+o._offset:t.x*c.w+c.l)+p,v=(s?s.r2p(t.y)+s._offset:c.h-t.y*c.h+c.t)+f;switch(t.sizing){case"fill":h+=" slice";break;case"stretch":h="none"}n.attr({x:g,y:v,width:u,height:d,preserveAspectRatio:h,opacity:t.opacity});var b=o?o._id:"",y=s?s._id:"",x=b+y;n.call(i.setClipUrl,x?"clip"+l._uid+x:null)}var s,c,l=e._fullLayout,u=[],d={},p=[];for(c=0;c<l.images.length;c++){var f=l.images[c];if(f.visible)if("below"===f.layer&&"paper"!==f.xref&&"paper"!==f.yref){s=f.xref+f.yref;var h=l._plots[s];if(!h){p.push(f);continue}h.mainplot&&(s=h.mainplot.id),d[s]||(d[s]=[]),d[s].push(f)}else"above"===f.layer?u.push(f):p.push(f)}var m={x:{left:{sizing:"xMin",offset:0},center:{sizing:"xMid",offset:-.5},right:{sizing:"xMax",offset:-1}},y:{top:{sizing:"YMin",offset:0},middle:{sizing:"YMid",offset:-.5},bottom:{sizing:"YMax",offset:-1}}},g=l._imageLowerLayer.selectAll("image").data(p),v=l._imageUpperLayer.selectAll("image").data(u);g.enter().append("image"),v.enter().append("image"),g.exit().remove(),v.exit().remove(),g.each(function(e){t.bind(this)(e),n.bind(this)(e)}),v.each(function(e){t.bind(this)(e),n.bind(this)(e)});var b=Object.keys(l._plots);for(c=0;c<b.length;c++){s=b[c];var y=l._plots[s];if(y.imagelayer){var x=y.imagelayer.selectAll("image").data(d[s]||[]);x.enter().append("image"),x.exit().remove(),x.each(function(e){t.bind(this)(e),n.bind(this)(e)})}}}},{"../../constants/xmlns_namespaces":685,"../../plots/cartesian/axes":732,"../drawing":610,d3:265}],635:[function(e,t,n){"use strict";t.exports={moduleType:"component",name:"images",layoutAttributes:e("./attributes"),supplyLayoutDefaults:e("./defaults"),draw:e("./draw"),convertCoords:e("./convert_coords")}},{"./attributes":631,"./convert_coords":632,"./defaults":633,"./draw":634}],636:[function(e,t,n){"use strict";n.isRightAnchor=function(e){return"right"===e.xanchor||"auto"===e.xanchor&&e.x>=2/3},n.isCenterAnchor=function(e){return"center"===e.xanchor||"auto"===e.xanchor&&e.x>1/3&&e.x<2/3},n.isBottomAnchor=function(e){return"bottom"===e.yanchor||"auto"===e.yanchor&&e.y<=1/3},n.isMiddleAnchor=function(e){return"middle"===e.yanchor||"auto"===e.yanchor&&e.y>1/3&&e.y<2/3}},{}],637:[function(e,t,n){"use strict";var r=e("../../plots/font_attributes"),i=e("../color/attributes"),a=e("../../lib/extend").extendFlat;t.exports={bgcolor:{valType:"color",role:"style",description:"Sets the legend background color."},bordercolor:{valType:"color",dflt:i.defaultLine,role:"style",description:"Sets the color of the border enclosing the legend."},borderwidth:{valType:"number",min:0,dflt:0,role:"style",description:"Sets the width (in px) of the border enclosing the legend."},font:a({},r,{description:"Sets the font used to text the legend items."}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",role:"info",description:"Sets the orientation of the legend."},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],role:"style",description:["Determines the order at which the legend items are displayed.","If *normal*, the items are displayed top-to-bottom in the same","order as the input data.","If *reversed*, the items are displayed in the opposite order","as *normal*.","If *grouped*, the items are displayed in groups","(when a trace `legendgroup` is provided).","if *grouped+reversed*, the items are displayed in the opposite order","as *grouped*."].join(" ")},tracegroupgap:{valType:"number",min:0,dflt:10,role:"style",description:["Sets the amount of vertical space (in px) between legend groups."].join(" ")},x:{valType:"number",min:-2,max:3,dflt:1.02,role:"style",description:"Sets the x position (in normalized coordinates) of the legend."},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",role:"info",description:["Sets the legend's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the legend."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:1,role:"style",description:"Sets the y position (in normalized coordinates) of the legend."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",role:"info",description:["Sets the legend's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the legend."].join(" ")}}},{"../../lib/extend":693,"../../plots/font_attributes":756,"../color/attributes":585}],638:[function(e,t,n){"use strict";t.exports={scrollBarWidth:4,scrollBarHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4}},{}],639:[function(e,t,n){"use strict";var r=e("../../registry"),i=e("../../lib"),a=e("./attributes"),o=e("../../plots/layout_attributes"),s=e("./helpers");t.exports=function(e,t,n){function c(e,t){return i.coerce(f,h,a,e,t)}for(var l,u,d,p,f=e.legend||{},h=t.legend={},m=0,g="normal",v=0;v<n.length;v++){var b=n[v];s.legendGetsTrace(b)&&(m++,r.traceIs(b,"pie")&&m++),(r.traceIs(b,"bar")&&"stack"===t.barmode||-1!==["tonextx","tonexty"].indexOf(b.fill))&&(g=s.isGrouped({traceorder:g})?"grouped+reversed":"reversed"),void 0!==b.legendgroup&&""!==b.legendgroup&&(g=s.isReversed({traceorder:g})?"reversed+grouped":"grouped")}if(!1!==i.coerce(e,t,o,"showlegend",m>1)){if(c("bgcolor",t.paper_bgcolor),c("bordercolor"),c("borderwidth"),i.coerceFont(c,"font",t.font),c("orientation"),"h"===h.orientation){var y=e.xaxis;y&&y.rangeslider&&y.rangeslider.visible?(l=0,d="left",u=1.1,p="bottom"):(l=0,d="left",u=-.1,p="top")}c("traceorder",g),s.isGrouped(t.legend)&&c("tracegroupgap"),c("x",l),c("xanchor",d),c("y",u),c("yanchor",p),i.noneOrAll(f,h,["x","y"])}}},{"../../lib":697,"../../plots/layout_attributes":758,"../../registry":767,"./attributes":637,"./helpers":642}],640:[function(e,t,n){"use strict";function r(e,t){function n(n){b.convertToTspans(n,function(){n.selectAll("tspan.line").attr({x:n.attr("x")}),e.call(o,t)})}var r=e.data()[0][0],i=t._fullLayout,a=r.trace,s=h.traceIs(a,"pie"),c=a.index,l=s?r.label:a.name,u=e.selectAll("text.legendtext").data([0]);u.enter().append("text").classed("legendtext",!0),u.attr({x:40,y:0,"data-unformatted":l}).style("text-anchor","start").classed("user-select-none",!0).call(g.font,i.legend.font).text(l),t._context.editable&&!s?u.call(b.makeEditable).call(n).on("edit",function(e){this.attr({"data-unformatted":e}),this.text(e).call(n),this.text()||(e=" ");var i,a=r.trace._fullInput||{};if(-1!==["ohlc","candlestick"].indexOf(a.type)){var o=r.trace.transforms;i=o[o.length-1].direction+".name"}else i="name";d.restyle(t,i,e,c)}):u.call(n)}function i(e,t){var n,r=1,i=e.selectAll("rect").data([0]);i.enter().append("rect").classed("legendtoggle",!0).style("cursor","pointer").attr("pointer-events","all").call(v.fill,"rgba(0,0,0,0)"),i.on("mousedown",function(){n=(new Date).getTime(),n-t._legendMouseDownTime<k?r+=1:(r=1,t._legendMouseDownTime=n)}),i.on("mouseup",function(){if(!t._dragged&&!t._editing){var n=t._fullLayout.legend;(new Date).getTime()-t._legendMouseDownTime>k&&(r=Math.max(r-1,1)),1===r?n._clickTimeout=setTimeout(function(){a(e,t,r)},k):2===r&&(n._clickTimeout&&clearTimeout(n._clickTimeout),t._legendMouseDownTime=0,a(e,t,r))}})}function a(e,t,n){if(!t._dragged&&!t._editing){var r,i,a=t._fullLayout.hiddenlabels?t._fullLayout.hiddenlabels.slice():[],o=e.data()[0][0],s=t._fullData,c=o.trace,l=c.legendgroup,u=[];if(1===n&&S&&t.data&&t._context.showTips?(p.notifier("Double click on legend to isolate individual trace","long"),S=!1):S=!1,h.traceIs(c,"pie")){var f=o.label,m=a.indexOf(f);1===n?-1===m?a.push(f):a.splice(m,1):2===n&&(a=[],t.calcdata[0].forEach(function(e){f!==e.label&&a.push(e.label)}),t._fullLayout.hiddenlabels&&t._fullLayout.hiddenlabels.length===a.length&&-1===m&&(a=[])),d.relayout(t,"hiddenlabels",a)}else{var g,v=[],b=[];for(g=0;g<s.length;g++)v.push(g),b.push(!!h.traceIs(s[g],"notLegendIsolatable")||"legendonly");if(""===l)u=[c.index],b[c.index]=!0;else for(g=0;g<s.length;g++)r=s[g],r.legendgroup===l&&(u.push(r.index),b[v.indexOf(g)]=!0);if(1===n)i=!0!==c.visible||"legendonly",d.restyle(t,"visible",i,u);else if(2===n){var y=!0;for(g=0;g<s.length;g++)if(s[g].visible!==b[g]){y=!1;break}y&&(b=!0);var x=[];for(g=0;g<s.length;g++)x.push(v[g]);d.restyle(t,"visible",b,x)}}}}function o(e,t){var n,r,i=e.data()[0][0],a=e.select("g[class*=math-group]"),o=t._fullLayout.legend,s=1.3*o.font.size;if(!i.trace.showlegend)return void e.remove();if(a.node()){var c=g.bBox(a.node());n=c.height,r=c.width,g.setTranslate(a,0,n/4)}else{var l=e.selectAll(".legendtext"),u=e.selectAll(".legendtext>tspan"),d=u[0].length||1;n=s*d,r=l.node()&&g.bBox(l.node()).width;var p=s*(.3+(1-d)/2);l.attr("y",p),u.attr("y",p)}n=Math.max(n,16)+3,i.height=n,i.width=r}function s(e,t,n){var r=e._fullLayout,i=r.legend,a=i.borderwidth,o=w.isGrouped(i);if(w.isVertical(i))o&&t.each(function(e,t){g.setTranslate(this,0,t*i.tracegroupgap)}),i.width=0,i.height=0,n.each(function(e){var t=e[0],n=t.height,r=t.width;g.setTranslate(this,a,5+a+i.height+n/2),i.height+=n,i.width=Math.max(i.width,r)}),i.width+=45+2*a,i.height+=10+2*a,o&&(i.height+=(i._lgroupsLength-1)*i.tracegroupgap),i.width=Math.ceil(i.width),i.height=Math.ceil(i.height),n.each(function(t){var n=t[0];u.select(this).select(".legendtoggle").call(g.setRect,0,-n.height/2,(e._context.editable?0:i.width)+40,n.height)});else if(o){i.width=0,i.height=0;for(var s=[i.width],c=t.data(),l=0,d=c.length;l<d;l++){var p=c[l].map(function(e){return e[0].width}),f=40+Math.max.apply(null,p);i.width+=i.tracegroupgap+f,s.push(i.width)}t.each(function(e,t){g.setTranslate(this,s[t],0)}),t.each(function(){var e=u.select(this),t=e.selectAll("g.traces"),n=0;t.each(function(e){var t=e[0],r=t.height;g.setTranslate(this,0,5+a+n+r/2),n+=r}),i.height=Math.max(i.height,n)}),i.height+=10+2*a,i.width+=2*a,i.width=Math.ceil(i.width),i.height=Math.ceil(i.height),n.each(function(t){var n=t[0];u.select(this).select(".legendtoggle").call(g.setRect,0,-n.height/2,e._context.editable?0:i.width,n.height)})}else{i.width=0,i.height=0;var h=0,m=0,v=0,b=0;n.each(function(e){v=Math.max(40+e[0].width,v)}),n.each(function(e){var t=e[0],n=v,o=i.tracegroupgap||5;a+b+o+n>r.width-(r.margin.r+r.margin.l)&&(b=0,h+=m,i.height=i.height+m,m=0),g.setTranslate(this,a+b,5+a+t.height/2+h),i.width+=o+n,i.height=Math.max(i.height,t.height),b+=o+n,m=Math.max(t.height,m)}),i.width+=2*a,i.height+=10+2*a,i.width=Math.ceil(i.width),i.height=Math.ceil(i.height),n.each(function(t){var n=t[0];u.select(this).select(".legendtoggle").call(g.setRect,0,-n.height/2,e._context.editable?0:i.width,n.height)})}}function c(e){var t=e._fullLayout,n=t.legend,r="left";A.isRightAnchor(n)?r="right":A.isCenterAnchor(n)&&(r="center");var i="top";A.isBottomAnchor(n)?i="bottom":A.isMiddleAnchor(n)&&(i="middle"),f.autoMargin(e,"legend",{x:n.x,y:n.y,l:n.width*({right:1,center:.5}[r]||0),r:n.width*({left:1,center:.5}[r]||0),b:n.height*({top:1,middle:.5}[i]||0),t:n.height*({bottom:1,middle:.5}[i]||0)})}function l(e){var t=e._fullLayout,n=t.legend,r="left";A.isRightAnchor(n)?r="right":A.isCenterAnchor(n)&&(r="center"),f.autoMargin(e,"legend",{x:n.x,y:.5,l:n.width*({right:1,center:.5}[r]||0),r:n.width*({left:1,center:.5}[r]||0),b:0,t:0})}var u=e("d3"),d=e("../../plotly"),p=e("../../lib"),f=e("../../plots/plots"),h=e("../../registry"),m=e("../dragelement"),g=e("../drawing"),v=e("../color"),b=e("../../lib/svg_text_utils"),y=e("./constants"),x=e("../../constants/interactions"),M=e("./get_legend_data"),_=e("./style"),w=e("./helpers"),A=e("./anchor_utils"),S=!0,k=x.DBLCLICKDELAY;t.exports=function(e){function t(e,t){C.attr("data-scroll",t).call(g.setTranslate,0,t),
63E.call(g.setRect,j,e,y.scrollBarWidth,y.scrollBarHeight),$.select("rect").attr({y:b.borderwidth-t})}var n=e._fullLayout,o="legend"+n._uid;if(n._infolayer&&e.calcdata){e._legendMouseDownTime||(e._legendMouseDownTime=0);var b=n.legend,x=n.showlegend&&M(e.calcdata,b),w=n.hiddenlabels||[];if(!n.showlegend||!x.length)return n._infolayer.selectAll(".legend").remove(),n._topdefs.select("#"+o).remove(),void f.autoMargin(e,"legend");var S=n._infolayer.selectAll("g.legend").data([0]);S.enter().append("g").attr({class:"legend","pointer-events":"all"});var $=n._topdefs.selectAll("#"+o).data([0]);$.enter().append("clipPath").attr("id",o).append("rect");var T=S.selectAll("rect.bg").data([0]);T.enter().append("rect").attr({class:"bg","shape-rendering":"crispEdges"}),T.call(v.stroke,b.bordercolor),T.call(v.fill,b.bgcolor),T.style("stroke-width",b.borderwidth+"px");var C=S.selectAll("g.scrollbox").data([0]);C.enter().append("g").attr("class","scrollbox");var E=S.selectAll("rect.scrollbar").data([0]);E.enter().append("rect").attr({class:"scrollbar",rx:20,ry:2,width:0,height:0}).call(v.fill,"#808BA4");var O=C.selectAll("g.groups").data(x);O.enter().append("g").attr("class","groups"),O.exit().remove();var z=O.selectAll("g.traces").data(p.identity);z.enter().append("g").attr("class","traces"),z.exit().remove(),z.call(_).style("opacity",function(e){var t=e[0].trace;return h.traceIs(t,"pie")?-1!==w.indexOf(e[0].label)?.5:1:"legendonly"===t.visible?.5:1}).each(function(){u.select(this).call(r,e).call(i,e)});var L=0!==S.enter().size();L&&(s(e,O,z),c(e));var N=n.width,P=n.height;s(e,O,z),b.height>P?l(e):c(e);var I=n._size,D=I.l+I.w*b.x,R=I.t+I.h*(1-b.y);A.isRightAnchor(b)?D-=b.width:A.isCenterAnchor(b)&&(D-=b.width/2),A.isBottomAnchor(b)?R-=b.height:A.isMiddleAnchor(b)&&(R-=b.height/2);var j=b.width,q=I.w;j>q?(D=I.l,j=q):(D+j>N&&(D=N-j),D<0&&(D=0),j=Math.min(N-D,b.width));var B=b.height,W=I.h;B>W?(R=I.t,B=W):(R+B>P&&(R=P-B),R<0&&(R=0),B=Math.min(P-R,b.height)),g.setTranslate(S,D,R);var H,F,X=B-y.scrollBarHeight-2*y.scrollBarMargin,U=b.height-B;if(b.height<=B||e._context.staticPlot)T.attr({width:j-b.borderwidth,height:B-b.borderwidth,x:b.borderwidth/2,y:b.borderwidth/2}),g.setTranslate(C,0,0),$.select("rect").attr({width:j-2*b.borderwidth,height:B-2*b.borderwidth,x:b.borderwidth,y:b.borderwidth}),C.call(g.setClipUrl,o);else{H=y.scrollBarMargin,F=C.attr("data-scroll")||0,T.attr({width:j-2*b.borderwidth+y.scrollBarWidth+y.scrollBarMargin,height:B-b.borderwidth,x:b.borderwidth/2,y:b.borderwidth/2}),$.select("rect").attr({width:j-2*b.borderwidth+y.scrollBarWidth+y.scrollBarMargin,height:B-2*b.borderwidth,x:b.borderwidth,y:b.borderwidth-F}),C.call(g.setClipUrl,o),L&&t(H,F),S.on("wheel",null),S.on("wheel",function(){F=p.constrain(C.attr("data-scroll")-u.event.deltaY/X*U,-U,0),H=y.scrollBarMargin-F/U*X,t(H,F),0!==F&&F!==-U&&u.event.preventDefault()}),E.on(".drag",null),C.on(".drag",null);var V=u.behavior.drag().on("drag",function(){H=p.constrain(u.event.y-y.scrollBarHeight/2,y.scrollBarMargin,y.scrollBarMargin+X),F=-(H-y.scrollBarMargin)/X*U,t(H,F)});E.call(V),C.call(V)}if(e._context.editable){var G,Y,Q,K;S.classed("cursor-move",!0),m.init({element:S.node(),prepFn:function(){var e=g.getTranslate(S);Q=e.x,K=e.y},moveFn:function(e,t){var n=Q+e,r=K+t;g.setTranslate(S,n,r),G=m.align(n,0,I.l,I.l+I.w,b.xanchor),Y=m.align(r,0,I.t+I.h,I.t,b.yanchor)},doneFn:function(t,r,i){if(t&&void 0!==G&&void 0!==Y)d.relayout(e,{"legend.x":G,"legend.y":Y});else{var o=n._infolayer.selectAll("g.traces").filter(function(){var e=this.getBoundingClientRect();return i.clientX>=e.left&&i.clientX<=e.right&&i.clientY>=e.top&&i.clientY<=e.bottom});o.size()>0&&(1===r?S._clickTimeout=setTimeout(function(){a(o,e,r)},k):2===r&&(S._clickTimeout&&clearTimeout(S._clickTimeout),a(o,e,r)))}}})}}}},{"../../constants/interactions":682,"../../lib":697,"../../lib/svg_text_utils":714,"../../plotly":727,"../../plots/plots":760,"../../registry":767,"../color":586,"../dragelement":607,"../drawing":610,"./anchor_utils":636,"./constants":638,"./get_legend_data":641,"./helpers":642,"./style":644,d3:265}],641:[function(e,t,n){"use strict";var r=e("../../registry"),i=e("./helpers");t.exports=function(e,t){function n(e,n){if(""!==e&&i.isGrouped(t))-1===c.indexOf(e)?(c.push(e),l=!0,s[e]=[[n]]):s[e].push([n]);else{var r="~~i"+d;c.push(r),s[r]=[[n]],d++}}var a,o,s={},c=[],l=!1,u={},d=0;for(a=0;a<e.length;a++){var p=e[a],f=p[0],h=f.trace,m=h.legendgroup;if(i.legendGetsTrace(h)&&h.showlegend)if(r.traceIs(h,"pie"))for(u[m]||(u[m]={}),o=0;o<p.length;o++){var g=p[o].label;u[m][g]||(n(m,{label:g,color:p[o].color,i:p[o].i,trace:h}),u[m][g]=!0)}else n(m,f)}if(!c.length)return[];var v,b,y=c.length;if(l&&i.isGrouped(t))for(b=new Array(y),a=0;a<y;a++)v=s[c[a]],b[a]=i.isReversed(t)?v.reverse():v;else{for(b=[new Array(y)],a=0;a<y;a++)v=s[c[a]][0],b[0][i.isReversed(t)?y-a-1:a]=v;y=1}return t._lgroupsLength=y,b}},{"../../registry":767,"./helpers":642}],642:[function(e,t,n){"use strict";var r=e("../../registry");n.legendGetsTrace=function(e){return e.visible&&r.traceIs(e,"showLegend")},n.isGrouped=function(e){return-1!==(e.traceorder||"").indexOf("grouped")},n.isVertical=function(e){return"h"!==e.orientation},n.isReversed=function(e){return-1!==(e.traceorder||"").indexOf("reversed")}},{"../../registry":767}],643:[function(e,t,n){"use strict";t.exports={moduleType:"component",name:"legend",layoutAttributes:e("./attributes"),supplyLayoutDefaults:e("./defaults"),draw:e("./draw"),style:e("./style")}},{"./attributes":637,"./defaults":639,"./draw":640,"./style":644}],644:[function(e,t,n){"use strict";function r(e){var t=e[0].trace,n=t.visible&&t.fill&&"none"!==t.fill,r=f.hasLines(t);t&&t._module&&"contourcarpet"===t._module.name&&(r=t.contours.showlines,n="fill"===t.contours.coloring);var i=c.select(this).select(".legendfill").selectAll("path").data(n?[e]:[]);i.enter().append("path").classed("js-fill",!0),i.exit().remove(),i.attr("d","M5,0h30v6h-30z").call(d.fillGroupStyle);var a=c.select(this).select(".legendlines").selectAll("path").data(r?[e]:[]);a.enter().append("path").classed("js-line",!0).attr("d","M5,0h30"),a.exit().remove(),a.call(d.lineGroupStyle)}function i(e){function t(e,t,n){var r=u.nestedProperty(o,e).get(),i=Array.isArray(r)&&t?t(r):r;if(n){if(i<n[0])return n[0];if(i>n[1])return n[1]}return i}function n(e){return e[0]}var r,i,a=e[0],o=a.trace,s=f.hasMarkers(o),l=f.hasText(o),p=f.hasLines(o);if(s||l||p){var h={},m={};s&&(h.mc=t("marker.color",n),h.mo=t("marker.opacity",u.mean,[.2,1]),h.ms=t("marker.size",u.mean,[2,16]),h.mlc=t("marker.line.color",n),h.mlw=t("marker.line.width",u.mean,[0,5]),m.marker={sizeref:1,sizemin:1,sizemode:"diameter"}),p&&(m.line={width:t("line.width",n,[0,10])}),l&&(h.tx="Aa",h.tp=t("textposition",n),h.ts=10,h.tc=t("textfont.color",n),h.tf=t("textfont.family",n)),r=[u.minExtend(a,h)],i=u.minExtend(o,m)}var g=c.select(this).select("g.legendpoints"),v=g.selectAll("path.scatterpts").data(s?r:[]);v.enter().append("path").classed("scatterpts",!0).attr("transform","translate(20,0)"),v.exit().remove(),v.call(d.pointStyle,i),s&&(r[0].mrc=3);var b=g.selectAll("g.pointtext").data(l?r:[]);b.enter().append("g").classed("pointtext",!0).append("text").attr("transform","translate(20,0)"),b.exit().remove(),b.selectAll("text").call(d.textPointStyle,i)}function a(e){var t=e[0].trace,n=t.marker||{},r=n.line||{},i=c.select(this).select("g.legendpoints").selectAll("path.legendbar").data(l.traceIs(t,"bar")?[e]:[]);i.enter().append("path").classed("legendbar",!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),i.exit().remove(),i.each(function(e){var t=c.select(this),i=e[0],a=(i.mlw+1||r.width+1)-1;t.style("stroke-width",a+"px").call(p.fill,i.mc||n.color),a&&t.call(p.stroke,i.mlc||r.color)})}function o(e){var t=e[0].trace,n=c.select(this).select("g.legendpoints").selectAll("path.legendbox").data(l.traceIs(t,"box")&&t.visible?[e]:[]);n.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),n.exit().remove(),n.each(function(){var e=t.line.width,n=c.select(this);n.style("stroke-width",e+"px").call(p.fill,t.fillcolor),e&&n.call(p.stroke,t.line.color)})}function s(e){var t=e[0].trace,n=c.select(this).select("g.legendpoints").selectAll("path.legendpie").data(l.traceIs(t,"pie")&&t.visible?[e]:[]);n.enter().append("path").classed("legendpie",!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),n.exit().remove(),n.size()&&n.call(h,e[0],t)}var c=e("d3"),l=e("../../registry"),u=e("../../lib"),d=e("../drawing"),p=e("../color"),f=e("../../traces/scatter/subtypes"),h=e("../../traces/pie/style_one");t.exports=function(e){e.each(function(e){var t=c.select(this),n=t.selectAll("g.layers").data([0]);n.enter().append("g").classed("layers",!0),n.style("opacity",e[0].trace.opacity),n.selectAll("g.legendfill").data([e]).enter().append("g").classed("legendfill",!0),n.selectAll("g.legendlines").data([e]).enter().append("g").classed("legendlines",!0);var r=n.selectAll("g.legendsymbols").data([e]);r.enter().append("g").classed("legendsymbols",!0),r.selectAll("g.legendpoints").data([e]).enter().append("g").classed("legendpoints",!0)}).each(a).each(o).each(s).each(r).each(i)}},{"../../lib":697,"../../registry":767,"../../traces/pie/style_one":799,"../../traces/scatter/subtypes":821,"../color":586,"../drawing":610,d3:265}],645:[function(e,t,n){"use strict";function r(e,t){var n,r,i=t.currentTarget,a=i.getAttribute("data-attr"),o=i.getAttribute("data-val")||!0,s=e._fullLayout,c={},l=p.list(e,null,!0),d="on";if("zoom"===a){var f,h="in"===o?.5:2,m=(1+h)/2,g=(1-h)/2;for(r=0;r<l.length;r++)if(n=l[r],!n.fixedrange)if(f=n._name,"auto"===o)c[f+".autorange"]=!0;else if("reset"===o){if(void 0===n._rangeInitial)c[f+".autorange"]=!0;else{var v=n._rangeInitial.slice();c[f+".range[0]"]=v[0],c[f+".range[1]"]=v[1]}void 0!==n._showSpikeInitial&&(c[f+".showspikes"]=n._showSpikeInitial,"on"!==d||n._showSpikeInitial||(d="off"))}else{var b=[n.r2l(n.range[0]),n.r2l(n.range[1])],y=[m*b[0]+g*b[1],m*b[1]+g*b[0]];c[f+".range[0]"]=n.l2r(y[0]),c[f+".range[1]"]=n.l2r(y[1])}s._cartesianSpikesEnabled=d}else{if("hovermode"!==a||"x"!==o&&"y"!==o){if("hovermode"===a&&"closest"===o){for(r=0;r<l.length;r++)n=l[r],"on"!==d||n.showspikes||(d="off");s._cartesianSpikesEnabled=d}}else o=s._isHoriz?"y":"x",i.setAttribute("data-val",o),"closest"!==o&&(s._cartesianSpikesEnabled="off");c[a]=o}u.relayout(e,c)}function i(e,t){for(var n=t.currentTarget,r=n.getAttribute("data-attr"),i=n.getAttribute("data-val")||!0,a=e._fullLayout,o=d.getSubplotIds(a,"gl3d"),s={},c=r.split("."),l=0;l<o.length;l++)s[o[l]+"."+c[1]]=i;u.relayout(e,s)}function a(e,t){for(var n=t.currentTarget,r=n.getAttribute("data-attr"),i=e._fullLayout,a=d.getSubplotIds(i,"gl3d"),o={},s=0;s<a.length;s++){var c=a[s],l=c+".camera",p=i[c]._scene;"resetDefault"===r?o[l]=null:"resetLastSave"===r&&(o[l]=f.extendDeep({},p.cameraInitial))}u.relayout(e,o)}function o(e,t){var n=t.currentTarget,r=n._previousVal||!1,i=e.layout,a=e._fullLayout,o=d.getSubplotIds(a,"gl3d"),s=["xaxis","yaxis","zaxis"],c=["showspikes","spikesides","spikethickness","spikecolor"],l={},p={},h={};if(r)h=f.extendDeep(i,r),n._previousVal=null;else{h={"allaxes.showspikes":!1};for(var m=0;m<o.length;m++){var g=o[m],v=a[g],b=l[g]={};b.hovermode=v.hovermode,h[g+".hovermode"]=!1;for(var y=0;y<3;y++){var x=s[y];p=b[x]={};for(var M=0;M<c.length;M++){var _=c[M];p[_]=v[x][_]}}}n._previousVal=f.extendDeep({},l)}u.relayout(e,h)}function s(e,t){for(var n=t.currentTarget,r=n.getAttribute("data-attr"),i=n.getAttribute("data-val")||!0,a=e._fullLayout,o=d.getSubplotIds(a,"geo"),s=0;s<o.length;s++){var c=a[o[s]]._subplot;if("zoom"===r){var l=c.projection.scale(),u="in"===i?2*l:.5*l;c.projection.scale(u),c.zoom.scale(u),c.render()}else"reset"===r&&c.zoomReset()}}function c(e){var t,n=e._fullLayout;t=n._has("cartesian")?n._isHoriz?"y":"x":"closest";var r=!e._fullLayout.hovermode&&t;u.relayout(e,"hovermode",r)}function l(e){for(var t,n,r=e._fullLayout,i=p.list(e,null,!0),a={},o=0;o<i.length;o++)t=i[o],n=t._name,a[n+".showspikes"]="on"===r._cartesianSpikesEnabled;return a}var u=e("../../plotly"),d=e("../../plots/plots"),p=e("../../plots/cartesian/axes"),f=e("../../lib"),h=e("../../snapshot/download"),m=e("../../../build/ploticon"),g=t.exports={};g.toImage={name:"toImage",title:"Download plot as a png",icon:m.camera,click:function(e){var t="png";f.notifier("Taking snapshot - this may take a few seconds","long"),f.isIE()&&(f.notifier("IE only supports svg. Changing format to svg.","long"),t="svg"),h(e,{format:t}).then(function(e){f.notifier("Snapshot succeeded - "+e,"long")}).catch(function(){f.notifier("Sorry there was a problem downloading your snapshot!","long")})}},g.sendDataToCloud={name:"sendDataToCloud",title:"Save and edit plot in cloud",icon:m.disk,click:function(e){d.sendDataToCloud(e)}},g.zoom2d={name:"zoom2d",title:"Zoom",attr:"dragmode",val:"zoom",icon:m.zoombox,click:r},g.pan2d={name:"pan2d",title:"Pan",attr:"dragmode",val:"pan",icon:m.pan,click:r},g.select2d={name:"select2d",title:"Box Select",attr:"dragmode",val:"select",icon:m.selectbox,click:r},g.lasso2d={name:"lasso2d",title:"Lasso Select",attr:"dragmode",val:"lasso",icon:m.lasso,click:r},g.zoomIn2d={name:"zoomIn2d",title:"Zoom in",attr:"zoom",val:"in",icon:m.zoom_plus,click:r},g.zoomOut2d={name:"zoomOut2d",title:"Zoom out",attr:"zoom",val:"out",icon:m.zoom_minus,click:r},g.autoScale2d={name:"autoScale2d",title:"Autoscale",attr:"zoom",val:"auto",icon:m.autoscale,click:r},g.resetScale2d={name:"resetScale2d",title:"Reset axes",attr:"zoom",val:"reset",icon:m.home,click:r},g.hoverClosestCartesian={name:"hoverClosestCartesian",title:"Show closest data on hover",attr:"hovermode",val:"closest",icon:m.tooltip_basic,gravity:"ne",click:r},g.hoverCompareCartesian={name:"hoverCompareCartesian",title:"Compare data on hover",attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:m.tooltip_compare,gravity:"ne",click:r},g.zoom3d={name:"zoom3d",title:"Zoom",attr:"scene.dragmode",val:"zoom",icon:m.zoombox,click:i},g.pan3d={name:"pan3d",title:"Pan",attr:"scene.dragmode",val:"pan",icon:m.pan,click:i},g.orbitRotation={name:"orbitRotation",title:"orbital rotation",attr:"scene.dragmode",val:"orbit",icon:m["3d_rotate"],click:i},g.tableRotation={name:"tableRotation",title:"turntable rotation",attr:"scene.dragmode",val:"turntable",icon:m["z-axis"],click:i},g.resetCameraDefault3d={name:"resetCameraDefault3d",title:"Reset camera to default",attr:"resetDefault",icon:m.home,click:a},g.resetCameraLastSave3d={name:"resetCameraLastSave3d",title:"Reset camera to last save",attr:"resetLastSave",icon:m.movie,click:a},g.hoverClosest3d={name:"hoverClosest3d",title:"Toggle show closest data on hover",attr:"hovermode",val:null,toggle:!0,icon:m.tooltip_basic,gravity:"ne",click:o},g.zoomInGeo={name:"zoomInGeo",title:"Zoom in",attr:"zoom",val:"in",icon:m.zoom_plus,click:s},g.zoomOutGeo={name:"zoomOutGeo",title:"Zoom out",attr:"zoom",val:"out",icon:m.zoom_minus,click:s},g.resetGeo={name:"resetGeo",title:"Reset",attr:"reset",val:null,icon:m.autoscale,click:s},g.hoverClosestGeo={name:"hoverClosestGeo",title:"Toggle show closest data on hover",attr:"hovermode",val:null,toggle:!0,icon:m.tooltip_basic,gravity:"ne",click:c},g.hoverClosestGl2d={name:"hoverClosestGl2d",title:"Toggle show closest data on hover",attr:"hovermode",val:null,toggle:!0,icon:m.tooltip_basic,gravity:"ne",click:c},g.hoverClosestPie={name:"hoverClosestPie",title:"Toggle show closest data on hover",attr:"hovermode",val:"closest",icon:m.tooltip_basic,gravity:"ne",click:c},g.toggleHover={name:"toggleHover",title:"Toggle show closest data on hover",attr:"hovermode",val:null,toggle:!0,icon:m.tooltip_basic,gravity:"ne",click:function(e,t){c(e),o(e,t)}},g.resetViews={name:"resetViews",title:"Reset views",icon:m.home,click:function(e,t){var n=t.currentTarget;n.setAttribute("data-attr","zoom"),n.setAttribute("data-val","reset"),r(e,t),n.setAttribute("data-attr","resetLastSave"),a(e,t)}},g.toggleSpikelines={name:"toggleSpikelines",title:"Toggle Spike Lines",icon:m.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(e){var t=e._fullLayout;t._cartesianSpikesEnabled="closest"===t.hovermode&&"on"===t._cartesianSpikesEnabled?"off":"on";var n=l(e);n.hovermode="closest",u.relayout(e,n)}}},{"../../../build/ploticon":569,"../../lib":697,"../../plotly":727,"../../plots/cartesian/axes":732,"../../plots/plots":760,"../../snapshot/download":769}],646:[function(e,t,n){"use strict";n.manage=e("./manage")},{"./manage":647}],647:[function(e,t,n){"use strict";function r(e,t,n){function r(e){for(var n=[],r=0;r<e.length;r++){var i=e[r];-1===t.indexOf(i)&&n.push(d[i])}g.push(n)}var s=e._fullLayout,c=e._fullData,l=s._has("cartesian"),u=s._has("gl3d"),p=s._has("geo"),f=s._has("pie"),h=s._has("gl2d"),m=s._has("ternary"),g=[];if(r(["toImage","sendDataToCloud"]),(l||h||f||m)+p+u>1)return r(["resetViews","toggleHover"]),o(g,n);u&&(r(["zoom3d","pan3d","orbitRotation","tableRotation"]),r(["resetCameraDefault3d","resetCameraLastSave3d"]),r(["hoverClosest3d"])),p&&(r(["zoomInGeo","zoomOutGeo","resetGeo"]),r(["hoverClosestGeo"]));var v=i(s),b=[];return((l||h)&&!v||m)&&(b=["zoom2d","pan2d"]),(l||m)&&a(c)&&(b.push("select2d"),b.push("lasso2d")),b.length&&r(b),!l&&!h||v||m||r(["zoomIn2d","zoomOut2d","autoScale2d","resetScale2d"]),l&&f?r(["toggleHover"]):h?r(["hoverClosestGl2d"]):l?r(["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]):f&&r(["hoverClosestPie"]),o(g,n)}function i(e){for(var t=c.list({_fullLayout:e},null,!0),n=!0,r=0;r<t.length;r++)if(!t[r].fixedrange){n=!1;break}return n}function a(e){for(var t=!1,n=0;n<e.length&&!t;n++){var r=e[n];r._module&&r._module.selectPoints&&("scatter"===r.type||"scatterternary"===r.type?(l.hasMarkers(r)||l.hasText(r))&&(t=!0):t=!0)}return t}function o(e,t){if(t.length)if(Array.isArray(t[0]))for(var n=0;n<t.length;n++)e.push(t[n]);else e.push(t);return e}function s(e){for(var t=0;t<e.length;t++)for(var n=e[t],r=0;r<n.length;r++){var i=n[r];if("string"==typeof i){if(void 0===d[i])throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "));e[t][r]=d[i]}}return e}var c=e("../../plots/cartesian/axes"),l=e("../../traces/scatter/subtypes"),u=e("./modebar"),d=e("./buttons");t.exports=function(e){var t=e._fullLayout,n=e._context,i=t._modeBar;if(!n.displayModeBar)return void(i&&(i.destroy(),delete t._modeBar));if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var a,o=n.modeBarButtons;a=Array.isArray(o)&&o.length?s(o):r(e,n.modeBarButtonsToRemove,n.modeBarButtonsToAdd),i?i.update(e,a):t._modeBar=u(e,a)}},{"../../plots/cartesian/axes":732,"../../traces/scatter/subtypes":821,"./buttons":645,"./modebar":648}],648:[function(e,t,n){"use strict";function r(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}function i(e,t){var n=e._fullLayout,i=new r({graphInfo:e,container:n._paperdiv.node(),buttons:t});return n._privateplot&&a.select(i.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),i}var a=e("d3"),o=e("../../lib"),s=e("../../../build/ploticon"),c=r.prototype;c.update=function(e,t){this.graphInfo=e;var n=this.graphInfo._context;"hover"===n.displayModeBar?this.element.className="modebar modebar--hover":this.element.className="modebar";var r=!this.hasButtons(t),i=this.hasLogo!==n.displaylogo;(r||i)&&(this.removeAllButtons(),this.updateButtons(t),n.displaylogo&&(this.element.appendChild(this.getLogo()),this.hasLogo=!0)),this.updateActiveButton()},c.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach(function(e){var n=t.createGroup();e.forEach(function(e){var r=e.name;if(!r)throw new Error("must provide button 'name' in button config");if(-1!==t.buttonsNames.indexOf(r))throw new Error("button name '"+r+"' is taken");t.buttonsNames.push(r);var i=t.createButton(e);t.buttonElements.push(i),n.appendChild(i)}),t.element.appendChild(n)})},c.createGroup=function(){var e=document.createElement("div");return e.className="modebar-group",e},c.createButton=function(e){var t=this,n=document.createElement("a");n.setAttribute("rel","tooltip"),n.className="modebar-btn";var r=e.title;void 0===r&&(r=e.name),(r||0===r)&&n.setAttribute("data-title",r),void 0!==e.attr&&n.setAttribute("data-attr",e.attr);var i=e.val;if(void 0!==i&&("function"==typeof i&&(i=i(this.graphInfo)),n.setAttribute("data-val",i)),"function"!=typeof e.click)throw new Error("must provide button 'click' function in button config");return n.addEventListener("click",function(n){e.click(t.graphInfo,n),t.updateActiveButton(n.currentTarget)}),n.setAttribute("data-toggle",e.toggle||!1),e.toggle&&a.select(n).classed("active",!0),n.appendChild(this.createIcon(e.icon||s.question,e.name)),n.setAttribute("data-gravity",e.gravity||"n"),n},c.createIcon=function(e,t){var n=e.ascent-e.descent,r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),a=document.createElementNS(r,"path");i.setAttribute("height","1em"),i.setAttribute("width",e.width/n+"em"),i.setAttribute("viewBox",[0,0,e.width,n].join(" "));var o="toggleSpikelines"===t?"matrix(1.5 0 0 -1.5 0 "+e.ascent+")":"matrix(1 0 0 -1 0 "+e.ascent+")";return a.setAttribute("d",e.path),a.setAttribute("transform",o),i.appendChild(a),i},c.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,n=void 0!==e?e.getAttribute("data-attr"):null;this.buttonElements.forEach(function(e){var r=e.getAttribute("data-val")||!0,i=e.getAttribute("data-attr"),s="true"===e.getAttribute("data-toggle"),c=a.select(e);if(s)i===n&&c.classed("active",!c.classed("active"));else{var l=null===i?i:o.nestedProperty(t,i).get();c.classed("active",l===r)}})},c.hasButtons=function(e){var t=this.buttons;if(!t)return!1;if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n){if(e[n].length!==t[n].length)return!1;for(var r=0;r<e[n].length;r++)if(e[n][r].name!==t[n][r].name)return!1}return!0},c.getLogo=function(){var e=this.createGroup(),t=document.createElement("a");return t.href="https://plot.ly/",t.target="_blank",t.setAttribute("data-title","Produced with Plotly"),t.className="modebar-btn plotlyjsicon modebar-btn--logo",t.appendChild(this.createIcon(s.plotlylogo)),e.appendChild(t),e},c.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},c.destroy=function(){o.removeElement(this.container.querySelector(".modebar"))},t.exports=i},{"../../../build/ploticon":569,"../../lib":697,d3:265}],649:[function(e,t,n){"use strict";var r=e("../../plots/font_attributes"),i=e("../color/attributes"),a=e("../../lib/extend").extendFlat,o=e("./button_attributes");o=a(o,{_isLinkedToArray:"button",description:["Sets the specifications for each buttons.","By default, a range selector comes with no buttons."].join(" ")}),t.exports={visible:{valType:"boolean",role:"info",description:["Determines whether or not this range selector is visible.","Note that range selectors are only available for x axes of","`type` set to or auto-typed to *date*."].join(" ")},buttons:o,x:{valType:"number",min:-2,max:3,role:"style",description:"Sets the x position (in normalized coordinates) of the range selector."},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",role:"info",description:["Sets the range selector's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,role:"style",description:"Sets the y position (in normalized coordinates) of the range selector."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",role:"info",description:["Sets the range selector's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},font:a({},r,{description:"Sets the font of the range selector button text."}),bgcolor:{valType:"color",dflt:i.lightLine,role:"style",description:"Sets the background color of the range selector buttons."},activecolor:{valType:"color",role:"style",description:"Sets the background color of the active range selector button."},bordercolor:{valType:"color",dflt:i.defaultLine,role:"style",description:"Sets the color of the border enclosing the range selector."},borderwidth:{valType:"number",min:0,dflt:0,role:"style",description:"Sets the width (in px) of the border enclosing the range selector."}}},{"../../lib/extend":693,"../../plots/font_attributes":756,"../color/attributes":585,"./button_attributes":650}],650:[function(e,t,n){"use strict";t.exports={step:{valType:"enumerated",role:"info",values:["month","year","day","hour","minute","second","all"],dflt:"month",description:["The unit of measurement that the `count` value will set the range by."].join(" ")},stepmode:{valType:"enumerated",role:"info",values:["backward","todate"],dflt:"backward",description:["Sets the range update mode.","If *backward*, the range update shifts the start of range","back *count* times *step* milliseconds.","If *todate*, the range update shifts the start of range","back to the first timestamp from *count* times","*step* milliseconds back.","For example, with `step` set to *year* and `count` set to *1*","the range update shifts the start of the range back to","January 01 of the current year.","Month and year *todate* are currently available only","for the built-in (Gregorian) calendar."].join(" ")},count:{valType:"number",role:"info",min:0,dflt:1,description:["Sets the number of steps to take to update the range.","Use with `step` to specify the update interval."].join(" ")},label:{valType:"string",role:"info",description:"Sets the text label to appear on the button."}}},{}],651:[function(e,t,n){"use strict";t.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},{}],652:[function(e,t,n){"use strict";function r(e,t,n){function r(e,t){return a.coerce(i,o,c,e,t)}for(var i,o,s=e.buttons||[],l=t.buttons=[],u=0;u<s.length;u++)if(i=s[u],o={},a.isPlainObject(i)){var d=r("step");"all"!==d&&(!n||"gregorian"===n||"month"!==d&&"year"!==d?r("stepmode"):o.stepmode="backward",r("count")),r("label"),o._index=u,l.push(o)}return l}function i(e,t,n){for(var r=n.filter(function(n){return t[n].anchor===e._id}),i=0,a=0;a<r.length;a++){var o=t[r[a]].domain;o&&(i=Math.max(o[1],i))}return[e.domain[0],i+l.yPad]}var a=e("../../lib"),o=e("../color"),s=e("./attributes"),c=e("./button_attributes"),l=e("./constants");t.exports=function(e,t,n,c,u){function d(e,t){return a.coerce(p,f,s,e,t)}var p=e.rangeselector||{},f=t.rangeselector={};if(d("visible",r(p,f,u).length>0)){var h=i(t,n,c);d("x",h[0]),d("y",h[1]),a.noneOrAll(e,t,["x","y"]),d("xanchor"),d("yanchor"),a.coerceFont(d,"font",n.font);var m=d("bgcolor");d("activecolor",o.contrast(m,l.lightAmount,l.darkAmount)),d("bordercolor"),d("borderwidth")}}},{"../../lib":697,"../color":586,"./attributes":649,"./button_attributes":650,"./constants":651}],653:[function(e,t,n){"use strict";function r(e){for(var t=v.list(e,"x",!0),n=[],r=0;r<t.length;r++){var i=t[r];i.rangeselector&&i.rangeselector.visible&&n.push(i)}return n}function i(e){return e._id}function a(e,t,n){if("all"===t.step)return!0===e.autorange;var r=Object.keys(n);return e.range[0]===n[r[0]]&&e.range[1]===n[r[1]]}function o(e,t,n){var r=e.selectAll("rect").data([0]);r.enter().append("rect").classed("selector-rect",!0),r.attr("shape-rendering","crispEdges"),r.attr({rx:y.rx,ry:y.ry}),r.call(h.stroke,t.bordercolor).call(h.fill,s(t,n)).style("stroke-width",t.borderwidth+"px")}function s(e,t){return t.isActive||t.isHovered?e.activecolor:e.bgcolor}function c(e,t,n){function r(e){g.convertToTspans(e)}var i=e.selectAll("text").data([0]);i.enter().append("text").classed("selector-text",!0).classed("user-select-none",!0),i.attr("text-anchor","middle"),i.call(m.font,t.font).text(l(n)).call(r)}function l(e){return e.label?e.label:"all"===e.step?"all":e.count+e.step.charAt(0)}function u(e,t,n,r){n.width=0,n.height=0;var i=n.borderwidth;t.each(function(){var e=d.select(this),t=e.select(".selector-text"),r=t.selectAll("tspan"),i=1.3*n.font.size,a=r[0].length||1,o=Math.max(i*a,16)+3;n.height=Math.max(n.height,o)}),t.each(function(){var e=d.select(this),t=e.select(".selector-rect"),r=e.select(".selector-text"),a=r.selectAll("tspan"),o=r.node()&&m.bBox(r.node()).width,s=1.3*n.font.size,c=a[0].length||1,l=Math.max(o+10,y.minButtonWidth);e.attr("transform","translate("+(i+n.width)+","+i+")"),t.attr({x:0,y:0,width:l,height:n.height});var u={x:l/2,y:n.height/2-(c-1)*s/2+3};r.attr(u),a.attr(u),n.width+=l+5}),t.selectAll("rect").attr("height",n.height);var a=e._fullLayout._size;n.lx=a.l+a.w*n.x,n.ly=a.t+a.h*(1-n.y);var o="left";b.isRightAnchor(n)&&(n.lx-=n.width,o="right"),b.isCenterAnchor(n)&&(n.lx-=n.width/2,o="center");var s="top";b.isBottomAnchor(n)&&(n.ly-=n.height,s="bottom"),b.isMiddleAnchor(n)&&(n.ly-=n.height/2,s="middle"),n.width=Math.ceil(n.width),n.height=Math.ceil(n.height),n.lx=Math.round(n.lx),n.ly=Math.round(n.ly),f.autoMargin(e,r+"-range-selector",{x:n.x,y:n.y,l:n.width*({right:1,center:.5}[o]||0),r:n.width*({left:1,center:.5}[o]||0),b:n.height*({top:1,middle:.5}[s]||0),t:n.height*({bottom:1,middle:.5}[s]||0)})}var d=e("d3"),p=e("../../plotly"),f=e("../../plots/plots"),h=e("../color"),m=e("../drawing"),g=e("../../lib/svg_text_utils"),v=e("../../plots/cartesian/axis_ids"),b=e("../legend/anchor_utils"),y=e("./constants"),x=e("./get_update_object");t.exports=function(e){var t=e._fullLayout,n=t._infolayer.selectAll(".rangeselector").data(r(e),i);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each(function(t){var n=d.select(this),r=t,i=r.rangeselector,s=n.selectAll("g.button").data(i.buttons);s.enter().append("g").classed("button",!0),s.exit().remove(),s.each(function(t){var n=d.select(this),s=x(r,t);t.isActive=a(r,t,s),n.call(o,i,t),n.call(c,i,t),n.on("click",function(){e._dragged||p.relayout(e,s)}),n.on("mouseover",function(){t.isHovered=!0,n.call(o,i,t)}),n.on("mouseout",function(){t.isHovered=!1,n.call(o,i,t)})}),u(e,s,i,r._name),n.attr("transform","translate("+i.lx+","+i.ly+")")})}},{"../../lib/svg_text_utils":714,"../../plotly":727,"../../plots/cartesian/axis_ids":735,"../../plots/plots":760,"../color":586,"../drawing":610,"../legend/anchor_utils":636,"./constants":651,"./get_update_object":654,d3:265}],654:[function(e,t,n){"use strict";function r(e,t){var n,r=e.range,a=new Date(e.r2l(r[1])),o=t.step,s=t.count;switch(t.stepmode){case"backward":n=e.l2r(+i.time[o].utc.offset(a,-s));break;case"todate":var c=i.time[o].utc.offset(a,-s);n=e.l2r(+i.time[o].utc.ceil(c))}return[n,r[1]]}var i=e("d3");t.exports=function(e,t){var n=e._name,i={};if("all"===t.step)i[n+".autorange"]=!0;else{var a=r(e,t);i[n+".range[0]"]=a[0],i[n+".range[1]"]=a[1]}return i}},{d3:265}],655:[function(e,t,n){"use strict";t.exports={moduleType:"component",name:"rangeselector",schema:{layout:{"xaxis.rangeselector":e("./attributes")}},layoutAttributes:e("./attributes"),handleDefaults:e("./defaults"),draw:e("./draw")}},{"./attributes":649,"./defaults":652,"./draw":653}],656:[function(e,t,n){"use strict";var r=e("../color/attributes");t.exports={bgcolor:{valType:"color",dflt:r.background,role:"style",description:"Sets the background color of the range slider."},bordercolor:{valType:"color",dflt:r.defaultLine,role:"style",description:"Sets the border color of the range slider."},borderwidth:{valType:"integer",dflt:0,min:0,role:"style",description:"Sets the border color of the range slider."},autorange:{valType:"boolean",dflt:!0,
64role:"style",description:["Determines whether or not the range slider range is","computed in relation to the input data.","If `range` is provided, then `autorange` is set to *false*."].join(" ")},range:{valType:"info_array",role:"info",items:[{valType:"any"},{valType:"any"}],description:["Sets the range of the range slider.","If not set, defaults to the full xaxis range.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},thickness:{valType:"number",dflt:.15,min:0,max:1,role:"style",description:["The height of the range slider as a fraction of the","total plot area height."].join(" ")},visible:{valType:"boolean",dflt:!0,role:"info",description:["Determines whether or not the range slider will be visible.","If visible, perpendicular axes will be set to `fixedrange`"].join(" ")}}},{"../color/attributes":585}],657:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/axes"),i=e("./constants");t.exports=function(e){for(var t=r.list(e,"x",!0),n=0;n<t.length;n++){var a=t[n],o=a[i.name];o&&o.visible&&o.autorange&&a._min.length&&a._max.length&&(o._input.autorange=!0,o._input.range=o.range=r.getAutoRange(a))}}},{"../../plots/cartesian/axes":732,"./constants":658}],658:[function(e,t,n){"use strict";t.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskColor:"rgba(0,0,0,0.4)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}},{}],659:[function(e,t,n){"use strict";var r=e("../../lib"),i=e("./attributes");t.exports=function(e,t,n){function a(e,t){return r.coerce(o,c,i,e,t)}if(e[n].rangeslider){r.isPlainObject(e[n].rangeslider)||(e[n].rangeslider={});var o=e[n].rangeslider,s=t[n],c=s.rangeslider={};if(a("visible")){if(a("bgcolor",t.plot_bgcolor),a("bordercolor"),a("borderwidth"),a("thickness"),a("autorange",!s.isValidRange(o.range)),a("range"),c.range){var l=c.range,u=s.range;l[0]=s.l2r(Math.min(s.r2l(l[0]),s.r2l(u[0]))),l[1]=s.l2r(Math.max(s.r2l(l[1]),s.r2l(u[1])))}s.cleanRange("rangeslider.range"),c._input=o}}}},{"../../lib":697,"./attributes":656}],660:[function(e,t,n){"use strict";function r(e){var t=_.list({_fullLayout:e},"x",!0),n=S.name,r=[];if(e._has("gl2d"))return r;for(var i=0;i<t.length;i++){var a=t[i];a[n]&&a[n].visible&&r.push(a)}return r}function i(e,t,n,r){var i=e.select("rect."+S.slideBoxClassName).node(),o=e.select("rect."+S.grabAreaMinClassName).node(),s=e.select("rect."+S.grabAreaMaxClassName).node();e.on("mousedown",function(){function c(c){var l,u,b,y=+c.clientX-p;switch(d){case i:b="ew-resize",l=h+y,u=g+y;break;case o:b="col-resize",l=h+y,u=g;break;case s:b="col-resize",l=h,u=g+y;break;default:b="ew-resize",l=f,u=f+y}if(u<l){var x=u;u=l,l=x}r._pixelMin=l,r._pixelMax=u,A(m.select(v),b),a(e,t,n,r)}function l(){v.removeEventListener("mousemove",c),v.removeEventListener("mouseup",l),b.removeElement(v)}var u=m.event,d=u.target,p=u.clientX,f=p-e.node().getBoundingClientRect().left,h=r.d2p(n._rl[0]),g=r.d2p(n._rl[1]),v=w.coverSlip();v.addEventListener("mousemove",c),v.addEventListener("mouseup",l)})}function a(e,t,n,r){function i(e){return n.l2r(b.constrain(e,r._rl[0],r._rl[1]))}var a=i(r.p2d(r._pixelMin)),o=i(r.p2d(r._pixelMax));window.requestAnimationFrame(function(){g.relayout(t,n._name+".range",[a,o])})}function o(e,t,n,r){function i(e){return b.constrain(e,0,r._width)}function a(e){return b.constrain(e,-o,r._width+o)}var o=S.handleWidth/2,s=i(r.d2p(n._rl[0])),c=i(r.d2p(n._rl[1]));e.select("rect."+S.slideBoxClassName).attr("x",s).attr("width",c-s),e.select("rect."+S.maskMinClassName).attr("width",s),e.select("rect."+S.maskMaxClassName).attr("x",c).attr("width",r._width-c);var l=Math.round(a(s-o))-.5,u=Math.round(a(c-o))+.5;e.select("g."+S.grabberMinClassName).attr("transform","translate("+l+",0.5)"),e.select("g."+S.grabberMaxClassName).attr("transform","translate("+u+",0.5)")}function s(e,t,n,r){var i=e.selectAll("rect."+S.bgClassName).data([0]);i.enter().append("rect").classed(S.bgClassName,!0).attr({x:0,y:0,"shape-rendering":"crispEdges"});var a=r.borderwidth%2==0?r.borderwidth:r.borderwidth-1,o=-r._offsetShift,s=y.crispRound(t,r.borderwidth);i.attr({width:r._width+a,height:r._height+a,transform:"translate("+o+","+o+")",fill:r.bgcolor,stroke:r.bordercolor,"stroke-width":s})}function c(e,t,n,r){var i=t._fullLayout,a=i._topdefs.selectAll("#"+r._clipId).data([0]);a.enter().append("clipPath").attr("id",r._clipId).append("rect").attr({x:0,y:0}),a.select("rect").attr({width:r._width,height:r._height})}function l(e,t,n,r){var i=_.getSubplots(t,n),a=t.calcdata,o=e.selectAll("g."+S.rangePlotClassName).data(i,b.identity);o.enter().append("g").attr("class",function(e){return S.rangePlotClassName+" "+e}).call(y.setClipUrl,r._clipId),o.order(),o.exit().remove();var s;o.each(function(e,i){var o=m.select(this),c=0===i,l=_.getFromId(t,e,"y"),d=l._name,p={data:[],layout:{xaxis:{type:n.type,domain:[0,1],range:r.range.slice(),calendar:n.calendar},width:r._width,height:r._height,margin:{t:0,b:0,l:0,r:0}}};p.layout[d]={type:l.type,domain:[0,1],range:l.range.slice(),calendar:l.calendar},v.supplyDefaults(p);var f=p._fullLayout.xaxis,h=p._fullLayout[d],g={id:e,plotgroup:o,xaxis:f,yaxis:h};c?s=g:(g.mainplot="xy",g.mainplotinfo=s),M.rangePlot(t,g,u(a,e))})}function u(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r],a=i[0].trace;a.xaxis+a.yaxis===t&&n.push(i)}return n}function d(e,t,n,r){var i=e.selectAll("rect."+S.maskMinClassName).data([0]);i.enter().append("rect").classed(S.maskMinClassName,!0).attr({x:0,y:0}).attr("shape-rendering","crispEdges"),i.attr("height",r._height).call(x.fill,S.maskColor);var a=e.selectAll("rect."+S.maskMaxClassName).data([0]);a.enter().append("rect").classed(S.maskMaxClassName,!0).attr("y",0).attr("shape-rendering","crispEdges"),a.attr("height",r._height).call(x.fill,S.maskColor)}function p(e,t,n,r){if(!t._context.staticPlot){var i=e.selectAll("rect."+S.slideBoxClassName).data([0]);i.enter().append("rect").classed(S.slideBoxClassName,!0).attr("y",0).attr("cursor",S.slideBoxCursor).attr("shape-rendering","crispEdges"),i.attr({height:r._height,fill:S.slideBoxFill})}}function f(e,t,n,r){var i=e.selectAll("g."+S.grabberMinClassName).data([0]);i.enter().append("g").classed(S.grabberMinClassName,!0);var a=e.selectAll("g."+S.grabberMaxClassName).data([0]);a.enter().append("g").classed(S.grabberMaxClassName,!0);var o={x:0,width:S.handleWidth,rx:S.handleRadius,fill:x.background,stroke:x.defaultLine,"stroke-width":S.handleStrokeWidth,"shape-rendering":"crispEdges"},s={y:Math.round(r._height/4),height:Math.round(r._height/2)},c=i.selectAll("rect."+S.handleMinClassName).data([0]);c.enter().append("rect").classed(S.handleMinClassName,!0).attr(o),c.attr(s);var l=a.selectAll("rect."+S.handleMaxClassName).data([0]);if(l.enter().append("rect").classed(S.handleMaxClassName,!0).attr(o),l.attr(s),!t._context.staticPlot){var u={width:S.grabAreaWidth,x:0,y:0,fill:S.grabAreaFill,cursor:S.grabAreaCursor},d=i.selectAll("rect."+S.grabAreaMinClassName).data([0]);d.enter().append("rect").classed(S.grabAreaMinClassName,!0).attr(u),d.attr("height",r._height);var p=a.selectAll("rect."+S.grabAreaMaxClassName).data([0]);p.enter().append("rect").classed(S.grabAreaMaxClassName,!0).attr(u),p.attr("height",r._height)}}function h(e){for(var t=e._fullLayout._pushmargin||{},n=Object.keys(t),r=0;r<n.length;r++){var i=n[r];-1!==i.indexOf(S.name)&&v.autoMargin(e,i)}}var m=e("d3"),g=e("../../plotly"),v=e("../../plots/plots"),b=e("../../lib"),y=e("../drawing"),x=e("../color"),M=e("../../plots/cartesian"),_=e("../../plots/cartesian/axes"),w=e("../dragelement"),A=e("../../lib/setcursor"),S=e("./constants");t.exports=function(e){function t(e){return e._name}var n=e._fullLayout,a=r(n),u=n._infolayer.selectAll("g."+S.containerClassName).data(a,t);u.enter().append("g").classed(S.containerClassName,!0).attr("pointer-events","all"),u.exit().each(function(e){var t=m.select(this),r=e[S.name];t.remove(),n._topdefs.select("#"+r._clipId).remove()}),u.exit().size()&&h(e),0!==a.length&&u.each(function(t){var r=m.select(this),a=t[S.name],u=n[_.id2name(t.anchor)],h=n.margin,g=n._size,b=t.domain,y=u.domain,x=(t._boundingBox||{}).height||0;a._id=S.name+t._id,a._clipId=a._id+"-"+n._uid,a._width=g.w*(b[1]-b[0]),a._height=(n.height-h.b-h.t)*a.thickness,a._offsetShift=Math.floor(a.borderwidth/2);var M=Math.round(h.l+g.w*b[0]),w=Math.round(h.t+g.h*(1-y[0])+x+a._offsetShift+S.extraPad);r.attr("transform","translate("+M+","+w+")");var A=t.r2l(a.range[0]),k=t.r2l(a.range[1]),$=k-A;a.p2d=function(e){return e/a._width*$+A},a.d2p=function(e){return(e-A)/$*a._width},a._rl=[A,k],r.call(s,e,t,a).call(c,e,t,a).call(l,e,t,a).call(d,e,t,a).call(p,e,t,a).call(f,e,t,a),i(r,e,t,a),o(r,e,t,a),v.autoMargin(e,a._id,{x:b[0],y:y[0],l:0,r:0,t:0,b:a._height+h.b+x,pad:S.extraPad+2*a._offsetShift})})}},{"../../lib":697,"../../lib/setcursor":712,"../../plotly":727,"../../plots/cartesian":742,"../../plots/cartesian/axes":732,"../../plots/plots":760,"../color":586,"../dragelement":607,"../drawing":610,"./constants":658,d3:265}],661:[function(e,t,n){"use strict";t.exports={moduleType:"component",name:"rangeslider",schema:{layout:{"xaxis.rangeslider":e("./attributes")}},layoutAttributes:e("./attributes"),handleDefaults:e("./defaults"),calcAutorange:e("./calc_autorange"),draw:e("./draw")}},{"./attributes":656,"./calc_autorange":657,"./defaults":659,"./draw":660}],662:[function(e,t,n){"use strict";var r=e("../annotations/attributes"),i=e("../../traces/scatter/attributes").line,a=e("../drawing/attributes").dash,o=e("../../lib/extend").extendFlat;t.exports={_isLinkedToArray:"shape",visible:{valType:"boolean",role:"info",dflt:!0,description:["Determines whether or not this shape is visible."].join(" ")},type:{valType:"enumerated",values:["circle","rect","path","line"],role:"info",description:["Specifies the shape type to be drawn.","If *line*, a line is drawn from (`x0`,`y0`) to (`x1`,`y1`)","If *circle*, a circle is drawn from","((`x0`+`x1`)/2, (`y0`+`y1`)/2))","with radius","(|(`x0`+`x1`)/2 - `x0`|, |(`y0`+`y1`)/2 -`y0`)|)","If *rect*, a rectangle is drawn linking","(`x0`,`y0`), (`x1`,`y0`), (`x1`,`y1`), (`x0`,`y1`), (`x0`,`y0`)","If *path*, draw a custom SVG path using `path`."].join(" ")},layer:{valType:"enumerated",values:["below","above"],dflt:"above",role:"info",description:"Specifies whether shapes are drawn below or above traces."},xref:o({},r.xref,{description:["Sets the shape's x coordinate axis.","If set to an x axis id (e.g. *x* or *x2*), the `x` position","refers to an x coordinate","If set to *paper*, the `x` position refers to the distance from","the left side of the plotting area in normalized coordinates","where *0* (*1*) corresponds to the left (right) side.","If the axis `type` is *log*, then you must take the","log of your desired range.","If the axis `type` is *date*, then you must convert","the date to unix time in milliseconds."].join(" ")}),x0:{valType:"any",role:"info",description:["Sets the shape's starting x position.","See `type` for more info."].join(" ")},x1:{valType:"any",role:"info",description:["Sets the shape's end x position.","See `type` for more info."].join(" ")},yref:o({},r.yref,{description:["Sets the annotation's y coordinate axis.","If set to an y axis id (e.g. *y* or *y2*), the `y` position","refers to an y coordinate","If set to *paper*, the `y` position refers to the distance from","the bottom of the plotting area in normalized coordinates","where *0* (*1*) corresponds to the bottom (top)."].join(" ")}),y0:{valType:"any",role:"info",description:["Sets the shape's starting y position.","See `type` for more info."].join(" ")},y1:{valType:"any",role:"info",description:["Sets the shape's end y position.","See `type` for more info."].join(" ")},path:{valType:"string",role:"info",description:["For `type` *path* - a valid SVG path but with the pixel values","replaced by data values. There are a few restrictions / quirks","only absolute instructions, not relative. So the allowed segments","are: M, L, H, V, Q, C, T, S, and Z","arcs (A) are not allowed because radius rx and ry are relative.","In the future we could consider supporting relative commands,","but we would have to decide on how to handle date and log axes.","Note that even as is, Q and C Bezier paths that are smooth on","linear axes may not be smooth on log, and vice versa.",'no chained "polybezier" commands - specify the segment type for',"each one.","On category axes, values are numbers scaled to the serial numbers","of categories because using the categories themselves there would","be no way to describe fractional positions","On data axes: because space and T are both normal components of path","strings, we can't use either to separate date from time parts.","Therefore we'll use underscore for this purpose:","2015-02-21_13:45:56.789"].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,role:"info",description:"Sets the opacity of the shape."},line:{color:i.color,width:i.width,dash:a,role:"info"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",role:"info",description:["Sets the color filling the shape's interior."].join(" ")}}},{"../../lib/extend":693,"../../traces/scatter/attributes":801,"../annotations/attributes":577,"../drawing/attributes":609}],663:[function(e,t,n){"use strict";function r(e,t,n,r,i){var a="category"===e.type?Number:e.d2c;if(void 0!==t)return[a(t),a(n)];if(r){var c,l,u,d,p,f=1/0,h=-1/0,m=r.match(o.segmentRE);for("date"===e.type&&(a=s.decodeDate(a)),c=0;c<m.length;c++)l=m[c],void 0!==(u=i[l.charAt(0)].drawn)&&(!(d=m[c].substr(1).match(o.paramRE))||d.length<u||(p=a(d[u]),p<f&&(f=p),p>h&&(h=p)));return h>=f?[f,h]:void 0}}var i=e("../../lib"),a=e("../../plots/cartesian/axes"),o=e("./constants"),s=e("./helpers");t.exports=function(e){var t=e._fullLayout,n=i.filterVisible(t.shapes);if(n.length&&e._fullData.length)for(var s=0;s<n.length;s++){var c,l,u=n[s],d=u.line.width/2;"paper"!==u.xref&&(c=a.getFromId(e,u.xref),(l=r(c,u.x0,u.x1,u.path,o.paramIsX))&&a.expand(c,l,{ppad:d})),"paper"!==u.yref&&(c=a.getFromId(e,u.yref),(l=r(c,u.y0,u.y1,u.path,o.paramIsY))&&a.expand(c,l,{ppad:d}))}}},{"../../lib":697,"../../plots/cartesian/axes":732,"./constants":664,"./helpers":667}],664:[function(e,t,n){"use strict";t.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},{}],665:[function(e,t,n){"use strict";var r=e("../../plots/array_container_defaults"),i=e("./shape_defaults");t.exports=function(e,t){r(e,t,{name:"shapes",handleItemDefaults:i})}},{"../../plots/array_container_defaults":729,"./shape_defaults":669}],666:[function(e,t,n){"use strict";function r(e){var t=e._fullLayout;t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._shapeSubplotLayers.selectAll("path").remove();for(var n=0;n<t.shapes.length;n++)t.shapes[n].visible&&i(e,n)}function i(e,t){function n(n){var r={"data-index":t,"fill-rule":"evenodd",d:o(e,i)},s=i.line.width?i.line.color:"rgba(0,0,0,0)",c=n.append("path").attr(r).style("opacity",i.opacity).call(p.stroke,s).call(p.fill,i.fillcolor).call(f.dashLine,i.line.dash,i.line.width),l=(i.xref+i.yref).replace(/paper/g,"");c.call(f.setClipUrl,l?"clip"+e._fullLayout._uid+l:null),e._context.editable&&a(e,c,i,t)}e._fullLayout._paper.selectAll('.shapelayer [data-index="'+t+'"]').remove();var r=(e.layout.shapes||[])[t],i=e._fullLayout.shapes[t];if(r&&!1!==i.visible)if("below"!==i.layer)n(e._fullLayout._shapeUpperLayer);else if("paper"===i.xref||"paper"===i.yref)n(e._fullLayout._shapeLowerLayer);else{var s=e._fullLayout._plots[i.xref+i.yref];if(s){var c=s.mainplot||s;n(c.shapelayer)}else n(e._fullLayout._shapeLowerLayer)}}function a(e,t,n,r){function i(e){var n=Y.right-Y.left,r=Y.bottom-Y.top,i=e.clientX-Y.left,a=e.clientY-Y.top,o=n>U&&r>V&&!e.shiftKey?h.getCursor(i/n,1-a/r):"move";m(t,o),X=o.split("-")[0]}function a(t){j=d.getFromId(e,n.xref),q=d.getFromId(e,n.yref),B=v.getDataToPixel(e,j),W=v.getDataToPixel(e,q,!0),H=v.getPixelToData(e,j),F=v.getPixelToData(e,q,!0);var a="shapes["+r+"]";"path"===n.type?(D=n.path,R=a+".path"):(g=B(n.x0),b=W(n.y0),y=B(n.x1),x=W(n.y1),M=a+".x0",_=a+".y0",w=a+".x1",A=a+".y1"),g<y?($=g,O=a+".x0",P="x0",T=y,z=a+".x1",I="x1"):($=y,O=a+".x1",P="x1",T=g,z=a+".x0",I="x0"),b<x?(S=b,C=a+".y0",L="y0",k=x,E=a+".y1",N="y1"):(S=x,C=a+".y1",L="y1",k=b,E=a+".y0",N="y0"),f={},i(t),G.moveFn="move"===X?u:p}function s(n){m(t),n&&l.relayout(e,f)}function u(r,i){if("path"===n.type){var a=function(e){return H(B(e)+r)};j&&"date"===j.type&&(a=v.encodeDate(a));var s=function(e){return F(W(e)+i)};q&&"date"===q.type&&(s=v.encodeDate(s)),n.path=c(D,a,s),f[R]=n.path}else f[M]=n.x0=H(g+r),f[_]=n.y0=F(b+i),f[w]=n.x1=H(y+r),f[A]=n.y1=F(x+i);t.attr("d",o(e,n))}function p(r,i){if("path"===n.type){var a=function(e){return H(B(e)+r)};j&&"date"===j.type&&(a=v.encodeDate(a));var s=function(e){return F(W(e)+i)};q&&"date"===q.type&&(s=v.encodeDate(s)),n.path=c(D,a,s),f[R]=n.path}else{var l=~X.indexOf("n")?S+i:S,u=~X.indexOf("s")?k+i:k,d=~X.indexOf("w")?$+r:$,p=~X.indexOf("e")?T+r:T;u-l>V&&(f[C]=n[L]=F(l),f[E]=n[N]=F(u)),p-d>U&&(f[O]=n[P]=H(d),f[z]=n[I]=H(p))}t.attr("d",o(e,n))}var f,g,b,y,x,M,_,w,A,S,k,$,T,C,E,O,z,L,N,P,I,D,R,j,q,B,W,H,F,X,U=10,V=10,G={setCursor:i,element:t.node(),prepFn:a,doneFn:s},Y=G.element.getBoundingClientRect();h.init(G)}function o(e,t){var n,r,i,a,o=t.type,c=d.getFromId(e,t.xref),l=d.getFromId(e,t.yref),u=e._fullLayout._size;if(c?(n=v.shapePositionToRange(c),r=function(e){return c._offset+c.r2p(n(e,!0))}):r=function(e){return u.l+u.w*e},l?(i=v.shapePositionToRange(l),a=function(e){return l._offset+l.r2p(i(e,!0))}):a=function(e){return u.t+u.h*(1-e)},"path"===o)return c&&"date"===c.type&&(r=v.decodeDate(r)),l&&"date"===l.type&&(a=v.decodeDate(a)),s(t.path,r,a);var p=r(t.x0),f=r(t.x1),h=a(t.y0),m=a(t.y1);if("line"===o)return"M"+p+","+h+"L"+f+","+m;if("rect"===o)return"M"+p+","+h+"H"+f+"V"+m+"H"+p+"Z";var g=(p+f)/2,b=(h+m)/2,y=Math.abs(g-p),x=Math.abs(b-h),M="A"+y+","+x,_=g+y+","+b;return"M"+_+M+" 0 1,1 "+g+","+(b-x)+M+" 0 0,1 "+_+"Z"}function s(e,t,n){return e.replace(g.segmentRE,function(e){var r=0,i=e.charAt(0),a=g.paramIsX[i],o=g.paramIsY[i],s=g.numParams[i],c=e.substr(1).replace(g.paramRE,function(e){return a[r]?e=t(e):o[r]&&(e=n(e)),r++,r>s&&(e="X"),e});return r>s&&(c=c.replace(/[\s,]*X.*/,""),u.log("Ignoring extra params in segment "+e)),i+c})}function c(e,t,n){return e.replace(g.segmentRE,function(e){var r=0,i=e.charAt(0),a=g.paramIsX[i],o=g.paramIsY[i],s=g.numParams[i];return i+e.substr(1).replace(g.paramRE,function(e){return r>=s?e:(a[r]?e=t(e):o[r]&&(e=n(e)),r++,e)})})}var l=e("../../plotly"),u=e("../../lib"),d=e("../../plots/cartesian/axes"),p=e("../color"),f=e("../drawing"),h=e("../dragelement"),m=e("../../lib/setcursor"),g=e("./constants"),v=e("./helpers");t.exports={draw:r,drawOne:i}},{"../../lib":697,"../../lib/setcursor":712,"../../plotly":727,"../../plots/cartesian/axes":732,"../color":586,"../dragelement":607,"../drawing":610,"./constants":664,"./helpers":667}],667:[function(e,t,n){"use strict";n.rangeToShapePosition=function(e){return"log"===e.type?e.r2d:function(e){return e}},n.shapePositionToRange=function(e){return"log"===e.type?e.d2r:function(e){return e}},n.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}},n.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}},n.getDataToPixel=function(e,t,r){var i,a=e._fullLayout._size;if(t){var o=n.shapePositionToRange(t);i=function(e){return t._offset+t.r2p(o(e,!0))},"date"===t.type&&(i=n.decodeDate(i))}else i=r?function(e){return a.t+a.h*(1-e)}:function(e){return a.l+a.w*e};return i},n.getPixelToData=function(e,t,r){var i,a=e._fullLayout._size;if(t){var o=n.rangeToShapePosition(t);i=function(e){return o(t.p2r(e-t._offset))}}else i=r?function(e){return 1-(e-a.t)/a.h}:function(e){return(e-a.l)/a.w};return i}},{}],668:[function(e,t,n){"use strict";var r=e("./draw");t.exports={moduleType:"component",name:"shapes",layoutAttributes:e("./attributes"),supplyLayoutDefaults:e("./defaults"),calcAutorange:e("./calc_autorange"),draw:r.draw,drawOne:r.drawOne}},{"./attributes":662,"./calc_autorange":663,"./defaults":665,"./draw":666}],669:[function(e,t,n){"use strict";var r=e("../../lib"),i=e("../../plots/cartesian/axes"),a=e("./attributes"),o=e("./helpers");t.exports=function(e,t,n,s,c){function l(n,i){return r.coerce(e,t,a,n,i)}if(s=s||{},c=c||{},!l("visible",!c.itemIsNotPlainObject))return t;l("layer"),l("opacity"),l("fillcolor"),l("line.color"),l("line.width"),l("line.dash");for(var u=e.path?"path":"rect",d=l("type",u),p=["x","y"],f=0;f<2;f++){var h=p[f],m={_fullLayout:n},g=i.coerceRef(e,t,m,h,"","paper");if("path"!==d){var v,b,y;"paper"!==g?(v=i.getFromId(m,g),y=o.rangeToShapePosition(v),b=o.shapePositionToRange(v)):b=y=r.identity;var x=h+"0",M=h+"1",_=e[x],w=e[M];e[x]=b(e[x],!0),e[M]=b(e[M],!0),i.coercePosition(t,m,l,g,x,.25),i.coercePosition(t,m,l,g,M,.75),t[x]=y(t[x]),t[M]=y(t[M]),e[x]=_,e[M]=w}}return"path"===d?l("path"):r.noneOrAll(e,t,["x0","x1","y0","y1"]),t}},{"../../lib":697,"../../plots/cartesian/axes":732,"./attributes":662,"./helpers":667}],670:[function(e,t,n){"use strict";var r=e("../../plots/font_attributes"),i=e("../../plots/pad_attributes"),a=e("../../lib/extend").extendFlat,o=e("../../lib/extend").extendDeep,s=e("../../plots/animation_attributes"),c=e("./constants"),l={_isLinkedToArray:"step",method:{valType:"enumerated",values:["restyle","relayout","animate","update"],dflt:"restyle",role:"info",description:["Sets the Plotly method to be called when the slider value is changed."].join(" ")},args:{valType:"info_array",role:"info",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets the arguments values to be passed to the Plotly","method set in `method` on slide."].join(" ")},label:{valType:"string",role:"info",description:"Sets the text label to appear on the slider"},value:{valType:"string",role:"info",description:["Sets the value of the slider step, used to refer to the step programatically.","Defaults to the slider label if not provided."].join(" ")}};t.exports={_isLinkedToArray:"slider",visible:{valType:"boolean",role:"info",dflt:!0,description:["Determines whether or not the slider is visible."].join(" ")},active:{valType:"number",role:"info",min:0,dflt:0,description:["Determines which button (by index starting from 0) is","considered active."].join(" ")},steps:l,lenmode:{valType:"enumerated",values:["fraction","pixels"],role:"info",dflt:"fraction",description:["Determines whether this slider length","is set in units of plot *fraction* or in *pixels.","Use `len` to set the value."].join(" ")},len:{valType:"number",min:0,dflt:1,role:"style",description:["Sets the length of the slider","This measure excludes the padding of both ends.","That is, the slider's length is this length minus the","padding on both ends."].join(" ")},x:{valType:"number",min:-2,max:3,dflt:0,role:"style",description:"Sets the x position (in normalized coordinates) of the slider."},pad:o({},i,{description:"Set the padding of the slider component along each side."},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",role:"info",description:["Sets the slider's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:0,role:"style",description:"Sets the y position (in normalized coordinates) of the slider."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top",role:"info",description:["Sets the slider's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},transition:{duration:{valType:"number",role:"info",min:0,dflt:150,description:"Sets the duration of the slider transition"},easing:{valType:"enumerated",values:s.transition.easing.values,role:"info",dflt:"cubic-in-out",description:"Sets the easing function of the slider transition"}},currentvalue:{visible:{valType:"boolean",role:"info",dflt:!0,description:["Shows the currently-selected value above the slider."].join(" ")},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",role:"info",description:["The alignment of the value readout relative to the length of the slider."].join(" ")},offset:{valType:"number",dflt:10,role:"info",description:["The amount of space, in pixels, between the current value label","and the slider."].join(" ")},prefix:{valType:"string",role:"info",description:"When currentvalue.visible is true, this sets the prefix of the label."},suffix:{valType:"string",role:"info",description:"When currentvalue.visible is true, this sets the suffix of the label."},font:a({},r,{description:"Sets the font of the current value label text."})},font:a({},r,{description:"Sets the font of the slider step labels."}),activebgcolor:{valType:"color",role:"style",dflt:c.gripBgActiveColor,description:["Sets the background color of the slider grip","while dragging."].join(" ")},bgcolor:{valType:"color",role:"style",dflt:c.railBgColor,description:"Sets the background color of the slider."},bordercolor:{valType:"color",dflt:c.railBorderColor,role:"style",description:"Sets the color of the border enclosing the slider."},borderwidth:{valType:"number",min:0,dflt:c.railBorderWidth,role:"style",description:"Sets the width (in px) of the border enclosing the slider."},ticklen:{valType:"number",min:0,dflt:c.tickLength,role:"style",description:"Sets the length in pixels of step tick marks"},tickcolor:{valType:"color",dflt:c.tickColor,role:"style",description:"Sets the color of the border enclosing the slider."},tickwidth:{valType:"number",min:0,dflt:1,role:"style",description:"Sets the tick width (in px)."},minorticklen:{valType:"number",min:0,dflt:c.minorTickLength,role:"style",description:"Sets the length in pixels of minor step tick marks"}}},{"../../lib/extend":693,"../../plots/animation_attributes":728,"../../plots/font_attributes":756,"../../plots/pad_attributes":759,"./constants":671}],671:[function(e,t,n){"use strict";t.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,fontSizeToHeight:1.3,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},{}],672:[function(e,t,n){"use strict";function r(e,t,n){function r(n,r){return a.coerce(e,t,s,n,r)}r("visible",i(e,t).length>0)&&(r("active"),r("x"),r("y"),a.noneOrAll(e,t,["x","y"]),r("xanchor"),r("yanchor"),r("len"),r("lenmode"),r("pad.t"),r("pad.r"),r("pad.b"),r("pad.l"),a.coerceFont(r,"font",n.font),r("currentvalue.visible")&&(r("currentvalue.xanchor"),r("currentvalue.prefix"),r("currentvalue.suffix"),r("currentvalue.offset"),a.coerceFont(r,"currentvalue.font",t.font)),r("transition.duration"),r("transition.easing"),r("bgcolor"),r("activebgcolor"),r("bordercolor"),r("borderwidth"),r("ticklen"),r("tickwidth"),r("tickcolor"),r("minorticklen"))}function i(e,t){function n(e,t){return a.coerce(r,i,u,e,t)}for(var r,i,o=e.steps||[],s=t.steps=[],c=0;c<o.length;c++)r=o[c],i={},a.isPlainObject(r)&&Array.isArray(r.args)&&(n("method"),n("args"),n("label","step-"+c),n("value",i.label),s.push(i));return s}var a=e("../../lib"),o=e("../../plots/array_container_defaults"),s=e("./attributes"),c=e("./constants"),l=c.name,u=s.steps;t.exports=function(e,t){o(e,t,{name:l,handleItemDefaults:r})}},{"../../lib":697,"../../plots/array_container_defaults":729,"./attributes":670,"./constants":671}],673:[function(e,t,n){"use strict";function r(e){for(var t=e[T.name],n=[],r=0;r<t.length;r++){var i=t[r];i.visible&&i.steps.length&&n.push(i)}return n}function i(e){return e._index}function a(e,t){var n=S.tester.selectAll("g."+T.labelGroupClass).data(t.steps);n.enter().append("g").classed(T.labelGroupClass,!0);var r=0,i=0;if(n.each(function(e){var n=_.select(this),a=l(n,{step:e},t),o=a.node()&&S.bBox(a.node()).width||0;i=a.node()&&S.bBox(a.node()).height||0,r=Math.max(r,o)}),n.remove(),t.inputAreaWidth=Math.max(T.railWidth,T.gripHeight),t.currentValueMaxWidth=0,t.currentValueHeight=0,t.currentValueTotalHeight=0,t.currentvalue.visible){var a=S.tester.append("g");n.each(function(e){var n=s(a,t,e.label),r=n.node()&&S.bBox(n.node())||{width:0,height:0};t.currentValueMaxWidth=Math.max(t.currentValueMaxWidth,Math.ceil(r.width)),t.currentValueHeight=Math.max(t.currentValueHeight,Math.ceil(r.height))}),t.currentValueTotalHeight=t.currentValueHeight+t.currentvalue.offset,a.remove()}var o=e._fullLayout._size;t.lx=o.l+o.w*t.x,t.ly=o.t+o.h*(1-t.y),"fraction"===t.lenmode?t.outerLength=Math.round(o.w*t.len):t.outerLength=t.len,t.lenPad=Math.round(.5*T.gripWidth),t.inputAreaStart=0,t.inputAreaLength=Math.round(t.outerLength-t.pad.l-t.pad.r);var c=t.inputAreaLength-2*T.stepInset,u=c/(t.steps.length-1),d=r+T.labelPadding;t.labelStride=Math.max(1,Math.ceil(d/u)),t.labelHeight=i,t.height=t.currentValueTotalHeight+T.tickOffset+t.ticklen+T.labelOffset+t.labelHeight+t.pad.t+t.pad.b;var p="left";$.isRightAnchor(t)&&(t.lx-=t.outerLength,p="right"),$.isCenterAnchor(t)&&(t.lx-=t.outerLength/2,p="center");var f="top";$.isBottomAnchor(t)&&(t.ly-=t.height,f="bottom"),$.isMiddleAnchor(t)&&(t.ly-=t.height/2,f="middle"),t.outerLength=Math.ceil(t.outerLength),t.height=Math.ceil(t.height),t.lx=Math.round(t.lx),t.ly=Math.round(t.ly),w.autoMargin(e,T.autoMarginIdRoot+t._index,{x:t.x,y:t.y,l:t.outerLength*({right:1,center:.5}[p]||0),r:t.outerLength*({left:1,center:.5}[p]||0),b:t.height*({top:1,middle:.5}[f]||0),t:t.height*({bottom:1,middle:.5}[f]||0)})}function o(e,t,n){n.active>=n.steps.length&&(n.active=0),t.call(s,n).call(x,n).call(u,n).call(h,n).call(y,e,n).call(c,e,n),S.setTranslate(t,n.lx+n.pad.l,n.ly+n.pad.t),t.call(g,n,n.active/(n.steps.length-1),!1),t.call(s,n)}function s(e,t,n){if(t.currentvalue.visible){var r,i,a=e.selectAll("text").data([0]);switch(t.currentvalue.xanchor){
65case"right":r=t.inputAreaLength-T.currentValueInset-t.currentValueMaxWidth,i="left";break;case"center":r=.5*t.inputAreaLength,i="middle";break;default:r=T.currentValueInset,i="left"}a.enter().append("text").classed(T.labelClass,!0).classed("user-select-none",!0).attr("text-anchor",i);var o=t.currentvalue.prefix?t.currentvalue.prefix:"";if("string"==typeof n)o+=n;else{o+=t.steps[t.active].label}return t.currentvalue.suffix&&(o+=t.currentvalue.suffix),a.call(S.font,t.currentvalue.font).text(o).call(k.convertToTspans),S.setTranslate(a,r,t.currentValueHeight),a}}function c(e,t,n){var r=e.selectAll("rect."+T.gripRectClass).data([0]);r.enter().append("rect").classed(T.gripRectClass,!0).call(f,t,e,n).style("pointer-events","all"),r.attr({width:T.gripWidth,height:T.gripHeight,rx:T.gripRadius,ry:T.gripRadius}).call(A.stroke,n.bordercolor).call(A.fill,n.bgcolor).style("stroke-width",n.borderwidth+"px")}function l(e,t,n){var r=e.selectAll("text").data([0]);return r.enter().append("text").classed(T.labelClass,!0).classed("user-select-none",!0).attr("text-anchor","middle"),r.call(S.font,n.font).text(t.step.label).call(k.convertToTspans),r}function u(e,t){var n=e.selectAll("g."+T.labelsClass).data([0]);n.enter().append("g").classed(T.labelsClass,!0);var r=n.selectAll("g."+T.labelGroupClass).data(t.labelSteps);r.enter().append("g").classed(T.labelGroupClass,!0),r.exit().remove(),r.each(function(e){var n=_.select(this);n.call(l,e,t),S.setTranslate(n,v(t,e.fraction),T.tickOffset+t.ticklen+t.labelHeight+T.labelOffset+t.currentValueTotalHeight)})}function d(e,t,n,r,i){var a=Math.round(r*(n.steps.length-1));a!==n.active&&p(e,t,n,a,!0,i)}function p(e,t,n,r,i,a){var o=n.active;n._input.active=n.active=r;var c=n.steps[n.active];t.call(g,n,n.active/(n.steps.length-1),a),t.call(s,n),e.emit("plotly_sliderchange",{slider:n,step:n.steps[n.active],interaction:i,previousActive:o}),c&&c.method&&i&&(t._nextMethod?(t._nextMethod.step=c,t._nextMethod.doCallback=i,t._nextMethod.doTransition=a):(t._nextMethod={step:c,doCallback:i,doTransition:a},t._nextMethodRaf=window.requestAnimationFrame(function(){var n=t._nextMethod.step;n.method&&(w.executeAPICommand(e,n.method,n.args),t._nextMethod=null,t._nextMethodRaf=null)})))}function f(e,t,n){function r(){return n.data()[0]}var i=n.node(),a=_.select(t);e.on("mousedown",function(){var e=r();t.emit("plotly_sliderstart",{slider:e});var o=n.select("."+T.gripRectClass);_.event.stopPropagation(),_.event.preventDefault(),o.call(A.fill,e.activebgcolor);var s=b(e,_.mouse(i)[0]);d(t,n,e,s,!0),e._dragging=!0,a.on("mousemove",function(){var e=r(),a=b(e,_.mouse(i)[0]);d(t,n,e,a,!1)}),a.on("mouseup",function(){var e=r();e._dragging=!1,o.call(A.fill,e.bgcolor),a.on("mouseup",null),a.on("mousemove",null),t.emit("plotly_sliderend",{slider:e,step:e.steps[e.active]})})})}function h(e,t){var n=e.selectAll("rect."+T.tickRectClass).data(t.steps);n.enter().append("rect").classed(T.tickRectClass,!0),n.exit().remove(),n.attr({width:t.tickwidth+"px","shape-rendering":"crispEdges"}),n.each(function(e,n){var r=n%t.labelStride==0,i=_.select(this);i.attr({height:r?t.ticklen:t.minorticklen}).call(A.fill,t.tickcolor),S.setTranslate(i,v(t,n/(t.steps.length-1))-.5*t.tickwidth,(r?T.tickOffset:T.minorTickOffset)+t.currentValueTotalHeight)})}function m(e){e.labelSteps=[];for(var t=e.steps.length,n=0;n<t;n+=e.labelStride)e.labelSteps.push({fraction:n/(t-1),step:e.steps[n]})}function g(e,t,n,r){var i=e.select("rect."+T.gripRectClass),a=v(t,n);if(!t._invokingCommand){var o=i;r&&t.transition.duration>0&&(o=o.transition().duration(t.transition.duration).ease(t.transition.easing)),o.attr("transform","translate("+(a-.5*T.gripWidth)+","+t.currentValueTotalHeight+")")}}function v(e,t){return e.inputAreaStart+T.stepInset+(e.inputAreaLength-2*T.stepInset)*Math.min(1,Math.max(0,t))}function b(e,t){return Math.min(1,Math.max(0,(t-T.stepInset-e.inputAreaStart)/(e.inputAreaLength-2*T.stepInset-2*e.inputAreaStart)))}function y(e,t,n){var r=e.selectAll("rect."+T.railTouchRectClass).data([0]);r.enter().append("rect").classed(T.railTouchRectClass,!0).call(f,t,e,n).style("pointer-events","all"),r.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,T.tickOffset+n.ticklen+n.labelHeight)}).call(A.fill,n.bgcolor).attr("opacity",0),S.setTranslate(r,0,n.currentValueTotalHeight)}function x(e,t){var n=e.selectAll("rect."+T.railRectClass).data([0]);n.enter().append("rect").classed(T.railRectClass,!0);var r=t.inputAreaLength-2*T.railInset;n.attr({width:r,height:T.railWidth,rx:T.railRadius,ry:T.railRadius,"shape-rendering":"crispEdges"}).call(A.stroke,t.bordercolor).call(A.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),S.setTranslate(n,T.railInset,.5*(t.inputAreaWidth-T.railWidth)+t.currentValueTotalHeight)}function M(e){for(var t=e._fullLayout._pushmargin||{},n=Object.keys(t),r=0;r<n.length;r++){var i=n[r];-1!==i.indexOf(T.autoMarginIdRoot)&&w.autoMargin(e,i)}}var _=e("d3"),w=e("../../plots/plots"),A=e("../color"),S=e("../drawing"),k=e("../../lib/svg_text_utils"),$=e("../legend/anchor_utils"),T=e("./constants");t.exports=function(e){var t=e._fullLayout,n=r(t),s=t._infolayer.selectAll("g."+T.containerClassName).data(n.length>0?[0]:[]);if(s.enter().append("g").classed(T.containerClassName,!0).style("cursor","ew-resize"),s.exit().remove(),s.exit().size()&&M(e),0!==n.length){var c=s.selectAll("g."+T.groupClassName).data(n,i);c.enter().append("g").classed(T.groupClassName,!0),c.exit().each(function(t){_.select(this).remove(),t._commandObserver.remove(),delete t._commandObserver,w.autoMargin(e,T.autoMarginIdRoot+t._index)});for(var l=0;l<n.length;l++){var u=n[l];a(e,u)}c.each(function(t){if(!(t.steps.length<2)){var n=_.select(this);m(t),w.manageCommandObserver(e,t,t.steps,function(t){var r=n.data()[0];r.active!==t.index&&(r._dragging||p(e,n,r,t.index,!1,!0))}),o(e,_.select(this),t)}})}}},{"../../lib/svg_text_utils":714,"../../plots/plots":760,"../color":586,"../drawing":610,"../legend/anchor_utils":636,"./constants":671,d3:265}],674:[function(e,t,n){"use strict";var r=e("./constants");t.exports={moduleType:"component",name:r.name,layoutAttributes:e("./attributes"),supplyLayoutDefaults:e("./defaults"),draw:e("./draw")}},{"./attributes":670,"./constants":671,"./defaults":672,"./draw":673}],675:[function(e,t,n){"use strict";var r=e("d3"),i=e("fast-isnumeric"),a=e("../../plotly"),o=e("../../plots/plots"),s=e("../../lib"),c=e("../drawing"),l=e("../color"),u=e("../../lib/svg_text_utils"),d=e("../../constants/interactions");(t.exports={}).draw=function(e,t,n){function p(e){s.syncOrAsync([f,h],e)}function f(t){return t.attr("transform",M?"rotate("+[M.rotate,x.x,x.y]+") translate(0, "+M.offset+")":null),t.style({"font-family":A,"font-size":r.round(S,2)+"px",fill:l.rgb(k),opacity:$*l.opacity(k),"font-weight":o.fontWeight}).attr(x).call(u.convertToTspans).attr(x),t.selectAll("tspan.line").attr(x),o.previousPromises(e)}function h(e){var t=r.select(e.node().parentNode);if(y&&y.selection&&y.side&&C){t.attr("transform",null);var n=0,a={left:"right",right:"left",top:"bottom",bottom:"top"}[y.side],o=-1!==["left","top"].indexOf(y.side)?-1:1,l=i(y.pad)?y.pad:2,u=c.bBox(t.node()),d={left:0,top:0,right:w.width,bottom:w.height},p=y.maxShift||(d[y.side]-u[y.side])*("left"===y.side||"top"===y.side?-1:1);if(p<0)n=p;else{var f=y.offsetLeft||0,h=y.offsetTop||0;u.left-=f,u.right-=f,u.top-=h,u.bottom-=h,y.selection.each(function(){var e=c.bBox(this);s.bBoxIntersect(u,e,l)&&(n=Math.max(n,o*(e[y.side]-u[a])+l))}),n=Math.min(p,n)}if(n>0||p<0){var m={left:[-n,0],right:[n,0],top:[0,-n],bottom:[0,n]}[y.side];t.attr("transform","translate("+m+")")}}}var m=n.propContainer,g=n.propName,v=n.traceIndex,b=n.dfltName,y=n.avoid||{},x=n.attributes,M=n.transform,_=n.containerGroup,w=e._fullLayout,A=m.titlefont.family,S=m.titlefont.size,k=m.titlefont.color,$=1,T=!1,C=m.title.trim();""===C&&($=0),C.match(/Click to enter .+ title/)&&($=.2,T=!0),_||(_=w._infolayer.selectAll(".g-"+t).data([0]),_.enter().append("g").classed("g-"+t,!0));var E=_.selectAll("text").data([0]);E.enter().append("text"),E.text(C).attr("class",t),E.attr({"data-unformatted":C}).call(p);var O="Click to enter "+b+" title";e._context.editable?(C?E.on(".opacity",null):function(){$=0,T=!0,C=O,E.attr({"data-unformatted":C}).text(C).on("mouseover.opacity",function(){r.select(this).transition().duration(d.SHOW_PLACEHOLDER).style("opacity",1)}).on("mouseout.opacity",function(){r.select(this).transition().duration(d.HIDE_PLACEHOLDER).style("opacity",0)})}(),E.call(u.makeEditable).on("edit",function(t){void 0!==v?a.restyle(e,g,t,v):a.relayout(e,g,t)}).on("cancel",function(){this.text(this.attr("data-unformatted")).call(p)}).on("input",function(e){this.text(e||" ").attr(x).selectAll("tspan.line").attr(x)})):C&&!C.match(/Click to enter .+ title/)||E.remove(),E.classed("js-placeholder",T)}},{"../../constants/interactions":682,"../../lib":697,"../../lib/svg_text_utils":714,"../../plotly":727,"../../plots/plots":760,"../color":586,"../drawing":610,d3:265,"fast-isnumeric":267}],676:[function(e,t,n){"use strict";var r=e("../../plots/font_attributes"),i=e("../color/attributes"),a=e("../../lib/extend").extendFlat,o=e("../../plots/pad_attributes"),s={_isLinkedToArray:"button",method:{valType:"enumerated",values:["restyle","relayout","animate","update"],dflt:"restyle",role:"info",description:["Sets the Plotly method to be called on click."].join(" ")},args:{valType:"info_array",role:"info",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}],description:["Sets the arguments values to be passed to the Plotly","method set in `method` on click."].join(" ")},label:{valType:"string",role:"info",dflt:"",description:"Sets the text label to appear on the button."}};t.exports={_isLinkedToArray:"updatemenu",_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean",role:"info",description:["Determines whether or not the update menu is visible."].join(" ")},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown",role:"info",description:["Determines whether the buttons are accessible via a dropdown menu","or whether the buttons are stacked horizontally or vertically"].join(" ")},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down",role:"info",description:["Determines the direction in which the buttons are laid out, whether","in a dropdown menu or a row/column of buttons. For `left` and `up`,","the buttons will still appear in left-to-right or top-to-bottom order","respectively."].join(" ")},active:{valType:"integer",role:"info",min:-1,dflt:0,description:["Determines which button (by index starting from 0) is","considered active."].join(" ")},showactive:{valType:"boolean",role:"info",dflt:!0,description:"Highlights active dropdown item or active button if true."},buttons:s,x:{valType:"number",min:-2,max:3,dflt:-.05,role:"style",description:"Sets the x position (in normalized coordinates) of the update menu."},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right",role:"info",description:["Sets the update menu's horizontal position anchor.","This anchor binds the `x` position to the *left*, *center*","or *right* of the range selector."].join(" ")},y:{valType:"number",min:-2,max:3,dflt:1,role:"style",description:"Sets the y position (in normalized coordinates) of the update menu."},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top",role:"info",description:["Sets the update menu's vertical position anchor","This anchor binds the `y` position to the *top*, *middle*","or *bottom* of the range selector."].join(" ")},pad:a({},o,{description:"Sets the padding around the buttons or dropdown menu."}),font:a({},r,{description:"Sets the font of the update menu button text."}),bgcolor:{valType:"color",role:"style",description:"Sets the background color of the update menu buttons."},bordercolor:{valType:"color",dflt:i.borderLine,role:"style",description:"Sets the color of the border enclosing the update menu."},borderwidth:{valType:"number",min:0,dflt:1,role:"style",description:"Sets the width (in px) of the border enclosing the update menu."}}},{"../../lib/extend":693,"../../plots/font_attributes":756,"../../plots/pad_attributes":759,"../color/attributes":585}],677:[function(e,t,n){"use strict";t.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,fontSizeToHeight:1.3,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF"}},{}],678:[function(e,t,n){"use strict";function r(e,t,n){function r(n,r){return a.coerce(e,t,s,n,r)}r("visible",i(e,t).length>0)&&(r("active"),r("direction"),r("type"),r("showactive"),r("x"),r("y"),a.noneOrAll(e,t,["x","y"]),r("xanchor"),r("yanchor"),r("pad.t"),r("pad.r"),r("pad.b"),r("pad.l"),a.coerceFont(r,"font",n.font),r("bgcolor",n.paper_bgcolor),r("bordercolor"),r("borderwidth"))}function i(e,t){function n(e,t){return a.coerce(r,i,u,e,t)}for(var r,i,o=e.buttons||[],s=t.buttons=[],c=0;c<o.length;c++)r=o[c],i={},a.isPlainObject(r)&&Array.isArray(r.args)&&(n("method"),n("args"),n("label"),i._index=c,s.push(i));return s}var a=e("../../lib"),o=e("../../plots/array_container_defaults"),s=e("./attributes"),c=e("./constants"),l=c.name,u=s.buttons;t.exports=function(e,t){o(e,t,{name:l,handleItemDefaults:r})}},{"../../lib":697,"../../plots/array_container_defaults":729,"./attributes":676,"./constants":677}],679:[function(e,t,n){"use strict";function r(e){for(var t=e[T.name],n=[],r=0;r<t.length;r++){var i=t[r];i.visible&&n.push(i)}return n}function i(e){return e._index}function a(e){return-1==+e.attr(T.menuIndexAttrName)}function o(e,t){return+e.attr(T.menuIndexAttrName)===t._index}function s(e,t,n,r,i,a,o,s){t._input.active=t.active=o,"buttons"===t.type?l(e,r,null,null,t):"dropdown"===t.type&&(i.attr(T.menuIndexAttrName,"-1"),c(e,r,i,a,t),s||l(e,r,i,a,t))}function c(e,t,n,r,i){var a=t.selectAll("g."+T.headerClassName).data([0]);a.enter().append("g").classed(T.headerClassName,!0).style("pointer-events","all");var s=i.active,c=i.buttons[s]||T.blankHeaderOpts,u={y:i.pad.t,yPad:0,x:i.pad.l,xPad:0,index:0},d={width:i.headerWidth,height:i.headerHeight};a.call(p,i,c).call(y,i,u,d);var f=t.selectAll("text."+T.headerArrowClassName).data([0]);f.enter().append("text").classed(T.headerArrowClassName,!0).classed("user-select-none",!0).attr("text-anchor","end").call(S.font,i.font).text("▼"),f.attr({x:i.headerWidth-T.arrowOffsetX+i.pad.l,y:i.headerHeight/2+T.textOffsetY+i.pad.t}),a.on("click",function(){n.call(x),n.attr(T.menuIndexAttrName,o(n,i)?-1:String(i._index)),l(e,t,n,r,i)}),a.on("mouseover",function(){a.call(g)}),a.on("mouseout",function(){a.call(v,i)}),S.setTranslate(t,i.lx,i.ly)}function l(e,t,n,r,i){n||(n=t,n.attr("pointer-events","all"));var o=a(n)&&"buttons"!==i.type?[]:i.buttons,c="dropdown"===i.type?T.dropdownButtonClassName:T.buttonClassName,l=n.selectAll("g."+c).data(o),f=l.enter().append("g").classed(c,!0),h=l.exit();"dropdown"===i.type?(f.attr("opacity","0").transition().attr("opacity","1"),h.transition().attr("opacity","0").remove()):h.remove();var b=0,x=0,M=-1!==["up","down"].indexOf(i.direction);"dropdown"===i.type&&(M?x=i.headerHeight+T.gapButtonHeader:b=i.headerWidth+T.gapButtonHeader),"dropdown"===i.type&&"up"===i.direction&&(x=-T.gapButtonHeader+T.gapButton-i.openHeight),"dropdown"===i.type&&"left"===i.direction&&(b=-T.gapButtonHeader+T.gapButton-i.openWidth);var A={x:i.lx+b+i.pad.l,y:i.ly+x+i.pad.t,yPad:T.gapButton,xPad:T.gapButton,index:0},S={l:A.x+i.borderwidth,t:A.y+i.borderwidth};l.each(function(a,o){var c=_.select(this);c.call(p,i,a).call(y,i,A),c.on("click",function(){_.event.defaultPrevented||(s(e,i,a,t,n,r,o),w.executeAPICommand(e,a.method,a.args),e.emit("plotly_buttonclicked",{menu:i,button:a,active:i.active}))}),c.on("mouseover",function(){c.call(g)}),c.on("mouseout",function(){c.call(v,i),l.call(m,i)})}),l.call(m,i),M?(S.w=Math.max(i.openWidth,i.headerWidth),S.h=A.y-S.t):(S.w=A.x-S.l,S.h=Math.max(i.openHeight,i.headerHeight)),S.direction=i.direction,r&&(l.size()?u(e,t,n,r,i,S):d(r))}function u(e,t,n,r,i,a){var o,s,c,l=i.direction,u="up"===l||"down"===l,d=i.active;if(u)for(s=0,c=0;c<d;c++)s+=i.heights[c]+T.gapButton;else for(o=0,c=0;c<d;c++)o+=i.widths[c]+T.gapButton;r.enable(a,o,s),r.hbar&&r.hbar.attr("opacity","0").transition().attr("opacity","1"),r.vbar&&r.vbar.attr("opacity","0").transition().attr("opacity","1")}function d(e){var t=!!e.hbar,n=!!e.vbar;t&&e.hbar.transition().attr("opacity","0").each("end",function(){t=!1,n||e.disable()}),n&&e.vbar.transition().attr("opacity","0").each("end",function(){n=!1,t||e.disable()})}function p(e,t,n){e.call(f,t).call(h,t,n)}function f(e,t){var n=e.selectAll("rect").data([0]);n.enter().append("rect").classed(T.itemRectClassName,!0).attr({rx:T.rx,ry:T.ry,"shape-rendering":"crispEdges"}),n.call(A.stroke,t.bordercolor).call(A.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px")}function h(e,t,n){var r=e.selectAll("text").data([0]);r.enter().append("text").classed(T.itemTextClassName,!0).classed("user-select-none",!0).attr("text-anchor","start"),r.call(S.font,t.font).text(n.label).call(k.convertToTspans)}function m(e,t){var n=t.active;e.each(function(e,r){var i=_.select(this);r===n&&t.showactive&&i.select("rect."+T.itemRectClassName).call(A.fill,T.activeColor)})}function g(e){e.select("rect."+T.itemRectClassName).call(A.fill,T.hoverColor)}function v(e,t){e.select("rect."+T.itemRectClassName).call(A.fill,t.bgcolor)}function b(e,t){t.width1=0,t.height1=0,t.heights=[],t.widths=[],t.totalWidth=0,t.totalHeight=0,t.openWidth=0,t.openHeight=0,t.lx=0,t.ly=0;var n=S.tester.selectAll("g."+T.dropdownButtonClassName).data(t.buttons);n.enter().append("g").classed(T.dropdownButtonClassName,!0);var r=-1!==["up","down"].indexOf(t.direction);n.each(function(e,n){var i=_.select(this);i.call(p,t,e);var a=i.select("."+T.itemTextClassName),o=a.selectAll("tspan"),s=a.node()&&S.bBox(a.node()).width,c=Math.max(s+T.textPadX,T.minWidth),l=t.font.size*T.fontSizeToHeight,u=o[0].length||1,d=Math.max(l*u,T.minHeight)+T.textOffsetY;d=Math.ceil(d),c=Math.ceil(c),t.widths[n]=c,t.heights[n]=d,t.height1=Math.max(t.height1,d),t.width1=Math.max(t.width1,c),r?(t.totalWidth=Math.max(t.totalWidth,c),t.openWidth=t.totalWidth,t.totalHeight+=d+T.gapButton,t.openHeight+=d+T.gapButton):(t.totalWidth+=c+T.gapButton,t.openWidth+=c+T.gapButton,t.totalHeight=Math.max(t.totalHeight,d),t.openHeight=t.totalHeight)}),r?t.totalHeight-=T.gapButton:t.totalWidth-=T.gapButton,t.headerWidth=t.width1+T.arrowPadX,t.headerHeight=t.height1,"dropdown"===t.type&&(r?(t.width1+=T.arrowPadX,t.totalHeight=t.height1):t.totalWidth=t.width1,t.totalWidth+=T.arrowPadX),n.remove();var i=t.totalWidth+t.pad.l+t.pad.r,a=t.totalHeight+t.pad.t+t.pad.b,o=e._fullLayout._size;t.lx=o.l+o.w*t.x,t.ly=o.t+o.h*(1-t.y);var s="left";$.isRightAnchor(t)&&(t.lx-=i,s="right"),$.isCenterAnchor(t)&&(t.lx-=i/2,s="center");var c="top";$.isBottomAnchor(t)&&(t.ly-=a,c="bottom"),$.isMiddleAnchor(t)&&(t.ly-=a/2,c="middle"),t.totalWidth=Math.ceil(t.totalWidth),t.totalHeight=Math.ceil(t.totalHeight),t.lx=Math.round(t.lx),t.ly=Math.round(t.ly),w.autoMargin(e,T.autoMarginIdRoot+t._index,{x:t.x,y:t.y,l:i*({right:1,center:.5}[s]||0),r:i*({left:1,center:.5}[s]||0),b:a*({top:1,middle:.5}[c]||0),t:a*({bottom:1,middle:.5}[c]||0)})}function y(e,t,n,r){r=r||{};var i=e.select("."+T.itemRectClassName),a=e.select("."+T.itemTextClassName),o=a.selectAll("tspan"),s=t.borderwidth,c=n.index;S.setTranslate(e,s+n.x,s+n.y);var l=-1!==["up","down"].indexOf(t.direction);i.attr({x:0,y:0,width:r.width||(l?t.width1:t.widths[c]),height:r.height||(l?t.heights[c]:t.height1)});var u=t.font.size*T.fontSizeToHeight,d=o[0].length||1,p=(d-1)*u/4,f={x:T.textOffsetX,y:t.heights[c]/2-p+T.textOffsetY};a.attr(f),o.attr(f),l?n.y+=t.heights[c]+n.yPad:n.x+=t.widths[c]+n.xPad,n.index++}function x(e){e.selectAll("g."+T.dropdownButtonClassName).remove()}function M(e){for(var t=e._fullLayout._pushmargin||{},n=Object.keys(t),r=0;r<n.length;r++){var i=n[r];-1!==i.indexOf(T.autoMarginIdRoot)&&w.autoMargin(e,i)}}var _=e("d3"),w=e("../../plots/plots"),A=e("../color"),S=e("../drawing"),k=e("../../lib/svg_text_utils"),$=e("../legend/anchor_utils"),T=e("./constants"),C=e("./scrollbox");t.exports=function(e){var t=e._fullLayout,n=r(t),a=t._infolayer.selectAll("g."+T.containerClassName).data(n.length>0?[0]:[]);if(a.enter().append("g").classed(T.containerClassName,!0).style("cursor","pointer"),a.exit().remove(),a.exit().size()&&M(e),0!==n.length){var u=a.selectAll("g."+T.headerGroupClassName).data(n,i);u.enter().append("g").classed(T.headerGroupClassName,!0);var d=a.selectAll("g."+T.dropdownButtonGroupClassName).data([0]);d.enter().append("g").classed(T.dropdownButtonGroupClassName,!0).style("pointer-events","all");for(var p=0;p<n.length;p++){var f=n[p];b(e,f)}var h="updatemenus"+t._uid,m=new C(e,d,h);u.enter().size()&&d.call(x).attr(T.menuIndexAttrName,"-1"),u.exit().each(function(t){_.select(this).remove(),d.call(x).attr(T.menuIndexAttrName,"-1"),w.autoMargin(e,T.autoMarginIdRoot+t._index)}),u.each(function(t){var n=_.select(this),r="dropdown"===t.type?d:null;w.manageCommandObserver(e,t,t.buttons,function(i){s(e,t,t.buttons[i.index],n,r,m,i.index,!0)}),"dropdown"===t.type?(c(e,n,d,m,t),o(d,t)&&l(e,n,d,m,t)):l(e,n,null,null,t)})}}},{"../../lib/svg_text_utils":714,"../../plots/plots":760,"../color":586,"../drawing":610,"../legend/anchor_utils":636,"./constants":677,"./scrollbox":681,d3:265}],680:[function(e,t,n){arguments[4][674][0].apply(n,arguments)},{"./attributes":676,"./constants":677,"./defaults":678,"./draw":679,dup:674}],681:[function(e,t,n){"use strict";function r(e,t,n){this.gd=e,this.container=t,this.id=n,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}t.exports=r;var i=e("d3"),a=e("../color"),o=e("../drawing"),s=e("../../lib");r.barWidth=2,r.barLength=20,r.barRadius=2,r.barPad=1,r.barColor="#808BA4",r.prototype.enable=function(e,t,n){var s=this.gd._fullLayout,c=s.width,l=s.height;this.position=e;var u,d,p,f,h=this.position.l,m=this.position.w,g=this.position.t,v=this.position.h,b=this.position.direction,y="down"===b,x="left"===b,M="right"===b,_="up"===b,w=m,A=v;y||x||M||_||(this.position.direction="down",y=!0),y||_?(u=h,d=u+w,y?(p=g,f=Math.min(p+A,l),A=f-p):(f=g+A,p=Math.max(f-A,0),A=f-p)):(p=g,f=p+A,x?(d=h+w,u=Math.max(d-w,0),w=d-u):(u=h,d=Math.min(u+w,c),w=d-u)),this._box={l:u,t:p,w:w,h:A};var S=m>w,k=r.barLength+2*r.barPad,$=r.barWidth+2*r.barPad,T=h,C=g+v;C+$>l&&(C=l-$);var E=this.container.selectAll("rect.scrollbar-horizontal").data(S?[0]:[]);E.exit().on(".drag",null).remove(),E.enter().append("rect").classed("scrollbar-horizontal",!0).call(a.fill,r.barColor),S?(this.hbar=E.attr({rx:r.barRadius,ry:r.barRadius,x:T,y:C,width:k,height:$}),this._hbarXMin=T+k/2,this._hbarTranslateMax=w-k):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var O=v>A,z=r.barWidth+2*r.barPad,L=r.barLength+2*r.barPad,N=h+m,P=g;N+z>c&&(N=c-z);var I=this.container.selectAll("rect.scrollbar-vertical").data(O?[0]:[]);I.exit().on(".drag",null).remove(),I.enter().append("rect").classed("scrollbar-vertical",!0).call(a.fill,r.barColor),O?(this.vbar=I.attr({rx:r.barRadius,ry:r.barRadius,x:N,y:P,width:z,height:L}),this._vbarYMin=P+L/2,this._vbarTranslateMax=A-L):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var D=this.id,R=u-.5,j=O?d+z+.5:d+.5,q=p-.5,B=S?f+$+.5:f+.5,W=s._topdefs.selectAll("#"+D).data(S||O?[0]:[]);if(W.exit().remove(),W.enter().append("clipPath").attr("id",D).append("rect"),S||O?(this._clipRect=W.select("rect").attr({x:Math.floor(R),y:Math.floor(q),width:Math.ceil(j)-Math.floor(R),height:Math.ceil(B)-Math.floor(q)}),this.container.call(o.setClipUrl,D),this.bg.attr({x:h,y:g,width:m,height:v})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(o.setClipUrl,null),delete this._clipRect),S||O){var H=i.behavior.drag().on("dragstart",function(){i.event.sourceEvent.preventDefault()}).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(H);var F=i.behavior.drag().on("dragstart",function(){i.event.sourceEvent.preventDefault(),i.event.sourceEvent.stopPropagation()}).on("drag",this._onBarDrag.bind(this));S&&this.hbar.on(".drag",null).call(F),O&&this.vbar.on(".drag",null).call(F)}this.setTranslate(t,n)},r.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(o.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},r.prototype._onBoxDrag=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e-=i.event.dx),this.vbar&&(t-=i.event.dy),this.setTranslate(e,t)},r.prototype._onBoxWheel=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e+=i.event.deltaY),this.vbar&&(t+=i.event.deltaY),this.setTranslate(e,t)},r.prototype._onBarDrag=function(){var e=this.translateX,t=this.translateY;if(this.hbar){var n=e+this._hbarXMin,r=n+this._hbarTranslateMax;e=(s.constrain(i.event.x,n,r)-n)/(r-n)*(this.position.w-this._box.w)}if(this.vbar){var a=t+this._vbarYMin,o=a+this._vbarTranslateMax;t=(s.constrain(i.event.y,a,o)-a)/(o-a)*(this.position.h-this._box.h)}this.setTranslate(e,t)},r.prototype.setTranslate=function(e,t){var n=this.position.w-this._box.w,r=this.position.h-this._box.h;if(e=s.constrain(e||0,0,n),t=s.constrain(t||0,0,r),this.translateX=e,this.translateY=t,this.container.call(o.setTranslate,this._box.l-this.position.l-e,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+e-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var i=e/n;this.hbar.call(o.setTranslate,e+i*this._hbarTranslateMax,t)}if(this.vbar){var a=t/r;this.vbar.call(o.setTranslate,e,t+a*this._vbarTranslateMax)}}},{"../../lib":697,"../color":586,"../drawing":610,d3:265}],682:[function(e,t,n){"use strict";t.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DBLCLICKDELAY:300}},{}],683:[function(e,t,n){"use strict";t.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE/1e4,ONEAVGYEAR:315576e5,ONEAVGMONTH:26298e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:1-1e-6}},{}],684:[function(e,t,n){"use strict";t.exports={entityToUnicode:{mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},unicodeToEntity:{"&":"amp","<":"lt",">":"gt",'"':"quot","'":"#x27","/":"#x2F"}}},{}],685:[function(e,t,n){"use strict";n.xmlns="http://www.w3.org/2000/xmlns/",n.svg="http://www.w3.org/2000/svg",n.xlink="http://www.w3.org/1999/xlink",n.svgAttrs={xmlns:n.svg,"xmlns:xlink":n.xlink}},{}],686:[function(e,t,n){"use strict";var r=e("./plotly");n.version="1.27.1",e("es6-promise").polyfill(),e("../build/plotcss"),e("./fonts/mathjax_config"),n.plot=r.plot,n.newPlot=r.newPlot,n.restyle=r.restyle,n.relayout=r.relayout,n.redraw=r.redraw,n.update=r.update,n.extendTraces=r.extendTraces,n.prependTraces=r.prependTraces,n.addTraces=r.addTraces,n.deleteTraces=r.deleteTraces,n.moveTraces=r.moveTraces,n.purge=r.purge,n.setPlotConfig=e("./plot_api/set_plot_config"),n.register=e("./plot_api/register"),n.toImage=e("./plot_api/to_image"),n.downloadImage=e("./snapshot/download"),n.validate=e("./plot_api/validate"),n.addFrames=r.addFrames,n.deleteFrames=r.deleteFrames,n.animate=r.animate,n.register(e("./traces/scatter")),n.register([e("./components/fx"),e("./components/legend"),e("./components/annotations"),e("./components/shapes"),e("./components/images"),e("./components/updatemenus"),e("./components/sliders"),e("./components/rangeslider"),e("./components/rangeselector")]),n.Icons=e("../build/ploticon"),n.Plots=r.Plots,n.Fx=e("./components/fx"),n.Snapshot=e("./snapshot"),n.PlotSchema=e("./plot_api/plot_schema"),n.Queue=e("./lib/queue"),n.d3=e("d3")},{"../build/plotcss":568,"../build/ploticon":569,"./components/annotations":584,"./components/fx":627,"./components/images":635,"./components/legend":643,"./components/rangeselector":655,"./components/rangeslider":661,"./components/shapes":668,"./components/sliders":674,"./components/updatemenus":680,"./fonts/mathjax_config":687,"./lib/queue":709,"./plot_api/plot_schema":721,"./plot_api/register":722,"./plot_api/set_plot_config":723,"./plot_api/to_image":725,"./plot_api/validate":726,"./plotly":727,"./snapshot":772,"./snapshot/download":769,"./traces/scatter":811,d3:265,"es6-promise":574}],687:[function(e,t,n){"use strict";"undefined"!=typeof MathJax?(n.MathJax=!0,MathJax.Hub.Config({messageStyle:"none",skipStartupTypeset:!0,displayAlign:"left",tex2jax:{inlineMath:[["$","$"],["\\(","\\)"]]}}),MathJax.Hub.Configured()):n.MathJax=!1},{}],688:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),i=e("../constants/numerical").BADNUM,a=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;t.exports=function(e){return"string"==typeof e&&(e=e.replace(a,"")),r(e)?Number(e):i}},{"../constants/numerical":683,"fast-isnumeric":267}],689:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),i=e("tinycolor2"),a=e("../components/colorscale/get_scale"),o=Object.keys(e("../components/colorscale/scales")),s=e("./nested_property"),c=/^([2-9]|[1-9][0-9]+)$/;n.valObjects={data_array:{description:["An {array} of data.","The value MUST be an {array}, or we ignore it."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,n){Array.isArray(e)?t.set(e):void 0!==n&&t.set(n)}},enumerated:{description:["Enumerated value type. The available values are listed","in `values`."].join(" "),requiredOpts:["values"],otherOpts:["dflt","coerceNumber","arrayOk"],coerceFunction:function(e,t,n,r){r.coerceNumber&&(e=+e),-1===r.values.indexOf(e)?t.set(n):t.set(e)}},boolean:{description:"A boolean (true/false) value.",requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,n){!0===e||!1===e?t.set(e):t.set(n)}},number:{description:["A number or a numeric value","(e.g. a number inside a string).","When applicable, values greater (less) than `max` (`min`)","are coerced to the `dflt`."].join(" "),requiredOpts:[],otherOpts:["dflt","min","max","arrayOk"],coerceFunction:function(e,t,n,i){!r(e)||void 0!==i.min&&e<i.min||void 0!==i.max&&e>i.max?t.set(n):t.set(+e)}},integer:{description:["An integer or an integer inside a string.","When applicable, values greater (less) than `max` (`min`)","are coerced to the `dflt`."].join(" "),requiredOpts:[],otherOpts:["dflt","min","max"],coerceFunction:function(e,t,n,i){e%1||!r(e)||void 0!==i.min&&e<i.min||void 0!==i.max&&e>i.max?t.set(n):t.set(+e)}},string:{description:["A string value.","Numbers are converted to strings except for attributes with","`strict` set to true."].join(" "),requiredOpts:[],otherOpts:["dflt","noBlank","strict","arrayOk","values"],coerceFunction:function(e,t,n,r){if("string"!=typeof e){var i="number"==typeof e;!0!==r.strict&&i?t.set(String(e)):t.set(n)}else r.noBlank&&!e?t.set(n):t.set(e)}},color:{
66description:["A string describing color.","Supported formats:","- hex (e.g. '#d3d3d3')","- rgb (e.g. 'rgb(255, 0, 0)')","- rgba (e.g. 'rgb(255, 0, 0, 0.5)')","- hsl (e.g. 'hsl(0, 100%, 50%)')","- hsv (e.g. 'hsv(0, 100%, 100%)')","- named colors (full list: http://www.w3.org/TR/css3-color/#svg-color)"].join(" "),requiredOpts:[],otherOpts:["dflt","arrayOk"],coerceFunction:function(e,t,n){i(e).isValid()?t.set(e):t.set(n)}},colorscale:{description:["A Plotly colorscale either picked by a name:","(any of",o.join(", "),")","customized as an {array} of 2-element {arrays} where","the first element is the normalized color level value","(starting at *0* and ending at *1*),","and the second item is a valid color string."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,n){t.set(a(e,n))}},angle:{description:["A number (in degree) between -180 and 180."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,n){"auto"===e?t.set("auto"):r(e)?(Math.abs(e)>180&&(e-=360*Math.round(e/360)),t.set(+e)):t.set(n)}},subplotid:{description:["An id string of a subplot type (given by dflt), optionally","followed by an integer >1. e.g. if dflt='geo', we can have","'geo', 'geo2', 'geo3', ..."].join(" "),requiredOpts:["dflt"],otherOpts:[],coerceFunction:function(e,t,n){var r=n.length;if("string"==typeof e&&e.substr(0,r)===n&&c.test(e.substr(r)))return void t.set(e);t.set(n)},validateFunction:function(e,t){var n=t.dflt,r=n.length;return e===n||"string"==typeof e&&!(e.substr(0,r)!==n||!c.test(e.substr(r)))}},flaglist:{description:["A string representing a combination of flags","(order does not matter here).","Combine any of the available `flags` with *+*.","(e.g. ('lines+markers')).","Values in `extras` cannot be combined."].join(" "),requiredOpts:["flags"],otherOpts:["dflt","extras"],coerceFunction:function(e,t,n,r){if("string"!=typeof e)return void t.set(n);if(-1!==(r.extras||[]).indexOf(e))return void t.set(e);for(var i=e.split("+"),a=0;a<i.length;){var o=i[a];-1===r.flags.indexOf(o)||i.indexOf(o)<a?i.splice(a,1):a++}i.length?t.set(i.join("+")):t.set(n)}},any:{description:"Any type.",requiredOpts:[],otherOpts:["dflt","values","arrayOk"],coerceFunction:function(e,t,n){void 0===e?t.set(n):t.set(e)}},info_array:{description:["An {array} of plot information."].join(" "),requiredOpts:["items"],otherOpts:["dflt","freeLength"],coerceFunction:function(e,t,r,i){if(!Array.isArray(e))return void t.set(r);var a=i.items,o=[];r=Array.isArray(r)?r:[];for(var s=0;s<a.length;s++)n.coerce(e,o,a,"["+s+"]",r[s]);t.set(o)},validateFunction:function(e,t){if(!Array.isArray(e))return!1;var r=t.items;if(!t.freeLength&&e.length!==r.length)return!1;for(var i=0;i<e.length;i++){if(!n.validate(e[i],t.items[i]))return!1}return!0}}},n.coerce=function(e,t,r,i,a){var o=s(r,i).get(),c=s(e,i),l=s(t,i),u=c.get();return void 0===a&&(a=o.dflt),o.arrayOk&&Array.isArray(u)?(l.set(u),u):(n.valObjects[o.valType].coerceFunction(u,l,a,o),l.get())},n.coerce2=function(e,t,r,i,a){var o=s(e,i),c=n.coerce(e,t,r,i,a),l=o.get();return void 0!==l&&null!==l&&c},n.coerceFont=function(e,t,n){var r={};return n=n||{},r.family=e(t+".family",n.family),r.size=e(t+".size",n.size),r.color=e(t+".color",n.color),r},n.validate=function(e,t){var r=n.valObjects[t.valType];if(t.arrayOk&&Array.isArray(e))return!0;if(r.validateFunction)return r.validateFunction(e,t);var i={},a=i,o={set:function(e){a=e}};return r.coerceFunction(e,o,i,t),a!==i}},{"../components/colorscale/get_scale":598,"../components/colorscale/scales":604,"./nested_property":703,"fast-isnumeric":267,tinycolor2:826}],690:[function(e,t,n){"use strict";function r(e){return e&&w.componentsRegistry.calendars&&"string"==typeof e&&"gregorian"!==e}function i(e,t){return String(e+Math.pow(10,t)).substr(1)}function a(e,t,n,r,a){if((t||n||r||a)&&(e+=" "+i(t,2)+":"+i(n,2),(r||a)&&(e+=":"+i(r,2),a))){for(var o=4;a%10==0;)o-=1,a/=10;e+="."+i(a,o)}return e}function o(e,t,n){e=e.replace(L,function(e){var n=Math.min(+e.charAt(1)||6,6);return(t/1e3%1+2).toFixed(n).substr(2).replace(/0+$/,"")||"0"});var i=new Date(Math.floor(t+.05));if(r(n))try{e=w.getComponentMethod("calendars","worldCalFmt")(e,t,n)}catch(e){return"Invalid"}return A(e)(i)}function s(e,t){var n=m(e+.05,b),r=i(Math.floor(n/y),2)+":"+i(m(Math.floor(n/x),60),2);if("M"!==t){f(t)||(t=0);var a=Math.min(m(e/M,60),N[t]),o=(100+a).toFixed(t).substr(1);t>0&&(o=o.replace(/0+$/,"").replace(/[\.]$/,"")),r+=":"+o}return r}function c(e){return e.formatDate("yyyy")}function l(e){return e.formatDate("M yyyy")}function u(e){return e.formatDate("M d")}function d(e){return e.formatDate("M d, yyyy")}var p=e("d3"),f=e("fast-isnumeric"),h=e("./loggers").error,m=e("./mod"),g=e("../constants/numerical"),v=g.BADNUM,b=g.ONEDAY,y=g.ONEHOUR,x=g.ONEMIN,M=g.ONESEC,_=g.EPOCHJD,w=e("../registry"),A=p.time.format.utc,S=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d:?\d\d)?)?)?)?)?\s*$/m,k=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d:?\d\d)?)?)?)?)?\s*$/m,$=(new Date).getFullYear()-70;n.dateTick0=function(e,t){return r(e)?t?w.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:w.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"},n.dfltRange=function(e){return r(e)?w.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]},n.isJSDate=function(e){return"object"===(void 0===e?"undefined":_typeof2(e))&&null!==e&&"function"==typeof e.getTime};var T,C;n.dateTime2ms=function(e,t){if(n.isJSDate(e))return e=Number(e)-e.getTimezoneOffset()*x,e>=T&&e<=C?e:v;if("string"!=typeof e&&"number"!=typeof e)return v;e=String(e);var i=r(t),a=e.charAt(0);!i||"G"!==a&&"g"!==a||(e=e.substr(1),t="");var o=i&&"chinese"===t.substr(0,7),s=e.match(o?k:S);if(!s)return v;var c=s[1],l=s[3]||"1",u=Number(s[5]||1),d=Number(s[7]||0),p=Number(s[9]||0),f=Number(s[11]||0);if(i){if(2===c.length)return v;c=Number(c);var h;try{var m=w.getComponentMethod("calendars","getCal")(t);if(o){var g="i"===l.charAt(l.length-1);l=parseInt(l,10),h=m.newDate(c,m.toMonthIndex(c,l,g),u)}else h=m.newDate(c,Number(l),u)}catch(e){return v}return h?(h.toJD()-_)*b+d*y+p*x+f*M:v}c=2===c.length?(Number(c)+2e3-$)%100+$:Number(c),l-=1;var A=new Date(Date.UTC(2e3,l,u,d,p));return A.setUTCFullYear(c),A.getUTCMonth()!==l?v:A.getUTCDate()!==u?v:A.getTime()+f*M},T=n.MIN_MS=n.dateTime2ms("-9999"),C=n.MAX_MS=n.dateTime2ms("9999-12-31 23:59:59.9999"),n.isDateTime=function(e,t){return n.dateTime2ms(e,t)!==v};var E=90*b,O=3*y,z=5*x;n.ms2DateTime=function(e,t,n){if("number"!=typeof e||!(e>=T&&e<=C))return v;t||(t=0);var i,o,s,c,l,u,d=Math.floor(10*m(e+.05,1)),p=Math.round(e-d/10);if(r(n)){var f=Math.floor(p/b)+_,h=Math.floor(m(e,b));try{i=w.getComponentMethod("calendars","getCal")(n).fromJD(f).formatDate("yyyy-mm-dd")}catch(e){i=A("G%Y-%m-%d")(new Date(p))}if("-"===i.charAt(0))for(;i.length<11;)i="-0"+i.substr(1);else for(;i.length<10;)i="0"+i;o=t<E?Math.floor(h/y):0,s=t<E?Math.floor(h%y/x):0,c=t<O?Math.floor(h%x/M):0,l=t<z?h%M*10+d:0}else u=new Date(p),i=A("%Y-%m-%d")(u),o=t<E?u.getUTCHours():0,s=t<E?u.getUTCMinutes():0,c=t<O?u.getUTCSeconds():0,l=t<z?10*u.getUTCMilliseconds()+d:0;return a(i,o,s,c,l)},n.ms2DateTimeLocal=function(e){if(!(e>=T+b&&e<=C-b))return v;var t=Math.floor(10*m(e+.05,1)),n=new Date(Math.round(e-t/10));return a(p.time.format("%Y-%m-%d")(n),n.getHours(),n.getMinutes(),n.getSeconds(),10*n.getUTCMilliseconds()+t)},n.cleanDate=function(e,t,i){if(n.isJSDate(e)||"number"==typeof e){if(r(i))return h("JS Dates and milliseconds are incompatible with world calendars",e),t;if(!(e=n.ms2DateTimeLocal(+e))&&void 0!==t)return t}else if(!n.isDateTime(e,i))return h("unrecognized date",e),t;return e};var L=/%\d?f/g,N=[59,59.9,59.99,59.999,59.9999],P=A("%Y"),I=A("%b %Y"),D=A("%b %-d"),R=A("%b %-d, %Y");n.formatDate=function(e,t,n,i){var a,p;if(i=r(i)&&i,t)return o(t,e,i);if(i)try{var f=Math.floor((e+.05)/b)+_,h=w.getComponentMethod("calendars","getCal")(i).fromJD(f);"y"===n?p=c(h):"m"===n?p=l(h):"d"===n?(a=c(h),p=u(h)):(a=d(h),p=s(e,n))}catch(e){return"Invalid"}else{var m=new Date(Math.floor(e+.05));"y"===n?p=P(m):"m"===n?p=I(m):"d"===n?(a=P(m),p=D(m)):(a=R(m),p=s(e,n))}return p+(a?"\n"+a:"")};var j=3*b;n.incrementMonth=function(e,t,n){n=r(n)&&n;var i=m(e,b);if(e=Math.round(e-i),n)try{var a=Math.round(e/b)+_,o=w.getComponentMethod("calendars","getCal")(n),s=o.fromJD(a);return t%12?o.add(s,t,"m"):o.add(s,t/12,"y"),(s.toJD()-_)*b+i}catch(t){h("invalid ms "+e+" in calendar "+n)}var c=new Date(e+j);return c.setUTCMonth(c.getUTCMonth()+t)+i-j},n.findExactDates=function(e,t){for(var n,i,a=0,o=0,s=0,c=0,l=r(t)&&w.getComponentMethod("calendars","getCal")(t),u=0;u<e.length;u++)if(i=e[u],f(i)){if(!(i%b))if(l)try{n=l.fromJD(i/b+_),1===n.day()?1===n.month()?a++:o++:s++}catch(e){}else n=new Date(i),1===n.getUTCDate()?0===n.getUTCMonth()?a++:o++:s++}else c++;o+=a,s+=o;var d=e.length-c;return{exactYears:a/d,exactMonths:o/d,exactDays:s/d}}},{"../constants/numerical":683,"../registry":767,"./loggers":700,"./mod":702,d3:265,"fast-isnumeric":267}],691:[function(e,t,n){"use strict";t.exports=function(e,t){return Array.isArray(e)||(e=[]),e.length=t,e}},{}],692:[function(e,t,n){"use strict";var r=e("events").EventEmitter,i={init:function(e){if(e._ev instanceof r)return e;var t=new r,n=new r;return e._ev=t,e._internalEv=n,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=n.on.bind(n),e._internalOnce=n.once.bind(n),e._removeInternalListener=n.removeListener.bind(n),e._removeAllInternalListeners=n.removeAllListeners.bind(n),e.emit=function(r,i){"undefined"!=typeof jQuery&&jQuery(e).trigger(r,i),t.emit(r,i),n.emit(r,i)},e},triggerHandler:function(e,t,n){var r,i;"undefined"!=typeof jQuery&&(r=jQuery(e).triggerHandler(t,n));var a=e._ev;if(!a)return r;var o=a._events[t];if(!o)return r;"function"==typeof o&&(o=[o]);for(var s=o.pop(),c=0;c<o.length;c++)o[c](n);return i=s(n),void 0!==r?r:i},purge:function(e){return delete e._ev,delete e.on,delete e.once,delete e.removeListener,delete e.removeAllListeners,delete e.emit,delete e._ev,delete e._internalEv,delete e._internalOn,delete e._internalOnce,delete e._removeInternalListener,delete e._removeAllInternalListeners,e}};t.exports=i},{events:266}],693:[function(e,t,n){"use strict";function r(e,t){var n,r;for(n=0;n<e.length;n++){if(null!==(r=e[n])&&"object"===(void 0===r?"undefined":_typeof2(r)))return!1;void 0!==r&&(t[n]=r)}return!0}function i(e,t,n,s){var c,l,u,d,p,f,h=e[0],m=e.length;if(2===m&&o(h)&&o(e[1])&&0===h.length){if(r(e[1],h))return h;h.splice(0,h.length)}for(var g=1;g<m;g++){c=e[g];for(l in c)u=h[l],d=c[l],s&&o(d)?h[l]=d:t&&d&&(a(d)||(p=o(d)))?(p?(p=!1,f=u&&o(u)?u:[]):f=u&&a(u)?u:{},h[l]=i([f,d],t,n,s)):(void 0!==d||n)&&(h[l]=d)}return h}var a=e("./is_plain_object.js"),o=Array.isArray;n.extendFlat=function(){return i(arguments,!1,!1,!1)},n.extendDeep=function(){return i(arguments,!0,!1,!1)},n.extendDeepAll=function(){return i(arguments,!0,!0,!1)},n.extendDeepNoArrays=function(){return i(arguments,!0,!1,!0)}},{"./is_plain_object.js":699}],694:[function(e,t,n){"use strict";t.exports=function(e){for(var t={},n=[],r=0,i=0;i<e.length;i++){var a=e[i];1!==t[a]&&(t[a]=1,n[r++]=a)}return n}},{}],695:[function(e,t,n){"use strict";t.exports=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];!0===r.visible&&t.push(r)}return t}},{}],696:[function(e,t,n){"use strict";t.exports=function(e){return e}},{}],697:[function(e,t,n){"use strict";var r=e("d3"),i=t.exports={};i.nestedProperty=e("./nested_property"),i.isPlainObject=e("./is_plain_object"),i.isArray=e("./is_array"),i.mod=e("./mod"),i.toLogRange=e("./to_log_range"),i.relinkPrivateKeys=e("./relink_private"),i.ensureArray=e("./ensure_array");var a=e("./coerce");i.valObjects=a.valObjects,i.coerce=a.coerce,i.coerce2=a.coerce2,i.coerceFont=a.coerceFont,i.validate=a.validate;var o=e("./dates");i.dateTime2ms=o.dateTime2ms,i.isDateTime=o.isDateTime,i.ms2DateTime=o.ms2DateTime,i.ms2DateTimeLocal=o.ms2DateTimeLocal,i.cleanDate=o.cleanDate,i.isJSDate=o.isJSDate,i.formatDate=o.formatDate,i.incrementMonth=o.incrementMonth,i.dateTick0=o.dateTick0,i.dfltRange=o.dfltRange,i.findExactDates=o.findExactDates,i.MIN_MS=o.MIN_MS,i.MAX_MS=o.MAX_MS;var s=e("./search");i.findBin=s.findBin,i.sorterAsc=s.sorterAsc,i.sorterDes=s.sorterDes,i.distinctVals=s.distinctVals,i.roundUp=s.roundUp;var c=e("./stats");i.aggNums=c.aggNums,i.len=c.len,i.mean=c.mean,i.variance=c.variance,i.stdev=c.stdev,i.interp=c.interp;var l=e("./matrix");i.init2dArray=l.init2dArray,i.transposeRagged=l.transposeRagged,i.dot=l.dot,i.translationMatrix=l.translationMatrix,i.rotationMatrix=l.rotationMatrix,i.rotationXYMatrix=l.rotationXYMatrix,i.apply2DTransform=l.apply2DTransform,i.apply2DTransform2=l.apply2DTransform2;var u=e("./extend");i.extendFlat=u.extendFlat,i.extendDeep=u.extendDeep,i.extendDeepAll=u.extendDeepAll,i.extendDeepNoArrays=u.extendDeepNoArrays;var d=e("./loggers");i.log=d.log,i.warn=d.warn,i.error=d.error,i.notifier=e("./notifier"),i.filterUnique=e("./filter_unique"),i.filterVisible=e("./filter_visible"),i.pushUnique=e("./push_unique"),i.cleanNumber=e("./clean_number"),i.noop=e("./noop"),i.identity=e("./identity"),i.swapAttrs=function(e,t,n,r){n||(n="x"),r||(r="y");for(var a=0;a<t.length;a++){var o=t[a],s=i.nestedProperty(e,o.replace("?",n)),c=i.nestedProperty(e,o.replace("?",r)),l=s.get();s.set(c.get()),c.set(l)}},i.pauseEvent=function(e){return e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),e.cancelBubble=!0,!1},i.constrain=function(e,t,n){return t>n?Math.max(n,Math.min(t,e)):Math.max(t,Math.min(n,e))},i.bBoxIntersect=function(e,t,n){return n=n||0,e.left<=t.right+n&&t.left<=e.right+n&&e.top<=t.bottom+n&&t.top<=e.bottom+n},i.simpleMap=function(e,t,n,r){for(var i=e.length,a=new Array(i),o=0;o<i;o++)a[o]=t(e[o],n,r);return a},i.randstr=function e(t,n,r){if(r||(r=16),void 0===n&&(n=24),n<=0)return"0";var i,a,o,s=Math.log(Math.pow(2,n))/Math.log(r),c="";for(i=2;s===1/0;i*=2)s=Math.log(Math.pow(2,n/i))/Math.log(r)*i;var l=s-Math.floor(s);for(i=0;i<Math.floor(s);i++)o=Math.floor(Math.random()*r).toString(r),c=o+c;l&&(a=Math.pow(r,l),o=Math.floor(Math.random()*a).toString(r),c=o+c);var u=parseInt(c,r);return t&&t.indexOf(c)>-1||u!==1/0&&u>=Math.pow(2,n)?e(t,n,r):c},i.OptionControl=function(e,t){e||(e={}),t||(t="opt");var n={};return n.optionList=[],n._newoption=function(r){r[t]=e,n[r.name]=r,n.optionList.push(r)},n["_"+t]=e,n},i.smooth=function(e,t){if((t=Math.round(t)||0)<2)return e;var n,r,i,a,o=e.length,s=2*o,c=2*t-1,l=new Array(c),u=new Array(o);for(n=0;n<c;n++)l[n]=(1-Math.cos(Math.PI*(n+1)/t))/(2*t);for(n=0;n<o;n++){for(a=0,r=0;r<c;r++)i=n+r+1-t,i<-o?i-=s*Math.round(i/s):i>=s&&(i-=s*Math.floor(i/s)),i<0?i=-1-i:i>=o&&(i=s-1-i),a+=e[i]*l[r];u[n]=a}return u},i.syncOrAsync=function(e,t,n){function r(){return i.syncOrAsync(e,t,n)}for(var a,o;e.length;)if(o=e.splice(0,1)[0],(a=o(t))&&a.then)return a.then(r).then(void 0,i.promiseError);return n&&n(t)},i.stripTrailingSlash=function(e){return"/"===e.substr(-1)?e.substr(0,e.length-1):e},i.noneOrAll=function(e,t,n){if(e){var r,i,a=!1,o=!0;for(r=0;r<n.length;r++)i=e[n[r]],void 0!==i&&null!==i?a=!0:o=!1;if(a&&!o)for(r=0;r<n.length;r++)e[n[r]]=t[n[r]]}},i.mergeArray=function(e,t,n){if(Array.isArray(e))for(var r=Math.min(e.length,t.length),i=0;i<r;i++)t[i][n]=e[i]},i.getTargetArray=function(e,t){var n=t.target;if("string"==typeof n&&n){var r=i.nestedProperty(e,n).get();return!!Array.isArray(r)&&r}return!!Array.isArray(n)&&n},i.minExtend=function(e,t){var n={};"object"!==(void 0===t?"undefined":_typeof2(t))&&(t={});var r,a,o,s=Object.keys(e);for(r=0;r<s.length;r++)a=s[r],o=e[a],"_"!==a.charAt(0)&&"function"!=typeof o&&("module"===a?n[a]=o:Array.isArray(o)?n[a]=o.slice(0,3):o&&"object"===(void 0===o?"undefined":_typeof2(o))?n[a]=i.minExtend(e[a],t[a]):n[a]=o);for(s=Object.keys(t),r=0;r<s.length;r++)a=s[r],o=t[a],"object"===(void 0===o?"undefined":_typeof2(o))&&a in n&&"object"===_typeof2(n[a])||(n[a]=o);return n},i.titleCase=function(e){return e.charAt(0).toUpperCase()+e.substr(1)},i.containsAny=function(e,t){for(var n=0;n<t.length;n++)if(-1!==e.indexOf(t[n]))return!0;return!1},i.getPlotDiv=function(e){for(;e&&e.removeAttribute;e=e.parentNode)if(i.isPlotDiv(e))return e},i.isPlotDiv=function(e){var t=r.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")},i.removeElement=function(e){var t=e&&e.parentNode;t&&t.removeChild(e)},i.addStyleRule=function(e,t){if(!i.styleSheet){var n=document.createElement("style");n.appendChild(document.createTextNode("")),document.head.appendChild(n),i.styleSheet=n.sheet}var r=i.styleSheet;r.insertRule?r.insertRule(e+"{"+t+"}",0):r.addRule?r.addRule(e,t,0):i.warn("addStyleRule failed")},i.isIE=function(){return void 0!==window.navigator.msSaveBlob},i.isD3Selection=function(e){return e&&"function"==typeof e.classed},i.objectFromPath=function(e,t){for(var n,r=e.split("."),i=n={},a=0;a<r.length;a++){var o=r[a],s=null,c=r[a].match(/(.*)\[([0-9]+)\]/);c?(o=c[1],s=c[2],n=n[o]=[],a===r.length-1?n[s]=t:n[s]={},n=n[s]):(a===r.length-1?n[o]=t:n[o]={},n=n[o])}return i};var p=/^([^\[\.]+)\.(.+)?/,f=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;i.expandObjectPaths=function(e){var t,n,r,a,o,s,c;if("object"===(void 0===e?"undefined":_typeof2(e))&&!Array.isArray(e))for(n in e)e.hasOwnProperty(n)&&((t=n.match(p))?(a=e[n],r=t[1],delete e[n],e[r]=i.extendDeepNoArrays(e[r]||{},i.objectFromPath(n,i.expandObjectPaths(a))[r])):(t=n.match(f))?(a=e[n],r=t[1],o=parseInt(t[2]),delete e[n],e[r]=e[r]||[],"."===t[3]?(c=t[4],s=e[r][o]=e[r][o]||{},i.extendDeepNoArrays(s,i.objectFromPath(c,i.expandObjectPaths(a)))):e[r][o]=i.expandObjectPaths(a)):e[n]=i.expandObjectPaths(e[n]));return e},i.numSeparate=function(e,t,n){if(n||(n=!1),"string"!=typeof t||0===t.length)throw new Error("Separator string required for formatting!");"number"==typeof e&&(e=String(e));var r=/(\d+)(\d{3})/,i=t.charAt(0),a=t.charAt(1),o=e.split("."),s=o[0],c=o.length>1?i+o[1]:"";if(a&&(o.length>1||s.length>4||n))for(;r.test(s);)s=s.replace(r,"$1"+a+"$2");return s+c}},{"./clean_number":688,"./coerce":689,"./dates":690,"./ensure_array":691,"./extend":693,"./filter_unique":694,"./filter_visible":695,"./identity":696,"./is_array":698,"./is_plain_object":699,"./loggers":700,"./matrix":701,"./mod":702,"./nested_property":703,"./noop":704,"./notifier":705,"./push_unique":708,"./relink_private":710,"./search":711,"./stats":713,"./to_log_range":715,d3:265}],698:[function(e,t,n){"use strict";var r="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer:{isView:function(){return!1}};t.exports=function(e){return Array.isArray(e)||r.isView(e)}},{}],699:[function(e,t,n){"use strict";t.exports=function(e){return window&&window.process&&window.process.versions?"[object Object]"===Object.prototype.toString.call(e):"[object Object]"===Object.prototype.toString.call(e)&&Object.getPrototypeOf(e)===Object.prototype}},{}],700:[function(e,t,n){"use strict";function r(e,t){if(e.apply)e.apply(e,t);else for(var n=0;n<t.length;n++)e(t[n])}var i=e("../plot_api/plot_config"),a=t.exports={};a.log=function(){if(i.logging>1){for(var e=["LOG:"],t=0;t<arguments.length;t++)e.push(arguments[t]);r(console.trace||console.log,e)}},a.warn=function(){if(i.logging>0){for(var e=["WARN:"],t=0;t<arguments.length;t++)e.push(arguments[t]);r(console.trace||console.log,e)}},a.error=function(){if(i.logging>0){for(var e=["ERROR:"],t=0;t<arguments.length;t++)e.push(arguments[t]);r(console.error,e)}}},{"../plot_api/plot_config":720}],701:[function(e,t,n){"use strict";n.init2dArray=function(e,t){for(var n=new Array(e),r=0;r<e;r++)n[r]=new Array(t);return n},n.transposeRagged=function(e){var t,n,r=0,i=e.length;for(t=0;t<i;t++)r=Math.max(r,e[t].length);var a=new Array(r);for(t=0;t<r;t++)for(a[t]=new Array(i),n=0;n<i;n++)a[t][n]=e[n][t];return a},n.dot=function(e,t){if(!e.length||!t.length||e.length!==t.length)return null;var r,i,a=e.length;if(e[0].length)for(r=new Array(a),i=0;i<a;i++)r[i]=n.dot(e[i],t);else if(t[0].length){var o=n.transposeRagged(t);for(r=new Array(o.length),i=0;i<o.length;i++)r[i]=n.dot(e,o[i])}else for(r=0,i=0;i<a;i++)r+=e[i]*t[i];return r},n.translationMatrix=function(e,t){return[[1,0,e],[0,1,t],[0,0,1]]},n.rotationMatrix=function(e){var t=e*Math.PI/180;return[[Math.cos(t),-Math.sin(t),0],[Math.sin(t),Math.cos(t),0],[0,0,1]]},n.rotationXYMatrix=function(e,t,r){return n.dot(n.dot(n.translationMatrix(t,r),n.rotationMatrix(e)),n.translationMatrix(-t,-r))},n.apply2DTransform=function(e){return function(){var t=arguments;3===t.length&&(t=t[0]);var r=1===arguments.length?t[0]:[t[0],t[1]];return n.dot(e,[r[0],r[1],1]).slice(0,2)}},n.apply2DTransform2=function(e){var t=n.apply2DTransform(e);return function(e){return t(e.slice(0,2)).concat(t(e.slice(2,4)))}}},{}],702:[function(e,t,n){"use strict";t.exports=function(e,t){var n=e%t;return n<0?n+t:n}},{}],703:[function(e,t,n){"use strict";function r(e,t){return function(){var n,i,a,o,s,c=e;for(o=0;o<t.length-1;o++){if(-1===(n=t[o])){for(i=!0,a=[],s=0;s<c.length;s++)a[s]=r(c[s],t.slice(o+1))(),a[s]!==a[0]&&(i=!1);return i?a[0]:a}if("number"==typeof n&&!f(c))return;if(c=c[n],"object"!==(void 0===c?"undefined":_typeof2(c))||null===c)return}if("object"===(void 0===c?"undefined":_typeof2(c))&&null!==c&&null!==(a=c[t[o]]))return a}}function i(e,t){if(!u(e)||h(e)&&"]"===t.charAt(t.length-1)||t.match(v)&&void 0!==e)return!1;if(!f(e))return!0;if(t.match(g))return!0;var n=m(t);return n&&""===n.index}function a(e,t,n){return function(r){var a,u,d=e,p="",h=[[e,p]],m=i(r,n);for(u=0;u<t.length-1;u++){if("number"==typeof(a=t[u])&&!f(d))throw"array index but container is not an array";if(-1===a){if(m=!s(d,t.slice(u+1),r,n))break;return}if(!c(d,a,t[u+1],m))break;if(d=d[a],"object"!==(void 0===d?"undefined":_typeof2(d))||null===d)throw"container is not an object";p=o(p,a),h.push([d,p])}m?(u===t.length-1&&delete d[t[u]],l(h)):d[t[u]]=r}}function o(e,t){var n=t;return p(t)?n="["+t+"]":e&&(n="."+t),e+n}function s(e,t,n,r){var o,s=f(n),l=!0,u=n,d=r.replace("-1",0),p=!s&&i(n,d),h=t[0];for(o=0;o<e.length;o++)d=r.replace("-1",o),s&&(u=n[o%n.length],p=i(u,d)),p&&(l=!1),c(e,o,h,p)&&a(e[o],t,r.replace("-1",o))(u);return l}function c(e,t,n,r){if(void 0===e[t]){if(r)return!1;e[t]="number"==typeof n?[]:{}}return!0}function l(e){var t,n,r,a,s,c;for(t=e.length-1;t>=0;t--){if(r=e[t][0],a=e[t][1],c=!1,f(r))for(n=r.length-1;n>=0;n--)i(r[n],o(a,n))?c?r[n]=void 0:r.pop():c=!0;else if("object"===(void 0===r?"undefined":_typeof2(r))&&null!==r)for(s=Object.keys(r),c=!1,n=s.length-1;n>=0;n--)i(r[s[n]],o(a,s[n]))?delete r[s[n]]:c=!0;if(c)return}}function u(e){return void 0===e||null===e||"object"===(void 0===e?"undefined":_typeof2(e))&&(f(e)?!e.length:!Object.keys(e).length)}function d(e,t,n){return{set:function(){throw"bad container"},get:function(){},astr:t,parts:n,obj:e}}var p=e("fast-isnumeric"),f=e("./is_array"),h=e("./is_plain_object"),m=e("../plot_api/container_array_match");t.exports=function(e,t){if(p(t))t=String(t);else if("string"!=typeof t||"[-1]"===t.substr(t.length-4))throw"bad property string";for(var n,i,o,s=0,c=t.split(".");s<c.length;){if(n=String(c[s]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/)){if(n[1])c[s]=n[1];else{if(0!==s)throw"bad property string";c.splice(0,1)}for(i=n[2].substr(1,n[2].length-2).split("]["),o=0;o<i.length;o++)s++,c.splice(s,0,Number(i[o]))}s++}return"object"!==(void 0===e?"undefined":_typeof2(e))?d(e,t,c):{set:a(e,c,t),get:r(e,c),astr:t,parts:c,obj:e}};var g=/(^|\.)((domain|range)(\.[xy])?|args|parallels)$/,v=/(^|\.)args\[/},{"../plot_api/container_array_match":716,"./is_array":698,"./is_plain_object":699,"fast-isnumeric":267}],704:[function(e,t,n){"use strict";t.exports=function(){}},{}],705:[function(e,t,n){"use strict";var r=e("d3"),i=e("fast-isnumeric"),a=[];t.exports=function(e,t){function n(e){e.duration(700).style("opacity",0).each("end",function(e){var t=a.indexOf(e);-1!==t&&a.splice(t,1),r.select(this).remove()})}if(-1===a.indexOf(e)){a.push(e);var o=1e3;i(t)?o=t:"long"===t&&(o=3e3);var s=r.select("body").selectAll(".plotly-notifier").data([0]);s.enter().append("div").classed("plotly-notifier",!0);s.selectAll(".notifier-note").data(a).enter().append("div").classed("notifier-note",!0).style("opacity",0).each(function(e){var t=r.select(this);t.append("button").classed("notifier-close",!0).html("&times;").on("click",function(){t.transition().call(n)});for(var i=t.append("p"),a=e.split(/<br\s*\/?>/g),s=0;s<a.length;s++)s&&i.append("br"),i.append("span").text(a[s]);t.transition().duration(700).style("opacity",1).transition().delay(o).call(n)})}}},{d3:265,"fast-isnumeric":267}],706:[function(e,t,n){"use strict";var r=e("./setcursor"),i="data-savedcursor";t.exports=function(e,t){var n=e.attr(i);if(t){if(!n){for(var a=(e.attr("class")||"").split(" "),o=0;o<a.length;o++){var s=a[o];0===s.indexOf("cursor-")&&e.attr(i,s.substr(7)).classed(s,!1)}e.attr(i)||e.attr(i,"!!")}r(e,t)}else n&&(e.attr(i,null),"!!"===n?r(e):r(e,n))}},{"./setcursor":712}],707:[function(e,t,n){"use strict";var r=e("./matrix").dot,i=e("../constants/numerical").BADNUM,a=t.exports={};a.tester=function(e){function t(e,t){var n=e[0],r=e[1];return!(n===i||n<a||n>o||r===i||r<s||r>c)&&(!t||!u(e))}function n(e,t){var n=e[0],l=e[1];if(n===i||n<a||n>o||l===i||l<s||l>c)return!1;var u,d,p,f,h,m=r.length,g=r[0][0],v=r[0][1],b=0;for(u=1;u<m;u++)if(d=g,p=v,g=r[u][0],v=r[u][1],f=Math.min(d,g),!(n<f||n>Math.max(d,g)||l>Math.max(p,v)))if(l<Math.min(p,v))n!==f&&b++;else{if(h=g===d?l:p+(n-d)*(v-p)/(g-d),l===h)return 1!==u||!t;l<=h&&n!==f&&b++}return b%2==1}var r=e.slice(),a=r[0][0],o=a,s=r[0][1],c=s;r.push(r[0]);for(var l=1;l<r.length;l++)a=Math.min(a,r[l][0]),o=Math.max(o,r[l][0]),s=Math.min(s,r[l][1]),c=Math.max(c,r[l][1]);var u,d=!1;return 5===r.length&&(r[0][0]===r[1][0]?r[2][0]===r[3][0]&&r[0][1]===r[3][1]&&r[1][1]===r[2][1]&&(d=!0,u=function(e){return e[0]===r[0][0]}):r[0][1]===r[1][1]&&r[2][1]===r[3][1]&&r[0][0]===r[3][0]&&r[1][0]===r[2][0]&&(d=!0,u=function(e){return e[1]===r[0][1]})),{xmin:a,xmax:o,ymin:s,ymax:c,pts:r,contains:d?t:n,isRect:d}};var o=a.isSegmentBent=function(e,t,n,i){var a,o,s,c=e[t],l=[e[n][0]-c[0],e[n][1]-c[1]],u=r(l,l),d=Math.sqrt(u),p=[-l[1]/d,l[0]/d];for(a=t+1;a<n;a++)if(o=[e[a][0]-c[0],e[a][1]-c[1]],(s=r(o,l))<0||s>u||Math.abs(r(o,p))>i)return!0;return!1};a.filter=function(e,t){function n(n){e.push(n);var s=r.length,c=i;r.splice(a+1);for(var l=c+1;l<e.length;l++)(l===e.length-1||o(e,c,l+1,t))&&(r.push(e[l]),r.length<s-2&&(i=l,a=r.length-1),c=l)}var r=[e[0]],i=0,a=0;if(e.length>1){n(e.pop())}return{addPt:n,raw:e,filtered:r}}},{"../constants/numerical":683,"./matrix":701}],708:[function(e,t,n){"use strict";t.exports=function(e,t){if(t instanceof RegExp){var n,r=t.toString();for(n=0;n<e.length;n++)if(e[n]instanceof RegExp&&e[n].toString()===r)return e;e.push(t)}else t&&-1===e.indexOf(t)&&e.push(t);return e}},{}],709:[function(e,t,n){"use strict";function r(e,t){for(var n,r=[],a=0;a<t.length;a++)n=t[a],n===e?r[a]=n:"object"===(void 0===n?"undefined":_typeof2(n))?r[a]=Array.isArray(n)?i.extendDeep([],n):i.extendDeepAll({},n):r[a]=n;return r}var i=e("../lib"),a=e("../plot_api/plot_config"),o={};o.add=function(e,t,n,r,i){var o,s;if(e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},s=e.undoQueue.index,e.autoplay)return void(e.undoQueue.inSequence||(e.autoplay=!1));!e.undoQueue.sequence||e.undoQueue.beginSequence?(o={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},e.undoQueue.queue.splice(s,e.undoQueue.queue.length-s,o),e.undoQueue.index+=1):o=e.undoQueue.queue[s-1],e.undoQueue.beginSequence=!1,o&&(o.undo.calls.unshift(t),o.undo.args.unshift(n),o.redo.calls.push(r),o.redo.args.push(i)),e.undoQueue.queue.length>a.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--)},o.startSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0},o.stopSequence=function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1},o.undo=function(e){var t,n;if(e.framework&&e.framework.isPolar)return void e.framework.undo();if(!(void 0===e.undoQueue||isNaN(e.undoQueue.index)||e.undoQueue.index<=0)){for(e.undoQueue.index--,t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,n=0;n<t.undo.calls.length;n++)o.plotDo(e,t.undo.calls[n],t.undo.args[n]);e.undoQueue.inSequence=!1,e.autoplay=!1}},o.redo=function(e){var t,n;if(e.framework&&e.framework.isPolar)return void e.framework.redo();if(!(void 0===e.undoQueue||isNaN(e.undoQueue.index)||e.undoQueue.index>=e.undoQueue.queue.length)){for(t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,n=0;n<t.redo.calls.length;n++)o.plotDo(e,t.redo.calls[n],t.redo.args[n]);e.undoQueue.inSequence=!1,e.autoplay=!1,e.undoQueue.index++}},o.plotDo=function(e,t,n){e.autoplay=!0,n=r(e,n),t.apply(null,n)},t.exports=o},{"../lib":697,"../plot_api/plot_config":720}],710:[function(e,t,n){"use strict";var r=e("./is_array"),i=e("./is_plain_object");t.exports=function e(t,n){for(var a=Object.keys(n||{}),o=0;o<a.length;o++){var s=a[o],c=n[s],l=t[s];if("_"===s.charAt(0)||"function"==typeof c){if(s in t)continue;t[s]=c}else if(r(c)&&r(l)&&i(c[0]))for(var u=0;u<c.length;u++)i(c[u])&&i(l[u])&&e(l[u],c[u]);else i(c)&&i(l)&&(e(l,c),Object.keys(l).length||delete t[s])}}},{"./is_array":698,"./is_plain_object":699}],711:[function(e,t,n){"use strict";function r(e,t){return e<t}function i(e,t){return e<=t}function a(e,t){return e>t}function o(e,t){return e>=t}var s=e("fast-isnumeric"),c=e("./loggers");n.findBin=function(e,t,n){if(s(t.start))return n?Math.ceil((e-t.start)/t.size)-1:Math.floor((e-t.start)/t.size);var l,u,d=0,p=t.length,f=0;for(u=t[t.length-1]>=t[0]?n?r:i:n?o:a;d<p&&f++<100;)l=Math.floor((d+p)/2),u(t[l],e)?d=l+1:p=l;return f>90&&c.log("Long binary search..."),d-1},n.sorterAsc=function(e,t){return e-t},n.sorterDes=function(e,t){return t-e},n.distinctVals=function(e){var t=e.slice();t.sort(n.sorterAsc);for(var r=t.length-1,i=t[r]-t[0]||1,a=i/(r||1)/1e4,o=[t[0]],s=0;s<r;s++)t[s+1]>t[s]+a&&(i=Math.min(i,t[s+1]-t[s]),o.push(t[s+1]));return{vals:o,minDiff:i}},n.roundUp=function(e,t,n){for(var r,i=0,a=t.length-1,o=0,s=n?0:1,c=n?1:0,l=n?Math.ceil:Math.floor;i<a&&o++<100;)r=l((i+a)/2),t[r]<=e?i=r+s:a=r-c;return t[i]}},{"./loggers":700,"fast-isnumeric":267}],712:[function(e,t,n){"use strict";t.exports=function(e,t){(e.attr("class")||"").split(" ").forEach(function(t){0===t.indexOf("cursor-")&&e.classed(t,!1)}),t&&e.classed("cursor-"+t,!0)}},{}],713:[function(e,t,n){"use strict";var r=e("fast-isnumeric");n.aggNums=function(e,t,i,a){var o,s;if(a||(a=i.length),r(t)||(t=!1),Array.isArray(i[0])){for(s=new Array(a),o=0;o<a;o++)s[o]=n.aggNums(e,t,i[o]);i=s}for(o=0;o<a;o++)r(t)?r(i[o])&&(t=e(+t,+i[o])):t=i[o];return t},n.len=function(e){return n.aggNums(function(e){return e+1},0,e)},n.mean=function(e,t){return t||(t=n.len(e)),n.aggNums(function(e,t){return e+t},0,e)/t},n.variance=function(e,t,i){return t||(t=n.len(e)),r(i)||(i=n.mean(e,t)),n.aggNums(function(e,t){return e+Math.pow(t-i,2)},0,e)/t},n.stdev=function(e,t,r){return Math.sqrt(n.variance(e,t,r))},n.interp=function(e,t){if(!r(t))throw"n should be a finite number";if((t=t*e.length-.5)<0)return e[0];if(t>e.length-1)return e[e.length-1];var n=t%1;return n*e[Math.ceil(t)]+(1-n)*e[Math.floor(t)]}},{"fast-isnumeric":267}],714:[function(e,t,n){"use strict";function r(e,t){return e.node().getBoundingClientRect()[t]}function i(e){return e.replace(/(<|&lt;|&#60;)/g,"\\lt ").replace(/(>|&gt;|&#62;)/g,"\\gt ")}function a(e,t,n){var r="math-output-"+f.randstr([],64),a=p.select("body").append("div").attr({id:r}).style({visibility:"hidden",position:"absolute"}).style({"font-size":t.fontSize+"px"}).text(i(e));MathJax.Hub.Queue(["Typeset",MathJax.Hub,a.node()],function(){
67var t=p.select("body").select("#MathJax_SVG_glyphs");if(a.select(".MathJax_SVG").empty()||!a.select("svg").node())f.log("There was an error in the tex syntax.",e),n();else{var r=a.select("svg").node().getBoundingClientRect();n(a.select(".MathJax_SVG"),t,r)}a.remove()})}function o(e,t){for(var n=e||"",r=0;r<t.length;r++){var i=t[r];n=n.replace(i.regExp,i.sub)}return n}function s(e){return o(e,x)}function c(e){return o(e,M)}function l(e){e=s(e).replace(_," ");for(var t=e.split(w).map(function(e){var t=e.match(A),r=t&&t[2].toLowerCase(),i=g[r];if(void 0!==i){if(t[1])return("a"===r?"</a>":"</tspan>")+(v[r]||"");if("br"===r)return"<br>";var a,o=t[4];if("a"===r){var s=o&&o.match(k),l=s&&(s[3]||s[4]);if(a="<a",l){var u=document.createElement("a");u.href=l,-1!==b.indexOf(u.protocol)&&(a+=' xlink:show="new" xlink:href="'+c(l)+'"')}}else a="<tspan","sup"!==r&&"sub"!==r||(a="&#x200b;"+a);var d=o&&o.match(S),p=d&&(d[3]||d[4]);return p?(p=c(p.replace($,"$1 fill:")),i&&(p+=";"+i)):i&&(p=i),p?a+' style="'+p+'">':a+">"}return n.xml_entity_encode(e).replace(/</g,"&lt;")}),r=[],i=t.indexOf("<br>");i>0;i=t.indexOf("<br>",i+1))r.push(i);var a=0;r.forEach(function(e){for(var n=e+a,r=t.slice(0,n),i="",o=r.length-1;o>=0;o--){var s=r[o].match(/<(\/?).*>/i);if(s&&"<br>"!==r[o]){s[1]||(i=r[o]);break}}i&&(t.splice(n+1,0,i),t.splice(n,0,"</tspan>"),a+=2)});var o=t.join(""),l=o.split(/<br>/gi);return l.length>1&&(t=l.map(function(e,t){return'<tspan class="line" dy="'+1.3*t+'em">'+e+"</tspan>"})),t.join("")}function u(e,t,n){var r,i,a,o=n.horizontalAlign,s=n.verticalAlign||"top",c=e.node().getBoundingClientRect(),l=t.node().getBoundingClientRect();return i="bottom"===s?function(){return c.bottom-r.height}:"middle"===s?function(){return c.top+(c.height-r.height)/2}:function(){return c.top},a="right"===o?function(){return c.right-r.width}:"center"===o?function(){return c.left+(c.width-r.width)/2}:function(){return c.left},function(){return r=this.node().getBoundingClientRect(),this.style({top:i()-l.top+"px",left:a()-l.left+"px","z-index":1e3}),this}}var d,p=e("d3"),f=e("../lib"),h=e("../constants/xmlns_namespaces"),m=e("../constants/string_mappings");n.getDOMParser=function(){if(d)return d;if(window.DOMParser)return d=new window.DOMParser;throw new Error("Cannot initialize DOMParser")},p.selection.prototype.appendSVG=function(e){for(var t=['<svg xmlns="',h.svg,'" ','xmlns:xlink="',h.xlink,'">',e,"</svg>"].join(""),r=n.getDOMParser(),i=r.parseFromString(t,"application/xml"),a=i.documentElement.firstChild;a;)this.node().appendChild(this.node().ownerDocument.importNode(a,!0)),a=a.nextSibling;return i.querySelector("parsererror")?(f.log(i.querySelector("parsererror div").textContent),null):p.select(this.node().lastChild)},n.html_entity_decode=function(e){var t=p.select("body").append("div").style({display:"none"}).html(""),n=e.replace(/(&[^;]*;)/gi,function(e){return"&lt;"===e?"&#60;":"&rt;"===e?"&#62;":-1!==e.indexOf("<")||-1!==e.indexOf(">")?"":t.html(e).text()});return t.remove(),n},n.xml_entity_encode=function(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&amp;")},n.convertToTspans=function(e,t){function n(){d.empty()||(h=s.attr("class")+"-math",d.select("svg."+h).remove()),e.text("").style({visibility:"inherit","white-space":"pre"}),u=e.appendSVG(o),u||e.text(i),e.select("a").size()&&e.style("pointer-events","all"),t&&t.call(s)}var i=e.text(),o=l(i),s=e,c=!s.attr("data-notex")&&o.match(/([^$]*)([$]+[^$]*[$]+)([^$]*)/),u=i,d=p.select(s.node().parentNode);if(!d.empty()){var h=s.attr("class")?s.attr("class").split(" ")[0]:"text";h+="-math",d.selectAll("svg."+h).remove(),d.selectAll("g."+h+"-group").remove(),e.style({visibility:null});for(var m=e.node();m&&m.removeAttribute;m=m.parentNode)m.removeAttribute("data-bb");if(c){var g=f.getPlotDiv(s.node());(g&&g._promises||[]).push(new Promise(function(e){s.style({visibility:"hidden"});var i={fontSize:parseInt(s.style("font-size"),10)};a(c[2],i,function(i,a,o){d.selectAll("svg."+h).remove(),d.selectAll("g."+h+"-group").remove();var c=i&&i.select("svg");if(!c||!c.node())return n(),void e();var l=d.append("g").classed(h+"-group",!0).attr({"pointer-events":"none"});l.node().appendChild(c.node()),a&&a.node()&&c.node().insertBefore(a.node().cloneNode(!0),c.node().firstChild),c.attr({class:h,height:o.height,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var u=s.style("fill")||"black";c.select("g").attr({fill:u,stroke:u});var p=r(c,"width"),f=r(c,"height"),m=+s.attr("x")-p*{start:0,middle:.5,end:1}[s.attr("text-anchor")||"start"],g=parseInt(s.style("font-size"),10)||r(s,"height"),v=-g/4;"y"===h[0]?(l.attr({transform:"rotate("+[-90,+s.attr("x"),+s.attr("y")]+") translate("+[-p/2,v-f/2]+")"}),c.attr({x:+s.attr("x"),y:+s.attr("y")})):"l"===h[0]?c.attr({x:s.attr("x"),y:v-f/2}):"a"===h[0]?c.attr({x:0,y:v}):c.attr({x:m,y:+s.attr("y")+v-f/2}),t&&t.call(s,l),e(l)})}))}else n();return e}};var g={sup:'font-size:70%" dy="-0.6em',sub:'font-size:70%" dy="0.3em',b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",br:"",em:"font-style:italic;font-weight:bold"},v={sup:'<tspan dy="0.42em">&#x200b;</tspan>',sub:'<tspan dy="-0.21em">&#x200b;</tspan>'},b=["http:","https:","mailto:"],y=new RegExp("</?("+Object.keys(g).join("|")+")( [^>]*)?/?>","g"),x=Object.keys(m.entityToUnicode).map(function(e){return{regExp:new RegExp("&"+e+";","g"),sub:m.entityToUnicode[e]}}),M=Object.keys(m.unicodeToEntity).map(function(e){return{regExp:new RegExp(e,"g"),sub:"&"+m.unicodeToEntity[e]+";"}}),_=/(\r\n?|\n)/g,w=/(<[^<>]*>)/,A=/<(\/?)([^ >]*)(\s+(.*))?>/i,S=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,k=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,$=/(^|;)\s*color:/;n.plainText=function(e){return(e||"").replace(y," ")},n.makeEditable=function(e,t,n){function r(){a(),o.style({opacity:0});var e,t=l.attr("class");(e=t?"."+t.split(" ")[0]+"-math-group":"[class*=-math-group]")&&p.select(o.node().parentNode).select(e).style({opacity:0})}function i(e){var t=e.node(),n=document.createRange();n.selectNodeContents(t);var r=window.getSelection();r.removeAllRanges(),r.addRange(n),t.focus()}function a(){var e=f.getPlotDiv(o.node()),t=p.select(e),r=t.select(".svg-container"),a=r.append("div");a.classed("plugin-editable editable",!0).style({position:"absolute","font-family":o.style("font-family")||"Arial","font-size":o.style("font-size")||12,color:n.fill||o.style("fill")||"black",opacity:1,"background-color":n.background||"transparent",outline:"#ffffff33 1px solid",margin:[-parseFloat(o.style("font-size"))/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(n.text||o.attr("data-unformatted")).call(u(o,r,n)).on("blur",function(){e._editing=!1,o.text(this.textContent).style({opacity:1});var t,n=p.select(this).attr("class");(t=n?"."+n.split(" ")[0]+"-math-group":"[class*=-math-group]")&&p.select(o.node().parentNode).select(t).style({opacity:0});var r=this.textContent;p.select(this).transition().duration(0).remove(),p.select(document).on("mouseup",null),s.edit.call(o,r)}).on("focus",function(){var t=this;e._editing=!0,p.select(document).on("mouseup",function(){if(p.event.target===t)return!1;document.activeElement===a.node()&&a.node().blur()})}).on("keyup",function(){27===p.event.which?(e._editing=!1,o.style({opacity:1}),p.select(this).style({opacity:0}).on("blur",function(){return!1}).transition().remove(),s.cancel.call(o,this.textContent)):(s.input.call(o,this.textContent),p.select(this).call(u(o,r,n)))}).on("keydown",function(){13===p.event.which&&this.blur()}).call(i)}n||(n={});var o=this,s=p.dispatch("edit","input","cancel"),c=p.select(this.node()).style({"pointer-events":"all"}),l=t||c;return t&&c.style({"pointer-events":"none"}),n.immediate?r():l.on("click",r),p.rebind(this,s,"on")}},{"../constants/string_mappings":684,"../constants/xmlns_namespaces":685,"../lib":697,d3:265}],715:[function(e,t,n){"use strict";var r=e("fast-isnumeric");t.exports=function(e,t){if(e>0)return Math.log(e)/Math.LN10;var n=Math.log(Math.min(t[0],t[1]))/Math.LN10;return r(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}},{"fast-isnumeric":267}],716:[function(e,t,n){"use strict";var r=e("../registry");t.exports=function(e){for(var t,n,i=r.layoutArrayContainers,a=r.layoutArrayRegexes,o=e.split("[")[0],s=0;s<a.length;s++)if((n=e.match(a[s]))&&0===n.index){t=n[0];break}if(t||(t=i[i.indexOf(o)]),!t)return!1;var c=e.substr(t.length);return c?!!(n=c.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/))&&{array:t,index:Number(n[1]),property:n[3]||""}:{array:t,index:"",property:""}}},{"../registry":767}],717:[function(e,t,n){"use strict";function r(e,t){var n=e[t],r=t.charAt(0);n&&"paper"!==n&&(e[t]=p.cleanId(n,r))}function i(e){var t="middle",n="center";return-1!==e.indexOf("top")?t="top":-1!==e.indexOf("bottom")&&(t="bottom"),-1!==e.indexOf("left")?n="left":-1!==e.indexOf("right")&&(n="right"),t+" "+n}function a(e,t){return t in e&&"object"===_typeof2(e[t])&&0===Object.keys(e[t]).length}function o(e){var t=e.search(h);if(t>0)return e.substr(0,t)}var s=e("fast-isnumeric"),c=e("gl-mat4/fromQuat"),l=e("../registry"),u=e("../lib"),d=e("../plots/plots"),p=e("../plots/cartesian/axes"),f=e("../components/color");n.getGraphDiv=function(e){var t;if("string"==typeof e){if(null===(t=document.getElementById(e)))throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}if(null===e||void 0===e)throw new Error("DOM element provided is null or undefined");return e},n.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&u.log("Clearing previous rejected promises from queue."),e._promises=[]},n.cleanLayout=function(e){var t,n;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1);var i=p.list({_fullLayout:e});for(t=0;t<i.length;t++){var o=i[t];o.anchor&&"free"!==o.anchor&&(o.anchor=p.cleanId(o.anchor)),o.overlaying&&(o.overlaying=p.cleanId(o.overlaying)),o.type||(o.isdate?o.type="date":o.islog?o.type="log":!1===o.isdate&&!1===o.islog&&(o.type="linear")),"withzero"!==o.autorange&&"tozero"!==o.autorange||(o.autorange=!0,o.rangemode="tozero"),delete o.islog,delete o.isdate,delete o.categories,a(o,"domain")&&delete o.domain,void 0!==o.autotick&&(void 0===o.tickmode&&(o.tickmode=o.autotick?"auto":"linear"),delete o.autotick)}var s=Array.isArray(e.annotations)?e.annotations.length:0;for(t=0;t<s;t++){var l=e.annotations[t];u.isPlainObject(l)&&(l.ref&&("paper"===l.ref?(l.xref="paper",l.yref="paper"):"data"===l.ref&&(l.xref="x",l.yref="y"),delete l.ref),r(l,"xref"),r(l,"yref"))}var h=Array.isArray(e.shapes)?e.shapes.length:0;for(t=0;t<h;t++){var m=e.shapes[t];u.isPlainObject(m)&&(r(m,"xref"),r(m,"yref"))}var g=e.legend;g&&(g.x>3?(g.x=1.02,g.xanchor="left"):g.x<-2&&(g.x=-.02,g.xanchor="right"),g.y>3?(g.y=1.02,g.yanchor="bottom"):g.y<-2&&(g.y=-.02,g.yanchor="top")),"rotate"===e.dragmode&&(e.dragmode="orbit"),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var v=d.getSubplotIds(e,"gl3d");for(t=0;t<v.length;t++){var b=e[v[t]],y=b.cameraposition;if(Array.isArray(y)&&4===y[0].length){var x=y[0],M=y[1],_=y[2],w=c([],x),A=[];for(n=0;n<3;++n)A[n]=M[t]+_*w[2+4*n];b.camera={eye:{x:A[0],y:A[1],z:A[2]},center:{x:M[0],y:M[1],z:M[2]},up:{x:w[1],y:w[5],z:w[9]}},delete b.cameraposition}}return f.clean(e),e},n.cleanData=function(e,t){for(var r=[],o=(e.concat(Array.isArray(t)?t:[]).filter(function(e){return"uid"in e}).map(function(e){return e.uid})),s=0;s<e.length;s++){var c,h=e[s];if(!("uid"in h)||-1!==r.indexOf(h.uid)){var m;for(c=0;c<100&&(m=u.randstr(o),-1!==r.indexOf(m));c++);h.uid=u.randstr(o),o.push(h.uid)}if(r.push(h.uid),"histogramy"===h.type&&"xbins"in h&&!("ybins"in h)&&(h.ybins=h.xbins,delete h.xbins),h.error_y&&"opacity"in h.error_y){var g=f.defaults,v=h.error_y.color||(l.traceIs(h,"bar")?f.defaultLine:g[s%g.length]);h.error_y.color=f.addOpacity(f.rgb(v),f.opacity(v)*h.error_y.opacity),delete h.error_y.opacity}if("bardir"in h&&("h"!==h.bardir||!l.traceIs(h,"bar")&&"histogram"!==h.type.substr(0,9)||(h.orientation="h",n.swapXYData(h)),delete h.bardir),"histogramy"===h.type&&n.swapXYData(h),"histogramx"!==h.type&&"histogramy"!==h.type||(h.type="histogram"),"scl"in h&&(h.colorscale=h.scl,delete h.scl),"reversescl"in h&&(h.reversescale=h.reversescl,delete h.reversescl),h.xaxis&&(h.xaxis=p.cleanId(h.xaxis,"x")),h.yaxis&&(h.yaxis=p.cleanId(h.yaxis,"y")),l.traceIs(h,"gl3d")&&h.scene&&(h.scene=d.subplotsRegistry.gl3d.cleanId(h.scene)),l.traceIs(h,"pie")||l.traceIs(h,"bar")||(Array.isArray(h.textposition)?h.textposition=h.textposition.map(i):h.textposition&&(h.textposition=i(h.textposition))),l.traceIs(h,"2dMap")&&("YIGnBu"===h.colorscale&&(h.colorscale="YlGnBu"),"YIOrRd"===h.colorscale&&(h.colorscale="YlOrRd")),l.traceIs(h,"markerColorscale")&&h.marker){var b=h.marker;"YIGnBu"===b.colorscale&&(b.colorscale="YlGnBu"),"YIOrRd"===b.colorscale&&(b.colorscale="YlOrRd")}if("surface"===h.type&&u.isPlainObject(h.contours)){var y=["x","y","z"];for(c=0;c<y.length;c++){var x=h.contours[y[c]];u.isPlainObject(x)&&(x.highlightColor&&(x.highlightcolor=x.highlightColor,delete x.highlightColor),x.highlightWidth&&(x.highlightwidth=x.highlightWidth,delete x.highlightWidth))}}if(Array.isArray(h.transforms)){var M=h.transforms;for(c=0;c<M.length;c++){var _=M[c];u.isPlainObject(_)&&("filter"===_.type&&(_.filtersrc&&(_.target=_.filtersrc,delete _.filtersrc),_.calendar&&(_.valuecalendar||(_.valuecalendar=_.calendar),delete _.calendar)))}}a(h,"line")&&delete h.line,"marker"in h&&(a(h.marker,"line")&&delete h.marker.line,a(h,"marker")&&delete h.marker),f.clean(h)}},n.swapXYData=function(e){var t;if(u.swapAttrs(e,["?","?0","d?","?bins","nbins?","autobin?","?src","error_?"]),Array.isArray(e.z)&&Array.isArray(e.z[0])&&(e.transpose?delete e.transpose:e.transpose=!0),e.error_x&&e.error_y){var n=e.error_y,r="copy_ystyle"in n?n.copy_ystyle:!(n.color||n.thickness||n.width);u.swapAttrs(e,["error_?.copy_ystyle"]),r&&u.swapAttrs(e,["error_?.color","error_?.thickness","error_?.width"])}if(e.hoverinfo){var i=e.hoverinfo.split("+");for(t=0;t<i.length;t++)"x"===i[t]?i[t]="y":"y"===i[t]&&(i[t]="x");e.hoverinfo=i.join("+")}},n.coerceTraceIndices=function(e,t){return s(t)?[t]:Array.isArray(t)&&t.length?t:e.data.map(function(e,t){return t})},n.manageArrayContainers=function(e,t,n){var r=e.obj,i=e.parts,a=i.length,o=i[a-1],c=s(o);if(c&&null===t){var l=i.slice(0,a-1).join(".");u.nestedProperty(r,l).get().splice(o,1)}else c&&void 0===e.get()?(void 0===e.get()&&(n[e.astr]=null),e.set(t)):e.set(t)};var h=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;n.hasParent=function(e,t){for(var n=o(t);n;){if(n in e)return!0;n=o(n)}return!1}},{"../components/color":586,"../lib":697,"../plots/cartesian/axes":732,"../plots/plots":760,"../registry":767,"fast-isnumeric":267,"gl-mat4/fromQuat":269}],718:[function(e,t,n){"use strict";var r=e("../lib/nested_property"),i=e("../lib/is_plain_object"),a=e("../lib/noop"),o=e("../lib/loggers"),s=e("../lib/search").sorterAsc,c=e("../registry");n.containerArrayMatch=e("./container_array_match");var l=n.isAddVal=function(e){return"add"===e||i(e)},u=n.isRemoveVal=function(e){return null===e||"remove"===e};n.applyContainerArrayChanges=function(e,t,n,i){var d=t.astr,p=c.getComponentMethod(d,"supplyLayoutDefaults"),f=c.getComponentMethod(d,"draw"),h=c.getComponentMethod(d,"drawOne"),m=i.replot||i.recalc||p===a||f===a,g=e.layout,v=e._fullLayout;if(n[""]){Object.keys(n).length>1&&o.warn("Full array edits are incompatible with other edits",d);var b=n[""][""];if(u(b))t.set(null);else{if(!Array.isArray(b))return o.warn("Unrecognized full array edit value",d,b),!0;t.set(b)}return!m&&(p(g,v),f(e),!0)}var y,x,M,_,w,A,S,k=Object.keys(n).map(Number).sort(s),$=t.get(),T=$||[],C=r(v,d).get(),E=[],O=-1,z=T.length;for(y=0;y<k.length;y++)if(M=k[y],_=n[M],w=Object.keys(_),A=_[""],S=l(A),M<0||M>T.length-(S?0:1))o.warn("index out of range",d,M);else if(void 0!==A)w.length>1&&o.warn("Insertion & removal are incompatible with edits to the same index.",d,M),u(A)?E.push(M):S?("add"===A&&(A={}),T.splice(M,0,A),C&&C.splice(M,0,{})):o.warn("Unrecognized full object edit value",d,M,A),-1===O&&(O=M);else for(x=0;x<w.length;x++)r(T[M],w[x]).set(_[w[x]]);for(y=E.length-1;y>=0;y--)T.splice(E[y],1),C&&C.splice(E[y],1);if(T.length?$||t.set(T):t.set(null),m)return!1;if(p(g,v),h!==a){var L;if(-1===O)L=k;else{for(z=Math.max(T.length,z),L=[],y=0;y<k.length&&!((M=k[y])>=O);y++)L.push(M);for(y=O;y<z;y++)L.push(y)}for(y=0;y<L.length;y++)h(e,L[y])}else f(e);return!0}},{"../lib/is_plain_object":699,"../lib/loggers":700,"../lib/nested_property":703,"../lib/noop":704,"../lib/search":711,"../registry":767,"./container_array_match":716}],719:[function(e,t,n){"use strict";function r(e,t){e._fullLayout._paperdiv.style("background","white"),b.defaultConfig.setBackground(e,t)}function i(e,t){e._context||(e._context=y.extendFlat({},b.defaultConfig));var n=e._context;t&&(Object.keys(t).forEach(function(e){e in n&&("setBackground"===e&&"opaque"===t[e]?n[e]=r:n[e]=t[e])}),t.plot3dPixelRatio&&!n.plotGlPixelRatio&&(n.plotGlPixelRatio=n.plot3dPixelRatio)),n.staticPlot&&(n.editable=!1,n.autosizable=!1,n.scrollZoom=!1,n.doubleClick=!1,n.showTips=!1,n.showLink=!1,n.displayModeBar=!1)}function a(e,t,n){var r=g.select(e).selectAll(".plot-container").data([0]);r.enter().insert("div",":first-child").classed("plot-container plotly",!0);var i=r.selectAll(".svg-container").data([0]);i.enter().append("div").classed("svg-container",!0).style("position","relative"),i.html(""),t&&(e.data=t),n&&(e.layout=n),A.manager.fillLayout(e),i.style({width:e._fullLayout.width+"px",height:e._fullLayout.height+"px"}),e.framework=A.manager.framework(e),e.framework({data:e.data,layout:e.layout},i.node()),e.framework.setUndoPoint();var a=e.framework.svg(),o=1,s=e._fullLayout.title;""!==s&&s||(o=0);var c=function(){this.call(C.convertToTspans)},l=a.select(".title-group text").call(c);if(e._context.editable){l.attr({"data-unformatted":s}),s&&"Click to enter title"!==s||(o=.2,l.attr({"data-unformatted":"Click to enter title"}).text("Click to enter title").style({opacity:o}).on("mouseover.opacity",function(){g.select(this).transition().duration(100).style("opacity",1)}).on("mouseout.opacity",function(){g.select(this).transition().duration(1e3).style("opacity",0)}));var u=function t(){this.call(C.makeEditable).on("edit",function(n){e.framework({layout:{title:n}}),this.attr({"data-unformatted":n}).text(n).call(c),this.call(t)}).on("cancel",function(){var e=this.attr("data-unformatted");this.text(e).call(c)})};l.call(u)}return e._context.setBackground(e,e._fullLayout.paper_bgcolor),w.addLinks(e),Promise.resolve()}function o(e,t){var n,r,i=t+1,a=[];for(n=0;n<e.length;n++)r=e[n],r<0?a.push(i+r):a.push(r);return a}function s(e,t,n){var r,i;for(r=0;r<t.length;r++){if((i=t[r])!==parseInt(i,10))throw new Error("all values in "+n+" must be integers");if(i>=e.data.length||i<-e.data.length)throw new Error(n+" must be valid indices for gd.data.");if(t.indexOf(i,r+1)>-1||i>=0&&t.indexOf(-e.data.length+i)>-1||i<0&&t.indexOf(e.data.length+i)>-1)throw new Error("each index in "+n+" must be unique.")}}function c(e,t,n){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(void 0===t)throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),s(e,t,"currentIndices"),void 0===n||Array.isArray(n)||(n=[n]),void 0!==n&&s(e,n,"newIndices"),void 0!==n&&t.length!==n.length)throw new Error("current and new indices must be of equal length.")}function l(e,t,n){var r,i;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if(void 0===t)throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),r=0;r<t.length;r++)if(i=t[r],"object"!==(void 0===i?"undefined":_typeof2(i))||Array.isArray(i)||null===i)throw new Error("all values in traces array must be non-array objects");if(void 0===n||Array.isArray(n)||(n=[n]),void 0!==n&&n.length!==t.length)throw new Error("if indices is specified, traces.length must equal indices.length")}function u(e,t,n,r){var i=y.isPlainObject(r);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!y.isPlainObject(t))throw new Error("update must be a key:value object");if(void 0===n)throw new Error("indices must be an integer or array of integers");s(e,n,"indices");for(var a in t){if(!Array.isArray(t[a])||t[a].length!==n.length)throw new Error("attribute "+a+" must be an array of length equal to indices array length");if(i&&(!(a in r)||!Array.isArray(r[a])||r[a].length!==t[a].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}}function d(e,t,n,r){var i,a,s,c,l,u=y.isPlainObject(r),d=[];Array.isArray(n)||(n=[n]),n=o(n,e.data.length-1);for(var p in t)for(var f=0;f<n.length;f++){if(i=e.data[n[f]],s=y.nestedProperty(i,p),a=s.get(),c=t[p][f],!Array.isArray(c))throw new Error("attribute: "+p+" index: "+f+" must be an array");if(!Array.isArray(a))throw new Error("cannot extend missing or non-array attribute: "+p);l=u?r[p][f]:r,v(l)||(l=-1),d.push({prop:s,target:a,insert:c,maxp:Math.floor(l)})}return d}function p(e,t,n,r,i,a){u(e,t,n,r);for(var o,s,c,l=d(e,t,n,r),p=[],f={},h={},m=0;m<l.length;m++)s=l[m].prop,c=l[m].maxp,o=i(l[m].target,l[m].insert),c>=0&&c<o.length&&(p=a(o,c)),c=l[m].target.length,s.set(o),Array.isArray(f[s.astr])||(f[s.astr]=[]),Array.isArray(h[s.astr])||(h[s.astr]=[]),f[s.astr].push(p),h[s.astr].push(c);return{update:f,maxPoints:h}}function f(e,t,n){function r(){return f.map(function(){})}function i(e){var t=b.Axes.id2name(e);-1===l.indexOf(t)&&l.push(t)}function a(e){return"LAYOUT"+e+".autorange"}function o(e){return"LAYOUT"+e+".range"}function s(n,i,a){if(Array.isArray(n))return void n.forEach(function(e){s(e,i,a)});if(!(n in t||O.hasParent(t,n))){var o;o="LAYOUT"===n.substr(0,6)?y.nestedProperty(e.layout,n.replace("LAYOUT","")):y.nestedProperty(p[f[a]],n),n in g||(g[n]=r()),void 0===g[n][a]&&(g[n][a]=o.get()),void 0!==i&&o.set(i)}}var c,l,u=e._fullLayout,d=e._fullData,p=e.data,f=O.coerceTraceIndices(e,n),h={docalc:!1,docalcAutorange:!1,doplot:!1,dostyle:!1,docolorbars:!1,autorangeOn:!1,clearCalc:!1,fullReplot:!1},m={},g={},v={},x=["mode","visible","type","orientation","fill","histfunc","histnorm","text","x","y","z","a","b","c","open","high","low","close","base","width","offset","xtype","x0","dx","ytype","y0","dy","xaxis","yaxis","line.width","connectgaps","transpose","zsmooth","showscale","marker.showscale","zauto","marker.cauto","autocolorscale","marker.autocolorscale","colorscale","marker.colorscale","reversescale","marker.reversescale","autobinx","nbinsx","xbins","xbins.start","xbins.end","xbins.size","autobiny","nbinsy","ybins","ybins.start","ybins.end","ybins.size","autocontour","ncontours","contours","contours.coloring","contours.operation","contours.value","contours.type","contours.value[0]","contours.value[1]","error_y","error_y.visible","error_y.value","error_y.type","error_y.traceref","error_y.array","error_y.symmetric","error_y.arrayminus","error_y.valueminus","error_y.tracerefminus","error_x","error_x.visible","error_x.value","error_x.type","error_x.traceref","error_x.array","error_x.symmetric","error_x.arrayminus","error_x.valueminus","error_x.tracerefminus","swapxy","swapxyaxes","orientationaxes","marker.colors","values","labels","label0","dlabel","sort","textinfo","textposition","textfont.size","textfont.family","textfont.color","insidetextfont.size","insidetextfont.family","insidetextfont.color","outsidetextfont.size","outsidetextfont.family","outsidetextfont.color","hole","scalegroup","domain","domain.x","domain.y","domain.x[0]","domain.x[1]","domain.y[0]","domain.y[1]","tilt","tiltaxis","depth","direction","rotation","pull","line.showscale","line.cauto","line.autocolorscale","line.reversescale","marker.line.showscale","marker.line.cauto","marker.line.autocolorscale","marker.line.reversescale","xcalendar","ycalendar","cumulative","cumulative.enabled","cumulative.direction","cumulative.currentbin","a0","da","b0","db","atype","btype","cheaterslope","carpet","sum"],M=["color","smoothing","title","titlefont","titlefont.size","titlefont.family","titlefont.color","titleoffset","type","autorange","rangemode","range","fixedrange","cheatertype","tickmode","nticks","tickvals","ticktext","ticks","mirror","ticklen","tickwidth","tickcolor","showticklabels","tickfont","tickfont.size","tickfont.family","tickfont.color","tickprefix","showtickprefix","ticksuffix","showticksuffix","showexponent","exponentformat","separatethousands","tickformat","categoryorder","categoryarray","labelpadding","labelprefix","labelsuffix","labelfont","labelfont.family","labelfont.size","labelfont.color","showline","linecolor","linewidth","gridcolor","gridwidth","showgrid","minorgridcount","minorgridwidth","minorgridcolor","startline","startlinecolor","startlinewidth","endline","endlinewidth","endlinecolor","tick0","dtick","arraytick0","arraydtick","hoverformat","tickangle"];for(c=0;c<M.length;c++)x.push("aaxis."+M[c]),x.push("baxis."+M[c]);for(c=0;c<f.length;c++)if(_.traceIs(d[f[c]],"box")){x.push("name");break}var A=["marker","marker.size","textfont","boxpoints","jitter","pointpos","whiskerwidth","boxmean","tickwidth"],S=["zmin","zmax","zauto","xgap","ygap","marker.cmin","marker.cmax","marker.cauto","line.cmin","line.cmax","marker.line.cmin","marker.line.cmax","contours.start","contours.end","contours.size","contours.showlines","line","line.smoothing","line.shape","error_y.width","error_x.width","error_x.copy_ystyle","marker.maxdisplayed"],k=["type","x","y","x0","y0","orientation","xaxis","yaxis"],$=["zmin","zmax"],T=["xbins.start","xbins.end","xbins.size"],C=["ybins.start","ybins.end","ybins.size"],E=["contours.start","contours.end","contours.size"],z=["cartesian","pie","ternary"];u._basePlotModules.forEach(function(e){-1===z.indexOf(e.name)&&(h.docalc=!0)});for(var L in t){if(O.hasParent(t,L))throw new Error("cannot set "+L+"and a parent attribute simultaneously");var N,P,I,D,R,j=t[L];if(m[L]=j,"LAYOUT"!==L.substr(0,6)){for(g[L]=r(),c=0;c<f.length;c++)if(N=p[f[c]],P=d[f[c]],I=y.nestedProperty(N,L),D=I.get(),void 0!==(R=Array.isArray(j)?j[c%j.length]:j)){if(-1!==$.indexOf(L))s("zauto",!1,c);else if("colorscale"===L)s("autocolorscale",!1,c);else if("autocolorscale"===L)s("colorscale",void 0,c);else if("marker.colorscale"===L)s("marker.autocolorscale",!1,c);else if("marker.autocolorscale"===L)s("marker.colorscale",void 0,c);else if("zauto"===L)s($,void 0,c);else if(-1!==T.indexOf(L))s("autobinx",!1,c);else if("autobinx"===L)s(T,void 0,c);else if(-1!==C.indexOf(L))s("autobiny",!1,c);else if("autobiny"===L)s(C,void 0,c);else if(-1!==E.indexOf(L))s("autocontour",!1,c);else if("autocontour"===L)s(E,void 0,c);else if(-1!==["x0","dx"].indexOf(L)&&P.x&&"scaled"!==P.xtype)s("xtype","scaled",c);else if(-1!==["y0","dy"].indexOf(L)&&P.y&&"scaled"!==P.ytype)s("ytype","scaled",c);else if("colorbar.thicknessmode"===L&&I.get()!==R&&-1!==["fraction","pixels"].indexOf(R)&&P.colorbar){var q=-1!==["top","bottom"].indexOf(P.colorbar.orient)?u.height-u.margin.t-u.margin.b:u.width-u.margin.l-u.margin.r;s("colorbar.thickness",P.colorbar.thickness*("fraction"===R?1/q:q),c)}else if("colorbar.lenmode"===L&&I.get()!==R&&-1!==["fraction","pixels"].indexOf(R)&&P.colorbar){var B=-1!==["top","bottom"].indexOf(P.colorbar.orient)?u.width-u.margin.l-u.margin.r:u.height-u.margin.t-u.margin.b;s("colorbar.len",P.colorbar.len*("fraction"===R?1/B:B),c)}else"colorbar.tick0"===L||"colorbar.dtick"===L?s("colorbar.tickmode","linear",c):"colorbar.tickmode"===L&&s(["colorbar.tick0","colorbar.dtick"],void 0,c);if("type"===L&&"pie"===R!=("pie"===D)){var W="x",H="y";"bar"!==R&&"bar"!==D||"h"!==N.orientation||(W="y",H="x"),y.swapAttrs(N,["?","?src"],"labels",W),y.swapAttrs(N,["d?","?0"],"label",W),y.swapAttrs(N,["?","?src"],"values",H),"pie"===D?(y.nestedProperty(N,"marker.color").set(y.nestedProperty(N,"marker.colors").get()),u._pielayer.selectAll("g.trace").remove()):_.traceIs(N,"cartesian")&&(y.nestedProperty(N,"marker.colors").set(y.nestedProperty(N,"marker.color").get()),v[N.xaxis||"x"]=!0,v[N.yaxis||"y"]=!0)}g[L][c]=D;var F=["swapxy","swapxyaxes","orientation","orientationaxes"];if(-1!==F.indexOf(L)){if("orientation"===L){if(I.set(R),I.get()===g[L][c])continue}else"orientationaxes"===L&&(N.orientation={v:"h",h:"v"}[P.orientation]);O.swapXYData(N)}else if(-1!==w.dataArrayContainers.indexOf(I.parts[0]))O.manageArrayContainers(I,R,g),h.docalc=!0;else{var X=(P._module||{}).attributes||{},U=y.nestedProperty(X,L).get()||y.nestedProperty(w.attributes,L).get()||{};U.valType||(h.docalc=!0),U.arrayOk&&(Array.isArray(R)||Array.isArray(D))&&(h.docalc=!0),"docalc"===U.editType&&(h.docalc=!0),I.set(R)}}if(-1!==["swapxyaxes","orientationaxes"].indexOf(L)&&b.Axes.swap(e,f),"orientationaxes"===L){var V=y.nestedProperty(e.layout,"hovermode");"x"===V.get()?V.set("y"):"y"===V.get()&&V.set("x")}-1!==f.indexOf(0)&&-1!==k.indexOf(L)&&(b.Axes.clearTypes(e,f),h.docalc=!0),-1!==["autobinx","autobiny","zauto"].indexOf(L)&&!1===R||(h.dostyle=!0),(-1!==["colorbar","line"].indexOf(I.parts[0])||"marker"===I.parts[0]&&"colorbar"===I.parts[1])&&(h.docolorbars=!0);var G=L.indexOf("["),Y=-1===G?L:L.substr(0,G);if(-1!==x.indexOf(Y)){if(-1!==["orientation","type"].indexOf(L)){for(l=[],c=0;c<f.length;c++){var Q=p[f[c]];_.traceIs(Q,"cartesian")&&(i(Q.xaxis||"x"),i(Q.yaxis||"y"),"type"===L&&s(["autobinx","autobiny"],!0,c))}s(l.map(a),!0,0),s(l.map(o),[0,1],0)}h.docalc=!0}else-1!==S.indexOf(Y)?h.doplot=!0:0===Y.indexOf("aaxis")||0===Y.indexOf("baxis")?h.doplot=!0:-1!==A.indexOf(Y)&&(h.docalcAutorange=!0)}else I=y.nestedProperty(e.layout,L.replace("LAYOUT","")),g[L]=[I.get()],I.set(Array.isArray(j)?j[0]:j),h.docalc=!0}b.Axes.list(e).forEach(function(e){e.autorange&&(h.autorangeOn=!0)});var K=Object.keys(v);e:for(c=0;c<K.length;c++){for(var Z=K[c],J=Z.charAt(0),ee=J+"axis",te=0;te<p.length;te++)if(_.traceIs(p[te],"cartesian")&&(p[te][ee]||J)===Z)continue e;s("LAYOUT"+b.Axes.id2name(Z),null,0)}return(h.docalc||h.docalcAutorange&&h.autorangeOn)&&(h.clearCalc=!0),(h.docalc||h.doplot||h.docalcAutorange)&&(h.fullReplot=!0),{flags:h,undoit:g,redoit:m,traces:f,eventData:y.extendDeepNoArrays([],[m,f])}}function h(e,t){function n(e,r){if(Array.isArray(e))return void e.forEach(function(e){n(e,r)});if(!(e in t||O.hasParent(t,e))){var i=y.nestedProperty(c,e);e in x||(x[e]=i.get()),void 0!==r&&i.set(r)}}function r(t,n){if(!y.isPlainObject(t))return!1;var r=t[n+"ref"]||n,i=b.Axes.getFromId(e,r);return i||r.charAt(0)!==n||(i=b.Axes.getFromId(e,n)),(i||{}).autorange}function i(e){var t=P.name2id(e.split(".")[0]);M[t]=1}var a,o,s,c=e.layout,l=e._fullLayout,u=Object.keys(t),d=b.Axes.list(e),p={};for(o=0;o<u.length;o++)if(0===u[o].indexOf("allaxes")){for(s=0;s<d.length;s++){var f=d[s]._id.substr(1),h=-1!==f.indexOf("scene")?f+".":"",m=u[o].replace("allaxes",h+d[s]._name);t[m]||(t[m]=t[u[o]])}delete t[u[o]]}var g={dolegend:!1,doticks:!1,dolayoutstyle:!1,doplot:!1,docalc:!1,domodebar:!1,docamera:!1,layoutReplot:!1},v={},x={},M={};for(var A in t){if(O.hasParent(t,A))throw new Error("cannot set "+A+"and a parent attribute simultaneously");var S=y.nestedProperty(c,A),k=t[A],$=S.parts.length,T="string"==typeof S.parts[$-1]?$-1:$-2,C=S.parts[0],z=S.parts[T],N=S.parts[T-1]+"."+z,I=S.parts.slice(0,T).join("."),D=y.nestedProperty(e.layout,I).get(),R=y.nestedProperty(l,I).get();if(void 0!==k){if(v[A]=k,x[A]="reverse"===z?k:S.get(),-1!==["width","height"].indexOf(A)&&null===k?l[A]=e._initialAutoSize[A]:N.match(/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/)?(n(I+".autorange",!1),i(N)):N.match(/^[xyz]axis[0-9]*\.autorange$/)?(n([I+".range[0]",I+".range[1]"],void 0),
68i(N)):N.match(/^aspectratio\.[xyz]$/)?n(C+".aspectmode","manual"):N.match(/^aspectmode$/)?n([I+".x",I+".y",I+".z"],void 0):"tick0"===z||"dtick"===z?n(I+".tickmode","linear"):"tickmode"===z?n([I+".tick0",I+".dtick"],void 0):/[xy]axis[0-9]*?$/.test(z)&&!Object.keys(k||{}).length?g.docalc=!0:/[xy]axis[0-9]*\.categoryorder$/.test(N)?g.docalc=!0:/[xy]axis[0-9]*\.categoryarray/.test(N)&&(g.docalc=!0),-1!==N.indexOf("rangeslider")&&(g.docalc=!0),"type"===z){var j=D,q="linear"===R.type&&"log"===k,B="log"===R.type&&"linear"===k;if(q||B){if(j&&j.range)if(R.autorange)q&&(j.range=j.range[1]>j.range[0]?[1,2]:[2,1]);else{var W=j.range[0],H=j.range[1];q?(W<=0&&H<=0&&n(I+".autorange",!0),W<=0?W=H/1e6:H<=0&&(H=W/1e6),n(I+".range[0]",Math.log(W)/Math.LN10),n(I+".range[1]",Math.log(H)/Math.LN10)):(n(I+".range[0]",Math.pow(10,W)),n(I+".range[1]",Math.pow(10,H)))}else n(I+".autorange",!0);_.getComponentMethod("annotations","convertCoords")(e,R,k,n),_.getComponentMethod("images","convertCoords")(e,R,k,n)}else n(I+".autorange",!0)}else if(z.match(L.AX_NAME_PATTERN)){var F=y.nestedProperty(l,A).get(),X=(k||{}).type;X&&"-"!==X||(X="linear"),_.getComponentMethod("annotations","convertCoords")(e,F,X,n),_.getComponentMethod("images","convertCoords")(e,F,X,n)}var U=E.containerArrayMatch(A);if(U){a=U.array,o=U.index;var V=U.property,G=y.nestedProperty(c,a),Y=(G||[])[o]||{};if(""===o)-1===A.indexOf("updatemenus")&&(g.docalc=!0);else if(""===V){var Q=k;E.isAddVal(k)?x[A]=null:E.isRemoveVal(k)?(x[A]=Y,Q=Y):y.warn("unrecognized full object value",t),(r(Q,"x")||r(Q,"y")&&-1===A.indexOf("updatemenus"))&&(g.docalc=!0)}else!r(Y,"x")&&!r(Y,"y")||y.containsAny(A,["color","opacity","align","dash","updatemenus"])||(g.docalc=!0);p[a]||(p[a]={});var K=p[a][o];K||(K=p[a][o]={}),K[V]=k,delete t[A]}else if("reverse"===z)D.range?D.range.reverse():(n(I+".autorange",!0),D.range=[1,0]),R.autorange?g.docalc=!0:g.doplot=!0;else{var Z=String(S.parts[1]||"");0===C.indexOf("scene")?"camera"===S.parts[1]?g.docamera=!0:g.doplot=!0:0===C.indexOf("geo")?g.doplot=!0:0===C.indexOf("ternary")?g.doplot=!0:"paper_bgcolor"===A?g.doplot=!0:"margin"===C||"autorange"===Z||"rangemode"===Z||"type"===Z||"domain"===Z||"fixedrange"===Z||"scaleanchor"===Z||"scaleratio"===Z||-1!==A.indexOf("calendar")||A.match(/^(bar|box|font)/)?g.docalc=!0:!l._has("gl2d")||-1===A.indexOf("axis")&&"plot_bgcolor"!==A?"hiddenlabels"===A?g.docalc=!0:-1!==C.indexOf("legend")?g.dolegend=!0:-1!==A.indexOf("title")?g.doticks=!0:-1!==C.indexOf("bgcolor")?g.dolayoutstyle=!0:$>1&&y.containsAny(Z,["tick","exponent","grid","zeroline"])?g.doticks=!0:-1!==A.indexOf(".linewidth")&&-1!==A.indexOf("axis")?g.doticks=g.dolayoutstyle=!0:$>1&&-1!==Z.indexOf("line")?g.dolayoutstyle=!0:$>1&&"mirror"===Z?g.doticks=g.dolayoutstyle=!0:"margin.pad"===A?g.doticks=g.dolayoutstyle=!0:-1!==["hovermode","dragmode"].indexOf(A)||-1!==A.indexOf("spike")?g.domodebar=!0:-1===["height","width","autosize"].indexOf(A)&&(g.doplot=!0):g.doplot=!0,S.set(k)}}}for(a in p){E.applyContainerArrayChanges(e,y.nestedProperty(c,a),p[a],g)||(g.doplot=!0)}var J=l._axisConstraintGroups;for(var ee in M)for(o=0;o<J.length;o++){var te=J[o];if(te[ee]){g.docalc=!0;for(var ne in te)M[ne]||(P.getFromId(e,ne)._constraintShrinkable=!0)}}var re=l.width,ie=l.height;return e.layout.autosize&&w.plotAutoSize(e,e.layout,l),(t.height||t.width||l.width!==re||l.height!==ie)&&(g.docalc=!0),(g.doplot||g.docalc)&&(g.layoutReplot=!0),{flags:g,undoit:x,redoit:v,eventData:y.extendDeep({},v)}}function m(e){var t=g.select(e),n=e._fullLayout;if(n._container=t.selectAll(".plot-container").data([0]),n._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0),n._paperdiv=n._container.selectAll(".svg-container").data([0]),n._paperdiv.enter().append("div").classed("svg-container",!0).style("position","relative"),n._glcontainer=n._paperdiv.selectAll(".gl-container").data([0]),n._glcontainer.enter().append("div").classed("gl-container",!0),n._paperdiv.selectAll(".main-svg").remove(),n._paper=n._paperdiv.insert("svg",":first-child").classed("main-svg",!0),n._toppaper=n._paperdiv.append("svg").classed("main-svg",!0),!n._uid){var r=[];g.selectAll("defs").each(function(){this.id&&r.push(this.id.split("-")[1])}),n._uid=y.randstr(r)}n._paperdiv.selectAll(".main-svg").attr(T.svgAttrs),n._defs=n._paper.append("defs").attr("id","defs-"+n._uid),n._topdefs=n._toppaper.append("defs").attr("id","topdefs-"+n._uid),n._bgLayer=n._paper.append("g").classed("bglayer",!0),n._draggers=n._paper.append("g").classed("draglayer",!0);var i=n._paper.append("g").classed("layer-below",!0);n._imageLowerLayer=i.append("g").classed("imagelayer",!0),n._shapeLowerLayer=i.append("g").classed("shapelayer",!0),n._cartesianlayer=n._paper.append("g").classed("cartesianlayer",!0),n._ternarylayer=n._paper.append("g").classed("ternarylayer",!0),n._geolayer=n._paper.append("g").classed("geolayer",!0);var a=n._paper.append("g").classed("layer-above",!0);n._imageUpperLayer=a.append("g").classed("imagelayer",!0),n._shapeUpperLayer=a.append("g").classed("shapelayer",!0),n._pielayer=n._paper.append("g").classed("pielayer",!0),n._glimages=n._paper.append("g").classed("glimages",!0),n._infolayer=n._toppaper.append("g").classed("infolayer",!0),n._zoomlayer=n._toppaper.append("g").classed("zoomlayer",!0),n._hoverlayer=n._toppaper.append("g").classed("hoverlayer",!0),e.emit("plotly_framework")}var g=e("d3"),v=e("fast-isnumeric"),b=e("../plotly"),y=e("../lib"),x=e("../lib/events"),M=e("../lib/queue"),_=e("../registry"),w=e("../plots/plots"),A=e("../plots/polar"),S=e("../plots/cartesian/graph_interact"),k=e("../components/drawing"),$=e("../components/errorbars"),T=e("../constants/xmlns_namespaces"),C=e("../lib/svg_text_utils"),E=e("./manage_arrays"),O=e("./helpers"),z=e("./subroutines"),L=e("../plots/cartesian/constants"),N=e("../plots/cartesian/constraints"),P=e("../plots/cartesian/axis_ids");b.plot=function(e,t,n,r){function o(){if(v)return b.addFrames(e,v)}function s(){for(var t=T._basePlotModules,n=0;n<t.length;n++)t[n].drawFramework&&t[n].drawFramework(e);return y.syncOrAsync([z.layoutStyles,p,S],e)}function c(){var t,n,r,i=e.calcdata;for(_.getComponentMethod("legend","draw")(e),_.getComponentMethod("rangeselector","draw")(e),_.getComponentMethod("sliders","draw")(e),_.getComponentMethod("updatemenus","draw")(e),t=0;t<i.length;t++)n=i[t],r=n[0].trace,!0===r.visible&&r._module.colorbar?r._module.colorbar(e,n):w.autoMargin(e,"cb"+r.uid);return w.doAutoMargin(e),w.previousPromises(e)}function l(){var t=JSON.stringify(T._size)===L?[]:[c,z.layoutStyles];return t=t.concat(S),y.syncOrAsync(t,e)}function u(){if(C){for(var t,n,r=w.getSubplotIds(T,"cartesian"),i=T._modules,a=0;a<r.length;a++){t=T._plots[r[a]];for(var o=0;o<i.length;o++)n=i[o],n.setPositions&&n.setPositions(e,t)}return $.calc(e),y.syncOrAsync([_.getComponentMethod("shapes","calcAutorange"),_.getComponentMethod("annotations","calcAutorange"),d,_.getComponentMethod("rangeslider","calcAutorange")],e)}}function d(){if(!e._transitioning){for(var t=b.Axes.list(e,"",!0),n=0;n<t.length;n++)b.Axes.doAutoRange(t[n]);N(e),A&&b.Axes.saveRangeInitial(e)}}function p(){return b.Axes.doTicks(e,"redraw")}function f(){var t,n=e.calcdata,r=T._infolayer.selectAll("g.rangeslider-container");for(t=0;t<n.length;t++){var i=n[t][0].trace,a=!0===i.visible,o=i.uid;if(!a||!_.traceIs(i,"2dMap")){var s=".hm"+o+",.contour"+o+",#clip"+o;T._paper.selectAll(s).remove(),r.selectAll(s).remove()}a&&i._module.colorbar||T._infolayer.selectAll(".cb"+o).remove()}var c=T._basePlotModules;for(t=0;t<c.length;t++)c[t].plot(e);var l=T._paper.selectAll(".layer-subplot");return T._shapeSubplotLayers=l.selectAll(".shapelayer"),w.style(e),_.getComponentMethod("shapes","draw")(e),_.getComponentMethod("annotations","draw")(e),w.addLinks(e),T._replotting=!1,w.previousPromises(e)}function h(){_.getComponentMethod("shapes","draw")(e),_.getComponentMethod("images","draw")(e),_.getComponentMethod("annotations","draw")(e),_.getComponentMethod("legend","draw")(e),_.getComponentMethod("rangeslider","draw")(e),_.getComponentMethod("rangeselector","draw")(e),_.getComponentMethod("sliders","draw")(e),_.getComponentMethod("updatemenus","draw")(e)}var v;if(e=O.getGraphDiv(e),x.init(e),y.isPlainObject(t)){var M=t;t=M.data,n=M.layout,r=M.config,v=M.frames}if(!1===x.triggerHandler(e,"plotly_beforeplot",[t,n,r]))return Promise.reject();t||n||y.isPlotDiv(e)||y.warn("Calling Plotly.plot as if redrawing but this container doesn't yet have a plot.",e),i(e,r),n||(n={}),g.select(e).classed("js-plotly-plot",!0),k.makeTester(),e._promises=[];var A=0===(e.data||[]).length&&Array.isArray(t);if(Array.isArray(t)&&(O.cleanData(t,e.data),A?e.data=t:e.data.push.apply(e.data,t),e.empty=!1),e.layout&&!A||(e.layout=O.cleanLayout(n)),e._dragging&&!e._transitioning)return e._replotPending=!0,Promise.reject();e._replotPending=!1,w.supplyDefaults(e);var T=e._fullLayout;if(t&&t[0]&&t[0].r)return a(e,t,n);T._replotting=!0,A&&m(e),e.framework!==m&&(e.framework=m,m(e)),k.initGradients(e),A&&b.Axes.saveShowSpikeInitial(e);var C=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;C&&w.doCalcdata(e);for(var E=0;E<e.calcdata.length;E++)e.calcdata[E][0].trace=e._fullData[E];var L=JSON.stringify(T._size),P=[w.previousPromises,o,s,c,l,u,z.layoutStyles,p,f,h,w.rehover];return y.syncOrAsync(P,e),Promise.all(e._promises).then(function(){return e.emit("plotly_afterplot"),e})},b.redraw=function(e){if(e=O.getGraphDiv(e),!y.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);return O.cleanData(e.data,e.data),O.cleanLayout(e.layout),e.calcdata=void 0,b.plot(e).then(function(){return e.emit("plotly_redraw"),e})},b.newPlot=function(e,t,n,r){return e=O.getGraphDiv(e),w.cleanPlot([],{},e._fullData||{},e._fullLayout||{}),w.purge(e),b.plot(e,t,n,r)},b.extendTraces=function e(t,n,r,i){t=O.getGraphDiv(t);var a=p(t,n,r,i,function(e,t){return e.concat(t)},function(e,t){return e.splice(0,e.length-t)}),o=b.redraw(t),s=[t,a.update,r,a.maxPoints];return M.add(t,b.prependTraces,s,e,arguments),o},b.prependTraces=function e(t,n,r,i){t=O.getGraphDiv(t);var a=p(t,n,r,i,function(e,t){return t.concat(e)},function(e,t){return e.splice(t,e.length)}),o=b.redraw(t),s=[t,a.update,r,a.maxPoints];return M.add(t,b.extendTraces,s,e,arguments),o},b.addTraces=function e(t,n,r){t=O.getGraphDiv(t);var i,a,o=[],s=b.deleteTraces,u=e,d=[t,o],p=[t,n];for(l(t,n,r),Array.isArray(n)||(n=[n]),n=n.map(function(e){return y.extendFlat({},e)}),O.cleanData(n,t.data),i=0;i<n.length;i++)t.data.push(n[i]);for(i=0;i<n.length;i++)o.push(-n.length+i);if(void 0===r)return a=b.redraw(t),M.add(t,s,d,u,p),a;Array.isArray(r)||(r=[r]);try{c(t,o,r)}catch(e){throw t.data.splice(t.data.length-n.length,n.length),e}return M.startSequence(t),M.add(t,s,d,u,p),a=b.moveTraces(t,o,r),M.stopSequence(t),a},b.deleteTraces=function e(t,n){t=O.getGraphDiv(t);var r,i,a=[],c=b.addTraces,l=e,u=[t,a,n],d=[t,n];if(void 0===n)throw new Error("indices must be an integer or array of integers.");for(Array.isArray(n)||(n=[n]),s(t,n,"indices"),n=o(n,t.data.length-1),n.sort(y.sorterDes),r=0;r<n.length;r+=1)i=t.data.splice(n[r],1)[0],a.push(i);var p=b.redraw(t);return M.add(t,c,u,l,d),p},b.moveTraces=function e(t,n,r){t=O.getGraphDiv(t);var i,a=[],s=[],l=e,u=e,d=[t,r,n],p=[t,n,r];if(c(t,n,r),n=Array.isArray(n)?n:[n],void 0===r)for(r=[],i=0;i<n.length;i++)r.push(-n.length+i);for(r=Array.isArray(r)?r:[r],n=o(n,t.data.length-1),r=o(r,t.data.length-1),i=0;i<t.data.length;i++)-1===n.indexOf(i)&&a.push(t.data[i]);for(i=0;i<n.length;i++)s.push({newIndex:r[i],trace:t.data[n[i]]});for(s.sort(function(e,t){return e.newIndex-t.newIndex}),i=0;i<s.length;i+=1)a.splice(s[i].newIndex,0,s[i].trace);t.data=a;var f=b.redraw(t);return M.add(t,l,d,u,p),f},b.restyle=function e(t,n,r,i){t=O.getGraphDiv(t),O.clearPromiseQueue(t);var a={};if("string"==typeof n)a[n]=r;else{if(!y.isPlainObject(n))return y.warn("Restyle fail.",n,r,i),Promise.reject();a=y.extendFlat({},n),void 0===i&&(i=r)}Object.keys(a).length&&(t.changed=!0);var o=f(t,a,i),s=o.flags;s.clearCalc&&(t.calcdata=void 0);var c=[];s.fullReplot?c.push(b.plot):(c.push(w.previousPromises),w.supplyDefaults(t),s.dostyle&&c.push(z.doTraceStyle),s.docolorbars&&c.push(z.doColorBars)),c.push(w.rehover),M.add(t,e,[t,o.undoit,o.traces],e,[t,o.redoit,o.traces]);var l=y.syncOrAsync(c,t);return l&&l.then||(l=Promise.resolve()),l.then(function(){return t.emit("plotly_restyle",o.eventData),t})},b.relayout=function e(t,n,r){if(t=O.getGraphDiv(t),O.clearPromiseQueue(t),t.framework&&t.framework.isPolar)return Promise.resolve(t);var i={};if("string"==typeof n)i[n]=r;else{if(!y.isPlainObject(n))return y.warn("Relayout fail.",n,r),Promise.reject();i=y.extendFlat({},n)}Object.keys(i).length&&(t.changed=!0);var a=h(t,i),o=a.flags;o.docalc&&(t.calcdata=void 0);var s=[w.previousPromises];o.layoutReplot?s.push(z.layoutReplot):Object.keys(i).length&&(w.supplyDefaults(t),o.dolegend&&s.push(z.doLegend),o.dolayoutstyle&&s.push(z.layoutStyles),o.doticks&&s.push(z.doTicksRelayout),o.domodebar&&s.push(z.doModeBar),o.docamera&&s.push(z.doCamera)),s.push(w.rehover),M.add(t,e,[t,a.undoit],e,[t,a.redoit]);var c=y.syncOrAsync(s,t);return c&&c.then||(c=Promise.resolve(t)),c.then(function(){return t.emit("plotly_relayout",a.eventData),t})},b.update=function e(t,n,r,i){if(t=O.getGraphDiv(t),O.clearPromiseQueue(t),t.framework&&t.framework.isPolar)return Promise.resolve(t);y.isPlainObject(n)||(n={}),y.isPlainObject(r)||(r={}),Object.keys(n).length&&(t.changed=!0),Object.keys(r).length&&(t.changed=!0);var a=f(t,y.extendFlat({},n),i),o=a.flags,s=h(t,y.extendFlat({},r)),c=s.flags;(o.clearCalc||c.docalc)&&(t.calcdata=void 0);var l=[];if(o.fullReplot&&c.layoutReplot){var u=t.data,d=t.layout;t.data=void 0,t.layout=void 0,l.push(function(){return b.plot(t,u,d)})}else o.fullReplot?l.push(b.plot):c.layoutReplot?l.push(z.layoutReplot):(l.push(w.previousPromises),w.supplyDefaults(t),o.dostyle&&l.push(z.doTraceStyle),o.docolorbars&&l.push(z.doColorBars),c.dolegend&&l.push(z.doLegend),c.dolayoutstyle&&l.push(z.layoutStyles),c.doticks&&l.push(z.doTicksRelayout),c.domodebar&&l.push(z.doModeBar),c.doCamera&&l.push(z.doCamera));l.push(w.rehover),M.add(t,e,[t,a.undoit,s.undoit,a.traces],e,[t,a.redoit,s.redoit,a.traces]);var p=y.syncOrAsync(l,t);return p&&p.then||(p=Promise.resolve(t)),p.then(function(){return t.emit("plotly_update",{data:a.eventData,layout:s.eventData}),t})},b.animate=function(e,t,n){function r(e){return Array.isArray(s)?e>=s.length?s[0]:s[e]:s}function i(e){return Array.isArray(c)?e>=c.length?c[0]:c[e]:c}function a(e,t){var n=0;return function(){if(e&&++n===t)return e()}}if(e=O.getGraphDiv(e),!y.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before animating it. For more details, see https://plot.ly/javascript/animations/");var o=e._transitionData;o._frameQueue||(o._frameQueue=[]),n=w.supplyAnimationDefaults(n);var s=n.transition,c=n.frame;return void 0===o._frameWaitingCnt&&(o._frameWaitingCnt=0),new Promise(function(c,l){function u(){e.emit("plotly_animated"),window.cancelAnimationFrame(o._animationRaf),o._animationRaf=null}function d(){o._currentFrame&&o._currentFrame.onComplete&&o._currentFrame.onComplete();var t=o._currentFrame=o._frameQueue.shift();if(t){var n=t.name?t.name.toString():null;e._fullLayout._currentFrame=n,o._lastFrameAt=Date.now(),o._timeToNext=t.frameOpts.duration,w.transition(e,t.frame.data,t.frame.layout,O.coerceTraceIndices(e,t.frame.traces),t.frameOpts,t.transitionOpts).then(function(){t.onComplete&&t.onComplete()}),e.emit("plotly_animatingframe",{name:n,frame:t.frame,animation:{frame:t.frameOpts,transition:t.transitionOpts}})}else u()}function p(){e.emit("plotly_animating"),o._lastFrameAt=-1/0,o._timeToNext=0,o._runningTransitions=0,o._currentFrame=null;!function e(){o._animationRaf=window.requestAnimationFrame(e),Date.now()-o._lastFrameAt>o._timeToNext&&d()}()}function f(e){return Array.isArray(s)?g>=s.length?e.transitionOpts=s[g]:e.transitionOpts=s[0]:e.transitionOpts=s,g++,e}var h,m,g=0,v=[],b=void 0===t||null===t,x=Array.isArray(t);if(b||x||!y.isPlainObject(t)){if(b||-1!==["string","number"].indexOf(void 0===t?"undefined":_typeof2(t)))for(h=0;h<o._frames.length;h++)(m=o._frames[h])&&(b||String(m.group)===String(t))&&v.push({type:"byname",name:String(m.name),data:f({name:m.name})});else if(x)for(h=0;h<t.length;h++){var M=t[h];-1!==["number","string"].indexOf(void 0===M?"undefined":_typeof2(M))?(M=String(M),v.push({type:"byname",name:M,data:f({name:M})})):y.isPlainObject(M)&&v.push({type:"object",data:f(y.extendFlat({},M))})}}else v.push({type:"object",data:f(y.extendFlat({},t))});for(h=0;h<v.length;h++)if(m=v[h],"byname"===m.type&&!o._frameHash[m.data.name])return y.warn('animate failure: frame not found: "'+m.data.name+'"'),void l();-1!==["next","immediate"].indexOf(n.mode)&&function(){if(0!==o._frameQueue.length){for(;o._frameQueue.length;){var t=o._frameQueue.pop();t.onInterrupt&&t.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}(),"reverse"===n.direction&&v.reverse();var _=e._fullLayout._currentFrame;if(_&&n.fromcurrent){var A=-1;for(h=0;h<v.length;h++)if(m=v[h],"byname"===m.type&&m.name===_){A=h;break}if(A>0&&A<v.length-1){var S=[];for(h=0;h<v.length;h++)m=v[h],("byname"!==v[h].type||h>A)&&S.push(m);v=S}}v.length>0?function(t){if(0!==t.length){for(var s=0;s<t.length;s++){var u;u="byname"===t[s].type?w.computeFrame(e,t[s].name):t[s].data;var d=i(s),f=r(s);f.duration=Math.min(f.duration,d.duration);var h={frame:u,name:t[s].name,frameOpts:d,transitionOpts:f};s===t.length-1&&(h.onComplete=a(c,2),h.onInterrupt=l),o._frameQueue.push(h)}"immediate"===n.mode&&(o._lastFrameAt=-1/0),o._animationRaf||p()}}(v):(e.emit("plotly_animated"),c())})},b.addFrames=function(e,t,n){e=O.getGraphDiv(e);var r=0;if(null===t||void 0===t)return Promise.resolve();if(!y.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plot.ly/javascript/animations/");var i,a,o,s,c=e._transitionData._frames,l=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var u=c.length+2*t.length,d=[];for(i=t.length-1;i>=0;i--)if(y.isPlainObject(t[i])){var p=(l[t[i].name]||{}).name,f=t[i].name;p&&f&&"number"==typeof f&&l[p]&&(r++,y.warn('addFrames: overwriting frame "'+l[p].name+'" with a frame whose name of type "number" also equates to "'+p+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),r>5&&y.warn("addFrames: This API call has yielded too many warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),d.push({frame:w.supplyFrameDefaults(t[i]),index:n&&void 0!==n[i]&&null!==n[i]?n[i]:u+i})}d.sort(function(e,t){return e.index>t.index?-1:e.index<t.index?1:0});var h=[],m=[],g=c.length;for(i=d.length-1;i>=0;i--){if(a=d[i].frame,"number"==typeof a.name&&y.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)for(;l[a.name="frame "+e._transitionData._counter++];);if(l[a.name]){for(o=0;o<c.length&&(c[o]||{}).name!==a.name;o++);h.push({type:"replace",index:o,value:a}),m.unshift({type:"replace",index:o,value:c[o]})}else s=Math.max(0,Math.min(d[i].index,g)),h.push({type:"insert",index:s,value:a}),m.unshift({type:"delete",index:s}),g++}var v=w.modifyFrames,b=w.modifyFrames,x=[e,m],_=[e,h];return M&&M.add(e,v,x,b,_),w.modifyFrames(e,h)},b.deleteFrames=function(e,t){if(e=O.getGraphDiv(e),!y.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);var n,r,i=e._transitionData._frames,a=[],o=[];if(!t)for(t=[],n=0;n<i.length;n++)t.push(n);for(t=t.slice(0),t.sort(),n=t.length-1;n>=0;n--)r=t[n],a.push({type:"delete",index:r}),o.unshift({type:"insert",index:r,value:i[r]});var s=w.modifyFrames,c=w.modifyFrames,l=[e,o],u=[e,a];return M&&M.add(e,s,l,c,u),w.modifyFrames(e,a)},b.purge=function(e){e=O.getGraphDiv(e);var t=e._fullLayout||{},n=e._fullData||[];return w.cleanPlot([],{},n,t),w.purge(e),x.purge(e),t._container&&t._container.remove(),delete e._context,delete e._replotPending,delete e._mouseDownTime,delete e._legendMouseDownTime,delete e._hmpixcount,delete e._hmlumcount,e}},{"../components/drawing":610,"../components/errorbars":616,"../constants/xmlns_namespaces":685,"../lib":697,"../lib/events":692,"../lib/queue":709,"../lib/svg_text_utils":714,"../plotly":727,"../plots/cartesian/axis_ids":735,"../plots/cartesian/constants":737,"../plots/cartesian/constraints":739,"../plots/cartesian/graph_interact":741,"../plots/plots":760,"../plots/polar":763,"../registry":767,"./helpers":717,"./manage_arrays":718,"./subroutines":724,d3:265,"fast-isnumeric":267}],720:[function(e,t,n){"use strict";function r(e,n){try{e._fullLayout._paper.style("background",n)}catch(e){t.exports.logging}}t.exports={staticPlot:!1,editable:!1,autosizable:!1,queueLength:0,fillFrame:!1,frameMargins:0,scrollZoom:!1,doubleClick:"reset+autosize",showTips:!0,showAxisDragHandles:!0,showAxisRangeEntryBoxes:!0,showLink:!1,sendData:!0,linkText:"Edit chart",showSources:!1,displayModeBar:"hover",modeBarButtonsToRemove:[],modeBarButtonsToAdd:[],modeBarButtons:!1,displaylogo:!0,plotGlPixelRatio:2,setBackground:r,topojsonURL:"https://cdn.plot.ly/",mapboxAccessToken:null,logging:!1,globalTransforms:[]}},{}],721:[function(e,t,n){"use strict";function r(e){var t,n;"area"===e?(t={attributes:y},n={}):(t=f.modules[e]._module,n=t.basePlotModule);var r={};r.type=null,_(r,m),_(r,t.attributes),n.attributes&&_(r,n.attributes),Object.keys(f.componentsRegistry).forEach(function(t){var n=f.componentsRegistry[t];n.schema&&n.schema.traces&&n.schema.traces[e]&&Object.keys(n.schema.traces[e]).forEach(function(t){p(r,n.schema.traces[e][t],t)})}),r.type=e;var i={meta:t.meta||{},attributes:s(r)};if(t.layoutAttributes){var a={};_(a,t.layoutAttributes),i.layoutAttributes=s(a)}return i}function i(){var e={};return _(e,g),Object.keys(f.subplotsRegistry).forEach(function(t){var n=f.subplotsRegistry[t];if(n.layoutAttributes)if("cartesian"===n.name)d(e,n,"xaxis"),d(e,n,"yaxis");else{var r="subplot"===n.attr?n.name:n.attr;d(e,n,r)}}),e=u(e),Object.keys(f.componentsRegistry).forEach(function(t){var n=f.componentsRegistry[t];n.layoutAttributes&&(n.schema&&n.schema.layout?Object.keys(n.schema.layout).forEach(function(t){p(e,n.schema.layout[t],t)}):p(e,n.layoutAttributes,n.name))}),{layoutAttributes:s(e)}}function a(e){var t=f.transformsRegistry[e],n=_({},t.attributes);return Object.keys(f.componentsRegistry).forEach(function(t){var r=f.componentsRegistry[t];r.schema&&r.schema.transforms&&r.schema.transforms[e]&&Object.keys(r.schema.transforms[e]).forEach(function(t){p(n,r.schema.transforms[e][t],t)})}),{attributes:s(n)}}function o(){var e={frames:h.extendDeep({},v)};return s(e),e.frames}function s(e){return c(e),l(e),e}function c(e){function t(e){return{valType:"string",role:"info",description:["Sets the source reference on plot.ly for ",e,"."].join(" ")}}function r(e,r,i){n.isValObject(e)?"data_array"===e.valType?(e.role="data",i[r+"src"]=t(r)):!0===e.arrayOk&&(i[r+"src"]=t(r)):h.isPlainObject(e)&&(e.role="object")}n.crawl(e,r)}function l(e){function t(e,t,n){if(e){var r=e[A];r&&(delete e[A],n[t]={items:{}},n[t].items[r]=e,n[t].role="object")}}n.crawl(e,t)}function u(e){return M(e,{radialaxis:x.radialaxis,angularaxis:x.angularaxis}),M(e,x.layout),e}function d(e,t,n){var r=h.nestedProperty(e,n),i=_({},t.layoutAttributes);i[w]=!0,r.set(i)}function p(e,t,n){var r=h.nestedProperty(e,n);r.set(_(r.get()||{},t))}var f=e("../registry"),h=e("../lib"),m=e("../plots/attributes"),g=e("../plots/layout_attributes"),v=e("../plots/frame_attributes"),b=e("../plots/animation_attributes"),y=e("../plots/polar/area_attributes"),x=e("../plots/polar/axis_attributes"),M=h.extendFlat,_=h.extendDeep,w="_isSubplotObj",A="_isLinkedToArray",S=[w,A,"_arrayAttrRegexps","_deprecated"];n.IS_SUBPLOT_OBJ=w,n.IS_LINKED_TO_ARRAY=A,n.DEPRECATED="_deprecated",n.UNDERSCORE_ATTRS=S,n.get=function(){var e={};f.allTypes.concat("area").forEach(function(t){e[t]=r(t)});var t={};return Object.keys(f.transformsRegistry).forEach(function(e){t[e]=a(e)}),{defs:{valObjects:h.valObjects,metaKeys:S.concat(["description","role"])},traces:e,layout:i(),transforms:t,frames:o(),animation:s(b)}},n.crawl=function(e,t,r){var i=r||0;Object.keys(e).forEach(function(r){var a=e[r];-1===S.indexOf(r)&&(t(a,r,e,i),n.isValObject(a)||h.isPlainObject(a)&&n.crawl(a,t,i+1))})},n.isValObject=function(e){return e&&void 0!==e.valType},n.findArrayAttributes=function(e){function t(t,n,o,s){if(a=a.slice(0,s).concat([n]),t&&("data_array"===t.valType||!0===t.arrayOk)){var c=r(a),l=h.nestedProperty(e,c).get();Array.isArray(l)&&i.push(c)}}function r(e){return e.join(".")}var i=[],a=[];if(n.crawl(e._module.attributes,t),e.transforms)for(var o=e.transforms,s=0;s<o.length;s++){var c=o[s];a=["transforms["+s+"]"],n.crawl(c._module.attributes,t,1)}return e._fullInput&&(n.crawl(e._fullInput._module.attributes,t),i=h.filterUnique(i)),i}},{"../lib":697,"../plots/animation_attributes":728,"../plots/attributes":730,"../plots/frame_attributes":757,"../plots/layout_attributes":758,"../plots/polar/area_attributes":761,"../plots/polar/axis_attributes":762,"../registry":767}],722:[function(e,t,n){"use strict";function r(e){o.register(e,e.name,e.categories,e.meta),o.subplotsRegistry[e.basePlotModule.name]||o.registerSubplot(e.basePlotModule)}function i(e){if("string"!=typeof e.name)throw new Error("Transform module *name* must be a string.");var t="Transform module "+e.name,n="function"==typeof e.transform,r="function"==typeof e.calcTransform;if(!n&&!r)throw new Error(t+" is missing a *transform* or *calcTransform* method.");n&&r&&s.log([t+" has both a *transform* and *calcTransform* methods.","Please note that all *transform* methods are executed","before all *calcTransform* methods."].join(" ")),s.isPlainObject(e.attributes)||s.log(t+" registered without an *attributes* object."),"function"!=typeof e.supplyDefaults&&s.log(t+" registered without a *supplyDefaults* method."),o.transformsRegistry[e.name]=e}function a(e){if("string"!=typeof e.name)throw new Error("Component module *name* must be a string.");o.registerComponent(e)}var o=e("../registry"),s=e("../lib");t.exports=function(e){if(!e)throw new Error("No argument passed to Plotly.register.");e&&!Array.isArray(e)&&(e=[e]);for(var t=0;t<e.length;t++){var n=e[t];if(!n)throw new Error("Invalid module was attempted to be registered!");switch(n.moduleType){case"trace":r(n);break;case"transform":i(n);break;case"component":a(n);break;default:throw new Error("Invalid module was attempted to be registered!")}}}},{"../lib":697,"../registry":767}],723:[function(e,t,n){"use strict";var r=e("../plotly"),i=e("../lib");t.exports=function(e){return i.extendFlat(r.defaultConfig,e)}},{"../lib":697,"../plotly":727}],724:[function(e,t,n){"use strict";function r(e,t,n){for(var r=0;r<n.length;r++){var i=n[r][0],a=n[r][1];if(!(i[0]>=e[1]||i[1]<=e[0])&&(a[0]<t[1]&&a[1]>t[0]))return!0}return!1}var i=e("d3"),a=e("../plotly"),o=e("../registry"),s=e("../plots/plots"),c=e("../lib"),l=e("../components/color"),u=e("../components/drawing"),d=e("../components/titles"),p=e("../components/modebar"),f=e("../plots/cartesian/graph_interact");n.layoutStyles=function(e){return c.syncOrAsync([s.doAutoMargin,n.lsInner],e)},n.lsInner=function(e){var t,o=e._fullLayout,s=o._size,c=a.Axes.list(e);for(t=0;t<c.length;t++)c[t]._linepositions={};o._paperdiv.style({width:o.width+"px",height:o.height+"px"}).selectAll(".main-svg").call(u.setSize,o.width,o.height),e._context.setBackground(e,o.paper_bgcolor);var d=o._paper.selectAll("g.subplot"),f=[],h=[];d.each(function(t){var n=o._plots[t];if(n.mainplot)return n.bg&&n.bg.remove(),void(n.bg=void 0);var i=a.Axes.getFromId(e,t,"x"),s=a.Axes.getFromId(e,t,"y"),c=i.domain,l=s.domain,u=[];r(c,l,h)?u=[0]:(f.push(t),h.push([c,l]));var d=n.plotgroup.selectAll(".bg").data(u);d.enter().append("rect").classed("bg",!0),d.exit().remove(),d.each(function(){n.bg=d;var e=n.plotgroup.node();e.insertBefore(this,e.childNodes[0])})});var m=o._bgLayer.selectAll(".bg").data(f);m.enter().append("rect").classed("bg",!0),m.exit().remove(),m.each(function(e){o._plots[e].bg=i.select(this)});var g=[];return d.each(function(t){var n=o._plots[t],r=a.Axes.getFromId(e,t,"x"),i=a.Axes.getFromId(e,t,"y");r.setScale(),i.setScale(),n.bg&&n.bg.call(u.setRect,r._offset-s.p,i._offset-s.p,r._length+2*s.p,i._length+2*s.p).call(l.fill,o.plot_bgcolor).style("stroke-width",0),n.clipId="clip"+o._uid+t+"plot";var c=o._defs.selectAll("g.clips").selectAll("#"+n.clipId).data([0]);c.enter().append("clipPath").attr({class:"plotclip",id:n.clipId}).append("rect"),c.selectAll("rect").attr({width:r._length,height:i._length}),n.plot.call(u.setTranslate,r._offset,i._offset),n.plot.call(u.setClipUrl,n.clipId);var d=u.crispRound(e,r.linewidth,1),p=u.crispRound(e,i.linewidth,1),f=s.p+p,h="M"+-f+",",m="h"+(r._length+2*f),v="free"===r.anchor&&-1===g.indexOf(r._id),b=s.h*(1-(r.position||0))+d/2%1,y=r.anchor===i._id&&(r.mirror||"top"!==r.side)||"all"===r.mirror||"allticks"===r.mirror||r.mirrors&&r.mirrors[i._id+"bottom"],x=i._length+s.p+d/2,M=r.anchor===i._id&&(r.mirror||"top"===r.side)||"all"===r.mirror||"allticks"===r.mirror||r.mirrors&&r.mirrors[i._id+"top"],_=-s.p-d/2,w=s.p,A=y?0:d,S=M?0:d,k=","+(-w-S)+"v"+(i._length+2*w+S+A),$="free"===i.anchor&&-1===g.indexOf(i._id),T=s.w*(i.position||0)+p/2%1,C=i.anchor===r._id&&(i.mirror||"right"!==i.side)||"all"===i.mirror||"allticks"===i.mirror||i.mirrors&&i.mirrors[r._id+"left"],E=-s.p-p/2,O=i.anchor===r._id&&(i.mirror||"right"===i.side)||"all"===i.mirror||"allticks"===i.mirror||i.mirrors&&i.mirrors[r._id+"right"],z=r._length+s.p+p/2;r._linepositions[t]=[y?x:void 0,M?_:void 0,v?b:void 0],r.anchor===i._id?r._linepositions[t][3]="top"===r.side?_:x:v&&(r._linepositions[t][3]=b),i._linepositions[t]=[C?E:void 0,O?z:void 0,$?T:void 0],i.anchor===r._id?i._linepositions[t][3]="right"===i.side?z:E:$&&(i._linepositions[t][3]=T);var L="translate("+r._offset+","+i._offset+")",N=L,P=L;v&&(N="translate("+r._offset+","+s.t+")",_+=i._offset-s.t,x+=i._offset-s.t),$&&(P="translate("+s.l+","+i._offset+")",E+=r._offset-s.l,z+=r._offset-s.l),n.xlines.attr("transform",N).attr("d",(y?h+x+m:"")+(M?h+_+m:"")+(v?h+b+m:"")||"M0,0").style("stroke-width",d+"px").call(l.stroke,r.showline?r.linecolor:"rgba(0,0,0,0)"),n.ylines.attr("transform",P).attr("d",(C?"M"+E+k:"")+(O?"M"+z+k:"")+($?"M"+T+k:"")||"M0,0").attr("stroke-width",p+"px").call(l.stroke,i.showline?i.linecolor:"rgba(0,0,0,0)"),n.xaxislayer.attr("transform",N),n.yaxislayer.attr("transform",P),n.gridlayer.attr("transform",L),n.zerolinelayer.attr("transform",L),n.draglayer.attr("transform",L),v&&g.push(r._id),$&&g.push(i._id)}),a.Axes.makeClipPaths(e),n.drawMainTitle(e),p.manage(e),e._promises.length&&Promise.all(e._promises)},n.drawMainTitle=function(e){var t=e._fullLayout;d.draw(e,"gtitle",{propContainer:t,propName:"title",dfltName:"Plot",attributes:{x:t.width/2,y:t._size.t/2,"text-anchor":"middle"}})},n.doTraceStyle=function(e){for(var t=0;t<e.calcdata.length;t++){var n=e.calcdata[t],r=((n[0]||{}).trace||{})._module||{},i=r.arraysToCalcdata;i&&i(n,n[0].trace)}return s.style(e),o.getComponentMethod("legend","draw")(e),s.previousPromises(e)},n.doColorBars=function(e){for(var t=0;t<e.calcdata.length;t++){var n=e.calcdata[t][0];if((n.t||{}).cb){var r=n.trace,i=n.t.cb;o.traceIs(r,"contour")&&i.line({width:!1!==r.contours.showlines?r.line.width:0,dash:r.line.dash,color:"line"===r.contours.coloring?i._opts.line.color:r.line.color}),o.traceIs(r,"markerColorscale")?i.options(r.marker.colorbar)():i.options(r.colorbar)()}}return s.previousPromises(e)},n.layoutReplot=function(e){var t=e.layout;return e.layout=void 0,a.plot(e,"",t)},n.doLegend=function(e){
69return o.getComponentMethod("legend","draw")(e),s.previousPromises(e)},n.doTicksRelayout=function(e){return a.Axes.doTicks(e,"redraw"),n.drawMainTitle(e),s.previousPromises(e)},n.doModeBar=function(e){var t,n,r=e._fullLayout;for(p.manage(e),f(e),t=s.getSubplotIds(r,"gl3d"),n=0;n<t.length;n++){r[t[n]]._scene.updateFx(r.dragmode,r.hovermode)}return s.previousPromises(e)},n.doCamera=function(e){for(var t=e._fullLayout,n=s.getSubplotIds(t,"gl3d"),r=0;r<n.length;r++){var i=t[n[r]];i._scene.setCamera(i.camera)}}},{"../components/color":586,"../components/drawing":610,"../components/modebar":646,"../components/titles":675,"../lib":697,"../plotly":727,"../plots/cartesian/graph_interact":741,"../plots/plots":760,"../registry":767,d3:265}],725:[function(e,t,n){"use strict";function r(e,t){return new Promise(function(n,r){function d(){var e=s.getDelay(h._fullLayout);return new Promise(function(n,r){setTimeout(function(){var e=l(h),i=document.createElement("canvas");i.id=o.randstr(),u({format:t.format,width:h._fullLayout.width,height:h._fullLayout.height,canvas:i,svg:e,promise:!0}).then(function(e){h&&document.body.removeChild(h),n(e)}).catch(function(e){r(e)})},e)})}t=t||{},t.format=t.format||"png";var p=function(e){return void 0===e||null===e||!!(i(e)&&e>1)};p(t.width)&&p(t.height)||r(new Error("Height and width should be pixel values."));var f=c(e,{format:"png",height:t.height,width:t.width}),h=f.gd;h.style.position="absolute",h.style.left="-5000px",document.body.appendChild(h);var m=s.getRedrawFunc(h);a.plot(h,f.data,f.layout,f.config).then(m).then(d).then(function(e){n(e)}).catch(function(e){r(e)})})}var i=e("fast-isnumeric"),a=e("../plotly"),o=e("../lib"),s=e("../snapshot/helpers"),c=e("../snapshot/cloneplot"),l=e("../snapshot/tosvg"),u=e("../snapshot/svgtoimg");t.exports=r},{"../lib":697,"../plotly":727,"../snapshot/cloneplot":768,"../snapshot/helpers":771,"../snapshot/svgtoimg":773,"../snapshot/tosvg":775,"fast-isnumeric":267}],726:[function(e,t,n){"use strict";function r(e,t,n,i,a,l){l=l||[];for(var u=Object.keys(e),p=0;p<u.length;p++){var f=u[p];if("transforms"!==f){var g=l.slice();g.push(f);var v=e[f],b=t[f],y=c(n,f),x="info_array"===(y||{}).valType,M="colorscale"===(y||{}).valType;if(s(n,f))if(h(v)&&h(b))r(v,b,y,i,a,g);else if(y.items&&!x&&m(v)){var _,w,A=y.items,S=A[Object.keys(A)[0]],k=[];for(_=0;_<b.length;_++){var $=b[_]._index||_;w=g.slice(),w.push($),h(v[$])&&h(b[_])&&(k.push($),r(v[$],b[_],S,i,a,w))}for(_=0;_<v.length;_++)w=g.slice(),w.push(_),h(v[_])?-1===k.indexOf(_)&&i.push(o("unused",a,w)):i.push(o("object",a,w,v[_]))}else!h(v)&&h(b)?i.push(o("object",a,g,v)):m(v)||!m(b)||x||M?f in t?d.validate(v,y)||i.push(o("value",a,g,v)):i.push(o("unused",a,g,v)):i.push(o("array",a,g,v));else i.push(o("schema",a,g))}}return i}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n].type,i=e.traces[r].layoutAttributes;i&&d.extendFlat(e.layout.layoutAttributes,i)}return e.layout.layoutAttributes}function a(e){return m(e)?"In data trace "+e[1]+", ":"In "+e+", "}function o(e,t,n,r){n=n||"";var i,a;m(t)?(i=t[0],a=t[1]):(i=t,a=null);var o=u(n),s=g[e](t,o,r);return d.log(s),{code:e,container:i,trace:a,path:n,astr:o,msg:s}}function s(e,t){var n=l(t),r=n.keyMinusId,i=n.id;return!!(r in e&&e[r]._isSubplotObj&&i)||t in e}function c(e,t){return e[l(t).keyMinusId]}function l(e){var t=/([2-9]|[1-9][0-9]+)$/,n=e.split(t)[0];return{keyMinusId:n,id:e.substr(n.length,e.length)}}function u(e){if(!m(e))return String(e);for(var t="",n=0;n<e.length;n++){var r=e[n];"number"==typeof r?t=t.substr(0,t.length-1)+"["+r+"]":t+=r,n<e.length-1&&(t+=".")}return t}var d=e("../lib"),p=e("../plots/plots"),f=e("./plot_schema"),h=d.isPlainObject,m=Array.isArray;t.exports=function(e,t){var n,a,s=f.get(),c=[],l={};m(e)?(l.data=d.extendDeep([],e),n=e):(l.data=[],n=[],c.push(o("array","data"))),h(t)?(l.layout=d.extendDeep({},t),a=t):(l.layout={},a={},arguments.length>1&&c.push(o("object","layout"))),p.supplyDefaults(l);for(var u=l._fullData,g=n.length,v=0;v<g;v++){var b=n[v],y=["data",v];if(h(b)){var x=u[v],M=x.type,_=s.traces[M].attributes;_.type={valType:"enumerated",values:[M]},!1===x.visible&&!1!==b.visible&&c.push(o("invisible",y)),r(b,x,_,c,y);var w=b.transforms,A=x.transforms;if(w){m(w)||c.push(o("array",y,["transforms"])),y.push("transforms");for(var S=0;S<w.length;S++){var k=["transforms",S],$=w[S].type;if(h(w[S])){var T=s.transforms[$]?s.transforms[$].attributes:{};T.type={valType:"enumerated",values:Object.keys(s.transforms)},r(w[S],A[S],T,c,y,k)}else c.push(o("object",y,k))}}}else c.push(o("object",y))}return r(a,l._fullLayout,i(s,u),c,"layout"),0===c.length?void 0:c};var g={object:function(e,t){return("layout"===e&&""===t?"The layout argument":"data"===e[0]&&""===t?"Trace "+e[1]+" in the data argument":a(e)+"key "+t)+" must be linked to an object container"},array:function(e,t){return("data"===e?"The data argument":a(e)+"key "+t)+" must be linked to an array container"},schema:function(e,t){return a(e)+"key "+t+" is not part of the schema"},unused:function(e,t,n){var r=h(n)?"container":"key";return a(e)+r+" "+t+" did not get coerced"},invisible:function(e){return"Trace "+e[1]+" got defaulted to be not visible"},value:function(e,t,n){return[a(e)+"key "+t,"is set to an invalid value ("+n+")"].join(" ")}}},{"../lib":697,"../plots/plots":760,"./plot_schema":721}],727:[function(e,t,n){"use strict";n.defaultConfig=e("./plot_api/plot_config"),n.Plots=e("./plots/plots"),n.Axes=e("./plots/cartesian/axes"),n.ModeBar=e("./components/modebar"),e("./plot_api/plot_api")},{"./components/modebar":646,"./plot_api/plot_api":719,"./plot_api/plot_config":720,"./plots/cartesian/axes":732,"./plots/plots":760}],728:[function(e,t,n){"use strict";t.exports={mode:{valType:"enumerated",dflt:"afterall",role:"info",values:["immediate","next","afterall"],description:["Describes how a new animate call interacts with currently-running","animations. If `immediate`, current animations are interrupted and","the new animation is started. If `next`, the current frame is allowed","to complete, after which the new animation is started. If `afterall`","all existing frames are animated to completion before the new animation","is started."].join(" ")},direction:{valType:"enumerated",role:"info",values:["forward","reverse"],dflt:"forward",description:["The direction in which to play the frames triggered by the animation call"].join(" ")},fromcurrent:{valType:"boolean",dflt:!1,role:"info",description:["Play frames starting at the current frame instead of the beginning."].join(" ")},frame:{duration:{valType:"number",role:"info",min:0,dflt:500,description:["The duration in milliseconds of each frame. If greater than the frame","duration, it will be limited to the frame duration."].join(" ")},redraw:{valType:"boolean",role:"info",dflt:!0,description:["Redraw the plot at completion of the transition. This is desirable","for transitions that include properties that cannot be transitioned,","but may significantly slow down updates that do not require a full","redraw of the plot"].join(" ")}},transition:{duration:{valType:"number",role:"info",min:0,dflt:500,description:["The duration of the transition, in milliseconds. If equal to zero,","updates are synchronous."].join(" ")},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],role:"info",description:"The easing function used for the transition"}}}},{}],729:[function(e,t,n){"use strict";var r=e("../lib");t.exports=function(e,t,n){var i,a=n.name,o=t[a],s=r.isArray(e[a])?e[a]:[],c=t[a]=[];for(i=0;i<s.length;i++){var l=s[i],u={},d={};r.isPlainObject(l)||(d.itemIsNotPlainObject=!0,l={}),n.handleItemDefaults(l,u,t,n,d),u._input=l,u._index=i,c.push(u)}if(r.isArray(o)){var p=Math.min(o.length,c.length);for(i=0;i<p;i++)r.relinkPrivateKeys(c[i],o[i])}}},{"../lib":697}],730:[function(e,t,n){"use strict";var r=e("../components/fx/attributes");t.exports={type:{valType:"enumerated",role:"info",values:[],dflt:"scatter"},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],role:"info",dflt:!0,description:["Determines whether or not this trace is visible.","If *legendonly*, the trace is not drawn,","but can appear as a legend item","(provided that the legend itself is visible)."].join(" ")},showlegend:{valType:"boolean",role:"info",dflt:!0,description:["Determines whether or not an item corresponding to this","trace is shown in the legend."].join(" ")},legendgroup:{valType:"string",role:"info",dflt:"",description:["Sets the legend group for this trace.","Traces part of the same legend group hide/show at the same time","when toggling legend items."].join(" ")},opacity:{valType:"number",role:"style",min:0,max:1,dflt:1,description:"Sets the opacity of the trace."},name:{valType:"string",role:"info",description:["Sets the trace name.","The trace name appear as the legend item and on hover."].join(" ")},uid:{valType:"string",role:"info",dflt:""},hoverinfo:{valType:"flaglist",role:"info",flags:["x","y","z","text","name"],extras:["all","none","skip"],dflt:"all",description:["Determines which trace information appear on hover.","If `none` or `skip` are set, no information is displayed upon hovering.","But, if `none` is set, click and hover events are still fired."].join(" ")},hoverlabel:r.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,role:"info",description:["The stream id number links a data trace on a plot with a stream.","See https://plot.ly/settings for more details."].join(" ")},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,role:"info",description:["Sets the maximum number of points to keep on the plots from an","incoming stream.","If `maxpoints` is set to *50*, only the newest 50 points will","be displayed on the plot."].join(" ")}}}},{"../components/fx/attributes":619}],731:[function(e,t,n){"use strict";t.exports={xaxis:{valType:"subplotid",role:"info",dflt:"x",description:["Sets a reference between this trace's x coordinates and","a 2D cartesian x axis.","If *x* (the default value), the x coordinates refer to","`layout.xaxis`.","If *x2*, the x coordinates refer to `layout.xaxis2`, and so on."].join(" ")},yaxis:{valType:"subplotid",role:"info",dflt:"y",description:["Sets a reference between this trace's y coordinates and","a 2D cartesian y axis.","If *y* (the default value), the y coordinates refer to","`layout.yaxis`.","If *y2*, the y coordinates refer to `layout.xaxis2`, and so on."].join(" ")}}},{}],732:[function(e,t,n){"use strict";function r(e,t,n,r,i){function a(t){return(1+100*(t-e)/n.dtick)%100<2}for(var o=0,s=0,c=0,l=0,u=0;u<t.length;u++)t[u]%1==0?c++:y(t[u])||l++,a(t[u])&&o++,a(t[u]+n.dtick/2)&&s++;var d=t.length-l;if(c===d&&"date"!==n.type)n.dtick<1?e=r-.5*n.dtick:(e-=.5)+n.dtick<r&&(e+=n.dtick);else if(s<.1*d&&(o>.3*d||a(r)||a(i))){var p=n.dtick/2;e+=e+p<r?p:-p}return e}function i(e,t,n,r,i){var a=M.findExactDates(t,i);if(a.exactDays>.8){var o=Number(n.substr(1));a.exactYears>.8&&o%12==0?e=P.tickIncrement(e,"M6","reverse")+1.5*E:a.exactMonths>.8?e=P.tickIncrement(e,"M1","reverse")+15.5*E:e-=E/2;var s=P.tickIncrement(e,n);if(s<=r)return s}return e}function a(e){var t,n,r=e.tickvals,i=e.ticktext,a=new Array(r.length),o=M.simpleMap(e.range,e.r2l),s=1.0001*o[0]-1e-4*o[1],l=1.0001*o[1]-1e-4*o[0],u=Math.min(s,l),d=Math.max(s,l),p=0;Array.isArray(i)||(i=[]);var f="category"===e.type?e.d2l_noadd:e.d2l;for("log"===e.type&&"L"!==String(e.dtick).charAt(0)&&(e.dtick="L"+Math.pow(10,Math.floor(Math.min(e.range[0],e.range[1]))-1)),n=0;n<r.length;n++)(t=f(r[n]))>u&&t<d&&(void 0===i[n]?a[p]=P.tickText(e,t):a[p]=c(e,t,String(i[n])),p++);return p<r.length&&a.splice(p,r.length-p),a}function o(e,t,n){return t*M.roundUp(e/t,n)}function s(e){var t=e.dtick;if(e._tickexponent=0,y(t)||"string"==typeof t||(t=1),"category"===e.type&&(e._tickround=null),"date"===e.type){var n=e.r2l(e.tick0),r=e.l2r(n).replace(/(^-|i)/g,""),i=r.length;if("M"===String(t).charAt(0))i>10||"01-01"!==r.substr(5)?e._tickround="d":e._tickround=+t.substr(1)%12==0?"y":"m";else if(t>=E&&i<=10||t>=15*E)e._tickround="d";else if(t>=z&&i<=16||t>=O)e._tickround="M";else if(t>=L&&i<=19||t>=z)e._tickround="S";else{var a=e.l2r(n+t).replace(/^-/,"").length;e._tickround=Math.max(i,a)-20}}else if(y(t)||"L"===t.charAt(0)){var o=e.range.map(e.r2d||Number);y(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(o[0]),Math.abs(o[1])),c=Math.floor(Math.log(s)/Math.LN10+.01);Math.abs(c)>3&&("SI"===e.exponentformat||"B"===e.exponentformat?e._tickexponent=3*Math.round((c-1)/3):e._tickexponent=c)}else e._tickround=null}function c(e,t,n){var r=e.tickfont||{};return{x:t,dx:0,dy:0,text:n||"",fontSize:r.size,font:r.family,fontColor:r.color}}function l(e,t,n,r){var i=e._tickround,a=n&&e.hoverformat||e.tickformat;r&&(i=y(i)?4:{y:"m",m:"d",d:"M",M:"S",S:4}[i]);var o,s=M.formatDate(t.x,a,i,e.calendar),c=s.indexOf("\n");-1!==c&&(o=s.substr(c+1),s=s.substr(0,c)),r&&("00:00:00"===s||"00:00"===s?(s=o,o=""):8===s.length&&(s=s.replace(/:00$/,""))),o&&(n?"d"===i?s+=", "+o:s=o+(s?", "+s:""):e._inCalcTicks&&o===e._prevDateHead||(s+="<br>"+o,e._prevDateHead=o)),t.text=s}function u(e,t,n,r,i){var a=e.dtick,o=t.x;if(!r||"string"==typeof a&&"L"===a.charAt(0)||(a="L3"),e.tickformat||"string"==typeof a&&"L"===a.charAt(0))t.text=f(Math.pow(10,o),e,i,r);else if(y(a)||"D"===a.charAt(0)&&M.mod(o+.01,1)<.1)if(-1!==["e","E","power"].indexOf(e.exponentformat)){var s=Math.round(o);t.text=0===s?1:1===s?"10":s>1?"10<sup>"+s+"</sup>":"10<sup>−"+-s+"</sup>",t.fontSize*=1.25}else t.text=f(Math.pow(10,o),e,"","fakehover"),"D1"===a&&"y"===e._id.charAt(0)&&(t.dy-=t.fontSize/6);else{if("D"!==a.charAt(0))throw"unrecognized dtick "+String(a);t.text=String(Math.round(Math.pow(10,M.mod(o,1)))),t.fontSize*=.75}if("D1"===e.dtick){var c=String(t.text).charAt(0);"0"!==c&&"1"!==c||("y"===e._id.charAt(0)?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(o<0?.5:.25)))}}function d(e,t){var n=e._categories[Math.round(t.x)];void 0===n&&(n=""),t.text=String(n)}function p(e,t,n,r,i){"all"===e.showexponent&&Math.abs(t.x/e.dtick)<1e-6&&(i="hide"),t.text=f(t.x,e,i,r)}function f(e,t,n,r){var i=e<0,a=t._tickround,o=n||t.exponentformat||"B",c=t._tickexponent,l=t.tickformat,u=t.separatethousands;if(r){var d={exponentformat:t.exponentformat,dtick:"none"===t.showexponent?t.dtick:y(e)?Math.abs(e)||1:1,range:"none"===t.showexponent?t.range.map(t.r2d):[0,e||1]};s(d),a=(Number(d._tickround)||0)+4,c=d._tickexponent,t.hoverformat&&(l=t.hoverformat)}if(l)return b.format(l)(e).replace(/-/g,"−");var p=Math.pow(10,-a)/2;if("none"===o&&(c=0),(e=Math.abs(e))<p)e="0",i=!1;else{if(e+=p,c&&(e*=Math.pow(10,-c),a+=c),0===a)e=String(Math.floor(e));else if(a<0){e=String(Math.round(e)),e=e.substr(0,e.length+a);for(var f=a;f<0;f++)e+="0"}else{e=String(e);var h=e.indexOf(".")+1;h&&(e=e.substr(0,h+a).replace(/\.?0+$/,""))}e=M.numSeparate(e,t._separators,u)}if(c&&"hide"!==o){var m;m=c<0?"−"+-c:"power"!==o?"+"+c:String(c),"e"===o||("SI"===o||"B"===o)&&(c>12||c<-15)?e+="e"+m:"E"===o?e+="E"+m:"power"===o?e+="×10<sup>"+m+"</sup>":"B"===o&&9===c?e+="B":"SI"!==o&&"B"!==o||(e+=F[c/3+5])}return i?"−"+e:e}function h(e,t){var n,r,i=[];for(n=0;n<t.length;n++){var a=[],o=e._fullData[t[n]].xaxis,s=e._fullData[t[n]].yaxis;if(o&&s){for(r=0;r<i.length;r++)-1===i[r].x.indexOf(o)&&-1===i[r].y.indexOf(s)||a.push(r);if(a.length){var c,l=i[a[0]];if(a.length>1)for(r=1;r<a.length;r++)c=i[a[r]],m(l.x,c.x),m(l.y,c.y);m(l.x,[o]),m(l.y,[s])}else i.push({x:[o],y:[s]})}}return i}function m(e,t){for(var n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n])}function g(e,t,n){var r,i,a=[],o=[],s=e.layout;for(r=0;r<t.length;r++)a.push(P.getFromId(e,t[r]));for(r=0;r<n.length;r++)o.push(P.getFromId(e,n[r]));var c=Object.keys(a[0]),l=["anchor","domain","overlaying","position","side","tickangle"],u=["linear","log"];for(r=0;r<c.length;r++){var d=c[r],p=a[0][d],f=o[0][d],h=!0,m=!1,g=!1;if("_"!==d.charAt(0)&&"function"!=typeof p&&-1===l.indexOf(d)){for(i=1;i<a.length&&h;i++){var b=a[i][d];"type"===d&&-1!==u.indexOf(p)&&-1!==u.indexOf(b)&&p!==b?m=!0:b!==p&&(h=!1)}for(i=1;i<o.length&&h;i++){var y=o[i][d];"type"===d&&-1!==u.indexOf(f)&&-1!==u.indexOf(y)&&f!==y?g=!0:o[i][d]!==f&&(h=!1)}h&&(m&&(s[a[0]._name].type="linear"),g&&(s[o[0]._name].type="linear"),v(s,d,a,o))}}for(r=0;r<e._fullLayout.annotations.length;r++){var x=e._fullLayout.annotations[r];-1!==t.indexOf(x.xref)&&-1!==n.indexOf(x.yref)&&M.swapAttrs(s.annotations[r],["?"])}}function v(e,t,n,r){var i,a=M.nestedProperty,o=a(e[n[0]._name],t).get(),s=a(e[r[0]._name],t).get();for("title"===t&&("Click to enter X axis title"===o&&(o="Click to enter Y axis title"),"Click to enter Y axis title"===s&&(s="Click to enter X axis title")),i=0;i<n.length;i++)a(e,n[i]._name+"."+t).set(s);for(i=0;i<r.length;i++)a(e,r[i]._name+"."+t).set(o)}var b=e("d3"),y=e("fast-isnumeric"),x=e("../../registry"),M=e("../../lib"),_=e("../../lib/svg_text_utils"),w=e("../../components/titles"),A=e("../../components/color"),S=e("../../components/drawing"),k=e("../../constants/numerical"),$=k.FP_SAFE,T=k.ONEAVGYEAR,C=k.ONEAVGMONTH,E=k.ONEDAY,O=k.ONEHOUR,z=k.ONEMIN,L=k.ONESEC,N=k.BADNUM,P=t.exports={};P.layoutAttributes=e("./layout_attributes"),P.supplyLayoutDefaults=e("./layout_defaults"),P.setConvert=e("./set_convert");var I=e("./axis_autotype"),D=e("./axis_ids");P.id2name=D.id2name,P.cleanId=D.cleanId,P.list=D.list,P.listIds=D.listIds,P.getFromId=D.getFromId,P.getFromTrace=D.getFromTrace,P.coerceRef=function(e,t,n,r,i,a){var o=r.charAt(r.length-1),s=P.listIds(n,o),c=r+"ref",l={};return i||(i=s[0]||a),a||(a=i),l[c]={valType:"enumerated",values:s.concat(a?[a]:[]),dflt:i},M.coerce(e,t,l,c)},P.coercePosition=function(e,t,n,r,i,a){var o,s;if("paper"===r||"pixel"===r)o=n(i,a);else{var c=P.getFromId(t,r);if(a=c.fraction2r(a),o=n(i,a),"category"===c.type){if("string"==typeof o&&(c._categories||[]).length)return s=c._categories.indexOf(o),void(e[i]=-1===s?a:s)}else if("date"===c.type)return void(e[i]=M.cleanDate(o,N,c.calendar))}e[i]=y(o)?Number(o):a},P.getDataToCoordFunc=function(e,t,n,r){var i,a="x"===n||"y"===n||"z"===n?n:r;if(Array.isArray(a)){if(i={type:I(r),_categories:[]},P.setConvert(i),"category"===i.type)for(var o=0;o<r.length;o++)i.d2c(r[o])}else i=P.getFromTrace(e,t,a);return i?i.d2c:"ids"===a?function(e){return String(e)}:function(e){return+e}},P.clearTypes=function(e,t){Array.isArray(t)&&t.length||(t=e._fullData.map(function(e,t){return t})),t.forEach(function(t){var n=e.data[t];delete(P.getFromId(e,n.xaxis)||{}).type,delete(P.getFromId(e,n.yaxis)||{}).type})},P.counterLetter=function(e){var t=e.charAt(0);return"x"===t?"y":"y"===t?"x":void 0},P.minDtick=function(e,t,n,r){-1===["log","category"].indexOf(e.type)&&r?void 0===e._minDtick?(e._minDtick=t,e._forceTick0=n):e._minDtick&&((e._minDtick/t+1e-6)%1<2e-6&&((n-e._forceTick0)/t%1+1.000001)%1<2e-6?(e._minDtick=t,e._forceTick0=n):((t/e._minDtick+1e-6)%1>2e-6||((n-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0)):e._minDtick=0},P.getAutoRange=function(e){var t,n=[],r=e._min[0].val,i=e._max[0].val;for(t=1;t<e._min.length&&r===i;t++)r=Math.min(r,e._min[t].val);for(t=1;t<e._max.length&&r===i;t++)i=Math.max(i,e._max[t].val);var a,o,s,c,l,u,d,p=0,f=!1;if(e.range){var h=M.simpleMap(e.range,e.r2l);f=h[1]<h[0]}for("reversed"===e.autorange&&(f=!0,e.autorange=!0),t=0;t<e._min.length;t++)for(o=e._min[t],a=0;a<e._max.length;a++)s=e._max[a],d=s.val-o.val,u=e._length-o.pad-s.pad,d>0&&u>0&&d/u>p&&(c=o,l=s,p=d/u);if(r===i){var m=r-1,g=r+1;n="tozero"===e.rangemode?r<0?[m,0]:[0,g]:"nonnegative"===e.rangemode?[Math.max(0,m),Math.max(0,g)]:[m,g]}else p&&("linear"!==e.type&&"-"!==e.type||("tozero"===e.rangemode?(c.val>=0&&(c={val:0,pad:0}),l.val<=0&&(l={val:0,pad:0})):"nonnegative"===e.rangemode&&(c.val-p*c.pad<0&&(c={val:0,pad:0}),l.val<0&&(l={val:1,pad:0})),p=(l.val-c.val)/(e._length-c.pad-l.pad)),n=[c.val-p*c.pad,l.val+p*l.pad]);return n[0]===n[1]&&("tozero"===e.rangemode?n=n[0]<0?[n[0],0]:n[0]>0?[0,n[0]]:[0,1]:(n=[n[0]-1,n[0]+1],"nonnegative"===e.rangemode&&(n[0]=Math.max(0,n[0])))),f&&n.reverse(),M.simpleMap(n,e.l2r||Number)},P.doAutoRange=function(e){e._length||e.setScale();var t=e._min&&e._max&&e._min.length&&e._max.length;if(e.autorange&&t){e.range=P.getAutoRange(e);var n=e._input;n.range=e.range.slice(),n.autorange=e.autorange}},P.saveRangeInitial=function(e,t){for(var n=P.list(e,"",!0),r=!1,i=0;i<n.length;i++){var a=n[i],o=void 0===a._rangeInitial,s=o||!(a.range[0]===a._rangeInitial[0]&&a.range[1]===a._rangeInitial[1]);(o&&!1===a.autorange||t&&s)&&(a._rangeInitial=a.range.slice(),r=!0)}return r},P.saveShowSpikeInitial=function(e,t){for(var n=P.list(e,"",!0),r=!1,i="on",a=0;a<n.length;a++){var o=n[a],s=void 0===o._showSpikeInitial,c=s||!(o.showspikes===o._showspikes);(s||t&&c)&&(o._showSpikeInitial=o.showspikes,r=!0),"on"!==i||o.showspikes||(i="off")}return e._fullLayout._cartesianSpikesEnabled=i,r},P.expand=function(e,t,n){function r(e){if(Array.isArray(e))return function(t){return Math.max(Number(e[t]||0),0)};var t=Math.max(Number(e||0),0);return function(){return t}}function i(n){function r(e){return y(e)&&Math.abs(e)<$}if(c=t[n],y(c)){if(d=x(n)+v,p=_(n)+v,h=c-A(n),m=c+w(n),"log"===e.type&&h<m/10&&(h=m/10),l=e.c2l(h),u=e.c2l(m),b&&(l=Math.min(0,l),u=Math.max(0,u)),r(l)){for(f=!0,o=0;o<e._min.length&&f;o++)s=e._min[o],s.val<=l&&s.pad>=p?f=!1:s.val>=l&&s.pad<=p&&(e._min.splice(o,1),o--);f&&e._min.push({val:l,pad:b&&0===l?0:p})}if(r(u)){for(f=!0,o=0;o<e._max.length&&f;o++)s=e._max[o],s.val>=u&&s.pad>=d?f=!1:s.val<=u&&s.pad<=d&&(e._max.splice(o,1),o--);f&&e._max.push({val:u,pad:b&&0===u?0:d})}}}if((e.autorange||!!M.nestedProperty(e,"rangeslider.autorange").get())&&t){e._min||(e._min=[]),e._max||(e._max=[]),n||(n={}),e._m||e.setScale();var a,o,s,c,l,u,d,p,f,h,m,g=t.length,v=n.padded?.05*e._length:0,b=n.tozero&&("linear"===e.type||"-"===e.type),x=r((e._m>0?n.ppadplus:n.ppadminus)||n.ppad||0),_=r((e._m>0?n.ppadminus:n.ppadplus)||n.ppad||0),w=r(n.vpadplus||n.vpad),A=r(n.vpadminus||n.vpad);for(a=0;a<6;a++)i(a);for(a=g-1;a>5;a--)i(a)}},P.autoBin=function(e,t,n,a,o){var s=M.aggNums(Math.min,null,e),c=M.aggNums(Math.max,null,e);if(o||(o=t.calendar),"category"===t.type)return{start:s-.5,end:c+.5,size:1};var l;if(n)l=(c-s)/n;else{var u=M.distinctVals(e),d=Math.pow(10,Math.floor(Math.log(u.minDiff)/Math.LN10)),p=d*M.roundUp(u.minDiff/d,[.9,1.9,4.9,9.9],!0);l=Math.max(p,2*M.stdev(e)/Math.pow(e.length,a?.25:.4)),y(l)||(l=1)}var f;f="log"===t.type?{type:"linear",range:[s,c]}:{type:t.type,range:M.simpleMap([s,c],t.c2r,0,o),calendar:o},P.setConvert(f),P.autoTicks(f,l);var h,m=P.tickIncrement(P.tickFirst(f),f.dtick,"reverse",o);if("number"==typeof f.dtick){m=r(m,e,f,s,c);h=m+(1+Math.floor((c-m)/f.dtick))*f.dtick}else for("M"===f.dtick.charAt(0)&&(m=i(m,e,f.dtick,s,o)),h=m;h<=c;)h=P.tickIncrement(h,f.dtick,!1,o);return{start:t.c2r(m,0,o),end:t.c2r(h,0,o),size:f.dtick}},P.calcTicks=function(e){var t=M.simpleMap(e.range,e.r2l);if("auto"===e.tickmode||!e.dtick){var n,r=e.nticks;r||("category"===e.type?(n=e.tickfont?1.2*(e.tickfont.size||12):15,r=e._length/n):(n="y"===e._id.charAt(0)?40:80,r=M.constrain(e._length/n,4,9)+1)),"array"===e.tickmode&&(r*=100),P.autoTicks(e,Math.abs(t[1]-t[0])/r),e._minDtick>0&&e.dtick<2*e._minDtick&&(e.dtick=e._minDtick,e.tick0=e.l2r(e._forceTick0))}if(e.tick0||(e.tick0="date"===e.type?"2000-01-01":0),s(e),"array"===e.tickmode)return a(e);e._tmin=P.tickFirst(e);var i=t[1]<t[0],o=[],c=1.0001*t[1]-1e-4*t[0];"category"===e.type&&(c=i?Math.max(-.5,c):Math.min(e._categories.length-.5,c));for(var l=e._tmin;(i?l>=c:l<=c)&&(o.push(l),!(o.length>1e3));l=P.tickIncrement(l,e.dtick,i,e.calendar));e._tmax=o[o.length-1],e._prevDateHead="",e._inCalcTicks=!0;for(var u=new Array(o.length),d=0;d<o.length;d++)u[d]=P.tickText(e,o[d]);return e._inCalcTicks=!1,u};var R=[2,5,10],j=[1,2,3,6,12],q=[1,2,5,10,15,30],B=[1,2,3,7,14],W=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],H=[-.301,0,.301,.699,1];P.autoTicks=function(e,t){var n;if("date"===e.type){e.tick0=M.dateTick0(e.calendar);var r=2*t;r>T?(t/=T,n=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),e.dtick="M"+12*o(t,n,R)):r>C?(t/=C,e.dtick="M"+o(t,1,j)):r>E?(e.dtick=o(t,E,B),e.tick0=M.dateTick0(e.calendar,!0)):r>O?e.dtick=o(t,O,j):r>z?e.dtick=o(t,z,q):r>L?e.dtick=o(t,L,q):(n=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),e.dtick=o(t,n,R))}else if("log"===e.type){e.tick0=0;var i=M.simpleMap(e.range,e.r2l);if(t>.7)e.dtick=Math.ceil(t);else if(Math.abs(i[1]-i[0])<1){var a=1.5*Math.abs((i[1]-i[0])/t);t=Math.abs(Math.pow(10,i[1])-Math.pow(10,i[0]))/a,n=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),e.dtick="L"+o(t,n,R)}else e.dtick=t>.3?"D2":"D1"}else"category"===e.type?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):(e.tick0=0,n=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),e.dtick=o(t,n,R));if(0===e.dtick&&(e.dtick=1),!y(e.dtick)&&"string"!=typeof e.dtick){var s=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(s)}},P.tickIncrement=function(e,t,n,r){var i=n?-1:1;if(y(t))return e+i*t;var a=t.charAt(0),o=i*Number(t.substr(1));if("M"===a)return M.incrementMonth(e,o,r);if("L"===a)return Math.log(Math.pow(10,e)+o)/Math.LN10;if("D"===a){var s="D2"===t?H:W,c=e+.01*i,l=M.roundUp(M.mod(c,1),s,n);return Math.floor(c)+Math.log(b.round(Math.pow(10,l),1))/Math.LN10}throw"unrecognized dtick "+String(t)},P.tickFirst=function(e){var t=e.r2l||Number,n=M.simpleMap(e.range,t),r=n[1]<n[0],i=r?Math.floor:Math.ceil,a=1.0001*n[0]-1e-4*n[1],o=e.dtick,s=t(e.tick0);if(y(o)){var c=i((a-s)/o)*o+s;return"category"===e.type&&(c=M.constrain(c,0,e._categories.length-1)),c}var l=o.charAt(0),u=Number(o.substr(1));if("M"===l){for(var d,p,f,h=0,m=s;h<10;){if(((d=P.tickIncrement(m,o,r,e.calendar))-a)*(m-a)<=0)return r?Math.min(m,d):Math.max(m,d);p=(a-(m+d)/2)/(d-m),f=l+(Math.abs(Math.round(p))||1)*u,m=P.tickIncrement(m,f,p<0?!r:r,e.calendar),h++}return M.error("tickFirst did not converge",e),m}if("L"===l)return Math.log(i((Math.pow(10,a)-s)/u)*u+s)/Math.LN10;if("D"===l){var g="D2"===o?H:W,v=M.roundUp(M.mod(a,1),g,r);return Math.floor(a)+Math.log(b.round(Math.pow(10,v),1))/Math.LN10}throw"unrecognized dtick "+String(o)},P.tickText=function(e,t,n){function r(r){var i;return void 0===r||(n?"none"===r:(i={first:e._tmin,last:e._tmax}[r],"all"!==r&&t!==i))}var i,a,o=c(e,t),s="array"===e.tickmode,f=n||s,h="category"===e.type?e.d2l_noadd:e.d2l;if(s&&Array.isArray(e.ticktext)){var m=M.simpleMap(e.range,e.r2l),g=Math.abs(m[1]-m[0])/1e4;for(a=0;a<e.ticktext.length&&!(Math.abs(t-h(e.tickvals[a]))<g);a++);if(a<e.ticktext.length)return o.text=String(e.ticktext[a]),o}return i="none"!==e.exponentformat&&r(e.showexponent)?"hide":"","date"===e.type?l(e,o,n,f):"log"===e.type?u(e,o,n,f,i):"category"===e.type?d(e,o):p(e,o,n,f,i),e.tickprefix&&!r(e.showtickprefix)&&(o.text=e.tickprefix+o.text),e.ticksuffix&&!r(e.showticksuffix)&&(o.text+=e.ticksuffix),o};var F=["f","p","n","μ","m","","k","M","G","T"];P.subplotMatch=/^x([0-9]*)y([0-9]*)$/,P.getSubplots=function(e,t){var n,r,i,a=[],o=e._fullData||e.data||[];for(n=0;n<o.length;n++){var s=o[n];if(!1!==s.visible&&"legendonly"!==s.visible&&(x.traceIs(s,"cartesian")||x.traceIs(s,"gl2d"))){i=(s.xaxis||"x")+(s.yaxis||"y"),-1===a.indexOf(i)&&a.push(i)}}var c=P.list(e,"",!0);for(n=0;n<c.length;n++){var l=c[n],u=l._id.charAt(0),d="free"===l.anchor?"x"===u?"y":"x":l.anchor,p=P.getFromId(e,d),f=!1;for(r=0;r<a.length;r++)if(function(e,t){return-1!==e.indexOf(t._id)}(a[r],l)){f=!0;break}"free"===l.anchor&&f||p&&(i="x"===u?l._id+p._id:p._id+l._id,-1===a.indexOf(i)&&a.push(i))}var h=P.subplotMatch,m=[];for(n=0;n<a.length;n++)i=a[n],h.test(i)&&m.push(i);return m.sort(function(e,t){var n=e.match(h),r=t.match(h);return n[1]===r[1]?+(n[2]||1)-(r[2]||1):+(n[1]||0)-(r[1]||0)}),t?P.findSubplotsWithAxis(m,t):m},P.findSubplotsWithAxis=function(e,t){for(var n=new RegExp("x"===t._id.charAt(0)?"^"+t._id+"y":t._id+"$"),r=[],i=0;i<e.length;i++){var a=e[i];n.test(a)&&r.push(a)}return r},P.makeClipPaths=function(e){var t,n,r=e._fullLayout,i=r._defs,a={_offset:0,_length:r.width,_id:""},o={_offset:0,_length:r.height,_id:""},s=P.list(e,"x",!0),c=P.list(e,"y",!0),l=[];for(t=0;t<s.length;t++)for(l.push({x:s[t],y:o}),n=0;n<c.length;n++)0===t&&l.push({x:a,y:c[n]}),l.push({x:s[t],y:c[n]});var u=i.selectAll("g.clips").data([0]);u.enter().append("g").classed("clips",!0);var d=u.selectAll(".axesclip").data(l,function(e){return e.x._id+e.y._id});d.enter().append("clipPath").classed("axesclip",!0).attr("id",function(e){return"clip"+r._uid+e.x._id+e.y._id}).append("rect"),d.exit().remove(),d.each(function(e){b.select(this).select("rect").attr({x:e.x._offset||0,y:e.y._offset||0,width:e.x._length||1,height:e.y._length||1})})},P.doTicks=function(e,t,n){function r(e){var t=l.l2p(e.x);return t>1&&t<l._length-1}function i(e,t){var n=e.selectAll("path."+C).data("inside"===l.ticks?H:$,T);t&&l.ticks?(n.enter().append("path").classed(C,1).classed("ticks",1).classed("crisp",1).call(A.stroke,l.tickcolor).style("stroke-width",j+"px").attr("d",t),n.attr("transform",f),n.exit().remove()):n.remove()}function a(n,r){function i(e,t){e.each(function(e){var n=x(t),r=b.select(this),i=r.select(".text-math-group"),a=f(e)+(y(t)&&0!=+t?" rotate("+t+","+p(e)+","+(h(e)-e.fontSize/2)+")":"");if(i.empty()){var o=r.select("text").attr({transform:a,"text-anchor":n});o.empty()||o.selectAll("tspan.line").attr({x:o.attr("x"),y:o.attr("y")})}else{var s=S.bBox(i.node()).width*{end:-.5,start:.5}[n];i.attr("transform",a+(s?"translate("+s+",0)":""))}})}function a(){return O.length&&Promise.all(O)}function s(){if(i(d,l.tickangle),"x"===v&&!y(l.tickangle)&&("log"!==l.type||"D"!==String(l.dtick).charAt(0))){var e=[];for(d.each(function(t){var n=b.select(this),r=n.select(".text-math-group"),i=l.l2p(t.x);r.empty()&&(r=n.select("text"));var a=S.bBox(r.node());e.push({top:0,bottom:10,height:10,left:i-a.width/2,right:i+a.width/2+2,width:a.width+2})}),g=0;g<e.length-1;g++)if(M.bBoxIntersect(e[g],e[g+1])){E=30;break}if(E){Math.abs(($[$.length-1].x-$[0].x)*l._m)/($.length-1)<2.5*k&&(E=90),i(d,E)}l._lastangle=E}return o(),t+" done"}function c(){function t(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.max(e[1],t[1])}var r=n.node().getBoundingClientRect(),i=e.getBoundingClientRect();if(l._boundingBox={width:r.width,height:r.height,left:r.left-i.left,right:r.right-i.left,top:r.top-i.top,bottom:r.bottom-i.top},m){var a=l._counterSpan=[1/0,-1/0];for(g=0;g<m.length;g++){var o=u._plots[m[g]],s=o["x"===v?"yaxis":"xaxis"];t(a,[s._offset,s._offset+s._length])}"free"===l.anchor&&t(a,"x"===v?[l._boundingBox.bottom,l._boundingBox.top]:[l._boundingBox.right,l._boundingBox.left])}}var d=n.selectAll("g."+C).data($,T);if(!l.showticklabels||!y(r))return d.remove(),void o();var p,h,x,w,A;"x"===v?(A="bottom"===B?1:-1,p=function(e){return e.dx+N*A},w=r+(L+z)*A,h=function(e){return e.dy+w+e.fontSize*("bottom"===B?1:-.5)},x=function(e){return y(e)&&0!==e&&180!==e?e*A<0?"end":"start":"middle"}):(A="right"===B?1:-1,h=function(e){return e.dy+e.fontSize/2-N*A},p=function(e){return e.dx+r+(L+z+(90===Math.abs(l.tickangle)?e.fontSize/2:0))*A},x=function(e){return y(e)&&90===Math.abs(e)?"middle":"right"===B?"start":"end"});var k=0,E=0,O=[];d.enter().append("g").classed(C,1).append("text").attr("text-anchor","middle").each(function(t){var n=b.select(this),r=e._promises.length;n.call(S.setPosition,p(t),h(t)).call(S.font,t.font,t.fontSize,t.fontColor).text(t.text).call(_.convertToTspans),r=e._promises[r],r?O.push(e._promises.pop().then(function(){i(n,l.tickangle)})):i(n,l.tickangle)}),d.exit().remove(),d.each(function(e){k=Math.max(k,e.fontSize)}),i(d,l._lastangle||l.tickangle);var P=M.syncOrAsync([a,s,c])
70;return P&&P.then&&e._promises.push(P),P}function o(){if(!n){var r,i,a,o,s=D.getFromId(e,t),c=b.select(e).selectAll("g."+t+"tick"),l={selection:c,side:s.side},d=t.charAt(0),p=e._fullLayout._size,f=s.titlefont.size;if(c.size()){var h=S.getTranslate(c.node().parentNode);l.offsetLeft=h.x,l.offsetTop=h.y}"x"===d?(i="free"===s.anchor?{_offset:p.t+(1-(s.position||0))*p.h,_length:0}:D.getFromId(e,s.anchor),a=s._offset+s._length/2,o=i._offset+("top"===s.side?-10-f*(1.5+(s.showticklabels?1:0)):i._length+10+f*(1.5+(s.showticklabels?1.5:.5))),s.rangeslider&&s.rangeslider.visible&&s._boundingBox&&(o+=(u.height-u.margin.b-u.margin.t)*s.rangeslider.thickness+s._boundingBox.height),l.side||(l.side="bottom")):(i="free"===s.anchor?{_offset:p.l+(s.position||0)*p.w,_length:0}:D.getFromId(e,s.anchor),o=s._offset+s._length/2,a=i._offset+("right"===s.side?i._length+10+f*(1.5+(s.showticklabels?1:.5)):-10-f*(1.5+(s.showticklabels?.5:0))),r={rotate:"-90",offset:0},l.side||(l.side="left")),w.draw(e,t+"title",{propContainer:s,propName:s._name+".title",dfltName:d.toUpperCase()+" axis",avoid:l,transform:r,attributes:{x:a,y:o,"text-anchor":"middle"}})}}function s(e,t){return!0===e.visible&&e.xaxis+e.yaxis===t&&(!(!x.traceIs(e,"bar")||e.orientation!=={x:"h",y:"v"}[v])||e.fill&&e.fill.charAt(e.fill.length-1)===v)}function c(t,n,i){var a=t.gridlayer,o=t.zerolinelayer,c=t["hidegrid"+v]?[]:H,u=l._gridpath||"M0,0"+("x"===v?"v":"h")+n._length,d=a.selectAll("path."+E).data(!1===l.showgrid?[]:c,T);if(d.enter().append("path").classed(E,1).classed("crisp",1).attr("d",u).each(function(e){l.zeroline&&("linear"===l.type||"-"===l.type)&&Math.abs(e.x)<l.dtick/100&&b.select(this).remove()}),d.attr("transform",f).call(A.stroke,l.gridcolor||"#ddd").style("stroke-width",I+"px"),d.exit().remove(),o){for(var p=!1,h=0;h<e._fullData.length;h++)if(s(e._fullData[h],i)){p=!0;break}var m=M.simpleMap(l.range,l.r2l),g=m[0]*m[1]<=0&&l.zeroline&&("linear"===l.type||"-"===l.type)&&c.length&&(p||r({x:0})||!l.showline),y=o.selectAll("path."+O).data(g?[{x:0}]:[]);y.enter().append("path").classed(O,1).classed("zl",1).classed("crisp",1).attr("d",u),y.attr("transform",f).call(A.stroke,l.zerolinecolor||A.defaultLine).style("stroke-width",R+"px"),y.exit().remove()}}var l,u=e._fullLayout,d=!1;if("object"===(void 0===t?"undefined":_typeof2(t)))l=t,t=l._id,d=!0;else if(l=P.getFromId(e,t),"redraw"===t&&u._paper.selectAll("g.subplot").each(function(e){var t=u._plots[e],n=t.xaxis,r=t.yaxis;t.xaxislayer.selectAll("."+n._id+"tick").remove(),t.yaxislayer.selectAll("."+r._id+"tick").remove(),t.gridlayer.selectAll("path").remove(),t.zerolinelayer.selectAll("path").remove()}),!t||"redraw"===t)return M.syncOrAsync(P.list(e,"",!0).map(function(n){return function(){if(n._id){var r=P.doTicks(e,n._id);return"redraw"===t&&(n._r=n.range.slice(),n._rl=M.simpleMap(n._r,n.r2l)),r}}}));l.tickformat||(-1===["none","e","E","power","SI","B"].indexOf(l.exponentformat)&&(l.exponentformat="e"),-1===["all","first","last","none"].indexOf(l.showexponent)&&(l.showexponent="all")),l.setScale();var p,f,h,m,g,v=t.charAt(0),k=P.counterLetter(t),$=P.calcTicks(l),T=function(e){return[e.text,e.x,l.mirror].join("_")},C=t+"tick",E=t+"grid",O=t+"zl",z=(l.linewidth||1)/2,L=("outside"===l.ticks?l.ticklen:1)+(l.linewidth||0),N=0,I=S.crispRound(e,l.gridwidth,1),R=S.crispRound(e,l.zerolinewidth,I),j=S.crispRound(e,l.tickwidth,1);if(l._counterangle&&"outside"===l.ticks){var q=l._counterangle*Math.PI/180;L=l.ticklen*Math.cos(q)+(l.linewidth||0),N=l.ticklen*Math.sin(q)}if("x"===v)p=["bottom","top"],f=function(e){return"translate("+l.l2p(e.x)+",0)"},h=function(e,t){if(l._counterangle){var n=l._counterangle*Math.PI/180;return"M0,"+e+"l"+Math.sin(n)*t+","+Math.cos(n)*t}return"M0,"+e+"v"+t};else{if("y"!==v)return void M.warn("Unrecognized doTicks axis:",t);p=["left","right"],f=function(e){return"translate(0,"+l.l2p(e.x)+")"},h=function(e,t){if(l._counterangle){var n=l._counterangle*Math.PI/180;return"M"+e+",0l"+Math.cos(n)*t+","+-Math.sin(n)*t}return"M"+e+",0h"+t}}var B=l.side||p[0],W=[-1,1,B===p[1]?1:-1];if("inside"!==l.ticks==("x"===v)&&(W=W.map(function(e){return-e})),l.visible){var H=$.filter(r);if(d){if(i(l._axislayer,h(l._pos+z*W[2],W[2]*l.ticklen)),l._counteraxis){c({gridlayer:l._gridlayer,zerolinelayer:l._zerolinelayer},l._counteraxis)}return a(l._axislayer,l._pos)}m=P.getSubplots(e,l);var F=m.map(function(e){var t=u._plots[e];if(u._has("cartesian")){var n=t[v+"axislayer"],r=l._linepositions[e]||[],o=t[k+"axis"],s=o._id===l.anchor,d=[!1,!1,!1],f="";if("allticks"===l.mirror?d=[!0,!0,!1]:s&&("ticks"===l.mirror?d=[!0,!0,!1]:d[p.indexOf(B)]=!0),l.mirrors)for(g=0;g<2;g++){var m=l.mirrors[o._id+p[g]];"ticks"!==m&&"labels"!==m||(d[g]=!0)}return void 0!==r[2]&&(d[2]=!0),d.forEach(function(e,t){var n=r[t],i=W[t];e&&y(n)&&(f+=h(n+z*i,i*l.ticklen))}),i(n,f),c(t,o,e),a(n,r[3])}}).filter(function(e){return e&&e.then});return F.length?Promise.all(F):0}},P.swap=function(e,t){for(var n=h(e,t),r=0;r<n.length;r++)g(e,n[r].x,n[r].y)}},{"../../components/color":586,"../../components/drawing":610,"../../components/titles":675,"../../constants/numerical":683,"../../lib":697,"../../lib/svg_text_utils":714,"../../registry":767,"./axis_autotype":733,"./axis_ids":735,"./layout_attributes":743,"./layout_defaults":744,"./set_convert":749,d3:265,"fast-isnumeric":267}],733:[function(e,t,n){"use strict";function r(e){if(!e)return!1;for(var t=0;t<e.length;t++)if(o(e[t]))return!0;return!1}function i(e,t){for(var n,r=0,i=0,a=Math.max(1,(e.length-1)/1e3),c=0;c<e.length;c+=a)n=e[Math.round(c)],s.isDateTime(n,t)&&(r+=1),o(n)&&(i+=1);return r>2*i}function a(e){for(var t,n=Math.max(1,(e.length-1)/1e3),r=0,i=0,a=0;a<e.length;a+=n)t=e[Math.round(a)],s.cleanNumber(t)!==c?r++:"string"==typeof t&&""!==t&&"None"!==t&&i++;return i>2*r}var o=e("fast-isnumeric"),s=e("../../lib"),c=e("../../constants/numerical").BADNUM;t.exports=function(e,t){return i(e,t)?"date":a(e)?"category":r(e)?"linear":"-"}},{"../../constants/numerical":683,"../../lib":697,"fast-isnumeric":267}],734:[function(e,t,n){"use strict";var r=e("tinycolor2").mix,i=e("../../registry"),a=e("../../lib"),o=e("../../components/color/attributes").lightFraction,s=e("./layout_attributes"),c=e("./tick_value_defaults"),l=e("./tick_mark_defaults"),u=e("./tick_label_defaults"),d=e("./category_order_defaults"),p=e("./set_convert"),f=e("./ordered_categories");t.exports=function(e,t,n,h,m){function g(n,r){return a.coerce2(e,t,s,n,r)}var v=h.letter,b=h.font||{},y="Click to enter "+(h.title||v.toUpperCase()+" axis")+" title",x=n("visible",!h.cheateronly),M=t.type;if("date"===M){i.getComponentMethod("calendars","handleDefaults")(e,t,"calendar",h.calendar)}if(p(t,m),n("autorange",!t.isValidRange(e.range))&&n("rangemode"),n("range"),t.cleanRange(),d(e,t,n),t._initialCategories="category"===M?f(v,t.categoryorder,t.categoryarray,h.data):[],!x)return t;var _=n("color"),w=_===e.color?_:b.color;n("title",y),a.coerceFont(n,"titlefont",{family:b.family,size:Math.round(1.2*b.size),color:w}),c(e,t,n,M),u(e,t,n,M,h),l(e,t,n,h);var A=g("linecolor",_),S=g("linewidth"),k=n("showline",!!A||!!S);k||(delete t.linecolor,delete t.linewidth),(k||t.ticks)&&n("mirror");var $=g("gridcolor",r(_,h.bgColor,o).toRgbString()),T=g("gridwidth");n("showgrid",h.showGrid||!!$||!!T)||(delete t.gridcolor,delete t.gridwidth);var C=g("zerolinecolor",_),E=g("zerolinewidth");return n("zeroline",h.showGrid||!!C||!!E)||(delete t.zerolinecolor,delete t.zerolinewidth),t}},{"../../components/color/attributes":585,"../../lib":697,"../../registry":767,"./category_order_defaults":736,"./layout_attributes":743,"./ordered_categories":745,"./set_convert":749,"./tick_label_defaults":750,"./tick_mark_defaults":751,"./tick_value_defaults":752,tinycolor2:826}],735:[function(e,t,n){"use strict";function r(e,t,n){function r(e,n){for(var r=Object.keys(e),i=/^[xyz]axis[0-9]*/,a=[],o=0;o<r.length;o++){var s=r[o];t&&s.charAt(0)!==t||i.test(s)&&a.push(n+s)}return a.sort()}var i=e._fullLayout;if(!i)return[];var o=r(i,"");if(n)return o;for(var s=a.getSubplotIds(i,"gl3d")||[],c=0;c<s.length;c++){var l=s[c];o=o.concat(r(i[l],l+"."))}return o}var i=e("../../registry"),a=e("../plots"),o=e("../../lib"),s=e("./constants");n.id2name=function(e){if("string"==typeof e&&e.match(s.AX_ID_PATTERN)){var t=e.substr(1);return"1"===t&&(t=""),e.charAt(0)+"axis"+t}},n.name2id=function(e){if(e.match(s.AX_NAME_PATTERN)){var t=e.substr(5);return"1"===t&&(t=""),e.charAt(0)+t}},n.cleanId=function(e,t){if(e.match(s.AX_ID_PATTERN)&&(!t||e.charAt(0)===t)){var n=e.substr(1).replace(/^0+/,"");return"1"===n&&(n=""),e.charAt(0)+n}},n.list=function(e,t,n){return r(e,t,n).map(function(t){return o.nestedProperty(e._fullLayout,t).get()})},n.listIds=function(e,t){return r(e,t,!0).map(n.name2id)},n.getFromId=function(e,t,r){var i=e._fullLayout;return"x"===r?t=t.replace(/y[0-9]*/,""):"y"===r&&(t=t.replace(/x[0-9]*/,"")),i[n.id2name(t)]},n.getFromTrace=function(e,t,r){var a=e._fullLayout,o=null;if(i.traceIs(t,"gl3d")){var s=t.scene;"scene"===s.substr(0,5)&&(o=a[s][r+"axis"])}else o=n.getFromId(e,t[r+"axis"]||r);return o}},{"../../lib":697,"../../registry":767,"../plots":760,"./constants":737}],736:[function(e,t,n){"use strict";t.exports=function(e,t,n){if("category"===t.type){var r,i=e.categoryarray,a=Array.isArray(i)&&i.length>0;a&&(r="array");var o=n("categoryorder",r);"array"===o&&n("categoryarray"),a||"array"!==o||(t.categoryorder="trace")}}},{}],737:[function(e,t,n){"use strict";t.exports={idRegex:{x:/^x([2-9]|[1-9][0-9]+)?$/,y:/^y([2-9]|[1-9][0-9]+)?$/},attrRegex:{x:/^xaxis([2-9]|[1-9][0-9]+)?$/,y:/^yaxis([2-9]|[1-9][0-9]+)?$/},xAxisMatch:/^xaxis[0-9]*$/,yAxisMatch:/^yaxis[0-9]*$/,AX_ID_PATTERN:/^[xyz][0-9]*$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,MINDRAG:8,MINSELECT:12,MINZOOM:20,DRAGGERSIZE:20,BENDPX:1.5,REDRAWDELAY:50,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4]}},{}],738:[function(e,t,n){"use strict";function r(e,t,n,r){var i,a,s,c,l=r[o(t)].type,u=[];for(a=0;a<n.length;a++)(s=n[a])!==t&&(c=r[o(s)],c.type!==l||c.fixedrange||u.push(s));for(i=0;i<e.length;i++)if(e[i][t]){var d=e[i],p=[];for(a=0;a<u.length;a++)s=u[a],d[s]||p.push(s);return{linkableAxes:p,thisGroup:d}}return{linkableAxes:u,thisGroup:null}}function i(e,t,n,r,i){var a,o,s,c,l;null===t?(t={},t[n]=1,l=e.length,e.push(t)):l=e.indexOf(t);var u=Object.keys(t);for(a=0;a<e.length;a++)if(s=e[a],a!==l&&s[r]){var d=s[r];for(o=0;o<u.length;o++)c=u[o],s[c]=d*i*t[c];return void e.splice(l,1)}if(1!==i)for(o=0;o<u.length;o++)t[u[o]]*=i;t[r]=1}var a=e("../../lib"),o=e("./axis_ids").id2name;t.exports=function(e,t,n,o,s){var c=s._axisConstraintGroups;if(!t.fixedrange&&e.scaleanchor){var l=r(c,t._id,o,s),u=a.coerce(e,t,{scaleanchor:{valType:"enumerated",values:l.linkableAxes}},"scaleanchor");if(u){var d=n("scaleratio");d||(d=t.scaleratio=1),i(c,l.thisGroup,t._id,u,d)}else-1!==o.indexOf(e.scaleanchor)&&a.warn("ignored "+t._name+'.scaleanchor: "'+e.scaleanchor+'" to avoid either an infinite loop and possibly inconsistent scaleratios, or because the targetaxis has fixed range.')}}},{"../../lib":697,"./axis_ids":735}],739:[function(e,t,n){"use strict";var r=e("./axis_ids").id2name,i=e("./scale_zoom"),a=e("../../constants/numerical").ALMOST_EQUAL;t.exports=function(e){var t,n,o,s,c,l=e._fullLayout,u=l._axisConstraintGroups;for(t=0;t<u.length;t++){var d=u[t],p=Object.keys(d),f=1/0,h=0,m=1/0,g={},v={};for(n=0;n<p.length;n++)o=p[n],v[o]=s=l[r(o)],s.setScale(),g[o]=c=Math.abs(s._m)/d[o],f=Math.min(f,c),s._constraintShrinkable?delete s._constraintShrinkable:m=Math.min(m,c),h=Math.max(h,c);if(!(f>a*h))for(n=0;n<p.length;n++)o=p[n],(c=g[o])!==m&&i(v[o],c/m)}}},{"../../constants/numerical":683,"./axis_ids":735,"./scale_zoom":747}],740:[function(e,t,n){"use strict";function r(e,t,n,r,i,a,o){var s=e.draglayer.selectAll("."+t).data([0]);return s.enter().append("rect").classed("drag",!0).classed(t,!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",e.id),s.call($.setRect,r,i,a,o).call(T,n),s.node()}function i(e,t){for(var n=0;n<e.length;n++)if(!e[n].fixedrange)return t;return""}function a(e,t){var n,r=e.range[t],i=Math.abs(r-e.range[1-t]);return"date"===e.type?r:"log"===e.type?(n=Math.ceil(Math.max(0,-Math.log(i)/Math.LN10))+3,x.format("."+n+"g")(Math.pow(10,r))):(n=Math.floor(Math.log(Math.abs(r))/Math.LN10)-Math.floor(Math.log(i)/Math.LN10)+4,x.format("."+String(n)+"g")(r))}function o(e,t,n,r){var i,a,s,c;for(i=0;i<e.length;i++)a=e[i],a.fixedrange||(s=a._rl[0],c=a._rl[1]-s,a.range=[a.l2r(s+c*t),a.l2r(s+c*n)]);if(r&&r.length){var l=(t+(1-n))/2;o(r,l,1-l)}}function s(e,t){for(var n=0;n<e.length;n++){var r=e[n];r.fixedrange||(r.range=[r.l2r(r._rl[0]-t/r._m),r.l2r(r._rl[1]-t/r._m)])}}function c(e){return 1-(e>=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function l(e,t){return e?"nsew"===e?"pan"===t?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function u(e,t,n,r,i){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform","translate("+n+", "+r+")").attr("d",i+"Z")}function d(e,t,n){return e.append("path").attr("class","zoombox-corners").style({fill:k.background,stroke:k.defaultLine,"stroke-width":1,opacity:0}).attr("transform","translate("+t+", "+n+")").attr("d","M0,0Z")}function p(e){e.selectAll(".select-outline").remove()}function f(e,t,n,r,i,a){e.attr("d",r+"M"+n.l+","+n.t+"v"+n.h+"h"+n.w+"v-"+n.h+"h-"+n.w+"Z"),i||(e.transition().style("fill",a>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function h(e){x.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function m(e){return-1!==["lasso","select"].indexOf(e)}function g(e,t){return"M"+(e.l-.5)+","+(t-I-.5)+"h-3v"+(2*I+1)+"h3ZM"+(e.r+.5)+","+(t-I-.5)+"h3v"+(2*I+1)+"h-3Z"}function v(e,t){return"M"+(t-I-.5)+","+(e.t-.5)+"v-3h"+(2*I+1)+"v3ZM"+(t-I-.5)+","+(e.b+.5)+"v3h"+(2*I+1)+"v-3Z"}function b(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,I)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function y(e,t,n){var r,i,a,o,s,c,l=!1,u={},d={};for(r=0;r<e.length;r++){for(o=e[r],i=0;i<t.length;i++)if(o[t[i]]){for(s in o)-1===("x"===s.charAt(0)?t:n).indexOf(s)&&(u[s]=1);for(a=0;a<n.length;a++)o[n[a]]&&(l=!0)}for(i=0;i<n.length;i++)if(o[n[i]])for(c in o)-1===("x"===c.charAt(0)?t:n).indexOf(c)&&(d[c]=1)}return l&&(A.extendFlat(u,d),d={}),{x:u,y:d,xy:l}}var x=e("d3"),M=e("tinycolor2"),_=e("../../plotly"),w=e("../../registry"),A=e("../../lib"),S=e("../../lib/svg_text_utils"),k=e("../../components/color"),$=e("../../components/drawing"),T=e("../../lib/setcursor"),C=e("../../components/dragelement"),E=e("./axes").doTicks,O=e("./axis_ids").getFromId,z=e("./select"),L=e("./scale_zoom"),N=e("./constants"),P=N.MINDRAG,I=N.MINZOOM,D=!0;t.exports=function(e,t,n,k,T,R,j,q){function B(){J=[t.xaxis],ee=[t.yaxis];var n=J[0],r=ee[0];re=n._length,ie=r._length;var a=de._axisConstraintGroups,o=[n._id],s=[r._id];Z=[t].concat(j&&q?t.overlays:[]);for(var c=1;c<Z.length;c++){var u=Z[c].xaxis,d=Z[c].yaxis;-1===J.indexOf(u)&&(J.push(u),o.push(u._id)),-1===ee.indexOf(d)&&(ee.push(d),s.push(d._id))}ae=i(J,q),oe=i(ee,j),se=l(oe+ae,de.dragmode),te=n._offset,ne=r._offset;var p=y(a,o,s);ce=p.xy,le=[];for(var f in p.x)le.push(O(e,f));ue=[];for(var h in p.y)ue.push(O(e,h))}function W(t,n,r){var i=he.getBoundingClientRect();ge=n-i.left,ve=r-i.top,be={l:ge,r:ge,w:0,t:ve,b:ve,h:0},ye=e._hmpixcount?e._hmlumcount/e._hmpixcount:M(e._fullLayout.plot_bgcolor).getLuminance(),xe="M0,0H"+re+"V"+ie+"H0V0",Me=!1,_e="xy",we=u(pe,ye,te,ne,xe),Ae=d(pe,te,ne),p(pe)}function H(t,n){function r(){_e="",be.r=be.l,be.t=be.b,Ae.attr("d","M0,0Z")}if(e._transitioningWithDuration)return!1;var i=Math.max(0,Math.min(re,t+ge)),a=Math.max(0,Math.min(ie,n+ve)),o=Math.abs(i-ge),s=Math.abs(a-ve);be.l=Math.min(ge,i),be.r=Math.max(ge,i),be.t=Math.min(ve,a),be.b=Math.max(ve,a),ce?o>I||s>I?(_e="xy",o/re>s/ie?(s=o*ie/re,ve>a?be.t=ve-s:be.b=ve+s):(o=s*re/ie,ge>i?be.l=ge-o:be.r=ge+o),Ae.attr("d",b(be))):r():!oe||s<Math.min(Math.max(.6*o,P),I)?o<P?r():(be.t=0,be.b=ie,_e="x",Ae.attr("d",g(be,ve))):!ae||o<Math.min(.6*s,I)?(be.l=0,be.r=re,_e="y",Ae.attr("d",v(be,ge))):(_e="xy",Ae.attr("d",b(be))),be.w=be.r-be.l,be.h=be.b-be.t,f(we,Ae,be,xe,Me,ye),Me=!0}function F(t,n){if(Math.min(be.h,be.w)<2*P)return 2===n&&Y(),h(e);"xy"!==_e&&"x"!==_e||o(J,be.l/re,be.r/re,le),"xy"!==_e&&"y"!==_e||o(ee,(ie-be.b)/ie,(ie-be.t)/ie,ue),h(e),Q(_e),D&&e.data&&e._context.showTips&&(A.notifier("Double-click to<br>zoom back out","long"),D=!1)}function X(t,n){var r=1===(j+q).length;if(t)Q();else if(2!==n||r){if(1===n&&r){var i=j?ee[0]:J[0],o="s"===j||"w"===q?0:1,s=i._name+".range["+o+"]",c=a(i,o),l="left",u="middle";if(i.fixedrange)return;j?(u="n"===j?"top":"bottom","right"===i.side&&(l="right")):"e"===q&&(l="right"),e._context.showAxisRangeEntryBoxes&&x.select(he).call(S.makeEditable,null,{immediate:!0,background:de.paper_bgcolor,text:String(c),fill:i.tickfont?i.tickfont.color:"#444",horizontalAlign:l,verticalAlign:u}).on("edit",function(t){var n=i.d2r(t);void 0!==n&&_.relayout(e,s,n)})}}else Y()}function U(t){function n(e,t,n){function r(t){return e.l2r(a+(t-a)*n)}if(!e.fixedrange){var i=A.simpleMap(e.range,e.r2l),a=i[0]+(i[1]-i[0])*t;e.range=i.map(r)}}if(e._context.scrollZoom||de._enablescrollzoom){if(e._transitioningWithDuration)return A.pauseEvent(t);var r=e.querySelector(".plotly");if(B(),!(r.scrollHeight-r.clientHeight>10||r.scrollWidth-r.clientWidth>10)){clearTimeout(ke);var i=-t.deltaY;if(isFinite(i)||(i=t.wheelDelta/10),!isFinite(i))return void A.log("Did not find wheel motion attributes: ",t);var a,o=Math.exp(-Math.min(Math.max(i,-20),20)/100),s=Te.draglayer.select(".nsewdrag").node().getBoundingClientRect(),c=(t.clientX-s.left)/s.width,l=(s.bottom-t.clientY)/s.height;if(q||ce){for(q||(c=.5),a=0;a<J.length;a++)n(J[a],c,o);Se[2]*=o,Se[0]+=Se[2]*c*(1/o-1)}if(j||ce){for(j||(l=.5),a=0;a<ee.length;a++)n(ee[a],l,o);Se[3]*=o,Se[1]+=Se[3]*(1-l)*(1/o-1)}return K(Se),G(j,q),ke=setTimeout(function(){Se=[0,0,re,ie];var e;e=ce?"xy":(q?"x":"")+(j?"y":""),Q(e)},$e),A.pauseEvent(t)}}}function V(t,n){function r(e,t,n){for(var r,i,a=1-t,o=0;o<e.length;o++){var s=e[o];if(!s.fixedrange){r=s,i=s._rl[a]+(s._rl[t]-s._rl[a])/c(n/s._length);var l=s.l2r(i);!1!==l&&void 0!==l&&(s.range[t]=l)}}return r._length*(r._rl[t]-i)/(r._rl[t]-r._rl[a])}if(!e._transitioningWithDuration){if(B(),"ew"===ae||"ns"===oe)return ae&&s(J,t),oe&&s(ee,n),K([ae?-t:0,oe?-n:0,re,ie]),void G(oe,ae);if(ce&&ae&&oe){var i="w"===ae==("n"===oe)?1:-1,a=(t/re+i*n/ie)/2;t=a*re,n=i*a*ie}"w"===ae?t=r(J,0,t):"e"===ae?t=r(J,1,-t):ae||(t=0),"n"===oe?n=r(ee,1,n):"s"===oe?n=r(ee,0,-n):oe||(n=0);var o="w"===ae?t:0,l="n"===oe?n:0;if(ce){var u;if(!ae&&1===oe.length){for(u=0;u<J.length;u++)J[u].range=J[u]._r.slice(),L(J[u],1-n/ie);t=n*re/ie,o=t/2}if(!oe&&1===ae.length){for(u=0;u<ee.length;u++)ee[u].range=ee[u]._r.slice(),L(ee[u],1-t/re);n=t*ie/re,l=n/2}}K([o,l,re-t,ie-n]),G(oe,ae)}}function G(t,n){function r(e){for(a=0;a<e.length;a++)e[a].fixedrange||o.push(e[a]._id)}function i(r,i,s){for(a=0;a<r.length;a++){var c=r[a];if((n&&-1!==o.indexOf(c.xref)||t&&-1!==o.indexOf(c.yref))&&(i(e,a),s))return}}var a,o=[];for((n||ce)&&(r(J),r(le)),(t||ce)&&(r(ee),r(ue)),a=0;a<o.length;a++)E(e,o[a],!0);i(de.annotations||[],w.getComponentMethod("annotations","drawOne")),i(de.shapes||[],w.getComponentMethod("shapes","drawOne")),i(de.images||[],w.getComponentMethod("images","draw"),!0)}function Y(){if(!e._transitioningWithDuration){var t,n,r,i=e._context.doubleClick,a=(ae?J:[]).concat(oe?ee:[]),o={};if("reset+autosize"===i)for(i="autosize",n=0;n<a.length;n++)if(t=a[n],t._rangeInitial&&(t.range[0]!==t._rangeInitial[0]||t.range[1]!==t._rangeInitial[1])||!t._rangeInitial&&!t.autorange){i="reset";break}if("autosize"===i)for(n=0;n<a.length;n++)t=a[n],t.fixedrange||(o[t._name+".autorange"]=!0);else if("reset"===i)for((ae||ce)&&(a=a.concat(le)),oe&&!ce&&(a=a.concat(ue)),ce&&(ae?oe||(a=a.concat(ee)):a=a.concat(J)),n=0;n<a.length;n++)t=a[n],t._rangeInitial?(r=t._rangeInitial,o[t._name+".range[0]"]=r[0],o[t._name+".range[1]"]=r[1]):o[t._name+".autorange"]=!0;e.emit("plotly_doubleclick",null),_.relayout(e,o)}}function Q(t){void 0===t&&(t=(q?"x":"")+(j?"y":""));var n,r={};"xy"===t?n=J.concat(ee):"x"===t?n=J:"y"===t&&(n=ee);for(var i=0;i<n.length;i++){var a=n[i];a._r[0]!==a.range[0]&&(r[a._name+".range[0]"]=a.range[0]),a._r[1]!==a.range[1]&&(r[a._name+".range[1]"]=a.range[1]),a.range=a._input.range=a._r.slice()}K([0,0,re,ie]),_.relayout(e,r)}function K(e){function t(e){return e.fixedrange?0:p&&-1!==le.indexOf(e)?u:f&&-1!==(ce?le:ue).indexOf(e)?d:0}function n(e,t){return t?(e.range=e._r.slice(),L(e,t),e._length*(1-t)/2):0}var r,i,a,o,s,c=de._plots,l=Object.keys(c),u=e[2]/J[0]._length,d=e[3]/ee[0]._length,p=q||ce,f=j||ce;for(r=0;r<l.length;r++){var h=c[l[r]],m=h.xaxis,g=h.yaxis,v=p&&!m.fixedrange&&-1!==J.indexOf(m),b=f&&!g.fixedrange&&-1!==ee.indexOf(g);if(v?(i=u,o=e[0]):(i=t(m),o=n(m,i)),b?(a=d,s=e[1]):(a=t(g),s=n(g,a)),i||a){i||(i=1),a||(a=1);var y=m._offset-o/i,x=g._offset-s/a;de._defs.selectAll("#"+h.clipId).call($.setTranslate,o,s).call($.setScale,i,a),h.plot.call($.setTranslate,y,x).call($.setScale,1/i,1/a).select(".scatterlayer").selectAll(".points").selectAll(".point").call($.setPointGroupScale,i,a),h.plot.select(".scatterlayer").selectAll(".points").selectAll(".textpoint").call($.setTextPointsScale,i,a)}}}var Z,J,ee,te,ne,re,ie,ae,oe,se,ce,le,ue,de=e._fullLayout,pe=e._fullLayout._zoomlayer,fe=j+q==="nsew";B();var he=r(t,j+q+"drag",se,n,k,T,R);if(!oe&&!ae&&!m(de.dragmode))return he.onmousedown=null,he.style.pointerEvents=fe?"all":"none",he;var me={element:he,gd:e,plotinfo:t,doubleclick:Y,prepFn:function(t,n,r){var i=e._fullLayout.dragmode;fe?t.shiftKey&&(i="pan"===i?"zoom":"pan"):i="pan",me.minDrag="lasso"===i?1:void 0,"zoom"===i?(me.moveFn=H,me.doneFn=F,me.minDrag=1,W(t,n,r)):"pan"===i?(me.moveFn=V,me.doneFn=X,p(pe)):m(i)&&(me.xaxes=J,me.yaxes=ee,z(t,n,r,me,i))}};C.init(me);var ge,ve,be,ye,xe,Me,_e,we,Ae,Se=[0,0,re,ie],ke=null,$e=N.REDRAWDELAY,Te=t.mainplot?de._plots[t.mainplot]:t;return j.length*q.length!=1&&(void 0!==he.onwheel?he.onwheel=U:void 0!==he.onmousewheel&&(he.onmousewheel=U)),he}},{"../../components/color":586,"../../components/dragelement":607,"../../components/drawing":610,"../../lib":697,"../../lib/setcursor":712,"../../lib/svg_text_utils":714,"../../plotly":727,"../../registry":767,"./axes":732,"./axis_ids":735,"./constants":737,"./scale_zoom":747,"./select":748,d3:265,tinycolor2:826}],741:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),i=e("../../components/fx"),a=e("../../components/dragelement"),o=e("./constants"),s=e("./dragbox");t.exports=function(e){var t=e._fullLayout;if(t._has("cartesian")&&!e._context.staticPlot){Object.keys(t._plots||{}).sort(function(e,n){if((t._plots[e].mainplot&&!0)===(t._plots[n].mainplot&&!0)){var r=e.split("y"),i=n.split("y");return r[0]===i[0]?Number(r[1]||1)-Number(i[1]||1):Number(r[0]||1)-Number(i[0]||1)}return t._plots[e].mainplot?1:-1}).forEach(function(n){var c=t._plots[n];if(t._has("cartesian")){var l=c.xaxis,u=c.yaxis,d=(l._linepositions[n]||[])[3],p=(u._linepositions[n]||[])[3],f=o.DRAGGERSIZE;if(r(d)&&"top"===l.side&&(d-=f),r(p)&&"right"!==u.side&&(p-=f),!c.mainplot){var h=s(e,c,0,0,l._length,u._length,"ns","ew");h.onmousemove=function(t){e._fullLayout._rehover=function(){e._fullLayout._hoversubplot===n&&i.hover(e,t,n)},i.hover(e,t,n),e._fullLayout._lasthover=h,e._fullLayout._hoversubplot=n},h.onmouseout=function(t){e._dragging||(e._fullLayout._hoversubplot=null,a.unhover(e,t))},h.onclick=function(t){i.click(e,t)},e._context.showAxisDragHandles&&(s(e,c,-f,-f,f,f,"n","w"),s(e,c,l._length,-f,f,f,"n","e"),s(e,c,-f,u._length,f,f,"s","w"),s(e,c,l._length,u._length,f,f,"s","e"))}e._context.showAxisDragHandles&&(r(d)&&("free"===l.anchor&&(d-=t._size.h*(1-u.domain[1])),s(e,c,.1*l._length,d,.8*l._length,f,"","ew"),s(e,c,0,d,.1*l._length,f,"","w"),s(e,c,.9*l._length,d,.1*l._length,f,"","e")),r(p)&&("free"===u.anchor&&(p-=t._size.w*l.domain[0]),s(e,c,p,.1*u._length,f,.8*u._length,"ns",""),s(e,c,p,.9*u._length,f,.1*u._length,"s",""),s(e,c,p,0,f,.1*u._length,"n","")))}});var n=t._hoverlayer.node();n.onmousemove=function(n){n.target=t._lasthover,i.hover(e,n,t._hoversubplot)},n.onclick=function(n){n.target=t._lasthover,i.click(e,n)},n.onmousedown=function(e){t._lasthover.onmousedown(e)}}}},{"../../components/dragelement":607,"../../components/fx":627,"./constants":737,"./dragbox":740,"fast-isnumeric":267}],742:[function(e,t,n){"use strict";function r(e,t,n,r,i){var a=e._fullLayout,o=a._modules;t.plot&&t.plot.selectAll("g:not(.scatterlayer)").selectAll("g.trace").remove();for(var s=0;s<o.length;s++){var c=o[s];if("cartesian"===c.basePlotModule.name){for(var l=[],u=0;u<n.length;u++){var d=n[u],p=d[0].trace;p._module===c&&!0===p.visible&&l.push(d)}c.plot(e,t,l,r,i)}}}function i(e){for(var t=e._fullLayout,n=Object.keys(t._plots),r=[],i=[],a=0;a<n.length;a++){var o=n[a],s=t._plots[o],c=s.xaxis,l=s.yaxis,u=d.getFromId(e,c.overlaying)||c;u!==c&&u.overlaying&&(u=c,c.overlaying=!1);var p=d.getFromId(e,l.overlaying)||l;p!==l&&p.overlaying&&(p=l,l.overlaying=!1);var f=u._id+p._id;f!==o&&-1!==n.indexOf(f)?(s.mainplot=f,s.mainplotinfo=t._plots[f],i.push(o),c.domain=u.domain.slice(),l.domain=p.domain.slice()):r.push(o)}return r=r.concat(i)}function a(e){function t(e){s(e,"g","imagelayer"),s(e,"g","maplayer"),s(e,"g","barlayer"),s(e,"g","carpetlayer"),s(e,"g","boxlayer"),s(e,"g","scatterlayer")}var n=e.plotgroup,r=e.id;if(e.mainplot){var i=e.mainplotinfo;e.gridlayer=s(i.overgrid,"g",r),e.zerolinelayer=s(i.overzero,"g",r),e.plot=s(i.overplot,"g",r),e.xlines=s(i.overlines,"path",r),e.ylines=s(i.overlines,"path",r),e.xaxislayer=s(i.overaxes,"g",r),e.yaxislayer=s(i.overaxes,"g",r)}else{var a=s(n,"g","layer-subplot");e.shapelayer=s(a,"g","shapelayer"),e.imagelayer=s(a,"g","imagelayer"),e.gridlayer=s(n,"g","gridlayer"),e.overgrid=s(n,"g","overgrid"),e.zerolinelayer=s(n,"g","zerolinelayer"),e.overzero=s(n,"g","overzero"),e.plot=s(n,"g","plot"),e.overplot=s(n,"g","overplot"),e.xlines=s(n,"path","xlines"),e.ylines=s(n,"path","ylines"),e.overlines=s(n,"g","overlines"),e.xaxislayer=s(n,"g","xaxislayer"),e.yaxislayer=s(n,"g","yaxislayer"),e.overaxes=s(n,"g","overaxes")}e.plot.call(t),e.xlines.style("fill","none").classed("crisp",!0),e.ylines.style("fill","none").classed("crisp",!0)}function o(e,t){e&&e.each(function(e){var n=c.select(this),r="clip"+t._uid+e+"plot";n.remove(),t._draggers.selectAll("g."+e).remove(),t._defs.select("#"+r).remove()})}function s(e,t,n){var r=e.selectAll("."+n).data([0]);return r.enter().append(t).classed(n,!0),r}var c=e("d3"),l=e("../../lib"),u=e("../plots"),d=e("./axis_ids"),p=e("./constants");n.name="cartesian",n.attr=["xaxis","yaxis"],n.idRoot=["x","y"],n.idRegex=p.idRegex,n.attrRegex=p.attrRegex,n.attributes=e("./attributes"),n.layoutAttributes=e("./layout_attributes"),n.transitionAxes=e("./transition_axes"),n.plot=function(e,t,n,i){var a,o=e._fullLayout,s=u.getSubplotIds(o,"cartesian"),c=e.calcdata;if(!Array.isArray(t))for(t=[],a=0;a<c.length;a++)t.push(a);for(a=0;a<s.length;a++){for(var l,d=s[a],p=o._plots[d],f=[],h=0;h<c.length;h++){var m=c[h],g=m[0].trace;g.xaxis+g.yaxis===d&&((-1!==t.indexOf(g.index)||g.carpet)&&(l&&l[0].trace.xaxis+l[0].trace.yaxis===d&&-1!==["tonextx","tonexty","tonext"].indexOf(g.fill)&&-1===f.indexOf(l)&&f.push(l),f.push(m)),l=m)}r(e,p,f,n,i)}},n.clean=function(e,t,n,r){var i,a,s,c=r._modules||[],l=t._modules||[];for(s=0;s<c.length;s++)if("scatter"===c[s].name){i=!0;break}for(s=0;s<l.length;s++)if("scatter"===l[s].name){a=!0;break}if(i&&!a){var u=r._plots,p=Object.keys(u||{});for(s=0;s<p.length;s++){var f=u[p[s]];f.plot&&f.plot.select("g.scatterlayer").selectAll("g.trace").remove()}r._infolayer.selectAll("g.rangeslider-container").select("g.scatterlayer").selectAll("g.trace").remove()}var h=r._has&&r._has("cartesian"),m=t._has&&t._has("cartesian");if(h&&!m){var g=r._cartesianlayer.selectAll(".subplot"),v=d.listIds({_fullLayout:r});for(g.call(o,r),r._defs.selectAll(".axesclip").remove(),s=0;s<v.length;s++)r._infolayer.select("."+v[s]+"title").remove()}},n.drawFramework=function(e){var t=e._fullLayout,n=i(e),r=t._cartesianlayer.selectAll(".subplot").data(n,l.identity);r.enter().append("g").attr("class",function(e){return"subplot "+e}),r.order(),r.exit().call(o,t),r.each(function(e){var n=t._plots[e];if(n.plotgroup=c.select(this),n.overlays=[],a(n),n.mainplot){t._plots[n.mainplot].overlays.push(n)}n.draglayer=s(t._draggers,"g",e)})},n.rangePlot=function(e,t,n){a(t),r(e,t,n),u.style(e)}},{"../../lib":697,"../plots":760,"./attributes":731,"./axis_ids":735,"./constants":737,"./layout_attributes":743,"./transition_axes":753,d3:265}],743:[function(e,t,n){"use strict";var r=e("../font_attributes"),i=e("../../components/color/attributes"),a=e("../../components/drawing/attributes").dash,o=e("../../lib/extend").extendFlat,s=e("./constants");t.exports={visible:{valType:"boolean",role:"info",description:["A single toggle to hide the axis while preserving interaction like dragging.","Default is true when a cheater plot is present on the axis, otherwise","false"].join(" ")},color:{valType:"color",dflt:i.defaultLine,role:"style",description:["Sets default for all colors associated with this axis","all at once: line, font, tick, and grid colors.","Grid color is lightened by blending this with the plot background","Individual pieces can override this."].join(" ")},title:{valType:"string",role:"info",description:"Sets the title of this axis."},titlefont:o({},r,{description:["Sets this axis' title font."].join(" ")}),type:{valType:"enumerated",values:["-","linear","log","date","category"],dflt:"-",role:"info",description:["Sets the axis type.","By default, plotly attempts to determined the axis type","by looking into the data of the traces that referenced","the axis in question."].join(" ")},autorange:{valType:"enumerated",values:[!0,!1,"reversed"],dflt:!0,role:"style",description:["Determines whether or not the range of this axis is","computed in relation to the input data.","See `rangemode` for more info.","If `range` is provided, then `autorange` is set to *false*."].join(" ")},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",role:"style",description:["If *normal*, the range is computed in relation to the extrema","of the input data.","If *tozero*`, the range extends to 0,","regardless of the input data","If *nonnegative*, the range is non-negative,","regardless of the input data."].join(" ")},range:{valType:"info_array",role:"info",items:[{valType:"any"},{valType:"any"}],description:["Sets the range of this axis.","If the axis `type` is *log*, then you must take the log of your","desired range (e.g. to set the range from 1 to 100,","set the range from 0 to 2).","If the axis `type` is *date*, it should be date strings,","like date data, though Date objects and unix milliseconds","will be accepted and converted to strings.","If the axis `type` is *category*, it should be numbers,","using the scale where each category is assigned a serial","number from zero in the order it appears."].join(" ")},fixedrange:{valType:"boolean",dflt:!1,role:"info",description:["Determines whether or not this axis is zoom-able.","If true, then zoom is disabled."].join(" ")},scaleanchor:{valType:"enumerated",values:[s.idRegex.x.toString(),s.idRegex.y.toString()],role:"info",
71description:["If set to an opposite-letter axis id (e.g. `x2`, `y`), the range of this axis","changes together with the range of the corresponding opposite-letter axis.","such that the scale of pixels per unit is in a constant ratio.","Both axes are still zoomable, but when you zoom one, the other will","zoom the same amount, keeping a fixed midpoint.","Autorange will also expand about the midpoints to satisfy the constraint.","You can chain these, ie `yaxis: {scaleanchor: *x*}, xaxis2: {scaleanchor: *y*}`","but you can only link axes of the same `type`.","Loops (`yaxis: {scaleanchor: *x*}, xaxis: {scaleanchor: *y*}` or longer) are redundant","and the last constraint encountered will be ignored to avoid possible","inconsistent constraints via `scaleratio`."].join(" ")},scaleratio:{valType:"number",min:0,dflt:1,role:"info",description:["If this axis is linked to another by `scaleanchor`, this determines the pixel","to unit scale ratio. For example, if this value is 10, then every unit on","this axis spans 10 times the number of pixels as a unit on the linked axis.","Use this for example to create an elevation profile where the vertical scale","is exaggerated a fixed amount with respect to the horizontal."].join(" ")},tickmode:{valType:"enumerated",values:["auto","linear","array"],role:"info",description:["Sets the tick mode for this axis.","If *auto*, the number of ticks is set via `nticks`.","If *linear*, the placement of the ticks is determined by","a starting position `tick0` and a tick step `dtick`","(*linear* is the default value if `tick0` and `dtick` are provided).","If *array*, the placement of the ticks is set via `tickvals`","and the tick text is `ticktext`.","(*array* is the default value if `tickvals` is provided)."].join(" ")},nticks:{valType:"integer",min:0,dflt:0,role:"style",description:["Specifies the maximum number of ticks for the particular axis.","The actual number of ticks will be chosen automatically to be","less than or equal to `nticks`.","Has an effect only if `tickmode` is set to *auto*."].join(" ")},tick0:{valType:"any",role:"style",description:["Sets the placement of the first tick on this axis.","Use with `dtick`.","If the axis `type` is *log*, then you must take the log of your starting tick","(e.g. to set the starting tick to 100, set the `tick0` to 2)","except when `dtick`=*L<f>* (see `dtick` for more info).","If the axis `type` is *date*, it should be a date string, like date data.","If the axis `type` is *category*, it should be a number, using the scale where","each category is assigned a serial number from zero in the order it appears."].join(" ")},dtick:{valType:"any",role:"style",description:["Sets the step in-between ticks on this axis. Use with `tick0`.","Must be a positive number, or special strings available to *log* and *date* axes.","If the axis `type` is *log*, then ticks are set every 10^(n*dtick) where n","is the tick number. For example,","to set a tick mark at 1, 10, 100, 1000, ... set dtick to 1.","To set tick marks at 1, 100, 10000, ... set dtick to 2.","To set tick marks at 1, 5, 25, 125, 625, 3125, ... set dtick to log_10(5), or 0.69897000433.","*log* has several special values; *L<f>*, where `f` is a positive number,","gives ticks linearly spaced in value (but not position).","For example `tick0` = 0.1, `dtick` = *L0.5* will put ticks at 0.1, 0.6, 1.1, 1.6 etc.","To show powers of 10 plus small digits between, use *D1* (all digits) or *D2* (only 2 and 5).","`tick0` is ignored for *D1* and *D2*.","If the axis `type` is *date*, then you must convert the time to milliseconds.","For example, to set the interval between ticks to one day,","set `dtick` to 86400000.0.","*date* also has special values *M<n>* gives ticks spaced by a number of months.","`n` must be a positive integer.","To set ticks on the 15th of every third month, set `tick0` to *2000-01-15* and `dtick` to *M3*.","To set ticks every 4 years, set `dtick` to *M48*"].join(" ")},tickvals:{valType:"data_array",description:["Sets the values at which ticks on this axis appear.","Only has an effect if `tickmode` is set to *array*.","Used with `ticktext`."].join(" ")},ticktext:{valType:"data_array",description:["Sets the text displayed at the ticks position via `tickvals`.","Only has an effect if `tickmode` is set to *array*.","Used with `tickvals`."].join(" ")},ticks:{valType:"enumerated",values:["outside","inside",""],role:"style",description:["Determines whether ticks are drawn or not.","If **, this axis' ticks are not drawn.","If *outside* (*inside*), this axis' are drawn outside (inside)","the axis lines."].join(" ")},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,role:"style",description:["Determines if the axis lines or/and ticks are mirrored to","the opposite side of the plotting area.","If *true*, the axis lines are mirrored.","If *ticks*, the axis lines and ticks are mirrored.","If *false*, mirroring is disable.","If *all*, axis lines are mirrored on all shared-axes subplots.","If *allticks*, axis lines and ticks are mirrored","on all shared-axes subplots."].join(" ")},ticklen:{valType:"number",min:0,dflt:5,role:"style",description:"Sets the tick length (in px)."},tickwidth:{valType:"number",min:0,dflt:1,role:"style",description:"Sets the tick width (in px)."},tickcolor:{valType:"color",dflt:i.defaultLine,role:"style",description:"Sets the tick color."},showticklabels:{valType:"boolean",dflt:!0,role:"style",description:"Determines whether or not the tick labels are drawn."},showspikes:{valType:"boolean",dflt:!1,role:"style",description:["Determines whether or not spikes (aka droplines) are drawn for this axis.","Note: This only takes affect when hovermode = closest"].join(" ")},spikecolor:{valType:"color",dflt:null,role:"style",description:"Sets the spike color. If undefined, will use the series color"},spikethickness:{valType:"number",dflt:3,role:"style",description:"Sets the width (in px) of the zero line."},spikedash:o({},a,{dflt:"dash"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],role:"style",dflt:"toaxis",description:["Determines the drawing mode for the spike line","If *toaxis*, the line is drawn from the data point to the axis the ","series is plotted on.","If *across*, the line is drawn across the entire plot area, and","supercedes *toaxis*.","If *marker*, then a marker dot is drawn on the axis the series is","plotted on"].join(" ")},tickfont:o({},r,{description:"Sets the tick font."}),tickangle:{valType:"angle",dflt:"auto",role:"style",description:["Sets the angle of the tick labels with respect to the horizontal.","For example, a `tickangle` of -90 draws the tick labels","vertically."].join(" ")},tickprefix:{valType:"string",dflt:"",role:"style",description:"Sets a tick label prefix."},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",role:"style",description:["If *all*, all tick labels are displayed with a prefix.","If *first*, only the first tick is displayed with a prefix.","If *last*, only the last tick is displayed with a suffix.","If *none*, tick prefixes are hidden."].join(" ")},ticksuffix:{valType:"string",dflt:"",role:"style",description:"Sets a tick label suffix."},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",role:"style",description:"Same as `showtickprefix` but for tick suffixes."},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",role:"style",description:["If *all*, all exponents are shown besides their significands.","If *first*, only the exponent of the first tick is shown.","If *last*, only the exponent of the last tick is shown.","If *none*, no exponents appear."].join(" ")},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",role:"style",description:["Determines a formatting rule for the tick exponents.","For example, consider the number 1,000,000,000.","If *none*, it appears as 1,000,000,000.","If *e*, 1e+9.","If *E*, 1E+9.","If *power*, 1x10^9 (with 9 in a super script).","If *SI*, 1G.","If *B*, 1B."].join(" ")},separatethousands:{valType:"boolean",dflt:!1,role:"style",description:['If "true", even 4-digit integers are separated'].join(" ")},tickformat:{valType:"string",dflt:"",role:"style",description:["Sets the tick label formatting rule using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see:","https://github.com/d3/d3-format/blob/master/README.md#locale_format","And for dates see:","https://github.com/d3/d3-time-format/blob/master/README.md#locale_format","We add one item to d3's date formatter: *%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")},hoverformat:{valType:"string",dflt:"",role:"style",description:["Sets the hover text formatting rule using d3 formatting mini-languages","which are very similar to those in Python. For numbers, see:","https://github.com/d3/d3-format/blob/master/README.md#locale_format","And for dates see:","https://github.com/d3/d3-time-format/blob/master/README.md#locale_format","We add one item to d3's date formatter: *%{n}f* for fractional seconds","with n digits. For example, *2016-10-13 09:15:23.456* with tickformat","*%H~%M~%S.%2f* would display *09~15~23.46*"].join(" ")},showline:{valType:"boolean",dflt:!1,role:"style",description:["Determines whether or not a line bounding this axis is drawn."].join(" ")},linecolor:{valType:"color",dflt:i.defaultLine,role:"style",description:"Sets the axis line color."},linewidth:{valType:"number",min:0,dflt:1,role:"style",description:"Sets the width (in px) of the axis line."},showgrid:{valType:"boolean",role:"style",description:["Determines whether or not grid lines are drawn.","If *true*, the grid lines are drawn at every tick mark."].join(" ")},gridcolor:{valType:"color",dflt:i.lightLine,role:"style",description:"Sets the color of the grid lines."},gridwidth:{valType:"number",min:0,dflt:1,role:"style",description:"Sets the width (in px) of the grid lines."},zeroline:{valType:"boolean",role:"style",description:["Determines whether or not a line is drawn at along the 0 value","of this axis.","If *true*, the zero line is drawn on top of the grid lines."].join(" ")},zerolinecolor:{valType:"color",dflt:i.defaultLine,role:"style",description:"Sets the line color of the zero line."},zerolinewidth:{valType:"number",dflt:1,role:"style",description:"Sets the width (in px) of the zero line."},anchor:{valType:"enumerated",values:["free",s.idRegex.x.toString(),s.idRegex.y.toString()],role:"info",description:["If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to","the corresponding opposite-letter axis.","If set to *free*, this axis' position is determined by `position`."].join(" ")},side:{valType:"enumerated",values:["top","bottom","left","right"],role:"info",description:["Determines whether a x (y) axis is positioned","at the *bottom* (*left*) or *top* (*right*)","of the plotting area."].join(" ")},overlaying:{valType:"enumerated",values:["free",s.idRegex.x.toString(),s.idRegex.y.toString()],role:"info",description:["If set a same-letter axis id, this axis is overlaid on top of","the corresponding same-letter axis.","If *false*, this axis does not overlay any same-letter axes."].join(" ")},domain:{valType:"info_array",role:"info",items:[{valType:"number",min:0,max:1},{valType:"number",min:0,max:1}],dflt:[0,1],description:["Sets the domain of this axis (in plot fraction)."].join(" ")},position:{valType:"number",min:0,max:1,dflt:0,role:"style",description:["Sets the position of this axis in the plotting space","(in normalized coordinates).","Only has an effect if `anchor` is set to *free*."].join(" ")},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",role:"info",description:["Specifies the ordering logic for the case of categorical variables.","By default, plotly uses *trace*, which specifies the order that is present in the data supplied.","Set `categoryorder` to *category ascending* or *category descending* if order should be determined by","the alphanumerical order of the category names.","Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category","is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to","the *trace* mode. The unspecified categories will follow the categories in `categoryarray`."].join(" ")},categoryarray:{valType:"data_array",role:"info",description:["Sets the order in which categories on this axis appear.","Only has an effect if `categoryorder` is set to *array*.","Used with `categoryorder`."].join(" ")},_deprecated:{autotick:{valType:"boolean",role:"info",description:["Obsolete.","Set `tickmode` to *auto* for old `autotick` *true* behavior.","Set `tickmode` to *linear* for `autotick` *false*."].join(" ")}}}},{"../../components/color/attributes":585,"../../components/drawing/attributes":609,"../../lib/extend":693,"../font_attributes":756,"./constants":737}],744:[function(e,t,n){"use strict";var r=e("../../registry"),i=e("../../lib"),a=e("../../components/color"),o=e("../layout_attributes"),s=e("./constants"),c=e("./layout_attributes"),l=e("./type_defaults"),u=e("./axis_defaults"),d=e("./constraint_defaults"),p=e("./position_defaults"),f=e("./axis_ids");t.exports=function(e,t,n){function h(e,t){return Number(e.substr(5)||1)-Number(t.substr(5)||1)}function m(e,t){return i.coerce(j,q,c,e,t)}function g(e){var t={x:N,y:L}[e];return i.simpleMap(t,f.name2id)}var v,b=Object.keys(e),y=[],x=[],M=[],_=[],w=[],A=[],S={},k={};for(v=0;v<n.length;v++){var $,T,C=n[v];if(r.traceIs(C,"cartesian"))$=y,T=x;else{if(!r.traceIs(C,"gl2d"))continue;$=M,T=_}var E=f.id2name(C.xaxis),O=f.id2name(C.yaxis);if(r.traceIs(C,"carpet")&&("carpet"!==C.type||C._cheater)||E&&i.pushUnique(A,E),"carpet"===C.type&&C._cheater&&E&&i.pushUnique(w,E),E&&-1===$.indexOf(E)&&$.push(E),O&&-1===T.indexOf(O)&&T.push(O),r.traceIs(C,"2dMap")&&(S[E]=!0,S[O]=!0),r.traceIs(C,"oriented")){k["h"===C.orientation?O:E]=!0}}if(!t._has("gl3d")&&!t._has("geo"))for(v=0;v<b.length;v++){var z=b[v];-1===M.indexOf(z)&&-1===y.indexOf(z)&&s.xAxisMatch.test(z)?y.push(z):-1===_.indexOf(z)&&-1===x.indexOf(z)&&s.yAxisMatch.test(z)&&x.push(z)}y.length&&x.length&&i.pushUnique(t._basePlotModules,r.subplotsRegistry.cartesian);var L=y.concat(M).sort(h),N=x.concat(_).sort(h),P=L.concat(N),I=a.background;L.length&&N.length&&(I=i.coerce(e,t,o,"plot_bgcolor"));var D,R,j,q,B=a.combine(I,t.paper_bgcolor),W={x:g("x"),y:g("y")};for(v=0;v<P.length;v++){D=P[v],i.isPlainObject(e[D])||(e[D]={}),j=e[D],q=t[D]={},l(j,q,m,n,D),R=D.charAt(0);var H=function(t,n){for(var r={x:L,y:N}[t],i=[],a=0;a<r.length;a++){var o=r[a];o===n||(e[o]||{}).overlaying||i.push(f.name2id(o))}return i}(R,D),F={letter:R,font:t.font,outerTicks:S[D],showGrid:!k[D],data:n,bgColor:B,calendar:t.calendar,cheateronly:"x"===R&&-1!==w.indexOf(D)&&-1===A.indexOf(D)};u(j,q,m,F,t);m("showspikes")&&(m("spikecolor"),m("spikethickness"),m("spikedash"),m("spikemode"));var X={letter:R,counterAxes:W[R],overlayableAxes:H};p(j,q,m,X),q._input=j}var U=r.getComponentMethod("rangeslider","handleDefaults"),V=r.getComponentMethod("rangeselector","handleDefaults");for(v=0;v<L.length;v++)D=L[v],j=e[D],q=t[D],U(e,t,D),"date"===q.type&&V(j,q,t,N,q.calendar),m("fixedrange");for(v=0;v<N.length;v++){D=N[v],j=e[D],q=t[D];var G=t[f.id2name(q.anchor)];m("fixedrange",G&&G.rangeslider&&G.rangeslider.visible)}t._axisConstraintGroups=[];var Y=W.x.concat(W.y);for(v=0;v<P.length;v++)D=P[v],R=D.charAt(0),j=e[D],q=t[D],d(j,q,m,Y,t)}},{"../../components/color":586,"../../lib":697,"../../registry":767,"../layout_attributes":758,"./axis_defaults":734,"./axis_ids":735,"./constants":737,"./constraint_defaults":738,"./layout_attributes":743,"./position_defaults":746,"./type_defaults":754}],745:[function(e,t,n){"use strict";function r(e,t,n){var r,a,o,s,c,l=[],u=n.map(function(t){return t[e]}),d=i.bisector(t).left;for(r=0;r<u.length;r++)for(o=u[r],a=0;a<o.length;a++)null!==(s=o[a])&&void 0!==s&&((c=d(l,s))<l.length&&l[c]===s||l.splice(c,0,s));return l}var i=e("d3");t.exports=function(e,t,n,a){switch(t){case"array":return Array.isArray(n)?n.slice():[];case"category ascending":return r(e,i.ascending,a);case"category descending":return r(e,i.descending,a);case"trace":default:return[]}}},{d3:265}],746:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),i=e("../../lib");t.exports=function(e,t,n,a){var o=a.counterAxes||[],s=a.overlayableAxes||[],c=a.letter;"free"===i.coerce(e,t,{anchor:{valType:"enumerated",values:["free"].concat(o),dflt:r(e.position)?"free":o[0]||"free"}},"anchor")&&n("position"),i.coerce(e,t,{side:{valType:"enumerated",values:"x"===c?["bottom","top"]:["left","right"],dflt:"x"===c?"bottom":"left"}},"side");var l=!1;if(s.length&&(l=i.coerce(e,t,{overlaying:{valType:"enumerated",values:[!1].concat(s),dflt:!1}},"overlaying")),!l){var u=n("domain");u[0]>u[1]-.01&&(t.domain=[0,1]),i.noneOrAll(e.domain,t.domain,[0,1])}return t}},{"../../lib":697,"fast-isnumeric":267}],747:[function(e,t,n){"use strict";t.exports=function(e,t,n){void 0===n&&(n=.5);var r=[e.r2l(e.range[0]),e.r2l(e.range[1])],i=r[0]+(r[1]-r[0])*n,a=(i-r[0])*t;e.range=e._input.range=[e.l2r(i-a),e.l2r(i+a)]}},{}],748:[function(e,t,n){"use strict";function r(e){return e._id}var i=e("../../lib/polygon"),a=e("../../components/color"),o=e("./axes"),s=e("./constants"),c=i.filter,l=i.tester,u=s.MINSELECT;t.exports=function(e,t,n,i,d){function p(e){var t="y"===e._id.charAt(0)?1:0;return function(n){return e.p2d(n[t])}}function f(e,t){return e-t}var h,m=i.gd._fullLayout._zoomlayer,g=i.element.getBoundingClientRect(),v=i.plotinfo.xaxis._offset,b=i.plotinfo.yaxis._offset,y=t-g.left,x=n-g.top,M=y,_=x,w="M"+y+","+x,A=i.xaxes[0]._length,S=i.yaxes[0]._length,k=i.xaxes.map(r),$=i.yaxes.map(r),T=i.xaxes.concat(i.yaxes);"lasso"===d&&(h=c([[y,x]],s.BENDPX));var C=m.selectAll("path.select-outline").data([1,2]);C.enter().append("path").attr("class",function(e){return"select-outline select-outline-"+e}).attr("transform","translate("+v+", "+b+")").attr("d",w+"Z");var E,O,z,L,N,P=m.append("path").attr("class","zoombox-corners").style({fill:a.background,stroke:a.defaultLine,"stroke-width":1}).attr("transform","translate("+v+", "+b+")").attr("d","M0,0Z"),I=[],D=i.gd,R=[];for(E=0;E<D.calcdata.length;E++)if(O=D.calcdata[E],z=O[0].trace,z._module&&z._module.selectPoints)if(i.subplot){if(z.subplot!==i.subplot)continue;I.push({selectPoints:z._module.selectPoints,cd:O,xaxis:i.xaxes[0],yaxis:i.yaxes[0]})}else{if(-1===k.indexOf(z.xaxis))continue;if(-1===$.indexOf(z.yaxis))continue;I.push({selectPoints:z._module.selectPoints,cd:O,xaxis:o.getFromId(D,z.xaxis),yaxis:o.getFromId(D,z.yaxis)})}i.moveFn=function(e,t){var n,r;M=Math.max(0,Math.min(A,e+y)),_=Math.max(0,Math.min(S,t+x));var a=Math.abs(M-y),o=Math.abs(_-x);for("select"===d?(o<Math.min(.6*a,u)?(n=l([[y,0],[y,S],[M,S],[M,0]]),P.attr("d","M"+n.xmin+","+(x-u)+"h-4v"+2*u+"h4ZM"+(n.xmax-1)+","+(x-u)+"h4v"+2*u+"h-4Z")):a<Math.min(.6*o,u)?(n=l([[0,x],[0,_],[A,_],[A,x]]),P.attr("d","M"+(y-u)+","+n.ymin+"v-4h"+2*u+"v4ZM"+(y-u)+","+(n.ymax-1)+"v4h"+2*u+"v-4Z")):(n=l([[y,x],[y,_],[M,_],[M,x]]),P.attr("d","M0,0Z")),C.attr("d","M"+n.xmin+","+n.ymin+"H"+(n.xmax-1)+"V"+(n.ymax-1)+"H"+n.xmin+"Z")):"lasso"===d&&(h.addPt([M,_]),n=l(h.filtered),C.attr("d","M"+h.filtered.join("L")+"Z")),R=[],E=0;E<I.length;E++)L=I[E],[].push.apply(R,L.selectPoints(L,n));if(N={points:R},"select"===d){var s,c=N.range={};for(E=0;E<T.length;E++)r=T[E],s=r._id.charAt(0),c[r._id]=[r.p2d(n[s+"min"]),r.p2d(n[s+"max"])].sort(f)}else{var m=N.lassoPoints={};for(E=0;E<T.length;E++)r=T[E],m[r._id]=h.filtered.map(p(r))}i.gd.emit("plotly_selecting",N)},i.doneFn=function(e,t){if(P.remove(),e||2!==t)i.gd.emit("plotly_selected",N);else{for(C.remove(),E=0;E<I.length;E++)L=I[E],L.selectPoints(L,!1);D.emit("plotly_deselect",null)}}}},{"../../components/color":586,"../../lib/polygon":707,"./axes":732,"./constants":737}],749:[function(e,t,n){"use strict";function r(e){return Math.pow(10,e)}function i(e){return o(e)?(e=Number(e),e<-p||e>p?f:o(e)?Number(e):f):f}var a=e("d3"),o=e("fast-isnumeric"),s=e("../../lib"),c=s.cleanNumber,l=s.ms2DateTime,u=s.dateTime2ms,d=e("../../constants/numerical"),p=d.FP_SAFE,f=d.BADNUM,h=e("./constants"),m=e("./axis_ids");t.exports=function(e,t){function n(t,n){if(t>0)return Math.log(t)/Math.LN10;if(t<=0&&n&&e.range&&2===e.range.length){var r=e.range[0],i=e.range[1];return.5*(r+i-3*_*Math.abs(r-i))}return f}function d(t,n,r){var i=u(t,r||e.calendar);if(i===f){if(!o(t))return f;i=u(new Date(+t))}return i}function g(t,n,r){return l(t,n,r||e.calendar)}function v(t){return e._categories[Math.round(t)]}function b(t){if(null!==t&&void 0!==t){if(void 0===e._categoriesMap&&(e._categoriesMap={}),void 0!==e._categoriesMap[t])return e._categoriesMap[t];e._categories.push(t);var n=e._categories.length-1;return e._categoriesMap[t]=n,n}return f}function y(t){if(e._categoriesMap){var n=e._categoriesMap[t];if(void 0!==n)return n}if("number"==typeof t)return t}function x(t){return o(t)?a.round(e._b+e._m*t,2):f}function M(t){return(t-e._b)/e._m}t=t||{};var _=10;e.c2l="log"===e.type?n:i,e.l2c="log"===e.type?r:i,e.l2p=x,e.p2l=M,e.c2p="log"===e.type?function(e,t){return x(n(e,t))}:x,e.p2c="log"===e.type?function(e){return r(M(e))}:M,-1!==["linear","-"].indexOf(e.type)?(e.d2r=e.r2d=e.d2c=e.r2c=e.d2l=e.r2l=c,e.c2d=e.c2r=e.l2d=e.l2r=i,e.d2p=e.r2p=function(e){return x(c(e))},e.p2d=e.p2r=M):"log"===e.type?(e.d2r=e.d2l=function(e,t){return n(c(e),t)},e.r2d=e.r2c=function(e){return r(c(e))},e.d2c=e.r2l=c,e.c2d=e.l2r=i,e.c2r=n,e.l2d=r,e.d2p=function(t,n){return x(e.d2r(t,n))},e.p2d=function(e){return r(M(e))},e.r2p=function(e){return x(c(e))},e.p2r=M):"date"===e.type?(e.d2r=e.r2d=s.identity,e.d2c=e.r2c=e.d2l=e.r2l=d,e.c2d=e.c2r=e.l2d=e.l2r=g,e.d2p=e.r2p=function(e,t,n){return x(d(e,0,n))},e.p2d=e.p2r=function(e,t,n){return g(M(e),t,n)}):"category"===e.type&&(e.d2r=e.d2c=e.d2l=b,e.r2d=e.c2d=e.l2d=v,e.d2l_noadd=y,e.r2l=e.l2r=e.r2c=e.c2r=i,e.d2p=function(e){return x(y(e))},e.p2d=function(e){return v(M(e))},e.r2p=x,e.p2r=M),e.fraction2r=function(t){var n=e.r2l(e.range[0]),r=e.r2l(e.range[1]);return e.l2r(n+t*(r-n))},e.r2fraction=function(t){var n=e.r2l(e.range[0]),r=e.r2l(e.range[1]);return(e.r2l(t)-n)/(r-n)},e.cleanRange=function(t){t||(t="range");var n,r,i=s.nestedProperty(e,t).get(),a=(e._id||"x").charAt(0);if(r="date"===e.type?s.dfltRange(e.calendar):"y"===a?h.DFLTRANGEY:h.DFLTRANGEX,r=r.slice(),!i||2!==i.length)return void s.nestedProperty(e,t).set(r);for("date"===e.type&&(i[0]=s.cleanDate(i[0],f,e.calendar),i[1]=s.cleanDate(i[1],f,e.calendar)),n=0;n<2;n++)if("date"===e.type){if(!s.isDateTime(i[n],e.calendar)){e[t]=r;break}if(e.r2l(i[0])===e.r2l(i[1])){var c=s.constrain(e.r2l(i[0]),s.MIN_MS+1e3,s.MAX_MS-1e3);i[0]=e.l2r(c-1e3),i[1]=e.l2r(c+1e3);break}}else{if(!o(i[n])){if(!o(i[1-n])){e[t]=r;break}i[n]=i[1-n]*(n?10:.1)}if(i[n]<-p?i[n]=-p:i[n]>p&&(i[n]=p),i[0]===i[1]){var l=Math.max(1,Math.abs(1e-6*i[0]));i[0]-=l,i[1]+=l}}},e.setScale=function(n){var r=t._size,i=e._id.charAt(0);if(e._categories||(e._categories=[]),e._categoriesMap||(e._categoriesMap={}),e.overlaying){var a=m.getFromId({_fullLayout:t},e.overlaying);e.domain=a.domain}var o=n&&e._r?"_r":"range",c=e.calendar;e.cleanRange(o);var l=e.r2l(e[o][0],c),u=e.r2l(e[o][1],c);if("y"===i?(e._offset=r.t+(1-e.domain[1])*r.h,e._length=r.h*(e.domain[1]-e.domain[0]),e._m=e._length/(l-u),e._b=-e._m*u):(e._offset=r.l+e.domain[0]*r.w,e._length=r.w*(e.domain[1]-e.domain[0]),e._m=e._length/(u-l),e._b=-e._m*l),!isFinite(e._m)||!isFinite(e._b))throw s.notifier("Something went wrong with axis scaling","long"),t._replotting=!1,new Error("axis scaling")},e.makeCalcdata=function(t,n){var r,i,a,o="date"===e.type&&t[n+"calendar"];if(n in t)for(r=t[n],i=new Array(r.length),a=0;a<r.length;a++)i[a]=e.d2c(r[a],0,o);else{var s=n+"0"in t?e.d2c(t[n+"0"],0,o):0,c=t["d"+n]?Number(t["d"+n]):1;for(r=t[{x:"y",y:"x"}[n]],i=new Array(r.length),a=0;a<r.length;a++)i[a]=s+a*c}return i},e.isValidRange=function(t){return Array.isArray(t)&&2===t.length&&o(e.r2l(t[0]))&&o(e.r2l(t[1]))},e._min=[],e._max=[],e._separators=t.separators,delete e._minDtick,delete e._forceTick0}},{"../../constants/numerical":683,"../../lib":697,"./axis_ids":735,"./constants":737,d3:265,"fast-isnumeric":267}],750:[function(e,t,n){"use strict";function r(e){var t=["showexponent","showtickprefix","showticksuffix"],n=t.filter(function(t){return void 0!==e[t]}),r=function(t){return e[t]===e[n[0]]};if(n.every(r)||1===n.length)return e[n[0]]}var i=e("../../lib");t.exports=function(e,t,n,a,o){var s=r(e);if(n("tickprefix")&&n("showtickprefix",s),n("ticksuffix")&&n("showticksuffix",s),n("showticklabels")){var c=o.font||{},l=t.color===e.color?t.color:c.color;i.coerceFont(n,"tickfont",{family:c.family,size:c.size,color:l}),n("tickangle"),"category"!==a&&(n("tickformat")||"date"===a||(n("showexponent",s),n("exponentformat"),n("separatethousands")))}"category"===a||o.noHover||n("hoverformat")}},{"../../lib":697}],751:[function(e,t,n){"use strict";var r=e("../../lib"),i=e("./layout_attributes");t.exports=function(e,t,n,a){var o=r.coerce2(e,t,i,"ticklen"),s=r.coerce2(e,t,i,"tickwidth"),c=r.coerce2(e,t,i,"tickcolor",t.color);n("ticks",a.outerTicks||o||s||c?"outside":"")||(delete t.ticklen,delete t.tickwidth,delete t.tickcolor)}},{"../../lib":697,"./layout_attributes":743}],752:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),i=e("../../lib"),a=e("../../constants/numerical").ONEDAY;t.exports=function(e,t,n,o){var s="auto";"array"!==e.tickmode||"log"!==o&&"date"!==o||(e.tickmode="auto"),Array.isArray(e.tickvals)?s="array":e.dtick&&(s="linear");var c=n("tickmode",s);if("auto"===c)n("nticks");else if("linear"===c){var l="date"===o?a:1,u=n("dtick",l);if(r(u))t.dtick=u>0?Number(u):l;else if("string"!=typeof u)t.dtick=l;else{var d=u.charAt(0),p=u.substr(1);p=r(p)?Number(p):0,(p<=0||!("date"===o&&"M"===d&&p===Math.round(p)||"log"===o&&"L"===d||"log"===o&&"D"===d&&(1===p||2===p)))&&(t.dtick=l)}var f="date"===o?i.dateTick0(t.calendar):0,h=n("tick0",f);"date"===o?t.tick0=i.cleanDate(h,f):r(h)&&"D1"!==u&&"D2"!==u?t.tick0=Number(h):t.tick0=f}else{var m=n("tickvals");void 0===m?t.tickmode="auto":n("ticktext")}}},{"../../constants/numerical":683,"../../lib":697,"fast-isnumeric":267}],753:[function(e,t,n){"use strict";var r=e("d3"),i=e("../../plotly"),a=e("../../registry"),o=e("../../components/drawing"),s=e("./axes"),c=/((x|y)([2-9]|[1-9][0-9]+)?)axis$/;t.exports=function(e,t,n,l){function u(t,n){function r(t,n){for(i=0;i<t.length;i++){var r=t[i];-1===o.indexOf(r.xref)&&-1===o.indexOf(r.yref)||n(e,i)}}var i,o=[];for(o=[t._id,n._id],i=0;i<o.length;i++)s.doTicks(e,o[i],!0);r(g.annotations||[],a.getComponentMethod("annotations","drawOne")),r(g.shapes||[],a.getComponentMethod("shapes","drawOne")),r(g.images||[],a.getComponentMethod("images","draw"))}function d(e){var t=e.xaxis,n=e.yaxis;g._defs.selectAll("#"+e.clipId).call(o.setTranslate,0,0).call(o.setScale,1,1),e.plot.call(o.setTranslate,t._offset,n._offset).call(o.setScale,1,1).select(".scatterlayer").selectAll(".points").selectAll(".point").call(o.setPointGroupScale,1,1),e.plot.select(".scatterlayer").selectAll(".points").selectAll(".textpoint").call(o.setTextPointsScale,1,1)}function p(t,n){var r,i,a,s=b[t.xaxis._id],c=b[t.yaxis._id],l=[];if(s){r=e._fullLayout[s.axisName],i=r._r,a=s.to,l[0]=(i[0]*(1-n)+n*a[0]-i[0])/(i[1]-i[0])*t.xaxis._length;var d=i[1]-i[0],p=a[1]-a[0];r.range[0]=i[0]*(1-n)+n*a[0],r.range[1]=i[1]*(1-n)+n*a[1],l[2]=t.xaxis._length*(1-n+n*p/d)}else l[0]=0,l[2]=t.xaxis._length;if(c){r=e._fullLayout[c.axisName],i=r._r,a=c.to,l[1]=(i[1]*(1-n)+n*a[1]-i[1])/(i[0]-i[1])*t.yaxis._length;var f=i[1]-i[0],h=a[1]-a[0];r.range[0]=i[0]*(1-n)+n*a[0],r.range[1]=i[1]*(1-n)+n*a[1],l[3]=t.yaxis._length*(1-n+n*h/f)}else l[1]=0,l[3]=t.yaxis._length;u(t.xaxis,t.yaxis);var m=t.xaxis,v=t.yaxis,y=!!s,x=!!c,M=y?m._length/l[2]:1,_=x?v._length/l[3]:1,w=y?l[0]:0,A=x?l[1]:0,S=y?l[0]/l[2]*m._length:0,k=x?l[1]/l[3]*v._length:0,$=m._offset-S,T=v._offset-k;g._defs.selectAll("#"+t.clipId).call(o.setTranslate,w,A).call(o.setScale,1/M,1/_),t.plot.call(o.setTranslate,$,T).call(o.setScale,M,_).selectAll(".points").selectAll(".point").call(o.setPointGroupScale,1/M,1/_),t.plot.selectAll(".points").selectAll(".textpoint").call(o.setTextPointsScale,1/M,1/_)}function f(){for(var t={},n=0;n<y.length;n++){var r=e._fullLayout[b[y[n]].axisName],a=b[y[n]].to;t[r._name+".range[0]"]=a[0],t[r._name+".range[1]"]=a[1],r.range=a.slice()}return M&&M(),i.relayout(e,t).then(function(){for(var e=0;e<x.length;e++)d(x[e])})}function h(){for(var t={},n=0;n<y.length;n++){var r=e._fullLayout[y[n]+"axis"];t[r._name+".range[0]"]=r.range[0],t[r._name+".range[1]"]=r.range[1],r.range=r._r.slice()}return i.relayout(e,t).then(function(){for(var e=0;e<x.length;e++)d(x[e])})}function m(){w=Date.now();for(var e=Math.min(1,(w-_)/n.duration),t=S(e),r=0;r<x.length;r++)p(x[r],t);w-_>n.duration?(f(),A=window.cancelAnimationFrame(m)):A=window.requestAnimationFrame(m)}var g=e._fullLayout,v=[],b=function(e){var t,n,r,i,a,o={};for(t in e)if(n=t.split("."),r=n[0].match(c)){var s=r[1],l=s+"axis";if(i=g[l],a={},Array.isArray(e[t])?a.to=e[t].slice(0):Array.isArray(e[t].range)&&(a.to=e[t].range.slice(0)),!a.to)continue;a.axisName=l,a.length=i._length,v.push(s),o[s]=a}return o}(t),y=Object.keys(b),x=function(e,t,n){var r,i,a,o=e._plots,s=[];for(r in o){var c=o[r];if(-1===s.indexOf(c)){var l=c.xaxis._id,u=c.yaxis._id,d=c.xaxis.range,p=c.yaxis.range;c.xaxis._r=c.xaxis.range.slice(),c.yaxis._r=c.yaxis.range.slice(),i=n[l]?n[l].to:d,a=n[u]?n[u].to:p,d[0]===i[0]&&d[1]===i[1]&&p[0]===a[0]&&p[1]===a[1]||-1===t.indexOf(l)&&-1===t.indexOf(u)||s.push(c)}}return s}(g,y,b);if(!x.length)return!1;var M;l&&(M=l());var _,w,A,S=r.ease(n.easing);return e._transitionData._interruptCallbacks.push(function(){return window.cancelAnimationFrame(A),A=null,h()}),_=Date.now(),A=window.requestAnimationFrame(m),Promise.resolve()}},{"../../components/drawing":610,"../../plotly":727,"../../registry":767,"./axes":732,d3:265}],754:[function(e,t,n){"use strict";function r(e,t){if("-"===e.type){var n=e._id,r=n.charAt(0);-1!==n.indexOf("scene")&&(n=r);var l=i(t,n,r);if(l){if("histogram"===l.type&&r==={v:"y",h:"x"}[l.orientation||"v"])return void(e.type="linear");var u=r+"calendar",d=l[u];if(o(l,r)){for(var p,f=a(l),h=[],m=0;m<t.length;m++)p=t[m],s.traceIs(p,"box")&&(p[r+"axis"]||r)===n&&(void 0!==p[f]?h.push(p[f][0]):void 0!==p.name?h.push(p.name):h.push("text"),p[u]!==d&&(d=void 0));e.type=c(h,d)}else e.type=c(l[r]||[l[r+"0"]],d)}}}function i(e,t,n){for(var r=0;r<e.length;r++){var i=e[r];if((i[n+"axis"]||n)===t){if(o(i,n))return i;if((i[n]||[]).length||i[n+"0"])return i}}}function a(e){return{v:"x",h:"y"}[e.orientation||"v"]}function o(e,t){var n=a(e),r=s.traceIs(e,"box"),i=s.traceIs(e._fullInput||{},"candlestick");return r&&!i&&t===n&&void 0===e[n]&&void 0===e[n+"0"]}var s=e("../../registry"),c=e("./axis_autotype"),l=e("./axis_ids").name2id;t.exports=function(e,t,n,i,a){a&&(t._name=a,t._id=l(a)),"-"===n("type")&&(r(t,i),"-"===t.type?t.type="linear":e.type=t.type)}},{"../../registry":767,"./axis_autotype":733,"./axis_ids":735}],755:[function(e,t,n){"use strict";function r(e,t,n){var r,i,a,o=!1;if("data"===t.type)r=e._fullData[null!==t.traces?t.traces[0]:0];else{if("layout"!==t.type)return!1;r=e._fullLayout}return i=l.nestedProperty(r,t.prop).get(),a=n[t.type]=n[t.type]||{},a.hasOwnProperty(t.prop)&&a[t.prop]!==i&&(o=!0),a[t.prop]=i,{changed:o,value:i}}function i(e,t){return Array.isArray(t[0])&&1===t[0].length&&-1!==["string","number"].indexOf(_typeof2(t[0][0]))?[{type:"layout",prop:"_currentFrame",value:t[0][0].toString()}]:[]}function a(e,t){var n=[],r=t[0],i={};if("string"==typeof r)i[r]=t[1];else{if(!l.isPlainObject(r))return n;i=r}
72return s(i,function(e,t,r){n.push({type:"layout",prop:e,value:r})},"",0),n}function o(e,t){var n,r,i,a,o=[];if(r=t[0],i=t[1],n=t[2],a={},"string"==typeof r)a[r]=i;else{if(!l.isPlainObject(r))return o;a=r,void 0===n&&(n=i)}return void 0===n&&(n=null),s(a,function(t,r,i){var a;if(Array.isArray(i)){var s=Math.min(i.length,e.data.length);n&&(s=Math.min(s,n.length)),a=[];for(var c=0;c<s;c++)a[c]=n?n[c]:c}else a=n?n.slice(0):null;if(null===a)Array.isArray(i)&&(i=i[0]);else if(Array.isArray(a)){if(!Array.isArray(i)){var l=i;i=[];for(var u=0;u<a.length;u++)i[u]=l}i.length=Math.min(a.length,i.length)}o.push({type:"data",prop:t,traces:a,value:i})},"",0),o}function s(e,t,n,r){Object.keys(e).forEach(function(i){var a=e[i];if("_"!==i[0]){var o=n+(r>0?".":"")+i;l.isPlainObject(a)?s(a,t,o,r+1):t(o,i,a)}})}var c=e("../plotly"),l=e("../lib");n.manageCommandObserver=function(e,t,i,a){var o={},s=!0;t&&t._commandObserver&&(o=t._commandObserver),o.cache||(o.cache={}),o.lookupTable={};var c=n.hasSimpleAPICommandBindings(e,i,o.lookupTable);if(t&&t._commandObserver){if(c)return o;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,o}if(c){r(e,c,o.cache),o.check=function(){if(s){var t=r(e,c,o.cache);return t.changed&&a&&void 0!==o.lookupTable[t.value]&&(o.disable(),Promise.resolve(a({value:t.value,type:c.type,prop:c.prop,traces:c.traces,index:o.lookupTable[t.value]})).then(o.enable,o.enable)),t.changed}};for(var u=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],d=0;d<u.length;d++)e._internalOn(u[d],o.check);o.remove=function(){for(var t=0;t<u.length;t++)e._removeInternalListener(u[t],o.check)}}else l.warn("Unable to automatically bind plot updates to API command"),o.lookupTable={},o.remove=function(){};return o.disable=function(){s=!1},o.enable=function(){s=!0},t&&(t._commandObserver=o),o},n.hasSimpleAPICommandBindings=function(e,t,r){var i,a,o=t.length;for(i=0;i<o;i++){var s,c=t[i],l=c.method,u=c.args;if(Array.isArray(u)||(u=[]),!l)return!1;var d=n.computeAPICommandBindings(e,l,u);if(1!==d.length)return!1;if(a){if(s=d[0],s.type!==a.type)return!1;if(s.prop!==a.prop)return!1;if(Array.isArray(a.traces)){if(!Array.isArray(s.traces))return!1;s.traces.sort();for(var p=0;p<a.traces.length;p++)if(a.traces[p]!==s.traces[p])return!1}else if(s.prop!==a.prop)return!1}else a=d[0],Array.isArray(a.traces)&&a.traces.sort();s=d[0];var f=s.value;if(Array.isArray(f)){if(1!==f.length)return!1;f=f[0]}r&&(r[f]=i)}return a},n.executeAPICommand=function(e,t,n){var r=c[t],i=[e];Array.isArray(n)||(n=[]);for(var a=0;a<n.length;a++)i.push(n[a]);return r.apply(null,i).catch(function(e){return l.warn("API call to Plotly."+t+" rejected.",e),Promise.reject(e)})},n.computeAPICommandBindings=function(e,t,n){var r;switch(Array.isArray(n)||(n=[]),t){case"restyle":r=o(e,n);break;case"relayout":r=a(e,n);break;case"update":r=o(e,[n[0],n[2]]).concat(a(e,[n[1]]));break;case"animate":r=i(e,n);break;default:r=[]}return r}},{"../lib":697,"../plotly":727}],756:[function(e,t,n){"use strict";t.exports={family:{valType:"string",role:"style",noBlank:!0,strict:!0,description:["HTML font family - the typeface that will be applied by the web browser.","The web browser will only be able to apply a font if it is available on the system","which it operates. Provide multiple font families, separated by commas, to indicate","the preference in which to apply fonts if they aren't available on the system.","The plotly service (at https://plot.ly or on-premise) generates images on a server,","where only a select number of","fonts are installed and supported.","These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*,","*Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*,","*PT Sans Narrow*, *Raleway*, *Times New Roman*."].join(" ")},size:{valType:"number",role:"style",min:1},color:{valType:"color",role:"style"}}},{}],757:[function(e,t,n){"use strict";t.exports={_isLinkedToArray:"frames_entry",group:{valType:"string",role:"info",description:["An identifier that specifies the group to which the frame belongs,","used by animate to select a subset of frames."].join(" ")},name:{valType:"string",role:"info",description:"A label by which to identify the frame"},traces:{valType:"any",role:"info",description:["A list of trace indices that identify the respective traces in the","data attribute"].join(" ")},baseframe:{valType:"string",role:"info",description:["The name of the frame into which this frame's properties are merged","before applying. This is used to unify properties and avoid needing","to specify the same values for the same properties in multiple frames."].join(" ")},data:{valType:"any",role:"object",description:["A list of traces this frame modifies. The format is identical to the","normal trace definition."].join(" ")},layout:{valType:"any",role:"object",description:["Layout properties which this frame modifies. The format is identical","to the normal layout definition."].join(" ")}}},{}],758:[function(e,t,n){"use strict";var r=e("../lib"),i=r.extendFlat,a=e("./font_attributes"),o=e("../components/color/attributes");t.exports={font:{family:i({},a.family,{dflt:'"Open Sans", verdana, arial, sans-serif'}),size:i({},a.size,{dflt:12}),color:i({},a.color,{dflt:o.defaultLine}),description:["Sets the global font.","Note that fonts used in traces and other","layout components inherit from the global font."].join(" ")},title:{valType:"string",role:"info",dflt:"Click to enter Plot title",description:["Sets the plot's title."].join(" ")},titlefont:i({},a,{description:"Sets the title font."}),autosize:{valType:"boolean",role:"info",dflt:!1,description:["Determines whether or not a layout width or height","that has been left undefined by the user","is initialized on each relayout.","Note that, regardless of this attribute,","an undefined layout width or height","is always initialized on the first call to plot."].join(" ")},width:{valType:"number",role:"info",min:10,dflt:700,description:["Sets the plot's width (in px)."].join(" ")},height:{valType:"number",role:"info",min:10,dflt:450,description:["Sets the plot's height (in px)."].join(" ")},margin:{l:{valType:"number",role:"info",min:0,dflt:80,description:"Sets the left margin (in px)."},r:{valType:"number",role:"info",min:0,dflt:80,description:"Sets the right margin (in px)."},t:{valType:"number",role:"info",min:0,dflt:100,description:"Sets the top margin (in px)."},b:{valType:"number",role:"info",min:0,dflt:80,description:"Sets the bottom margin (in px)."},pad:{valType:"number",role:"info",min:0,dflt:0,description:["Sets the amount of padding (in px)","between the plotting area and the axis lines"].join(" ")},autoexpand:{valType:"boolean",role:"info",dflt:!0}},paper_bgcolor:{valType:"color",role:"style",dflt:o.background,description:"Sets the color of paper where the graph is drawn."},plot_bgcolor:{valType:"color",role:"style",dflt:o.background,description:["Sets the color of plotting area in-between x and y axes."].join(" ")},separators:{valType:"string",role:"style",dflt:".,",description:["Sets the decimal and thousand separators.","For example, *. * puts a '.' before decimals and","a space between thousands."].join(" ")},hidesources:{valType:"boolean",role:"info",dflt:!1,description:["Determines whether or not a text link citing the data source is","placed at the bottom-right cored of the figure.","Has only an effect only on graphs that have been generated via","forked graphs from the plotly service (at https://plot.ly or on-premise)."].join(" ")},smith:{valType:"enumerated",role:"info",values:[!1],dflt:!1},showlegend:{valType:"boolean",role:"info",description:"Determines whether or not a legend is drawn."}}},{"../components/color/attributes":585,"../lib":697,"./font_attributes":756}],759:[function(e,t,n){"use strict";t.exports={t:{valType:"number",dflt:0,role:"style",description:"The amount of padding (in px) along the top of the component."},r:{valType:"number",dflt:0,role:"style",description:"The amount of padding (in px) on the right side of the component."},b:{valType:"number",dflt:0,role:"style",description:"The amount of padding (in px) along the bottom of the component."},l:{valType:"number",dflt:0,role:"style",description:"The amount of padding (in px) on the left side of the component."}}},{}],760:[function(e,t,n){"use strict";function r(e,t){t.text("");var n=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" "+String.fromCharCode(187));if(e._context.sendData)n.on("click",function(){h.sendDataToCloud(e)});else{var r=window.location.pathname.split("/"),i=window.location.search;n.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+r[2].split(".")[0]+"/"+r[1]+i})}}function i(e,t,n,r){for(var i=e.transforms,a=[e],o=0;o<i.length;o++){var s=i[o],c=y[s.type];c&&c.transform&&(a=c.transform(a,{transform:s,fullTrace:e,fullData:t,layout:n,fullLayout:r,transformIndex:o}))}return a}function a(e){var t,n={left:0,right:0,bottom:0,top:0};if(e)for(t in e)e.hasOwnProperty(t)&&(n.left+=e[t].left||0,n.right+=e[t].right||0,n.bottom+=e[t].bottom||0,n.top+=e[t].top||0);return n}function o(e){for(var t=!1,n=0;n<e.length;n++){e[n]._categories=e[n]._initialCategories.slice(),e[n]._categoriesMap={};for(var r=0;r<e[n]._categories.length;r++)e[n]._categoriesMap[e[n]._categories[r]]=r;"category"===e[n].type&&(t=!0)}return t}var s=e("d3"),c=e("fast-isnumeric"),l=e("../plotly"),u=e("../registry"),d=e("../lib"),p=e("../components/color"),f=e("../constants/numerical").BADNUM,h=t.exports={},m=e("./animation_attributes"),g=e("./frame_attributes"),v=d.relinkPrivateKeys;d.extendFlat(h,u),h.attributes=e("./attributes"),h.attributes.type.values=h.allTypes,h.fontAttrs=e("./font_attributes"),h.layoutAttributes=e("./layout_attributes"),h.fontWeight="normal";var b=h.subplotsRegistry,y=h.transformsRegistry,x=e("../components/errorbars"),M=e("./command");h.executeAPICommand=M.executeAPICommand,h.computeAPICommandBindings=M.computeAPICommandBindings,h.manageCommandObserver=M.manageCommandObserver,h.hasSimpleAPICommandBindings=M.hasSimpleAPICommandBindings,h.findSubplotIds=function(e,t){var n=[];if(!h.subplotsRegistry[t])return n;for(var r=h.subplotsRegistry[t].attr,i=0;i<e.length;i++){var a=e[i];h.traceIs(a,t)&&-1===n.indexOf(a[r])&&n.push(a[r])}return n},h.getSubplotIds=function(e,t){var n=h.subplotsRegistry[t];if(!n)return[];if(!("cartesian"!==t||e._has&&e._has("cartesian")))return[];if(!("gl2d"!==t||e._has&&e._has("gl2d")))return[];if("cartesian"===t||"gl2d"===t)return Object.keys(e._plots||{});for(var r=n.idRegex,i=Object.keys(e),a=[],o=0;o<i.length;o++){var s=i[o];r.test(s)&&a.push(s)}var c=n.idRoot.length;return a.sort(function(e,t){return+(e.substr(c)||1)-+(t.substr(c)||1)}),a},h.getSubplotData=function(e,t,n){if(!h.subplotsRegistry[t])return[];for(var r,i=h.subplotsRegistry[t].attr,a=[],o=0;o<e.length;o++)if(r=e[o],"gl2d"===t&&h.traceIs(r,"gl2d")){var s=l.Axes.subplotMatch,c="x"+n.match(s)[1],u="y"+n.match(s)[2];r[i[0]]===c&&r[i[1]]===u&&a.push(r)}else r[i]===n&&a.push(r);return a},h.getSubplotCalcData=function(e,t,n){if(!h.subplotsRegistry[t])return[];for(var r=h.subplotsRegistry[t].attr,i=[],a=0;a<e.length;a++){var o=e[a];o[0].trace[r]===n&&i.push(o)}return i},h.redrawText=function(e){if(!(e.data&&e.data[0]&&e.data[0].r))return new Promise(function(t){setTimeout(function(){u.getComponentMethod("annotations","draw")(e),u.getComponentMethod("legend","draw")(e),(e.calcdata||[]).forEach(function(e){e[0]&&e[0].t&&e[0].t.cb&&e[0].t.cb()}),t(h.previousPromises(e))},300)})},h.resize=function(e){return new Promise(function(t,n){e&&"none"!==s.select(e).style("display")||n(new Error("Resize must be passed a plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._redrawTimer=setTimeout(function(){if(e.layout.width&&e.layout.height)return void t(e);delete e.layout.width,delete e.layout.height;var n=e.changed;e.autoplay=!0,l.relayout(e,{autosize:!0}).then(function(){e.changed=n,t(e)})},100)})},h.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then(function(){e._promises=[]})},h.addLinks=function(e){if(e._context.showLink||e._context.showSources){var t=e._fullLayout,n=t._paper.selectAll("text.js-plot-link-container").data([0]);n.enter().append("text").classed("js-plot-link-container",!0).style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:p.defaultLine,"pointer-events":"all"}).each(function(){var e=s.select(this);e.append("tspan").classed("js-link-to-tool",!0),e.append("tspan").classed("js-link-spacer",!0),e.append("tspan").classed("js-sourcelinks",!0)});var i=n.node(),a={y:t._paper.attr("height")-9};document.body.contains(i)&&i.getComputedTextLength()>=t.width-20?(a["text-anchor"]="start",a.x=5):(a["text-anchor"]="end",a.x=t._paper.attr("width")-7),n.attr(a);var o=n.select(".js-link-to-tool"),c=n.select(".js-link-spacer"),l=n.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&r(e,o),c.text(o.text()&&l.text()?" - ":"")}},h.sendDataToCloud=function(e){e.emit("plotly_beforeexport");var t=window.PLOTLYENV&&window.PLOTLYENV.BASE_URL||"https://plot.ly",n=s.select(e).append("div").attr("id","hiddenform").style("display","none"),r=n.append("form").attr({action:t+"/external",method:"post",target:"_blank"});return r.append("input").attr({type:"text",name:"data"}).node().value=h.graphJson(e,!1,"keepdata"),r.node().submit(),n.remove(),e.emit("plotly_afterexport"),!1},h.supplyDefaults=function(e){var t,n=e._fullLayout||{},r=e._fullLayout={},i=e.layout||{},a=e._fullData||[],o=e._fullData=[],s=e.data||[];if(e._transitionData||h.createTransitionData(e),n._initialAutoSizeIsDone){var c=n.width,u=n.height;h.supplyLayoutGlobalDefaults(i,r),i.width||(r.width=c),i.height||(r.height=u)}else{h.supplyLayoutGlobalDefaults(i,r);var d=!i.width||!i.height,p=r.autosize,f=e._context&&e._context.autosizable;d&&(p||f)?h.plotAutoSize(e,i,r):d&&h.sanitizeMargins(e),!p&&d&&(i.width=r.width,i.height=r.height)}r._initialAutoSizeIsDone=!0,r._dataLength=s.length,r._globalTransforms=(e._context||{}).globalTransforms,h.supplyDataDefaults(s,o,i,r),r._has=h._hasPlotType.bind(r);var m=r._modules;for(t=0;t<m.length;t++){var g=m[t];g.cleanData&&g.cleanData(o)}if(a.length===s.length)for(t=0;t<o.length;t++)v(o[t],a[t]);h.supplyLayoutModuleDefaults(i,r,o,e._transitionData),r._hasCartesian=r._has("cartesian"),r._hasGeo=r._has("geo"),r._hasGL3D=r._has("gl3d"),r._hasGL2D=r._has("gl2d"),r._hasTernary=r._has("ternary"),r._hasPie=r._has("pie"),h.cleanPlot(o,r,a,n),h.linkSubplots(o,r,a,n),v(r,n),h.doAutoMargin(e);var b=l.Axes.list(e);for(t=0;t<b.length;t++){b[t].setScale()}if((e.calcdata||[]).length===o.length)for(t=0;t<o.length;t++){var y=o[t];(e.calcdata[t][0]||{}).trace=y}},h.createTransitionData=function(e){e._transitionData||(e._transitionData={}),e._transitionData._frames||(e._transitionData._frames=[]),e._transitionData._frameHash||(e._transitionData._frameHash={}),e._transitionData._counter||(e._transitionData._counter=0),e._transitionData._interruptCallbacks||(e._transitionData._interruptCallbacks=[])},h._hasPlotType=function(e){for(var t=this._basePlotModules||[],n=0;n<t.length;n++){if(t[n].name===e)return!0}return!1},h.cleanPlot=function(e,t,n,r){var i,a,o=r._basePlotModules||[];for(i=0;i<o.length;i++){var s=o[i];s.clean&&s.clean(e,t,n,r)}var c=!!r._paper,l=!!r._infolayer;e:for(i=0;i<n.length;i++){var u=n[i],d=u.uid;for(a=0;a<e.length;a++){var p=e[a];if(d===p.uid)continue e}var f=".hm"+d+",.contour"+d+",.carpet"+d+",#clip"+d+",.trace"+d;c&&r._paper.selectAll(f).remove(),l&&(r._infolayer.selectAll(".cb"+d).remove(),r._infolayer.selectAll("g.rangeslider-container").selectAll(f).remove())}},h.linkSubplots=function(e,t,n,r){for(var i=r._plots||{},a=t._plots={},o={_fullData:e,_fullLayout:t},s=l.Axes.getSubplots(o),c=0;c<s.length;c++){var u,d=s[c],p=i[d];p?(u=a[d]=p,u._scene2d&&u._scene2d.updateRefs(t)):(u=a[d]={},u.id=d),u.xaxis=l.Axes.getFromId(o,d,"x"),u.yaxis=l.Axes.getFromId(o,d,"y")}},h.supplyDataDefaults=function(e,t,n,r){function a(e){t.push(e);var n=e._module;n&&(d.pushUnique(l,n),d.pushUnique(p,e._module.basePlotModule),f++)}var o,s,c,l=r._modules=[],p=r._basePlotModules=[],f=0;r._transformModules=[];var m={},g=[];for(o=0;o<e.length;o++){if(c=e[o],s=h.supplyTraceDefaults(c,f,r,o),s.index=o,s._input=c,s._expandedIndex=f,s.transforms&&s.transforms.length)for(var v=i(s,t,n,r),b=0;b<v.length;b++){var y=v[b],x=h.supplyTraceDefaults(y,f,r,o);y.uid=x.uid=s.uid+b,x.index=o,x._input=c,x._fullInput=s,x._expandedIndex=f,x._expandedInput=y,a(x)}else s._fullInput=s,s._expandedInput=s,a(s);u.traceIs(s,"carpetAxis")&&(m[s.carpet]=s),u.traceIs(s,"carpetDependent")&&g.push(o)}for(o=0;o<g.length;o++)if(s=t[g[o]],s.visible){var M=m[s.carpet];s._carpet=M,M&&M.visible?(s.xaxis=M.xaxis,s.yaxis=M.yaxis):s.visible=!1}},h.supplyAnimationDefaults=function(e){function t(t,n){return d.coerce(e||{},r,m,t,n)}e=e||{};var n,r={};if(t("mode"),t("direction"),t("fromcurrent"),Array.isArray(e.frame))for(r.frame=[],n=0;n<e.frame.length;n++)r.frame[n]=h.supplyAnimationFrameDefaults(e.frame[n]||{});else r.frame=h.supplyAnimationFrameDefaults(e.frame||{});if(Array.isArray(e.transition))for(r.transition=[],n=0;n<e.transition.length;n++)r.transition[n]=h.supplyAnimationTransitionDefaults(e.transition[n]||{});else r.transition=h.supplyAnimationTransitionDefaults(e.transition||{});return r},h.supplyAnimationFrameDefaults=function(e){function t(t,r){return d.coerce(e||{},n,m.frame,t,r)}var n={};return t("duration"),t("redraw"),n},h.supplyAnimationTransitionDefaults=function(e){function t(t,r){return d.coerce(e||{},n,m.transition,t,r)}var n={};return t("duration"),t("easing"),n},h.supplyFrameDefaults=function(e){function t(t,r){return d.coerce(e,n,g,t,r)}var n={};return t("group"),t("name"),t("traces"),t("baseframe"),t("data"),t("layout"),n},h.supplyTraceDefaults=function(e,t,n,r){function i(t,n){return d.coerce(e,o,h.attributes,t,n)}function a(t,n){if(h.traceIs(o,t))return d.coerce(e,o,h.subplotsRegistry[t].attributes,n)}var o={},s=p.defaults[t%p.defaults.length],c=i("visible");i("type"),i("uid"),i("name","trace "+r);for(var l=Object.keys(b),f=0;f<l.length;f++){var m=l[f];if(-1===["cartesian","gl2d"].indexOf(m)){var g=b[m].attr;g&&a(m,g)}}if(c){var v=h.getModule(o);o._module=v,i("hoverinfo",1===n._dataLength?"x+y+z+text":void 0),h.traceIs(o,"showLegend")&&(i("showlegend"),i("legendgroup")),u.getComponentMethod("fx","supplyDefaults")(e,o,s,n),v&&v.supplyDefaults(e,o,s,n),h.traceIs(o,"noOpacity")||i("opacity"),a("cartesian","xaxis"),a("cartesian","yaxis"),a("gl2d","xaxis"),a("gl2d","yaxis"),h.traceIs(o,"notLegendIsolatable")&&(o.visible=!!o.visible),h.supplyTransformDefaults(e,o,n)}return o},h.supplyTransformDefaults=function(e,t,n){var r=n._globalTransforms||[],i=n._transformModules||[];if(Array.isArray(e.transforms)||0!==r.length)for(var a=e.transforms||[],o=r.concat(a),s=t.transforms=[],c=0;c<o.length;c++){var l,u=o[c],p=u.type,f=y[p];f||d.warn("Unrecognized transform type "+p+"."),f&&f.supplyDefaults?(l=f.supplyDefaults(u,t,n,e),l.type=p,l._module=f,d.pushUnique(i,f)):l=d.extendFlat({},u),s.push(l)}},h.supplyLayoutGlobalDefaults=function(e,t){function n(n,r){return d.coerce(e,t,h.layoutAttributes,n,r)}var r=d.coerceFont(n,"font");n("title"),d.coerceFont(n,"titlefont",{family:r.family,size:Math.round(1.4*r.size),color:r.color}),n("autosize",!(e.width&&e.height)),n("width"),n("height"),n("margin.l"),n("margin.r"),n("margin.t"),n("margin.b"),n("margin.pad"),n("margin.autoexpand"),e.width&&e.height&&h.sanitizeMargins(t),n("paper_bgcolor"),n("separators"),n("hidesources"),n("smith"),u.getComponentMethod("calendars","handleDefaults")(e,t,"calendar"),u.getComponentMethod("fx","supplyLayoutGlobalDefaults")(e,t,n)},h.plotAutoSize=function(e,t,n){var r,i,o=e._context||{},s=o.frameMargins,l=d.isPlotDiv(e);if(l&&e.emit("plotly_autosize"),o.fillFrame)r=window.innerWidth,i=window.innerHeight,document.body.style.overflow="hidden";else if(c(s)&&s>0){var u=a(e._boundingBoxMargins),p=u.left+u.right,f=u.bottom+u.top,m=1-2*s,g=n._container&&n._container.node?n._container.node().getBoundingClientRect():{width:n.width,height:n.height};r=Math.round(m*(g.width-p)),i=Math.round(m*(g.height-f))}else{var v=l?window.getComputedStyle(e):{};r=parseFloat(v.width)||n.width,i=parseFloat(v.height)||n.height}var b=h.layoutAttributes.width.min,y=h.layoutAttributes.height.min;r<b&&(r=b),i<y&&(i=y);var x=!t.width&&Math.abs(n.width-r)>1,M=!t.height&&Math.abs(n.height-i)>1;(M||x)&&(x&&(n.width=r),M&&(n.height=i)),e._initialAutoSize||(e._initialAutoSize={width:r,height:i}),h.sanitizeMargins(n)},h.supplyLayoutModuleDefaults=function(e,t,n,r){var i,a;l.Axes.supplyLayoutDefaults(e,t,n);var o=t._basePlotModules;for(i=0;i<o.length;i++)a=o[i],"cartesian"!==a.name&&a.supplyLayoutDefaults&&a.supplyLayoutDefaults(e,t,n);var s=t._modules;for(i=0;i<s.length;i++)a=s[i],a.supplyLayoutDefaults&&a.supplyLayoutDefaults(e,t,n);var c=t._transformModules;for(i=0;i<c.length;i++)a=c[i],a.supplyLayoutDefaults&&a.supplyLayoutDefaults(e,t,n,r);var d=Object.keys(u.componentsRegistry);for(i=0;i<d.length;i++)a=u.componentsRegistry[d[i]],a.supplyLayoutDefaults&&a.supplyLayoutDefaults(e,t,n)},h.purge=function(e){var t=e._fullLayout||{};void 0!==t._glcontainer&&t._glcontainer.remove(),void 0!==t._geocontainer&&t._geocontainer.remove(),t._modeBar&&t._modeBar.destroy(),e._transitionData&&(e._transitionData._interruptCallbacks&&(e._transitionData._interruptCallbacks.length=0),e._transitionData._animationRaf&&window.cancelAnimationFrame(e._transitionData._animationRaf)),delete e.data,delete e.layout,delete e._fullData,delete e._fullLayout,delete e.calcdata,delete e.framework,delete e.empty,delete e.fid,delete e.undoqueue,delete e.undonum,delete e.autoplay,delete e.changed,delete e._promises,delete e._redrawTimer,delete e.firstscatter,delete e.hmlumcount,delete e.hmpixcount,delete e.numboxes,delete e._hoverTimer,delete e._lastHoverTime,delete e._transitionData,delete e._transitioning,delete e._initialAutoSize,e.removeAllListeners&&e.removeAllListeners()},h.style=function(e){for(var t=e._fullLayout._modules,n=0;n<t.length;n++){var r=t[n];r.style&&r.style(e)}},h.sanitizeMargins=function(e){if(e&&e.margin){var t,n=e.width,r=e.height,i=e.margin,a=n-(i.l+i.r),o=r-(i.t+i.b);a<0&&(t=(n-1)/(i.l+i.r),i.l=Math.floor(t*i.l),i.r=Math.floor(t*i.r)),o<0&&(t=(r-1)/(i.t+i.b),i.t=Math.floor(t*i.t),i.b=Math.floor(t*i.b))}},h.autoMargin=function(e,t,n){var r=e._fullLayout;if(r._pushmargin||(r._pushmargin={}),!1!==r.margin.autoexpand){if(n){var i=void 0===n.pad?12:n.pad;n.l+n.r>.5*r.width&&(n.l=n.r=0),n.b+n.t>.5*r.height&&(n.b=n.t=0),r._pushmargin[t]={l:{val:n.x,size:n.l+i},r:{val:n.x,size:n.r+i},b:{val:n.y,size:n.b+i},t:{val:n.y,size:n.t+i}}}else delete r._pushmargin[t];r._replotting||h.doAutoMargin(e)}},h.doAutoMargin=function(e){var t=e._fullLayout;t._size||(t._size={}),t._pushmargin||(t._pushmargin={});var n=t._size,r=JSON.stringify(n),i=Math.max(t.margin.l||0,0),a=Math.max(t.margin.r||0,0),o=Math.max(t.margin.t||0,0),s=Math.max(t.margin.b||0,0),u=t._pushmargin;if(!1!==t.margin.autoexpand){u.base={l:{val:0,size:i},r:{val:1,size:a},t:{val:1,size:o},b:{val:0,size:s}};for(var d=Object.keys(u),p=0;p<d.length;p++)for(var f=d[p],h=u[f].l||{},m=u[f].b||{},g=h.val,v=h.size,b=m.val,y=m.size,x=0;x<d.length;x++){var M=d[x];if(c(v)&&u[M].r){var _=u[M].r.val,w=u[M].r.size;if(_>g){var A=(v*_+(w-t.width)*g)/(_-g),S=(w*(1-g)+(v-t.width)*(1-_))/(_-g);A>=0&&S>=0&&A+S>i+a&&(i=A,a=S)}}if(c(y)&&u[M].t){var k=u[M].t.val,$=u[M].t.size;if(k>b){var T=(y*k+($-t.height)*b)/(k-b),C=($*(1-b)+(y-t.height)*(1-k))/(k-b);T>=0&&C>=0&&T+C>s+o&&(s=T,o=C)}}}}if(n.l=Math.round(i),n.r=Math.round(a),n.t=Math.round(o),n.b=Math.round(s),n.p=Math.round(t.margin.pad),n.w=Math.round(t.width)-n.l-n.r,n.h=Math.round(t.height)-n.t-n.b,!t._replotting&&"{}"!==r&&r!==JSON.stringify(t._size))return l.plot(e)},h.graphJson=function(e,t,n,r,i){function a(e){if("function"==typeof e)return null;if(d.isPlainObject(e)){var t,r,i={};for(t in e)if("function"!=typeof e[t]&&-1===["_","["].indexOf(t.charAt(0))){if("keepdata"===n){if("src"===t.substr(t.length-3))continue}else if("keepstream"===n){if("string"==typeof(r=e[t+"src"])&&r.indexOf(":")>0&&!d.isPlainObject(e.stream))continue}else if("keepall"!==n&&"string"==typeof(r=e[t+"src"])&&r.indexOf(":")>0)continue;i[t]=a(e[t])}return i}return Array.isArray(e)?e.map(a):d.isJSDate(e)?d.ms2DateTimeLocal(+e):e}(i&&t&&!e._fullData||i&&!t&&!e._fullLayout)&&h.supplyDefaults(e);var o=i?e._fullData:e.data,s=i?e._fullLayout:e.layout,c=(e._transitionData||{})._frames,l={data:(o||[]).map(function(e){var n=a(e);return t&&delete n.fit,n})};return t||(l.layout=a(s)),e.framework&&e.framework.isPolar&&(l=e.framework.getConfig()),c&&(l.frames=a(c)),"object"===r?l:JSON.stringify(l)},h.modifyFrames=function(e,t){var n,r,i,a=e._transitionData._frames,o=e._transitionData._frameHash;for(n=0;n<t.length;n++)switch(r=t[n],r.type){case"replace":i=r.value;var s=(a[r.index]||{}).name,c=i.name;a[r.index]=o[c]=i,c!==s&&(delete o[s],o[c]=i);break;case"insert":i=r.value,o[i.name]=i,a.splice(r.index,0,i);break;case"delete":i=a[r.index],delete o[i.name],a.splice(r.index,1)}return Promise.resolve()},h.computeFrame=function(e,t){var n,r,i,a,o=e._transitionData._frameHash;if(!t)throw new Error("computeFrame must be given a string frame name");var s=o[t.toString()];if(!s)return!1;for(var c=[s],l=[s.name];s.baseframe&&(s=o[s.baseframe.toString()])&&-1===l.indexOf(s.name);)c.push(s),l.push(s.name);for(var u={};s=c.pop();)if(s.layout&&(u.layout=h.extendLayout(u.layout,s.layout)),s.data){if(u.data||(u.data=[]),!(r=s.traces))for(r=[],n=0;n<s.data.length;n++)r[n]=n;for(u.traces||(u.traces=[]),n=0;n<s.data.length;n++)void 0!==(i=r[n])&&null!==i&&(a=u.traces.indexOf(i),-1===a&&(a=u.data.length,u.traces[a]=i),u.data[a]=h.extendTrace(u.data[a],s.data[n]))}return u},h.recomputeFrameHash=function(e){for(var t=e._transitionData._frameHash={},n=e._transitionData._frames,r=0;r<n.length;r++){var i=n[r];i&&i.name&&(t[i.name]=i)}},h.extendObjectWithContainers=function(e,t,n){var r,i,a,o,s,c,l,u,p=d.extendDeepNoArrays({},t||{}),f=d.expandObjectPaths(p),m={};if(n&&n.length)for(a=0;a<n.length;a++)r=d.nestedProperty(f,n[a]),i=r.get(),void 0===i?d.nestedProperty(m,n[a]).set(null):(r.set(null),d.nestedProperty(m,n[a]).set(i));if(e=d.extendDeepNoArrays(e||{},f),n&&n.length)for(a=0;a<n.length;a++)if(s=d.nestedProperty(m,n[a]),l=s.get()){for(c=d.nestedProperty(e,n[a]),u=c.get(),Array.isArray(u)||(u=[],c.set(u)),o=0;o<l.length;o++){var g=l[o];u[o]=null===g?null:h.extendObjectWithContainers(u[o],g)}c.set(u)}return e},h.dataArrayContainers=["transforms"],h.layoutArrayContainers=u.layoutArrayContainers,h.extendTrace=function(e,t){return h.extendObjectWithContainers(e,t,h.dataArrayContainers)},h.extendLayout=function(e,t){return h.extendObjectWithContainers(e,t,h.layoutArrayContainers)},h.transition=function(e,t,n,r,i,a){function o(){var r;for(r=0;r<b.length;r++){var i=b[r],a=e._fullData[i],o=a._module;o&&(o.animatable&&y.push(i),e.data[b[r]]=h.extendTrace(e.data[b[r]],t[r]))}var s=d.expandObjectPaths(d.extendDeepNoArrays({},n)),c=/^[xy]axis[0-9]*$/;for(var l in s)c.test(l)&&delete s[l].range;return h.extendLayout(e.layout,s),h.supplyDefaults(e),h.doCalcdata(e),x.calc(e),Promise.resolve()}function s(e){var t=Promise.resolve();if(!e)return t;for(;e.length;)t=t.then(e.shift());return t}function c(e){if(e)for(;e.length;)e.shift()}function u(){return e.emit("plotly_transitioning",[]),new Promise(function(t){function r(){return c++,function(){u++,M||u!==c||p(t)}}e._transitioning=!0,a.duration>0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push(function(){M=!0}),i.redraw&&e._transitionData._interruptCallbacks.push(function(){return l.redraw(e)}),e._transitionData._interruptCallbacks.push(function(){e.emit("plotly_transitioninterrupted",[])});var o,s,c=0,u=0,f=e._fullLayout._basePlotModules,h=!1;if(n)for(s=0;s<f.length;s++)if(f[s].transitionAxes){var m=d.expandObjectPaths(n);h=f[s].transitionAxes(e,m,a,r)||h}for(h?(o=d.extendFlat({},a),o.duration=0):o=a,s=0;s<f.length;s++)f[s].plot(e,y,o,r);setTimeout(r())})}function p(t){if(e._transitionData)return c(e._transitionData._interruptCallbacks),Promise.resolve().then(function(){if(i.redraw)return l.redraw(e)}).then(function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])}).then(t)}function f(){if(e._transitionData)return e._transitioning=!1,s(e._transitionData._interruptCallbacks)}var m,g,v=Array.isArray(t)?t.length:0,b=r.slice(0,v),y=[],M=!1;for(m=0;m<b.length;m++){g=b[m];var _=e._fullData[g],w=_._module;if(w&&!w.animatable){var A={};for(var S in t[m])A[S]=[t[m][S]]}}var k=[h.previousPromises,f,o,h.rehover,u],$=d.syncOrAsync(k,e);return $&&$.then||($=Promise.resolve()),$.then(function(){return e})},h.doCalcdata=function(e,t){var n,r,i,a,s=l.Axes.list(e),c=e._fullData,d=e._fullLayout,p=new Array(c.length),h=(e.calcdata||[]).slice(0);for(e.calcdata=p,e.firstscatter=!0,e.numboxes=0,e._hmpixcount=0,e._hmlumcount=0,d._piecolormap={},d._piedefaultcolorcount=0,i=0;i<c.length;i++)Array.isArray(t)&&-1===t.indexOf(i)&&(p[i]=h[i]);var m=o(s),g=!1;for(i=0;i<c.length;i++)if(n=c[i],!0===n.visible&&n.transforms)for(r=n._module,r&&r.calc&&r.calc(e,n),a=0;a<n.transforms.length;a++){var v=n.transforms[a];r=y[v.type],r&&r.calcTransform&&(g=!0,r.calcTransform(e,n,v))}if(g){for(i=0;i<s.length;i++)s[i]._min=[],s[i]._max=[],s[i]._categories=[],s[i]._categoriesMap={};o(s)}for(i=0;i<c.length;i++){var b=[];n=c[i],!0===n.visible&&(r=n._module)&&r.calc&&(b=r.calc(e,n)),Array.isArray(b)&&b[0]||(b=[{x:f,y:f}]),b[0].t||(b[0].t={}),b[0].trace=n,p[i]=b}if(u.getComponentMethod("fx","calc")(e),m){var x=["annotations","shapes","images"];for(i=0;i<x.length;i++)u.getComponentMethod(x[i],"supplyLayoutDefaults")(e.layout,d,c)}},h.rehover=function(e){e._fullLayout._rehover&&e._fullLayout._rehover()},h.generalUpdatePerTraceModule=function(e,t,n){var r,i=e.traceHash,a={};for(r=0;r<t.length;r++){var o=t[r],s=o[0].trace;s.visible&&(a[s.type]=a[s.type]||[],a[s.type].push(o))}var c=Object.keys(i),l=Object.keys(a);for(r=0;r<c.length;r++){var u=c[r];if(-1===l.indexOf(u)){var d=i[u][0];d[0].trace.visible=!1,a[u]=[d]}}for(l=Object.keys(a),r=0;r<l.length;r++){var p=a[l[r]];p[0][0].trace._module.plot(e,function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];!0===r[0].trace.visible&&t.push(r)}return t}(p),n)}e.traceHash=a}},{"../components/color":586,"../components/errorbars":616,"../constants/numerical":683,"../lib":697,"../plotly":727,"../registry":767,"./animation_attributes":728,"./attributes":730,"./command":755,"./font_attributes":756,"./frame_attributes":757,"./layout_attributes":758,d3:265,"fast-isnumeric":267}],761:[function(e,t,n){"use strict";var r=e("../../traces/scatter/attributes"),i=r.marker;t.exports={r:r.r,t:r.t,marker:{color:i.color,size:i.size,symbol:i.symbol,opacity:i.opacity}}},{"../../traces/scatter/attributes":801}],762:[function(e,t,n){"use strict";function r(e,t){var n={showline:{valType:"boolean",role:"style",description:["Determines whether or not the line bounding this",e,"axis","will be shown on the figure."].join(" ")},showticklabels:{valType:"boolean",role:"style",description:["Determines whether or not the",e,"axis ticks","will feature tick labels."].join(" ")},tickorientation:{valType:"enumerated",values:["horizontal","vertical"],role:"style",description:["Sets the orientation (from the paper perspective)","of the",e,"axis tick labels."].join(" ")},ticklen:{valType:"number",min:0,role:"style",description:["Sets the length of the tick lines on this",e,"axis."].join(" ")},tickcolor:{valType:"color",role:"style",description:["Sets the color of the tick lines on this",e,"axis."].join(" ")},ticksuffix:{valType:"string",role:"style",
73description:["Sets the length of the tick lines on this",e,"axis."].join(" ")},endpadding:{valType:"number",role:"style"},visible:{valType:"boolean",role:"info",description:["Determines whether or not this axis will be visible."].join(" ")}};return a({},t,n)}var i=e("../cartesian/layout_attributes"),a=e("../../lib/extend").extendFlat,o=a({},i.domain,{description:["Polar chart subplots are not supported yet.","This key has currently no effect."].join(" ")});t.exports={radialaxis:r("radial",{range:{valType:"info_array",role:"info",items:[{valType:"number"},{valType:"number"}],description:["Defines the start and end point of this radial axis."].join(" ")},domain:o,orientation:{valType:"number",role:"style",description:["Sets the orientation (an angle with respect to the origin)","of the radial axis."].join(" ")}}),angularaxis:r("angular",{range:{valType:"info_array",role:"info",items:[{valType:"number",dflt:0},{valType:"number",dflt:360}],description:["Defines the start and end point of this angular axis."].join(" ")},domain:o}),layout:{direction:{valType:"enumerated",values:["clockwise","counterclockwise"],role:"info",description:["For polar plots only.","Sets the direction corresponding to positive angles."].join(" ")},orientation:{valType:"angle",role:"info",description:["For polar plots only.","Rotates the entire polar by the given angle."].join(" ")}}}},{"../../lib/extend":693,"../cartesian/layout_attributes":743}],763:[function(e,t,n){"use strict";(t.exports=e("./micropolar")).manager=e("./micropolar_manager")},{"./micropolar":764,"./micropolar_manager":765}],764:[function(e,t,n){var r=e("d3"),i=e("../../lib"),a=i.extendDeepAll,o=t.exports={version:"0.2.2"};o.Axis=function(){function e(e){n=e||n;var l=c.data,d=c.layout;return("string"==typeof n||n.nodeName)&&(n=r.select(n)),n.datum(l).each(function(e,n){function c(e,t){return s(e)%360+d.orientation}var l=e.slice();u={data:o.util.cloneJson(l),layout:o.util.cloneJson(d)};var p=0;l.forEach(function(e,t){e.color||(e.color=d.defaultColorRange[p],p=(p+1)%d.defaultColorRange.length),e.strokeColor||(e.strokeColor="LinePlot"===e.geometry?e.color:r.rgb(e.color).darker().toString()),u.data[t].color=e.color,u.data[t].strokeColor=e.strokeColor,u.data[t].strokeDash=e.strokeDash,u.data[t].strokeSize=e.strokeSize});var f=l.filter(function(e,t){var n=e.visible;return void 0===n||!0===n}),h=!1,m=f.map(function(e,t){return h=h||void 0!==e.groupId,e});if(h){var g=r.nest().key(function(e,t){return void 0!==e.groupId?e.groupId:"unstacked"}).entries(m),v=[],b=g.map(function(e,t){if("unstacked"===e.key)return e.values;var n=e.values[0].r.map(function(e,t){return 0});return e.values.forEach(function(e,t,r){e.yStack=[n],v.push(n),n=o.util.sumArrays(e.r,n)}),e.values});f=r.merge(b)}f.forEach(function(e,t){e.t=Array.isArray(e.t[0])?e.t:[e.t],e.r=Array.isArray(e.r[0])?e.r:[e.r]});var y=Math.min(d.width-d.margin.left-d.margin.right,d.height-d.margin.top-d.margin.bottom)/2;y=Math.max(10,y);var x,M=[d.margin.left+y,d.margin.top+y];if(h){x=[0,r.max(o.util.sumArrays(o.util.arrayLast(f).r[0],o.util.arrayLast(v)))]}else x=r.extent(o.util.flattenArray(f.map(function(e,t){return e.r})));d.radialAxis.domain!=o.DATAEXTENT&&(x[0]=0),i=r.scale.linear().domain(d.radialAxis.domain!=o.DATAEXTENT&&d.radialAxis.domain?d.radialAxis.domain:x).range([0,y]),u.layout.radialAxis.domain=i.domain();var _,w=o.util.flattenArray(f.map(function(e,t){return e.t})),A="string"==typeof w[0];A&&(w=o.util.deduplicate(w),_=w.slice(),w=r.range(w.length),f=f.map(function(e,t){var n=e;return e.t=[w],h&&(n.yStack=e.yStack),n}));var S=f.filter(function(e,t){return"LinePlot"===e.geometry||"DotPlot"===e.geometry}).length===f.length,k=null===d.needsEndSpacing?A||!S:d.needsEndSpacing,$=d.angularAxis.domain&&d.angularAxis.domain!=o.DATAEXTENT&&!A&&d.angularAxis.domain[0]>=0,T=$?d.angularAxis.domain:r.extent(w),C=Math.abs(w[1]-w[0]);S&&!A&&(C=0);var E=T.slice();k&&A&&(E[1]+=C);var O=d.angularAxis.ticksCount||4;O>8&&(O=O/(O/8)+O%8),d.angularAxis.ticksStep&&(O=(E[1]-E[0])/O);var z=d.angularAxis.ticksStep||(E[1]-E[0])/(O*(d.minorTicks+1));_&&(z=Math.max(Math.round(z),1)),E[2]||(E[2]=z);var L=r.range.apply(this,E);if(L=L.map(function(e,t){return parseFloat(e.toPrecision(12))}),s=r.scale.linear().domain(E.slice(0,2)).range("clockwise"===d.direction?[0,360]:[360,0]),u.layout.angularAxis.domain=s.domain(),u.layout.angularAxis.endPadding=k?C:0,void 0===(t=r.select(this).select("svg.chart-root"))||t.empty()){var N=(new DOMParser).parseFromString("<svg xmlns='http://www.w3.org/2000/svg' class='chart-root'>' + '<g class='outer-group'>' + '<g class='chart-group'>' + '<circle class='background-circle'></circle>' + '<g class='geometry-group'></g>' + '<g class='radial axis-group'>' + '<circle class='outside-circle'></circle>' + '</g>' + '<g class='angular axis-group'></g>' + '<g class='guides-group'><line></line><circle r='0'></circle></g>' + '</g>' + '<g class='legend-group'></g>' + '<g class='tooltips-group'></g>' + '<g class='title-group'><text></text></g>' + '</g>' + '</svg>","application/xml"),P=this.appendChild(this.ownerDocument.importNode(N.documentElement,!0));t=r.select(P)}t.select(".guides-group").style({"pointer-events":"none"}),t.select(".angular.axis-group").style({"pointer-events":"none"}),t.select(".radial.axis-group").style({"pointer-events":"none"});var I,D=t.select(".chart-group"),R={fill:"none",stroke:d.tickColor},j={"font-size":d.font.size,"font-family":d.font.family,fill:d.font.color,"text-shadow":["-1px 0px","1px -1px","-1px 1px","1px 1px"].map(function(e,t){return" "+e+" 0 "+d.font.outlineColor}).join(",")};if(d.showLegend){I=t.select(".legend-group").attr({transform:"translate("+[y,d.margin.top]+")"}).style({display:"block"});var q=f.map(function(e,t){var n=o.util.cloneJson(e);return n.symbol="DotPlot"===e.geometry?e.dotType||"circle":"LinePlot"!=e.geometry?"square":"line",n.visibleInLegend=void 0===e.visibleInLegend||e.visibleInLegend,n.color="LinePlot"===e.geometry?e.strokeColor:e.color,n});o.Legend().config({data:f.map(function(e,t){return e.name||"Element"+t}),legendConfig:a({},o.Legend.defaultConfig().legendConfig,{container:I,elements:q,reverseOrder:d.legend.reverseOrder})})();var B=I.node().getBBox();y=Math.min(d.width-B.width-d.margin.left-d.margin.right,d.height-d.margin.top-d.margin.bottom)/2,y=Math.max(10,y),M=[d.margin.left+y,d.margin.top+y],i.range([0,y]),u.layout.radialAxis.domain=i.domain(),I.attr("transform","translate("+[M[0]+y,M[1]-y]+")")}else I=t.select(".legend-group").style({display:"none"});t.attr({width:d.width,height:d.height}).style({opacity:d.opacity}),D.attr("transform","translate("+M+")").style({cursor:"crosshair"});var W=[(d.width-(d.margin.left+d.margin.right+2*y+(B?B.width:0)))/2,(d.height-(d.margin.top+d.margin.bottom+2*y))/2];if(W[0]=Math.max(0,W[0]),W[1]=Math.max(0,W[1]),t.select(".outer-group").attr("transform","translate("+W+")"),d.title){var H=t.select("g.title-group text").style(j).text(d.title),F=H.node().getBBox();H.attr({x:M[0]-F.width/2,y:M[1]-y-20})}var X=t.select(".radial.axis-group");if(d.radialAxis.gridLinesVisible){var U=X.selectAll("circle.grid-circle").data(i.ticks(5));U.enter().append("circle").attr({class:"grid-circle"}).style(R),U.attr("r",i),U.exit().remove()}X.select("circle.outside-circle").attr({r:y}).style(R);var V=t.select("circle.background-circle").attr({r:y}).style({fill:d.backgroundColor,stroke:d.stroke});if(d.radialAxis.visible){var G=r.svg.axis().scale(i).ticks(5).tickSize(5);X.call(G).attr({transform:"rotate("+d.radialAxis.orientation+")"}),X.selectAll(".domain").style(R),X.selectAll("g>text").text(function(e,t){return this.textContent+d.radialAxis.ticksSuffix}).style(j).style({"text-anchor":"start"}).attr({x:0,y:0,dx:0,dy:0,transform:function(e,t){return"horizontal"===d.radialAxis.tickOrientation?"rotate("+-d.radialAxis.orientation+") translate("+[0,j["font-size"]]+")":"translate("+[0,j["font-size"]]+")"}}),X.selectAll("g>line").style({stroke:"black"})}var Y=t.select(".angular.axis-group").selectAll("g.angular-tick").data(L),Q=Y.enter().append("g").classed("angular-tick",!0);Y.attr({transform:function(e,t){return"rotate("+c(e,t)+")"}}).style({display:d.angularAxis.visible?"block":"none"}),Y.exit().remove(),Q.append("line").classed("grid-line",!0).classed("major",function(e,t){return t%(d.minorTicks+1)==0}).classed("minor",function(e,t){return!(t%(d.minorTicks+1)==0)}).style(R),Q.selectAll(".minor").style({stroke:d.minorTickColor}),Y.select("line.grid-line").attr({x1:d.tickLength?y-d.tickLength:0,x2:y}).style({display:d.angularAxis.gridLinesVisible?"block":"none"}),Q.append("text").classed("axis-text",!0).style(j);var K=Y.select("text.axis-text").attr({x:y+d.labelOffset,dy:".35em",transform:function(e,t){var n=c(e,t),r=y+d.labelOffset,i=d.angularAxis.tickOrientation;return"horizontal"==i?"rotate("+-n+" "+r+" 0)":"radial"==i?n<270&&n>90?"rotate(180 "+r+" 0)":null:"rotate("+(n<=180&&n>0?-90:90)+" "+r+" 0)"}}).style({"text-anchor":"middle",display:d.angularAxis.labelsVisible?"block":"none"}).text(function(e,t){return t%(d.minorTicks+1)!=0?"":_?_[e]+d.angularAxis.ticksSuffix:e+d.angularAxis.ticksSuffix}).style(j);d.angularAxis.rewriteTicks&&K.text(function(e,t){return t%(d.minorTicks+1)!=0?"":d.angularAxis.rewriteTicks(this.textContent,t)});var Z=r.max(D.selectAll(".angular-tick text")[0].map(function(e,t){return e.getCTM().e+e.getBBox().width}));I.attr({transform:"translate("+[y+Z,d.margin.top]+")"});var J=t.select("g.geometry-group").selectAll("g").size()>0,ee=t.select("g.geometry-group").selectAll("g.geometry").data(f);if(ee.enter().append("g").attr({class:function(e,t){return"geometry geometry"+t}}),ee.exit().remove(),f[0]||J){var te=[];f.forEach(function(e,t){var n={};n.radialScale=i,n.angularScale=s,n.container=ee.filter(function(e,n){return n==t}),n.geometry=e.geometry,n.orientation=d.orientation,n.direction=d.direction,n.index=t,te.push({data:e,geometryConfig:n})});var ne=r.nest().key(function(e,t){return void 0!==e.data.groupId||"unstacked"}).entries(te),re=[];ne.forEach(function(e,t){"unstacked"===e.key?re=re.concat(e.values.map(function(e,t){return[e]})):re.push(e.values)}),re.forEach(function(e,t){var n;n=Array.isArray(e)?e[0].geometryConfig.geometry:e.geometryConfig.geometry;var r=e.map(function(e,t){return a(o[n].defaultConfig(),e)});o[n]().config(r)()})}var ie,ae,oe=t.select(".guides-group"),se=t.select(".tooltips-group"),ce=o.tooltipPanel().config({container:se,fontSize:8})(),le=o.tooltipPanel().config({container:se,fontSize:8})(),ue=o.tooltipPanel().config({container:se,hasTick:!0})();if(!A){var de=oe.select("line").attr({x1:0,y1:0,y2:0}).style({stroke:"grey","pointer-events":"none"});D.on("mousemove.angular-guide",function(e,t){var n=o.util.getMousePos(V).angle;de.attr({x2:-y,transform:"rotate("+n+")"}).style({opacity:.5});var r=(n+180+360-d.orientation)%360;ie=s.invert(r);var i=o.util.convertToCartesian(y+12,n+180);ce.text(o.util.round(ie)).move([i[0]+M[0],i[1]+M[1]])}).on("mouseout.angular-guide",function(e,t){oe.select("line").style({opacity:0})})}var pe=oe.select("circle").style({stroke:"grey",fill:"none"});D.on("mousemove.radial-guide",function(e,t){var n=o.util.getMousePos(V).radius;pe.attr({r:n}).style({opacity:.5}),ae=i.invert(o.util.getMousePos(V).radius);var r=o.util.convertToCartesian(n,d.radialAxis.orientation);le.text(o.util.round(ae)).move([r[0]+M[0],r[1]+M[1]])}).on("mouseout.radial-guide",function(e,t){pe.style({opacity:0}),ue.hide(),ce.hide(),le.hide()}),t.selectAll(".geometry-group .mark").on("mouseover.tooltip",function(e,n){var i=r.select(this),a=i.style("fill"),s="black",c=i.style("opacity")||1;if(i.attr({"data-opacity":c}),"none"!=a){i.attr({"data-fill":a}),s=r.hsl(a).darker().toString(),i.style({fill:s,opacity:1});var l={t:o.util.round(e[0]),r:o.util.round(e[1])};A&&(l.t=_[e[0]]);var u="t: "+l.t+", r: "+l.r,d=this.getBoundingClientRect(),p=t.node().getBoundingClientRect(),f=[d.left+d.width/2-W[0]-p.left,d.top+d.height/2-W[1]-p.top];ue.config({color:s}).text(u),ue.move(f)}else a=i.style("stroke"),i.attr({"data-stroke":a}),s=r.hsl(a).darker().toString(),i.style({stroke:s,opacity:1})}).on("mousemove.tooltip",function(e,t){if(0!=r.event.which)return!1;r.select(this).attr("data-fill")&&ue.show()}).on("mouseout.tooltip",function(e,t){ue.hide();var n=r.select(this),i=n.attr("data-fill");i?n.style({fill:i,opacity:n.attr("data-opacity")}):n.style({stroke:n.attr("data-stroke"),opacity:n.attr("data-opacity")})})}),p}var t,n,i,s,c={data:[],layout:{}},l={},u={},d=r.dispatch("hover"),p={};return p.render=function(t){return e(t),this},p.config=function(e){if(!arguments.length)return c;var t=o.util.cloneJson(e);return t.data.forEach(function(e,t){c.data[t]||(c.data[t]={}),a(c.data[t],o.Axis.defaultConfig().data[0]),a(c.data[t],e)}),a(c.layout,o.Axis.defaultConfig().layout),a(c.layout,t.layout),this},p.getLiveConfig=function(){return u},p.getinputConfig=function(){return l},p.radialScale=function(e){return i},p.angularScale=function(e){return s},p.svg=function(){return t},r.rebind(p,d,"on"),p},o.Axis.defaultConfig=function(e,t){return{data:[{t:[1,2,3,4],r:[10,11,12,13],name:"Line1",geometry:"LinePlot",color:null,strokeDash:"solid",strokeColor:null,strokeSize:"1",visibleInLegend:!0,opacity:1}],layout:{defaultColorRange:r.scale.category10().range(),title:null,height:450,width:500,margin:{top:40,right:40,bottom:40,left:40},font:{size:12,color:"gray",outlineColor:"white",family:"Tahoma, sans-serif"},direction:"clockwise",orientation:0,labelOffset:10,radialAxis:{domain:null,orientation:-45,ticksSuffix:"",visible:!0,gridLinesVisible:!0,tickOrientation:"horizontal",rewriteTicks:null},angularAxis:{domain:[0,360],ticksSuffix:"",visible:!0,gridLinesVisible:!0,labelsVisible:!0,tickOrientation:"horizontal",rewriteTicks:null,ticksCount:null,ticksStep:null},minorTicks:0,tickLength:null,tickColor:"silver",minorTickColor:"#eee",backgroundColor:"none",needsEndSpacing:null,showLegend:!0,legend:{reverseOrder:!1},opacity:1}}},o.util={},o.DATAEXTENT="dataExtent",o.AREA="AreaChart",o.LINE="LinePlot",o.DOT="DotPlot",o.BAR="BarChart",o.util._override=function(e,t){for(var n in e)n in t&&(t[n]=e[n])},o.util._extend=function(e,t){for(var n in e)t[n]=e[n]},o.util._rndSnd=function(){return 2*Math.random()-1+(2*Math.random()-1)+(2*Math.random()-1)},o.util.dataFromEquation2=function(e,t){var n=t||6;return r.range(0,360+n,n).map(function(t,n){var r=t*Math.PI/180;return[t,e(r)]})},o.util.dataFromEquation=function(e,t,n){var i=t||6,a=[],o=[];r.range(0,360+i,i).forEach(function(t,n){var r=t*Math.PI/180,i=e(r);a.push(t),o.push(i)});var s={t:a,r:o};return n&&(s.name=n),s},o.util.ensureArray=function(e,t){if(void 0===e)return null;var n=[].concat(e);return r.range(t).map(function(e,t){return n[t]||n[0]})},o.util.fillArrays=function(e,t,n){return t.forEach(function(t,r){e[t]=o.util.ensureArray(e[t],n)}),e},o.util.cloneJson=function(e){return JSON.parse(JSON.stringify(e))},o.util.validateKeys=function(e,t){"string"==typeof t&&(t=t.split("."));var n=t.shift();return e[n]&&(!t.length||objHasKeys(e[n],t))},o.util.sumArrays=function(e,t){return r.zip(e,t).map(function(e,t){return r.sum(e)})},o.util.arrayLast=function(e){return e[e.length-1]},o.util.arrayEqual=function(e,t){for(var n=Math.max(e.length,t.length,1);n-- >=0&&e[n]===t[n];);return-2===n},o.util.flattenArray=function(e){for(var t=[];!o.util.arrayEqual(t,e);)t=e,e=[].concat.apply([],e);return e},o.util.deduplicate=function(e){return e.filter(function(e,t,n){return n.indexOf(e)==t})},o.util.convertToCartesian=function(e,t){var n=t*Math.PI/180;return[e*Math.cos(n),e*Math.sin(n)]},o.util.round=function(e,t){var n=t||2,r=Math.pow(10,n);return Math.round(e*r)/r},o.util.getMousePos=function(e){var t=r.mouse(e.node()),n=t[0],i=t[1],a={};return a.x=n,a.y=i,a.pos=t,a.angle=180*(Math.atan2(i,n)+Math.PI)/Math.PI,a.radius=Math.sqrt(n*n+i*i),a},o.util.duplicatesCount=function(e){for(var t,n={},r={},i=0,a=e.length;i<a;i++)t=e[i],t in n?(n[t]++,r[t]=n[t]):n[t]=1;return r},o.util.duplicates=function(e){return Object.keys(o.util.duplicatesCount(e))},o.util.translator=function(e,t,n,r){if(r){var i=n.slice();n=t,t=i}var a=t.reduce(function(e,t){if(void 0!==e)return e[t]},e);void 0!==a&&(t.reduce(function(e,n,r){if(void 0!==e)return r===t.length-1&&delete e[n],e[n]},e),n.reduce(function(e,t,r){return void 0===e[t]&&(e[t]={}),r===n.length-1&&(e[t]=a),e[t]},e))},o.PolyChart=function(){function e(){var e=t[0].geometryConfig,n=e.container;"string"==typeof n&&(n=r.select(n)),n.datum(t).each(function(t,n){function a(t,n){return{r:e.radialScale(t[1]),t:(e.angularScale(t[0])+e.orientation)*Math.PI/180}}function o(e){return{x:e.r*Math.cos(e.t),y:e.r*Math.sin(e.t)}}var s=!!t[0].data.yStack,c=t.map(function(e,t){return s?r.zip(e.data.t[0],e.data.r[0],e.data.yStack[0]):r.zip(e.data.t[0],e.data.r[0])}),l=e.angularScale,u=e.radialScale.domain()[0],d={};d.bar=function(n,i,a){var o=t[a].data,s=e.radialScale(n[1])-e.radialScale(0),c=e.radialScale(n[2]||0),u=o.barWidth;r.select(this).attr({class:"mark bar",d:"M"+[[s+c,-u/2],[s+c,u/2],[c,u/2],[c,-u/2]].join("L")+"Z",transform:function(t,n){return"rotate("+(e.orientation+l(t[0]))+")"}})},d.dot=function(e,n,i){var s=e[2]?[e[0],e[1]+e[2]]:e,c=r.svg.symbol().size(t[i].data.dotSize).type(t[i].data.dotType)(e,n);r.select(this).attr({class:"mark dot",d:c,transform:function(e,t){var n=o(a(s));return"translate("+[n.x,n.y]+")"}})};var p=r.svg.line.radial().interpolate(t[0].data.lineInterpolation).radius(function(t){return e.radialScale(t[1])}).angle(function(t){return e.angularScale(t[0])*Math.PI/180});d.line=function(n,i,a){var o=n[2]?c[a].map(function(e,t){return[e[0],e[1]+e[2]]}):c[a];if(r.select(this).each(d.dot).style({opacity:function(e,n){return+t[a].data.dotVisible},fill:g.stroke(n,i,a)}).attr({class:"mark dot"}),!(i>0)){var s=r.select(this.parentNode).selectAll("path.line").data([0]);s.enter().insert("path"),s.attr({class:"line",d:p(o),transform:function(t,n){return"rotate("+(e.orientation+90)+")"},"pointer-events":"none"}).style({fill:function(e,t){return g.fill(n,i,a)},"fill-opacity":0,stroke:function(e,t){return g.stroke(n,i,a)},"stroke-width":function(e,t){return g["stroke-width"](n,i,a)},"stroke-dasharray":function(e,t){return g["stroke-dasharray"](n,i,a)},opacity:function(e,t){return g.opacity(n,i,a)},display:function(e,t){return g.display(n,i,a)}})}};var f=e.angularScale.range(),h=Math.abs(f[1]-f[0])/c[0].length*Math.PI/180,m=r.svg.arc().startAngle(function(e){return-h/2}).endAngle(function(e){return h/2}).innerRadius(function(t){return e.radialScale(u+(t[2]||0))}).outerRadius(function(t){return e.radialScale(u+(t[2]||0))+e.radialScale(t[1])});d.arc=function(t,n,i){r.select(this).attr({class:"mark arc",d:m,transform:function(t,n){return"rotate("+(e.orientation+l(t[0])+90)+")"}})};var g={fill:function(e,n,r){return t[r].data.color},stroke:function(e,n,r){return t[r].data.strokeColor},"stroke-width":function(e,n,r){return t[r].data.strokeSize+"px"},"stroke-dasharray":function(e,n,r){return i[t[r].data.strokeDash]},opacity:function(e,n,r){return t[r].data.opacity},display:function(e,n,r){return void 0===t[r].data.visible||t[r].data.visible?"block":"none"}},v=r.select(this).selectAll("g.layer").data(c);v.enter().append("g").attr({class:"layer"});var b=v.selectAll("path.mark").data(function(e,t){return e});b.enter().append("path").attr({class:"mark"}),b.style(g).each(d[e.geometryType]),b.exit().remove(),v.exit().remove()})}var t=[o.PolyChart.defaultConfig()],n=r.dispatch("hover"),i={solid:"none",dash:[5,2],dot:[2,5]};return e.config=function(e){return arguments.length?(e.forEach(function(e,n){t[n]||(t[n]={}),a(t[n],o.PolyChart.defaultConfig()),a(t[n],e)}),this):t},e.getColorScale=function(){},r.rebind(e,n,"on"),e},o.PolyChart.defaultConfig=function(){return{data:{name:"geom1",t:[[1,2,3,4]],r:[[1,2,3,4]],dotType:"circle",dotSize:64,dotVisible:!1,barWidth:20,color:"#ffa500",strokeSize:1,strokeColor:"silver",strokeDash:"solid",opacity:1,index:0,visible:!0,visibleInLegend:!0},geometryConfig:{geometry:"LinePlot",geometryType:"arc",direction:"clockwise",orientation:0,container:"body",radialScale:null,angularScale:null,colorScale:r.scale.category20()}}},o.BarChart=function(){return o.PolyChart()},o.BarChart.defaultConfig=function(){return{geometryConfig:{geometryType:"bar"}}},o.AreaChart=function(){return o.PolyChart()},o.AreaChart.defaultConfig=function(){return{geometryConfig:{geometryType:"arc"}}},o.DotPlot=function(){return o.PolyChart()},o.DotPlot.defaultConfig=function(){return{geometryConfig:{geometryType:"dot",dotType:"circle"}}},o.LinePlot=function(){return o.PolyChart()},o.LinePlot.defaultConfig=function(){return{geometryConfig:{geometryType:"line"}}},o.Legend=function(){function e(){var n=t.legendConfig,i=t.data.map(function(e,t){return[].concat(e).map(function(e,r){var i=a({},n.elements[t]);return i.name=e,i.color=[].concat(n.elements[t].color)[r],i})}),o=r.merge(i);o=o.filter(function(e,t){return n.elements[t]&&(n.elements[t].visibleInLegend||void 0===n.elements[t].visibleInLegend)}),n.reverseOrder&&(o=o.reverse());var s=n.container;("string"==typeof s||s.nodeName)&&(s=r.select(s));var c=o.map(function(e,t){return e.color}),l=n.fontSize,u=null==n.isContinuous?"number"==typeof o[0]:n.isContinuous,d=u?n.height:l*o.length,p=s.classed("legend-group",!0),f=p.selectAll("svg").data([0]),h=f.enter().append("svg").attr({width:300,height:d+l,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1"});h.append("g").classed("legend-axis",!0),h.append("g").classed("legend-marks",!0);var m=r.range(o.length),g=r.scale[u?"linear":"ordinal"]().domain(m).range(c),v=r.scale[u?"linear":"ordinal"]().domain(m)[u?"range":"rangePoints"]([0,d]),b=function(e,t){var n=3*t;return"line"===e?"M"+[[-t/2,-t/12],[t/2,-t/12],[t/2,t/12],[-t/2,t/12]]+"Z":-1!=r.svg.symbolTypes.indexOf(e)?r.svg.symbol().type(e).size(n)():r.svg.symbol().type("square").size(n)()};if(u){var y=f.select(".legend-marks").append("defs").append("linearGradient").attr({id:"grad1",x1:"0%",y1:"0%",x2:"0%",y2:"100%"}).selectAll("stop").data(c);y.enter().append("stop"),y.attr({offset:function(e,t){return t/(c.length-1)*100+"%"}}).style({"stop-color":function(e,t){return e}}),f.append("rect").classed("legend-mark",!0).attr({height:n.height,width:n.colorBandWidth,fill:"url(#grad1)"})}else{var x=f.select(".legend-marks").selectAll("path.legend-mark").data(o);x.enter().append("path").classed("legend-mark",!0),x.attr({transform:function(e,t){return"translate("+[l/2,v(t)+l/2]+")"},d:function(e,t){var n=e.symbol;return b(n,l)},fill:function(e,t){return g(t)}}),x.exit().remove()}var M=r.svg.axis().scale(v).orient("right"),_=f.select("g.legend-axis").attr({transform:"translate("+[u?n.colorBandWidth:l,l/2]+")"}).call(M);return _.selectAll(".domain").style({fill:"none",stroke:"none"}),_.selectAll("line").style({fill:"none",stroke:u?n.textColor:"none"}),_.selectAll("text").style({fill:n.textColor,"font-size":n.fontSize}).text(function(e,t){return o[t].name}),e}var t=o.Legend.defaultConfig(),n=r.dispatch("hover");return e.config=function(e){return arguments.length?(a(t,e),this):t},r.rebind(e,n,"on"),e},o.Legend.defaultConfig=function(e,t){return{data:["a","b","c"],legendConfig:{elements:[{symbol:"line",color:"red"},{symbol:"square",color:"yellow"},{symbol:"diamond",color:"limegreen"}],height:150,colorBandWidth:30,fontSize:12,container:"body",isContinuous:null,textColor:"grey",reverseOrder:!1}}},o.tooltipPanel=function(){var e,t,n,i={container:null,hasTick:!1,fontSize:12,color:"white",padding:5},s="tooltip-"+o.tooltipPanel.uid++,c=function r(){e=i.container.selectAll("g."+s).data([0]);var a=e.enter().append("g").classed(s,!0).style({"pointer-events":"none",display:"none"});return n=a.append("path").style({fill:"white","fill-opacity":.9}).attr({d:"M0 0"}),t=a.append("text").attr({dx:i.padding+10,dy:.3*+i.fontSize}),r};return c.text=function(a){var o=r.hsl(i.color).l,s=o>=.5?"#aaa":"white",l=o>=.5?"black":"white",u=a||"";t.style({fill:l,"font-size":i.fontSize+"px"}).text(u);var d=i.padding,p=t.node().getBBox(),f={fill:i.color,stroke:s,"stroke-width":"2px"},h=p.width+2*d+10,m=p.height+2*d;return n.attr({d:"M"+[[10,-m/2],[10,-m/4],[i.hasTick?0:10,0],[10,m/4],[10,m/2],[h,m/2],[h,-m/2]].join("L")+"Z"}).style(f),e.attr({transform:"translate("+[10,-m/2+2*d]+")"}),e.style({display:"block"}),c},c.move=function(t){if(e)return e.attr({transform:"translate("+[t[0],t[1]]+")"}).style({display:"block"}),c},c.hide=function(){if(e)return e.style({display:"none"}),c},c.show=function(){if(e)return e.style({display:"block"}),c},c.config=function(e){return a(i,e),c},c},o.tooltipPanel.uid=1,o.adapter={},o.adapter.plotly=function(){var e={};return e.convert=function(e,t){var n={};if(e.data&&(n.data=e.data.map(function(e,n){var r=a({},e);return[[r,["marker","color"],["color"]],[r,["marker","opacity"],["opacity"]],[r,["marker","line","color"],["strokeColor"]],[r,["marker","line","dash"],["strokeDash"]],[r,["marker","line","width"],["strokeSize"]],[r,["marker","symbol"],["dotType"]],[r,["marker","size"],["dotSize"]],[r,["marker","barWidth"],["barWidth"]],[r,["line","interpolation"],["lineInterpolation"]],[r,["showlegend"],["visibleInLegend"]]].forEach(function(e,n){o.util.translator.apply(null,e.concat(t))}),t||delete r.marker,t&&delete r.groupId,t?("LinePlot"===r.geometry?(r.type="scatter",!0===r.dotVisible?(delete r.dotVisible,r.mode="lines+markers"):r.mode="lines"):"DotPlot"===r.geometry?(r.type="scatter",r.mode="markers"):"AreaChart"===r.geometry?r.type="area":"BarChart"===r.geometry&&(r.type="bar"),delete r.geometry):("scatter"===r.type?"lines"===r.mode?r.geometry="LinePlot":"markers"===r.mode?r.geometry="DotPlot":"lines+markers"===r.mode&&(r.geometry="LinePlot",r.dotVisible=!0):"area"===r.type?r.geometry="AreaChart":"bar"===r.type&&(r.geometry="BarChart"),delete r.mode,delete r.type),r}),!t&&e.layout&&"stack"===e.layout.barmode)){var i=o.util.duplicates(n.data.map(function(e,t){return e.geometry}));n.data.forEach(function(e,t){var r=i.indexOf(e.geometry);-1!=r&&(n.data[t].groupId=r)})}if(e.layout){var s=a({},e.layout);if([[s,["plot_bgcolor"],["backgroundColor"]],[s,["showlegend"],["showLegend"]],[s,["radialaxis"],["radialAxis"]],[s,["angularaxis"],["angularAxis"]],[s.angularaxis,["showline"],["gridLinesVisible"]],[s.angularaxis,["showticklabels"],["labelsVisible"]],[s.angularaxis,["nticks"],["ticksCount"]],[s.angularaxis,["tickorientation"],["tickOrientation"]],[s.angularaxis,["ticksuffix"],["ticksSuffix"]],[s.angularaxis,["range"],["domain"]],[s.angularaxis,["endpadding"],["endPadding"]],[s.radialaxis,["showline"],["gridLinesVisible"]],[s.radialaxis,["tickorientation"],["tickOrientation"]],[s.radialaxis,["ticksuffix"],["ticksSuffix"]],[s.radialaxis,["range"],["domain"]],[s.angularAxis,["showline"],["gridLinesVisible"]],[s.angularAxis,["showticklabels"],["labelsVisible"]],[s.angularAxis,["nticks"],["ticksCount"]],[s.angularAxis,["tickorientation"],["tickOrientation"]],[s.angularAxis,["ticksuffix"],["ticksSuffix"]],[s.angularAxis,["range"],["domain"]],[s.angularAxis,["endpadding"],["endPadding"]],[s.radialAxis,["showline"],["gridLinesVisible"]],[s.radialAxis,["tickorientation"],["tickOrientation"]],[s.radialAxis,["ticksuffix"],["ticksSuffix"]],[s.radialAxis,["range"],["domain"]],[s.font,["outlinecolor"],["outlineColor"]],[s.legend,["traceorder"],["reverseOrder"]],[s,["labeloffset"],["labelOffset"]],[s,["defaultcolorrange"],["defaultColorRange"]]].forEach(function(e,n){o.util.translator.apply(null,e.concat(t))}),t?(void 0!==s.tickLength&&(s.angularaxis.ticklen=s.tickLength,delete s.tickLength),s.tickColor&&(s.angularaxis.tickcolor=s.tickColor,delete s.tickColor)):(s.angularAxis&&void 0!==s.angularAxis.ticklen&&(s.tickLength=s.angularAxis.ticklen),s.angularAxis&&void 0!==s.angularAxis.tickcolor&&(s.tickColor=s.angularAxis.tickcolor)),s.legend&&"boolean"!=typeof s.legend.reverseOrder&&(s.legend.reverseOrder="normal"!=s.legend.reverseOrder),s.legend&&"boolean"==typeof s.legend.traceorder&&(s.legend.traceorder=s.legend.traceorder?"reversed":"normal",delete s.legend.reverseOrder),s.margin&&void 0!==s.margin.t){var c=["t","r","b","l","pad"],l=["top","right","bottom","left","pad"],u={};r.entries(s.margin).forEach(function(e,t){u[l[c.indexOf(e.key)]]=e.value}),s.margin=u}t&&(delete s.needsEndSpacing,delete s.minorTickColor,delete s.minorTicks,delete s.angularaxis.ticksCount,delete s.angularaxis.ticksCount,delete s.angularaxis.ticksStep,delete s.angularaxis.rewriteTicks,delete s.angularaxis.nticks,delete s.radialaxis.ticksCount,delete s.radialaxis.ticksCount,delete s.radialaxis.ticksStep,delete s.radialaxis.rewriteTicks,delete s.radialaxis.nticks),n.layout=s}return n},e}},{"../../lib":697,d3:265}],765:[function(e,t,n){"use strict";var r=e("d3"),i=e("../../lib"),a=e("../../components/color"),o=e("./micropolar"),s=e("./undo_manager"),c=i.extendDeepAll,l=t.exports={};l.framework=function(e){function t(t,i){return i&&(d=i),r.select(r.select(d).node().parentNode).selectAll(".svg-container>*:not(.chart-root)").remove(),n=n?c(n,t):t,a||(a=o.Axis()),u=o.adapter.plotly().convert(n),a.config(u).render(d),e.data=n.data,e.layout=n.layout,l.fillLayout(e),n}var n,i,a,u,d,p=new s;return t.isPolar=!0,t.svg=function(){return a.svg()},t.getConfig=function(){return n},t.getLiveConfig=function(){return o.adapter.plotly().convert(a.getLiveConfig(),!0)},t.getLiveScales=function(){return{t:a.angularScale(),r:a.radialScale()}},t.setUndoPoint=function(){var e=this,t=o.util.cloneJson(n);!function(t,n){p.add({undo:function(){n&&e(n)},redo:function(){e(t)}})}(t,i),i=o.util.cloneJson(t)},t.undo=function(){p.undo()},t.redo=function(){p.redo()},t},l.fillLayout=function(e){var t=r.select(e).selectAll(".plot-container"),n=t.selectAll(".svg-container"),i=e.framework&&e.framework.svg&&e.framework.svg(),o={width:800,height:600,paper_bgcolor:a.background,_container:t,_paperdiv:n,_paper:i};e._fullLayout=c(o,e.layout)}},{"../../components/color":586,"../../lib":697,"./micropolar":764,"./undo_manager":766,d3:265}],766:[function(e,t,n){"use strict";t.exports=function(){function e(e,t){return e?(i=!0,e[t](),i=!1,this):this}var t,n=[],r=-1,i=!1;return{add:function(e){return i?this:(n.splice(r+1,n.length-r),n.push(e),r=n.length-1,this)},setCallback:function(e){t=e},undo:function(){var i=n[r];return i?(e(i,"undo"),r-=1,t&&t(i.undo),this):this},redo:function(){var i=n[r+1];return i?(e(i,"redo"),r+=1,t&&t(i.redo),this):this},clear:function(){n=[],r=-1},hasUndo:function(){return-1!==r},hasRedo:function(){return r<n.length-1},getCommands:function(){return n},getPreviousCommand:function(){return n[r-1]},getIndex:function(){return r}}}},{}],767:[function(e,t,n){"use strict";function r(e){if(e.layoutAttributes){var t=e.layoutAttributes._arrayAttrRegexps;if(t)for(var r=0;r<t.length;r++)s(n.layoutArrayRegexes,t[r])}}function i(e){return"object"===(void 0===e?"undefined":_typeof2(e))&&(e=e.type),e}var a=e("./lib/loggers"),o=e("./lib/noop"),s=e("./lib/push_unique"),c=e("./plots/attributes");n.modules={},n.allCategories={},n.allTypes=[],n.subplotsRegistry={},n.transformsRegistry={},n.componentsRegistry={},n.layoutArrayContainers=[],n.layoutArrayRegexes=[],n.register=function(e,t,r,i){if(n.modules[t])return void a.log("Type "+t+" already registered");for(var o={},s=0;s<r.length;s++)o[r[s]]=!0,n.allCategories[r[s]]=!0;n.modules[t]={_module:e,categories:o},i&&Object.keys(i).length&&(n.modules[t].meta=i),n.allTypes.push(t)},n.registerSubplot=function(e){var t=e.name;if(n.subplotsRegistry[t])return void a.log("Plot type "+t+" already registered.");r(e),n.subplotsRegistry[t]=e},n.registerComponent=function(e){var t=e.name;n.componentsRegistry[t]=e,e.layoutAttributes&&(e.layoutAttributes._isLinkedToArray&&s(n.layoutArrayContainers,t),r(e))},n.getModule=function(e){if(void 0!==e.r)return a.warn("Tried to put a polar trace on an incompatible graph of cartesian data. Ignoring this dataset.",e),!1;var t=n.modules[i(e)];return!!t&&t._module},n.traceIs=function(e,t){if("various"===(e=i(e)))return!1
74;var r=n.modules[e];return r||(e&&"area"!==e&&a.log("Unrecognized trace type "+e+"."),r=n.modules[c.type.dflt]),!!r.categories[t]},n.getComponentMethod=function(e,t){var r=n.componentsRegistry[e];return r?r[t]||o:o}},{"./lib/loggers":700,"./lib/noop":704,"./lib/push_unique":708,"./plots/attributes":730}],768:[function(e,t,n){"use strict";function r(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:"",showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:"",hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function i(e){return["xaxis","yaxis","zaxis"].indexOf(e.slice(0,5))>-1}var a=e("../lib"),o=e("../plots/plots"),s=a.extendFlat,c=a.extendDeep;t.exports=function(e,t){e.framework&&e.framework.isPolar&&(e=e.framework.getConfig());var n,a=e.data,l=e.layout,u=c([],a),d=c({},l,r(t.tileClass)),p=e._context||{};if(t.width&&(d.width=t.width),t.height&&(d.height=t.height),"thumbnail"===t.tileClass||"themes__thumb"===t.tileClass){d.annotations=[];var f=Object.keys(d);for(n=0;n<f.length;n++)i(f[n])&&(d[f[n]].title="");for(n=0;n<u.length;n++){var h=u[n];h.showscale=!1,h.marker&&(h.marker.showscale=!1),"pie"===h.type&&(h.textposition="none")}}if(Array.isArray(t.annotations))for(n=0;n<t.annotations.length;n++)d.annotations.push(t.annotations[n]);var m=o.getSubplotIds(d,"gl3d");if(m.length){var g={};for("thumbnail"===t.tileClass&&(g={title:"",showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),n=0;n<m.length;n++){var v=d[m[n]];v.xaxis||(v.xaxis={}),v.yaxis||(v.yaxis={}),v.zaxis||(v.zaxis={}),s(v.xaxis,g),s(v.yaxis,g),s(v.zaxis,g),v._scene=null}}var b=document.createElement("div");t.tileClass&&(b.className=t.tileClass);var y={gd:b,td:b,layout:d,data:u,config:{staticPlot:void 0===t.staticPlot||t.staticPlot,plotGlPixelRatio:void 0===t.plotGlPixelRatio?2:t.plotGlPixelRatio,displaylogo:t.displaylogo||!1,showLink:t.showLink||!1,showTips:t.showTips||!1,mapboxAccessToken:p.mapboxAccessToken}};return"transparent"!==t.setBackground&&(y.config.setBackground=t.setBackground||"opaque"),y.gd.defaultLayout=r(t.tileClass),y}},{"../lib":697,"../plots/plots":760}],769:[function(e,t,n){"use strict";function r(e,t){return t=t||{},t.format=t.format||"png",new Promise(function(n,r){e._snapshotInProgress&&r(new Error("Snapshotting already in progress.")),a.isIE()&&"svg"!==t.format&&r(new Error("Sorry IE does not support downloading from canvas. Try {format:'svg'} instead.")),e._snapshotInProgress=!0;var s=i(e,t),c=t.filename||e.fn||"newplot";c+="."+t.format,s.then(function(t){return e._snapshotInProgress=!1,o(t,c)}).then(function(e){n(e)}).catch(function(t){e._snapshotInProgress=!1,r(t)})})}var i=e("../plot_api/to_image"),a=e("../lib"),o=e("./filesaver");t.exports=r},{"../lib":697,"../plot_api/to_image":725,"./filesaver":770}],770:[function(e,t,n){"use strict";var r=function(e,t){var n=document.createElement("a"),r="download"in n,i=/Version\/[\d\.]+.*Safari/.test(navigator.userAgent);return new Promise(function(a,o){"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent)&&o(new Error("IE < 10 unsupported")),i&&(document.location.href="data:application/octet-stream"+e.slice(e.search(/[,;]/)),a(t)),t||(t="download"),r&&(n.href=e,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),a(t)),"undefined"!=typeof navigator&&navigator.msSaveBlob&&(navigator.msSaveBlob(new Blob([e]),t),a(t)),o(new Error("download error"))})};t.exports=r},{}],771:[function(e,t,n){"use strict";n.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("gl2d"))?500:0},n.getRedrawFunc=function(e){if(!(e.data&&e.data[0]&&e.data[0].r))return function(){(e.calcdata||[]).forEach(function(e){e[0]&&e[0].t&&e[0].t.cb&&e[0].t.cb()})}}},{}],772:[function(e,t,n){"use strict";var r=e("./helpers"),i={getDelay:r.getDelay,getRedrawFunc:r.getRedrawFunc,clone:e("./cloneplot"),toSVG:e("./tosvg"),svgToImg:e("./svgtoimg"),toImage:e("./toimage"),downloadImage:e("./download")};t.exports=i},{"./cloneplot":768,"./download":769,"./helpers":771,"./svgtoimg":773,"./toimage":774,"./tosvg":775}],773:[function(e,t,n){"use strict";function r(e){var t=e.emitter||new a,n=new Promise(function(r,a){var o=window.Image,s=e.svg,c=e.format||"png";if(i.isIE()&&(s=s.replace(/"/gi,"'"),s=s.replace(/(\('#)(.*)('\))/gi,'("$2")'),s=s.replace(/(\\')/gi,'"'),"svg"!==c)){var l=new Error("Sorry IE does not support downloading from canvas. Try {format:'svg'} instead.");return a(l),e.promise?n:t.emit("error",l)}var u=e.canvas,d=u.getContext("2d"),p=new o,f="data:image/svg+xml,"+encodeURIComponent(s);u.height=e.height||150,u.width=e.width||300,p.onload=function(){var n;switch("svg"!==c&&d.drawImage(p,0,0),c){case"jpeg":n=u.toDataURL("image/jpeg");break;case"png":n=u.toDataURL("image/png");break;case"webp":n=u.toDataURL("image/webp");break;case"svg":n=f;break;default:if(a(new Error("Image format is not jpeg, png or svg")),!e.promise)return t.emit("error","Image format is not jpeg, png or svg")}r(n),e.promise||t.emit("success",n)},p.onerror=function(n){if(a(n),!e.promise)return t.emit("error",n)},p.src=f});return e.promise?n:t}var i=e("../lib"),a=e("events").EventEmitter;t.exports=r},{"../lib":697,events:266}],774:[function(e,t,n){"use strict";function r(e,t){function n(){var e=s.getDelay(p._fullLayout);setTimeout(function(){var e=l(p),n=document.createElement("canvas");n.id=o.randstr(),r=u({format:t.format,width:p._fullLayout.width,height:p._fullLayout.height,canvas:n,emitter:r,svg:e}),r.clean=function(){p&&document.body.removeChild(p)}},e)}var r=new i,d=c(e,{format:"png"}),p=d.gd;p.style.position="absolute",p.style.left="-5000px",document.body.appendChild(p);var f=s.getRedrawFunc(p);return a.plot(p,d.data,d.layout,d.config).then(f).then(n).catch(function(e){r.emit("error",e)}),r}var i=e("events").EventEmitter,a=e("../plotly"),o=e("../lib"),s=e("./helpers"),c=e("./cloneplot"),l=e("./tosvg"),u=e("./svgtoimg");t.exports=r},{"../lib":697,"../plotly":727,"./cloneplot":768,"./helpers":771,"./svgtoimg":773,"./tosvg":775,events:266}],775:[function(e,t,n){"use strict";var r=e("d3"),i=e("../lib/svg_text_utils"),a=e("../components/drawing"),o=e("../components/color"),s=e("../constants/xmlns_namespaces");t.exports=function(e,t){var n,c=e._fullLayout,l=c._paper,u=c._toppaper;l.insert("rect",":first-child").call(a.setRect,0,0,c.width,c.height).call(o.fill,c.paper_bgcolor);var d=c._basePlotModules||[];for(n=0;n<d.length;n++){var p=d[n];p.toSVG&&p.toSVG(e)}if(u){var f=u.node().childNodes,h=Array.prototype.slice.call(f);for(n=0;n<h.length;n++){var m=h[n];m.childNodes.length&&l.node().appendChild(m)}}c._draggers&&c._draggers.remove(),l.node().style.background="",l.selectAll("text").attr("data-unformatted",null).each(function(){var e=r.select(this);if("hidden"===e.style("visibility"))return void e.remove();e.style("visibility","visible");var t=e.style("font-family");t&&-1!==t.indexOf('"')&&e.style("font-family",t.replace(/"/g,"TOBESTRIPPED"))}),"pdf"!==t&&"eps"!==t||l.selectAll("#MathJax_SVG_glyphs path").attr("stroke-width",0),l.node().setAttributeNS(s.xmlns,"xmlns",s.svg),l.node().setAttributeNS(s.xmlns,"xmlns:xlink",s.xlink);var g=(new window.XMLSerializer).serializeToString(l.node());return g=i.html_entity_decode(g),g=i.xml_entity_encode(g),g=g.replace(/("TOBESTRIPPED)|(TOBESTRIPPED")/g,"'")}},{"../components/color":586,"../components/drawing":610,"../constants/xmlns_namespaces":685,"../lib/svg_text_utils":714,d3:265}],776:[function(e,t,n){"use strict";var r=e("../../lib").mergeArray;t.exports=function(e,t){r(t.text,e,"tx"),r(t.hovertext,e,"htx");var n=t.marker;if(n){r(n.opacity,e,"mo"),r(n.color,e,"mc");var i=n.line;i&&(r(i.color,e,"mlc"),r(i.width,e,"mlw"))}}},{"../../lib":697}],777:[function(e,t,n){"use strict";var r=e("../scatter/attributes"),i=e("../../components/colorscale/color_attributes"),a=e("../../components/errorbars/attributes"),o=e("../../components/colorbar/attributes"),s=e("../../plots/font_attributes"),c=e("../../lib/extend").extendFlat,l=e("../../lib/extend").extendDeep,u=l({},s);u.family.arrayOk=!0,u.size.arrayOk=!0,u.color.arrayOk=!0;var d=r.marker,p=d.line,f=c({},p.width,{dflt:0}),h=c({},{width:f},i("marker.line")),m=c({},{line:h},i("marker"),{showscale:d.showscale,colorbar:o});t.exports={x:r.x,x0:r.x0,dx:r.dx,y:r.y,y0:r.y0,dy:r.dy,text:r.text,hovertext:r.hovertext,textposition:{valType:"enumerated",role:"info",values:["inside","outside","auto","none"],dflt:"none",arrayOk:!0,description:["Specifies the location of the `text`.","*inside* positions `text` inside, next to the bar end","(rotated and scaled if needed).","*outside* positions `text` outside, next to the bar end","(scaled if needed).","*auto* positions `text` inside or outside","so that `text` size is maximized."].join(" ")},textfont:c({},u,{description:"Sets the font used for `text`."}),insidetextfont:c({},u,{description:"Sets the font used for `text` lying inside the bar."}),outsidetextfont:c({},u,{description:"Sets the font used for `text` lying outside the bar."}),orientation:{valType:"enumerated",role:"info",values:["v","h"],description:["Sets the orientation of the bars.","With *v* (*h*), the value of the each bar spans","along the vertical (horizontal)."].join(" ")},base:{valType:"any",dflt:null,arrayOk:!0,role:"info",description:["Sets where the bar base is drawn (in position axis units).","In *stack* or *relative* barmode,","traces that set *base* will be excluded","and drawn in *overlay* mode instead."].join(" ")},offset:{valType:"number",dflt:null,arrayOk:!0,role:"info",description:["Shifts the position where the bar is drawn","(in position axis units).","In *group* barmode,","traces that set *offset* will be excluded","and drawn in *overlay* mode instead."].join(" ")},width:{valType:"number",dflt:null,min:0,arrayOk:!0,role:"info",description:["Sets the bar width (in position axis units)."].join(" ")},marker:m,r:r.r,t:r.t,error_y:a,error_x:a,_deprecated:{bardir:{valType:"enumerated",role:"info",values:["v","h"],description:"Renamed to `orientation`."}}}},{"../../components/colorbar/attributes":587,"../../components/colorscale/color_attributes":593,"../../components/errorbars/attributes":612,"../../lib/extend":693,"../../plots/font_attributes":756,"../scatter/attributes":801}],778:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),i=e("../../plots/cartesian/axes"),a=e("../../components/colorscale/has_colorscale"),o=e("../../components/colorscale/calc"),s=e("./arrays_to_calcdata");t.exports=function(e,t){var n,c,l,u,d,p=i.getFromId(e,t.xaxis||"x"),f=i.getFromId(e,t.yaxis||"y"),h=t.orientation||(t.x&&!t.y?"h":"v");"h"===h?(n=p,l=p.makeCalcdata(t,"x"),c=f.makeCalcdata(t,"y"),d=t.xcalendar):(n=f,l=f.makeCalcdata(t,"y"),c=p.makeCalcdata(t,"x"),d=t.ycalendar);var m=Math.min(c.length,l.length),g=new Array(m);for(u=0;u<m;u++)g[u]={p:c[u],s:l[u]};var v,b=t.base;if(Array.isArray(b)){for(u=0;u<Math.min(b.length,g.length);u++)v=n.d2c(b[u],0,d),g[u].b=r(v)?v:0;for(;u<g.length;u++)g[u].b=0}else for(v=n.d2c(b,0,d),v=r(v)?v:0,u=0;u<g.length;u++)g[u].b=v;return a(t,"marker")&&o(t,t.marker.color,"marker","c"),a(t,"marker.line")&&o(t,t.marker.line.color,"marker.line","c"),s(g,t),g}},{"../../components/colorscale/calc":592,"../../components/colorscale/has_colorscale":599,"../../plots/cartesian/axes":732,"./arrays_to_calcdata":776,"fast-isnumeric":267}],779:[function(e,t,n){"use strict";var r=e("../../lib"),i=e("../../components/color"),a=e("../scatter/xy_defaults"),o=e("../bar/style_defaults"),s=e("../../components/errorbars/defaults"),c=e("./attributes");t.exports=function(e,t,n,l){function u(n,i){return r.coerce(e,t,c,n,i)}var d=r.coerceFont;if(!a(e,t,l,u))return void(t.visible=!1);u("orientation",t.x&&!t.y?"h":"v"),u("base"),u("offset"),u("width"),u("text"),u("hovertext");var p=u("textposition"),f=Array.isArray(p)||"auto"===p,h=f||"inside"===p,m=f||"outside"===p;if(h||m){var g=d(u,"textfont",l.font);h&&d(u,"insidetextfont",g),m&&d(u,"outsidetextfont",g)}o(e,t,u,n,l),s(e,t,i.defaultLine,{axis:"y"}),s(e,t,i.defaultLine,{axis:"x",inherit:"y"})}},{"../../components/color":586,"../../components/errorbars/defaults":615,"../../lib":697,"../bar/style_defaults":788,"../scatter/xy_defaults":823,"./attributes":777}],780:[function(e,t,n){"use strict";var r=e("../../components/fx"),i=e("../../components/errorbars"),a=e("../../components/color");t.exports=function(e,t,n,o){var s,c,l,u,d,p,f,h=e.cd,m=h[0].trace,g=h[0].t,v=e.xa,b=e.ya,y=function(e){return r.inbox(u(e)-s,d(e)-s)};"h"===m.orientation?(s=n,c=function(e){return e.y-e.w/2},l=function(e){return e.y+e.w/2},p=function(e){return r.inbox(e.b-t,e.x-t)+(e.x-t)/(e.x-e.b)},f=y):(s=t,c=function(e){return e.x-e.w/2},l=function(e){return e.x+e.w/2},f=function(e){return r.inbox(e.b-n,e.y-n)+(e.y-n)/(e.y-e.b)},p=y),u="closest"===o?c:function(e){return Math.min(c(e),e.p-g.bargroupwidth/2)},d="closest"===o?l:function(e){return Math.max(l(e),e.p+g.bargroupwidth/2)};var x=r.getDistanceFunction(o,p,f);if(r.getClosest(h,x,e),!1!==e.index){var M=e.index,_=h[M],w=_.mcc||m.marker.color,A=_.mlcc||m.marker.line.color,S=_.mlw||m.marker.line.width;a.opacity(w)?e.color=w:a.opacity(A)&&S&&(e.color=A);var k=m.base?_.b+_.s:_.s;return"h"===m.orientation?(e.x0=e.x1=v.c2p(_.x,!0),e.xLabelVal=k,e.y0=b.c2p(u(_),!0),e.y1=b.c2p(d(_),!0),e.yLabelVal=_.p):(e.y0=e.y1=b.c2p(_.y,!0),e.yLabelVal=k,e.x0=v.c2p(u(_),!0),e.x1=v.c2p(d(_),!0),e.xLabelVal=_.p),_.htx?e.text=_.htx:m.hovertext?e.text=m.hovertext:_.tx?e.text=_.tx:m.text&&(e.text=m.text),i.hoverInfo(_,m,e),[e]}}},{"../../components/color":586,"../../components/errorbars":616,"../../components/fx":627}],781:[function(e,t,n){"use strict";var r={};r.attributes=e("./attributes"),r.layoutAttributes=e("./layout_attributes"),r.supplyDefaults=e("./defaults"),r.supplyLayoutDefaults=e("./layout_defaults"),r.calc=e("./calc"),r.setPositions=e("./set_positions"),r.colorbar=e("../scatter/colorbar"),r.arraysToCalcdata=e("./arrays_to_calcdata"),r.plot=e("./plot"),r.style=e("./style"),r.hoverPoints=e("./hover"),r.moduleType="trace",r.name="bar",r.basePlotModule=e("../../plots/cartesian"),r.categories=["cartesian","bar","oriented","markerColorscale","errorBarsOK","showLegend"],r.meta={description:["The data visualized by the span of the bars is set in `y`","if `orientation` is set th *v* (the default)","and the labels are set in `x`.","By setting `orientation` to *h*, the roles are interchanged."].join(" ")},t.exports=r},{"../../plots/cartesian":742,"../scatter/colorbar":804,"./arrays_to_calcdata":776,"./attributes":777,"./calc":778,"./defaults":779,"./hover":780,"./layout_attributes":782,"./layout_defaults":783,"./plot":784,"./set_positions":785,"./style":787}],782:[function(e,t,n){"use strict";t.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",role:"info",description:["Determines how bars at the same location coordinate","are displayed on the graph.","With *stack*, the bars are stacked on top of one another","With *relative*, the bars are stacked on top of one another,","with negative values below the axis, positive values above","With *group*, the bars are plotted next to one another","centered around the shared location.","With *overlay*, the bars are plotted over one another,","you might need to an *opacity* to see multiple bars."].join(" ")},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",role:"info",description:["Sets the normalization for bar traces on the graph.","With *fraction*, the value of each bar is divide by the sum of the","values at the location coordinate.","With *percent*, the results form *fraction* are presented in percents."].join(" ")},bargap:{valType:"number",min:0,max:1,role:"style",description:["Sets the gap (in plot fraction) between bars of","adjacent location coordinates."].join(" ")},bargroupgap:{valType:"number",min:0,max:1,dflt:0,role:"style",description:["Sets the gap (in plot fraction) between bars of","the same location coordinate."].join(" ")}}},{}],783:[function(e,t,n){"use strict";var r=e("../../registry"),i=e("../../plots/cartesian/axes"),a=e("../../lib"),o=e("./layout_attributes");t.exports=function(e,t,n){function s(n,r){return a.coerce(e,t,o,n,r)}for(var c=!1,l=!1,u=!1,d={},p=0;p<n.length;p++){var f=n[p];if(r.traceIs(f,"bar")){if(c=!0,"overlay"!==e.barmode&&"stack"!==e.barmode){var h=f.xaxis+f.yaxis;d[h]&&(u=!0),d[h]=!0}if(f.visible&&"histogram"===f.type){"category"!==i.getFromId({_fullLayout:t},f["v"===f.orientation?"xaxis":"yaxis"]).type&&(l=!0)}}}if(c){"overlay"!==s("barmode")&&s("barnorm"),s("bargap",l&&!u?0:.2),s("bargroupgap")}}},{"../../lib":697,"../../plots/cartesian/axes":732,"../../registry":767,"./layout_attributes":782}],784:[function(e,t,n){"use strict";function r(e,t,n,r,o,p,f,h){function m(e,t,n){var r=e.append("text").attr("data-notex",1).text(t).attr({class:"bartext",transform:"","data-bb":"","text-anchor":"middle",x:0,y:0}).call(A.font,n);return r.call(_.convertToTspans),r.selectAll("tspan.line").attr({x:0,y:0}),r}var g=n[0].trace,v=g.orientation,b=s(g,r);if(b){var y=c(g,r);if("none"!==y){var x,M,w,S,k=l(g,r,e._fullLayout.font),$=u(g,r,k),T=d(g,r,k),C=e._fullLayout.barmode,E="stack"===C,O="relative"===C,L=E||O,N=n[r],P=!L||N._outmost,I=Math.abs(p-o)-2*z,D=Math.abs(h-f)-2*z;if("outside"===y&&(P||(y="inside")),"auto"===y)if(P){x=m(t,b,$),M=A.bBox(x.node()),w=M.width,S=M.height;var R=w>0&&S>0,j=w<=I&&S<=D,q=w<=D&&S<=I,B="h"===v?I>=w*(D/S):D>=S*(I/w);R&&(j||q||B)?y="inside":(y="outside",x.remove(),x=null)}else y="inside";if(!x&&(x=m(t,b,"outside"===y?T:$),M=A.bBox(x.node()),w=M.width,S=M.height,w<=0||S<=0))return void x.remove();var W;W="outside"===y?a(o,p,f,h,M,v):i(o,p,f,h,M,v),x.attr("transform",W)}}}function i(e,t,n,r,i,a){var s,c,l,u,d,p=i.width,f=i.height,h=(i.left+i.right)/2,m=(i.top+i.bottom)/2,g=Math.abs(t-e),v=Math.abs(r-n);g>2*z&&v>2*z?(d=z,g-=2*d,v-=2*d):d=0;var b,y;return p<=g&&f<=v?(b=!1,y=1):p<=v&&f<=g?(b=!0,y=1):p<f==g<v?(b=!1,y=Math.min(g/p,v/f)):(b=!0,y=Math.min(v/p,g/f)),b&&(b=90),b?(s=y*f,c=y*p):(s=y*p,c=y*f),"h"===a?t<e?(l=t+d+s/2,u=(n+r)/2):(l=t-d-s/2,u=(n+r)/2):r>n?(l=(e+t)/2,u=r-d-c/2):(l=(e+t)/2,u=r+d+c/2),o(h,m,l,u,y,b)}function a(e,t,n,r,i,a){var s,c="h"===a?Math.abs(r-n):Math.abs(t-e);c>2*z&&(s=z,c-=2*s);var l,u,d,p,f="h"===a?Math.min(1,c/i.height):Math.min(1,c/i.width),h=(i.left+i.right)/2,m=(i.top+i.bottom)/2;return l=f*i.width,u=f*i.height,"h"===a?t<e?(d=t-s-l/2,p=(n+r)/2):(d=t+s+l/2,p=(n+r)/2):r>n?(d=(e+t)/2,p=r+s+u/2):(d=(e+t)/2,p=r-s-u/2),o(h,m,d,p,f,!1)}function o(e,t,n,r,i,a){var o,s;return i<1?o="scale("+i+") ":(i=1,o=""),s=a?"rotate("+a+" "+e+" "+t+") ":"","translate("+(n-i*e)+" "+(r-i*t)+")"+o+s}function s(e,t){var n=f(e.text,t);return h($,n)}function c(e,t){var n=f(e.textposition,t);return m(T,n)}function l(e,t,n){return p(C,e.textfont,t,n)}function u(e,t,n){return p(E,e.insidetextfont,t,n)}function d(e,t,n){return p(O,e.outsidetextfont,t,n)}function p(e,t,n,r){t=t||{};var i=f(t.family,n),a=f(t.size,n),o=f(t.color,n);return{family:h(e.family,i,r.family),size:g(e.size,a,r.size),color:v(e.color,o,r.color)}}function f(e,t){var n;return Array.isArray(e)?t<e.length&&(n=e[t]):n=e,n}function h(e,t,n){if("string"==typeof t){if(t||!e.noBlank)return t}else if("number"==typeof t&&!e.strict)return String(t);return void 0!==n?n:e.dflt}function m(e,t,n){return e.coerceNumber&&(t=+t),-1!==e.values.indexOf(t)?t:void 0!==n?n:e.dflt}function g(e,t,n){if(y(t)){t=+t;var r=e.min,i=e.max;if(!(void 0!==r&&t<r||void 0!==i&&t>i))return t}return void 0!==n?n:e.dflt}function v(e,t,n){return x(t).isValid()?t:void 0!==n?n:e.dflt}var b=e("d3"),y=e("fast-isnumeric"),x=e("tinycolor2"),M=e("../../lib"),_=e("../../lib/svg_text_utils"),w=e("../../components/color"),A=e("../../components/drawing"),S=e("../../components/errorbars"),k=e("./attributes"),$=k.text,T=k.textposition,C=k.textfont,E=k.insidetextfont,O=k.outsidetextfont,z=3;t.exports=function(e,t,n){var i=t.xaxis,a=t.yaxis,o=e._fullLayout,s=t.plot.select(".barlayer").selectAll("g.trace.bars").data(n);s.enter().append("g").attr("class","trace bars"),s.append("g").attr("class","points").each(function(t){var n=t[0].t,s=t[0].trace,c=n.poffset,l=Array.isArray(c);b.select(this).selectAll("g.point").data(M.identity).enter().append("g").classed("point",!0).each(function(n,u){function d(e){return 0===o.bargap&&0===o.bargroupgap?b.round(Math.round(e)-S,2):e}function p(e,t){return Math.abs(e-t)>=2?d(e):e>t?Math.ceil(e):Math.floor(e)}var f,h,m,g,v=n.p+(l?c[u]:c),x=v+n.w,M=n.b,_=M+n.s;if("h"===s.orientation?(m=a.c2p(v,!0),g=a.c2p(x,!0),f=i.c2p(M,!0),h=i.c2p(_,!0)):(f=i.c2p(v,!0),h=i.c2p(x,!0),m=a.c2p(M,!0),g=a.c2p(_,!0)),!(y(f)&&y(h)&&y(m)&&y(g)&&f!==h&&m!==g))return void b.select(this).remove();var A=(n.mlw+1||s.marker.line.width+1||(n.trace?n.trace.marker.line.width:0)+1)-1,S=b.round(A/2%1,2);if(!e._context.staticPlot){var k=w.opacity(n.mc||s.marker.color),$=k<1||A>.01?d:p;f=$(f,h),h=$(h,f),m=$(m,g),g=$(g,m)}var T=b.select(this);T.append("path").attr("d","M"+f+","+m+"V"+g+"H"+h+"V"+m+"Z"),r(e,T,t,u,f,h,m,g)})}),s.call(S.plot,t)}},{"../../components/color":586,"../../components/drawing":610,"../../components/errorbars":616,"../../lib":697,"../../lib/svg_text_utils":714,"./attributes":777,d3:265,"fast-isnumeric":267,tinycolor2:826}],785:[function(e,t,n){"use strict";function r(e,t,n,r){if(r.length){var s,c,l,u,d,p=e._fullLayout.barmode,f="overlay"===p,h="group"===p;if(f)i(e,t,n,r);else if(h){for(s=[],c=[],l=0;l<r.length;l++)u=r[l],d=u[0].trace,void 0===d.offset?c.push(u):s.push(u);c.length&&a(e,t,n,c),s.length&&i(e,t,n,s)}else{for(s=[],c=[],l=0;l<r.length;l++)u=r[l],d=u[0].trace,void 0===d.base?c.push(u):s.push(u);c.length&&o(e,t,n,c),s.length&&i(e,t,n,s)}}}function i(e,t,n,r){for(var i=e._fullLayout.barnorm,a=!i,o=0;o<r.length;o++){var c=r[o],l=new _([c],!1,a);s(e,t,l),i?(m(e,n,l),g(e,n,l)):f(e,n,l)}}function a(e,t,n,r){var i=e._fullLayout,a=i.barnorm,o=!a,s=new _(r,!1,o);c(e,t,s),a?(m(e,n,s),g(e,n,s)):f(e,n,s)}function o(e,t,n,r){var i=e._fullLayout,a=i.barmode,o="stack"===a,c="relative"===a,l=e._fullLayout.barnorm,u=c,d=!(l||o||c),p=new _(r,u,d);s(e,t,p),h(e,n,p);for(var f=0;f<r.length;f++)for(var m=r[f],v=0;v<m.length;v++){var b=m[v];if(b.s!==y){var x=b.b+b.s===p.get(b.p,b.s);x&&(b._outmost=!0)}}l&&g(e,n,p)}function s(e,t,n){var r,i,a,o,s=e._fullLayout,c=s.bargap,p=s.bargroupgap,f=n.minDiff,h=n.traces,m=f*(1-c),g=m,v=g*(1-p),b=-v/2;for(r=0;r<h.length;r++)i=h[r],a=i[0],o=a.t,o.barwidth=v,o.poffset=b,o.bargroupwidth=m;n.binWidth=h[0][0].t.barwidth/100,l(n),u(e,t,n),d(e,t,n)}function c(e,t,n){var r,i,a,o,s=e._fullLayout,c=s.bargap,p=s.bargroupgap,f=n.positions,h=n.distinctPositions,m=n.minDiff,g=n.traces,v=f.length!==h.length,b=g.length,y=m*(1-c),x=v?y/b:y,M=x*(1-p);for(r=0;r<b;r++){i=g[r],a=i[0];var _=v?((2*r+1-b)*x-M)/2:-M/2;o=a.t,o.barwidth=M,o.poffset=_,o.bargroupwidth=y}n.binWidth=g[0][0].t.barwidth/100,l(n),u(e,t,n),d(e,t,n,v)}function l(e){var t,n,r,i,a,o,s=e.traces;for(t=0;t<s.length;t++){n=s[t],r=n[0],i=r.trace,o=r.t;var c,l=i.offset,u=o.poffset;if(Array.isArray(l)){for(c=l.slice(0,n.length),a=0;a<c.length;a++)b(c[a])||(c[a]=u);for(a=c.length;a<n.length;a++)c.push(u);o.poffset=c}else void 0!==l&&(o.poffset=l);var d=i.width,p=o.barwidth;if(Array.isArray(d)){var f=d.slice(0,n.length);for(a=0;a<f.length;a++)b(f[a])||(f[a]=p);for(a=f.length;a<n.length;a++)f.push(p);if(o.barwidth=f,void 0===l){for(c=[],a=0;a<n.length;a++)c.push(u+(p-f[a])/2);o.poffset=c}}else void 0!==d&&(o.barwidth=d,void 0===l&&(o.poffset=u+(p-d)/2))}}function u(e,t,n){for(var r=n.traces,i=v(t),a=0;a<r.length;a++)for(var o=r[a],s=o[0].t,c=s.poffset,l=Array.isArray(c),u=s.barwidth,d=Array.isArray(u),p=0;p<o.length;p++){var f=o[p],h=f.w=d?u[p]:u;f[i]=f.p+(l?c[p]:c)+h/2}}function d(e,t,n,r){var i=n.traces,a=n.distinctPositions,o=a[0],s=n.minDiff,c=s/2;M.minDtick(t,s,o,r);for(var l=Math.min.apply(Math,a)-c,u=Math.max.apply(Math,a)+c,d=0;d<i.length;d++){var p=i[d],f=p[0],h=f.trace;if(void 0!==h.width||void 0!==h.offset)for(var m=f.t,g=m.poffset,v=m.barwidth,b=Array.isArray(g),y=Array.isArray(v),x=0;x<p.length;x++){var _=p[x],w=b?g[x]:g,A=y?v[x]:v,S=_.p,k=S+w,$=k+A;l=Math.min(l,k),u=Math.max(u,$)}}M.expand(t,[l,u],{padded:!1})}function p(e,t){b(e[0])?e[0]=Math.min(e[0],t):e[0]=t,b(e[1])?e[1]=Math.max(e[1],t):e[1]=t}function f(e,t,n){for(var r=n.traces,i=v(t),a=t.l2c(t.c2l(0)),o=[a,a],s=0;s<r.length;s++)for(var c=r[s],l=0;l<c.length;l++){var u=c[l],d=u.b,f=d+u.s;u[i]=f,b(t.c2l(f))&&p(o,f),b(t.c2l(d))&&p(o,d)}M.expand(t,o,{tozero:!0,padded:!0})}function h(e,t,n){var r,i,a,o,s=e._fullLayout,c=s.barnorm,l=v(t),u=n.traces,d=t.l2c(t.c2l(0)),f=[d,d];for(r=0;r<u.length;r++)for(i=u[r],a=0;a<i.length;a++)if(o=i[a],o.s!==y){var h=n.put(o.p,o.b+o.s),m=h+o.b+o.s;o.b=h,o[l]=m,c||(b(t.c2l(m))&&p(f,m),b(t.c2l(h))&&p(f,h))}c||M.expand(t,f,{tozero:!0,padded:!0})}function m(e,t,n){for(var r=n.traces,i=0;i<r.length;i++)for(var a=r[i],o=0;o<a.length;o++){var s=a[o];s.s!==y&&n.put(s.p,s.b+s.s)}}function g(e,t,n){function r(e){b(t.c2l(e))&&(e<c-s||e>l+s||!b(c))&&(d=!0,p(u,e))}for(var i=n.traces,a=v(t),o="fraction"===e._fullLayout.barnorm?1:100,s=o/1e9,c=t.l2c(t.c2l(0)),l="stack"===e._fullLayout.barmode?o:c,u=[c,l],d=!1,f=0;f<i.length;f++)for(var h=i[f],m=0;m<h.length;m++){var g=h[m];if(g.s!==y){var x=Math.abs(o/n.get(g.p,g.s));g.b*=x,g.s*=x;var _=g.b,w=_+g.s;g[a]=w,r(w),r(_)}}M.expand(t,u,{tozero:!0,padded:d})}function v(e){return e._id.charAt(0)}var b=e("fast-isnumeric"),y=e("../../constants/numerical").BADNUM,x=e("../../registry"),M=e("../../plots/cartesian/axes"),_=e("./sieve.js");t.exports=function(e,t){var n,i=t.xaxis,a=t.yaxis,o=e._fullData,s=e.calcdata,c=[],l=[];for(n=0;n<o.length;n++){var u=o[n];!0===u.visible&&x.traceIs(u,"bar")&&u.xaxis===i._id&&u.yaxis===a._id&&("h"===u.orientation?c.push(s[n]):l.push(s[n]))}r(e,i,a,l),r(e,a,i,c)}},{"../../constants/numerical":683,"../../plots/cartesian/axes":732,"../../registry":767,"./sieve.js":786,"fast-isnumeric":267}],786:[function(e,t,n){"use strict";function r(e,t,n){this.traces=e,this.separateNegativeValues=t,this.dontMergeOverlappingData=n;for(var r=[],o=0;o<e.length;o++)for(var s=e[o],c=0;c<s.length;c++){var l=s[c];l.p!==a&&r.push(l.p)}this.positions=r;var u=i.distinctVals(this.positions);this.distinctPositions=u.vals,this.minDiff=u.minDiff,this.binWidth=this.minDiff,this.bins={}}t.exports=r;var i=e("../../lib"),a=e("../../constants/numerical").BADNUM;r.prototype.put=function(e,t){var n=this.getLabel(e,t),r=this.bins[n]||0;return this.bins[n]=r+t,r},r.prototype.get=function(e,t){var n=this.getLabel(e,t);return this.bins[n]||0},r.prototype.getLabel=function(e,t){return(t<0&&this.separateNegativeValues?"v":"^")+(this.dontMergeOverlappingData?e:Math.round(e/this.binWidth))}},{"../../constants/numerical":683,"../../lib":697}],787:[function(e,t,n){"use strict";var r=e("d3"),i=e("../../components/color"),a=e("../../components/drawing"),o=e("../../components/errorbars");t.exports=function(e){var t=r.select(e).selectAll("g.trace.bars"),n=t.size(),s=e._fullLayout;t.style("opacity",function(e){return e[0].trace.opacity}).each(function(e){("stack"===s.barmode&&n>1||0===s.bargap&&0===s.bargroupgap&&!e[0].trace.marker.line.width)&&r.select(this).attr("shape-rendering","crispEdges")}),t.selectAll("g.points").each(function(e){var t=e[0].trace,n=t.marker,o=n.line,s=a.tryColorscale(n,""),c=a.tryColorscale(n,"line");r.select(this).selectAll("path").each(function(e){var t,a,l=(e.mlw+1||o.width+1)-1,u=r.select(this);t="mc"in e?e.mcc=s(e.mc):Array.isArray(n.color)?i.defaultLine:n.color,u.style("stroke-width",l+"px").call(i.fill,t),l&&(a="mlc"in e?e.mlcc=c(e.mlc):Array.isArray(o.color)?i.defaultLine:o.color,u.call(i.stroke,a))})}),t.call(o.style)}},{"../../components/color":586,"../../components/drawing":610,"../../components/errorbars":616,d3:265}],788:[function(e,t,n){"use strict";var r=e("../../components/color"),i=e("../../components/colorscale/has_colorscale"),a=e("../../components/colorscale/defaults");t.exports=function(e,t,n,o,s){n("marker.color",o),i(e,"marker")&&a(e,t,s,n,{prefix:"marker.",cLetter:"c"}),n("marker.line.color",r.defaultLine),i(e,"marker.line")&&a(e,t,s,n,{prefix:"marker.line.",cLetter:"c"}),n("marker.line.width")}},{"../../components/color":586,"../../components/colorscale/defaults":595,"../../components/colorscale/has_colorscale":599}],789:[function(e,t,n){"use strict";var r=e("../../components/color/attributes"),i=e("../../plots/font_attributes"),a=e("../../plots/attributes"),o=e("../../lib/extend").extendFlat;t.exports={labels:{valType:"data_array",description:"Sets the sector labels."},label0:{valType:"number",role:"info",dflt:0,description:["Alternate to `labels`.","Builds a numeric set of labels.","Use with `dlabel`","where `label0` is the starting label and `dlabel` the step."].join(" ")},dlabel:{valType:"number",role:"info",dflt:1,description:"Sets the label step. See `label0` for more info."},values:{valType:"data_array",description:"Sets the values of the sectors of this pie chart."},marker:{colors:{valType:"data_array",description:["Sets the color of each sector of this pie chart.","If not specified, the default trace color set is used","to pick the sector colors."].join(" ")},line:{color:{valType:"color",role:"style",dflt:r.defaultLine,arrayOk:!0,description:["Sets the color of the line enclosing each sector."].join(" ")},width:{valType:"number",role:"style",min:0,dflt:0,arrayOk:!0,description:["Sets the width (in px) of the line enclosing each sector."].join(" ")}}},text:{valType:"data_array",description:["Sets text elements associated with each sector.","If trace `textinfo` contains a *text* flag, these elements will seen","on the chart.","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")},hovertext:{valType:"string",role:"info",dflt:"",arrayOk:!0,description:["Sets hover text elements associated with each sector.","If a single string, the same string appears for","all data points.","If an array of string, the items are mapped in order of","this trace's sectors.","To be seen, trace `hoverinfo` must contain a *text* flag."].join(" ")},scalegroup:{valType:"string",role:"info",dflt:"",description:["If there are multiple pies that should be sized according to","their totals, link them by providing a non-empty group id here","shared by every trace in the same group."].join(" ")},textinfo:{valType:"flaglist",role:"info",flags:["label","text","value","percent"],extras:["none"],description:["Determines which trace information appear on the graph."].join(" ")},hoverinfo:o({},a.hoverinfo,{flags:["label","text","value","percent","name"]}),textposition:{valType:"enumerated",role:"info",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,description:["Specifies the location of the `textinfo`."].join(" ")},textfont:o({},i,{description:"Sets the font used for `textinfo`."}),insidetextfont:o({},i,{description:"Sets the font used for `textinfo` lying inside the pie."}),outsidetextfont:o({},i,{description:"Sets the font used for `textinfo` lying outside the pie."}),domain:{x:{valType:"info_array",role:"info",items:[{valType:"number",min:0,max:1},{valType:"number",min:0,max:1}],dflt:[0,1],description:["Sets the horizontal domain of this pie trace","(in plot fraction)."].join(" ")},y:{valType:"info_array",role:"info",items:[{valType:"number",min:0,max:1},{valType:"number",min:0,max:1}],dflt:[0,1],description:["Sets the vertical domain of this pie trace","(in plot fraction)."].join(" ")}},hole:{valType:"number",role:"style",min:0,max:1,dflt:0,description:["Sets the fraction of the radius to cut out of the pie.","Use this to make a donut chart."].join(" ")},sort:{valType:"boolean",role:"style",dflt:!0,description:["Determines whether or not the sectors are reordered","from largest to smallest."].join(" ")},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],role:"style",dflt:"counterclockwise",
75description:["Specifies the direction at which succeeding sectors follow","one another."].join(" ")},rotation:{valType:"number",role:"style",min:-360,max:360,dflt:0,description:["Instead of the first slice starting at 12 o'clock,","rotate to some other angle."].join(" ")},pull:{valType:"number",role:"style",min:0,max:1,dflt:0,arrayOk:!0,description:["Sets the fraction of larger radius to pull the sectors","out from the center. This can be a constant","to pull all slices apart from each other equally","or an array to highlight one or more slices."].join(" ")}}},{"../../components/color/attributes":585,"../../lib/extend":693,"../../plots/attributes":730,"../../plots/font_attributes":756}],790:[function(e,t,n){"use strict";function r(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r],a=i[0].trace;a._module===t&&!0===a.visible&&n.push(i)}return n}var i=e("../../registry");n.name="pie",n.plot=function(e){var t=i.getModule("pie"),n=r(e.calcdata,t);n.length&&t.plot(e,n)},n.clean=function(e,t,n,r){var i=r._has&&r._has("pie"),a=t._has&&t._has("pie");i&&!a&&r._pielayer.selectAll("g.trace").remove()}},{"../../registry":767}],791:[function(e,t,n){"use strict";function r(e){if(!c){var t=o.defaults;c=t.slice();var n;for(n=0;n<t.length;n++)c.push(a(t[n]).lighten(20).toHexString());for(n=0;n<o.defaults.length;n++)c.push(a(t[n]).darken(20).toHexString())}return c[e%c.length]}var i=e("fast-isnumeric"),a=e("tinycolor2"),o=e("../../components/color"),s=e("./helpers");t.exports=function(e,t){var n,c,l,u,d,p,f=t.values,h=t.labels,m=[],g=e._fullLayout,v=g._piecolormap,b={},y=!1,x=0,M=g.hiddenlabels||[];if(t.dlabel)for(h=new Array(f.length),n=0;n<f.length;n++)h[n]=String(t.label0+n*t.dlabel);for(n=0;n<f.length;n++)c=f[n],i(c)&&((c=+c)<0||(l=h[n],void 0!==l&&""!==l||(l=n),l=String(l),void 0===b[l]&&(b[l]=!0,u=a(t.marker.colors[n]),u.isValid()?(u=o.addOpacity(u,u.getAlpha()),v[l]||(v[l]=u)):v[l]?u=v[l]:(u=!1,y=!0),d=-1!==M.indexOf(l),d||(x+=c),m.push({v:c,label:l,color:u,i:n,hidden:d}))));if(t.sort&&m.sort(function(e,t){return t.v-e.v}),y)for(n=0;n<m.length;n++)p=m[n],!1===p.color&&(v[p.label]=p.color=r(g._piedefaultcolorcount),g._piedefaultcolorcount++);if(m[0]&&(m[0].vTotal=x),t.textinfo&&"none"!==t.textinfo){var _,w=-1!==t.textinfo.indexOf("label"),A=-1!==t.textinfo.indexOf("text"),S=-1!==t.textinfo.indexOf("value"),k=-1!==t.textinfo.indexOf("percent"),$=g.separators;for(n=0;n<m.length;n++)p=m[n],_=w?[p.label]:[],A&&t.text[p.i]&&_.push(t.text[p.i]),S&&_.push(s.formatPieValue(p.v,$)),k&&_.push(s.formatPiePercent(p.v/x,$)),p.text=_.join("<br>")}return m};var c},{"../../components/color":586,"./helpers":793,"fast-isnumeric":267,tinycolor2:826}],792:[function(e,t,n){"use strict";var r=e("../../lib"),i=e("./attributes");t.exports=function(e,t,n,a){function o(n,a){return r.coerce(e,t,i,n,a)}var s=r.coerceFont,c=o("values");if(!Array.isArray(c)||!c.length)return void(t.visible=!1);var l=o("labels");Array.isArray(l)||(o("label0"),o("dlabel")),o("marker.line.width")&&o("marker.line.color");var u=o("marker.colors");Array.isArray(u)||(t.marker.colors=[]),o("scalegroup");var d=o("text"),p=o("textinfo",Array.isArray(d)?"text+percent":"percent");if(o("hovertext"),o("hoverinfo",1===a._dataLength?"label+text+value+percent":void 0),p&&"none"!==p){var f=o("textposition"),h=Array.isArray(f)||"auto"===f,m=h||"inside"===f,g=h||"outside"===f;if(m||g){var v=s(o,"textfont",a.font);m&&s(o,"insidetextfont",v),g&&s(o,"outsidetextfont",v)}}o("domain.x"),o("domain.y"),o("hole"),o("sort"),o("direction"),o("rotation"),o("pull")}},{"../../lib":697,"./attributes":789}],793:[function(e,t,n){"use strict";var r=e("../../lib");n.formatPiePercent=function(e,t){var n=(100*e).toPrecision(3);return-1!==n.lastIndexOf(".")&&(n=n.replace(/[.]?0+$/,"")),r.numSeparate(n,t)+"%"},n.formatPieValue=function(e,t){var n=e.toPrecision(10);return-1!==n.lastIndexOf(".")&&(n=n.replace(/[.]?0+$/,"")),r.numSeparate(n,t)}},{"../../lib":697}],794:[function(e,t,n){"use strict";var r={};r.attributes=e("./attributes"),r.supplyDefaults=e("./defaults"),r.supplyLayoutDefaults=e("./layout_defaults"),r.layoutAttributes=e("./layout_attributes"),r.calc=e("./calc"),r.plot=e("./plot"),r.style=e("./style"),r.styleOne=e("./style_one"),r.moduleType="trace",r.name="pie",r.basePlotModule=e("./base_plot"),r.categories=["pie","showLegend"],r.meta={description:["A data visualized by the sectors of the pie is set in `values`.","The sector labels are set in `labels`.","The sector colors are set in `marker.colors`"].join(" ")},t.exports=r},{"./attributes":789,"./base_plot":790,"./calc":791,"./defaults":792,"./layout_attributes":795,"./layout_defaults":796,"./plot":797,"./style":798,"./style_one":799}],795:[function(e,t,n){"use strict";t.exports={hiddenlabels:{valType:"data_array"}}},{}],796:[function(e,t,n){"use strict";var r=e("../../lib"),i=e("./layout_attributes");t.exports=function(e,t){!function(n,a){r.coerce(e,t,i,n,a)}("hiddenlabels")}},{"../../lib":697,"./layout_attributes":795}],797:[function(e,t,n){"use strict";function r(e,t,n){var r=Math.sqrt(e.width*e.width+e.height*e.height),a=e.width/e.height,o=Math.PI*Math.min(t.v/n.vTotal,.5),s=1-n.trace.hole,c=i(t,n),l={scale:c*n.r*2/r,rCenter:1-c,rotate:0};if(l.scale>=1)return l;var u=a+1/(2*Math.tan(o)),d=n.r*Math.min(1/(Math.sqrt(u*u+.5)+u),s/(Math.sqrt(a*a+s/2)+a)),p={scale:2*d/e.height,rCenter:Math.cos(d/n.r)-d*a/n.r,rotate:(180/Math.PI*t.midangle+720)%180-90},f=1/a,h=f+1/(2*Math.tan(o)),m=n.r*Math.min(1/(Math.sqrt(h*h+.5)+h),s/(Math.sqrt(f*f+s/2)+f)),g={scale:2*m/e.width,rCenter:Math.cos(m/n.r)-m/a/n.r,rotate:(180/Math.PI*t.midangle+810)%180-90},v=g.scale>p.scale?g:p;return l.scale<1&&v.scale>l.scale?v:l}function i(e,t){if(e.v===t.vTotal&&!t.trace.hole)return 1;var n=Math.PI*Math.min(e.v/t.vTotal,.5);return Math.min(1/(1+1/Math.sin(n)),(1-t.trace.hole)/2)}function a(e,t){var n=t.pxmid[0],r=t.pxmid[1],i=e.width/2,a=e.height/2;return n<0&&(i*=-1),r<0&&(a*=-1),{scale:1,rCenter:1,rotate:0,x:i+Math.abs(a)*(i>0?1:-1)/2,y:a/(1+n*n/(r*r)),outside:!0}}function o(e,t){function n(e,t){return e.pxmid[1]-t.pxmid[1]}function r(e,t){return t.pxmid[1]-e.pxmid[1]}var i,a,o,s,c,l,u,d,p,f,h,m,g;for(a=0;a<2;a++)for(o=a?n:r,c=a?Math.max:Math.min,u=a?1:-1,i=0;i<2;i++){for(s=i?Math.max:Math.min,l=i?1:-1,d=e[a][i],d.sort(o),p=e[1-a][i],f=p.concat(d),m=[],h=0;h<d.length;h++)void 0!==d[h].yLabelMid&&m.push(d[h]);for(g=!1,h=0;a&&h<p.length;h++)if(void 0!==p[h].yLabelMid){g=p[h];break}for(h=0;h<m.length;h++){var v=h&&m[h-1];g&&!h&&(v=g),function(e,n){n||(n={});var r,i,o,d,p,h,m=n.labelExtraY+(a?n.yLabelMax:n.yLabelMin),g=a?e.yLabelMin:e.yLabelMax,v=a?e.yLabelMax:e.yLabelMin,b=e.cyFinal+c(e.px0[1],e.px1[1]),y=m-g;if(y*u>0&&(e.labelExtraY=y),Array.isArray(t.pull))for(i=0;i<f.length;i++)(o=f[i])===e||(t.pull[e.i]||0)>=t.pull[o.i]||((e.pxmid[1]-o.pxmid[1])*u>0?(d=o.cyFinal+c(o.px0[1],o.px1[1]),(y=d-g-e.labelExtraY)*u>0&&(e.labelExtraY+=y)):(v+e.labelExtraY-b)*u>0&&(r=3*l*Math.abs(i-f.indexOf(e)),p=o.cxFinal+s(o.px0[0],o.px1[0]),(h=p+r-(e.cxFinal+e.pxmid[0])-e.labelExtraX)*l>0&&(e.labelExtraX+=h)))}(m[h],v)}}}function s(e,t){var n,r,i,a,o,s,c,u,d,p,f=[];for(i=0;i<e.length;i++){if(o=e[i][0],s=o.trace,n=t.w*(s.domain.x[1]-s.domain.x[0]),r=t.h*(s.domain.y[1]-s.domain.y[0]),c=s.tiltaxis*Math.PI/180,u=s.pull,Array.isArray(u))for(u=0,a=0;a<s.pull.length;a++)s.pull[a]>u&&(u=s.pull[a]);o.r=Math.min(n/l(s.tilt,Math.sin(c),s.depth),r/l(s.tilt,Math.cos(c),s.depth))/(2+2*u),o.cx=t.l+t.w*(s.domain.x[1]+s.domain.x[0])/2,o.cy=t.t+t.h*(2-s.domain.y[1]-s.domain.y[0])/2,s.scalegroup&&-1===f.indexOf(s.scalegroup)&&f.push(s.scalegroup)}for(a=0;a<f.length;a++){for(p=1/0,d=f[a],i=0;i<e.length;i++)o=e[i][0],o.trace.scalegroup===d&&(p=Math.min(p,o.r*o.r/o.vTotal));for(i=0;i<e.length;i++)o=e[i][0],o.trace.scalegroup===d&&(o.r=Math.sqrt(p*o.vTotal))}}function c(e){function t(e){var t=d.r*Math.sin(e),n=-d.r*Math.cos(e);return f?[t*(1-s*r*r)+n*o*s,t*o*s+n*(1-s*i*i),Math.sin(a)*(n*i-t*r)]:[t,n]}var n,r,i,a,o,s,c,l,u,d=e[0],p=d.trace,f=p.tilt,h=p.rotation*Math.PI/180,m=2*Math.PI/d.vTotal,g="px0",v="px1";if("counterclockwise"===p.direction){for(c=0;c<e.length&&e[c].hidden;c++);if(c===e.length)return;h+=m*e[c].v,m*=-1,g="px1",v="px0"}for(f&&(a=f*Math.PI/180,n=p.tiltaxis*Math.PI/180,o=Math.sin(n)*Math.cos(n),s=1-Math.cos(a),r=Math.sin(n),i=Math.cos(n)),u=t(h),c=0;c<e.length;c++)l=e[c],l.hidden||(l[g]=u,h+=m*l.v/2,l.pxmid=t(h),l.midangle=h,h+=m*l.v/2,u=t(h),l[v]=u,l.largeArc=l.v>d.vTotal/2?1:0)}function l(e,t,n){if(!e)return 1;var r=Math.sin(e*Math.PI/180);return Math.max(.01,n*r*Math.abs(t)+2*Math.sqrt(1-r*r*t*t))}var u=e("d3"),d=e("../../components/fx"),p=e("../../components/color"),f=e("../../components/drawing"),h=e("../../lib/svg_text_utils"),m=e("./helpers");t.exports=function(e,t){var n=e._fullLayout;s(t,n._size);var l=n._pielayer.selectAll("g.trace").data(t);l.enter().append("g").attr({"stroke-linejoin":"round",class:"trace"}),l.exit().remove(),l.order(),l.each(function(t){var s=u.select(this),l=t[0],g=l.trace,v=(g.depth||0)*l.r*Math.sin(0)/2,b=g.tiltaxis||0,y=b*Math.PI/180,x=[v*Math.sin(y),v*Math.cos(y)],M=l.r*Math.cos(0),_=s.selectAll("g.part").data(g.tilt?["top","sides"]:["top"]);_.enter().append("g").attr("class",function(e){return e+" part"}),_.exit().remove(),_.order(),c(t),s.selectAll(".top").each(function(){var s=u.select(this).selectAll("g.slice").data(t);s.enter().append("g").classed("slice",!0),s.exit().remove();var c=[[[],[]],[[],[]]],v=!1;s.each(function(t){function o(r){r.originalEvent=u.event;var a=e._fullLayout,o=e._fullData[g.index],s=o.hoverinfo;if("all"===s&&(s="label+text+value+percent+name"),e._dragging||!1===a.hovermode||"none"===s||"skip"===s||!s)return void d.hover(e,r,"pie");var c=i(t,l),p=_+t.pxmid[0]*(1-c),f=w+t.pxmid[1]*(1-c),h=n.separators,v=[];-1!==s.indexOf("label")&&v.push(t.label),-1!==s.indexOf("text")&&(o.hovertext?v.push(Array.isArray(o.hovertext)?o.hovertext[t.i]:o.hovertext):o.text&&o.text[t.i]&&v.push(o.text[t.i])),-1!==s.indexOf("value")&&v.push(m.formatPieValue(t.v,h)),-1!==s.indexOf("percent")&&v.push(m.formatPiePercent(t.v/l.vTotal,h));var b=o.hoverlabel;d.loneHover({x0:p-c*l.r,x1:p+c*l.r,y:f,text:v.join("<br>"),name:-1!==s.indexOf("name")?o.name:void 0,idealAlign:t.pxmid[0]<0?"left":"right",color:t.hbg||b.bgcolor||t.color,borderColor:t.hbc||b.bordercolor,fontFamily:t.htf||b.font.family,fontSize:t.hts||b.font.size,fontColor:t.htc||b.font.color},{container:a._hoverlayer.node(),outerContainer:a._paper.node()}),d.hover(e,r,"pie"),k=!0}function s(t){t.originalEvent=u.event,e.emit("plotly_unhover",{event:u.event,points:[t]}),k&&(d.loneUnhover(n._hoverlayer.node()),k=!1)}function p(){e._hoverdata=[t],e._hoverdata.trace=l.trace,d.click(e,u.event)}function y(e,n,r,i){return"a"+i*l.r+","+i*M+" "+b+" "+t.largeArc+(r?" 1 ":" 0 ")+i*(n[0]-e[0])+","+i*(n[1]-e[1])}if(t.hidden)return void u.select(this).selectAll("path,g").remove();c[t.pxmid[1]<0?0:1][t.pxmid[0]<0?0:1].push(t);var _=l.cx+x[0],w=l.cy+x[1],A=u.select(this),S=A.selectAll("path.surface").data([t]),k=!1;if(S.enter().append("path").classed("surface",!0).style({"pointer-events":"all"}),A.select("path.textline").remove(),A.on("mouseover",o).on("mouseout",s).on("click",p),g.pull){var $=+(Array.isArray(g.pull)?g.pull[t.i]:g.pull)||0;$>0&&(_+=$*t.pxmid[0],w+=$*t.pxmid[1])}t.cxFinal=_,t.cyFinal=w;var T=g.hole;if(t.v===l.vTotal){var C="M"+(_+t.px0[0])+","+(w+t.px0[1])+y(t.px0,t.pxmid,!0,1)+y(t.pxmid,t.px0,!0,1)+"Z";T?S.attr("d","M"+(_+T*t.px0[0])+","+(w+T*t.px0[1])+y(t.px0,t.pxmid,!1,T)+y(t.pxmid,t.px0,!1,T)+"Z"+C):S.attr("d",C)}else{var E=y(t.px0,t.px1,!0,1);if(T){var O=1-T;S.attr("d","M"+(_+T*t.px1[0])+","+(w+T*t.px1[1])+y(t.px1,t.px0,!1,T)+"l"+O*t.px0[0]+","+O*t.px0[1]+E+"Z")}else S.attr("d","M"+_+","+w+"l"+t.px0[0]+","+t.px0[1]+E+"Z")}var z=Array.isArray(g.textposition)?g.textposition[t.i]:g.textposition,L=A.selectAll("g.slicetext").data(t.text&&"none"!==z?[0]:[]);L.enter().append("g").classed("slicetext",!0),L.exit().remove(),L.each(function(){var e=u.select(this).selectAll("text").data([0]);e.enter().append("text").attr("data-notex",1),e.exit().remove(),e.text(t.text).attr({class:"slicetext",transform:"","data-bb":"","text-anchor":"middle",x:0,y:0}).call(f.font,"outside"===z?g.outsidetextfont:g.insidetextfont).call(h.convertToTspans),e.selectAll("tspan.line").attr({x:0,y:0});var n,i=f.bBox(e.node());"outside"===z?n=a(i,t):(n=r(i,t,l),"auto"===z&&n.scale<1&&(e.call(f.font,g.outsidetextfont),g.outsidetextfont.family===g.insidetextfont.family&&g.outsidetextfont.size===g.insidetextfont.size||(e.attr({"data-bb":""}),i=f.bBox(e.node())),n=a(i,t)));var o=_+t.pxmid[0]*n.rCenter+(n.x||0),s=w+t.pxmid[1]*n.rCenter+(n.y||0);n.outside&&(t.yLabelMin=s-i.height/2,t.yLabelMid=s,t.yLabelMax=s+i.height/2,t.labelExtraX=0,t.labelExtraY=0,v=!0),e.attr("transform","translate("+o+","+s+")"+(n.scale<1?"scale("+n.scale+")":"")+(n.rotate?"rotate("+n.rotate+")":"")+"translate("+-(i.left+i.right)/2+","+-(i.top+i.bottom)/2+")")})}),v&&o(c,g),s.each(function(e){if(e.labelExtraX||e.labelExtraY){var t=u.select(this),n=t.select("g.slicetext text");n.attr("transform","translate("+e.labelExtraX+","+e.labelExtraY+")"+n.attr("transform"));var r=e.cxFinal+e.pxmid[0],i=e.cyFinal+e.pxmid[1],a="M"+r+","+i,o=(e.yLabelMax-e.yLabelMin)*(e.pxmid[0]<0?-1:1)/4;if(e.labelExtraX){var s=e.labelExtraX*e.pxmid[1]/e.pxmid[0],c=e.yLabelMid+e.labelExtraY-(e.cyFinal+e.pxmid[1]);Math.abs(s)>Math.abs(c)?a+="l"+c*e.pxmid[0]/e.pxmid[1]+","+c+"H"+(r+e.labelExtraX+o):a+="l"+e.labelExtraX+","+s+"v"+(c-s)+"h"+o}else a+="V"+(e.yLabelMid+e.labelExtraY)+"h"+o;t.append("path").classed("textline",!0).call(p.stroke,g.outsidetextfont.color).attr({"stroke-width":Math.min(2,g.outsidetextfont.size/8),d:a,fill:"none"})}})})}),setTimeout(function(){l.selectAll("tspan").each(function(){var e=u.select(this);e.attr("dy")&&e.attr("dy",e.attr("dy"))})},0)}},{"../../components/color":586,"../../components/drawing":610,"../../components/fx":627,"../../lib/svg_text_utils":714,"./helpers":793,d3:265}],798:[function(e,t,n){"use strict";var r=e("d3"),i=e("./style_one");t.exports=function(e){e._fullLayout._pielayer.selectAll(".trace").each(function(e){var t=e[0],n=t.trace,a=r.select(this);a.style({opacity:n.opacity}),a.selectAll(".top path.surface").each(function(e){r.select(this).call(i,e,n)})})}},{"./style_one":799,d3:265}],799:[function(e,t,n){"use strict";var r=e("../../components/color");t.exports=function(e,t,n){var i=n.marker.line.color;Array.isArray(i)&&(i=i[t.i]||r.defaultLine);var a=n.marker.line.width||0;Array.isArray(a)&&(a=a[t.i]||0),e.style({"stroke-width":a}).call(r.fill,t.color).call(r.stroke,i)}},{"../../components/color":586}],800:[function(e,t,n){"use strict";var r=e("../../lib");t.exports=function(e,t){for(var n=0;n<e.length;n++)e[n].i=n;r.mergeArray(t.text,e,"tx"),r.mergeArray(t.hovertext,e,"htx"),r.mergeArray(t.customdata,e,"data"),r.mergeArray(t.textposition,e,"tp"),t.textfont&&(r.mergeArray(t.textfont.size,e,"ts"),r.mergeArray(t.textfont.color,e,"tc"),r.mergeArray(t.textfont.family,e,"tf"));var i=t.marker;if(i){r.mergeArray(i.size,e,"ms"),r.mergeArray(i.opacity,e,"mo"),r.mergeArray(i.symbol,e,"mx"),r.mergeArray(i.color,e,"mc");var a=i.line;i.line&&(r.mergeArray(a.color,e,"mlc"),r.mergeArray(a.width,e,"mlw"));var o=i.gradient;o&&"none"!==o.type&&(r.mergeArray(o.type,e,"mgt"),r.mergeArray(o.color,e,"mgc"))}}},{"../../lib":697}],801:[function(e,t,n){"use strict";var r=e("../../components/colorscale/color_attributes"),i=e("../../components/errorbars/attributes"),a=e("../../components/colorbar/attributes"),o=e("../../components/drawing/attributes").dash,s=e("../../components/drawing"),c=e("./constants"),l=e("../../lib/extend").extendFlat;t.exports={x:{valType:"data_array",description:"Sets the x coordinates."},x0:{valType:"any",dflt:0,role:"info",description:["Alternate to `x`.","Builds a linear space of x coordinates.","Use with `dx`","where `x0` is the starting coordinate and `dx` the step."].join(" ")},dx:{valType:"number",dflt:1,role:"info",description:["Sets the x coordinate step.","See `x0` for more info."].join(" ")},y:{valType:"data_array",description:"Sets the y coordinates."},y0:{valType:"any",dflt:0,role:"info",description:["Alternate to `y`.","Builds a linear space of y coordinates.","Use with `dy`","where `y0` is the starting coordinate and `dy` the step."].join(" ")},customdata:{valType:"data_array",description:"Assigns extra data to each scatter point DOM element"},dy:{valType:"number",dflt:1,role:"info",description:["Sets the y coordinate step.","See `y0` for more info."].join(" ")},ids:{valType:"data_array",description:"A list of keys for object constancy of data points during animation"},text:{valType:"string",role:"info",dflt:"",arrayOk:!0,description:["Sets text elements associated with each (x,y) pair.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (x,y) coordinates.","If trace `hoverinfo` contains a *text* flag and *hovertext* is not set,","these elements will be seen in the hover labels."].join(" ")},hovertext:{valType:"string",role:"info",dflt:"",arrayOk:!0,description:["Sets hover text elements associated with each (x,y) pair.","If a single string, the same string appears over","all the data points.","If an array of string, the items are mapped in order to the","this trace's (x,y) coordinates.","To be seen, trace `hoverinfo` must contain a *text* flag."].join(" ")},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],role:"info",description:["Determines the drawing mode for this scatter trace.","If the provided `mode` includes *text* then the `text` elements","appear at the coordinates. Otherwise, the `text` elements","appear on hover.","If there are less than "+c.PTS_LINESONLY+" points,","then the default is *lines+markers*. Otherwise, *lines*."].join(" ")},hoveron:{valType:"flaglist",flags:["points","fills"],role:"info",description:["Do the hover effects highlight individual points (markers or","line points) or do they highlight filled regions?","If the fill is *toself* or *tonext* and there are no markers","or text, then the default is *fills*, otherwise it is *points*."].join(" ")},line:{color:{valType:"color",role:"style",description:"Sets the line color."},width:{valType:"number",min:0,dflt:2,role:"style",description:"Sets the line width (in px)."},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",role:"style",description:["Determines the line shape.","With *spline* the lines are drawn using spline interpolation.","The other available values correspond to step-wise line shapes."].join(" ")},smoothing:{valType:"number",min:0,max:1.3,dflt:1,role:"style",description:["Has an effect only if `shape` is set to *spline*","Sets the amount of smoothing.","*0* corresponds to no smoothing (equivalent to a *linear* shape)."].join(" ")},dash:o,simplify:{valType:"boolean",dflt:!0,role:"info",description:["Simplifies lines by removing nearly-collinear points. When transitioning","lines, it may be desirable to disable this so that the number of points","along the resulting SVG path is unaffected."].join(" ")}},connectgaps:{valType:"boolean",dflt:!1,role:"info",description:["Determines whether or not gaps","(i.e. {nan} or missing values)","in the provided data arrays are connected."].join(" ")},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],dflt:"none",role:"style",description:["Sets the area to fill with a solid color.","Use with `fillcolor` if not *none*.","*tozerox* and *tozeroy* fill to x=0 and y=0 respectively.","*tonextx* and *tonexty* fill between the endpoints of this","trace and the endpoints of the trace before it, connecting those","endpoints with straight lines (to make a stacked area graph);","if there is no trace before it, they behave like *tozerox* and","*tozeroy*.","*toself* connects the endpoints of the trace (or each segment","of the trace if it has gaps) into a closed shape.","*tonext* fills the space between two traces if one completely","encloses the other (eg consecutive contour lines), and behaves like","*toself* if there is no trace before it. *tonext* should not be","used if one trace does not enclose the other."].join(" ")},fillcolor:{valType:"color",role:"style",description:["Sets the fill color.","Defaults to a half-transparent variant of the line color,","marker color, or marker line color, whichever is available."].join(" ")},marker:l({},{symbol:{valType:"enumerated",values:s.symbolList,dflt:"circle",arrayOk:!0,role:"style",description:["Sets the marker symbol type.","Adding 100 is equivalent to appending *-open* to a symbol name.","Adding 200 is equivalent to appending *-dot* to a symbol name.","Adding 300 is equivalent to appending *-open-dot*","or *dot-open* to a symbol name."].join(" ")},opacity:{valType:"number",min:0,max:1,arrayOk:!0,role:"style",description:"Sets the marker opacity."},size:{valType:"number",min:0,dflt:6,arrayOk:!0,role:"style",description:"Sets the marker size (in px)."},maxdisplayed:{valType:"number",min:0,dflt:0,role:"style",description:["Sets a maximum number of points to be drawn on the graph.","*0* corresponds to no limit."].join(" ")},sizeref:{valType:"number",dflt:1,role:"style",description:["Has an effect only if `marker.size` is set to a numerical array.","Sets the scale factor used to determine the rendered size of","marker points. Use with `sizemin` and `sizemode`."].join(" ")},sizemin:{valType:"number",min:0,dflt:0,role:"style",description:["Has an effect only if `marker.size` is set to a numerical array.","Sets the minimum size (in px) of the rendered marker points."].join(" ")},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",role:"info",description:["Has an effect only if `marker.size` is set to a numerical array.","Sets the rule for which the data in `size` is converted","to pixels."].join(" ")},showscale:{valType:"boolean",role:"info",dflt:!1,description:["Has an effect only if `marker.color` is set to a numerical array.","Determines whether or not a colorbar is displayed."].join(" ")},colorbar:a,line:l({},{width:{valType:"number",min:0,arrayOk:!0,role:"style",description:"Sets the width (in px) of the lines bounding the marker points."}},r("marker.line")),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",role:"style",description:["Sets the type of gradient used to fill the markers"].join(" ")},color:{valType:"color",arrayOk:!0,role:"style",description:["Sets the final color of the gradient fill:","the center color for radial, the right for horizontal,","or the bottom for vertical."].join(" ")}}},r("marker")),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,role:"style",description:["Sets the positions of the `text` elements","with respects to the (x,y) coordinates."].join(" ")},textfont:{family:{valType:"string",role:"style",noBlank:!0,strict:!0,arrayOk:!0},size:{valType:"number",role:"style",min:1,arrayOk:!0},color:{valType:"color",role:"style",arrayOk:!0},description:"Sets the text font."},r:{valType:"data_array",description:["For polar chart only.","Sets the radial coordinates."].join("")},t:{valType:"data_array",description:["For polar chart only.","Sets the angular coordinates."].join("")},error_y:i,error_x:i}},{"../../components/colorbar/attributes":587,"../../components/colorscale/color_attributes":593,"../../components/drawing":610,"../../components/drawing/attributes":609,"../../components/errorbars/attributes":612,"../../lib/extend":693,"./constants":806}],802:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),i=e("../../plots/cartesian/axes"),a=e("../../constants/numerical").BADNUM,o=e("./subtypes"),s=e("./colorscale_calc"),c=e("./arrays_to_calcdata");t.exports=function(e,t){var n,l,u,d=i.getFromId(e,t.xaxis||"x"),p=i.getFromId(e,t.yaxis||"y"),f=d.makeCalcdata(t,"x"),h=p.makeCalcdata(t,"y"),m=Math.min(f.length,h.length);d._minDtick=0,p._minDtick=0,f.length>m&&f.splice(m,f.length-m),h.length>m&&h.splice(m,h.length-m);var g={padded:!0},v={padded:!0};if(o.hasMarkers(t)){if(n=t.marker,l=n.size,Array.isArray(l)){var b={type:"linear"};i.setConvert(b),l=b.makeCalcdata(t.marker,"size"),l.length>m&&l.splice(m,l.length-m)}var y,x=1.6*(t.marker.sizeref||1);y="area"===t.marker.sizemode?function(e){return Math.max(Math.sqrt((e||0)/x),3)}:function(e){return Math.max((e||0)/x,3)},g.ppad=v.ppad=Array.isArray(l)?l.map(y):y(l)}s(t),!("tozerox"===t.fill||"tonextx"===t.fill&&e.firstscatter)||f[0]===f[m-1]&&h[0]===h[m-1]?t.error_y.visible||-1===["tonexty","tozeroy"].indexOf(t.fill)&&(o.hasMarkers(t)||o.hasText(t))||(g.padded=!1,g.ppad=0):g.tozero=!0,!("tozeroy"===t.fill||"tonexty"===t.fill&&e.firstscatter)||f[0]===f[m-1]&&h[0]===h[m-1]?-1!==["tonextx","tozerox"].indexOf(t.fill)&&(v.padded=!1):v.tozero=!0,i.expand(d,f,g),i.expand(p,h,v);var M=new Array(m);for(u=0;u<m;u++)M[u]=r(f[u])&&r(h[u])?{x:f[u],y:h[u]}:{x:a,y:a},t.ids&&(M[u].id=String(t.ids[u]));return c(M,t),e.firstscatter=!1,M}},{"../../constants/numerical":683,"../../plots/cartesian/axes":732,"./arrays_to_calcdata":800,"./colorscale_calc":805,"./subtypes":821,"fast-isnumeric":267}],803:[function(e,t,n){"use strict";t.exports=function(e){for(var t=0;t<e.length;t++){var n=e[t];if("scatter"===n.type){var r=n.fill;if("none"!==r&&"toself"!==r&&(n.opacity=void 0,"tonexty"===r||"tonextx"===r))for(var i=t-1;i>=0;i--){var a=e[i];if("scatter"===a.type&&a.xaxis===n.xaxis&&a.yaxis===n.yaxis){a.opacity=void 0;break}}}}}},{}],804:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),i=e("../../lib"),a=e("../../plots/plots"),o=e("../../components/colorscale"),s=e("../../components/colorbar/draw");t.exports=function(e,t){var n=t[0].trace,c=n.marker,l="cb"+n.uid;if(e._fullLayout._infolayer.selectAll("."+l).remove(),void 0===c||!c.showscale)return void a.autoMargin(e,l);var u=c.color,d=c.cmin,p=c.cmax;r(d)||(d=i.aggNums(Math.min,null,u)),r(p)||(p=i.aggNums(Math.max,null,u));var f=t[0].t.cb=s(e,l),h=o.makeColorScaleFunc(o.extractScale(c.colorscale,d,p),{noNumericCheck:!0});f.fillcolor(h).filllevels({start:d,end:p,size:(p-d)/254}).options(c.colorbar)()}},{"../../components/colorbar/draw":589,"../../components/colorscale":600,"../../lib":697,"../../plots/plots":760,"fast-isnumeric":267}],805:[function(e,t,n){"use strict";var r=e("../../components/colorscale/has_colorscale"),i=e("../../components/colorscale/calc"),a=e("./subtypes");t.exports=function(e){a.hasLines(e)&&r(e,"line")&&i(e,e.line.color,"line","c"),a.hasMarkers(e)&&(r(e,"marker")&&i(e,e.marker.color,"marker","c"),r(e,"marker.line")&&i(e,e.marker.line.color,"marker.line","c"))}},{"../../components/colorscale/calc":592,"../../components/colorscale/has_colorscale":599,"./subtypes":821}],806:[function(e,t,n){"use strict";t.exports={PTS_LINESONLY:20}},{}],807:[function(e,t,n){"use strict";var r=e("../../lib"),i=e("./attributes"),a=e("./constants"),o=e("./subtypes"),s=e("./xy_defaults"),c=e("./marker_defaults"),l=e("./line_defaults"),u=e("./line_shape_defaults"),d=e("./text_defaults"),p=e("./fillcolor_defaults"),f=e("../../components/errorbars/defaults");t.exports=function(e,t,n,h){function m(n,a){return r.coerce(e,t,i,n,a)}var g=s(e,t,h,m),v=g<a.PTS_LINESONLY?"lines+markers":"lines";if(!g)return void(t.visible=!1);m("customdata"),m("text"),m("hovertext"),m("mode",v),m("ids"),o.hasLines(t)&&(l(e,t,n,h,m),u(e,t,m),m("connectgaps"),m("line.simplify")),o.hasMarkers(t)&&c(e,t,n,h,m,{gradient:!0}),o.hasText(t)&&d(e,t,h,m);var b=[];(o.hasMarkers(t)||o.hasText(t))&&(m("marker.maxdisplayed"),b.push("points")),m("fill"),"none"!==t.fill&&(p(e,t,n,m),o.hasLines(t)||u(e,t,m)),"tonext"!==t.fill&&"toself"!==t.fill||b.push("fills"),m("hoveron",b.join("+")||"points"),f(e,t,n,{axis:"y"}),f(e,t,n,{axis:"x",inherit:"y"})}},{"../../components/errorbars/defaults":615,"../../lib":697,"./attributes":801,"./constants":806,"./fillcolor_defaults":808,"./line_defaults":812,"./line_shape_defaults":814,"./marker_defaults":817,"./subtypes":821,"./text_defaults":822,"./xy_defaults":823}],808:[function(e,t,n){"use strict";var r=e("../../components/color");t.exports=function(e,t,n,i){var a=!1;if(t.marker){var o=t.marker.color,s=(t.marker.line||{}).color;o&&!Array.isArray(o)?a=o:s&&!Array.isArray(s)&&(a=s)}i("fillcolor",r.addOpacity((t.line||{}).color||a||n,.5))}},{"../../components/color":586}],809:[function(e,t,n){"use strict";var r=e("../../components/color"),i=e("./subtypes");t.exports=function(e,t){var n,a;if("lines"===e.mode)return n=e.line.color,n&&r.opacity(n)?n:e.fillcolor;if("none"===e.mode)return e.fill?e.fillcolor:"";var o=t.mcc||(e.marker||{}).color,s=t.mlcc||((e.marker||{}).line||{}).color;return a=o&&r.opacity(o)?o:s&&r.opacity(s)&&(t.mlw||((e.marker||{}).line||{}).width)?s:"",a?r.opacity(a)<.3?r.addOpacity(a,.3):a:(n=(e.line||{}).color,n&&r.opacity(n)&&i.hasLines(e)&&e.line.width?n:e.fillcolor)}},{"../../components/color":586,"./subtypes":821}],810:[function(e,t,n){"use strict";var r=e("../../lib"),i=e("../../components/fx"),a=e("../../components/errorbars"),o=e("./get_trace_color"),s=e("../../components/color"),c=i.constants.MAXDIST;t.exports=function(e,t,n,l){var u=e.cd,d=u[0].trace,p=e.xa,f=e.ya,h=p.c2p(t),m=f.c2p(n),g=[h,m];if(-1!==d.hoveron.indexOf("points")){var v=function(e){var t=Math.max(3,e.mrc||0);return Math.max(Math.abs(p.c2p(e.x)-h)-t,1-3/t)},b=function(e){var t=Math.max(3,e.mrc||0);return Math.max(Math.abs(f.c2p(e.y)-m)-t,1-3/t)},y=function(e){var t=Math.max(3,e.mrc||0),n=p.c2p(e.x)-h,r=f.c2p(e.y)-m;return Math.max(Math.sqrt(n*n+r*r)-t,1-3/t)},x=i.getDistanceFunction(l,v,b,y);if(i.getClosest(u,x,e),!1!==e.index){var M=u[e.index],_=p.c2p(M.x,!0),w=f.c2p(M.y,!0),A=M.mrc||1;return r.extendFlat(e,{color:o(d,M),x0:_-A,x1:_+A,xLabelVal:M.x,y0:w-A,y1:w+A,yLabelVal:M.y}),M.htx?e.text=M.htx:d.hovertext?e.text=d.hovertext:M.tx?e.text=M.tx:d.text&&(e.text=d.text),a.hoverInfo(M,d,e),[e]}}if(-1!==d.hoveron.indexOf("fills")&&d._polygons){var S,k,$,T,C,E,O,z,L,N=d._polygons,P=[],I=!1,D=1/0,R=-1/0,j=1/0,q=-1/0;for(S=0;S<N.length;S++)$=N[S],$.contains(g)&&(I=!I,P.push($),j=Math.min(j,$.ymin),q=Math.max(q,$.ymax));if(I){j=Math.max(j,0),q=Math.min(q,f._length);var B=(j+q)/2;for(S=0;S<P.length;S++)for(T=P[S].pts,k=1;k<T.length;k++)z=T[k-1][1],L=T[k][1],z>B!=L>=B&&(E=T[k-1][0],O=T[k][0],C=E+(O-E)*(B-z)/(L-z),D=Math.min(D,C),R=Math.max(R,C));D=Math.max(D,0),R=Math.min(R,p._length);var W=s.defaultLine;return s.opacity(d.fillcolor)?W=d.fillcolor:s.opacity((d.line||{}).color)&&(W=d.line.color),r.extendFlat(e,{distance:c+10,x0:D,x1:R,y0:B,y1:B,color:W}),delete e.index,d.text&&!Array.isArray(d.text)?e.text=String(d.text):e.text=d.name,[e]}}}},{"../../components/color":586,"../../components/errorbars":616,"../../components/fx":627,"../../lib":697,"./get_trace_color":809}],811:[function(e,t,n){"use strict";var r={},i=e("./subtypes");r.hasLines=i.hasLines,r.hasMarkers=i.hasMarkers,r.hasText=i.hasText,r.isBubble=i.isBubble,r.attributes=e("./attributes"),r.supplyDefaults=e("./defaults"),r.cleanData=e("./clean_data"),r.calc=e("./calc"),r.arraysToCalcdata=e("./arrays_to_calcdata"),r.plot=e("./plot"),r.colorbar=e("./colorbar"),r.style=e("./style"),r.hoverPoints=e("./hover"),r.selectPoints=e("./select"),r.animatable=!0,r.moduleType="trace",r.name="scatter",r.basePlotModule=e("../../plots/cartesian"),r.categories=["cartesian","symbols","markerColorscale","errorBarsOK","showLegend"],r.meta={description:["The scatter trace type encompasses line charts, scatter charts, text charts, and bubble charts.","The data visualized as scatter point or lines is set in `x` and `y`.","Text (appearing either on the chart or on hover only) is via `text`.","Bubble charts are achieved by setting `marker.size` and/or `marker.color`","to numerical arrays."].join(" ")},t.exports=r},{
76"../../plots/cartesian":742,"./arrays_to_calcdata":800,"./attributes":801,"./calc":802,"./clean_data":803,"./colorbar":804,"./defaults":807,"./hover":810,"./plot":818,"./select":819,"./style":820,"./subtypes":821}],812:[function(e,t,n){"use strict";var r=e("../../components/colorscale/has_colorscale"),i=e("../../components/colorscale/defaults");t.exports=function(e,t,n,a,o,s){var c=(e.marker||{}).color;if(o("line.color",n),r(e,"line"))i(e,t,a,o,{prefix:"line.",cLetter:"c"});else{o("line.color",!Array.isArray(c)&&c||n)}o("line.width"),(s||{}).noDash||o("line.dash")}},{"../../components/colorscale/defaults":595,"../../components/colorscale/has_colorscale":599}],813:[function(e,t,n){"use strict";var r=e("../../constants/numerical").BADNUM;t.exports=function(e,t){function n(t){var n=M.c2p(e[t].x),i=_.c2p(e[t].y);return n!==r&&i!==r&&[n,i]}function i(e){var t=e[0]/M._length,n=e[1]/_._length;return(1+10*Math.max(0,-t,t-1,-n,n-1))*S}var a,o,s,c,l,u,d,p,f,h,m,g,v,b,y,x,M=t.xaxis,_=t.yaxis,w=t.simplify,A=t.connectGaps,S=t.baseTolerance,k=t.linear,$=[],T=.2,C=new Array(e.length),E=0;for(w||(S=T=-1),a=0;a<e.length;a++)if(o=n(a)){for(E=0,C[E++]=o,a++;a<e.length;a++){if(!(c=n(a))){if(A)continue;break}if(k){if(!((d=function(e,t){var n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}(c,o))<i(c)*T)){for(f=[(c[0]-o[0])/d,(c[1]-o[1])/d],l=o,m=d,g=b=y=0,p=!1,s=c,a++;a<e.length;a++){if(!(u=n(a))){if(A)continue;break}if(h=[u[0]-o[0],u[1]-o[1]],x=h[0]*f[1]-h[1]*f[0],b=Math.min(b,x),(y=Math.max(y,x))-b>i(u))break;s=u,v=h[0]*f[0]+h[1]*f[1],v>m?(m=v,c=u,p=!1):v<g&&(g=v,l=u,p=!0)}if(p?(C[E++]=c,s!==l&&(C[E++]=l)):(l!==o&&(C[E++]=l),s!==c&&(C[E++]=c)),C[E++]=s,a>=e.length||!u)break;C[E++]=u,o=u}}else C[E++]=c}$.push(C.slice(0,E))}return $}},{"../../constants/numerical":683}],814:[function(e,t,n){"use strict";t.exports=function(e,t,n){"spline"===n("line.shape")&&n("line.smoothing")}},{}],815:[function(e,t,n){"use strict";t.exports=function(e,t,n){for(var r,i,a=null,o=0;o<n.length;++o)r=n[o],i=r[0].trace,!0===i.visible?(i._nexttrace=null,-1!==["tonextx","tonexty","tonext"].indexOf(i.fill)&&(i._prevtrace=a,a&&(a._nexttrace=i)),a=i):i._prevtrace=i._nexttrace=null}},{}],816:[function(e,t,n){"use strict";var r=e("fast-isnumeric");t.exports=function(e){var t=e.marker,n=t.sizeref||1,i=t.sizemin||0,a="area"===t.sizemode?function(e){return Math.sqrt(e/n)}:function(e){return e/n};return function(e){var t=a(e/2);return r(t)&&t>0?Math.max(t,i):0}}},{"fast-isnumeric":267}],817:[function(e,t,n){"use strict";var r=e("../../components/color"),i=e("../../components/colorscale/has_colorscale"),a=e("../../components/colorscale/defaults"),o=e("./subtypes");t.exports=function(e,t,n,s,c,l){var u,d=o.isBubble(e),p=(e.line||{}).color;if(l=l||{},p&&(n=p),c("marker.symbol"),c("marker.opacity",d?.7:1),c("marker.size"),c("marker.color",n),i(e,"marker")&&a(e,t,s,c,{prefix:"marker.",cLetter:"c"}),l.noLine||(u=p&&!Array.isArray(p)&&t.marker.color!==p?p:d?r.background:r.defaultLine,c("marker.line.color",u),i(e,"marker.line")&&a(e,t,s,c,{prefix:"marker.line.",cLetter:"c"}),c("marker.line.width",d?1:0)),d&&(c("marker.sizeref"),c("marker.sizemin"),c("marker.sizemode")),l.gradient){"none"!==c("marker.gradient.type")&&c("marker.gradient.color")}}},{"../../components/color":586,"../../components/colorscale/defaults":595,"../../components/colorscale/has_colorscale":599,"./subtypes":821}],818:[function(e,t,n){"use strict";function r(e,t){var n;t.selectAll("g.trace").each(function(e){var t=o.select(this);if(n=e[0].trace,n._nexttrace){if(n._nextFill=t.select(".js-fill.js-tonext"),!n._nextFill.size()){var r=":first-child";t.select(".js-fill.js-tozero").size()&&(r+=" + *"),n._nextFill=t.insert("path",r).attr("class","js-fill js-tonext")}}else t.selectAll(".js-fill.js-tonext").remove(),n._nextFill=null;n.fill&&("tozero"===n.fill.substr(0,6)||"toself"===n.fill||"to"===n.fill.substr(0,2)&&!n._prevtrace)?(n._ownFill=t.select(".js-fill.js-tozero"),n._ownFill.size()||(n._ownFill=t.insert("path",":first-child").attr("class","js-fill js-tozero"))):(t.selectAll(".js-fill.js-tozero").remove(),n._ownFill=null)})}function i(e,t,n,r,i,p,h){function m(e){return w?e.transition():e}function g(e){return e.filter(function(e){return e.vis})}function v(e){return e.id}function b(e){if(e.ids)return v}function y(){return!1}function x(t){var n,r,i,a=t[0].trace,l=o.select(this),d=u.hasMarkers(a),p=u.hasText(a),f=b(a),h=y,v=y;d&&(h=a.marker.maxdisplayed||a._needsCull?g:s.identity),p&&(v=a.marker.maxdisplayed||a._needsCull?g:s.identity),r=l.selectAll("path.point"),n=r.data(h,f);var x=n.enter().append("path").classed("point",!0);x.call(c.pointStyle,a).call(c.translatePoints,A,S,a),w&&x.style("opacity",0).transition().style("opacity",1);var M=d&&c.tryColorscale(a.marker,""),_=d&&c.tryColorscale(a.marker,"line");n.each(function(t){var n=o.select(this),r=m(n);(i=c.translatePoint(t,r,A,S))&&(c.singlePointStyle(t,r,a,M,_,e),a.customdata&&n.classed("plotly-customdata",null!==t.data&&void 0!==t.data))}),w?n.exit().transition().style("opacity",0).remove():n.exit().remove(),r=l.selectAll("g"),n=r.data(v,f),n.enter().append("g").classed("textpoint",!0).append("text"),n.each(function(e){var t=o.select(this),n=m(t.select("text"));(i=c.translatePoint(e,n,A,S))||t.remove()}),n.selectAll("text").call(c.textPointStyle,a).each(function(e){var t=e.xp||A.c2p(e.x),n=e.yp||S.c2p(e.y);o.select(this).selectAll("tspan.line").each(function(){m(o.select(this)).attr({x:t,y:n})})}),n.exit().remove()}var M,_;a(e,t,n,r,i);var w=!!h&&h.duration>0,A=n.xaxis,S=n.yaxis,k=r[0].trace,$=k.line,T=o.select(p);if(T.call(l.plot,n,h),!0===k.visible){m(T).style("opacity",k.opacity);var C,E,O=k.fill.charAt(k.fill.length-1);"x"!==O&&"y"!==O&&(O=""),r[0].node3=T;var z="",L=[],N=k._prevtrace;N&&(z=N._prevRevpath||"",E=N._nextFill,L=N._polygons);var P,I,D,R,j,q,B,W,H,F="",X="",U=[],V=[],G=s.noop;if(C=k._ownFill,u.hasLines(k)||"none"!==k.fill){for(E&&E.datum(r),-1!==["hv","vh","hvh","vhv"].indexOf($.shape)?(D=c.steps($.shape),R=c.steps($.shape.split("").reverse().join(""))):D=R="spline"===$.shape?function(e){var t=e[e.length-1];return e[0][0]===t[0]&&e[0][1]===t[1]?c.smoothclosed(e.slice(1),$.smoothing):c.smoothopen(e,$.smoothing)}:function(e){return"M"+e.join("L")},j=function(e){return R(e.reverse())},U=d(r,{xaxis:A,yaxis:S,connectGaps:k.connectgaps,baseTolerance:Math.max($.width||1,3)/4,linear:"linear"===$.shape,simplify:$.simplify}),H=k._polygons=new Array(U.length),_=0;_<U.length;_++)k._polygons[_]=f(U[_]);U.length&&(q=U[0][0],B=U[U.length-1],W=B[B.length-1]),V=U.filter(function(e){return e.length>1}),G=function(e){return function(t){if(P=D(t),I=j(t),F?O?(F+="L"+P.substr(1),X=I+"L"+X.substr(1)):(F+="Z"+P,X=I+"Z"+X):(F=P,X=I),u.hasLines(k)&&t.length>1){var n=o.select(this);if(n.datum(r),e)m(n.style("opacity",0).attr("d",P).call(c.lineGroupStyle)).style("opacity",1);else{var i=m(n);i.attr("d",P),c.singleLineStyle(r,i)}}}}}var Y=T.selectAll(".js-line").data(V);m(Y.exit()).style("opacity",0).remove(),Y.each(G(!1)),Y.enter().append("path").classed("js-line",!0).style("vector-effect","non-scaling-stroke").call(c.lineGroupStyle).each(G(!0)),U.length&&(C?q&&W&&(O?("y"===O?q[1]=W[1]=S.c2p(0,!0):"x"===O&&(q[0]=W[0]=A.c2p(0,!0)),m(C).attr("d","M"+W+"L"+q+"L"+F.substr(1))):m(C).attr("d",F+"Z")):"tonext"===k.fill.substr(0,6)&&F&&z&&("tonext"===k.fill?m(E).attr("d",F+"Z"+z+"Z"):m(E).attr("d",F+"L"+z.substr(1)+"Z"),k._polygons=k._polygons.concat(L)),k._prevRevpath=X,k._prevPolygons=H);var Q=T.selectAll(".points");M=Q.data([r]),Q.each(x),M.enter().append("g").classed("points",!0).each(x),M.exit().remove()}}function a(e,t,n,r,i){var a=n.xaxis,c=n.yaxis,l=o.extent(s.simpleMap(a.range,a.r2c)),d=o.extent(s.simpleMap(c.range,c.r2c)),p=r[0].trace;if(u.hasMarkers(p)){var f=p.marker.maxdisplayed;if(0!==f){var h=r.filter(function(e){return e.x>=l[0]&&e.x<=l[1]&&e.y>=d[0]&&e.y<=d[1]}),m=Math.ceil(h.length/f),g=0;i.forEach(function(e,n){var r=e[0].trace;u.hasMarkers(r)&&r.marker.maxdisplayed>0&&n<t&&g++});var v=Math.round(g*m/3+Math.floor(g/3)*m/7.1);r.forEach(function(e){delete e.vis}),h.forEach(function(e,t){0===Math.round((t+v)%m)&&(e.vis=!0)})}}}var o=e("d3"),s=e("../../lib"),c=e("../../components/drawing"),l=e("../../components/errorbars"),u=e("./subtypes"),d=e("./line_points"),p=e("./link_traces"),f=e("../../lib/polygon").tester;t.exports=function(e,t,n,a,s){var c,l,u,d,f,h=t.plot.select("g.scatterlayer"),m=!a,g=!!a&&a.duration>0;for(u=h.selectAll("g.trace"),d=u.data(n,function(e){return e[0].trace.uid}),d.enter().append("g").attr("class",function(e){return"trace scatter trace"+e[0].trace.uid}).style("stroke-miterlimit",2),p(e,t,n),r(e,h),c=0,l={};c<n.length;c++)l[n[c][0].trace.uid]=c;if(h.selectAll("g.trace").sort(function(e,t){return l[e[0].trace.uid]>l[t[0].trace.uid]?1:-1}),g){s&&(f=s());o.transition().duration(a.duration).ease(a.easing).each("end",function(){f&&f()}).each("interrupt",function(){f&&f()}).each(function(){h.selectAll("g.trace").each(function(r,o){i(e,o,t,r,n,this,a)})})}else h.selectAll("g.trace").each(function(r,o){i(e,o,t,r,n,this,a)});m&&d.exit().remove(),h.selectAll("path:not([d])").remove()}},{"../../components/drawing":610,"../../components/errorbars":616,"../../lib":697,"../../lib/polygon":707,"./line_points":813,"./link_traces":815,"./subtypes":821,d3:265}],819:[function(e,t,n){"use strict";var r=e("./subtypes");t.exports=function(e,t){var n,i,a,o,s=e.cd,c=e.xaxis,l=e.yaxis,u=[],d=s[0].trace,p=d.index,f=d.marker,h=!r.hasMarkers(d)&&!r.hasText(d);if(!0===d.visible&&!h){var m=Array.isArray(f.opacity)?1:f.opacity;if(!1===t)for(n=0;n<s.length;n++)s[n].dim=0;else for(n=0;n<s.length;n++)i=s[n],a=c.c2p(i.x),o=l.c2p(i.y),t.contains([a,o])?(u.push({curveNumber:p,pointNumber:n,x:i.x,y:i.y,id:i.id}),i.dim=0):i.dim=1;return s[0].node3.selectAll("path.point").style("opacity",function(e){return((e.mo+1||m+1)-1)*(e.dim?.2:1)}),s[0].node3.selectAll("text").style("opacity",function(e){return e.dim?.2:1}),u}}},{"./subtypes":821}],820:[function(e,t,n){"use strict";var r=e("d3"),i=e("../../components/drawing"),a=e("../../components/errorbars");t.exports=function(e){var t=r.select(e).selectAll("g.trace.scatter");t.style("opacity",function(e){return e[0].trace.opacity}),t.selectAll("g.points").each(function(e){var t=r.select(this),n=t.selectAll("path.point"),a=e.trace||e[0].trace;n.call(i.pointStyle,a),t.selectAll("text").call(i.textPointStyle,a)}),t.selectAll("g.trace path.js-line").call(i.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(i.fillGroupStyle),t.call(a.style)}},{"../../components/drawing":610,"../../components/errorbars":616,d3:265}],821:[function(e,t,n){"use strict";var r=e("../../lib");t.exports={hasLines:function(e){return e.visible&&e.mode&&-1!==e.mode.indexOf("lines")},hasMarkers:function(e){return e.visible&&e.mode&&-1!==e.mode.indexOf("markers")},hasText:function(e){return e.visible&&e.mode&&-1!==e.mode.indexOf("text")},isBubble:function(e){return r.isPlainObject(e.marker)&&Array.isArray(e.marker.size)}}},{"../../lib":697}],822:[function(e,t,n){"use strict";var r=e("../../lib");t.exports=function(e,t,n,i){i("textposition"),r.coerceFont(i,"textfont",n.font)}},{"../../lib":697}],823:[function(e,t,n){"use strict";var r=e("../../registry");t.exports=function(e,t,n,i){var a,o=i("x"),s=i("y");if(r.getComponentMethod("calendars","handleTraceDefaults")(e,t,["x","y"],n),o)s?(a=Math.min(o.length,s.length),a<o.length&&(t.x=o.slice(0,a)),a<s.length&&(t.y=s.slice(0,a))):(a=o.length,i("y0"),i("dy"));else{if(!s)return 0;a=t.y.length,i("x0"),i("dx")}return a}},{"../../registry":767}],824:[function(e,t,n){function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(d===setTimeout)return setTimeout(e,0);if((d===r||!d)&&setTimeout)return d=setTimeout,setTimeout(e,0);try{return d(e,0)}catch(t){try{return d.call(null,e,0)}catch(t){return d.call(this,e,0)}}}function o(e){if(p===clearTimeout)return clearTimeout(e);if((p===i||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function s(){g&&h&&(g=!1,h.length?m=h.concat(m):v=-1,m.length&&c())}function c(){if(!g){var e=a(s);g=!0;for(var t=m.length;t;){for(h=m,m=[];++v<t;)h&&h[v].run();v=-1,t=m.length}h=null,g=!1,o(e)}}function l(e,t){this.fun=e,this.array=t}function u(){}var d,p,f=t.exports={};!function(){try{d="function"==typeof setTimeout?setTimeout:r}catch(e){d=r}try{p="function"==typeof clearTimeout?clearTimeout:i}catch(e){p=i}}();var h,m=[],g=!1,v=-1;f.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];m.push(new l(e,t)),1!==m.length||g||a(c)},l.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=u,f.addListener=u,f.once=u,f.off=u,f.removeListener=u,f.removeAllListeners=u,f.emit=u,f.prependListener=u,f.prependOnceListener=u,f.listeners=function(e){return[]},f.binding=function(e){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(e){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},{}],825:[function(e,t,n){!function(e,r){"object"===(void 0===n?"undefined":_typeof2(n))&&void 0!==t?t.exports=r():"function"==typeof define&&define.amd?define(r):e.Sweetalert2=r()}(this,function(){"use strict";var e={title:"",titleText:"",text:"",html:"",type:null,customClass:"",target:"body",animation:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,showConfirmButton:!0,showCancelButton:!1,preConfirm:null,confirmButtonText:"OK",confirmButtonColor:"#3085d6",confirmButtonClass:null,cancelButtonText:"Cancel",cancelButtonColor:"#aaa",cancelButtonClass:null,buttonsStyling:!0,reverseButtons:!1,focusCancel:!1,showCloseButton:!1,showLoaderOnConfirm:!1,imageUrl:null,imageWidth:null,imageHeight:null,imageClass:null,timer:null,width:500,padding:20,background:"#fff",input:null,inputPlaceholder:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputClass:null,inputAttributes:{},inputValidator:null,progressSteps:[],currentProgressStep:null,progressStepsDistance:"40px",onOpen:null,onClose:null,useRejections:!0},t=function(e){var t={};for(var n in e)t[e[n]]="swal2-"+e[n];return t},n=t(["container","shown","iosfix","modal","overlay","fade","show","hide","noanimation","close","title","content","buttonswrapper","confirm","cancel","icon","image","input","file","range","select","radio","checkbox","textarea","inputerror","validationerror","progresssteps","activeprogressstep","progresscircle","progressline","loading","styled"]),r=t(["success","warning","info","question","error"]),i=function(e,t){e=String(e).replace(/[^0-9a-f]/gi,""),e.length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),t=t||0;for(var n="#",r=0;r<3;r++){var i=parseInt(e.substr(2*r,2),16);i=Math.round(Math.min(Math.max(0,i+i*t),255)).toString(16),n+=("00"+i).substr(i.length)}return n},a=function(e){var t=[];for(var n in e)-1===t.indexOf(e[n])&&t.push(e[n]);return t},o={previousWindowKeyDown:null,previousActiveElement:null,previousBodyPadding:null},s=function(e){var t=l();if(t&&t.parentNode.removeChild(t),"undefined"!=typeof document){var r=document.createElement("div");r.className=n.container,r.innerHTML=c;("string"==typeof e.target?document.querySelector(e.target):e.target).appendChild(r);var i=u(),a=$(i,n.input),o=$(i,n.file),s=i.querySelector("."+n.range+" input"),d=i.querySelector("."+n.range+" output"),p=$(i,n.select),f=i.querySelector("."+n.checkbox+" input"),h=$(i,n.textarea);return a.oninput=function(){Y.resetValidationError()},a.onkeydown=function(t){setTimeout(function(){13===t.keyCode&&e.allowEnterKey&&(t.stopPropagation(),Y.clickConfirm())},0)},o.onchange=function(){Y.resetValidationError()},s.oninput=function(){Y.resetValidationError(),d.value=s.value},s.onchange=function(){Y.resetValidationError(),s.previousSibling.value=s.value},p.onchange=function(){Y.resetValidationError()},f.onchange=function(){Y.resetValidationError()},h.oninput=function(){Y.resetValidationError()},i}},c=('\n <div role="dialog" aria-labelledby="'+n.title+'" aria-describedby="'+n.content+'" class="'+n.modal+'" tabindex="-1">\n <ul class="'+n.progresssteps+'"></ul>\n <div class="'+n.icon+" "+r.error+'">\n <span class="swal2-x-mark"><span class="swal2-x-mark-line-left"></span><span class="swal2-x-mark-line-right"></span></span>\n </div>\n <div class="'+n.icon+" "+r.question+'">?</div>\n <div class="'+n.icon+" "+r.warning+'">!</div>\n <div class="'+n.icon+" "+r.info+'">i</div>\n <div class="'+n.icon+" "+r.success+'">\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n </div>\n <img class="'+n.image+'" />\n <h2 class="'+n.title+'" id="'+n.title+'"></h2>\n <div id="'+n.content+'" class="'+n.content+'"></div>\n <input class="'+n.input+'" />\n <input type="file" class="'+n.file+'" />\n <div class="'+n.range+'">\n <output></output>\n <input type="range" />\n </div>\n <select class="'+n.select+'"></select>\n <div class="'+n.radio+'"></div>\n <label for="'+n.checkbox+'" class="'+n.checkbox+'">\n <input type="checkbox" />\n </label>\n <textarea class="'+n.textarea+'"></textarea>\n <div class="'+n.validationerror+'"></div>\n <div class="'+n.buttonswrapper+'">\n <button type="button" class="'+n.confirm+'">OK</button>\n <button type="button" class="'+n.cancel+'">Cancel</button>\n </div>\n <button type="button" class="'+n.close+'" aria-label="Close this dialog">×</button>\n </div>\n').replace(/(^|\n)\s*/g,""),l=function(){return document.body.querySelector("."+n.container)},u=function(){return l()?l().querySelector("."+n.modal):null},d=function(){return u().querySelectorAll("."+n.icon)},p=function(e){return l()?l().querySelector("."+e):null},f=function(){return p(n.title)},h=function(){return p(n.content)},m=function(){return p(n.image)},g=function(){return p(n.buttonswrapper)},v=function(){return p(n.progresssteps)},b=function(){return p(n.validationerror)},y=function(){return p(n.confirm)},x=function(){return p(n.cancel)},M=function(){return p(n.close)},_=function(e){var t=[y(),x()];e&&t.reverse();var n=Array.from(u().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(function(e,t){return e=parseInt(e.getAttribute("tabindex")),t=parseInt(t.getAttribute("tabindex")),e>t?1:e<t?-1:0}),r=Array.prototype.slice.call(u().querySelectorAll('button, input:not([type=hidden]), textarea, select, a, [tabindex="0"]'));return a(t.concat(n,r))},w=function(e,t){return!!e.classList&&e.classList.contains(t)},A=function(e){if(e.focus(),"file"!==e.type){var t=e.value;e.value="",e.value=t}},S=function(e,t){if(e&&t){t.split(/\s+/).filter(Boolean).forEach(function(t){e.classList.add(t)})}},k=function(e,t){if(e&&t){t.split(/\s+/).filter(Boolean).forEach(function(t){e.classList.remove(t)})}},$=function(e,t){for(var n=0;n<e.childNodes.length;n++)if(w(e.childNodes[n],t))return e.childNodes[n]},T=function(e,t){t||(t="block"),e.style.opacity="",e.style.display=t},C=function(e){e.style.opacity="",e.style.display="none"},E=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},O=function(e){return e.offsetWidth||e.offsetHeight||e.getClientRects().length},z=function(e,t){e.style.removeProperty?e.style.removeProperty(t):e.style.removeAttribute(t)},L=function(e){if(!O(e))return!1;if("function"==typeof MouseEvent){var t=new MouseEvent("click",{view:window,bubbles:!1,cancelable:!0});e.dispatchEvent(t)}else if(document.createEvent){var n=document.createEvent("MouseEvents");n.initEvent("click",!1,!1),e.dispatchEvent(n)}else document.createEventObject?e.fireEvent("onclick"):"function"==typeof e.onclick&&e.onclick()},N=function(){var e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",msAnimation:"MSAnimationEnd",animation:"animationend"};for(var n in t)if(t.hasOwnProperty(n)&&void 0!==e.style[n])return t[n];return!1}(),P=function(){if(window.onkeydown=o.previousWindowKeyDown,o.previousActiveElement&&o.previousActiveElement.focus){var e=window.scrollX,t=window.scrollY;o.previousActiveElement.focus(),e&&t&&window.scrollTo(e,t)}},I=function(){if("ontouchstart"in window||navigator.msMaxTouchPoints)return 0;var e=document.createElement("div");e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t},D=function(e,t){var n=void 0;return function(){var r=function(){n=null,e()};clearTimeout(n),n=setTimeout(r,t)}},R="function"==typeof Symbol&&"symbol"===_typeof2(Symbol.iterator)?function(e){return void 0===e?"undefined":_typeof2(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":_typeof2(e)},j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},q=j({},e),B=[],W=void 0,H=function(e){("string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(e.target="body");var t=void 0,i=u(),a="string"==typeof e.target?document.querySelector(e.target):e.target;t=i&&a&&i.parentNode!==a.parentNode?s(e):i||s(e);for(var o in e)Y.isValidParameter(o);t.style.width="number"==typeof e.width?e.width+"px":e.width,t.style.padding=e.padding+"px",t.style.background=e.background;for(var c=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),l=0;l<c.length;l++)c[l].style.background=e.background;var p=f(),b=h(),_=g(),w=y(),A=x(),$=M();if(e.titleText?p.innerText=e.titleText:p.innerHTML=e.title.split("\n").join("<br />"),e.text||e.html){if("object"===R(e.html))if(b.innerHTML="",0 in e.html)for(var O=0;O in e.html;O++)b.appendChild(e.html[O].cloneNode(!0));else b.appendChild(e.html.cloneNode(!0));else e.html?b.innerHTML=e.html:e.text&&(b.textContent=e.text);T(b)}else C(b);e.showCloseButton?T($):C($),t.className=n.modal,e.customClass&&S(t,e.customClass);var L=v(),N=parseInt(null===e.currentProgressStep?Y.getQueueStep():e.currentProgressStep,10);e.progressSteps.length?(T(L),E(L),e.progressSteps.length,e.progressSteps.forEach(function(t,r){var i=document.createElement("li");if(S(i,n.progresscircle),i.innerHTML=t,r===N&&S(i,n.activeprogressstep),L.appendChild(i),r!==e.progressSteps.length-1){var a=document.createElement("li");S(a,n.progressline),a.style.width=e.progressStepsDistance,L.appendChild(a)}})):C(L);for(var P=d(),I=0;I<P.length;I++)C(P[I]);if(e.type){var D=!1;for(var j in r)if(e.type===j){D=!0;break}if(!D)return!1;var q=t.querySelector("."+n.icon+"."+r[e.type]);if(T(q),e.animation)switch(e.type){case"success":S(q,"swal2-animate-success-icon"),S(q.querySelector(".swal2-success-line-tip"),"swal2-animate-success-line-tip"),S(q.querySelector(".swal2-success-line-long"),"swal2-animate-success-line-long");break;case"error":S(q,"swal2-animate-error-icon"),S(q.querySelector(".swal2-x-mark"),"swal2-animate-x-mark")}}var B=m();e.imageUrl?(B.setAttribute("src",e.imageUrl),T(B),e.imageWidth?B.setAttribute("width",e.imageWidth):B.removeAttribute("width"),e.imageHeight?B.setAttribute("height",e.imageHeight):B.removeAttribute("height"),B.className=n.image,e.imageClass&&S(B,e.imageClass)):C(B),e.showCancelButton?A.style.display="inline-block":C(A),e.showConfirmButton?z(w,"display"):C(w),e.showConfirmButton||e.showCancelButton?T(_):C(_),w.innerHTML=e.confirmButtonText,A.innerHTML=e.cancelButtonText,e.buttonsStyling&&(w.style.backgroundColor=e.confirmButtonColor,A.style.backgroundColor=e.cancelButtonColor),w.className=n.confirm,S(w,e.confirmButtonClass),A.className=n.cancel,S(A,e.cancelButtonClass),e.buttonsStyling?(S(w,n.styled),S(A,n.styled)):(k(w,n.styled),k(A,n.styled),w.style.backgroundColor=w.style.borderLeftColor=w.style.borderRightColor="",A.style.backgroundColor=A.style.borderLeftColor=A.style.borderRightColor=""),!0===e.animation?k(t,n.noanimation):S(t,n.noanimation),e.showLoaderOnConfirm&&e.preConfirm},F=function(e,t){var r=l(),i=u();e?(S(i,n.show),S(r,n.fade),k(i,n.hide)):k(i,n.fade),T(i),r.style.overflowY="hidden",N&&!w(i,n.noanimation)?i.addEventListener(N,function e(){i.removeEventListener(N,e),r.style.overflowY="auto"}):r.style.overflowY="auto",S(document.documentElement,n.shown),S(document.body,n.shown),S(r,n.shown),X(),V(),o.previousActiveElement=document.activeElement,null!==t&&"function"==typeof t&&setTimeout(function(){t(i)})},X=function(){null===o.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(o.previousBodyPadding=document.body.style.paddingRight,document.body.style.paddingRight=I()+"px")},U=function(){null!==o.previousBodyPadding&&(document.body.style.paddingRight=o.previousBodyPadding,o.previousBodyPadding=null)},V=function(){if(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&!w(document.body,n.iosfix)){var e=document.body.scrollTop;document.body.style.top=-1*e+"px",S(document.body,n.iosfix)}},G=function(){if(w(document.body,n.iosfix)){var e=parseInt(document.body.style.top,10);k(document.body,n.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}},Y=function e(){for(var t=arguments.length,r=Array(t),a=0;a<t;a++)r[a]=arguments[a];if(void 0===r[0])return!1;var s=j({},q);switch(R(r[0])){case"string":s.title=r[0],s.html=r[1],s.type=r[2];break;case"object":j(s,r[0]),s.extraParams=r[0].extraParams,"email"===s.input&&null===s.inputValidator&&(s.inputValidator=function(e){return new Promise(function(t,n){/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/.test(e)?t():n("Invalid email address")})}),"url"===s.input&&null===s.inputValidator&&(s.inputValidator=function(e){return new Promise(function(t,n){/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&\/\/=]*)$/.test(e)?t():n("Invalid URL")})});break;default:return!1}H(s);var c=l(),d=u();return new Promise(function(t,r){s.timer&&(d.timeout=setTimeout(function(){e.closeModal(s.onClose),s.useRejections?r("timer"):t({dismiss:"timer"})},s.timer));var a=function(e){if(!(e=e||s.input))return null;switch(e){case"select":case"textarea":case"file":return $(d,n[e]);case"checkbox":return d.querySelector("."+n.checkbox+" input");case"radio":return d.querySelector("."+n.radio+" input:checked")||d.querySelector("."+n.radio+" input:first-child");case"range":return d.querySelector("."+n.range+" input");default:return $(d,n.input)}},p=function(){var e=a();if(!e)return null;switch(s.input){case"checkbox":return e.checked?1:0;case"radio":return e.checked?e.value:null;case"file":return e.files.length?e.files[0]:null;default:return s.inputAutoTrim?e.value.trim():e.value}};s.input&&setTimeout(function(){var e=a();e&&A(e)},0);for(var w=function(n){s.showLoaderOnConfirm&&e.showLoading(),s.preConfirm?s.preConfirm(n,s.extraParams).then(function(r){e.closeModal(s.onClose),t(r||n)},function(t){e.hideLoading(),t&&e.showValidationError(t)}):(e.closeModal(s.onClose),t(s.useRejections?n:{value:n}))},E=function(n){var a=n||window.event,o=a.target||a.srcElement,c=y(),l=x(),u=c&&(c===o||c.contains(o)),d=l&&(l===o||l.contains(o));switch(a.type){case"mouseover":case"mouseup":s.buttonsStyling&&(u?c.style.backgroundColor=i(s.confirmButtonColor,-.1):d&&(l.style.backgroundColor=i(s.cancelButtonColor,-.1)));break;case"mouseout":s.buttonsStyling&&(u?c.style.backgroundColor=s.confirmButtonColor:d&&(l.style.backgroundColor=s.cancelButtonColor));break;case"mousedown":s.buttonsStyling&&(u?c.style.backgroundColor=i(s.confirmButtonColor,-.2):d&&(l.style.backgroundColor=i(s.cancelButtonColor,-.2)));break;case"click":if(u&&e.isVisible())if(e.disableButtons(),s.input){var f=p();s.inputValidator?(e.disableInput(),s.inputValidator(f,s.extraParams).then(function(){e.enableButtons(),e.enableInput(),w(f)},function(t){e.enableButtons(),e.enableInput(),t&&e.showValidationError(t)})):w(f)}else w(!0);else d&&e.isVisible()&&(e.disableButtons(),e.closeModal(s.onClose),s.useRejections?r("cancel"):t({dismiss:"cancel"}))}},z=d.querySelectorAll("button"),N=0;N<z.length;N++)z[N].onclick=E,z[N].onmouseover=E,z[N].onmouseout=E,z[N].onmousedown=E;M().onclick=function(){e.closeModal(s.onClose),s.useRejections?r("close"):t({dismiss:"close"})},c.onclick=function(n){n.target===c&&s.allowOutsideClick&&(e.closeModal(s.onClose),s.useRejections?r("overlay"):t({dismiss:"overlay"}))};var P=g(),I=y(),j=x();s.reverseButtons?I.parentNode.insertBefore(j,I):I.parentNode.insertBefore(I,j);var q=function(e,t){for(var n=_(s.focusCancel),r=0;r<n.length;r++){e+=t,e===n.length?e=0:-1===e&&(e=n.length-1);var i=n[e];if(O(i))return i.focus()}},B=function(n){var i=n||window.event,a=i.keyCode||i.which;if(-1!==[9,13,32,27,37,38,39,40].indexOf(a)){for(var o=i.target||i.srcElement,c=_(s.focusCancel),l=-1,u=0;u<c.length;u++)if(o===c[u]){l=u;break}9===a?(i.shiftKey?q(l,-1):q(l,1),i.stopPropagation(),i.preventDefault()):37===a||38===a||39===a||40===a?document.activeElement===I&&O(j)?j.focus():document.activeElement===j&&O(I)&&I.focus():13===a||32===a?-1===l&&s.allowEnterKey&&(L(s.focusCancel?j:I),i.stopPropagation(),i.preventDefault()):27===a&&!0===s.allowEscapeKey&&(e.closeModal(s.onClose),s.useRejections?r("esc"):t({dismiss:"esc"}))}};window.onkeydown&&window.onkeydown.toString()===B.toString()||(o.previousWindowKeyDown=window.onkeydown,window.onkeydown=B),s.buttonsStyling&&(I.style.borderLeftColor=s.confirmButtonColor,I.style.borderRightColor=s.confirmButtonColor),e.hideLoading=e.disableLoading=function(){s.showConfirmButton||(C(I),s.showCancelButton||C(g())),k(P,n.loading),k(d,n.loading),I.disabled=!1,j.disabled=!1},e.getTitle=function(){return f()},e.getContent=function(){return h()},e.getInput=function(){return a()},e.getImage=function(){return m()},e.getButtonsWrapper=function(){return g()},e.getConfirmButton=function(){return y()},e.getCancelButton=function(){return x()},e.enableButtons=function(){I.disabled=!1,j.disabled=!1},e.disableButtons=function(){I.disabled=!0,j.disabled=!0},e.enableConfirmButton=function(){I.disabled=!1},e.disableConfirmButton=function(){I.disabled=!0},e.enableInput=function(){var e=a();if(!e)return!1;if("radio"===e.type)for(var t=e.parentNode.parentNode,n=t.querySelectorAll("input"),r=0;r<n.length;r++)n[r].disabled=!1;else e.disabled=!1},e.disableInput=function(){var e=a();if(!e)return!1;if(e&&"radio"===e.type)for(var t=e.parentNode.parentNode,n=t.querySelectorAll("input"),r=0;r<n.length;r++)n[r].disabled=!0;else e.disabled=!0},e.recalculateHeight=D(function(){var e=u();if(e){var t=e.style.display;e.style.minHeight="",T(e),e.style.minHeight=e.scrollHeight+1+"px",e.style.display=t}},50),e.showValidationError=function(e){var t=b();t.innerHTML=e,T(t);var r=a();r&&(A(r),S(r,n.inputerror))},e.resetValidationError=function(){var t=b();C(t),e.recalculateHeight();var r=a();r&&k(r,n.inputerror)},e.getProgressSteps=function(){return s.progressSteps},e.setProgressSteps=function(e){s.progressSteps=e,H(s)},e.showProgressSteps=function(){T(v())},e.hideProgressSteps=function(){C(v())},e.enableButtons(),e.hideLoading(),e.resetValidationError();for(var X=["input","file","range","select","radio","checkbox","textarea"],U=void 0,V=0;V<X.length;V++){var G=n[X[V]],Y=$(d,G);if(U=a(X[V])){for(var Q in U.attributes)if(U.attributes.hasOwnProperty(Q)){var K=U.attributes[Q].name;"type"!==K&&"value"!==K&&U.removeAttribute(K)}for(var Z in s.inputAttributes)U.setAttribute(Z,s.inputAttributes[Z])}Y.className=G,s.inputClass&&S(Y,s.inputClass),C(Y)}var J=void 0;switch(s.input){case"text":case"email":case"password":case"number":case"tel":case"url":U=$(d,n.input),U.value=s.inputValue,U.placeholder=s.inputPlaceholder,U.type=s.input,T(U)
77;break;case"file":U=$(d,n.file),U.placeholder=s.inputPlaceholder,U.type=s.input,T(U);break;case"range":var ee=$(d,n.range),te=ee.querySelector("input"),ne=ee.querySelector("output");te.value=s.inputValue,te.type=s.input,ne.value=s.inputValue,T(ee);break;case"select":var re=$(d,n.select);if(re.innerHTML="",s.inputPlaceholder){var ie=document.createElement("option");ie.innerHTML=s.inputPlaceholder,ie.value="",ie.disabled=!0,ie.selected=!0,re.appendChild(ie)}J=function(e){for(var t in e){var n=document.createElement("option");n.value=t,n.innerHTML=e[t],s.inputValue===t&&(n.selected=!0),re.appendChild(n)}T(re),re.focus()};break;case"radio":var ae=$(d,n.radio);ae.innerHTML="",J=function(e){for(var t in e){var r=document.createElement("input"),i=document.createElement("label"),a=document.createElement("span");r.type="radio",r.name=n.radio,r.value=t,s.inputValue===t&&(r.checked=!0),a.innerHTML=e[t],i.appendChild(r),i.appendChild(a),i.for=r.id,ae.appendChild(i)}T(ae);var o=ae.querySelectorAll("input");o.length&&o[0].focus()};break;case"checkbox":var oe=$(d,n.checkbox),se=a("checkbox");se.type="checkbox",se.value=1,se.id=n.checkbox,se.checked=Boolean(s.inputValue);var ce=oe.getElementsByTagName("span");ce.length&&oe.removeChild(ce[0]),ce=document.createElement("span"),ce.innerHTML=s.inputPlaceholder,oe.appendChild(ce),T(oe);break;case"textarea":var le=$(d,n.textarea);le.value=s.inputValue,le.placeholder=s.inputPlaceholder,T(le)}"select"!==s.input&&"radio"!==s.input||(s.inputOptions instanceof Promise?(e.showLoading(),s.inputOptions.then(function(t){e.hideLoading(),J(t)})):"object"===R(s.inputOptions)&&J(s.inputOptions)),F(s.animation,s.onOpen),s.allowEnterKey?q(-1,1):document.activeElement&&document.activeElement.blur(),l().scrollTop=0,"undefined"==typeof MutationObserver||W||(W=new MutationObserver(e.recalculateHeight),W.observe(d,{childList:!0,characterData:!0,subtree:!0}))})};return Y.isVisible=function(){return!!u()},Y.queue=function(e){B=e;var t=function(){B=[],document.body.removeAttribute("data-swal2-queue-step")},n=[];return new Promise(function(e,r){!function i(a,o){a<B.length?(document.body.setAttribute("data-swal2-queue-step",a),Y(B[a]).then(function(e){n.push(e),i(a+1,o)},function(e){t(),r(e)})):(t(),e(n))}(0)})},Y.getQueueStep=function(){return document.body.getAttribute("data-swal2-queue-step")},Y.insertQueueStep=function(e,t){return t&&t<B.length?B.splice(t,0,e):B.push(e)},Y.deleteQueueStep=function(e){void 0!==B[e]&&B.splice(e,1)},Y.close=Y.closeModal=function(e){var t=l(),r=u();if(r){k(r,n.show),S(r,n.hide),clearTimeout(r.timeout),P();var i=function(){t.parentNode&&t.parentNode.removeChild(t),k(document.documentElement,n.shown),k(document.body,n.shown),U(),G()};N&&!w(r,n.noanimation)?r.addEventListener(N,function e(){r.removeEventListener(N,e),w(r,n.hide)&&i()}):i(),null!==e&&"function"==typeof e&&setTimeout(function(){e(r)})}},Y.clickConfirm=function(){return y().click()},Y.clickCancel=function(){return x().click()},Y.showLoading=Y.enableLoading=function(){var e=u();e||Y("");var t=g(),r=y(),i=x();T(t),T(r,"inline-block"),S(t,n.loading),S(e,n.loading),r.disabled=!0,i.disabled=!0},Y.isValidParameter=function(t){return e.hasOwnProperty(t)||"extraParams"===t},Y.setDefaults=function(e){if(e&&"object"===(void 0===e?"undefined":R(e))){for(var t in e)Y.isValidParameter(t)||delete e[t];j(q,e)}},Y.resetDefaults=function(){q=j({},e)},Y.noop=function(){},Y.version="6.6.10",Y.default=Y,Y}),window.Sweetalert2&&(window.sweetAlert=window.swal=window.Sweetalert2)},{}],826:[function(e,t,n){!function(e){function n(e,t){if(e=e||"",t=t||{},e instanceof n)return e;if(!(this instanceof n))return new n(e,t);var i=r(e);this._originalInput=e,this._r=i.r,this._g=i.g,this._b=i.b,this._a=i.a,this._roundA=B(100*this._a)/100,this._format=t.format||i.format,this._gradientType=t.gradientType,this._r<1&&(this._r=B(this._r)),this._g<1&&(this._g=B(this._g)),this._b<1&&(this._b=B(this._b)),this._ok=i.ok,this._tc_id=q++}function r(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,s=null,l=!1,u=!1;return"string"==typeof e&&(e=I(e)),"object"==(void 0===e?"undefined":_typeof2(e))&&(P(e.r)&&P(e.g)&&P(e.b)?(t=i(e.r,e.g,e.b),l=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):P(e.h)&&P(e.s)&&P(e.v)?(r=z(e.s),a=z(e.v),t=c(e.h,r,a),l=!0,u="hsv"):P(e.h)&&P(e.s)&&P(e.l)&&(r=z(e.s),s=z(e.l),t=o(e.h,r,s),l=!0,u="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=S(n),{ok:l,format:e.format||u,r:W(255,H(t.r,0)),g:W(255,H(t.g,0)),b:W(255,H(t.b,0)),a:n}}function i(e,t,n){return{r:255*k(e,255),g:255*k(t,255),b:255*k(n,255)}}function a(e,t,n){e=k(e,255),t=k(t,255),n=k(n,255);var r,i,a=H(e,t,n),o=W(e,t,n),s=(a+o)/2;if(a==o)r=i=0;else{var c=a-o;switch(i=s>.5?c/(2-a-o):c/(a+o),a){case e:r=(t-n)/c+(t<n?6:0);break;case t:r=(n-e)/c+2;break;case n:r=(e-t)/c+4}r/=6}return{h:r,s:i,l:s}}function o(e,t,n){function r(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var i,a,o;if(e=k(e,360),t=k(t,100),n=k(n,100),0===t)i=a=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;i=r(c,s,e+1/3),a=r(c,s,e),o=r(c,s,e-1/3)}return{r:255*i,g:255*a,b:255*o}}function s(e,t,n){e=k(e,255),t=k(t,255),n=k(n,255);var r,i,a=H(e,t,n),o=W(e,t,n),s=a,c=a-o;if(i=0===a?0:c/a,a==o)r=0;else{switch(a){case e:r=(t-n)/c+(t<n?6:0);break;case t:r=(n-e)/c+2;break;case n:r=(e-t)/c+4}r/=6}return{h:r,s:i,v:s}}function c(t,n,r){t=6*k(t,360),n=k(n,100),r=k(r,100);var i=e.floor(t),a=t-i,o=r*(1-n),s=r*(1-a*n),c=r*(1-(1-a)*n),l=i%6;return{r:255*[r,s,o,o,c,r][l],g:255*[c,r,r,s,o,o][l],b:255*[o,o,c,r,r,s][l]}}function l(e,t,n,r){var i=[O(B(e).toString(16)),O(B(t).toString(16)),O(B(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function u(e,t,n,r,i){var a=[O(B(e).toString(16)),O(B(t).toString(16)),O(B(n).toString(16)),O(L(r))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function d(e,t,n,r){return[O(L(r)),O(B(e).toString(16)),O(B(t).toString(16)),O(B(n).toString(16))].join("")}function p(e,t){t=0===t?0:t||10;var r=n(e).toHsl();return r.s-=t/100,r.s=$(r.s),n(r)}function f(e,t){t=0===t?0:t||10;var r=n(e).toHsl();return r.s+=t/100,r.s=$(r.s),n(r)}function h(e){return n(e).desaturate(100)}function m(e,t){t=0===t?0:t||10;var r=n(e).toHsl();return r.l+=t/100,r.l=$(r.l),n(r)}function g(e,t){t=0===t?0:t||10;var r=n(e).toRgb();return r.r=H(0,W(255,r.r-B(-t/100*255))),r.g=H(0,W(255,r.g-B(-t/100*255))),r.b=H(0,W(255,r.b-B(-t/100*255))),n(r)}function v(e,t){t=0===t?0:t||10;var r=n(e).toHsl();return r.l-=t/100,r.l=$(r.l),n(r)}function b(e,t){var r=n(e).toHsl(),i=(r.h+t)%360;return r.h=i<0?360+i:i,n(r)}function y(e){var t=n(e).toHsl();return t.h=(t.h+180)%360,n(t)}function x(e){var t=n(e).toHsl(),r=t.h;return[n(e),n({h:(r+120)%360,s:t.s,l:t.l}),n({h:(r+240)%360,s:t.s,l:t.l})]}function M(e){var t=n(e).toHsl(),r=t.h;return[n(e),n({h:(r+90)%360,s:t.s,l:t.l}),n({h:(r+180)%360,s:t.s,l:t.l}),n({h:(r+270)%360,s:t.s,l:t.l})]}function _(e){var t=n(e).toHsl(),r=t.h;return[n(e),n({h:(r+72)%360,s:t.s,l:t.l}),n({h:(r+216)%360,s:t.s,l:t.l})]}function w(e,t,r){t=t||6,r=r||30;var i=n(e).toHsl(),a=360/r,o=[n(e)];for(i.h=(i.h-(a*t>>1)+720)%360;--t;)i.h=(i.h+a)%360,o.push(n(i));return o}function A(e,t){t=t||6;for(var r=n(e).toHsv(),i=r.h,a=r.s,o=r.v,s=[],c=1/t;t--;)s.push(n({h:i,s:a,v:o})),o=(o+c)%1;return s}function S(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function k(t,n){C(t)&&(t="100%");var r=E(t);return t=W(n,H(0,parseFloat(t))),r&&(t=parseInt(t*n,10)/100),e.abs(t-n)<1e-6?1:t%n/parseFloat(n)}function $(e){return W(1,H(0,e))}function T(e){return parseInt(e,16)}function C(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)}function E(e){return"string"==typeof e&&-1!=e.indexOf("%")}function O(e){return 1==e.length?"0"+e:""+e}function z(e){return e<=1&&(e=100*e+"%"),e}function L(t){return e.round(255*parseFloat(t)).toString(16)}function N(e){return T(e)/255}function P(e){return!!V.CSS_UNIT.exec(e)}function I(e){e=e.replace(R,"").replace(j,"").toLowerCase();var t=!1;if(X[e])e=X[e],t=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=V.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=V.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=V.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=V.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=V.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=V.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=V.hex8.exec(e))?{r:T(n[1]),g:T(n[2]),b:T(n[3]),a:N(n[4]),format:t?"name":"hex8"}:(n=V.hex6.exec(e))?{r:T(n[1]),g:T(n[2]),b:T(n[3]),format:t?"name":"hex"}:(n=V.hex4.exec(e))?{r:T(n[1]+""+n[1]),g:T(n[2]+""+n[2]),b:T(n[3]+""+n[3]),a:N(n[4]+""+n[4]),format:t?"name":"hex8"}:!!(n=V.hex3.exec(e))&&{r:T(n[1]+""+n[1]),g:T(n[2]+""+n[2]),b:T(n[3]+""+n[3]),format:t?"name":"hex"}}function D(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA"),"small"!==n&&"large"!==n&&(n="small"),{level:t,size:n}}var R=/^\s+/,j=/\s+$/,q=0,B=e.round,W=e.min,H=e.max,F=e.random;n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var t,n,r,i,a,o,s=this.toRgb();return t=s.r/255,n=s.g/255,r=s.b/255,i=t<=.03928?t/12.92:e.pow((t+.055)/1.055,2.4),a=n<=.03928?n/12.92:e.pow((n+.055)/1.055,2.4),o=r<=.03928?r/12.92:e.pow((r+.055)/1.055,2.4),.2126*i+.7152*a+.0722*o},setAlpha:function(e){return this._a=S(e),this._roundA=B(100*this._a)/100,this},toHsv:function(){var e=s(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=s(this._r,this._g,this._b),t=B(360*e.h),n=B(100*e.s),r=B(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=a(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=a(this._r,this._g,this._b),t=B(360*e.h),n=B(100*e.s),r=B(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return l(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return u(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:B(this._r),g:B(this._g),b:B(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+B(this._r)+", "+B(this._g)+", "+B(this._b)+")":"rgba("+B(this._r)+", "+B(this._g)+", "+B(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:B(100*k(this._r,255))+"%",g:B(100*k(this._g,255))+"%",b:B(100*k(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+B(100*k(this._r,255))+"%, "+B(100*k(this._g,255))+"%, "+B(100*k(this._b,255))+"%)":"rgba("+B(100*k(this._r,255))+"%, "+B(100*k(this._g,255))+"%, "+B(100*k(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(U[l(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+d(this._r,this._g,this._b,this._a),r=t,i=this._gradientType?"GradientType = 1, ":"";if(e){var a=n(e);r="#"+d(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return n(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(m,arguments)},brighten:function(){return this._applyModification(g,arguments)},darken:function(){return this._applyModification(v,arguments)},desaturate:function(){return this._applyModification(p,arguments)},saturate:function(){return this._applyModification(f,arguments)},greyscale:function(){return this._applyModification(h,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(w,arguments)},complement:function(){return this._applyCombination(y,arguments)},monochromatic:function(){return this._applyCombination(A,arguments)},splitcomplement:function(){return this._applyCombination(_,arguments)},triad:function(){return this._applyCombination(x,arguments)},tetrad:function(){return this._applyCombination(M,arguments)}},n.fromRatio=function(e,t){if("object"==(void 0===e?"undefined":_typeof2(e))){var r={};for(var i in e)e.hasOwnProperty(i)&&(r[i]="a"===i?e[i]:z(e[i]));e=r}return n(e,t)},n.equals=function(e,t){return!(!e||!t)&&n(e).toRgbString()==n(t).toRgbString()},n.random=function(){return n.fromRatio({r:F(),g:F(),b:F()})},n.mix=function(e,t,r){r=0===r?0:r||50;var i=n(e).toRgb(),a=n(t).toRgb(),o=r/100;return n({r:(a.r-i.r)*o+i.r,g:(a.g-i.g)*o+i.g,b:(a.b-i.b)*o+i.b,a:(a.a-i.a)*o+i.a})},n.readability=function(t,r){var i=n(t),a=n(r);return(e.max(i.getLuminance(),a.getLuminance())+.05)/(e.min(i.getLuminance(),a.getLuminance())+.05)},n.isReadable=function(e,t,r){var i,a,o=n.readability(e,t);switch(a=!1,i=D(r),i.level+i.size){case"AAsmall":case"AAAlarge":a=o>=4.5;break;case"AAlarge":a=o>=3;break;case"AAAsmall":a=o>=7}return a},n.mostReadable=function(e,t,r){var i,a,o,s,c=null,l=0;r=r||{},a=r.includeFallbackColors,o=r.level,s=r.size;for(var u=0;u<t.length;u++)(i=n.readability(e,t[u]))>l&&(l=i,c=n(t[u]));return n.isReadable(e,c,{level:o,size:s})||!a?c:(r.includeFallbackColors=!1,n.mostReadable(e,["#fff","#000"],r))};var X=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},U=n.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(X),V=function(){var e="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)",t="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?",n="[\\s|\\(]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")[,|\\s]+("+e+")\\s*\\)?";return{CSS_UNIT:new RegExp(e),rgb:new RegExp("rgb"+t),rgba:new RegExp("rgba"+n),hsl:new RegExp("hsl"+t),hsla:new RegExp("hsla"+n),hsv:new RegExp("hsv"+t),hsva:new RegExp("hsva"+n),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();void 0!==t&&t.exports?t.exports=n:"function"==typeof define&&define.amd?define(function(){return n}):window.tinycolor=n}(Math)},{}],827:[function(e,t,n){!function(){"use strict";var e={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,COMMAND:91,MAP:{91:"COMMAND",8:"BACKSPACE",9:"TAB",13:"ENTER",16:"SHIFT",17:"CTRL",18:"ALT",19:"PAUSEBREAK",20:"CAPSLOCK",27:"ESC",32:"SPACE",33:"PAGE_UP",34:"PAGE_DOWN",35:"END",36:"HOME",37:"LEFT",38:"UP",39:"RIGHT",40:"DOWN",43:"+",44:"PRINTSCREEN",45:"INSERT",46:"DELETE",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NUMLOCK",145:"SCROLLLOCK",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},isControl:function(t){switch(t.which){case e.COMMAND:case e.SHIFT:case e.CTRL:case e.ALT:return!0}return!!(t.metaKey||t.ctrlKey||t.altKey)},isFunctionKey:function(e){return(e=e.which?e.which:e)>=112&&e<=123},isVerticalMovement:function(t){return~[e.UP,e.DOWN].indexOf(t)},isHorizontalMovement:function(t){return~[e.LEFT,e.RIGHT,e.BACKSPACE,e.DELETE].indexOf(t)},toSeparator:function(t){var n={ENTER:"\n",TAB:"\t",SPACE:" "}[t];return n||(e[t]?void 0:t)}};void 0===angular.element.prototype.querySelectorAll&&(angular.element.prototype.querySelectorAll=function(e){return angular.element(this[0].querySelectorAll(e))}),void 0===angular.element.prototype.closest&&(angular.element.prototype.closest=function(e){for(var t=this[0],n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;t;){if(n.bind(t)(e))return t;t=t.parentElement}return!1});var t=0,n=angular.module("ui.select",[]).constant("uiSelectConfig",{theme:"bootstrap",searchEnabled:!0,sortable:!1,placeholder:"",refreshDelay:1e3,closeOnSelect:!0,skipFocusser:!1,dropdownPosition:"auto",generateId:function(){return t++},appendToBody:!1}).service("uiSelectMinErr",function(){var e=angular.$$minErr("ui.select");return function(){var t=e.apply(this,arguments),n=t.message.replace(new RegExp("\nhttp://errors.angularjs.org/.*"),"");return new Error(n)}}).directive("uisTranscludeAppend",function(){return{link:function(e,t,n,r,i){i(e,function(e){t.append(e)})}}}).filter("highlight",function(){function e(e){return(""+e).replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")}return function(t,n){return n&&t?(""+t).replace(new RegExp(e(n),"gi"),'<span class="ui-select-highlight">$&</span>'):t}}).factory("uisOffset",["$document","$window",function(e,t){return function(n){var r=n[0].getBoundingClientRect();return{width:r.width||n.prop("offsetWidth"),height:r.height||n.prop("offsetHeight"),top:r.top+(t.pageYOffset||e[0].documentElement.scrollTop),left:r.left+(t.pageXOffset||e[0].documentElement.scrollLeft)}}}]);n.directive("uiSelectChoices",["uiSelectConfig","uisRepeatParser","uiSelectMinErr","$compile","$window",function(e,t,n,r,i){return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(t){return t.addClass("ui-select-choices"),(t.parent().attr("theme")||e.theme)+"/choices.tpl.html"},compile:function(r,a){if(!a.repeat)throw n("repeat","Expected 'repeat' expression.");var o=a.groupBy,s=a.groupFilter;if(o){var c=r.querySelectorAll(".ui-select-choices-group");if(1!==c.length)throw n("rows","Expected 1 .ui-select-choices-group but got '{0}'.",c.length);c.attr("ng-repeat",t.getGroupNgRepeatExpression())}var l=t.parse(a.repeat),u=r.querySelectorAll(".ui-select-choices-row");if(1!==u.length)throw n("rows","Expected 1 .ui-select-choices-row but got '{0}'.",u.length);u.attr("ng-repeat",l.repeatExpression(o)).attr("ng-if","$select.open");var d=r.querySelectorAll(".ui-select-choices-row-inner");if(1!==d.length)throw n("rows","Expected 1 .ui-select-choices-row-inner but got '{0}'.",d.length);return d.attr("uis-transclude-append",""),(i.document.addEventListener?u:d).attr("ng-click","$select.select("+l.itemName+",$select.skipFocusser,$event)"),function(t,n,r,i){i.parseRepeatAttr(r.repeat,o,s),i.disableChoiceExpression=r.uiDisableChoice,i.onHighlightCallback=r.onHighlight,i.dropdownPosition=r.position?r.position.toLowerCase():e.dropdownPosition,t.$on("$destroy",function(){u.remove()}),t.$watch("$select.search",function(e){e&&!i.open&&i.multiple&&i.activate(!1,!0),i.activeIndex=i.tagging.isActivated?-1:0,!r.minimumInputLength||i.search.length>=r.minimumInputLength?i.refresh(r.refresh):i.items=[]}),r.$observe("refreshDelay",function(){var n=t.$eval(r.refreshDelay);i.refreshDelay=void 0!==n?n:e.refreshDelay})}}}}]),n.controller("uiSelectCtrl",["$scope","$element","$timeout","$filter","$$uisDebounce","uisRepeatParser","uiSelectMinErr","uiSelectConfig","$parse","$injector","$window",function(t,n,r,i,a,o,s,c,l,u,d){function p(e,t,n){if(e.findIndex)return e.findIndex(t,n);for(var r,i=Object(e),a=i.length>>>0,o=0;o<a;o++)if(r=i[o],t.call(n,r,o,i))return o;return-1}function f(){(v.resetSearchInput||void 0===v.resetSearchInput&&c.resetSearchInput)&&(v.search=b,v.selected&&v.items.length&&!v.multiple&&(v.activeIndex=p(v.items,function(e){return angular.equals(this,e)},v.selected)))}function h(e,t){var n,r,i=[];for(n=0;n<t.length;n++)for(r=0;r<e.length;r++)e[r].name==[t[n]]&&i.push(e[r]);return i}function m(t){var n=!0;switch(t){case e.DOWN:!v.open&&v.multiple?v.activate(!1,!0):v.activeIndex<v.items.length-1&&v.activeIndex++;break;case e.UP:!v.open&&v.multiple?v.activate(!1,!0):(v.activeIndex>0||0===v.search.length&&v.tagging.isActivated&&v.activeIndex>-1)&&v.activeIndex--;break;case e.TAB:v.multiple&&!v.open||v.select(v.items[v.activeIndex],!0);break;case e.ENTER:v.open&&(v.tagging.isActivated||v.activeIndex>=0)?v.select(v.items[v.activeIndex],v.skipFocusser):v.activate(!1,!0);break;case e.ESC:v.close();break;default:n=!1}return n}function g(){var e=n.querySelectorAll(".ui-select-choices-content"),t=e.querySelectorAll(".ui-select-choices-row");if(t.length<1)throw s("choices","Expected multiple .ui-select-choices-row but got '{0}'.",t.length);if(!(v.activeIndex<0)){var r=t[v.activeIndex],i=r.offsetTop+r.clientHeight-e[0].scrollTop,a=e[0].offsetHeight;i>a?e[0].scrollTop+=i-a:i<r.clientHeight&&(v.isGrouped&&0===v.activeIndex?e[0].scrollTop=0:e[0].scrollTop-=r.clientHeight-i)}}var v=this,b="";if(v.placeholder=c.placeholder,v.searchEnabled=c.searchEnabled,v.sortable=c.sortable,v.refreshDelay=c.refreshDelay,v.paste=c.paste,v.removeSelected=!1,v.closeOnSelect=!0,v.skipFocusser=!1,v.search=b,v.activeIndex=0,v.items=[],v.open=!1,v.focus=!1,v.disabled=!1,v.selected=void 0,v.dropdownPosition="auto",v.focusser=void 0,v.resetSearchInput=!0,v.multiple=void 0,v.disableChoiceExpression=void 0,v.tagging={isActivated:!1,fct:void 0},v.taggingTokens={isActivated:!1,tokens:void 0},v.lockChoiceExpression=void 0,v.clickTriggeredSelect=!1,v.$filter=i,v.$element=n,v.$animate=function(){try{return u.get("$animate")}catch(e){return null}}(),v.searchInput=n.querySelectorAll("input.ui-select-search"),1!==v.searchInput.length)throw s("searchInput","Expected 1 input.ui-select-search but got '{0}'.",v.searchInput.length);v.isEmpty=function(){return angular.isUndefined(v.selected)||null===v.selected||""===v.selected||v.multiple&&0===v.selected.length},v.activate=function(e,i){if(!v.disabled&&!v.open){i||f(),t.$broadcast("uis:activate"),v.open=!0,v.activeIndex=v.activeIndex>=v.items.length?0:v.activeIndex,-1===v.activeIndex&&!1!==v.taggingLabel&&(v.activeIndex=0);var a=n.querySelectorAll(".ui-select-choices-content"),o=n.querySelectorAll(".ui-select-search");if(v.$animate&&v.$animate.enabled(a[0])){var s=function t(n,i){"start"===i&&0===v.items.length?(v.$animate.off("removeClass",o[0],t),r(function(){v.focusSearchInput(e)})):"close"===i&&(v.$animate.off("enter",a[0],t),r(function(){v.focusSearchInput(e)}))};v.items.length>0?v.$animate.on("enter",a[0],s):v.$animate.on("removeClass",o[0],s)}else r(function(){v.focusSearchInput(e),!v.tagging.isActivated&&v.items.length>1&&g()})}},v.focusSearchInput=function(e){v.search=e||v.search,v.searchInput[0].focus()},v.findGroupByName=function(e){return v.groups&&v.groups.filter(function(t){return t.name===e})[0]},v.parseRepeatAttr=function(e,n,r){function i(e){var i=t.$eval(n);if(v.groups=[],angular.forEach(e,function(e){var t=angular.isFunction(i)?i(e):e[i],n=v.findGroupByName(t);n?n.items.push(e):v.groups.push({name:t,items:[e]})}),r){var a=t.$eval(r);angular.isFunction(a)?v.groups=a(v.groups):angular.isArray(a)&&(v.groups=h(v.groups,a))}v.items=[],v.groups.forEach(function(e){v.items=v.items.concat(e.items)})}function a(e){v.items=e}v.setItemsFn=n?i:a,v.parserResult=o.parse(e),v.isGrouped=!!n,v.itemProperty=v.parserResult.itemName;var c=v.parserResult.source,u=function(){var e=c(t);t.$uisSource=Object.keys(e).map(function(t){var n={};return n[v.parserResult.keyName]=t,n.value=e[t],n})};v.parserResult.keyName&&(u(),v.parserResult.source=l("$uisSource"+v.parserResult.filters),t.$watch(c,function(e,t){e!==t&&u()},!0)),v.refreshItems=function(e){e=e||v.parserResult.source(t);var n=v.selected;if(v.isEmpty()||angular.isArray(n)&&!n.length||!v.removeSelected)v.setItemsFn(e);else if(void 0!==e){var r=e.filter(function(e){return n.every(function(t){return!angular.equals(e,t)})});v.setItemsFn(r)}"auto"!==v.dropdownPosition&&"up"!==v.dropdownPosition||t.calculateDropdownPos()},t.$watchCollection(v.parserResult.source,function(e){if(void 0===e||null===e)v.items=[];else{if(!angular.isArray(e))throw s("items","Expected an array but got '{0}'.",e);v.refreshItems(e),angular.isDefined(v.ngModel.$modelValue)&&(v.ngModel.$modelValue=null)}})};var y;v.refresh=function(e){void 0!==e&&(y&&r.cancel(y),y=r(function(){t.$eval(e)},v.refreshDelay))},v.isActive=function(e){if(!v.open)return!1;var t=v.items.indexOf(e[v.itemProperty]),n=t==v.activeIndex;return!(!n||t<0)&&(n&&!angular.isUndefined(v.onHighlightCallback)&&e.$eval(v.onHighlightCallback),n)},v.isDisabled=function(e){if(v.open){var t,n=v.items.indexOf(e[v.itemProperty]),r=!1;return n>=0&&!angular.isUndefined(v.disableChoiceExpression)&&(t=v.items[n],r=!!e.$eval(v.disableChoiceExpression),t._uiSelectChoiceDisabled=r),r}},v.select=function(e,n,i){if(void 0===e||!e._uiSelectChoiceDisabled){if(!v.items&&!v.search&&!v.tagging.isActivated)return;if(!e||!e._uiSelectChoiceDisabled){if(v.tagging.isActivated){if(!1===v.taggingLabel)if(v.activeIndex<0){if(!(e=void 0!==v.tagging.fct?v.tagging.fct(v.search):v.search)||angular.equals(v.items[0],e))return}else e=v.items[v.activeIndex];else if(0===v.activeIndex){if(void 0===e)return;if(void 0!==v.tagging.fct&&"string"==typeof e){if(!(e=v.tagging.fct(e)))return}else"string"==typeof e&&(e=e.replace(v.taggingLabel,"").trim())}if(v.selected&&angular.isArray(v.selected)&&v.selected.filter(function(t){return angular.equals(t,e)}).length>0)return void v.close(n)}t.$broadcast("uis:select",e);var a={};a[v.parserResult.itemName]=e,r(function(){v.onSelectCallback(t,{$item:e,$model:v.parserResult.modelMapper(t,a)})}),v.closeOnSelect&&v.close(n),i&&"click"===i.type&&(v.clickTriggeredSelect=!0)}}},v.close=function(e){v.open&&(v.ngModel&&v.ngModel.$setTouched&&v.ngModel.$setTouched(),f(),v.open=!1,t.$broadcast("uis:close",e))},v.setFocus=function(){v.focus||v.focusInput[0].focus()},v.clear=function(e){v.select(void 0),e.stopPropagation(),r(function(){v.focusser[0].focus()},0,!1)},v.toggle=function(e){v.open?(v.close(),e.preventDefault(),e.stopPropagation()):v.activate()},v.isLocked=function(e,t){var n,r=v.selected[t];return r&&!angular.isUndefined(v.lockChoiceExpression)&&(n=!!e.$eval(v.lockChoiceExpression),r._uiSelectChoiceLocked=n),n};var x=null,M=!1;v.sizeSearchInput=function(){var e=v.searchInput[0],n=v.searchInput.parent().parent()[0],i=function(){return n.clientWidth*!!e.offsetParent},a=function(t){if(0===t)return!1;var n=t-e.offsetLeft-10;return n<50&&(n=t),v.searchInput.css("width",n+"px"),!0};v.searchInput.css("width","10px"),r(function(){null!==x||a(i())||(x=t.$watch(angular.noop,function(){M||(M=!0,t.$$postDigest(function(){M=!1,a(i())&&(x(),x=null)}))}))})},v.searchInput.on("keydown",function(n){var i=n.which;~[e.ENTER,e.ESC].indexOf(i)&&(n.preventDefault(),n.stopPropagation()),t.$apply(function(){var t=!1;if((v.items.length>0||v.tagging.isActivated)&&(m(i),v.taggingTokens.isActivated)){for(var a=0;a<v.taggingTokens.tokens.length;a++)v.taggingTokens.tokens[a]===e.MAP[n.keyCode]&&v.search.length>0&&(t=!0);t&&r(function(){v.searchInput.triggerHandler("tagged");var t=v.search.replace(e.MAP[n.keyCode],"").trim();v.tagging.fct&&(t=v.tagging.fct(t)),t&&v.select(t,!0)})}}),e.isVerticalMovement(i)&&v.items.length>0&&g(),i!==e.ENTER&&i!==e.ESC||(n.preventDefault(),n.stopPropagation())}),v.searchInput.on("paste",function(t){var n;if(n=window.clipboardData&&window.clipboardData.getData?window.clipboardData.getData("Text"):(t.originalEvent||t).clipboardData.getData("text/plain"),(n=v.search+n)&&n.length>0)if(v.taggingTokens.isActivated){for(var r=[],i=0;i<v.taggingTokens.tokens.length;i++){var a=e.toSeparator(v.taggingTokens.tokens[i])||v.taggingTokens.tokens[i];if(n.indexOf(a)>-1){r=n.split(a);break}}if(0===r.length&&(r=[n]),r.length>0){var o=v.search;angular.forEach(r,function(e){var t=v.tagging.fct?v.tagging.fct(e):e;t&&v.select(t,!0)}),v.search=o||b,t.preventDefault(),t.stopPropagation()}}else v.paste&&(v.paste(n),v.search=b,t.preventDefault(),t.stopPropagation())}),v.searchInput.on("tagged",function(){r(function(){f()})});var _=a(function(){v.sizeSearchInput()},50);angular.element(d).bind("resize",_),t.$on("$destroy",function(){
78v.searchInput.off("keyup keydown tagged blur paste"),angular.element(d).off("resize",_)})}]),n.directive("uiSelect",["$document","uiSelectConfig","uiSelectMinErr","uisOffset","$compile","$parse","$timeout",function(e,t,n,r,i,a,o){return{restrict:"EA",templateUrl:function(e,n){return(n.theme||t.theme)+(angular.isDefined(n.multiple)?"/select-multiple.tpl.html":"/select.tpl.html")},replace:!0,transclude:!0,require:["uiSelect","^ngModel"],scope:!0,controller:"uiSelectCtrl",controllerAs:"$select",compile:function(i,s){var c=/{(.*)}\s*{(.*)}/.exec(s.ngClass);if(c){var l="{"+c[1]+", "+c[2]+"}";s.ngClass=l,i.attr("ng-class",l)}return angular.isDefined(s.multiple)?i.append("<ui-select-multiple/>").removeAttr("multiple"):i.append("<ui-select-single/>"),s.inputId&&(i.querySelectorAll("input.ui-select-search")[0].id=s.inputId),function(i,s,c,l,u){function d(e){if(h.open){if(!(window.jQuery?window.jQuery.contains(s[0],e.target):s[0].contains(e.target))&&!h.clickTriggeredSelect){var t;if(h.skipFocusser)t=!0;else{var n=["input","button","textarea","select"],r=angular.element(e.target).controller("uiSelect");t=r&&r!==h,t||(t=~n.indexOf(e.target.tagName.toLowerCase()))}h.close(t),i.$digest()}h.clickTriggeredSelect=!1}}function p(){var t=r(s);v=angular.element('<div class="ui-select-placeholder"></div>'),v[0].style.width=t.width+"px",v[0].style.height=t.height+"px",s.after(v),b=s[0].style.width,e.find("body").append(s),s[0].style.position="absolute",s[0].style.left=t.left+"px",s[0].style.top=t.top+"px",s[0].style.width=t.width+"px"}function f(){null!==v&&(v.replaceWith(s),v=null,s[0].style.position="",s[0].style.left="",s[0].style.top="",s[0].style.width=b,h.setFocus())}var h=l[0],m=l[1];h.generatedId=t.generateId(),h.baseTitle=c.title||"Select box",h.focusserTitle=h.baseTitle+" focus",h.focusserId="focusser-"+h.generatedId,h.closeOnSelect=function(){return angular.isDefined(c.closeOnSelect)?a(c.closeOnSelect)():t.closeOnSelect}(),i.$watch("skipFocusser",function(){var e=i.$eval(c.skipFocusser);h.skipFocusser=void 0!==e?e:t.skipFocusser}),h.onSelectCallback=a(c.onSelect),h.onRemoveCallback=a(c.onRemove),h.limit=angular.isDefined(c.limit)?parseInt(c.limit,10):void 0,h.ngModel=m,h.choiceGrouped=function(e){return h.isGrouped&&e&&e.name},c.tabindex&&c.$observe("tabindex",function(e){h.focusInput.attr("tabindex",e),s.removeAttr("tabindex")}),i.$watch("searchEnabled",function(){var e=i.$eval(c.searchEnabled);h.searchEnabled=void 0!==e?e:t.searchEnabled}),i.$watch("sortable",function(){var e=i.$eval(c.sortable);h.sortable=void 0!==e?e:t.sortable}),c.$observe("disabled",function(){h.disabled=void 0!==c.disabled&&c.disabled}),c.$observe("resetSearchInput",function(){var e=i.$eval(c.resetSearchInput);h.resetSearchInput=void 0===e||e}),c.$observe("paste",function(){h.paste=i.$eval(c.paste)}),c.$observe("tagging",function(){if(void 0!==c.tagging){var e=i.$eval(c.tagging);h.tagging={isActivated:!0,fct:!0!==e?e:void 0}}else h.tagging={isActivated:!1,fct:void 0}}),c.$observe("taggingLabel",function(){void 0!==c.tagging&&("false"===c.taggingLabel?h.taggingLabel=!1:h.taggingLabel=void 0!==c.taggingLabel?c.taggingLabel:"(new)")}),c.$observe("taggingTokens",function(){if(void 0!==c.tagging){var e=void 0!==c.taggingTokens?c.taggingTokens.split("|"):[",","ENTER"];h.taggingTokens={isActivated:!0,tokens:e}}}),angular.isDefined(c.autofocus)&&o(function(){h.setFocus()}),angular.isDefined(c.focusOn)&&i.$on(c.focusOn,function(){o(function(){h.setFocus()})}),e.on("click",d),i.$on("$destroy",function(){e.off("click",d)}),u(i,function(e){var t=angular.element("<div>").append(e),r=t.querySelectorAll(".ui-select-match");if(r.removeAttr("ui-select-match"),r.removeAttr("data-ui-select-match"),1!==r.length)throw n("transcluded","Expected 1 .ui-select-match but got '{0}'.",r.length);s.querySelectorAll(".ui-select-match").replaceWith(r);var i=t.querySelectorAll(".ui-select-choices");if(i.removeAttr("ui-select-choices"),i.removeAttr("data-ui-select-choices"),1!==i.length)throw n("transcluded","Expected 1 .ui-select-choices but got '{0}'.",i.length);s.querySelectorAll(".ui-select-choices").replaceWith(i);var a=t.querySelectorAll(".ui-select-no-choice");a.removeAttr("ui-select-no-choice"),a.removeAttr("data-ui-select-no-choice"),1==a.length&&s.querySelectorAll(".ui-select-no-choice").replaceWith(a)});var g=i.$eval(c.appendToBody);(void 0!==g?g:t.appendToBody)&&(i.$watch("$select.open",function(e){e?p():f()}),i.$on("$destroy",function(){f()}));var v=null,b="",y=null;i.$watch("$select.open",function(){"auto"!==h.dropdownPosition&&"up"!==h.dropdownPosition||i.calculateDropdownPos()});var x=function(e,t){e=e||r(s),t=t||r(y),y[0].style.position="absolute",y[0].style.top=-1*t.height+"px",s.addClass("direction-up")},M=function(e,t){s.removeClass("direction-up"),e=e||r(s),t=t||r(y),y[0].style.position="",y[0].style.top=""};i.calculateDropdownPos=function(){if(h.open){if(y=angular.element(s).querySelectorAll(".ui-select-dropdown"),0===y.length)return;y[0].style.opacity=0,o(function(){if("up"===h.dropdownPosition)x();else{s.removeClass("direction-up");var t=r(s),n=r(y),i=e[0].documentElement.scrollTop||e[0].body.scrollTop;t.top+t.height+n.height>i+e[0].documentElement.clientHeight?x(t,n):M(t,n)}y[0].style.opacity=1})}else{if(null===y||0===y.length)return;y[0].style.position="",y[0].style.top="",s.removeClass("direction-up")}}}}}}]),n.directive("uiSelectMatch",["uiSelectConfig",function(e){function t(e,t){return e[0].hasAttribute(t)?e.attr(t):e[0].hasAttribute("data-"+t)?e.attr("data-"+t):e[0].hasAttribute("x-"+t)?e.attr("x-"+t):void 0}return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(n){n.addClass("ui-select-match");var r=n.parent();return(t(r,"theme")||e.theme)+(angular.isDefined(t(r,"multiple"))?"/match-multiple.tpl.html":"/match.tpl.html")},link:function(t,n,r,i){function a(e){i.allowClear=!!angular.isDefined(e)&&(""===e||"true"===e.toLowerCase())}i.lockChoiceExpression=r.uiLockChoice,r.$observe("placeholder",function(t){i.placeholder=void 0!==t?t:e.placeholder}),r.$observe("allowClear",a),a(r.allowClear),i.multiple&&i.sizeSearchInput()}}}]),n.directive("uiSelectMultiple",["uiSelectMinErr","$timeout",function(t,n){return{restrict:"EA",require:["^uiSelect","^ngModel"],controller:["$scope","$timeout",function(e,t){var n,r=this,i=e.$select;angular.isUndefined(i.selected)&&(i.selected=[]),e.$evalAsync(function(){n=e.ngModel}),r.activeMatchIndex=-1,r.updateModel=function(){n.$setViewValue(Date.now()),r.refreshComponent()},r.refreshComponent=function(){i.refreshItems(),i.sizeSearchInput()},r.removeChoice=function(n){var a=i.selected[n];if(!a._uiSelectChoiceLocked){var o={};o[i.parserResult.itemName]=a,i.selected.splice(n,1),r.activeMatchIndex=-1,i.sizeSearchInput(),t(function(){i.onRemoveCallback(e,{$item:a,$model:i.parserResult.modelMapper(e,o)})}),r.updateModel()}},r.getPlaceholder=function(){if(!i.selected||!i.selected.length)return i.placeholder}}],controllerAs:"$selectMultiple",link:function(r,i,a,o){function s(e){return angular.isNumber(e.selectionStart)?e.selectionStart:e.value.length}function c(t){var n=s(d.searchInput[0]),r=d.selected.length,i=r-1,a=f.activeMatchIndex,o=f.activeMatchIndex+1,c=f.activeMatchIndex-1,l=a;return!(n>0||d.search.length&&t==e.RIGHT)&&(d.close(),l=function(){switch(t){case e.LEFT:return~f.activeMatchIndex?c:i;case e.RIGHT:return~f.activeMatchIndex&&a!==i?o:(d.activate(),!1);case e.BACKSPACE:return~f.activeMatchIndex?(f.removeChoice(a),c):i;case e.DELETE:return!!~f.activeMatchIndex&&(f.removeChoice(f.activeMatchIndex),a)}}(),d.selected.length&&!1!==l?f.activeMatchIndex=Math.min(i,Math.max(0,l)):f.activeMatchIndex=-1,!0)}function l(e){return void 0!==e&&void 0!==d.search&&e.filter(function(e){return void 0!==d.search.toUpperCase()&&void 0!==e&&e.toUpperCase()===d.search.toUpperCase()}).length>0}function u(e,t){var n=-1;if(angular.isArray(e))for(var r=angular.copy(e),i=0;i<r.length;i++)if(void 0===d.tagging.fct)r[i]+" "+d.taggingLabel===t&&(n=i);else{var a=r[i];angular.isObject(a)&&(a.isTag=!0),angular.equals(a,t)&&(n=i)}return n}var d=o[0],p=r.ngModel=o[1],f=r.$selectMultiple;d.multiple=!0,d.removeSelected=!0,d.focusInput=d.searchInput,p.$isEmpty=function(e){return!e||0===e.length},p.$parsers.unshift(function(){for(var e,t={},n=[],i=d.selected.length-1;i>=0;i--)t={},t[d.parserResult.itemName]=d.selected[i],e=d.parserResult.modelMapper(r,t),n.unshift(e);return n}),p.$formatters.unshift(function(e){var t,n=d.parserResult&&d.parserResult.source(r,{$select:{search:""}}),i={};if(!n)return e;var a=[],o=function(e,n){if(e&&e.length){for(var o=e.length-1;o>=0;o--){if(i[d.parserResult.itemName]=e[o],t=d.parserResult.modelMapper(r,i),d.parserResult.trackByExp){var s=/(\w*)\./.exec(d.parserResult.trackByExp),c=/\.([^\s]+)/.exec(d.parserResult.trackByExp);if(s&&s.length>0&&s[1]==d.parserResult.itemName&&c&&c.length>0&&t[c[1]]==n[c[1]])return a.unshift(e[o]),!0}if(angular.equals(t,n))return a.unshift(e[o]),!0}return!1}};if(!e)return a;for(var s=e.length-1;s>=0;s--)o(d.selected,e[s])||o(n,e[s])||a.unshift(e[s]);return a}),r.$watchCollection(function(){return p.$modelValue},function(e,t){t!=e&&(angular.isDefined(p.$modelValue)&&(p.$modelValue=null),f.refreshComponent())}),p.$render=function(){if(!angular.isArray(p.$viewValue)){if(!angular.isUndefined(p.$viewValue)&&null!==p.$viewValue)throw t("multiarr","Expected model value to be array but got '{0}'",p.$viewValue);d.selected=[]}d.selected=p.$viewValue,f.refreshComponent(),r.$evalAsync()},r.$on("uis:select",function(e,t){d.selected.length>=d.limit||(d.selected.push(t),f.updateModel())}),r.$on("uis:activate",function(){f.activeMatchIndex=-1}),r.$watch("$select.disabled",function(e,t){t&&!e&&d.sizeSearchInput()}),d.searchInput.on("keydown",function(t){var n=t.which;r.$apply(function(){var r=!1;e.isHorizontalMovement(n)&&(r=c(n)),r&&n!=e.TAB&&(t.preventDefault(),t.stopPropagation())})}),d.searchInput.on("keyup",function(t){if(e.isVerticalMovement(t.which)||r.$evalAsync(function(){d.activeIndex=!1===d.taggingLabel?-1:0}),d.tagging.isActivated&&d.search.length>0){if(t.which===e.TAB||e.isControl(t)||e.isFunctionKey(t)||t.which===e.ESC||e.isVerticalMovement(t.which))return;if(d.activeIndex=!1===d.taggingLabel?-1:0,!1===d.taggingLabel)return;var n,i,a,o,s=angular.copy(d.items),c=angular.copy(d.items),p=!1,f=-1;if(void 0!==d.tagging.fct){if(a=d.$filter("filter")(s,{isTag:!0}),a.length>0&&(o=a[0]),s.length>0&&o&&(p=!0,s=s.slice(1,s.length),c=c.slice(1,c.length)),n=d.tagging.fct(d.search),c.some(function(e){return angular.equals(e,n)})||d.selected.some(function(e){return angular.equals(e,n)}))return void r.$evalAsync(function(){d.activeIndex=0,d.items=s});n&&(n.isTag=!0)}else{if(a=d.$filter("filter")(s,function(e){return e.match(d.taggingLabel)}),a.length>0&&(o=a[0]),i=s[0],void 0!==i&&s.length>0&&o&&(p=!0,s=s.slice(1,s.length),c=c.slice(1,c.length)),n=d.search+" "+d.taggingLabel,u(d.selected,d.search)>-1)return;if(l(c.concat(d.selected)))return void(p&&(s=c,r.$evalAsync(function(){d.activeIndex=0,d.items=s})));if(l(c))return void(p&&(d.items=c.slice(1,c.length)))}p&&(f=u(d.selected,n)),f>-1?s=s.slice(f+1,s.length-1):(s=[],n&&s.push(n),s=s.concat(c)),r.$evalAsync(function(){if(d.activeIndex=0,d.items=s,d.isGrouped){var e=n?s.slice(1):s;d.setItemsFn(e),n&&(d.items.unshift(n),d.groups.unshift({name:"",items:[n],tagging:!0}))}})}}),d.searchInput.on("blur",function(){n(function(){f.activeMatchIndex=-1})})}}}]),n.directive("uiSelectNoChoice",["uiSelectConfig",function(e){return{restrict:"EA",require:"^uiSelect",replace:!0,transclude:!0,templateUrl:function(t){return(t.parent().attr("theme")||e.theme)+"/no-choice.tpl.html"}}}]),n.directive("uiSelectSingle",["$timeout","$compile",function(t,n){return{restrict:"EA",require:["^uiSelect","^ngModel"],link:function(r,i,a,o){var s=o[0],c=o[1];c.$parsers.unshift(function(e){var t={};return t[s.parserResult.itemName]=e,s.parserResult.modelMapper(r,t)}),c.$formatters.unshift(function(e){var t,n=s.parserResult&&s.parserResult.source(r,{$select:{search:""}}),i={};if(n){var a=function(n){return i[s.parserResult.itemName]=n,(t=s.parserResult.modelMapper(r,i))===e};if(s.selected&&a(s.selected))return s.selected;for(var o=n.length-1;o>=0;o--)if(a(n[o]))return n[o]}return e}),r.$watch("$select.selected",function(e){c.$viewValue!==e&&c.$setViewValue(e)}),c.$render=function(){s.selected=c.$viewValue},r.$on("uis:select",function(e,t){s.selected=t}),r.$on("uis:close",function(e,n){t(function(){s.focusser.prop("disabled",!1),n||s.focusser[0].focus()},0,!1)}),r.$on("uis:activate",function(){l.prop("disabled",!0)});var l=angular.element("<input ng-disabled='$select.disabled' class='ui-select-focusser ui-select-offscreen' type='text' id='{{ $select.focusserId }}' aria-label='{{ $select.focusserTitle }}' aria-haspopup='true' role='button' />");n(l)(r),s.focusser=l,s.focusInput=l,i.parent().append(l),l.bind("focus",function(){r.$evalAsync(function(){s.focus=!0})}),l.bind("blur",function(){r.$evalAsync(function(){s.focus=!1})}),l.bind("keydown",function(t){if(t.which===e.BACKSPACE)return t.preventDefault(),t.stopPropagation(),s.select(void 0),void r.$apply();t.which===e.TAB||e.isControl(t)||e.isFunctionKey(t)||t.which===e.ESC||(t.which!=e.DOWN&&t.which!=e.UP&&t.which!=e.ENTER&&t.which!=e.SPACE||(t.preventDefault(),t.stopPropagation(),s.activate()),r.$digest())}),l.bind("keyup input",function(t){t.which===e.TAB||e.isControl(t)||e.isFunctionKey(t)||t.which===e.ESC||t.which==e.ENTER||t.which===e.BACKSPACE||(s.activate(l.val()),l.val(""),r.$digest())})}}}]),n.directive("uiSelectSort",["$timeout","uiSelectConfig","uiSelectMinErr",function(e,t,n){return{require:["^^uiSelect","^ngModel"],link:function(t,r,i,a){if(null===t[i.uiSelectSort])throw n("sort","Expected a list to sort");var o=a[0],s=a[1],c=angular.extend({axis:"horizontal"},t.$eval(i.uiSelectSortOptions)),l=c.axis;t.$watch(function(){return o.sortable},function(e){e?r.attr("draggable",!0):r.removeAttr("draggable")}),r.on("dragstart",function(e){r.addClass("dragging"),(e.dataTransfer||e.originalEvent.dataTransfer).setData("text",t.$index.toString())}),r.on("dragend",function(){p("dragging")});var u,d=function(e,t){this.splice(t,0,this.splice(e,1)[0])},p=function(e){angular.forEach(o.$element.querySelectorAll("."+e),function(t){angular.element(t).removeClass(e)})},f=function(e){e.preventDefault(),("vertical"===l?e.offsetY||e.layerY||(e.originalEvent?e.originalEvent.offsetY:0):e.offsetX||e.layerX||(e.originalEvent?e.originalEvent.offsetX:0))<this["vertical"===l?"offsetHeight":"offsetWidth"]/2?(p("dropping-after"),r.addClass("dropping-before")):(p("dropping-before"),r.addClass("dropping-after"))},h=function(t){t.preventDefault();var n=parseInt((t.dataTransfer||t.originalEvent.dataTransfer).getData("text"),10);e.cancel(u),u=e(function(){m(n)},20)},m=function(e){var n=t.$eval(i.uiSelectSort),a=n[e],o=null;o=r.hasClass("dropping-before")?e<t.$index?t.$index-1:t.$index:e<t.$index?t.$index:t.$index+1,d.apply(n,[e,o]),s.$setViewValue(Date.now()),t.$apply(function(){t.$emit("uiSelectSort:change",{array:n,item:a,from:e,to:o})}),p("dropping"),p("dropping-before"),p("dropping-after"),r.off("drop",h)};r.on("dragenter",function(){r.hasClass("dragging")||(r.addClass("dropping"),r.on("dragover",f),r.on("drop",h))}),r.on("dragleave",function(e){e.target==r&&(p("dropping"),p("dropping-before"),p("dropping-after"),r.off("dragover",f),r.off("drop",h))})}}}]),n.factory("$$uisDebounce",["$timeout",function(e){return function(t,n){var r;return function(){var i=this,a=Array.prototype.slice.call(arguments);r&&e.cancel(r),r=e(function(){t.apply(i,a)},n)}}}]),n.service("uisRepeatParser",["uiSelectMinErr","$parse",function(e,t){var n=this;n.parse=function(n){var r;if(!(r=n.match(/^\s*(?:([\s\S]+?)\s+as\s+)?(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+(\s*[\s\S]+?)?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/)))throw e("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",n);var i=r[5],a="";if(r[3]){i=r[5].replace(/(^\()|(\)$)/g,"");var o=r[5].match(/^\s*(?:[\s\S]+?)(?:[^\|]|\|\|)+([\s\S]*)\s*$/);o&&o[1].trim()&&(a=o[1],i=i.replace(a,""))}return{itemName:r[4]||r[2],keyName:r[3],source:t(i),filters:a,trackByExp:r[6],modelMapper:t(r[1]||r[4]||r[2]),repeatExpression:function(e){var t=this.itemName+" in "+(e?"$group.items":"$select.items");return this.trackByExp&&(t+=" track by "+this.trackByExp),t}}},n.getGroupNgRepeatExpression=function(){return"$group in $select.groups"}}])}(),angular.module("ui.select").run(["$templateCache",function(e){e.put("bootstrap/choices.tpl.html",'<ul class="ui-select-choices ui-select-choices-content ui-select-dropdown dropdown-menu" role="listbox" ng-show="$select.open && $select.items.length > 0"><li class="ui-select-choices-group" id="ui-select-choices-{{ $select.generatedId }}"><div class="divider" ng-show="$select.isGrouped && $index > 0"></div><div ng-show="$select.isGrouped" class="ui-select-choices-group-label dropdown-header" ng-bind="$group.name"></div><div ng-attr-id="ui-select-choices-row-{{ $select.generatedId }}-{{$index}}" class="ui-select-choices-row" ng-class="{active: $select.isActive(this), disabled: $select.isDisabled(this)}" role="option"><a href="" class="ui-select-choices-row-inner"></a></div></li></ul>'),e.put("bootstrap/match-multiple.tpl.html",'<span class="ui-select-match"><span ng-repeat="$item in $select.selected"><span class="ui-select-match-item btn btn-default btn-xs" tabindex="-1" type="button" ng-disabled="$select.disabled" ng-click="$selectMultiple.activeMatchIndex = $index;" ng-class="{\'btn-primary\':$selectMultiple.activeMatchIndex === $index, \'select-locked\':$select.isLocked(this, $index)}" ui-select-sort="$select.selected"><span class="close ui-select-match-close" ng-hide="$select.disabled" ng-click="$selectMultiple.removeChoice($index)">&nbsp;&times;</span> <span uis-transclude-append=""></span></span></span></span>'),e.put("bootstrap/match.tpl.html",'<div class="ui-select-match" ng-hide="$select.open && $select.searchEnabled" ng-disabled="$select.disabled" ng-class="{\'btn-default-focus\':$select.focus}"><span tabindex="-1" class="btn btn-default form-control ui-select-toggle" aria-label="{{ $select.baseTitle }} activate" ng-disabled="$select.disabled" ng-click="$select.activate()" style="outline: 0;"><span ng-show="$select.isEmpty()" class="ui-select-placeholder text-muted">{{$select.placeholder}}</span> <span ng-hide="$select.isEmpty()" class="ui-select-match-text pull-left" ng-class="{\'ui-select-allow-clear\': $select.allowClear && !$select.isEmpty()}" ng-transclude=""></span> <i class="caret pull-right" ng-click="$select.toggle($event)"></i> <a ng-show="$select.allowClear && !$select.isEmpty() && ($select.disabled !== true)" aria-label="{{ $select.baseTitle }} clear" style="margin-right: 10px" ng-click="$select.clear($event)" class="btn btn-xs btn-link pull-right"><i class="glyphicon glyphicon-remove" aria-hidden="true"></i></a></span></div>'),e.put("bootstrap/no-choice.tpl.html",'<ul class="ui-select-no-choice dropdown-menu" ng-show="$select.items.length == 0"><li ng-transclude=""></li></ul>'),e.put("bootstrap/select-multiple.tpl.html",'<div class="ui-select-container ui-select-multiple ui-select-bootstrap dropdown form-control" ng-class="{open: $select.open}"><div><div class="ui-select-match"></div><input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" class="ui-select-search input-xs" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-disabled="$select.disabled" ng-hide="$select.disabled" ng-click="$select.activate()" ng-model="$select.search" role="combobox" aria-label="{{ $select.baseTitle }}" ondrop="return false;"></div><div class="ui-select-choices"></div></div>'),e.put("bootstrap/select.tpl.html",'<div class="ui-select-container ui-select-bootstrap dropdown" ng-class="{open: $select.open}"><div class="ui-select-match"></div><input type="search" autocomplete="off" tabindex="-1" aria-expanded="true" aria-label="{{ $select.baseTitle }}" aria-owns="ui-select-choices-{{ $select.generatedId }}" aria-activedescendant="ui-select-choices-row-{{ $select.generatedId }}-{{ $select.activeIndex }}" class="form-control ui-select-search" placeholder="{{$select.placeholder}}" ng-model="$select.search" ng-show="$select.searchEnabled && $select.open"><div class="ui-select-choices"></div><div class="ui-select-no-choice"></div></div>'),e.put("select2/choices.tpl.html",'<ul tabindex="-1" class="ui-select-choices ui-select-choices-content select2-results"><li class="ui-select-choices-group" ng-class="{\'select2-result-with-children\': $select.choiceGrouped($group) }"><div ng-show="$select.choiceGrouped($group)" class="ui-select-choices-group-label select2-result-label" ng-bind="$group.name"></div><ul role="listbox" id="ui-select-choices-{{ $select.generatedId }}" ng-class="{\'select2-result-sub\': $select.choiceGrouped($group), \'select2-result-single\': !$select.choiceGrouped($group) }"><li role="option" ng-attr-id="ui-select-choices-row-{{ $select.generatedId }}-{{$index}}" class="ui-select-choices-row" ng-class="{\'select2-highlighted\': $select.isActive(this), \'select2-disabled\': $select.isDisabled(this)}"><div class="select2-result-label ui-select-choices-row-inner"></div></li></ul></li></ul>'),e.put("select2/match-multiple.tpl.html",'<span class="ui-select-match"><li class="ui-select-match-item select2-search-choice" ng-repeat="$item in $select.selected" ng-class="{\'select2-search-choice-focus\':$selectMultiple.activeMatchIndex === $index, \'select2-locked\':$select.isLocked(this, $index)}" ui-select-sort="$select.selected"><span uis-transclude-append=""></span> <a href="javascript:;" class="ui-select-match-close select2-search-choice-close" ng-click="$selectMultiple.removeChoice($index)" tabindex="-1"></a></li></span>'),e.put("select2/match.tpl.html",'<a class="select2-choice ui-select-match" ng-class="{\'select2-default\': $select.isEmpty()}" ng-click="$select.toggle($event)" aria-label="{{ $select.baseTitle }} select"><span ng-show="$select.isEmpty()" class="select2-chosen">{{$select.placeholder}}</span> <span ng-hide="$select.isEmpty()" class="select2-chosen" ng-transclude=""></span> <abbr ng-if="$select.allowClear && !$select.isEmpty()" class="select2-search-choice-close" ng-click="$select.clear($event)"></abbr> <span class="select2-arrow ui-select-toggle"><b></b></span></a>'),e.put("select2/select-multiple.tpl.html",'<div class="ui-select-container ui-select-multiple select2 select2-container select2-container-multi" ng-class="{\'select2-container-active select2-dropdown-open open\': $select.open, \'select2-container-disabled\': $select.disabled}"><ul class="select2-choices"><span class="ui-select-match"></span><li class="select2-search-field"><input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="combobox" aria-expanded="true" aria-owns="ui-select-choices-{{ $select.generatedId }}" aria-label="{{ $select.baseTitle }}" aria-activedescendant="ui-select-choices-row-{{ $select.generatedId }}-{{ $select.activeIndex }}" class="select2-input ui-select-search" placeholder="{{$selectMultiple.getPlaceholder()}}" ng-disabled="$select.disabled" ng-hide="$select.disabled" ng-model="$select.search" ng-click="$select.activate()" style="width: 34px;" ondrop="return false;"></li></ul><div class="ui-select-dropdown select2-drop select2-with-searchbox select2-drop-active" ng-class="{\'select2-display-none\': !$select.open || $select.items.length === 0}"><div class="ui-select-choices"></div></div></div>'),e.put("select2/select.tpl.html",'<div class="ui-select-container select2 select2-container" ng-class="{\'select2-container-active select2-dropdown-open open\': $select.open, \'select2-container-disabled\': $select.disabled, \'select2-container-active\': $select.focus, \'select2-allowclear\': $select.allowClear && !$select.isEmpty()}"><div class="ui-select-match"></div><div class="ui-select-dropdown select2-drop select2-with-searchbox select2-drop-active" ng-class="{\'select2-display-none\': !$select.open}"><div class="select2-search" ng-show="$select.searchEnabled"><input type="search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="combobox" aria-expanded="true" aria-owns="ui-select-choices-{{ $select.generatedId }}" aria-label="{{ $select.baseTitle }}" aria-activedescendant="ui-select-choices-row-{{ $select.generatedId }}-{{ $select.activeIndex }}" class="ui-select-search select2-input" ng-model="$select.search"></div><div class="ui-select-choices"></div></div></div>'),e.put("selectize/choices.tpl.html",'<div ng-show="$select.open" class="ui-select-choices ui-select-dropdown selectize-dropdown single"><div class="ui-select-choices-content selectize-dropdown-content"><div class="ui-select-choices-group optgroup" role="listbox"><div ng-show="$select.isGrouped" class="ui-select-choices-group-label optgroup-header" ng-bind="$group.name"></div><div role="option" class="ui-select-choices-row" ng-class="{active: $select.isActive(this), disabled: $select.isDisabled(this)}"><div class="option ui-select-choices-row-inner" data-selectable=""></div></div></div></div></div>'),e.put("selectize/match.tpl.html",'<div ng-hide="$select.searchEnabled && ($select.open || $select.isEmpty())" class="ui-select-match" ng-transclude=""></div>'),e.put("selectize/select.tpl.html",'<div class="ui-select-container selectize-control single" ng-class="{\'open\': $select.open}"><div class="selectize-input" ng-class="{\'focus\': $select.open, \'disabled\': $select.disabled, \'selectize-focus\' : $select.focus}" ng-click="$select.open && !$select.searchEnabled ? $select.toggle($event) : $select.activate()"><div class="ui-select-match"></div><input type="search" autocomplete="off" tabindex="-1" class="ui-select-search ui-select-toggle" ng-click="$select.toggle($event)" placeholder="{{$select.placeholder}}" ng-model="$select.search" ng-hide="!$select.searchEnabled || ($select.selected && !$select.open)" ng-disabled="$select.disabled" aria-label="{{ $select.baseTitle }}"></div><div class="ui-select-choices"></div></div>')}])},{}],828:[function(e,t,n){e("./dist/select.js"),t.exports="ui.select"},{"./dist/select.js":827}],829:[function(e,t,n){!function(e,r){"use strict";"object"===(void 0===n?"undefined":_typeof2(n))?t.exports=r():"function"==typeof define&&define.amd?define(r):e.IPv6=r(e)}(this,function(e){"use strict";function t(e){var t=e.toLowerCase(),n=t.split(":"),r=n.length,i=8;""===n[0]&&""===n[1]&&""===n[2]?(n.shift(),n.shift()):""===n[0]&&""===n[1]?n.shift():""===n[r-1]&&""===n[r-2]&&n.pop(),r=n.length,-1!==n[r-1].indexOf(".")&&(i=7);var a;for(a=0;a<r&&""!==n[a];a++);if(a<i){for(n.splice(a,1,"0000");n.length<i;)n.splice(a,0,"0000");r=n.length}for(var o,s=0;s<i;s++){o=n[s].split("");for(var c=0;c<3&&("0"===o[0]&&o.length>1);c++)o.splice(0,1);n[s]=o.join("")}var l=-1,u=0,d=0,p=-1,f=!1;for(s=0;s<i;s++)f?"0"===n[s]?d+=1:(f=!1,d>u&&(l=p,u=d)):"0"===n[s]&&(f=!0,p=s,d=1);d>u&&(l=p,u=d),u>1&&n.splice(l,u,""),r=n.length;var h="";for(""===n[0]&&(h=":"),s=0;s<r&&(h+=n[s],s!==r-1);s++)h+=":";return""===n[r-1]&&(h+=":"),h}function n(){return e.IPv6===this&&(e.IPv6=r),this}var r=e&&e.IPv6;return{best:t,noConflict:n}})},{}],830:[function(e,t,n){!function(e,r){"use strict";"object"===(void 0===n?"undefined":_typeof2(n))?t.exports=r():"function"==typeof define&&define.amd?define(r):e.SecondLevelDomains=r(e)}(this,function(e){"use strict";var t=e&&e.SecondLevelDomains,n={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",
79sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch "},has:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;var r=e.lastIndexOf(".",t-1);if(r<=0||r>=t-1)return!1;var i=n.list[e.slice(t+1)];return!!i&&i.indexOf(" "+e.slice(r+1,t)+" ")>=0},is:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;if(e.lastIndexOf(".",t-1)>=0)return!1;var r=n.list[e.slice(t+1)];return!!r&&r.indexOf(" "+e.slice(0,t)+" ")>=0},get:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return null;var r=e.lastIndexOf(".",t-1);if(r<=0||r>=t-1)return null;var i=n.list[e.slice(t+1)];return i?i.indexOf(" "+e.slice(r+1,t)+" ")<0?null:e.slice(r+1):null},noConflict:function(){return e.SecondLevelDomains===this&&(e.SecondLevelDomains=t),this}};return n})},{}],831:[function(e,t,n){!function(r,i){"use strict";"object"===(void 0===n?"undefined":_typeof2(n))?t.exports=i(e("./punycode"),e("./IPv6"),e("./SecondLevelDomains")):"function"==typeof define&&define.amd?define(["./punycode","./IPv6","./SecondLevelDomains"],i):r.URI=i(r.punycode,r.IPv6,r.SecondLevelDomains,r)}(this,function(e,t,n,r){"use strict";function i(e,t){var n=arguments.length>=1,r=arguments.length>=2;if(!(this instanceof i))return n?r?new i(e,t):new i(e):new i;if(void 0===e){if(n)throw new TypeError("undefined is not a valid argument for URI");e="undefined"!=typeof location?location.href+"":""}return this.href(e),void 0!==t?this.absoluteTo(t):this}function a(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function o(e){return void 0===e?"Undefined":String(Object.prototype.toString.call(e)).slice(8,-1)}function s(e){return"Array"===o(e)}function c(e,t){var n,r,i={};if("RegExp"===o(t))i=null;else if(s(t))for(n=0,r=t.length;n<r;n++)i[t[n]]=!0;else i[t]=!0;for(n=0,r=e.length;n<r;n++){(i&&void 0!==i[e[n]]||!i&&t.test(e[n]))&&(e.splice(n,1),r--,n--)}return e}function l(e,t){var n,r;if(s(t)){for(n=0,r=t.length;n<r;n++)if(!l(e,t[n]))return!1;return!0}var i=o(t);for(n=0,r=e.length;n<r;n++)if("RegExp"===i){if("string"==typeof e[n]&&e[n].match(t))return!0}else if(e[n]===t)return!0;return!1}function u(e,t){if(!s(e)||!s(t))return!1;if(e.length!==t.length)return!1;e.sort(),t.sort();for(var n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}function d(e){var t=/^\/+|\/+$/g;return e.replace(t,"")}function p(e){return escape(e)}function f(e){return encodeURIComponent(e).replace(/[!'()*]/g,p).replace(/\*/g,"%2A")}function h(e){return function(t,n){return void 0===t?this._parts[e]||"":(this._parts[e]=t||null,this.build(!n),this)}}function m(e,t){return function(n,r){return void 0===n?this._parts[e]||"":(null!==n&&(n+="",n.charAt(0)===t&&(n=n.substring(1))),this._parts[e]=n,this.build(!r),this)}}var g=r&&r.URI;i.version="1.17.1";var v=i.prototype,b=Object.prototype.hasOwnProperty;i._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,duplicateQueryParameters:i.duplicateQueryParameters,escapeQuerySpace:i.escapeQuerySpace}},i.duplicateQueryParameters=!1,i.escapeQuerySpace=!0,i.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,i.idn_expression=/[^a-z0-9\.-]/i,i.punycode_expression=/(xn--)/i,i.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,i.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,i.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi,i.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/},i.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},i.invalid_hostname_characters=/[^a-zA-Z0-9\.-]/,i.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},i.getDomAttribute=function(e){if(e&&e.nodeName){var t=e.nodeName.toLowerCase();if("input"!==t||"image"===e.type)return i.domAttributes[t]}},i.encode=f,i.decode=decodeURIComponent,i.iso8859=function(){i.encode=escape,i.decode=unescape},i.unicode=function(){i.encode=f,i.decode=decodeURIComponent},i.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},i.encodeQuery=function(e,t){var n=i.encode(e+"");return void 0===t&&(t=i.escapeQuerySpace),t?n.replace(/%20/g,"+"):n},i.decodeQuery=function(e,t){e+="",void 0===t&&(t=i.escapeQuerySpace);try{return i.decode(t?e.replace(/\+/g,"%20"):e)}catch(t){return e}};var y,x={encode:"encode",decode:"decode"},M=function(e,t){return function(n){try{return i[t](n+"").replace(i.characters[e][t].expression,function(n){return i.characters[e][t].map[n]})}catch(e){return n}}};for(y in x)i[y+"PathSegment"]=M("pathname",x[y]),i[y+"UrnPathSegment"]=M("urnpath",x[y]);var _=function(e,t,n){return function(r){var a;a=n?function(e){return i[t](i[n](e))}:i[t];for(var o=(r+"").split(e),s=0,c=o.length;s<c;s++)o[s]=a(o[s]);return o.join(e)}};i.decodePath=_("/","decodePathSegment"),i.decodeUrnPath=_(":","decodeUrnPathSegment"),i.recodePath=_("/","encodePathSegment","decode"),i.recodeUrnPath=_(":","encodeUrnPathSegment","decode"),i.encodeReserved=M("reserved","encode"),i.parse=function(e,t){var n;return t||(t={}),n=e.indexOf("#"),n>-1&&(t.fragment=e.substring(n+1)||null,e=e.substring(0,n)),n=e.indexOf("?"),n>-1&&(t.query=e.substring(n+1)||null,e=e.substring(0,n)),"//"===e.substring(0,2)?(t.protocol=null,e=e.substring(2),e=i.parseAuthority(e,t)):(n=e.indexOf(":"))>-1&&(t.protocol=e.substring(0,n)||null,t.protocol&&!t.protocol.match(i.protocol_expression)?t.protocol=void 0:"//"===e.substring(n+1,n+3)?(e=e.substring(n+3),e=i.parseAuthority(e,t)):(e=e.substring(n+1),t.urn=!0)),t.path=e,t},i.parseHost=function(e,t){e=e.replace(/\\/g,"/");var n,r,i=e.indexOf("/");if(-1===i&&(i=e.length),"["===e.charAt(0))n=e.indexOf("]"),t.hostname=e.substring(1,n)||null,t.port=e.substring(n+2,i)||null,"/"===t.port&&(t.port=null);else{var a=e.indexOf(":"),o=e.indexOf("/"),s=e.indexOf(":",a+1);-1!==s&&(-1===o||s<o)?(t.hostname=e.substring(0,i)||null,t.port=null):(r=e.substring(0,i).split(":"),t.hostname=r[0]||null,t.port=r[1]||null)}return t.hostname&&"/"!==e.substring(i).charAt(0)&&(i++,e="/"+e),e.substring(i)||"/"},i.parseAuthority=function(e,t){return e=i.parseUserinfo(e,t),i.parseHost(e,t)},i.parseUserinfo=function(e,t){var n,r=e.indexOf("/"),a=e.lastIndexOf("@",r>-1?r:e.length-1);return a>-1&&(-1===r||a<r)?(n=e.substring(0,a).split(":"),t.username=n[0]?i.decode(n[0]):null,n.shift(),t.password=n[0]?i.decode(n.join(":")):null,e=e.substring(a+1)):(t.username=null,t.password=null),e},i.parseQuery=function(e,t){if(!e)return{};if(!(e=e.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"")))return{};for(var n,r,a,o={},s=e.split("&"),c=s.length,l=0;l<c;l++)n=s[l].split("="),r=i.decodeQuery(n.shift(),t),a=n.length?i.decodeQuery(n.join("="),t):null,b.call(o,r)?("string"!=typeof o[r]&&null!==o[r]||(o[r]=[o[r]]),o[r].push(a)):o[r]=a;return o},i.build=function(e){var t="";return e.protocol&&(t+=e.protocol+":"),e.urn||!t&&!e.hostname||(t+="//"),t+=i.buildAuthority(e)||"","string"==typeof e.path&&("/"!==e.path.charAt(0)&&"string"==typeof e.hostname&&(t+="/"),t+=e.path),"string"==typeof e.query&&e.query&&(t+="?"+e.query),"string"==typeof e.fragment&&e.fragment&&(t+="#"+e.fragment),t},i.buildHost=function(e){var t="";return e.hostname?(i.ip6_expression.test(e.hostname)?t+="["+e.hostname+"]":t+=e.hostname,e.port&&(t+=":"+e.port),t):""},i.buildAuthority=function(e){return i.buildUserinfo(e)+i.buildHost(e)},i.buildUserinfo=function(e){var t="";return e.username&&(t+=i.encode(e.username),e.password&&(t+=":"+i.encode(e.password)),t+="@"),t},i.buildQuery=function(e,t,n){var r,a,o,c,l="";for(a in e)if(b.call(e,a)&&a)if(s(e[a]))for(r={},o=0,c=e[a].length;o<c;o++)void 0!==e[a][o]&&void 0===r[e[a][o]+""]&&(l+="&"+i.buildQueryParameter(a,e[a][o],n),!0!==t&&(r[e[a][o]+""]=!0));else void 0!==e[a]&&(l+="&"+i.buildQueryParameter(a,e[a],n));return l.substring(1)},i.buildQueryParameter=function(e,t,n){return i.encodeQuery(e,n)+(null!==t?"="+i.encodeQuery(t,n):"")},i.addQuery=function(e,t,n){if("object"===(void 0===t?"undefined":_typeof2(t)))for(var r in t)b.call(t,r)&&i.addQuery(e,r,t[r]);else{if("string"!=typeof t)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");if(void 0===e[t])return void(e[t]=n);"string"==typeof e[t]&&(e[t]=[e[t]]),s(n)||(n=[n]),e[t]=(e[t]||[]).concat(n)}},i.removeQuery=function(e,t,n){var r,a,l;if(s(t))for(r=0,a=t.length;r<a;r++)e[t[r]]=void 0;else if("RegExp"===o(t))for(l in e)t.test(l)&&(e[l]=void 0);else if("object"===(void 0===t?"undefined":_typeof2(t)))for(l in t)b.call(t,l)&&i.removeQuery(e,l,t[l]);else{if("string"!=typeof t)throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");void 0!==n?"RegExp"===o(n)?!s(e[t])&&n.test(e[t])?e[t]=void 0:e[t]=c(e[t],n):e[t]!==String(n)||s(n)&&1!==n.length?s(e[t])&&(e[t]=c(e[t],n)):e[t]=void 0:e[t]=void 0}},i.hasQuery=function(e,t,n,r){switch(o(t)){case"String":break;case"RegExp":for(var a in e)if(b.call(e,a)&&t.test(a)&&(void 0===n||i.hasQuery(e,a,n)))return!0;return!1;case"Object":for(var c in t)if(b.call(t,c)&&!i.hasQuery(e,c,t[c]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(o(n)){case"Undefined":return t in e;case"Boolean":return n===Boolean(s(e[t])?e[t].length:e[t]);case"Function":return!!n(e[t],t,e);case"Array":if(!s(e[t]))return!1;return(r?l:u)(e[t],n);case"RegExp":return s(e[t])?!!r&&l(e[t],n):Boolean(e[t]&&e[t].match(n));case"Number":n=String(n);case"String":return s(e[t])?!!r&&l(e[t],n):e[t]===n;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},i.commonPath=function(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n++)if(e.charAt(n)!==t.charAt(n)){n--;break}return n<1?e.charAt(0)===t.charAt(0)&&"/"===e.charAt(0)?"/":"":("/"===e.charAt(n)&&"/"===t.charAt(n)||(n=e.substring(0,n).lastIndexOf("/")),e.substring(0,n+1))},i.withinString=function(e,t,n){n||(n={});var r=n.start||i.findUri.start,a=n.end||i.findUri.end,o=n.trim||i.findUri.trim,s=/[a-z0-9-]=["']?$/i;for(r.lastIndex=0;;){var c=r.exec(e);if(!c)break;var l=c.index;if(n.ignoreHtml){var u=e.slice(Math.max(l-3,0),l);if(u&&s.test(u))continue}var d=l+e.slice(l).search(a),p=e.slice(l,d).replace(o,"");if(!n.ignore||!n.ignore.test(p)){d=l+p.length;var f=t(p,l,d,e);e=e.slice(0,l)+f+e.slice(d),r.lastIndex=l+f.length}}return r.lastIndex=0,e},i.ensureValidHostname=function(t){if(t.match(i.invalid_hostname_characters)){if(!e)throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-] and Punycode.js is not available');if(e.toASCII(t).match(i.invalid_hostname_characters))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]')}},i.noConflict=function(e){if(e){var t={URI:this.noConflict()};return r.URITemplate&&"function"==typeof r.URITemplate.noConflict&&(t.URITemplate=r.URITemplate.noConflict()),r.IPv6&&"function"==typeof r.IPv6.noConflict&&(t.IPv6=r.IPv6.noConflict()),r.SecondLevelDomains&&"function"==typeof r.SecondLevelDomains.noConflict&&(t.SecondLevelDomains=r.SecondLevelDomains.noConflict()),t}return r.URI===this&&(r.URI=g),this},v.build=function(e){return!0===e?this._deferred_build=!0:(void 0===e||this._deferred_build)&&(this._string=i.build(this._parts),this._deferred_build=!1),this},v.clone=function(){return new i(this)},v.valueOf=v.toString=function(){return this.build(!1)._string},v.protocol=h("protocol"),v.username=h("username"),v.password=h("password"),v.hostname=h("hostname"),v.port=h("port"),v.query=m("query","?"),v.fragment=m("fragment","#"),v.search=function(e,t){var n=this.query(e,t);return"string"==typeof n&&n.length?"?"+n:n},v.hash=function(e,t){var n=this.fragment(e,t);return"string"==typeof n&&n.length?"#"+n:n},v.pathname=function(e,t){if(void 0===e||!0===e){var n=this._parts.path||(this._parts.hostname?"/":"");return e?(this._parts.urn?i.decodeUrnPath:i.decodePath)(n):n}return this._parts.urn?this._parts.path=e?i.recodeUrnPath(e):"":this._parts.path=e?i.recodePath(e):"/",this.build(!t),this},v.path=v.pathname,v.href=function(e,t){var n;if(void 0===e)return this.toString();this._string="",this._parts=i._parts();var r=e instanceof i,a="object"===(void 0===e?"undefined":_typeof2(e))&&(e.hostname||e.path||e.pathname);if(e.nodeName){e=e[i.getDomAttribute(e)]||"",a=!1}if(!r&&a&&void 0!==e.pathname&&(e=e.toString()),"string"==typeof e||e instanceof String)this._parts=i.parse(String(e),this._parts);else{if(!r&&!a)throw new TypeError("invalid input");var o=r?e._parts:e;for(n in o)b.call(this._parts,n)&&(this._parts[n]=o[n])}return this.build(!t),this},v.is=function(e){var t=!1,r=!1,a=!1,o=!1,s=!1,c=!1,l=!1,u=!this._parts.urn;switch(this._parts.hostname&&(u=!1,r=i.ip4_expression.test(this._parts.hostname),a=i.ip6_expression.test(this._parts.hostname),t=r||a,o=!t,s=o&&n&&n.has(this._parts.hostname),c=o&&i.idn_expression.test(this._parts.hostname),l=o&&i.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case"relative":return u;case"absolute":return!u;case"domain":case"name":return o;case"sld":return s;case"ip":return t;case"ip4":case"ipv4":case"inet4":return r;case"ip6":case"ipv6":case"inet6":return a;case"idn":return c;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return l}return null};var w=v.protocol,A=v.port,S=v.hostname;v.protocol=function(e,t){if(void 0!==e&&e&&(e=e.replace(/:(\/\/)?$/,""),!e.match(i.protocol_expression)))throw new TypeError('Protocol "'+e+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return w.call(this,e,t)},v.scheme=v.protocol,v.port=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0!==e&&(0===e&&(e=null),e&&(e+="",":"===e.charAt(0)&&(e=e.substring(1)),e.match(/[^0-9]/))))throw new TypeError('Port "'+e+'" contains characters other than [0-9]');return A.call(this,e,t)},v.hostname=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0!==e){var n={};if("/"!==i.parseHost(e,n))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');e=n.hostname}return S.call(this,e,t)},v.origin=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var n=this.protocol();return this.authority()?(n?n+"://":"")+this.authority():""}var r=i(e);return this.protocol(r.protocol()).authority(r.authority()).build(!t),this},v.host=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?i.buildHost(this._parts):"";if("/"!==i.parseHost(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},v.authority=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?i.buildAuthority(this._parts):"";if("/"!==i.parseAuthority(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},v.userinfo=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){if(!this._parts.username)return"";var n=i.buildUserinfo(this._parts);return n.substring(0,n.length-1)}return"@"!==e[e.length-1]&&(e+="@"),i.parseUserinfo(e,this._parts),this.build(!t),this},v.resource=function(e,t){var n;return void 0===e?this.path()+this.search()+this.hash():(n=i.parse(e),this._parts.path=n.path,this._parts.query=n.query,this._parts.fragment=n.fragment,this.build(!t),this)},v.subdomain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,n)||""}var r=this._parts.hostname.length-this.domain().length,o=this._parts.hostname.substring(0,r),s=new RegExp("^"+a(o));return e&&"."!==e.charAt(e.length-1)&&(e+="."),e&&i.ensureValidHostname(e),this._parts.hostname=this._parts.hostname.replace(s,e),this.build(!t),this},v.domain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.match(/\./g);if(n&&n.length<2)return this._parts.hostname;var r=this._parts.hostname.length-this.tld(t).length-1;return r=this._parts.hostname.lastIndexOf(".",r-1)+1,this._parts.hostname.substring(r)||""}if(!e)throw new TypeError("cannot set domain empty");if(i.ensureValidHostname(e),!this._parts.hostname||this.is("IP"))this._parts.hostname=e;else{var o=new RegExp(a(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(o,e)}return this.build(!t),this},v.tld=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.lastIndexOf("."),i=this._parts.hostname.substring(r+1);return!0!==t&&n&&n.list[i.toLowerCase()]?n.get(this._parts.hostname)||i:i}var o;if(!e)throw new TypeError("cannot set TLD empty");if(e.match(/[^a-zA-Z0-9-]/)){if(!n||!n.is(e))throw new TypeError('TLD "'+e+'" contains characters other than [A-Z0-9]');o=new RegExp(a(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(o,e)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");o=new RegExp(a(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(o,e)}return this.build(!t),this},v.directory=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var n=this._parts.path.length-this.filename().length-1,r=this._parts.path.substring(0,n)||(this._parts.hostname?"/":"");return e?i.decodePath(r):r}var o=this._parts.path.length-this.filename().length,s=this._parts.path.substring(0,o),c=new RegExp("^"+a(s));return this.is("relative")||(e||(e="/"),"/"!==e.charAt(0)&&(e="/"+e)),e&&"/"!==e.charAt(e.length-1)&&(e+="/"),e=i.recodePath(e),this._parts.path=this._parts.path.replace(c,e),this.build(!t),this},v.filename=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path||"/"===this._parts.path)return"";var n=this._parts.path.lastIndexOf("/"),r=this._parts.path.substring(n+1);return e?i.decodePathSegment(r):r}var o=!1;"/"===e.charAt(0)&&(e=e.substring(1)),e.match(/\.?\//)&&(o=!0);var s=new RegExp(a(this.filename())+"$");return e=i.recodePath(e),this._parts.path=this._parts.path.replace(s,e),o?this.normalizePath(t):this.build(!t),this},v.suffix=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path||"/"===this._parts.path)return"";var n,r,o=this.filename(),s=o.lastIndexOf(".");return-1===s?"":(n=o.substring(s+1),r=/^[a-z0-9%]+$/i.test(n)?n:"",e?i.decodePathSegment(r):r)}"."===e.charAt(0)&&(e=e.substring(1));var c,l=this.suffix();if(l)c=e?new RegExp(a(l)+"$"):new RegExp(a("."+l)+"$");else{if(!e)return this;this._parts.path+="."+i.recodePath(e)}return c&&(e=i.recodePath(e),this._parts.path=this._parts.path.replace(c,e)),this.build(!t),this},v.segment=function(e,t,n){var r=this._parts.urn?":":"/",i=this.path(),a="/"===i.substring(0,1),o=i.split(r);if(void 0!==e&&"number"!=typeof e&&(n=t,t=e,e=void 0),void 0!==e&&"number"!=typeof e)throw new Error('Bad segment "'+e+'", must be 0-based integer');if(a&&o.shift(),e<0&&(e=Math.max(o.length+e,0)),void 0===t)return void 0===e?o:o[e];if(null===e||void 0===o[e])if(s(t)){o=[];for(var c=0,l=t.length;c<l;c++)(t[c].length||o.length&&o[o.length-1].length)&&(o.length&&!o[o.length-1].length&&o.pop(),o.push(d(t[c])))}else(t||"string"==typeof t)&&(t=d(t),""===o[o.length-1]?o[o.length-1]=t:o.push(t));else t?o[e]=d(t):o.splice(e,1);return a&&o.unshift(""),this.path(o.join(r),n)},v.segmentCoded=function(e,t,n){var r,a,o;if("number"!=typeof e&&(n=t,t=e,e=void 0),void 0===t){if(r=this.segment(e,t,n),s(r))for(a=0,o=r.length;a<o;a++)r[a]=i.decode(r[a]);else r=void 0!==r?i.decode(r):void 0;return r}if(s(t))for(a=0,o=t.length;a<o;a++)t[a]=i.encode(t[a]);else t="string"==typeof t||t instanceof String?i.encode(t):t;return this.segment(e,t,n)};var k=v.query;return v.query=function(e,t){if(!0===e)return i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"==typeof e){var n=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace),r=e.call(this,n);return this._parts.query=i.buildQuery(r||n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this}return void 0!==e&&"string"!=typeof e?(this._parts.query=i.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this):k.call(this,e,t)},v.setQuery=function(e,t,n){var r=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("string"==typeof e||e instanceof String)r[e]=void 0!==t?t:null;else{if("object"!==(void 0===e?"undefined":_typeof2(e)))throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");for(var a in e)b.call(e,a)&&(r[a]=e[a])}return this._parts.query=i.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(n=t),this.build(!n),this},v.addQuery=function(e,t,n){var r=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.addQuery(r,e,void 0===t?null:t),this._parts.query=i.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(n=t),this.build(!n),this},v.removeQuery=function(e,t,n){var r=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.removeQuery(r,e,t),this._parts.query=i.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(n=t),this.build(!n),this},v.hasQuery=function(e,t,n){var r=i.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return i.hasQuery(r,e,t,n)},v.setSearch=v.setQuery,v.addSearch=v.addQuery,v.removeSearch=v.removeQuery,v.hasSearch=v.hasQuery,v.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},v.normalizeProtocol=function(e){return"string"==typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!e)),this},v.normalizeHostname=function(n){return this._parts.hostname&&(this.is("IDN")&&e?this._parts.hostname=e.toASCII(this._parts.hostname):this.is("IPv6")&&t&&(this._parts.hostname=t.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!n)),this},v.normalizePort=function(e){return"string"==typeof this._parts.protocol&&this._parts.port===i.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!e)),this},v.normalizePath=function(e){var t=this._parts.path;if(!t)return this;if(this._parts.urn)return this._parts.path=i.recodeUrnPath(this._parts.path),this.build(!e),this;if("/"===this._parts.path)return this;t=i.recodePath(t);var n,r,a,o="";for("/"!==t.charAt(0)&&(n=!0,t="/"+t),"/.."!==t.slice(-3)&&"/."!==t.slice(-2)||(t+="/"),t=t.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),n&&(o=t.substring(1).match(/^(\.\.\/)+/)||"")&&(o=o[0]);;){if(-1===(r=t.search(/\/\.\.(\/|$)/)))break;0!==r?(a=t.substring(0,r).lastIndexOf("/"),-1===a&&(a=r),t=t.substring(0,a)+t.substring(r+3)):t=t.substring(3)}return n&&this.is("relative")&&(t=o+t.substring(1)),this._parts.path=t,this.build(!e),this},v.normalizePathname=v.normalizePath,v.normalizeQuery=function(e){return"string"==typeof this._parts.query&&(this._parts.query.length?this.query(i.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!e)),this},v.normalizeFragment=function(e){return this._parts.fragment||(this._parts.fragment=null,this.build(!e)),this},v.normalizeSearch=v.normalizeQuery,v.normalizeHash=v.normalizeFragment,v.iso8859=function(){var e=i.encode,t=i.decode;i.encode=escape,i.decode=decodeURIComponent;try{this.normalize()}finally{i.encode=e,i.decode=t}return this},v.unicode=function(){var e=i.encode,t=i.decode;i.encode=f,i.decode=unescape;try{this.normalize()}finally{i.encode=e,i.decode=t}return this},v.readable=function(){var t=this.clone();t.username("").password("").normalize();var n="";if(t._parts.protocol&&(n+=t._parts.protocol+"://"),t._parts.hostname&&(t.is("punycode")&&e?(n+=e.toUnicode(t._parts.hostname),t._parts.port&&(n+=":"+t._parts.port)):n+=t.host()),t._parts.hostname&&t._parts.path&&"/"!==t._parts.path.charAt(0)&&(n+="/"),n+=t.path(!0),t._parts.query){for(var r="",a=0,o=t._parts.query.split("&"),s=o.length;a<s;a++){var c=(o[a]||"").split("=");r+="&"+i.decodeQuery(c[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),void 0!==c[1]&&(r+="="+i.decodeQuery(c[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}n+="?"+r.substring(1)}return n+=i.decodeQuery(t.hash(),!0)},v.absoluteTo=function(e){var t,n,r,a=this.clone(),o=["protocol","username","password","hostname","port"];if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e instanceof i||(e=new i(e)),a._parts.protocol||(a._parts.protocol=e._parts.protocol),this._parts.hostname)return a;for(n=0;r=o[n];n++)a._parts[r]=e._parts[r];return a._parts.path?".."===a._parts.path.substring(-2)&&(a._parts.path+="/"):(a._parts.path=e._parts.path,a._parts.query||(a._parts.query=e._parts.query)),"/"!==a.path().charAt(0)&&(t=e.directory(),t=t||(0===e.path().indexOf("/")?"/":""),a._parts.path=(t?t+"/":"")+a._parts.path,a.normalizePath()),a.build(),a},v.relativeTo=function(e){var t,n,r,a,o,s=this.clone().normalize();if(s._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e=new i(e).normalize(),t=s._parts,n=e._parts,a=s.path(),o=e.path(),"/"!==a.charAt(0))throw new Error("URI is already relative");if("/"!==o.charAt(0))throw new Error("Cannot calculate a URI relative to another relative URI");if(t.protocol===n.protocol&&(t.protocol=null),t.username!==n.username||t.password!==n.password)return s.build();if(null!==t.protocol||null!==t.username||null!==t.password)return s.build();if(t.hostname!==n.hostname||t.port!==n.port)return s.build();if(t.hostname=null,t.port=null,a===o)return t.path="",s.build();if(!(r=i.commonPath(a,o)))return s.build();var c=n.path.substring(r.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return t.path=c+t.path.substring(r.length)||"./",s.build()},v.equals=function(e){var t,n,r,a=this.clone(),o=new i(e),c={},l={},d={};if(a.normalize(),o.normalize(),a.toString()===o.toString())return!0;if(t=a.query(),n=o.query(),a.query(""),o.query(""),a.toString()!==o.toString())return!1;if(t.length!==n.length)return!1;c=i.parseQuery(t,this._parts.escapeQuerySpace),l=i.parseQuery(n,this._parts.escapeQuerySpace);for(r in c)if(b.call(c,r)){if(s(c[r])){if(!u(c[r],l[r]))return!1}else if(c[r]!==l[r])return!1;d[r]=!0}for(r in l)if(b.call(l,r)&&!d[r])return!1;return!0},v.duplicateQueryParameters=function(e){return this._parts.duplicateQueryParameters=!!e,this},v.escapeQuerySpace=function(e){return this._parts.escapeQuerySpace=!!e,this},i})},{
80"./IPv6":829,"./SecondLevelDomains":830,"./punycode":832}],832:[function(e,t,n){(function(e){!function(r){function i(e){throw new RangeError(L[e])}function a(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function o(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(z,"."),r+a(e.split("."),t).join(".")}function s(e){for(var t,n,r=[],i=0,a=e.length;i<a;)t=e.charCodeAt(i++),t>=55296&&t<=56319&&i<a?(n=e.charCodeAt(i++),56320==(64512&n)?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),i--)):r.push(t);return r}function c(e){return a(e,function(e){var t="";return e>65535&&(e-=65536,t+=I(e>>>10&1023|55296),e=56320|1023&e),t+=I(e)}).join("")}function l(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:_}function u(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function d(e,t,n){var r=0;for(e=n?P(e/k):e>>1,e+=P(e/t);e>N*A>>1;r+=_)e=P(e/N);return P(r+(N+1)*e/(e+S))}function p(e){var t,n,r,a,o,s,u,p,f,h,m=[],g=e.length,v=0,b=T,y=$;for(n=e.lastIndexOf(C),n<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&i("not-basic"),m.push(e.charCodeAt(r));for(a=n>0?n+1:0;a<g;){for(o=v,s=1,u=_;a>=g&&i("invalid-input"),p=l(e.charCodeAt(a++)),(p>=_||p>P((M-v)/s))&&i("overflow"),v+=p*s,f=u<=y?w:u>=y+A?A:u-y,!(p<f);u+=_)h=_-f,s>P(M/h)&&i("overflow"),s*=h;t=m.length+1,y=d(v-o,t,0==o),P(v/t)>M-b&&i("overflow"),b+=P(v/t),v%=t,m.splice(v++,0,b)}return c(m)}function f(e){var t,n,r,a,o,c,l,p,f,h,m,g,v,b,y,x=[];for(e=s(e),g=e.length,t=T,n=0,o=$,c=0;c<g;++c)(m=e[c])<128&&x.push(I(m));for(r=a=x.length,a&&x.push(C);r<g;){for(l=M,c=0;c<g;++c)(m=e[c])>=t&&m<l&&(l=m);for(v=r+1,l-t>P((M-n)/v)&&i("overflow"),n+=(l-t)*v,t=l,c=0;c<g;++c)if(m=e[c],m<t&&++n>M&&i("overflow"),m==t){for(p=n,f=_;h=f<=o?w:f>=o+A?A:f-o,!(p<h);f+=_)y=p-h,b=_-h,x.push(I(u(h+y%b,0))),p=P(y/b);x.push(I(u(p,0))),o=d(n,v,r==a),n=0,++r}++n,++t}return x.join("")}function h(e){return o(e,function(e){return E.test(e)?p(e.slice(4).toLowerCase()):e})}function m(e){return o(e,function(e){return O.test(e)?"xn--"+f(e):e})}var g="object"==(void 0===n?"undefined":_typeof2(n))&&n&&!n.nodeType&&n,v="object"==(void 0===t?"undefined":_typeof2(t))&&t&&!t.nodeType&&t,b="object"==(void 0===e?"undefined":_typeof2(e))&&e;b.global!==b&&b.window!==b&&b.self!==b||(r=b);var y,x,M=2147483647,_=36,w=1,A=26,S=38,k=700,$=72,T=128,C="-",E=/^xn--/,O=/[^\x20-\x7E]/,z=/[\x2E\u3002\uFF0E\uFF61]/g,L={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},N=_-w,P=Math.floor,I=String.fromCharCode;if(y={version:"1.3.2",ucs2:{decode:s,encode:c},decode:p,encode:f,toASCII:m,toUnicode:h},"function"==typeof define&&"object"==_typeof2(define.amd)&&define.amd)define("punycode",function(){return y});else if(g&&v)if(t.exports==g)v.exports=y;else for(x in y)y.hasOwnProperty(x)&&(g[x]=y[x]);else r.punycode=y}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[167]);
81//# sourceMappingURL=insights.js.map