@angular-wave/angular.ts 0.6.4 → 0.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/dist/angular-ts.esm.js +2 -2
  2. package/dist/angular-ts.umd.js +2 -2
  3. package/package.json +1 -1
  4. package/src/animations/animate-js.js +1 -1
  5. package/src/animations/animation.js +1 -1
  6. package/src/core/compile/attributes.js +21 -4
  7. package/src/core/compile/compile.js +66 -109
  8. package/src/core/compile/compile.spec.js +3 -1
  9. package/src/core/controller/controller.js +1 -1
  10. package/src/core/di/internal-injector.js +1 -1
  11. package/src/core/filter/filter.js +1 -1
  12. package/src/core/q/q.js +1 -1
  13. package/src/core/sce/sce.js +1 -1
  14. package/src/core/scope/scope.js +2 -2
  15. package/src/core/timeout/timeout.js +1 -1
  16. package/src/directive/channel/channel.js +25 -7
  17. package/src/directive/channel/channel.spec.js +17 -0
  18. package/src/directive/events/events.js +1 -1
  19. package/src/directive/model/model.js +1 -1
  20. package/src/loader.js +4 -13
  21. package/src/router/common/coreservices.js +1 -1
  22. package/src/router/state/state-registry.js +1 -1
  23. package/src/router/template-factory.js +8 -7
  24. package/src/router/url/url-matcher.js +1 -1
  25. package/src/services/http/http.js +1 -1
  26. package/src/services/template-request.js +1 -1
  27. package/types/animations/animate-js.d.ts +1 -1
  28. package/types/animations/animation.d.ts +1 -1
  29. package/types/core/compile/compile.d.ts +2 -1
  30. package/types/core/controller/controller.d.ts +1 -1
  31. package/types/core/filter/filter.d.ts +1 -1
  32. package/types/core/q/q.d.ts +1 -1
  33. package/types/core/sce/sce.d.ts +1 -1
  34. package/types/core/scope/scope.d.ts +1 -1
  35. package/types/core/timeout/timeout.d.ts +1 -1
  36. package/types/directive/channel/channel.d.ts +13 -4
  37. package/types/directive/model/model.d.ts +8 -8
  38. package/types/directive/repeat/repeat.d.ts +10 -7
  39. package/types/loader.d.ts +4 -7
  40. package/types/router/common/coreservices.d.ts +1 -1
  41. package/types/router/state/state-registry.d.ts +2 -2
  42. package/types/router/template-factory.d.ts +2 -2
  43. package/types/services/http/http.d.ts +1 -1
  44. package/types/services/template-request.d.ts +1 -1
@@ -1,2 +1,2 @@
1
- /* Version: 0.6.4 - March 9, 2025 15:39:44 */
2
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).angular={})}(this,(function(t){"use strict";const e="ng-valid",n="ng-invalid",r="ng-pristine",i="ng-dirty",s="ng-untouched",o="ng-touched",a="ng-empty",c="ng-not-empty",l=/^((?:x|data)[-])/i,u=/[-]+(.)/g,h={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"},d=lt("ng");let p=0;function f(){return p+=1,p}function $(t){return b(t)?t.toLowerCase():t}function m(t){if(null==t||x(t))return!1;if(Array.isArray(t)||t instanceof Array||b(t))return!0;const e="length"in Object(t)&&t.length;return w(e)&&(e>=0&&e-1 in t||"function"==typeof t.item)}function g(t){return void 0===t}function v(t){return void 0!==t}function y(t){return null!==t&&"object"==typeof t}function b(t){return"string"==typeof t}function w(t){return"number"==typeof t}function E(t){return"[object Date]"===toString.call(t)}function C(t){switch(toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function O(t){return"function"==typeof t}function S(t){return"[object RegExp]"===toString.call(t)}function x(t){return t&&t.window===t}function A(t){return t&&t.$evalAsync&&t.$watch}function k(t){return"boolean"==typeof t}function _(t){return t&&O(t.then)}function T(t){return b(t)?t.trim():t}function j(t,e){const n=e;return t.replace(/[A-Z]/g,((t,e)=>(e?n:"")+t.toLowerCase()))}function V(t,...e){return function(t,e,n){const r=t.$$hashKey;for(let n=0,r=e.length;n<r;++n){const r=e[n];if(!y(r)&&!O(r))continue;const i=Object.keys(r);for(let e=0,n=i.length;e<n;e++){const n=i[e],s=r[n];t[n]=s}}return function(t,e){e?t.$$hashKey=e:delete t.$$hashKey}(t,r),t}(t,e)}function N(t){return parseInt(t,10)}function R(t){return Number.isNaN(t)}function P(t,e){return V(Object.create(t),e)}function D(t){return function(){return t}}function M(t){return O(t.toString)&&t.toString!==toString}function L(t){return!(!t||!(t.nodeName||t.attr&&t.find))}function I(t){return $(t.nodeName||t[0]&&t[0].nodeName)}function U(t,e){return-1!==Array.prototype.indexOf.call(t,e)}function q(t,e){const n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function H(t,e){return t===e||t!=t&&e!=e}function F(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;const n=typeof t;let r,i,s;if(n===typeof e&&"object"===n){if(!Array.isArray(t)){if(E(t))return!!E(e)&&H(t.getTime(),e.getTime());if(S(t))return!!S(e)&&t.toString()===e.toString();if(A(t)||A(e)||x(t)||x(e)||Array.isArray(e)||E(e)||S(e))return!1;for(i in s=Object.create(null),t)if("$"!==i.charAt(0)&&!O(t[i])){if(!F(t[i],e[i]))return!1;s[i]=!0}for(i in e)if(!(i in s)&&"$"!==i.charAt(0)&&v(e[i])&&!O(e[i]))return!1;return!0}if(!Array.isArray(e))return!1;if((r=t.length)===e.length){for(i=0;i<r;i++)if(!F(t[i],e[i]))return!1;return!0}}return!1}function B(t,e){if("hasOwnProperty"===t)throw d("badname","hasOwnProperty is not a valid {0} name",e)}function z(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=`${t}`;break;default:t=!M(t)||Array.isArray(t)||E(t)?Q(t):t.toString()}return t}function W(t,e,n){return t.concat(Array.prototype.slice.call(e,n))}function G(t,e){return Array.prototype.slice.call(t,e||0)}function K(t,e){const n=arguments.length>2?G(arguments,2):[];return!O(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,W(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function Y(t,e){let n=e;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?n=void 0:x(e)?n="$WINDOW":e&&window.document===e?n="$DOCUMENT":A(e)&&(n="$SCOPE"),n}function Q(t,e){if(!g(t))return w(e)||(e=e?2:null),JSON.stringify(t,Y,e)}function Z(t,e,n){const r=t.getTimezoneOffset(),i=function(t,e){const n=Date.parse(`Jan 01, 1970 00:00:00 ${t}`)/6e4;return R(n)?e:n}(e,r);return function(t,e){const n=new Date(t.getTime());return n.setMinutes(n.getMinutes()+e),n}(t,1*(i-r))}function J(t){const e={};return(t||"").split("&").forEach((t=>{let n,r,i;t&&(r=t=t.replace(/\+/g,"%20"),n=t.indexOf("="),-1!==n&&(r=t.substring(0,n),i=t.substring(n+1)),r=X(r),v(r)&&(i=!v(i)||X(i),Object.hasOwnProperty.call(e,r)?Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i))})),e}function X(t){try{return decodeURIComponent(t)}catch(t){}}function tt(t){return et(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function et(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}const nt=["ng-","data-ng-"];function rt(t,e){if(Array.isArray(t)){e=e||[];for(let n=0,r=t.length;n<r;n++)e[n]=t[n]}else if(y(t)){e=e||{};for(const n in t)n.startsWith("$")&&"$"===n.charAt(1)||(e[n]=t[n])}return e||t}function it(t,e="Assertion failed"){if(!t)throw new Error(e)}function st(t,e,n){if(!t)throw d("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function ot(t,e,n){return n&&Array.isArray(t)&&(t=t[t.length-1]),st(O(t),e,`not a function, got ${t&&"object"==typeof t?t.constructor.name||"Object":typeof t}`),t}const at={objectMaxDepth:5,urlErrorParamsEnabled:!0};function ct(t){var e;return y(t)&&(v(t.objectMaxDepth)&&(at.objectMaxDepth=w(e=t.objectMaxDepth)&&e>0?t.objectMaxDepth:NaN),v(t.urlErrorParamsEnabled)&&k(t.urlErrorParamsEnabled)&&(at.urlErrorParamsEnabled=t.urlErrorParamsEnabled)),at}function lt(t){const e='https://errors.angularjs.org/"NG_VERSION_FULL"/',n=`${e.replace(".","\\.")}[\\s\\S]*`,r=new RegExp(n,"g");return function(...n){const i=n[0],s=n[1];let o=`[${t?`${t}:`:""}${i}] `;const a=G(n,2).map((t=>ut(t)));let c,l;if(o+=s.replace(/\{\d+\}/g,(t=>{const e=+t.slice(1,-1);return e<a.length?a[e].replace(r,""):t})),o+=`\n${e}${t?`${t}/`:""}${i}`,ct().urlErrorParamsEnabled)for(l=0,c="?";l<a.length;l++,c="&")o+=`${c}p${l}=${encodeURIComponent(a[l])}`;return new Error(o)}}function ut(t){if("function"==typeof t)return t.toString().replace(/ \{[\s\S]*$/,"");if(g(t))return"undefined";if("string"!=typeof t){const e=[];let n=structuredClone(t);return JSON.stringify(n,((t,n)=>{const r=Y(t,n);if(y(r)){if(e.indexOf(r)>=0)return"...";e.push(r)}return r}))}return t}function ht(t){const e=t&&t.$$hashKey;if(e)return"function"==typeof e?t.$$hashKey():e;const n=typeof t;return"function"===n||"object"===n&&null!==t?(t.$$hashKey=`${n}:${f()}`,t.$$hashKey):`${n}:${t}`}function dt(t,e){return t||e?t?e?(Array.isArray(t)&&(t=t.join(" ")),Array.isArray(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function pt(t){return t.replace(l,"").replace(u,((t,e,n)=>n?e.toUpperCase():e))}function ft(t){return function(t,e){if(t.nodeType!==Node.ELEMENT_NODE)return!1;const n=t;return"true"===n.dataset[e]||"true"===n.getAttribute(e)}(t,"animate")}const $t="ng",mt=new Map;let gt=1;const vt=/-([a-z])/g,yt=/_([a-z])/g,bt={mouseleave:"mouseout",mouseenter:"mouseover"},wt=lt("jqLite"),Et=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Ct=/<([\w:-]+)/,Ot={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};Ot.tbody=Ot.tfoot=Ot.colgroup=Ot.caption=Ot.thead,Ot.th=Ot.td;const St={};"multiple,selected,checked,disabled,readOnly,required,open".split(",").forEach((t=>{St[$(t)]=t}));const xt={};function At(t){if(t instanceof At)return t;let e=!1;if(b(t)&&(t=t.trim(),e=!0),!(this instanceof At)){if(e&&"<"!==t.charAt(0))throw wt("nosel","Looking up elements via selectors is not supported by JQLite! See: http://docs.angularjs.org/api/angular.element");return new At(t)}if(e){It(this,function(t){let e=Et.exec(t);if(e)return[document.createElement(e[1])];let n=Pt(t);if(n)return n.childNodes;return[]}(t))}else O(t)?function(t){function e(){document.removeEventListener("DOMContentLoaded",e),t()}"complete"===document.readyState?setTimeout(t):document.addEventListener("DOMContentLoaded",e)}(t):It(this,t)}function kt(t,e){return e.toUpperCase()}function _t(t){return t.replace(vt,kt)}function Tt(t){return t.replace(yt,kt)}function jt(t,e){const n=t[$t],r=n&&mt.get(n);r&&(e?delete r.data[e]:r.data={},Mt(t))}function Vt(t,e=!1){let n=t[$t],r=n&&mt.get(n);return e&&!r&&(t[$t]=n=++gt,r={events:{},data:{},handle:null},mt.set(n,r)),r}function Nt(t){return!/<|&#?\w+;/.test(t)}function Rt(t){switch(t.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_NODE:case void 0:return!0;default:return!1}}function Pt(t){let e,n,r,i,s=document.createDocumentFragment(),o=[];if(Nt(t))o.push(document.createTextNode(t));else{for(e=s.appendChild(document.createElement("div")),n=(Ct.exec(t)||["",""])[1].toLowerCase(),r=Ot[n]||[],i=r.length;--i>-1;)e.appendChild(document.createElement(r[i])),e=e.firstChild;e.innerHTML=t,o=W(o,e.childNodes),e=s.firstChild,e.textContent=""}let a=document.createDocumentFragment();return a.append(...o),a}function Dt(t,e){t&&(!e&&Rt(t)&&Kt([t]),t.querySelectorAll&&Kt(t.querySelectorAll("*")))}function Mt(t){const e=t[$t],{events:n,data:r}=mt.get(e);r&&Object.keys(r).length||n&&Object.keys(n).length||(mt.delete(e),t[$t]=void 0)}function Lt(t,e,n){if(Rt(t)){let r;const i=v(n),s=!i&&e&&!y(e),o=!e,a=Vt(t,!s),c=a&&a.data;if(i)c[_t(e)]=n;else{if(o)return c;if(s)return c&&c[_t(e)];for(r in e)c[_t(r)]=e[r]}}}function It(t,e){if(!e)return;if(e.nodeType)return void(t[t.length++]=e);const n=e.length;if("number"==typeof n&&e.window!==e)for(let r=0;r<n;r++)t[t.length++]=e[r];else t[t.length++]=e}function Ut(t,e,n){t.nodeType===Node.DOCUMENT_NODE&&(t=t.documentElement);const r=Array.isArray(e)?e:[e];for(;t;){for(let e=0,i=r.length;e<i;e++)if(v(n=Lt(t,r[e])))return n;t=t.parentNode||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host}}function qt(t,e=!1){e||Dt(t);const n=t.parentNode;n&&n.removeChild(t)}function Ht(t,e){return function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};let i=e[r||n.type];const s=i?i.length:0;if(!s)return;if(g(n.immediatePropagationStopped)){const t=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),t&&t.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped};const o=i.specialHandlerWrapper||Ft;s>1&&(i=rt(i));for(let e=0;e<s;e++)n.isImmediatePropagationStopped()||o(t,n,i[e])}}function Ft(t,e,n){n.call(t,e)}function Bt(t,e,n){const r=e.relatedTarget;r&&(r===t||t.contains(r))||n.call(t,e)}function zt(t){const e=At(t)[0].cloneNode(!0),n=At(e).empty(),r=At("<div></div>").append(n[0]).html();try{return n[0].nodeType===Node.TEXT_NODE?$(r):r.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,(function(t,e){return"<"+$(e)}))}catch(t){return $(r)}}function Wt(t){let e=t[0];const n=t[t.length-1];let r;for(let i=1;e!==n&&(e=e.nextSibling);i++)(r||t[i]!==e)&&(r||(r=Array.prototype.slice.call(t,0,i)),r.push(e));return At(r||t)}function Gt(t,e){const n=St[e.toLowerCase()];return n&&xt[I(t)]&&n}function Kt(t){for(let e=0,n=t.length;e<n;e++){const n=(mt.get(t[e][$t])||{}).events;n&&n.$destroy&&At(t[e]).triggerHandler("$destroy"),jt(t[e]),At.prototype.off.call(At(t[e]))}}"input,select,option,textarea,button,form,details".split(",").forEach((t=>{xt[t]=!0})),At.prototype={toString(){const t=[];for(var e=0;e<this.length;e++)t.push(`${this[e]}`);return`[${t.join(", ")}]`},eq(t){return At(t>=0?this[t]:this[this.length+t])},length:0},At.prototype.elements=function(){let t=[];for(let e=0;e<this.length;e++)t.push(this[e]);return t},At.prototype.empty=function(){for(let t=0;t<this.length;t++){const e=this[t];Dt(e,!0),[Node.ELEMENT_NODE,Node.DOCUMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(e.nodeType)&&e.replaceChildren()}return this},At.prototype.scope=function(){return Lt(this[0],"$scope")||Ut(this[0].parentNode||this[0],["$isolateScope","$scope"])},At.prototype.isolateScope=function(){return Lt(this[0],"$isolateScope")||Lt(this[0],"$isolateScopeNoTemplate")},At.prototype.controller=function(t){return function(t,e){return Ut(t,`$${e||"ngController"}Controller`)}(this[0],t)},At.prototype.injector=function(){return Ut(this[0],"$injector")},At.prototype.on=function(t,e){for(let n=0;n<this.length;n++){const r=this[n];if(!Rt(r))return;const i=Vt(r,!0);i.handle||(i.handle=Ht(r,i.events));const s=t.indexOf(" ")>=0?t.split(" "):[t];let o=s.length;const a=function(t,n,s){let o=i.events[t];o||(o=i.events[t]=[],o.specialHandlerWrapper=n,"$destroy"===t||s||r.addEventListener(t,i.handle)),o.push(e)};for(;o--;)t=s[o],bt[t]?(a(bt[t],Bt),a(t,void 0,!0)):a(t)}return this},At.prototype.off=function(t,e){for(let n=0;n<this.length;n++){const r=this[n],i=Vt(r),s=i&&i.events,o=i&&i.handle;if(!o)return;if(t){const n=function(t){const n=s[t];v(e)&&Array.isArray(n)&&q(n,e),v(e)&&n&&n.length>0||(r.removeEventListener(t,o),delete s[t])};t.split(" ").forEach((t=>{n(t),bt[t]&&n(bt[t])}))}else for(t in s)"$destroy"!==t&&r.removeEventListener(t,o),delete s[t];Mt(r)}return this},At.prototype.removeData=function(t){for(let e=0;e<this.length;e++){jt(this[e],t)}return this},At.prototype.inheritedData=function(t,e){for(let n=0;n<this.length;n++){let n=Ut(this[0],t,e);return e?this:n}},At.prototype.html=function(t){const e=this[0];if(e)return g(t)?e.innerHTML:(Dt(e,!0),e.innerHTML=t,this)},At.prototype.text=function(t){let e="";for(let n=0;n<this.length;n++){const r=this[n];if(g(t)){const{nodeType:t}=r;e+=t===Node.ELEMENT_NODE||t===Node.TEXT_NODE?r.textContent:""}else r.textContent=t}return g(t)?e:this},At.prototype.val=function(t){for(let e=0;e<this.length;e++){const n=this[e];if(g(t)){if(n.multiple&&"select"===I(n)){const t=[];return Array.from(n.options).forEach((e=>{e.selected&&t.push(e.value||e.text)})),t}return n.value}return n.value=t,this}},At.prototype.attr=function(t,e){for(let n=0;n<this.length;n++){const r=this[n];let i;const{nodeType:s}=r;if(s===Node.TEXT_NODE||s===Node.ATTRIBUTE_NODE||s===Node.COMMENT_NODE||!r.getAttribute)continue;const o=$(t),a=St[o];if(y(t))for(let e in t)r.setAttribute(e,a?o:t[e]);else{if(!v(e))return i=r.getAttribute(t),a&&null!==i&&(i=o),null===i?void 0:i;null===e||!1===e&&a?r.removeAttribute(t):r.setAttribute(t,a?o:e)}}if(v(e)||y(t))return this},At.prototype.data=function(t,e){let n;const r=this.length;if(g(e)){if(y(t)){for(n=0;n<r;n++)Lt(this[n],t);return this}const i=g(e)?Math.min(r,1):r;for(let n=0;n<i;n++){const r=Lt(this[n],t,e);e=e?e+r:r}return e}for(n=0;n<r;n++)Lt(this[n],t,e);return this},At.prototype.replaceWith=function(t){let e,n=function(t,e){let n;const r=t.parentNode;Dt(t);const i=new At(e);for(let e=0;e<i.length;e++){const s=i[e];n?r.insertBefore(s,n.nextSibling):r.replaceChild(s,t),n=s}};for(let r=0;r<this.length;r++)It(e,n(this[r],t));return v(e)?e:this},At.prototype.children=function(){let t;for(let n=0;n<this.length;n++)t=At((e=this[n],Array.from(e.childNodes).filter((t=>t.nodeType===Node.ELEMENT_NODE))));var e;return v(t)?t:this},At.prototype.append=function(t){for(let e=0;e<this.length;e++){const n=this[e],{nodeType:r}=n;if(r!==Node.ELEMENT_NODE&&r!==Node.DOCUMENT_FRAGMENT_NODE)return this;let i=new At(t);for(let t=0;t<i.length;t++){const e=i[t];n.appendChild(e)}}return this},At.prototype.prepend=function(t){for(let e=0;e<this.length;e++){const n=this[e];if(n.nodeType===Node.ELEMENT_NODE){const e=n.firstChild,r=new At(t);for(let t=0;t<r.length;t++)n.insertBefore(r[t],e)}}return this},At.prototype.after=function(t){for(let e=0;e<this.length;e++){const n=this[e];let r=n;const i=n.parentNode;if(i){let e=new At(t);for(let t=0,n=e.length;t<n;t++){const n=e[t];i.insertBefore(n,r.nextSibling),r=n}}}return this},At.prototype.remove=function(t=!1){for(let e=0;e<this.length;e++){qt(this[e],t)}return this},At.prototype.detach=function(){for(let t=0;t<this.length;t++){qt(this[t],!0)}return this},At.prototype.parent=function(){let t,e=t=>{const e=t.parentNode;return e&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?e:null};for(let n=0,r=this.length;n<r;n++)g(t)?(t=e(this[n]),v(t)&&(t=At(t))):It(t,e(this[n]));return v(t)?t:this},At.prototype.find=function(t){let e;for(let n=0,r=this.length;n<r;n++){const r=this[n];g(e)?(e=r.getElementsByTagName?r.getElementsByTagName(t):[],v(e)&&(e=At(e))):r.getElementsByTagName&&It(e,r.getElementsByTagName(t))}return v(e)?e:this},At.prototype.triggerHandler=function(t,e){let n,r=function(t,e,n){let r,i,s;const o=e.type||e,a=Vt(t),c=a&&a.events,l=c&&c[o];l&&(r={preventDefault(){this.defaultPrevented=!0},isDefaultPrevented(){return!0===this.defaultPrevented},stopImmediatePropagation(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped(){return!0===this.immediatePropagationStopped},stopPropagation:()=>{},type:o,target:t},e.type&&(r=V(r,e)),i=rt(l),s=n?[r].concat(n):[r],i.forEach((e=>{r.isImmediatePropagationStopped()||e.apply(t,s)})))};for(let i=0,s=this.length;i<s;i++)g(n)?r(this[i],t,e):It(n,r(this[i],t,e));return v(n)?n:this};const Yt="$provide",Qt="$injector",Zt="$compileProvider";class Jt{constructor(t,e,n){it(b(t),"name required"),it(Array.isArray(e),"requires array required"),this.name=t,this.requires=e,this.invokeQueue=[],this.configBlocks=[],this.runBlocks=[],this.infoState={},n&&this.config(n)}info(t){return v(t)?(it(y(t),"module info value must be an object"),this.infoState=t,this):this.infoState}value(t,e){return this.invokeQueue.push([Yt,"value",[t,e]]),this}constant(t,e){return this.invokeQueue.unshift([Yt,"constant",[t,e]]),this}config(t){return this.configBlocks.push([Qt,"invoke",[t]]),this}run(t){return this.runBlocks.push(t),this}component(t,e){return e&&O(e)&&(e.$$moduleName=t),this.invokeQueue.push([Zt,"component",[t,e]]),this}factory(t,e){return e&&O(e)&&(e.$$moduleName=t),this.invokeQueue.push([Yt,"factory",[t,e]]),this}service(t,e){return e&&O(e)&&(e.$$moduleName=t),this.invokeQueue.push([Yt,"service",[t,e]]),this}provider(t,e){return e&&O(e)&&(e.$$moduleName=t),this.invokeQueue.push([Yt,"provider",[t,e]]),this}decorator(t,e){return e&&O(e)&&(e.$$moduleName=t),this.configBlocks.push([Yt,"decorator",[t,e]]),this}directive(t,e){return e&&O(e)&&(e.$$moduleName=t),this.invokeQueue.push([Zt,"directive",[t,e]]),this}animation(t,e){return e&&O(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$animateProvider","register",[t,e]]),this}filter(t,e){return e&&O(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$filterProvider","register",[t,e]]),this}controller(t,e){return e&&O(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$controllerProvider","register",[t,e]]),this}}const Xt=/^([^(]+?)=>/,te=/^[^(]*\(\s*([^)]*)\)/m,ee=/,/,ne=/^\s*(_?)(\S+?)\1\s*$/,re=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,ie=lt(Qt),se="Provider",oe=!0;class ae{constructor(t){this.cache={},this.strictDi=t,this.path=[],this.modules={}}get(t){if(Object.prototype.hasOwnProperty.call(this.cache,t)){if(this.cache[t]===oe)throw ie("cdep","Circular dependency found: {0}",`${t} <- ${this.path.join(" <- ")}`);return this.cache[t]}this.path.unshift(t),this.cache[t]=oe;try{this.cache[t]=this.factory(t)}catch(e){throw delete this.cache[t],e}return this.cache[t]}injectionArgs(t,e,n){const r=[],i=function(t,e,n){let r,i,s;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw ie("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=function(t){const e=ue(t).replace(re,""),n=e.match(Xt)||e.match(te);return n}(t),i[1].split(ee).forEach((function(t){t.replace(ne,(function(t,e,n){r.push(n)}))}))}t.$inject=r}}else Array.isArray(t)?(s=t.length-1,ot(t[s],"fn"),r=t.slice(0,s)):ot(t,"fn",!0);return r}(t,this.strictDi,n);for(let t=0,{length:n}=i;t<n;t++){const n=i[t];if("string"!=typeof n)throw ie("itkn","Incorrect injection token! Expected service name as string, got {0}",n);r.push(e&&Object.prototype.hasOwnProperty.call(e,n)?e[n]:this.get(n))}return r}invoke(t,e,n,r){"string"==typeof n&&(r=n,n=null);const i=this.injectionArgs(t,n,r);return Array.isArray(t)&&(t=t[t.length-1]),/^class\b/.test(ue(t))?(i.unshift(null),new(Function.prototype.bind.apply(t,i))):t.apply(e,i)}instantiate(t,e,n){const r=Array.isArray(t)?t[t.length-1]:t,i=this.injectionArgs(t,e,n);return i.unshift(null),new(Function.prototype.bind.apply(r,i))}loadNewModules(){}factory(t){console.error(`Unhandled ${t}`)}}class ce extends ae{constructor(t,e){super(e),this.cache=t}factory(t){throw this.path.push(t),ie("unpr","Unknown provider: {0}",this.path.join(" <- "))}}class le extends ae{constructor(t,e){super(t),this.providerInjector=e,this.modules=this.providerInjector.modules}factory(t){const e=this.providerInjector.get(t+se);return this.invoke(e.$get,e,void 0,t)}has(t){const e=Object.prototype.hasOwnProperty.call(this.providerInjector.cache,t+se),n=Object.prototype.hasOwnProperty.call(this.cache,t);return e||n}}function ue(t){return Function.prototype.toString.call(t)}const he=/^([^(]+?)=>/,de=/^[^(]*\(\s*([^)]*)\)/m,pe=/,/,fe=/^\s*(_?)(\S+?)\1\s*$/,$e=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,me=lt(Qt),ge="Provider";function ve(t,e=!1){it(Array.isArray(t),"modules required");const n=new Map,r={$provide:{provider:we(c),factory:we(l),service:we((function(t,e){return l(t,[Qt,t=>t.instantiate(e)])})),value:we((function(t,e){return r[t+ge]={$get:()=>e}})),constant:we((function(t,e){B(t,"constant"),i.cache[t]=e,s.cache[t]=e})),decorator:function(t,e){const n=i.get(t+ge),r=n.$get;n.$get=function(){const t=o.invoke(r,n);return o.invoke(e,null,{$delegate:t})}}}},i=r.$injector=new ce(r,e),s=new le(e,i);r.$injectorProvider={$get:()=>s};let o=s;const a=u(t);return o=s.get(Qt),a.forEach((t=>{t&&o.invoke(t)})),o.loadNewModules=function(t){u(t).forEach((t=>{t&&o.invoke(t)}))},o;function c(t,e){let n;if(B(t,"service"),n=O(e)||Array.isArray(e)?i.instantiate(e):e,!n.$get)throw me("pget","Provider '{0}' must define $get factory method.",t);return r[t+ge]=n,n}function l(t,e){return c(t,{$get:()=>{const n=o.invoke(e,this);if(g(n))throw me("undef","Provider '{0}' must return a value from $get factory method.",t);return n}})}function u(t){st(g(t)||Array.isArray(t),"modulesToLoad","not an array");let e=[];return t.forEach((t=>{if(!n.get(t)){n.set(t,!0);try{if(b(t)){const n=window.angular.module(t);o.modules[t]=n,e=e.concat(u(n.requires)).concat(n.runBlocks);n.invokeQueue.concat(n.configBlocks).forEach((t=>{const e=i.get(t[0]);e[t[1]].apply(e,t[2])}))}else O(t)||Array.isArray(t)?e.push(i.invoke(t)):ot(t,"module")}catch(e){throw Array.isArray(t)&&(t=t[t.length-1]),e.message&&e.stack&&-1===e.stack.indexOf(e.message)&&(e.message=`${e.message}\n${e.stack}`),me("modulerr","Failed to instantiate module {0} due to:\n{1}",t,e.stack||e.message||e)}}})),e}}function ye(t){const e=function(t){return Function.prototype.toString.call(t)}(t).replace($e,"");return e.match(he)||e.match(de)}function be(t,e,n){let r,i,s;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw me("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=ye(t),i[1].split(pe).forEach((function(t){t.replace(fe,(function(t,e,n){r.push(n)}))}))}t.$inject=r}}else Array.isArray(t)?(s=t.length-1,ot(t[s],"fn"),r=t.slice(0,s)):ot(t,"fn",!0);return r}function we(t){return function(e,n){if(!y(e))return t(e,n);Object.entries(e).forEach((([e,n])=>{t(e,n)}))}}const Ee=lt("$controller"),Ce=/^(\S+)(\s+as\s+([\w$]+))?$/;function Oe(t,e){if(b(t)){const e=Ce.exec(t);if(e)return e[3]}}class Se{constructor(){this.controllers=new Map}has(t){return this.controllers.has(t)}register(t,e){B(t,"controller"),y(t)?Object.entries(t).forEach((([t,e])=>{this.controllers.set(t,e)})):this.controllers.set(t,e)}$get=["$injector",t=>(e,n,r,i)=>{let s,o,a,c=i&&b(i)?i:null;if(r=!0===r,b(e)){if(o=e.match(Ce),!o)throw Ee("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",e);if(a=o[1],c=c||o[3],!(e=this.controllers.get(a)))throw Ee("ctrlreg","The controller with the name '{0}' is not registered.",a);ot(e,a,!0)}if(r){const r=(Array.isArray(e)?e[e.length-1]:e).prototype;return s=Object.create(r||null),c&&this.addIdentifier(n,c,s,a||e.name),function(){const r=t.invoke(e,s,n,a);return r!==s&&(y(r)||O(r))&&(s=r,c&&this.addIdentifier(n,c,s,a||e.name)),s}.bind(this,{instance:s,identifier:c})}return s=t.instantiate(e,n,a),c&&this.addIdentifier(n,c,s,a||e.name),s}];addIdentifier(t,e,n,r){if(!t||!y(t.$scope))throw lt("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,e);t.$scope[e]=n}}const xe={NONE:0,APPLY:1,DIGEST:2},Ae=lt("$rootScope"),ke=[],_e=[],Te=[];let je,Ve,Ne,Re=0,Pe=null,De=null;class Me{constructor(){this.rootScope=new Le(!0)}$get=["$exceptionHandler","$parse","$browser",(t,e,n)=>(Ne=t,je=e,Ve=n,this.rootScope)]}class Le{constructor(t=!1){this.isRoot=t,this.$id=f(),this.$$phase=xe.NONE,this.$parent=null,this.$root=this,this.$$watchers=[],this.$$digestWatchIndex=-1,this.$$nextSibling=null,this.$$prevSibling=null,this.$$childHead=null,this.$$childTail=null,this.$$destroyed=!1,this.$$suspended=!1,this.$$listeners=new Map,this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}$new(t){let e=t?new Le:Object.create(this);return t?e.$root=this.$root:(e.$id=f(),e.$$watchers=[],e.$$nextSibling=null,e.$$childHead=null,e.$$childTail=null,e.$$listeners=new Map,e.$$listenerCount={},e.$$watchersCount=0,e.$$suspended=!1),e.$parent=this,e.$$prevSibling=e.$parent.$$childTail,e.$parent.$$childHead?(e.$parent.$$childTail.$$nextSibling=e,e.$parent.$$childTail=e):(e.$parent.$$childHead=e,e.$parent.$$childTail=e),t&&e.$on("$destroy",(t=>{t.currentScope.$$destroyed=!0})),e}$transcluded(t){let e=Object.create(this);return e.$id=f(),e.$$watchers=[],e.$$nextSibling=null,e.$$childHead=null,e.$$childTail=null,e.$$listeners=new Map,e.$$listenerCount={},e.$$watchersCount=0,e.$$suspended=!1,e.$parent=t||this,e.$$prevSibling=e.$parent.$$childTail,e.$parent.$$childHead?(e.$parent.$$childTail.$$nextSibling=e,e.$parent.$$childTail=e):(e.$parent.$$childHead=e,e.$parent.$$childTail=e),t!==this&&e.$on("$destroy",(t=>{t.currentScope.$$destroyed=!0})),e}$watch(t,e,n){const r=je(t),i=O(e)?e:()=>{};if(r.$$watchDelegate)return r.$$watchDelegate(this,i,n,r,t);const s={fn:i,last:Ie,get:r,exp:t,eq:!!n};return Pe=null,0===this.$$watchers.length&&(this.$$digestWatchIndex=-1),this.$$watchers.unshift(s),this.$$digestWatchIndex++,this.incrementWatchersCount(1),()=>{const t=q(this.$$watchers,s);t>=0&&(this.incrementWatchersCount(-1),t<this.$$digestWatchIndex&&this.$$digestWatchIndex--),Pe=null}}$watchGroup(t,e){const n=new Array(t.length),r=new Array(t.length),i=[],s=this;let o=!1,a=!0;if(!t.length){let t=!0;return s.$evalAsync((()=>{t&&e(r,r,s)})),function(){t=!1}}if(1===t.length)return this.$watch(t[0],((t,i,s)=>{r[0]=t,n[0]=i,e(r,t===i?r:n,s)}));function c(){o=!1;try{a?(a=!1,e(r,r,s)):e(r,n,s)}finally{for(let e=0;e<t.length;e++)n[e]=r[e]}}return Object.entries(t).forEach((([t,e])=>{const n=s.$watch(e,(e=>{r[t]=e,o||(o=!0,s.$evalAsync(c))}));i.push(n)})),function(){for(;i.length;)i.shift()()}}$watchCollection(t,e){p.$$pure=je(t).literal,p.$stateful=!p.$$pure;const n=this;let r,i,s;const o=e.length>1;let a=0;const c=je(t,p),l=[];let u={},h=!0,d=0;function p(t){let e,n,s,o,c;if(r=t,!g(r)){if(y(r))if(m(r)){i!==l&&(i=l,d=i.length=0,a++),e=r.length,d!==e&&(a++,i.length=d=e);for(let t=0;t<e;t++)c=i[t],o=r[t],s=c!=c&&o!=o,s||c===o||(a++,i[t]=o)}else{for(n in i!==u&&(i=u={},d=0,a++),e=0,r)Object.hasOwnProperty.call(r,n)&&(e++,o=r[n],c=i[n],n in i?(s=c!=c&&o!=o,s||c===o||(a++,i[n]=o)):(d++,i[n]=o,a++));if(d>e)for(n in a++,i)Object.hasOwnProperty.call(r,n)||(d--,delete i[n])}else i!==r&&(i=r,a++);return a}}return this.$watch(c,(function(){if(h?(h=!1,e(r,r,n)):e(r,s,n),o)if(y(r))if(m(r)){s=new Array(r.length);for(let t=0;t<r.length;t++)s[t]=r[t]}else{s={};for(const t in r)Object.hasOwnProperty.call(r,t)&&(s[t]=r[t])}else s=r}))}$digest(){let t,e,n,r,i,s,o,a,c=10;const l=ke.length?this.$root:this,u=[];let h,d;this.beginPhase(xe.DIGEST),Ve.$$checkUrlChange(),this.isRoot&&null!==De&&(Ve.cancel(De),Ue(),De=null),Pe=null;do{s=!1,a=l;for(let t=0;t<ke.length;t++){try{d=ke[t],n=d.fn,n(d.scope,d.locals)}catch(t){Ne(t)}Pe=null}ke.length=0;do{if(i=!a.$$suspended&&a.$$watchers)for(a.$$digestWatchIndex=i.length;a.$$digestWatchIndex--;)try{const o=i[a.$$digestWatchIndex];if(o)if(r=o.get,(t=r(a))===(e=o.last)||(o.eq?F(t,e):R(t)&&R(e))){if(o===Pe){s=!1;break}}else s=!0,Pe=o,o.last=o.eq?structuredClone(t):t,n=o.fn,n(t,e===Ie?t:e,a),c<5&&(h=4-c,u[h]||(u[h]=[]),u[h].push({msg:O(o.exp)?`fn: ${o.exp.name||o.exp.toString()}`:o.exp,newVal:t,oldVal:e}))}catch(t){Ne(t)}if(!(o=!a.$$suspended&&a.$$watchersCount&&a.$$childHead||a!==l&&a.$$nextSibling))for(;a!==l&&!(o=a.$$nextSibling);)a=a.$parent}while(a=o);if((s||ke.length)&&!c--)throw this.clearPhase(),Ae("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",10,u)}while(s||ke.length);for(this.clearPhase();Re<_e.length;)try{_e[Re++]()}catch(t){Ne(t)}_e.length=Re=0,Ve.$$checkUrlChange()}beginPhase(t){if(this.$root.$$phase!==xe.NONE)throw Ae("inprog","digest already in progress",this.$root.$$phase);this.$root.$$phase=t}$suspend(){this.$$suspended=!0}$isSuspended(){return this.$$suspended}$resume(){this.$$suspended=!1}$destroy(){if(!this.$$destroyed){this.$broadcast("$destroy"),this.$$destroyed=!0,this===this.$root&&Ve.$$applicationDestroyed(),this.incrementWatchersCount(-this.$$watchersCount);for(const t in this.$$listenerCount)this.decrementListenerCount(this.$$listenerCount[t],t);this.$parent&&(this.$parent.$$childHead===this&&(this.$parent.$$childHead=this.$$nextSibling),this.$parent.$$childTail===this&&(this.$parent.$$childTail=this.$$prevSibling)),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$applyAsync=()=>{},this.$evalAsync=()=>{},this.$on=this.$watch=this.$watchGroup=function(){return()=>{}},this.$$listeners.clear(),this.$$nextSibling=null,this.$parent=null,this.$$nextSibling=null,this.$$prevSibling=null,this.$$childHead=null,this.$$childTail=null,this.$root=null,this.$$watchers=null}}$eval(t,e){return je(t)(this,e)}$evalAsync(t,e){let n;return this.$root.$$phase!==xe.NONE||ke.length||(n=Ve.defer((()=>{ke.length&&this.$root.$digest()}),null,"$evalAsync")),ke.push({scope:this,fn:je(t),locals:e}),n}$$postDigest(t){_e.push(t)}$apply(t){try{this.beginPhase(xe.APPLY);try{return this.$eval(t)}finally{this.clearPhase()}}catch(t){Ne(t)}finally{this.retry()}}retry(){try{this.$root.$digest()}catch(t){throw Ne(t),t}}clearPhase(){this.$root.$$phase=xe.NONE}$applyAsync(t){const e=this;t&&Te.push((()=>e.$eval(t))),null===De&&(De=Ve.defer(Ue,null,"$applyAsync"))}$on(t,e){let n=this.$$listeners.get(t);n||(n=[],this.$$listeners.set(t,n)),n.push(e);let r=this;do{r.$$listenerCount[t]=(r.$$listenerCount[t]??0)+1}while(r=r.$parent);return()=>{const r=n.indexOf(e);-1!==r&&(delete n[r],this.decrementListenerCount(1,t))}}incrementWatchersCount(t){this.$$watchersCount+=t,this.$parent&&this.$parent.incrementWatchersCount(t)}decrementListenerCount(t,e){let n=this;for(;n;n=n.$parent)void 0!==n.$$listenerCount[e]&&(n.$$listenerCount[e]-=t,0===n.$$listenerCount[e]&&delete n.$$listenerCount[e])}$emit(t,...e){const n=[];let r,i=this,s=!1;const o={name:t,targetScope:i,stopPropagation(){s=!0},preventDefault(){o.defaultPrevented=!0},defaultPrevented:!1},a=W([o],[o].concat(e),1);let c,l;do{for(r=i.$$listeners.get(t)||n,o.currentScope=i,c=0,l=r.length;c<l;c++)if(r[c])try{r[c].apply(null,a)}catch(t){Ne(t)}else r.splice(c,1),c--,l--;if(s)break;i=i.$parent}while(i);return o.currentScope=null,o}$broadcast(t,...e){const n=this;let r=n,i=n;const s={name:t,targetScope:n,preventDefault(){s.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[t])return s;const o=W([s],[s].concat(e),1);let a,c,l;for(;r=i;){for(s.currentScope=r,a=r.$$listeners.get(t)||[],c=0,l=a.length;c<l;c++)if(a[c])try{a[c].apply(null,o)}catch(t){Ne(t)}else a.splice(c,1),c--,l--;if(!(i=r.$$listenerCount[t]&&r.$$childHead||r!==n&&r.$$nextSibling))for(;r&&r!==n&&!(i=r.$$nextSibling);)r=r.$parent}return s.currentScope=null,s}}function Ie(){}function Ue(){for(;Te.length;)try{Te.shift()()}catch(t){Ne(t)}De=null}const qe=document.createElement("a"),He=Be(window.location.href);let Fe;function Be(t){if(!b(t))return t;const e=t;qe.setAttribute("href",e);let{hostname:n}=qe;return!("[::1]"===qe.hostname)&&n.indexOf(":")>-1&&(n=`[${n}]`),{href:qe.href,protocol:qe.protocol?qe.protocol.replace(/:$/,""):"",host:qe.host,search:qe.search?qe.search.replace(/^\?/,""):"",hash:qe.hash?qe.hash.replace(/^#/,""):"",hostname:n,port:qe.port,pathname:"/"===qe.pathname.charAt(0)?qe.pathname:`/${qe.pathname}`}}function ze(t){return We(t,function(){if(document.baseURI)return document.baseURI;Fe||(Fe=document.createElement("a"),Fe.href=".",Fe=Fe.cloneNode(!1));return Fe.href}())}function We(t,e){return t=Be(t),e=Be(e),t.protocol===e.protocol&&t.host===e.host}qe.href="http://[::1]";const Ge=lt("$sce"),Ke={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"};function Ye(t){if("self"===t)return t;if(b(t)){if(t.indexOf("***")>-1)throw Ge("iwcard","Illegal sequence *** in string matcher. String: {0}",t);return t=(e=t,e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1")).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp(`^${t}$`)}var e;if(S(t))return new RegExp(`^${t.source}$`);throw Ge("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function Qe(){this.SCE_CONTEXTS=Ke;let t=["self"],e=[];this.trustedResourceUrlList=function(e){return arguments.length&&(t=e.map((t=>Ye(t)))),t},this.bannedResourceUrlList=function(t){return arguments.length&&(e=t.map((t=>Ye(t)))),e},this.$get=["$injector","$$sanitizeUri",function(n,r){let i=function(){throw Ge("unsafe","Attempting to use an unsafe value in a safe context.")};function s(t,e){return"self"===t?We(e,He)||ze(e):!!t.exec(e.href)}function o(t){const e=function(t){this.$$unwrapTrustedValue=function(){return t}};return t&&(e.prototype=new t),e.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}n.has("$sanitize")&&(i=n.get("$sanitize"));const a=o(),c={};return c[Ke.HTML]=o(a),c[Ke.CSS]=o(a),c[Ke.MEDIA_URL]=o(a),c[Ke.URL]=o(c[Ke.MEDIA_URL]),c[Ke.JS]=o(a),c[Ke.RESOURCE_URL]=o(c[Ke.URL]),{trustAs:function(t,e){const n=Object.prototype.hasOwnProperty.call(c,t)?c[t]:null;if(!n)throw Ge("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||g(e)||""===e)return e;if("string"!=typeof e)throw Ge("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new n(e)},getTrusted:function(n,o){if(null===o||g(o)||""===o)return o;const a=Object.prototype.hasOwnProperty.call(c,n)?c[n]:null;if(a&&o instanceof a)return o.$$unwrapTrustedValue();if(O(o.$$unwrapTrustedValue)&&(o=o.$$unwrapTrustedValue()),n===Ke.MEDIA_URL||n===Ke.URL)return r(o.toString(),n===Ke.MEDIA_URL);if(n===Ke.RESOURCE_URL){if(function(n){const r=Be(n.toString());let i,o,a=!1;for(i=0,o=t.length;i<o;i++)if(s(t[i],r)){a=!0;break}if(a)for(i=0,o=e.length;i<o;i++)if(s(e[i],r)){a=!1;break}return a}(o))return o;throw Ge("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",o.toString())}if(n===Ke.HTML)return i();throw Ge("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(t){return t instanceof a?t.$$unwrapTrustedValue():t}}}]}function Ze(){let t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,n){const r=rt(Ke);r.isEnabled=function(){return t},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,t||(r.trustAs=r.getTrusted=function(t,e){return e},r.valueOf=function(t){return t}),r.parseAs=function(t,n){const i=e(n);return i.literal&&i.constant?i:e(n,(e=>r.getTrusted(t,e)))};const i=r.parseAs,{getTrusted:s}=r,{trustAs:o}=r;return Object.entries(Ke).forEach((([t,e])=>{const n=$(t);r[Tt(`parse_as_${n}`)]=function(t){return i(e,t)},r[Tt(`get_trusted_${n}`)]=function(t){return s(e,t)},r[Tt(`trust_as_${n}`)]=function(t){return o(e,t)}})),r}]}const Je={},Xe={blur:!0,focus:!0};function tn(t,e,n,r,i,s){return{restrict:"A",compile(o,a){const c=t(a[r]);return function(t,r){r.on(i,(r=>{const i=function(){c(t,{$event:r})};if(e.$$phase===xe.NONE)t.$apply(i);else if(s)t.$evalAsync(i);else try{i()}catch(t){n(t)}}))}}}}"click dblclick submit focus blur copy cut paste".split(" ").forEach((t=>{const e=pt(`ng-${t}`);Je[e]=["$parse","$rootScope","$exceptionHandler",(n,r,i)=>tn(n,r,i,e,t,Xe[t])]}));const en=lt("$compile"),nn=/^\w/,rn=document.createElement("div");class sn{constructor(t,e,n,r,i,s){if(this.$rootScope=t,this.$animate=e,this.$exceptionHandler=n,this.$sce=r,s){const t=Object.keys(s);for(let e=0,n=t.length;e<n;e++){const n=t[e];this[n]=s[n]}}else this.$attr={};this.$$element=i}$normalize=pt;$addClass(t){t&&t.length>0&&this.$animate.addClass(this.$$element,t)}$removeClass(t){t&&t.length>0&&this.$animate.removeClass(this.$$element,t)}$updateClass(t,e){const n=on(t,e);n&&n.length&&this.$animate.addClass(this.$$element,n);const r=on(e,t);r&&r.length&&this.$animate.removeClass(this.$$element,r)}$set(t,e,n,r){const i=Gt(this.$$element[0],t),s=h[t];let o=t;i?(this.$$element[0][t]=e,r=i):s&&(this[s]=e,o=s),this[t]=e,r?this.$attr[t]=r:(r=this.$attr[t])||(this.$attr[t]=r=j(t,"-")),"img"===this.$$element[0].nodeName.toLowerCase()&&"srcset"===t&&(this[t]=e=this.sanitizeSrcset(e,"$set('srcset', value)")),!1!==n&&(null===e||g(e)?this.$$element[0].removeAttribute(r):nn.test(r)?i&&!1===e?this.$$element[0].removeAttribute(r):this.$$element.attr(r,e):this.setSpecialAttr(this.$$element[0],r,e));const{$$observers:a}=this;a&&a[o]&&a[o].forEach((t=>{try{t(e)}catch(t){this.$exceptionHandler(t)}}))}$observe(t,e){const n=this.$$observers||(this.$$observers=Object.create(null)),r=n[t]||(n[t]=[]);return r.push(e),this.$rootScope.$evalAsync((()=>{r.$$inter||!Object.prototype.hasOwnProperty.call(this,t)||g(this[t])||e(this[t])})),function(){q(r,e)}}setSpecialAttr(t,e,n){rn.innerHTML=`<span ${e}>`;const{attributes:r}=rn.firstChild,i=r[0];r.removeNamedItem(i.name),i.value=n,t.attributes.setNamedItem(i)}sanitizeSrcset(t,e){if(!t)return t;if(!b(t))throw en("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',e,t.toString());for(var n="",r=T(t),i=/\s/.test(r)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,s=r.split(i),o=Math.floor(s.length/2),a=0;a<o;a++){var c=2*a;n+=this.$sce.getTrustedMediaUrl(T(s[c])),n+=" "+T(s[c+1])}var l=T(s[2*a]).split(/\s/);return n+=this.$sce.getTrustedMediaUrl(T(l[0])),2===l.length&&(n+=" "+T(l[1])),n}}function on(t,e){let n="";const r=t.split(/\s+/),i=e.split(/\s+/);t:for(let t=0;t<r.length;t++){const e=r[t];for(let t=0;t<i.length;t++)if(e===i[t])continue t;n+=(n.length>0?" ":"")+e}return n}let an=10;const cn=lt("$compile"),ln=new Object,un=["ngIf","ngRepeat"];function hn(t,e){const n={},r="Directive",i={ngSrc:!0,ngSrcset:!0,src:!0,srcset:!0},s=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,o=/^(on[a-z]+|formaction)$/,a=Object.create(null);function c(t,e,n){const r=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,i=Object.create(null);return Object.entries(t).forEach((([t,s])=>{if((s=s.trim())in a)return void(i[t]=a[s]);const o=s.match(r);if(!o)throw cn("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",e,t,s,n?"controller bindings definition":"isolate scope definition");i[t]={mode:o[1][0],collection:"*"===o[2],optional:"?"===o[3],attrName:o[4]||t},o[4]&&(a[s]=i[t])})),i}function u(t,e){const n={isolateScope:null,bindToController:null};if(y(t.scope)&&(!0===t.bindToController?(n.bindToController=c(t.scope,e,!0),n.isolateScope={}):n.isolateScope=c(t.scope,e,!1)),y(t.bindToController)&&(n.bindToController=c(t.bindToController,e,!0)),n.bindToController&&!t.controller)throw cn("noctrl","Cannot bind to controller without directive '{0}'s controller.",e);return n}this.directive=function e(i,o){return st(i,"name"),B(i,"directive"),b(i)?(!function(t){const e=t.charAt(0);if(!e||e!==$(e))throw cn("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw cn("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}(i),st(o,"directiveFactory"),Object.prototype.hasOwnProperty.call(n,i)||(n[i]=[],t.factory(i+r,["$injector","$exceptionHandler",function(t,e){const r=[];return n[i].forEach(((n,o)=>{try{let e=t.invoke(n);O(e)?e={compile:D(e)}:!e.compile&&e.link&&(e.compile=D(e.link)),e.priority=e.priority||0,e.index=o,e.name=e.name||i,e.require=function(t){const e=t.require||t.controller&&t.name;return!Array.isArray(e)&&y(e)&&Object.entries(e).forEach((([t,n])=>{const r=n.match(s);n.substring(r[0].length)||(e[t]=r[0]+t)})),e}(e),e.restrict=function(t,e){if(t&&(!b(t)||!/[EA]/.test(t)))throw cn("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",t,e);return t||"EA"}(e.restrict,i),e.$$moduleName=n.$$moduleName,r.push(e)}catch(t){e(t)}})),r}])),n[i].push(o)):Object.entries(i).forEach((([t,n])=>e(t,n))),this},this.component=function(t,e){if(!b(t))return Object.entries(t).forEach((([t,e])=>this.component(t,e))),this;const n=e.controller||function(){};function r(t){function r(e){return O(e)||Array.isArray(e)?function(n,r){return t.invoke(e,this,{$element:n,$attrs:r})}:e}const i=e.template||e.templateUrl?e.template:"",s={controller:n,controllerAs:Oe(e.controller)||e.controllerAs||"$ctrl",template:r(i),templateUrl:r(e.templateUrl),transclude:e.transclude,scope:{},bindToController:e.bindings||{},restrict:"E",require:e.require};return Object.entries(e).forEach((([t,e])=>{"$"===t.charAt(0)&&(s[t]=e)})),s}return Object.entries(e).forEach((([t,e])=>{"$"===t.charAt(0)&&(r[t]=e,O(n)&&(n[t]=e))})),r.$inject=["$injector"],this.directive(t,r)},this.aHrefSanitizationTrustedUrlList=function(t){return v(t)?(e.aHrefSanitizationTrustedUrlList(t),this):e.aHrefSanitizationTrustedUrlList()},this.imgSrcSanitizationTrustedUrlList=function(t){return v(t)?(e.imgSrcSanitizationTrustedUrlList(t),this):e.imgSrcSanitizationTrustedUrlList()};let h=!1;this.strictComponentBindingsEnabled=function(t){return v(t)?(h=t,this):h};const d=Object.create(null);this.addPropertySecurityContext=function(t,e,n){const r=`${t.toLowerCase()}|${e.toLowerCase()}`;if(r in d&&d[r]!==n)throw cn("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",t,e,d[r],n);return d[r]=n,this},function(){function t(t,e){e.forEach((e=>{d[e.toLowerCase()]=t}))}t(Ke.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),t(Ke.CSS,["*|style"]),t(Ke.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),t(Ke.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),t(Ke.RESOURCE_URL,["*|formAction","applet|code","applet|codebase","base|href","embed|src","frame|src","form|action","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])}(),this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(t,e,a,c,p,f,$,m,v){let w;function E(){try{if(! --an)throw w=void 0,cn("infchng","{0} $onChanges() iterations reached. Aborting!\n",an);$.$apply((()=>{for(let t=0,e=w.length;t<e;++t)try{w[t]()}catch(t){a(t)}w=void 0}))}finally{an++}}const S=e.startSymbol(),x=e.endSymbol(),_="{{"===S&&"}}"===x?t=>t:t=>t.replace(/\{\{/g,S).replace(/}}/g,x),j=/^ng(Attr|Prop|On|Observe)([A-Z].*)$/;return N;function N(t,e,n,r,i){let s=At(t),o=R(s,e,s,n,r,i),a=null;return function(t,e,n){if(!s)throw cn("multilink","This element has already been linked.");st(t,"scope"),i&&i.needsNewScope&&(t=t.$parent.$new()),n=n||{};let r,{transcludeControllers:c,parentBoundTranscludeFn:l,futureParentElement:u}=n;if(l&&l.$$boundTransclude&&(l=l.$$boundTransclude),a||(a=function(t){const e=t&&t[0];if(!e)return"html";return"foreignobject"!==I(e)&&toString.call(e).match(/SVG/)?"svg":"html"}(u)),"html"!==a)r=At(J(a,At("<div></div>").append(s).html()));else if(e){r=new At(s.elements().map((t=>t.cloneNode(!0))))}else r=s;if(c)for(const t in c)r.data(`$${t}Controller`,c[t].instance);return e&&e(r,t),o&&o(t,r,r,l),e||(s=o=null),r}}function R(t,e,n,r,i,s){const o=[];let c,l;var u;let h,d,p,f;for(let g=0;g<t.length;g++)c=new sn($,v,a,m),l=M(t[g],[],c,0===g?r:void 0,i),d=(u=l.length?U(l,t[g],c,e,n,null,[],[],s):null)&&u.terminal||!(h=t[g].childNodes)||!h.length?null:R(h,u?(u.transcludeOnThisElement||!u.templateOnThisElement)&&u.transclude:e),(u||d)&&(o.push(g,u,d),p=!0,f=f||u),s=null;return p?function(t,n,r,i){let s,a,c,l,u,h,d,p,$;if(f)for($=new Array(n.length),u=0;u<o.length;u+=3)d=o[u],$[d]=n[d];else $=n;for(u=0,h=o.length;u<h;)c=$[o[u++]],s=o[u++],a=o[u++],s?(l=s.scope?t.$new():t,p=s.transcludeOnThisElement?D(t,s.transclude,i):!s.templateOnThisElement&&i?i:!i&&e?D(t,e):null,s(a,l,c,r,p)):a&&a(t,c.childNodes,void 0,i)}:null}function D(t,e,n){function r(r,i,s,o,a){return r||((r=t.$transcluded(a)).$$transcluded=!0),e(r,i,{parentBoundTranscludeFn:n,transcludeControllers:s,futureParentElement:o})}const i=r.$$slots=Object.create(null);for(const r in e.$$slots)e.$$slots[r]?i[r]=D(t,e.$$slots[r],n):i[r]=null;return r}function M(t,n,r,i,s){const{nodeType:o}=t,a=r.$attr;let c;switch(o){case Node.ELEMENT_NODE:c=t.nodeName.toLowerCase(),z(n,pt(c),"E",i,s);for(var u,h,d,p,f,$=t.attributes,m=0,g=$&&$.length;m<g;m++){let e=!1,o=!1,c=!1,g=!1;h=(u=$[m]).name,p=u.value,(f=(d=pt(h.toLowerCase())).match(j))&&(e="Attr"===f[1],o="Prop"===f[1],c="On"===f[1],g="Observe"===f[1],h=h.replace(l,"").toLowerCase().substring(4+f[1].length).replace(/_(.)/g,((t,e)=>e.toUpperCase()))),o||c?(r[d]=p,a[d]=u.name,o?tt(t,n,d,h):et(n,d,h)):g?nt(n,h,p):(a[d=pt(h.toLowerCase())]=h,!e&&Object.prototype.hasOwnProperty.call(r,d)||(r[d]=p,Gt(t,d)&&(r[d]=!0)),rt(t,n,p,d,e),z(n,d,"A",i,s))}"input"===c&&"hidden"===t.getAttribute("type")&&t.setAttribute("autocomplete","off");break;case Node.TEXT_NODE:!function(t,n){const r=e(n,!0);r&&t.push({priority:0,compile:()=>(t,e)=>{t.$watch(r,(t=>{e[0].nodeValue=t}))}})}(n,t.nodeValue)}return n.sort(Q),n}function L(t,e,n,r,i,s){let o;return t?N(e,n,r,i,s):function(){return o||(o=N(e,n,r,i,s),e=n=s=null),o.apply(this,arguments)}}function U(t,e,n,r,i,s,o,c,l){l=l||{};let u,h,d,p,b,w=-Number.MAX_VALUE,{newScopeDirective:E}=l,{controllerDirectives:C}=l,{newIsolateScopeDirective:S}=l,{templateDirective:x}=l,{nonTlbTranscludeDirective:k}=l,j=!1,N=!1,{hasElementTranscludeDirective:R}=l,P=n.$$element=At(e),D=s,U=r,H=!1,F=!1,z=function(t,r,i,s,l){let u,h,d,p,b,w,x,k,_,T;e===i?(_=n,k=n.$$element):(k=At(i),_=new sn($,v,a,m,k,n)),b=r,S?p=r.$new(!0):E&&(b=r.$parent),l&&(x=function(t,e,n,r){let i;A(t)||(r=n,n=e,e=t,t=void 0);R&&(i=w);n||(n=R?k.parent():k);if(!r)return l(t,e,i,n,j);{const s=l.$$slots[r];if(s)return s(t,e,i,n,j);if(g(s))throw cn("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,zt(k))}},x.$$boundTransclude=l,x.isSlotFilled=function(t){return!!l.$$slots[t]}),C&&(w=function(t,e,n,r,i,s,o){const a=Object.create(null);for(const c in r){const l=r[c],u={$scope:l===o||l.$$isolateScope?i:s,$element:t,$attrs:e,$transclude:n};let{controller:h}=l;"@"===h&&(h=e[l.name]);const d=f(h,u,!0,l.controllerAs);a[l.name]=d,t.data(`$${l.name}Controller`,d.instance)}return a}(k,_,x,C,p,r,S)),S&&(p.$$isolateBindings=S.$$isolateBindings,T=lt(r,_,p,p.$$isolateBindings,S),T.removeWatches&&p.$on("$destroy",T.removeWatches));for(const t in w){const e=C[t],n=w[t],r=e.$$bindings.bindToController;n.instance=n(),k.data(`$${e.name}Controller`,n.instance),n.bindingInfo=lt(b,_,n.instance,r,e)}for(C&&Object.entries(C).forEach((([t,e])=>{const{require:n}=e;e.bindToController&&!Array.isArray(n)&&y(n)&&V(w[t].instance,q(t,n,k,w))})),w&&Object.values(w).forEach((t=>{const e=t.instance;if(O(e.$onChanges))try{e.$onChanges(t.bindingInfo.initialChanges)}catch(t){a(t)}if(O(e.$onInit))try{e.$onInit()}catch(t){a(t)}O(e.$doCheck)&&(b.$watch((()=>{e.$doCheck()})),e.$doCheck()),O(e.$onDestroy)&&b.$on("$destroy",(()=>{e.$onDestroy()}))})),u=0,h=o.length;u<h;u++)d=o[u],at(d,d.isolateScope?p:r,k,_,d.require&&q(d.directiveName,d.require,k,w),x);var j=r;for(S&&(S.template||null===S.templateUrl)&&(j=p),t&&t(j,i.childNodes,void 0,l),u=c.length-1;u>=0;u--)d=c[u],at(d,d.isolateScope?p:r,k,_,d.require&&q(d.directiveName,d.require,k,w),x);w&&Object.values(w).forEach((t=>{const e=t.instance;O(e.$postLink)&&e.$postLink()}))};for(let s=0,l=t.length;s<l&&(u=t[s],d=void 0,!(w>u.priority));s++){if(b=u.scope,b&&(u.templateUrl||(y(b)?(Z("new/isolated scope",S||E,u,P),S=u):Z("new/isolated scope",S,u,P)),E=E||u),h=u.name,!H&&(u.replace&&(u.templateUrl||u.template)||u.transclude&&!un.includes(u.name))){let e;for(let n=s+1;e=t[n++];)if(e.transclude&&!un.includes(e.name)||e.replace&&(e.templateUrl||e.template)){F=!0;break}H=!0}if(!u.templateUrl&&u.controller&&(C=C||Object.create(null),Z(`'${h}' controller`,C[h],u,P),C[h]=u),b=u.transclude,b)if(j=!0,un.includes(u.name)||(Z("transclusion",k,u,P),k=u),"element"===b)R=!0,w=u.priority,d=P,P=n.$$element=At(document.createComment("")),e=P[0],it(i,G(d),e),U=L(F,d,r,w,D&&D.name,{nonTlbTranscludeDirective:k});else{const t=Object.create(null);if(y(b)){d=document.createDocumentFragment();const e=Object.create(null),n=Object.create(null);Object.entries(b).forEach((([r,i])=>{const s="?"===i.charAt(0);i=s?i.substring(1):i,e[i]=r,t[r]=null,n[r]=s})),At(P[0].childNodes).elements().forEach((r=>{const i=e[pt(I(r))];i?(n[i]=!0,t[i]=t[i]||document.createDocumentFragment(),t[i].appendChild(r)):d.appendChild(r)})),Object.entries(n).forEach((([t,e])=>{if(!e)throw cn("reqslot","Required transclusion slot `{0}` was not filled.",t)}));for(const e in t)if(t[e]){const n=At(t[e].childNodes);t[e]=L(F,n,r)}d=At(d.childNodes)}else d=e.cloneNode(!0).childNodes;P.empty(),U=L(F,d,r,void 0,void 0,{needsNewScope:u.$$isolateScope||u.$$newScope}),U.$$slots=t}if(u.template)if(N=!0,Z("template",x,u,P),x=u,b=O(u.template)?u.template(P,n):u.template,b=_(b),u.replace){if(D=u,d=Nt(b)?[]:pn(J(u.templateNamespace,T(b))),e=d[0],1!==d.length||e.nodeType!==Node.ELEMENT_NODE)throw cn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",h,"");it(i,P,e);const r={$attr:{}},o=M(e,[],r),a=t.splice(s+1,t.length-(s+1));(S||E)&&B(o,S,E),t=t.concat(o).concat(a),W(n,r),l=t.length}else P.html(b);if(u.templateUrl)N=!0,Z("template",x,u,P),x=u,u.replace&&(D=u),z=Y(t.splice(s,t.length-s),P,n,i,j&&U,o,c,{controllerDirectives:C,newScopeDirective:E!==u&&E,newIsolateScopeDirective:S,templateDirective:x,nonTlbTranscludeDirective:k}),l=t.length;else if(u.compile)try{p=u.compile(P,n,U);const t=u.$$originalDirective||u;O(p)?Q(null,K(t,p)):p&&Q(K(t,p.pre),K(t,p.post))}catch(t){a(t,zt(P))}u.terminal&&(z.terminal=!0,w=Math.max(w,u.priority))}return z.scope=E&&!0===E.scope,z.transcludeOnThisElement=j,z.templateOnThisElement=N,z.transclude=U,l.hasElementTranscludeDirective=R,z;function Q(t,e){t&&(t.require=u.require,t.directiveName=h,(S===u||u.$$isolateScope)&&(t=ot(t,{isolateScope:!0})),o.push(t)),e&&(e.require=u.require,e.directiveName=h,(S===u||u.$$isolateScope)&&(e=ot(e,{isolateScope:!0})),c.push(e))}}function q(t,e,n,r){let i;if(b(e)){const o=e.match(s),a=e.substring(o[0].length),c=o[1]||o[3],l="?"===o[2];if("^^"===c?n=n.parent():(i=r&&r[a],i=i&&i.instance),!i){const t=`$${a}Controller`;i="^^"===c&&n[0]&&n[0].nodeType===Node.DOCUMENT_NODE?null:c?n.inheritedData(t):n.data(t)}if(!i&&!l)throw cn("ctreq","Controller '{0}', required by directive '{1}', can't be found!",a,t)}else if(Array.isArray(e)){i=[];for(let s=0,o=e.length;s<o;s++)i[s]=q(t,e[s],n,r)}else y(e)&&(i={},Object.entries(e).forEach((([e,s])=>{i[e]=q(t,s,n,r)})));return i||null}function B(t,e,n){for(let r=0,i=t.length;r<i;r++)t[r]=P(t[r],{$$isolateScope:e,$$newScope:n})}function z(e,i,s,o,a){if(i===a)return!1;let c=!1;if(Object.prototype.hasOwnProperty.call(n,i))for(let n,a=t.get(i+r),l=0,h=a.length;l<h;l++)if(n=a[l],(g(o)||o>n.priority)&&-1!==n.restrict.indexOf(s)){if(!n.$$bindings){const t=n.$$bindings=u(n,n.name);y(t.isolateScope)&&(n.$$isolateBindings=t.isolateScope)}e.push(n),c=n}return c}function W(t,e){const n=e.$attr,r=t.$attr;Object.entries(t).forEach((([r,i])=>{"$"!==r.charAt(0)&&(e[r]&&e[r]!==i&&(i.length?i+=("style"===r?";":" ")+e[r]:i=e[r]),t.$set(r,i,!0,n[r]))})),Object.entries(e).forEach((([e,i])=>{Object.prototype.hasOwnProperty.call(t,e)||"$"===e.charAt(0)||(t[e]=i,"class"!==e&&"style"!==e&&(r[e]=n[e]))}))}function Y(t,e,n,r,i,s,o,l){let u,h,d=[];const p=e[0],f=t.shift(),$=P(f,{templateUrl:null,transclude:null,replace:null,$$originalDirective:f}),m=O(f.templateUrl)?f.templateUrl(e,n):f.templateUrl,{templateNamespace:g}=f;return e.empty(),c(m).then((a=>{let c,v,b,w;if(a=_(a),f.replace){if(b=Nt(a)?[]:pn(J(g,T(a))),c=b[0],1!==b.length||c.nodeType!==Node.ELEMENT_NODE)throw cn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",f.name,m);v={$attr:{}},it(r,e,c);const i=M(c,[],v);y(f.scope)&&B(i,!0),t=i.concat(t),W(n,v)}else c=p,e.html(a);for(t.unshift($),u=U(t,c,n,i,e,f,s,o,l),r&&Object.entries(r).forEach((([t,n])=>{n===c&&(r[t]=e[0])})),h=R(e[0].childNodes,i);d.length;){const t=d.shift(),n=d.shift(),i=d.shift(),s=d.shift();let o=e[0];if(!t.$$destroyed){if(n!==p){const t=n.className;l.hasElementTranscludeDirective&&f.replace||(o=c.cloneNode(!0)),it(i,At(n),o);try{""!==t&&o.classList.add(...t.trim().split(" "))}catch(t){}}w=u.transcludeOnThisElement?D(t,u.transclude,s):s,u(h,t,o,r,w)}}d=null})).catch((t=>{C(t)&&a(t)})),function(t,e,n,r,i){let s=i;e.$$destroyed||(d?d.push(e,n,r,s):(u.transcludeOnThisElement&&(s=D(e,u.transclude,i)),u(h,e,n,r,s)))}}function Q(t,e){const n=e.priority-t.priority;return 0!==n?n:t.name!==e.name?t.name<e.name?-1:1:t.index-e.index}function Z(t,e,n,r){function i(t){return t?` (module: ${t})`:""}if(e)throw cn("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",e.name,i(e.$$moduleName),n.name,i(n.$$moduleName),t,zt(r))}function J(t,e){switch(t=(t||"html").toLowerCase()){case"svg":case"math":var n=document.createElement("div");return n.innerHTML=`<${t}>${e}</${t}>`,n.childNodes[0].childNodes;default:return e}}function X(t){return function(t,e){if(!t)return t;if(!b(t))throw cn("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',e,t.toString());for(var n="",r=T(t),i=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,s=/\s/.test(r)?i:/(,)/,o=r.split(s),a=Math.floor(o.length/2),c=0;c<a;c++){var l=2*c;n+=m.getTrustedMediaUrl(T(o[l])),n+=" "+T(o[l+1])}var u=T(o[2*c]).split(/\s/);n+=m.getTrustedMediaUrl(T(u[0])),2===u.length&&(n+=" "+T(u[1]));return n}(m.valueOf(t),"ng-prop-srcset")}function tt(t,e,n,r){if(o.test(r))throw cn("nodomevents","Property bindings for HTML DOM event properties are disallowed");const i=I(t),s=function(t,e){const n=e.toLowerCase();return d[`${t}|${n}`]||d[`*|${n}`]}(i,r);let a=t=>t;"srcset"!==r||"img"!==i&&"source"!==i?s&&(a=m.getTrusted.bind(m,s)):a=X,e.push({priority:100,compile:function(t,e){const i=p(e[n]),s=p(e[n],(t=>m.valueOf(t)));return{pre:function(t,e){function n(){const n=i(t);e[0][r]=a(n)}n(),t.$watch(s,n)}}}})}function et(t,e,n){t.push(tn(p,$,a,e,n,!1))}function nt(t,e,n){t.push(function(t,e){return{restrict:"A",compile:()=>(n,r)=>{const i=r[0];""===e&&(e=t);const s=_t(e);n[s]||(n[s]=i.getAttribute(t));const o=new MutationObserver((e=>{const r=e[0].target.getAttribute(t);n[s]!==r&&(n[s]=r,n.$digest())}));o.observe(i,{attributes:!0,attributeFilter:[t]}),n.$on("$destroy",(()=>{o.disconnect()}))}}}(e,n))}function rt(t,n,r,s,a){const c=I(t),l=function(t,e){return"srcdoc"===e?m.HTML:"src"===e||"ngSrc"===e?-1===["img","video","audio","source","track"].indexOf(t)?m.RESOURCE_URL:m.MEDIA_URL:"xlinkHref"===e?"image"===t?m.MEDIA_URL:"a"===t?m.URL:m.RESOURCE_URL:"form"===t&&"action"===e||"base"===t&&"href"===e||"link"===t&&"href"===e?m.RESOURCE_URL:"a"!==t||"href"!==e&&"ngHref"!==e?void 0:m.URL}(c,s),u=i[s]||a;let h=e(r,!a,l,u);if(h){if("multiple"===s&&"select"===c)throw cn("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",zt(t.outerHTML));if(o.test(s))throw cn("nodomevents","Interpolations for HTML DOM event attributes are disallowed");n.push({priority:100,compile:()=>({pre:function(t,n,i){const o=i.$$observers||(i.$$observers=Object.create(null)),a=i[s];a!==r&&(h=a&&e(a,!0,l,u),r=a),h&&(i[s]=h(t),(o[s]||(o[s]=[])).$$inter=!0,(i.$$observers&&i.$$observers[s].$$scope||t).$watch(h,((t,e)=>{"class"===s&&t!==e?i.$updateClass(t,e):i.$set(s,t)})))}})})}}function it(t,e,n){const r=e[0],i=e.length,s=r.parentNode;let o,a;if(t)for(o=0,a=t.length;o<a;o++)if(t[o]===r){t[o++]=n;for(let e=o,n=e+i-1,r=t.length;e<r;e++,n++)n<r?t[e]=t[n]:delete t[e];t.length-=i-1;break}s&&s.replaceChild(n,r);const c=document.createDocumentFragment();for(o=0;o<i;o++)c.appendChild(e[o]);for(mt.has(r[$t])&&(Lt(n,Lt(r)),At(r).off("$destroy")),Kt(c.querySelectorAll("*")),o=1;o<i;o++)delete e[o];e[0]=n,e.length=1}function ot(t,e){return V((function(){return t.apply(null,arguments)}),t,e)}function at(t,e,n,r,i,s){try{t(e,n,r,i,s)}catch(t){console.error(t),a(t,zt(n))}}function ct(t,e){if(h)throw cn("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",t,e)}function lt(t,n,r,i,s){const o=[],a={};let c;function l(e,n,i){O(r.$onChanges)&&!H(n,i)&&(w||(t.$$postDigest(E),w=[]),c||(c={},w.push(u)),c[e]&&(i=c[e].previousValue),c[e]=new dn(i,n))}function u(){r.$onChanges(c),c=void 0}return i&&Object.entries(i).forEach((([i,c])=>{const{attrName:u}=c,{optional:h}=c,{mode:d}=c;let f,$,m,g,v;switch(d){case"@":h||Object.hasOwnProperty.call(n,u)||(ct(u,s.name),r[i]=n[u]=void 0),v=n.$observe(u,(t=>{if(b(t)||k(t)){const e=r[i];l(i,t,e),r[i]=t}})),n.$$observers[u].$$scope=t,f=n[u],b(f)?r[i]=e(f)(t):k(f)&&(r[i]=f),a[i]=new dn(ln,r[i]),o.push(v);break;case"=":if(!Object.hasOwnProperty.call(n,u)){if(h)break;ct(u,s.name),n[u]=void 0}if(h&&!n[u])break;$=p(n[u]),g=$.literal?F:H,m=$.assign||function(){throw f=r[i]=$(t),cn("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",n[u],u,s.name)},f=r[i]=$(t);var y=function(e){return g(e,r[i])||(g(e,f)?m(t,e=r[i]):r[i]=e),f=e,f};y.$stateful=!0,v=c.collection?t.$watchCollection(n[u],y):t.$watch(p(n[u],y),null,$.literal),o.push(v);break;case"<":if(!Object.hasOwnProperty.call(n,u)){if(h)break;ct(u,s.name),n[u]=void 0}if(h&&!n[u])break;$=p(n[u]);var w=$.literal,E=r[i]=$(t);a[i]=new dn(ln,r[i]),v=t[c.collection?"$watchCollection":"$watch"]($,((t,e)=>{if(e===t){if(e===E||w&&F(e,E))return;e=E}l(i,t,e),r[i]=t})),o.push(v);break;case"&":if(h||Object.hasOwnProperty.call(n,u)||ct(u,s.name),$=Object.prototype.hasOwnProperty.call(n,u)?p(n[u]):()=>{},$.toString()===(()=>{}).toString()&&h)break;r[i]=function(e){return $(t,e)}}})),{initialChanges:a,removeWatches:o.length&&function(){for(let t=0,e=o.length;t<e;++t)o[t]()}}}}]}hn.$inject=["$provide","$$sanitizeUriProvider"];class dn{constructor(t,e){this.previousValue=t,this.currentValue=e}isFirstChange(){return this.previousValue===ln}}function pn(t){let e=(t=At(t)).length;if(e<=1)return t;for(;e--;){const n=t[e];(n.nodeType===Node.COMMENT_NODE||n.nodeType===Node.TEXT_NODE&&""===n.nodeValue.trim())&&[].splice.call(t,e,1)}return t}const fn={$addControl:()=>{},$getControls:D([]),$$renameControl:function(t,e){t.$name=e},$removeControl:()=>{},$setValidity:function(){},$setDirty:()=>{},$setPristine:()=>{},$setSubmitted:()=>{},$$setSubmitted:()=>{}},$n="ng-pending",mn="ng-submitted";function gn(t,e,n,r,i){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=i(e.name||e.ngForm||"")(n),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$$parentForm=fn,this.$$element=t,this.$$animate=r,wn(this)}gn.$inject=["$element","$attrs","$scope","$animate","$interpolate"],gn.prototype={$rollbackViewValue(){this.$$controls.forEach((t=>{t.$rollbackViewValue()}))},$commitViewValue(){this.$$controls.forEach((t=>{t.$commitViewValue()}))},$addControl(t){B(t.$name,"input"),this.$$controls.push(t),t.$name&&(this[t.$name]=t),t.$$parentForm=this},$getControls(){return rt(this.$$controls)},$$renameControl(t,e){const n=t.$name;this[n]===t&&delete this[n],this[e]=t,t.$name=e},$removeControl(t){t.$name&&this[t.$name]===t&&delete this[t.$name],this.$pending&&Object.keys(this.$pending).forEach((e=>{this.$setValidity(e,null,t)})),this.$error&&Object.keys(this.$error).forEach((e=>{this.$setValidity(e,null,t)})),this.$$success&&Object.keys(this.$$success).forEach((e=>{this.$setValidity(e,null,t)})),q(this.$$controls,t),t.$$parentForm=fn},$setValidity:function(t,e,n){},$setDirty(){this.$$animate.removeClass(this.$$element,r),this.$$animate.addClass(this.$$element,i),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine(){this.$$animate.setClass(this.$$element,r,`${i} ${mn}`),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,this.$$controls.forEach((t=>{t.$setPristine()}))},$setUntouched(){this.$$controls.forEach((t=>{t.$setUntouched()}))},$setSubmitted(){let t=this;for(;t.$$parentForm&&t.$$parentForm!==fn;)t=t.$$parentForm;t.$$setSubmitted()},$$setSubmitted(){this.$$animate.addClass(this.$$element,mn),this.$submitted=!0,this.$$controls.forEach((t=>{t.$$setSubmitted&&t.$$setSubmitted()}))}},function(t){const{clazz:r}=t,{set:i}=t,{unset:s}=t;function o(t,e,n){n&&!t.$$classCache[e]?(t.$$animate.addClass(t.$$element,e),t.$$classCache[e]=!0):!n&&t.$$classCache[e]&&(t.$$animate.removeClass(t.$$element,e),t.$$classCache[e]=!1)}function a(t,r,i){r=r?`-${j(r,"-")}`:"",o(t,e+r,!0===i),o(t,n+r,!1===i)}r.prototype.$setValidity=function(t,e,n){let r;g(e)?function(t,e,n,r){t[e]||(t[e]={}),i(t[e],n,r)}(this,"$pending",t,n):function(t,e,n,r){t[e]&&s(t[e],n,r),En(t[e])&&(t[e]=void 0)}(this,"$pending",t,n),k(e)?e?(s(this.$error,t,n),i(this.$$success,t,n)):(i(this.$error,t,n),s(this.$$success,t,n)):(s(this.$error,t,n),s(this.$$success,t,n)),this.$pending?(o(this,$n,!0),this.$valid=this.$invalid=void 0,a(this,"",null)):(o(this,$n,!1),this.$valid=En(this.$error),this.$invalid=!this.$valid,a(this,"",this.$valid)),r=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.$$success[t]||null),a(this,t,r),this.$$parentForm.$setValidity(t,r,this)}}({clazz:gn,set(t,e,n){const r=t[e];if(r){-1===r.indexOf(n)&&r.push(n)}else t[e]=[n]},unset(t,e,n){const r=t[e];r&&(q(r,n),0===r.length&&delete t[e])}});const vn=function(t){return["$timeout","$parse",function(n,i){return{name:"form",restrict:t?"EA":"E",require:["form","^^?form"],controller:gn,compile:function(i,o){i[0].classList.add(r,e);const a=o.name?"name":!(!t||!o.ngForm)&&"ngForm";return{pre:function(t,e,r,i){const o=i[0];if(!("action"in r)){const r=function(e){t.$apply((()=>{o.$commitViewValue(),o.$setSubmitted()})),e.preventDefault()};e[0].addEventListener("submit",r),e.on("$destroy",(()=>{n((()=>{e[0].removeEventListener("submit",r)}),0,!1)}))}(i[1]||o.$$parentForm).$addControl(o);let c=a?s(o.$name):()=>{};a&&(c(t,o),r.$observe(a,(e=>{o.$name!==e&&(c(t,void 0),o.$$parentForm.$$renameControl(o,e),c=s(o.$name),c(t,o))}))),e.on("$destroy",(()=>{o.$$parentForm.$removeControl(o),c(t,void 0),V(o,fn)}))}}}};function s(t){return""===t?i('this[""]').assign:i(t).assign||(()=>{})}}]},yn=vn(),bn=vn("ngForm");function wn(t){t.$$classCache={},t.$$classCache[n]=!(t.$$classCache[e]=t.$$element[0].classList.contains(e))}function En(t){if(t)for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}const Cn=/(\s+|^)default(\s+|$)/;class On{static $inject=["$attrs","$scope"];constructor(t,e){this.$$attrs=t,this.$$scope=e,this.parentCtrl}$onInit(){const t=this.parentCtrl?this.parentCtrl.$options:xn,e=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=t.createChild(e)}}class Sn{constructor(t){this.$$options=t}getOption(t){return this.$$options[t]}createChild(t){let e=!1;return t=Object.assign({},t),Object.entries(t).forEach((([n,r])=>{"$inherit"===r?"*"===n?e=!0:(t[n]=this.$$options[n],"updateOn"===n&&(t.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===n&&(t.updateOnDefault=!1,t[n]=T(r.replace(Cn,(()=>(t.updateOnDefault=!0," ")))))}),this),e&&(delete t["*"],kn(t,this.$$options)),kn(t,xn.$$options),new Sn(t)}}const xn=new Sn({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1}),An=function(){return{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:On}};function kn(t,e){Object.keys(e).forEach((n=>{v(t[n])||(t[n]=e[n])}))}const _n=lt("ngModel");class Tn{static $inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"];constructor(t,e,n,r,i,s,o,a,c){var l;this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=c(n.name||"",!1)(t),this.$$parentForm=fn,this.$options=xn,this.$$updateEvents="",this.$$updateEventHandler=this.$$updateEventHandler.bind(this),this.$$parsedNgModel=i(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$parserName="parse",this.$$currentValidationRunId=0,this.$$scope=t,this.$$rootScope=t.$root,this.$$attr=n,this.$$element=r,this.$$animate=s,this.$$timeout=o,this.$$parse=i,this.$q=a,this.$$exceptionHandler=e,this.$$hasNativeValidators=!1,wn(this),(l=this).$$scope.$watch((t=>{const e=l.$$ngModelGet(t);return e===l.$modelValue||l.$modelValue!=l.$modelValue&&e!=e||l.$$setModelValue(e),e}))}set(t,e){t[e]=!0}unset(t,e){delete t[e]}$setValidity(t,r){let i,s=this;function o(t,e,n){n&&!t.$$classCache[e]?(t.$$animate.addClass(t.$$element,e),t.$$classCache[e]=!0):!n&&t.$$classCache[e]&&(t.$$animate.removeClass(t.$$element,e),t.$$classCache[e]=!1)}function a(t,r,i){r=r?`-${j(r,"-")}`:"",o(t,e+r,!0===i),o(t,n+r,!1===i)}g(r)?function(t,e,n){t[e]||(t[e]={}),s.set(t[e],n)}(this,"$pending",t):function(t,e,n){t[e]&&s.unset(t[e],n),En(t[e])&&(t[e]=void 0)}(this,"$pending",t),k(r)?r?(delete this.$error[t],this.set(this.$$success,t)):(this.set(this.$error,t),delete this.$$success[t]):(delete this.$error[t],delete this.$$success[t]),this.$pending?(o(this,$n,!0),this.$valid=this.$invalid=void 0,a(this,"",null)):(o(this,$n,!1),this.$valid=En(this.$error),this.$invalid=!this.$valid,a(this,"",this.$valid)),i=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.$$success[t]||null),a(this,t,i),this.$$parentForm.$setValidity(t,i,this)}$$initGetterSetters(){if(this.$options.getOption("getterSetter")){const t=this.$$parse(`${this.$$attr.ngModel}()`),e=this.$$parse(`${this.$$attr.ngModel}($$$p)`);this.$$ngModelGet=function(e){let n=this.$$parsedNgModel(e);return O(n)&&(n=t(e)),n},this.$$ngModelSet=function(t,n){O(this.$$parsedNgModel(t))?e(t,{$$$p:n}):this.$$parsedNgModelAssign(t,n)}}else if(!this.$$parsedNgModel.assign)throw _n("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,zt(this.$$element))}$render(){}$isEmpty(t){return g(t)||""===t||null===t||t!=t}$$updateEmptyClasses(t){this.$isEmpty(t)?ft(this.$$element[0])?(this.$$animate.removeClass(this.$$element,c),this.$$animate.addClass(this.$$element,a)):(this.$$element[0].classList.remove(c),this.$$element[0].classList.add(a)):ft(this.$$element[0])?(this.$$animate.removeClass(this.$$element,a),this.$$animate.addClass(this.$$element,c)):(this.$$element[0].classList.remove(a),this.$$element[0].classList.add(c))}$setPristine(){this.$dirty=!1,this.$pristine=!0,ft(this.$$element[0])?(this.$$animate.removeClass(this.$$element,a),this.$$animate.addClass(this.$$element,r)):(this.$$element[0].classList.remove(a),this.$$element[0].classList.add(r))}$setDirty(){this.$dirty=!0,this.$pristine=!1,ft(this.$$element[0])?(this.$$animate.removeClass(this.$$element,r),this.$$animate.addClass(this.$$element,i)):(this.$$element[0].classList.remove(r),this.$$element[0].classList.add(i)),this.$$parentForm.$setDirty()}$setUntouched(){this.$touched=!1,this.$untouched=!0,ft(this.$$element[0])?this.$$animate.setClass(this.$$element,s,o):(this.$$element[0].classList.remove(o),this.$$element[0].classList.add(s))}$setTouched(){this.$touched=!0,this.$untouched=!1,ft(this.$$element[0])?this.$$animate.setClass(this.$$element,o,s):(this.$$element[0].classList.remove(s),this.$$element[0].classList.add(o))}$rollbackViewValue(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()}$validate(){if(R(this.$modelValue))return;const t=this.$$lastCommittedViewValue,e=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,i=this.$options.getOption("allowInvalid"),s=this;this.$$runValidators(e,t,(t=>{i||n===t||(s.$modelValue=t?e:void 0,s.$modelValue!==r&&s.$$writeModelToScope())}))}$$runValidators(t,e,n){this.$$currentValidationRunId++;const r=this.$$currentValidationRunId,i=this;function s(t,e){r===i.$$currentValidationRunId&&i.$setValidity(t,e)}function o(t){r===i.$$currentValidationRunId&&n(t)}!function(){const t=i.$$parserName;if(!g(i.$$parserValid))return i.$$parserValid||(Object.keys(i.$validators).forEach((t=>{s(t,null)})),Object.keys(i.$asyncValidators).forEach((t=>{s(t,null)}))),s(t,i.$$parserValid),i.$$parserValid;s(t,null);return!0}()?o(!1):function(){let n=!0;if(Object.entries(i.$validators).forEach((([r,i])=>{const o=Boolean(i(t,e));n=n&&o,s(r,o)})),!n)return Object.keys(i.$asyncValidators).forEach((t=>{s(t,null)})),!1;return!0}()?function(){const n=[];let r=!0;Object.entries(i.$asyncValidators).forEach((([i,o])=>{const a=o(t,e);if(!_(a))throw _n("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);s(i,void 0),n.push(a.then((()=>{s(i,!0)}),(()=>{r=!1,s(i,!1)})))})),n.length?i.$q.all(n).then((()=>{o(r)}),(()=>{})):o(!0)}():o(!1)}$commitViewValue(){this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==this.$viewValue||""===this.$viewValue&&this.$$hasNativeValidators)&&(void 0===this.$$lastCommittedViewValue&&Number.isNaN(this.$viewValue)||(this.$$updateEmptyClasses(this.$viewValue),this.$$lastCommittedViewValue=this.$viewValue,this.$pristine&&this.$setDirty(),this.$$parseAndValidate()))}$$parseAndValidate(){let t=this.$$lastCommittedViewValue;const e=this;if(this.$$parserValid=!g(t)||void 0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(let e=0;e<this.$parsers.length;e++)if(t=this.$parsers[e](t),g(t)){this.$$parserValid=!1;break}R(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));const n=this.$modelValue,r=this.$options.getOption("allowInvalid");function i(){e.$modelValue!==n&&e.$$writeModelToScope()}this.$$rawModelValue=t,r&&(this.$modelValue=t,i()),this.$$runValidators(t,this.$$lastCommittedViewValue,(n=>{r||(e.$modelValue=n?t:void 0,i())}))}$$writeModelToScope(){this.$$ngModelSet(this.$$scope,this.$modelValue),Object.values(this.$viewChangeListeners).forEach((t=>{try{t()}catch(t){this.$$exceptionHandler(t)}}),this)}$setViewValue(t,e){this.$viewValue=t,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(e)}$$debounceViewValueCommit(t){let e=this.$options.getOption("debounce");w(e[t])?e=e[t]:w(e.default)&&-1===this.$options.getOption("updateOn").indexOf(t)?e=e.default:w(e["*"])&&(e=e["*"]),this.$$timeout.cancel(this.$$pendingDebounce);const n=this;e>0?this.$$pendingDebounce=this.$$timeout((()=>{n.$commitViewValue()}),e):this.$$rootScope.$$phase!==xe.NONE?this.$commitViewValue():this.$$scope.$apply((()=>{n.$commitViewValue()}))}$overrideModelOptions(t){this.$options=this.$options.createChild(t),this.$$setUpdateOnEvents()}$processModelValue(){const t=this.$$format();this.$viewValue!==t&&(this.$$updateEmptyClasses(t),this.$viewValue=this.$$lastCommittedViewValue=t,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,(()=>{})))}$$format(){const t=this.$formatters;let e=t.length,n=this.$modelValue;for(;e--;)n=t[e](n);return n}$$setModelValue(t){this.$modelValue=this.$$rawModelValue=t,this.$$parserValid=void 0,this.$processModelValue()}$$setUpdateOnEvents(){this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler),this.$$updateEvents=this.$options.getOption("updateOn"),this.$$updateEvents&&this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)}$$updateEventHandler(t){this.$$debounceViewValueCommit(t&&t.type)}}function jn(t){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Tn,priority:1,compile:n=>(n[0].classList.add(r,s,e),{pre:(t,e,n,r)=>{const i=r[0],s=r[1]||i.$$parentForm,o=r[2];o&&(i.$options=o.$options),i.$$initGetterSetters(),s.$addControl(i),n.$observe("name",(t=>{i.$name!==t&&i.$$parentForm.$$renameControl(i,t)})),t.$on("$destroy",(()=>{i.$$parentForm.$removeControl(i)}))},post:(e,n,r,i)=>{const s=i[0];function o(){s.$setTouched()}s.$$setUpdateOnEvents(),n.on("blur",(()=>{s.$touched||(t.$$phase!==xe.NONE?e.$evalAsync(o):e.$apply(o))}))}})}}jn.$inject=["$rootScope"];const Vn=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Nn=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Rn=/^(?=.{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])?)*$/,Pn=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Dn=/^(\d{4,})-(\d{2})-(\d{2})$/,Mn=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Ln=/^(\d{4,})-W(\d\d)$/,In=/^(\d{4,})-(\d\d)$/,Un=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,qn="validity",Hn="keydown wheel mousedown",Fn=new Map;"date,datetime-local,month,time,week".split(",").forEach((t=>{Fn.set(t,!0)}));const Bn={text:function(t,e,n,r,i){Wn(t,e,n,r,i),zn(r)},date:Yn("date",Dn,Gn(Dn,["yyyy","MM","dd"])),"datetime-local":Yn("datetimelocal",Mn,Gn(Mn,["yyyy","MM","dd","HH","mm","ss","sss"])),time:Yn("time",Un,Gn(Un,["HH","mm","ss","sss"])),week:Yn("week",Ln,(function(t,e){if(E(t))return t;if(b(t)){Ln.lastIndex=0;const n=Ln.exec(t);if(n){const t=+n[1],r=+n[2];let i=0,s=0,o=0,a=0;const c=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}(t),l=7*(r-1);return e&&(i=e.getHours(),s=e.getMinutes(),o=e.getSeconds(),a=e.getMilliseconds()),new Date(t,0,c.getDate()+l,i,s,o,a)}}return NaN})),month:Yn("month",In,Gn(In,["yyyy","MM"])),number:function(t,e,n,r,i,s,o){let a;if(Qn(t,e,n,r,"number"),Zn(r),Wn(t,e,n,r,i),v(n.min)||n.ngMin){let e=n.min||o(n.ngMin)(t);a=Jn(e),r.$validators.min=function(t,e){return r.$isEmpty(e)||g(a)||e>=a},n.$observe("min",(t=>{t!==e&&(a=Jn(t),e=t,r.$validate())}))}if(v(n.max)||n.ngMax){let e=n.max||o(n.ngMax)(t),i=Jn(e);r.$validators.max=function(t,e){return r.$isEmpty(e)||g(i)||e<=i},n.$observe("max",(t=>{t!==e&&(i=Jn(t),e=t,r.$validate())}))}if(v(n.step)||n.ngStep){let e=n.step||o(n.ngStep)(t),i=Jn(e);r.$validators.step=function(t,e){return r.$isEmpty(e)||g(i)||er(e,a||0,i)},n.$observe("step",(t=>{t!==e&&(i=Jn(t),e=t,r.$validate())}))}},url:function(t,e,n,r,i){Wn(t,e,n,r,i),zn(r),r.$validators.url=function(t,e){const n=t||e;return r.$isEmpty(n)||Nn.test(n)}},email:function(t,e,n,r,i){Wn(t,e,n,r,i),zn(r),r.$validators.email=function(t,e){const n=t||e;return r.$isEmpty(n)||Rn.test(n)}},radio:function(t,e,n,r){const i=!n.ngTrim||"false"!==T(n.ngTrim);g(n.name)&&e.attr("name",f());e.on("change",(function(t){let s;e[0].checked&&(s=n.value,i&&(s=T(s)),r.$setViewValue(s,t&&t.type))})),r.$render=function(){let{value:t}=n;i&&(t=T(t)),e[0].checked=t===r.$viewValue},n.$observe("value",r.$render)},range:function(t,e,n,r,i){Qn(t,e,n,r,"range"),Zn(r),Wn(t,e,n,r,i);const s=r.$$hasNativeValidators&&"range"===e[0].type;let o=s?0:void 0,a=s?100:void 0,c=s?1:void 0;const{validity:l}=e[0],u=v(n.min),h=v(n.max),d=v(n.step),p=r.$render;r.$render=s&&v(l.rangeUnderflow)&&v(l.rangeOverflow)?function(){p(),r.$setViewValue(e.val())}:p,u&&(o=Jn(n.min),r.$validators.min=s?function(){return!0}:function(t,e){return r.$isEmpty(e)||g(o)||e>=o},f("min",(function(t){if(o=Jn(t),R(r.$modelValue))return;if(s){let t=e.val();o>t&&(t=o,e.val(t)),r.$setViewValue(t)}else r.$validate()})));h&&(a=Jn(n.max),r.$validators.max=s?function(){return!0}:function(t,e){return r.$isEmpty(e)||g(a)||e<=a},f("max",(function(t){if(a=Jn(t),R(r.$modelValue))return;if(s){let t=e.val();a<t&&(e.val(a),t=a<o?o:a),r.$setViewValue(t)}else r.$validate()})));d&&(c=Jn(n.step),r.$validators.step=s?function(){return!l.stepMismatch}:function(t,e){return r.$isEmpty(e)||g(c)||er(e,o||0,c)},f("step",(function(t){if(c=Jn(t),R(r.$modelValue))return;s?r.$viewValue!==e.val()&&r.$setViewValue(e.val()):r.$validate()})));function f(t,r){e.attr(t,n[t]);let i=n[t];n.$observe(t,(t=>{t!==i&&(i=t,r(t))}))}},checkbox:function(t,e,n,r,i,s,o){const a=nr(o,t,"ngTrueValue",n.ngTrueValue,!0),c=nr(o,t,"ngFalseValue",n.ngFalseValue,!1);e.on("change",(function(t){r.$setViewValue(e[0].checked,t&&t.type)})),r.$render=function(){e[0].checked=r.$viewValue},r.$isEmpty=function(t){return!1===t},r.$formatters.push((t=>F(t,a))),r.$parsers.push((t=>t?a:c))},hidden:()=>{},button:()=>{},submit:()=>{},reset:()=>{},file:()=>{}};function zn(t){t.$formatters.push((e=>t.$isEmpty(e)?e:e.toString()))}function Wn(t,e,n,r,i){const s=e[0].type.toLowerCase();let o,a=!1;e.on("compositionstart",(()=>{a=!0})),e.on("compositionend",(()=>{a=!1,c()}));let c=function(t){if(o&&(i.cancel(o),o=null),a)return;let c=e.val();const l=t&&t.type;"password"===s||n.ngTrim&&"false"===n.ngTrim||(c=T(c)),(r.$viewValue!==c||""===c&&r.$$hasNativeValidators)&&r.$setViewValue(c,l)};["input","change","paste","drop","cut"].forEach((t=>{e.on(t,c)})),Fn[s]&&r.$$hasNativeValidators&&s===n.type&&e.on(Hn,(function(t){if(!o){const e=this[qn],n=e.badInput,r=e.typeMismatch;o=i.defer((()=>{o=null,e.badInput===n&&e.typeMismatch===r||c(t)}))}})),r.$render=function(){const t=r.$isEmpty(r.$viewValue)?"":r.$viewValue;e.val()!==t&&e.val(t)}}function Gn(t,e){return function(n,r){let i,s;if(E(n))return n;if(b(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Vn.test(n))return new Date(n);if(t.lastIndex=0,i=t.exec(n),i){i.shift(),s=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},Object.entries(i).forEach((([t,n])=>{t<e.length&&(s[e[t]]=+n)}));const t=new Date(s.yyyy,s.MM-1,s.dd,s.HH,s.mm,s.ss||0,1e3*s.sss||0);return s.yyyy<100&&t.setFullYear(s.yyyy),t}}return NaN}}const Kn=/\b\d{4}-(0[1-9]|1[0-2])\b/;function Yn(t,e,n){return function(r,i,s,o,a,c,l){if(Qn(r,i,s,o,t),Wn(0,i,s,o,a),o.$parsers.push((n=>o.$isEmpty(n)?null:e.test(n)?["month","week","datetimelocal","time","date"].includes(t)?n:d(n,undefined):void(o.$$parserName=t))),o.$formatters.push((function(e){if(e&&!b(e))throw _n("datefmt","Expected `{0}` to be a String",e);if("month"===t){if(null==e)return"";if(!Kn.test(e))throw _n("datefmt","Expected month `{0}` to be a 'YYYY-DD'",e)}if("week"===t){if(null==e)return"";if(!Ln.test(e))throw _n("datefmt","Expected week `{0}` to be a 'yyyy-Www'",e)}if("datetimelocal"===t){if(null==e)return"";if(!Mn.test(e))throw _n("datefmt","Expected week `{0}` to be a in date time format. See: https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#local_date_and_time_strings",e)}return e})),v(s.min)||s.ngMin){let e=s.min||l(s.ngMin)(r),i=h(e);o.$validators.min=function(e){return"month"===t?g(i)||n(e)>=n(i):!u(e)||g(i)||n(e)>=i},s.$observe("min",(t=>{t!==e&&(i=h(t),e=t,o.$validate())}))}if(v(s.max)||s.ngMax){let e=s.max||l(s.ngMax)(r),i=h(e);o.$validators.max=function(e){return"month"===t?g(i)||n(e)<=n(i):!u(e)||g(i)||n(e)<=i},s.$observe("max",(t=>{t!==e&&(i=h(t),e=t,o.$validate())}))}function u(t){return t&&!(t.getTime&&t.getTime()!=t.getTime())}function h(t){return v(t)&&!E(t)?d(t)||void 0:t}function d(t,e){const r=o.$options.getOption("timezone");let i=n(t,e);return!Number.isNaN(i)&&r&&(i=Z(i,r)),i}}}function Qn(t,e,n,r,i){const s=e[0];(r.$$hasNativeValidators=y(s.validity))&&r.$parsers.push((t=>{const n=e[0][qn]||{};if(!n.badInput&&!n.typeMismatch)return t;r.$$parserName=i}))}function Zn(t){t.$parsers.push((e=>t.$isEmpty(e)?null:Pn.test(e)?parseFloat(e):void(t.$$parserName="number"))),t.$formatters.push((e=>{if(!t.$isEmpty(e)){if(!w(e))throw _n("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e}))}function Jn(t){return v(t)&&!w(t)&&(t=parseFloat(t)),R(t)?void 0:t}function Xn(t){return(0|t)===t}function tr(t){const e=t.toString(),n=e.indexOf(".");if(-1===n){if(t>-1&&t<1){const t=/e-(\d+)$/.exec(e);if(t)return Number(t[1])}return 0}return e.length-n-1}function er(t,e,n){let r=Number(t);const i=!Xn(r),s=!Xn(e),o=!Xn(n);if(i||s||o){const t=i?tr(r):0,a=s?tr(e):0,c=o?tr(n):0,l=10**Math.max(t,a,c);r*=l,e*=l,n*=l,i&&(r=Math.round(r)),s&&(e=Math.round(e)),o&&(n=Math.round(n))}return(r-e)%n==0}function nr(t,e,n,r,i){let s;if(v(r)){if(s=t(r),!s.constant)throw _n("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return s(e)}return i}function rr(t,e,n){return{restrict:"E",require:["?ngModel"],link:{pre(r,i,s,o){o[0]&&(Bn[$(s.type)]||Bn.text)(r,i,s,o[0],t,e,n)}}}}function ir(){const t={configurable:!0,enumerable:!1,get(){return this.getAttribute("value")||""},set(t){this.setAttribute("value",t)}};return{restrict:"E",priority:200,compile(e,n){if("hidden"===$(n.type))return{pre(e,n){const r=n[0];r.parentNode&&r.parentNode.insertBefore(r,r.nextSibling),Object.defineProperty&&Object.defineProperty(r,"value",t)}}}}}rr.$inject=["$browser","$filter","$parse"];const sr=/^(true|false|\d+)$/;function or(){function t(t,e,n){const r=v(n)?n:null;t[0].value=r,e.$set("value",n)}return{restrict:"A",priority:100,compile:(e,n)=>sr.test(n.ngValue)?function(e,n,r){t(n,r,e.$eval(r.ngValue))}:function(e,n,r){e.$watch(r.ngValue,(e=>{t(n,r,e)}))}}}function ar(t){return{restrict:"E",terminal:!0,compile(e,n){"text/ng-template"===n.type&&t.set(n.id,e[0].text)}}}function cr(t,e){t[0].selected=e,t.attr("selected",e)}function lr(t,e){const n=this,r=new Map;n.selectValueMap={},n.ngModelCtrl={},n.multiple=!1,n.unknownOption=At(document.createElement("option")),n.hasEmptyOption=!1,n.emptyOption=void 0,n.renderUnknownOption=function(e){const r=n.generateUnknownOptionValue(e);n.unknownOption.val(r),t.prepend(n.unknownOption),cr(n.unknownOption,!0),t.val(r)},n.updateUnknownOption=function(e){const r=n.generateUnknownOptionValue(e);n.unknownOption.val(r),cr(n.unknownOption,!0),t.val(r)},n.generateUnknownOptionValue=function(t){return`? ${ht(t)} ?`},n.removeUnknownOption=function(){n.unknownOption.parent()&&n.unknownOption.remove()},n.selectEmptyOption=function(){n.emptyOption&&(t.val(""),cr(n.emptyOption,!0))},n.unselectEmptyOption=function(){n.hasEmptyOption&&cr(n.emptyOption,!1)},e.$on("$destroy",(()=>{n.renderUnknownOption=()=>{}})),n.readValue=function(){const e=t.val(),r=e in n.selectValueMap?n.selectValueMap[e]:e;return n.hasOption(r)?r:null},n.writeValue=function(e){const r=t[0].options[t[0].selectedIndex];if(r&&cr(At(r),!1),n.hasOption(e)){n.removeUnknownOption();const r=ht(e);t.val(r in n.selectValueMap?r:e);cr(At(t[0].options[t[0].selectedIndex]),!0)}else n.selectUnknownOrEmptyOption(e)},n.addOption=function(t,e){if(e[0].nodeType===Node.COMMENT_NODE)return;B(t,'"option value"'),""===t&&(n.hasEmptyOption=!0,n.emptyOption=e);const i=r.get(t)||0;r.set(t,i+1),s()},n.removeOption=function(t){const e=r.get(t);e&&(1===e?(r.delete(t),""===t&&(n.hasEmptyOption=!1,n.emptyOption=void 0)):r.set(t,e-1))},n.hasOption=function(t){return!!r.get(t)},n.$hasEmptyOption=function(){return n.hasEmptyOption},n.$isUnknownOptionSelected=function(){return t[0].options[0]===n.unknownOption[0]},n.$isEmptyOptionSelected=function(){return n.hasEmptyOption&&t[0].options[t[0].selectedIndex]===n.emptyOption[0]},n.selectUnknownOrEmptyOption=function(t){null==t&&n.emptyOption?(n.removeUnknownOption(),n.selectEmptyOption()):n.unknownOption.parent().length?n.updateUnknownOption(t):n.renderUnknownOption(t)};let i=!1;function s(){i||(i=!0,e.$$postDigest((()=>{i=!1,n.ngModelCtrl.$render()})))}let o=!1;function a(t){o||(o=!0,e.$$postDigest((()=>{e.$$destroyed||(o=!1,n.ngModelCtrl.$setViewValue(n.readValue()),t&&n.ngModelCtrl.$render())})))}n.registerOption=function(t,e,r,i,o){let c,l;r.$attr.ngValue?r.$observe("value",(t=>{let r;const i=e[0].selected;v(l)&&(n.removeOption(c),delete n.selectValueMap[l],r=!0),l=ht(t),c=t,n.selectValueMap[l]=t,n.addOption(t,e),e.attr("value",l),r&&i&&a()})):i?r.$observe("value",(t=>{let r;n.readValue();const i=e[0].selected;v(c)&&(n.removeOption(c),r=!0),c=t,n.addOption(t,e),r&&i&&a()})):o?t.$watch(o,((t,i)=>{r.$set("value",t);const s=e[0].selected;i!==t&&n.removeOption(i),n.addOption(t,e),i&&s&&a()})):n.addOption(r.value,e),r.$observe("disabled",(t=>{("true"===t||t&&e[0].selected)&&(n.multiple?a(!0):(n.ngModelCtrl.$setViewValue(null),n.ngModelCtrl.$render()))})),e.on("$destroy",(()=>{const t=n.readValue(),e=r.value;n.removeOption(e),s(),(n.multiple&&t&&-1!==t.indexOf(e)||t===e)&&a(!0)}))}}function ur(){return{restrict:"E",require:["select","?ngModel"],controller:lr,priority:1,link:{pre:function(t,e,n,r){const i=r[0],s=r[1];if(!s)return void(i.registerOption=()=>{});if(i.ngModelCtrl=s,e.on("change",(()=>{i.removeUnknownOption(),t.$apply((()=>{s.$setViewValue(i.readValue())}))})),n.multiple){let n;i.multiple=!0,i.readValue=function(){const t=[];return Array.from(e[0].getElementsByTagName("option")).forEach((e=>{if(e.selected&&!e.disabled){const n=e.value;t.push(n in i.selectValueMap?i.selectValueMap[n]:n)}})),t},i.writeValue=function(t){Array.from(e[0].getElementsByTagName("option")).forEach((e=>{const n=!!t&&(U(t,e.value)||U(t,i.selectValueMap[e.value]));n!==e.selected&&cr(At(e),n)}))};let r=NaN;t.$watch((()=>{r!==s.$viewValue||F(n,s.$viewValue)||(n=rt(s.$viewValue),s.$render()),r=s.$viewValue})),s.$isEmpty=function(t){return!t||0===t.length}}},post:function(t,e,n,r){const i=r[1];if(!i)return;const s=r[0];i.$render=function(){s.writeValue(i.$viewValue)}}}}}function hr(t){return{restrict:"E",priority:100,compile(e,n){let r,i;return v(n.ngValue)||(v(n.value)?r=t(n.value,!0):(i=t(e.text(),!0),i||n.$set("value",e.text()))),function(t,e,n){const s="$selectController",o=e.parent(),a=o.data(s)||o.parent().data(s);a&&a.registerOption(t,e,n,r,i)}}}}function dr(){return{restrict:"EA",link:(t,e,n)=>{t.$watch(n.ngBind,(t=>{e[0].textContent=z(t)}))}}}function pr(){return{restrict:"EA",link:(t,e,n)=>{n.$observe("ngBindTemplate",(t=>{e[0].textContent=g(t)?"":t}))}}}ar.$inject=["$templateCache"],lr.$inject=["$element","$scope"],hr.$inject=["$interpolate"];const fr=["$parse",t=>({restrict:"A",compile:(e,n)=>{const r=t(n.ngBindHtml),i=t(n.ngBindHtml,(t=>t));return(t,e)=>{t.$watch(i,(()=>{e.html(r(t)||"")}))}}})];function $r(t,e){let n;return t=`ngClass${t}`,["$parse",o=>({restrict:"EA",link(a,c,l){let u,h=c.data("$classCounts"),d=!0;function p(t,e){const n=[];return t&&t.forEach((t=>{(e>0||h[t])&&(h[t]=(h[t]||0)+e,h[t]===+(e>0)&&n.push(t))})),n.join(" ")}h||(h=Object.create(null),c.data("$classCounts",h)),"ngClass"!==t&&(n||(n=o("$index",(function(t){return 1&t}))),a.$watch(n,(function(t){t===e?(n=p(i(n=u),1),ft(c[0])?l.$addClass(n):a.$$postDigest((()=>{""!==n&&c[0].classList.add(...n.trim().split(" "))}))):function(t){t=p(i(t),-1),ft(c[0])?l.$removeClass(t):a.$$postDigest((()=>{""!==t&&c[0].classList.remove(...t.trim().split(" "))}))}(u);var n;d=t}))),a.$watch(o(l[t],s),(function(t){d===e&&function(t,e){const n=i(t),s=i(e),o=r(n,s),u=r(s,n),h=p(o,-1),d=p(u,1);ft(c[0])?(l.$addClass(d),l.$removeClass(h)):a.$$postDigest((()=>{""!==d&&c[0].classList.add(...d.trim().split(" ")),""!==h&&c[0].classList.remove(...h.trim().split(" "))}))}(u,t);u=t}))}})];function r(t,e){if(!t||!t.length)return[];if(!e||!e.length)return t;const n=[];t:for(let r=0;r<t.length;r++){const i=t[r];for(let t=0;t<e.length;t++)if(i===e[t])continue t;n.push(i)}return n}function i(t){return t&&t.split(" ")}function s(t){if(!t)return t;let e=t;return Array.isArray(t)?e=t.map(s).join(" "):y(t)?e=Object.keys(t).filter((e=>t[e])).join(" "):b(t)||(e=`${t}`),e}}const mr=$r("",!0),gr=$r("Odd",0),vr=$r("Even",1);function yr(){return{restrict:"EA",compile(t,e){e.$set("ngCloak",void 0),t[0].classList.remove("ng-cloak")}}}function br(){return{restrict:"A",scope:!0,controller:"@",priority:500}}const wr="ng-hide",Er="ng-hide-animate";function Cr(t){return{restrict:"A",link(e,n,r){e.$watch(r.ngShow,(r=>{ft(n[0])?t[r?"removeClass":"addClass"](n,wr,{tempClasses:Er}):e.$$postDigest((()=>{r?n.elements().forEach((t=>t.classList.remove(wr))):n.elements().forEach((t=>t.classList.add(wr)))}))}))}}}function Or(t){return{restrict:"A",link(e,n,r){e.$watch(r.ngHide,(r=>{ft(n[0])?t[r?"addClass":"removeClass"](n,wr,{tempClasses:Er}):e.$$postDigest((()=>{r?n.elements().forEach((t=>t.classList.add(wr))):n.elements().forEach((t=>t.classList.remove(wr)))}))}))}}}Cr.$inject=["$animate"],Or.$inject=["$animate"];const Sr=Object.freeze({Program:1,ExpressionStatement:2,AssignmentExpression:3,ConditionalExpression:4,LogicalExpression:5,BinaryExpression:6,UnaryExpression:7,CallExpression:8,MemberExpression:9,Identifier:10,Literal:11,ArrayExpression:12,Property:13,ObjectExpression:14,ThisExpression:15,LocalsExpression:16,NGValueParameter:17}),xr="-add",Ar="-remove",kr="ng-",_r="-active",Tr="-prepare",jr="ng-animate",Vr="$$ngAnimateChildren";let Nr,Rr,Pr,Dr;void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend?(Nr="WebkitTransition",Rr="webkitTransitionEnd transitionend"):(Nr="transition",Rr="transitionend"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend?(Pr="WebkitAnimation",Dr="webkitAnimationEnd animationend"):(Pr="animation",Dr="animationend");const Mr="Duration",Lr=Sr.Property,Ir="Delay",Ur="TimingFunction",qr="PlayState",Hr=9999,Fr=Pr+Ir,Br=Pr+Mr,zr=Nr+Ir,Wr=Nr+Mr,Gr=lt("ng");function Kr(t,e,n){if(!t)throw Gr("areq","Argument '{0}' is {1}",e||"?",n);return t}function Yr(t,e,n){let r="";return(t=Array.isArray(t)?t:t&&b(t)&&t.length?t.split(/\s+/):[]).forEach(((t,i)=>{t&&t.length>0&&(r+=i>0?" ":"",r+=n?e+t:t+e)})),r}function Qr(t){if(t instanceof At)switch(t.length){case 0:return t;case 1:if(t[0].nodeType===Node.ELEMENT_NODE)return t;break;default:return At(Zr(t))}if(t.nodeType===Node.ELEMENT_NODE)return At(t)}function Zr(t){if(!t[0])return t;for(let e=0;e<t.length;e++){const n=t[e];if(n.nodeType===Node.ELEMENT_NODE)return n}}function Jr(t){if(!(t=t||{}).$$prepared){let e=t.domOperation||(()=>{});t.domOperation=function(){t.$$domOperationFired=!0,e(),e=()=>{}},t.$$prepared=!0}return t}function Xr(t,e){ti(t,e),ei(t,e)}function ti(t,e){e.from&&(e.from=null)}function ei(t,e){e.to&&(e.to=null)}function ni(t,e,n){const r=e.options||{},i=n.options||{},s=`${r.addClass||""} ${i.addClass||""}`,o=`${r.removeClass||""} ${i.removeClass||""}`,a=function(t,e,n){const r=1,i=-1,s={};t=a(t),e=a(e),Object.keys(e).forEach((t=>{s[t]=r})),n=a(n),Object.keys(n).forEach((t=>{s[t]=s[t]===r?null:i}));const o={addClass:"",removeClass:""};function a(t){b(t)&&(t=t.trim().split(" "));const e={};return t&&t.forEach((t=>{t.length&&(e[t]=!0)})),e}return Object.entries(s).forEach((([e,n])=>{var s,a;n===r?(s="addClass",a=!t[e]||t[e+Ar]):n===i&&(s="removeClass",a=t[e]||t[e+xr]),a&&(o[s].length&&(o[s]+=" "),o[s]+=e)})),o}(t.attr("class"),s,o);i.preparationClasses&&(r.preparationClasses=oi(i.preparationClasses,r.preparationClasses),delete i.preparationClasses);const c=r.domOperation!==(()=>{})?r.domOperation:null;return V(r,i),c&&(r.domOperation=c),a.addClass?r.addClass=a.addClass:r.addClass=null,a.removeClass?r.removeClass=a.removeClass:r.removeClass=null,e.addClass=r.addClass,e.removeClass=r.removeClass,r}function ri(t){return t instanceof At?t[0]:t}function ii(t,e){const n=e?"paused":"",r=Pr+qr;return si(t,[r,n]),[r,n]}function si(t,e){const n=e[0],r=e[1];t.style[n]=r}function oi(t,e){return t?e?`${t} ${e}`:t:e}const ai=lt("$animate");function ci(t,e){return t||e?t?e?(Array.isArray(t)&&(t=t.join(" ")),Array.isArray(e)&&(e=e.join(" ")),`${t} ${e}`):t:e:""}function li(t){return y(t)?t:{}}function ui(t,e,n){if(n){const t=function(t){const{length:e}=t;for(let n=0;n<e;n++){const e=t[n];if(e.nodeType===Node.ELEMENT_NODE)return e}}(n);!t||t.parentNode||t.previousElementSibling||(n=null)}n?n.after(t):e.prepend(t)}function hi(t){const e=this;let n=null,r=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw ai("notcsel","Expecting class selector starting with '.' got '{0}'.",n);const i=`${n}-animation`;e.$$registeredAnimations[n.substring(1)]=i,t.factory(i,r)},this.customFilter=function(t){return 1===arguments.length&&(r=O(t)?t:null),r},this.classNameFilter=function(t){if(1===arguments.length&&(n=t instanceof RegExp?t:null,n)){if(new RegExp(`[(\\s|\\/)]${jr}[(\\s|\\/)]`).test(n.toString()))throw n=null,ai("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',jr)}return n},this.$get=["$$animateQueue",function(t){return{on:t.on,off:t.off,pin:t.pin,enabled:t.enabled,cancel(t){t.cancel&&t.cancel()},enter:(e,n,r,i)=>(n=n&&At(n),r=r&&At(r),ui(e,n=n||r.parent(),r),t.push(e,"enter",li(i))),move:(e,n,r,i)=>(n=n&&At(n),r=r&&At(r),ui(e,n=n||r.parent(),r),t.push(e,"move",li(i))),leave:(e,n)=>t.push(e,"leave",li(n),(()=>{e.remove()})),addClass:(e,n,r)=>((r=li(r)).addClass=ci(r.addClass,n),t.push(e,"addClass",r)),removeClass:(e,n,r)=>((r=li(r)).removeClass=ci(r.removeClass,n),t.push(e,"removeClass",r)),setClass:(e,n,r,i)=>((i=li(i)).addClass=ci(i.addClass,n),i.removeClass=ci(i.removeClass,r),t.push(e,"setClass",i)),animate:(e,n,r,i,s)=>((s=li(s)).from=s.from?V(s.from,n):n,s.to=s.to?V(s.to,r):r,i=i||"ng-inline-animate",s.tempClasses=ci(s.tempClasses,i),t.push(e,"animate",s))}}]}function di(t){return{transclude:"element",priority:600,terminal:!0,restrict:"A",link(e,n,r,i,s){let o,a,c;e.$watch(r.ngIf,(e=>{e?a||s(((e,r)=>{a=r,e[e.length++]=document.createComment(""),o={clone:e},ft(e[0])?t.enter(e,n.parent(),n):ui(e,n.parent(),n)})):(c&&(c.remove(),c=null),a&&(a.$destroy(),a=null),o&&(c=Wt(o.clone),ft(c[0])?t.leave(c).done((t=>{!1!==t&&(c=null)})):c.remove(),o=null))}))}}}hi.$inject=["$provide"],di.$inject=["$animate"];const pi=["$templateRequest","$anchorScroll","$animate",(t,e,n)=>({restrict:"EA",priority:400,terminal:!0,transclude:"element",controller:()=>{},compile(r,i){const s=i.ngInclude||i.src,o=i.onload||"",a=i.autoscroll;return(r,i,c,l,u)=>{function h(){!v(a)||a&&!r.$eval(a)||e()}let d,p,f,$=0;const m=()=>{p&&(p.remove(),p=null),d&&(d.$destroy(),d=null),f&&(ft(f[0])?n.leave(f).done((t=>{!1!==t&&(p=null)})):f.remove(),p=f,f=null)};r.$watch(s,(e=>{const s=function(t){!1!==t&&h()},a=++$;e?(t(e,!0).then((t=>{if(r.$$destroyed)return;if(a!==$)return;const c=r.$new();l.template=t;const p=u(c,(t=>{m(),ft(t[0])?n.enter(t,null,i).done(s):(ui(t,null,i),h())}));d=c,f=p,d.$emit("$includeContentLoaded",e),r.$eval(o)}),(()=>{r.$$destroyed||a===$&&(m(),r.$emit("$includeContentError",e))})),r.$emit("$includeContentRequested",e)):(m(),l.template=null)}))}}})],fi=["$compile",t=>({restrict:"EA",priority:-400,require:"ngInclude",link(e,n,r,i){if(toString.call(n[0]).match(/SVG/))return n.empty(),void t(Pt(i.template).childNodes)(e,(t=>{n.append(t)}),{futureParentElement:n});n.html(i.template),t(n[0].childNodes)(e)}})];function $i(){return{priority:450,compile:()=>({pre(t,e,n){t.$eval(n.ngInit)}})}}function mi(){return{restrict:"EA",terminal:!0,priority:1e3}}const gi=lt("ngRef"),vi=["$parse",t=>({priority:-1,restrict:"A",compile(e,n){const r=pt(I(e)),i=t(n.ngRef),s=i.assign||function(){throw gi("nonassign",'Expression in ngRef="{0}" is non-assignable!',n.ngRef)};return function(t,e,o){let a;if(Object.prototype.hasOwnProperty.call(o,"ngRefRead")){if("$element"===o.ngRefRead)a=e;else if(a=e.data(`$${o.ngRefRead}Controller`),!a)throw gi("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',o.ngRefRead,n.ngRef)}else a=e.data(`$${r}Controller`);a=a||e,s(t,a),e.on("$destroy",(()=>{i(t)===a&&s(t,null)}))}}})];function yi(t,e){const n="$$NG_REMOVED",r=lt("ngRepeat"),i=function(t,e,n,r,i,s,o){t[n]=r,i&&(t[i]=s),t.$index=e,t.$first=0===e,t.$last=e===o-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=!(1&e))},s=function(t){return t.clone[0]},o=function(t){return t.clone[t.clone.length-1]},a=function(t,e,n){return ht(n)},c=function(t,e){return e};return{restrict:"A",transclude:"element",priority:1e3,terminal:!0,compile:function(l,u){const h=u.ngRepeat;let d=h.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!d)throw r("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",h);const p=d[1],f=d[2],$=d[3],g=d[4];if(d=p.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/),!d)throw r("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",p);const v=d[3]||d[1],y=d[2];if($&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test($)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test($)))throw r("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",$);let b;if(g){var w={$id:ht};const e=t(g);b=function(t,n,r,i){return y&&(w[y]=n),w[v]=r,w.$index=i,e(t,w)}}return function(t,l,u,d,p){let g=Object.create(null);t.$watchCollection(f,(u=>{var d,f,E,C,O,S,x,A,k,_,T,j,V=l[0],N=Object.create(null);if($&&(t[$]=u),m(u))k=u,A=b||a;else for(var R in A=b||c,k=[],u)Object.hasOwnProperty.call(u,R)&&"$"!==R.charAt(0)&&k.push(R);for(C=k.length,T=new Array(C),d=0;d<C;d++)if(O=u===k?d:k[d],S=u[O],x=A(t,O,S,d),g[x])_=g[x],delete g[x],N[x]=_,T[d]=_;else{if(N[x])throw Object.values(T).forEach((t=>{t&&t.scope&&(g[t.id]=t)})),r("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",h,x,S);T[d]={id:x,scope:void 0,clone:void 0},N[x]=!0}for(var P in w&&(w[v]=void 0),g){if(j=Wt((_=g[P]).clone),e.leave(j),j[0].parentNode)for(d=0,f=j.length;d<f;d++)j[d][n]=!0;_.scope.$destroy()}for(d=0;d<C;d++)if(O=u===k?d:k[d],S=u[O],(_=T[d]).scope){E=V;do{E=E.nextSibling}while(E&&E[n]);s(_)!==E&&e.move(Wt(_.clone),null,V),V=o(_),i(_.scope,d,v,S,y,O,C)}else p(((t,n)=>{_.scope=n;const r=document.createComment("");t[t.length++]=r,ft(t[0])?e.enter(t,null,V):ui(t,At(V).parent(),At(V)),V=r,_.clone=t,N[_.id]=_,i(_.scope,d,v,S,y,O,C)}));g=N}))}}}}function bi(){return{restrict:"EA",link:(t,e,n)=>{t.$watchCollection(n.ngStyle,((t,n)=>{if(n){const t=Object.keys(n);for(let n=0,r=t.length;n<r;n++)e[0].style[t[n]]=""}if(t){const n=Object.entries(t);for(let t=0,r=n.length;t<r;t++){const[r,i]=n[t];e[0].style[r]=i}}}))}}}function wi(t){return{require:"ngSwitch",controller:["$scope",class{constructor(){this.cases={}}}],link(e,n,r,i){const s=r.ngSwitch||r.on;let o=[];const a=[],c=[],l=[],u=function(t,e){return function(n){!1!==n&&t.splice(e,1)}};e.$watch(s,(e=>{let n,r;for(;c.length;)t.cancel(c.pop());for(n=0,r=l.length;n<r;++n){const e=Wt(a[n].clone);if(l[n].$destroy(),ft(e[0])){(c[n]=t.leave(e)).done(u(c,n))}else e.remove()}a.length=0,l.length=0,(o=i.cases[`!${e}`]||i.cases["?"])&&Object.values(o).forEach((e=>{e.transclude(((n,r)=>{l.push(r);const i=e.element;n[n.length++]=document.createComment("");const s={clone:n};a.push(s),ft(n[0])?t.enter(n,i.parent(),i):ui(n,i.parent(),i)}))}))}))}}}function Ei(){return{transclude:"element",priority:1200,restrict:"EA",require:"^ngSwitch",link(t,e,n,r,i){const s=n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter(((t,e,n)=>n[e-1]!==t));s.forEach((t=>{r.cases[`!${t}`]=r.cases[`!${t}`]||[],r.cases[`!${t}`].push({transclude:i,element:e})}))}}}function Ci(){return{restrict:"EA",transclude:"element",priority:1200,require:"^ngSwitch",link(t,e,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:e})}}}yi.$inject=["$parse","$animate"],wi.$inject=["$animate"];const Oi=lt("ngOptions"),Si=/^\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]+?))?$/,xi=["$compile","$parse",function(t,e){const n=document.createElement("option"),r=document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,e,n,r){r[0].registerOption=()=>{}},post:function(i,s,o,a){const c=a[0],l=a[1],{multiple:u}=o;for(let t=0,e=s.children(),n=e.length;t<n;t++)if(""===e[t].value){c.hasEmptyOption=!0,c.emptyOption=e.eq(t);break}s.empty();const h=!!c.emptyOption;let d;At(n.cloneNode(!1)).val("?");const p=function(t,n,r){const i=t.match(Si);if(!i)throw Oi("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,zt(n));const s=i[5]||i[7],o=i[6],a=/ as /.test(i[0])&&i[1],c=i[9],l=e(i[2]?i[1]:s),u=a&&e(a)||l,h=c&&e(c),d=c?function(t,e){return h(r,e)}:function(t){return ht(t)},p=function(t,e){return d(t,b(t,e))},f=e(i[2]||i[1]),$=e(i[3]||""),g=e(i[4]||""),v=e(i[8]),y={};let b=o?function(t,e){return y[o]=e,y[s]=t,y}:function(t){return y[s]=t,y};function w(t,e,n,r,i){this.selectValue=t,this.viewValue=e,this.label=n,this.group=r,this.disabled=i}function E(t){let e;if(!o&&m(t))e=t;else{e=[];for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&"$"!==n.charAt(0)&&e.push(n)}return e}return{trackBy:c,getTrackByValue:p,getWatchables:e(v,(t=>{const e=[],n=E(t=t||[]),s=n.length;for(let o=0;o<s;o++){const s=t===n?o:n[o],a=t[s],c=b(a,s),l=d(a,c);if(e.push(l),i[2]||i[1]){const t=f(r,c);e.push(t)}if(i[4]){const t=g(r,c);e.push(t)}}return e})),getOptions(){const t=[],e={},n=v(r)||[],i=E(n),s=i.length;for(let o=0;o<s;o++){const s=n===i?o:i[o],a=n[s],c=b(a,s),l=u(r,c),h=d(l,c),p=new w(h,l,f(r,c),$(r,c),g(r,c));t.push(p),e[h]=p}return{items:t,selectValueMap:e,getOptionFromViewValue:t=>e[p(t)],getViewValueFromOption:t=>c?structuredClone(t.viewValue):t.viewValue}}}}(o.ngOptions,s,i),f=document.createDocumentFragment();function $(t,e){const r=n.cloneNode(!1);e.appendChild(r),function(t,e){t.element=e,e.disabled=t.disabled,t.label!==e.label&&(e.label=t.label,e.textContent=t.label);e.value=t.selectValue}(t,r)}function g(t){const e=d.getOptionFromViewValue(t),n=e&&e.element;return n&&!n.selected&&(n.selected=!0),e}c.generateUnknownOptionValue=()=>"?",u?(c.writeValue=function(t){if(!d)return;const e=t&&t.map(g)||[];d.items.forEach((t=>{t.element.selected&&!U(e,t)&&(t.element.selected=!1)}))},c.readValue=function(){const t=s.val()||[],e=[];return t.forEach((t=>{const n=d.selectValueMap[t];n&&!n.disabled&&e.push(d.getViewValueFromOption(n))})),e},p.trackBy&&i.$watchCollection((()=>{if(Array.isArray(l.$viewValue))return l.$viewValue.map((t=>p.getTrackByValue(t)))}),(()=>{l.$render()}))):(c.writeValue=function(t){if(!d)return;const e=s[0].options[s[0].selectedIndex],n=d.getOptionFromViewValue(t);e&&e.removeAttribute("selected"),n?(s[0].value!==n.selectValue&&(c.removeUnknownOption(),s[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):c.selectUnknownOrEmptyOption(t)},c.readValue=function(){const t=d.selectValueMap[s.val()];return t&&!t.disabled?(c.unselectEmptyOption(),c.removeUnknownOption(),d.getViewValueFromOption(t)):null},p.trackBy&&i.$watch((()=>p.getTrackByValue(l.$viewValue)),(()=>{l.$render()}))),h&&(t(c.emptyOption)(i),s.prepend(c.emptyOption),c.emptyOption[0].nodeType===Node.COMMENT_NODE&&(c.hasEmptyOption=!1,c.registerOption=function(t,e){""===e.val()&&(c.hasEmptyOption=!0,c.emptyOption=e,l.$render(),e.on("$destroy",(()=>{const t=c.$isEmptyOptionSelected();c.hasEmptyOption=!1,c.emptyOption=void 0,t&&l.$render()})))})),i.$watchCollection(p.getWatchables,(function(){const t=d&&c.readValue();if(d)for(let t=d.items.length-1;t>=0;t--){const e=d.items[t];v(e.group)?qt(e.element.parentNode):qt(e.element)}d=p.getOptions();const e={};if(d.items.forEach((t=>{let n;v(t.group)?(n=e[t.group],n||(n=r.cloneNode(!1),f.appendChild(n),n.label=null===t.group?"null":t.group,e[t.group]=n),$(t,n)):$(t,f)})),s[0].appendChild(f),l.$render(),!l.$isEmpty(t)){const e=c.readValue();(p.trackBy||u?F(t,e):t===e)||(l.$setViewValue(e),l.$render())}}))}}}}],Ai=lt("ngTransclude"),ki=["$compile",function(t){return{restrict:"EA",compile:function(e){const n=t(e[0].childNodes);return e.empty(),function(t,e,r,i,s){if(!s)throw Ai("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",zt(e));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");const o=r.ngTransclude||r.ngTranscludeSlot;function a(){n(t,(t=>{e.append(t)}))}s((function(t,n){t.length&&function(t){for(let e=0,n=t.length;e<n;e++){const n=t[e];if(n.nodeType!==Node.TEXT_NODE||n.nodeValue.trim())return!0}}(t)?e.append(t):(a(),n.$destroy())}),null,o),o&&!s.isSlotFilled(o)&&a()}}}}];function _i(){return{restrict:"A",require:"ngModel",link(t,e,n,r){r.$viewChangeListeners.push((()=>t.$eval(n.ngChange)))}}}const Ti=/^\/(.+)\/([a-z]*)$/,ji={};Object.entries(St).forEach((([t,e])=>{if("multiple"===e)return;function n(e,n,i){e.$watch(i[r],(e=>{i.$set(t,!!e)}))}let r=pt(`ng-${t}`),i=n;"checked"===e&&(i=function(t,e,i){i.ngModel!==i[r]&&n(t,0,i)}),ji[r]=function(){return{restrict:"A",priority:100,link:i}}})),Object.entries(h).forEach((([t])=>{ji[t]=function(){return{priority:100,link(e,n,r){if("ngPattern"===t&&"/"===r.ngPattern.charAt(0)){const t=r.ngPattern.match(Ti);if(t)return void r.$set("ngPattern",new RegExp(t[1],t[2]))}e.$watch(r[t],(e=>{r.$set(t,e)}))}}}})),["src","srcset","href"].forEach((t=>{const e=pt(`ng-${t}`);ji[e]=["$sce",function(n){return{priority:99,link(r,i,s){let o=t;"href"===t&&"[object SVGAnimatedString]"===toString.call(i[0].href)&&(o="xlinkHref",s.$attr[o]="xlink:href"),s.$set(e,n.getTrustedMediaUrl(s[e])),s.$observe(e,(e=>{e?s.$set(o,e):"href"===t&&s.$set(o,null)}))}}}]}));const Vi=["$parse",t=>({restrict:"A",require:"?ngModel",link:(e,n,r,i)=>{if(!i)return;let s=Object.prototype.hasOwnProperty.call(r,"required")||t(r.ngRequired)(e);r.ngRequired||(r.required=!0),i.$validators.required=(t,e)=>!s||!i.$isEmpty(e),r.$observe("required",(t=>{s!==t&&(s=t,i.$validate())}))}})],Ni=["$parse",t=>({restrict:"A",require:"?ngModel",compile:(e,n)=>{var r,i;return n.ngPattern&&(r=n.ngPattern,i="/"===n.ngPattern.charAt(0)&&Ti.test(n.ngPattern)?function(){return n.ngPattern}:t(n.ngPattern)),function(t,e,n,s){if(s){var o=n.pattern;n.ngPattern?o=i(t):r=n.pattern;var a=Di(o,r,e);n.$observe("pattern",(function(t){var n=a;a=Di(t,r,e),(n&&n.toString())!==(a&&a.toString())&&s.$validate()})),s.$validators.pattern=function(t,e){return s.$isEmpty(e)||g(a)||a.test(e)}}}}})],Ri=["$parse",t=>({restrict:"A",require:"?ngModel",link:(e,n,r,i)=>{if(!i)return;let s=r.maxlength||t(r.ngMaxlength)(e),o=Mi(s);r.$observe("maxlength",(t=>{s!==t&&(o=Mi(t),s=t,i.$validate())})),i.$validators.maxlength=function(t,e){return o<0||i.$isEmpty(e)||e.length<=o}}})],Pi=["$parse",function(t){return{restrict:"A",require:"?ngModel",link(e,n,r,i){if(!i)return;let s=r.minlength||t(r.ngMinlength)(e),o=Mi(s)||-1;r.$observe("minlength",(t=>{s!==t&&(o=Mi(t)||-1,s=t,i.$validate())})),i.$validators.minlength=function(t,e){return i.$isEmpty(e)||e.length>=o}}}}];function Di(t,e,n){if(t){if(b(t)&&(t=new RegExp(`^${t}$`)),!t.test)throw lt("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",e,t,zt(n));return t}}function Mi(t){const e=N(t);return R(e)?-1:e}class Li{constructor(){this.autoScrollingEnabled=!0}disableAutoScrolling(){this.autoScrollingEnabled=!1}$get=["$location","$rootScope",function(t,e){function n(t){if(t){t.scrollIntoView();const e=function(){let t=r.yOffset;if(O(t))t=t();else if(L(t)){const e=t[0];t="fixed"!==window.getComputedStyle(e).position?0:e.getBoundingClientRect().bottom}else w(t)||(t=0);return t}();if(e){const n=t.getBoundingClientRect().top;window.scrollBy(0,n-e)}}else window.scrollTo(0,0)}const r=function(e){let r;(e=b(e)?e:w(e)?e.toString():t.hash())?(r=document.getElementById(e))||(r=function(t){let e=null;return Array.prototype.some.call(t,(t=>{if("a"===I(t))return e=t,!0})),e}(document.getElementsByName(e)))?n(r):"top"===e&&n(null):n(null)};return this.autoScrollingEnabled&&e.$watch((()=>t.hash()),((t,n)=>{if(t===n&&""===t)return;const i=()=>e.$evalAsync(r);"complete"===document.readyState?window.setTimeout((()=>i())):window.addEventListener("load",(()=>i()))})),r}]}function Ii(t){return t.replace(/#$/,"")}class Ui{constructor(t){this.taskTracker=t,this.pendingDeferIds={},this.urlChangeListeners=[],this.urlChangeInit=!1,this.cachedState=null,this.lastHistoryState=null,this.lastBrowserUrl=window.location.href,this.baseElement=At(Array.from(document.getElementsByTagName("base"))),this.$$completeOutstandingRequest=this.taskTracker.completeTask.bind(t),this.$$incOutstandingRequestCount=this.taskTracker.incTaskCount.bind(t),this.notifyWhenNoOutstandingRequests=this.taskTracker.notifyWhenNoPendingTasks.bind(t),this.cacheState()}url(t,e){return void 0===e&&(e=null),t?(t=Be(t).href,this.lastBrowserUrl===t&&this.lastHistoryState===e||(this.lastBrowserUrl=t,this.lastHistoryState=e,history.pushState(e,"",t),this.cacheState()),this):Ii(window.location.href)}state(){return this.cachedState}cacheStateAndFireUrlChange(){this.fireStateOrUrlChange()}cacheState(){const t=history.state??null;F(t,this.lastCachedState)||(this.cachedState=t,this.lastCachedState=t,this.lastHistoryState=t)}fireStateOrUrlChange(){const t=this.lastHistoryState;this.cacheState(),this.lastBrowserUrl===this.url()&&t===this.cachedState||(this.lastBrowserUrl=this.url(),this.lastHistoryState=this.cachedState,this.urlChangeListeners.forEach((t=>{t(Ii(window.location.href),this.cachedState)})))}onUrlChange(t){return this.urlChangeInit||(window.addEventListener("popstate",this.cacheStateAndFireUrlChange.bind(this)),window.addEventListener("hashchange",this.cacheStateAndFireUrlChange.bind(this)),this.urlChangeInit=!0),this.urlChangeListeners.push(t),t}$$applicationDestroyed(){window.removeEventListener("popstate",this.cacheStateAndFireUrlChange.bind(this)),window.removeEventListener("hashchange",this.cacheStateAndFireUrlChange.bind(this))}$$checkUrlChange(){this.fireStateOrUrlChange()}baseHref(){const t=this.baseElement.attr("href");return t?t.replace(/^(https?:)?\/\/[^/]*/,""):""}defer(t,e=0,n=this.taskTracker.DEFAULT_TASK_TYPE){let r;return this.taskTracker.incTaskCount(n),r=window.setTimeout((()=>{delete this.pendingDeferIds[r],this.taskTracker.completeTask(t,n)}),e),this.pendingDeferIds[r]=n,r}cancel(t){if(Object.prototype.hasOwnProperty.call(this.pendingDeferIds,t)){const e=this.pendingDeferIds[t];return delete this.pendingDeferIds[t],window.clearTimeout(t),this.taskTracker.completeTask((()=>{}),e),!0}return!1}}class qi{$get=["$$taskTrackerFactory",t=>new Ui(t)]}function Hi(){this.$get=[function(){var t=[];function e(e){t.push(e),t.length>1||window.requestAnimationFrame((function(){for(var e=0;e<t.length;e++)t[e]();t=[]}))}return function(){var t=!1;return e((function(){t=!0})),function(n){t?n():e(n)}}}]}let Fi,Bi,zi,Wi;function Gi(){this.$get=["$q","$$animateAsyncRun","$timeout",function(t,e,n){return Fi=t,Bi=e,zi=n,Ki}]}class Ki{static chain(t,e){let n=0;!function r(){n!==t.length?t[n]((t=>{!1!==t?(n++,r()):e(!1)})):e(!0)}()}static all(t,e){let n=0,r=!0;function i(i){r=r&&i,++n===t.length&&e(r)}t.forEach((t=>{t.done(i)}))}constructor(t){this.setHost(t);const e=Bi();this._doneCallbacks=[],this._tick=t=>{document.hidden?(t=>{zi(t,0,!1)})(t):e(t)},this._state=0}setHost(t){this.host=t||{}}done(t){2===this._state?t():this._doneCallbacks.push(t)}progress(){}getPromise(){if(!this.promise){const t=this;this.promise=Fi(((e,n)=>{t.done((t=>{!1===t?n():e()}))}))}return this.promise}then(t,e){return this.getPromise().then(t,e)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}pause(){this.host.pause&&this.host.pause()}resume(){this.host.resume&&this.host.resume()}end(){this.host.end&&this.host.end(),this._resolve(!0)}cancel(){this.host.cancel&&this.host.cancel(),this._resolve(!1)}complete(t){0===this._state&&(this._state=1,this._tick((()=>{this._resolve(t)})))}_resolve(t){2!==this._state&&(this._doneCallbacks.forEach((e=>{e(t)})),this._doneCallbacks.length=0,this._state=2)}}class Yi{$get=()=>new Map}const Qi=(t,e)=>{Wi.error(t,e)};function Zi(){this.$get=["$log",function(t){return Wi=t,Qi}]}function Ji(){return function(t,e,n,r){if(!m(t)){if(null==t)return t;throw lt("filter")("notarray","Expected array but received: {0}",t)}let i;r=r||"$";let s=!1;switch(ts(e)){case"function":i=e;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":i=function(t,e,n,r){const i=y(t)&&n in t;let s;!0===e?e=F:O(e)||(e=function(t,e){return!g(t)&&(null===t||null===e?t===e:!(y(e)||y(t)&&!M(t))&&(t=`${t}`.toLowerCase(),e=`${e}`.toLowerCase(),-1!==t.indexOf(e)))});return s=function(s){return i&&!y(s)?Xi(s,t[n],e,n,!1):Xi(s,t,e,n,r)},s}(e,n,r,s);break;default:return t}return Array.prototype.filter.call(t,i)}}function Xi(t,e,n,r,i,s){const o=ts(t),a=ts(e);if("string"===a&&"!"===e.charAt(0))return!Xi(t,e.substring(1),n,r,i);if(Array.isArray(t))return t.some((t=>Xi(t,e,n,r,i)));switch(o){case"object":if(i){for(let i in t)if(i.charAt&&"$"!==i.charAt(0)&&Xi(t[i],e,n,r,!0))return!0;return!s&&Xi(t,e,n,r,!1)}if("object"===a){for(let i in e){const s=e[i];if(O(s)||g(s))continue;const o=i===r;if(!Xi(o?t:t[i],s,n,r,o,o))return!1}return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function ts(t){return null===t?"null":typeof t}function es(){return function(t,e){return g(e)&&(e=2),Q(t,e)}}function ns(){return function(t,e,n){return R(e=Math.abs(Number(e))===1/0?Number(e):N(e))?t:(w(t)&&(t=t.toString()),m(t)?(n=(n=!n||isNaN(n)?0:N(n))<0?Math.max(0,t.length+n):n,e>=0?rs(t,n,n+e):0===n?rs(t,e,t.length):rs(t,Math.max(0,n+e),n)):t)}}function rs(t,e,n){return b(t)?t.slice(e,n):[].slice.call(t,e,n)}function is(t){return function(r,i,s,o){if(null==r)return r;if(!m(r))throw lt("orderBy")("notarray","Expected array but received: {0}",r);Array.isArray(i)||(i=[i]),0===i.length&&(i=["+"]);const a=i.map((e=>{let n=1,r=t=>t;if(O(e))r=e;else if(b(e)&&("+"!==e.charAt(0)&&"-"!==e.charAt(0)||(n="-"===e.charAt(0)?-1:1,e=e.substring(1)),""!==e)){let n=t(e);if(n.constant){const t=n();r=e=>e[t]}else r=n}return{get:r,descending:n}}));const c=s?-1:1,l=O(o)?o:n,u=Array.prototype.map.call(r,(function(t,n){return{value:t,tieBreaker:{value:n,type:"number",index:n},predicateValues:a.map((r=>function(t,n){let r=typeof t;null===t?r="null":"object"===r&&(t=function(t){if(O(t.valueOf)&&e(t=t.valueOf()))return t;if(M(t)&&e(t=t.toString()))return t;return t}(t));return{value:t,type:r,index:n}}(r.get(t),n)))}}));return u.sort((function(t,e){for(let n=0,r=a.length;n<r;n++){const r=l(t.predicateValues[n],e.predicateValues[n]);if(r)return r*a[n].descending*c}return(l(t.tieBreaker,e.tieBreaker)||n(t.tieBreaker,e.tieBreaker))*c})),r=u.map((t=>t.value))};function e(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function n(t,e){let n=0;const r=t.type,i=e.type;if(r===i){let i=t.value,s=e.value;"string"===r?(i=i.toLowerCase(),s=s.toLowerCase()):"object"===r&&(y(i)&&(i=t.index),y(s)&&(s=e.index)),i!==s&&(n=i<s?-1:1)}else n="undefined"===r?1:"undefined"===i?-1:"null"===r?1:"null"===i||r<i?-1:1;return n}}function ss(t){const e=function(e,n,r){return t.is(e,n,r)};return e.$stateful=!0,e}function os(t){const e=function(e,n,r){return t.includes(e,n,r)};return e.$stateful=!0,e}function as(t){const e="Filter";function n(r,i){if(y(r)){const t={};return Object.entries(r).forEach((([e,r])=>{t[e]=n(e,r)})),t}return t.factory(r+e,i)}this.register=n,this.$get=["$injector",function(t){return function(n){return t.get(n+e)}}],n("filter",Ji),n("json",es),n("limitTo",ns),n("orderBy",is),n("isState",ss),n("includedByState",os)}is.$inject=["$parse"],ss.$inject=["$state"],os.$inject=["$state"],as.$inject=["$provide"];class cs{constructor(){this.errorOn=!0}$get=["$rootScope","$exceptionHandler",function(t,e){return function(t,e,n){const r=lt("$q");let i=0;const s=[];class o{constructor(){this.promise=new a,this.resolve=t=>h(this.promise,t),this.reject=t=>p(this.promise,t)}}class a{constructor(){this.$$state={status:0,pending:void 0,processScheduled:!1,pur:!1}}then(t,e){if(g(t)&&g(e))return this;const n=new a;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push({result:n,onFulfilled:t,onRejected:e}),this.$$state.status>0&&u(this.$$state),n}catch(t){return this.then(null,t)}finally(t){return this.then((e=>m(e,v,t)),(e=>m(e,$,t)))}}function c(e){e.processScheduled=!1;try{for(let t=0,n=e.pending.length;t<n;++t){e.pur=!0;const n=e.pending[t].result;let r;r=1===e.status?e.pending[t].onFulfilled:e.pending[t].onRejected;try{O(r)?h(n,r(e.value)):1===e.status?h(n,e.value):p(n,e.value)}catch(t){p(n,t)}}}finally{--i,n&&0===i&&t(l),e.pending=void 0}}function l(){for(;!i&&s.length;){const t=s.shift();if(!ls(t)){t.pur=!0;const n=`Possibly unhandled rejection: ${ut(t.value)}`;C(t.value)?e(t.value,n):e(n)}}}function u(e){!n||e.pending||2!==e.status||ls(e)||(0===i&&0===s.length&&t(l),s.push(e)),!e.processScheduled&&e.pending&&(e.processScheduled=!0,++i,t((()=>{c(e)})))}function h(t,e){t.$$state.status||(e===t?f(t,r("qcycle","Expected promise to be resolved with value other than itself '{0}'",e)):d(t,e))}function d(t,e){let n,r=!1;try{(y(e)||O(e))&&(n=e.then),O(n)?(t.$$state.status=-1,n.call(e,i,s)):(t.$$state.value=e,t.$$state.status=1,u(t.$$state))}catch(t){s(t)}function i(e){r||(r=!0,d(t,e))}function s(e){r||(r=!0,f(t,e))}}function p(t,e){t.$$state.status||f(t,e)}function f(t,e){t.$$state.value=e,t.$$state.status=2,u(t.$$state)}function $(t){const e=new a;return p(e,t),e}function m(t,e,n){let r=null;try{O(n)&&(r=n())}catch(t){return $(t)}return _(r)?r.then((()=>e(t)),$):e(t)}function v(t,e,n){const r=new a;return h(r,t),r.then(e,n)}function b(t){const e=new a;let n=0;const r=Array.isArray(t)?[]:{};return Object.entries(t).forEach((([t,i])=>{n++,v(i).then((i=>{r[t]=i,--n||h(e,r)}),(t=>{p(e,t)}))})),0===n&&h(e,r),e}function w(t){const e=new o;return t.forEach((t=>{v(t).then(e.resolve,e.reject)})),e.promise}function E(t){if(!O(t))throw r("norslvr","Expected resolverFn, got '{0}'",t);const e=new a;return t((t=>h(e,t)),(t=>p(e,t))),e}return E.defer=()=>new o,E.reject=$,E.resolve=v,E.all=b,E.race=w,E}((e=>{t.$evalAsync(e)}),e,this.errorOn)}];errorOnUnhandledRejections(t){return v(t)?(this.errorOn=t,this):this.errorOn}}function ls(t){return!!t.pur}function us(t){t.$$state&&(t.$$state.pur=!0)}const hs=lt("$interval"),ds=new Map;function ps(){this.$get=["$$intervalFactory",function(t){function e(t){window.clearInterval(t),ds.delete(t)}const n=t((function(t,e,n){const r=window.setInterval(t,e);return ds.set(r,n),r}),e);return n.cancel=function(t){if(!t)return!1;if(!Object.prototype.hasOwnProperty.call(t,"$$intervalId"))throw hs("badprom","`$interval.cancel()` called with a promise that was not generated by `$interval()`.");if(!ds.has(t.$$intervalId))return!1;const n=t.$$intervalId,r=ds.get(n);return us(r.promise),r.reject("canceled"),e(n),!0},n}]}const fs=1,$s=2;class ms{constructor(t){this.$filter=t}compile(t){let e,n,r=gs(t,this.$filter);(e=function(t){if(1===t.body.length&&vs(t.body[0].expression))return{type:Sr.AssignmentExpression,left:t.body[0].expression,right:{type:Sr.NGValueParameter},operator:"="}}(r))&&(n=this.recurse(e));const i=function(t){if(1!==t.length)return;const e=t[0].expression,n=e.toWatch;return 1!==n.length||n[0]!==e?n:void 0}(r.body);let s;if(i){s=[];for(const[t,e]of Object.entries(i)){const n=this.recurse(e);n.isPure=e.isPure,e.input=n,s.push(n),e.watchId=t}}const o=[];r.body.forEach((t=>{o.push(this.recurse(t.expression))}));const a=0===r.body.length?()=>{}:1===r.body.length?o[0]:function(t,e){let n;return o.forEach((r=>{n=r(t,e)})),n};return n&&(a.assign=(t,e,r)=>n(t,r,e)),s&&(a.inputs=s),a}recurse(t,e,n){let r,i;const s=this;let o;switch(t.type){case Sr.Literal:return this.value(t.value,e);case Sr.UnaryExpression:return i=this.recurse(t.argument),this[`unary${t.operator}`](i,e);case Sr.BinaryExpression:case Sr.LogicalExpression:return r=this.recurse(t.left),i=this.recurse(t.right),this[`binary${t.operator}`](r,i,e);case Sr.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case Sr.Identifier:return s.identifier(t.name,e,n);case Sr.MemberExpression:return r=this.recurse(t.object,!1,!!n),t.computed||(i=t.property.name),t.computed&&(i=this.recurse(t.property)),t.computed?this.computedMember(r,i,e,n):this.nonComputedMember(r,i,e,n);case Sr.CallExpression:return o=[],t.arguments.forEach((t=>{o.push(s.recurse(t))})),t.filter&&(i=this.$filter(t.callee.name)),t.filter||(i=this.recurse(t.callee,!0)),t.filter?function(t,n,r){const s=[];for(let e=0;e<o.length;++e)s.push(o[e](t,n,r));const a=i.apply(void 0,s);return e?{context:void 0,name:void 0,value:a}:a}:function(t,n,r){const s=i(t,n,r);let a;if(null!=s.value){const e=[];for(let i=0;i<o.length;++i)e.push(o[i](t,n,r));a=s.value.apply(s.context,e)}return e?{value:a}:a};case Sr.AssignmentExpression:return r=this.recurse(t.left,!0,1),i=this.recurse(t.right),function(t,n,s){const o=r(t,n,s),a=i(t,n,s);return o.context[o.name]=a,e?{value:a}:a};case Sr.ArrayExpression:return o=[],t.elements.forEach((t=>{o.push(s.recurse(t))})),function(t,n,r){const i=[];for(let e=0;e<o.length;++e)i.push(o[e](t,n,r));return e?{value:i}:i};case Sr.ObjectExpression:return o=[],t.properties.forEach((t=>{t.computed?o.push({key:s.recurse(t.key),computed:!0,value:s.recurse(t.value)}):o.push({key:t.key.type===Sr.Identifier?t.key.name:`${t.key.value}`,computed:!1,value:s.recurse(t.value)})})),function(t,n,r){const i={};for(let e=0;e<o.length;++e)o[e].computed?i[o[e].key(t,n,r)]=o[e].value(t,n,r):i[o[e].key]=o[e].value(t,n,r);return e?{value:i}:i};case Sr.ThisExpression:return function(t){return e?{value:t}:t};case Sr.LocalsExpression:return function(t,n){return e?{value:n}:n};case Sr.NGValueParameter:return function(t,n,r){return e?{value:r}:r}}}"unary+"(t,e){return function(n,r,i){let s=t(n,r,i);return s=v(s)?+s:0,e?{value:s}:s}}"unary-"(t,e){return function(n,r,i){let s=t(n,r,i);return s=v(s)?-s:-0,e?{value:s}:s}}"unary!"(t,e){return function(n,r,i){const s=!t(n,r,i);return e?{value:s}:s}}"binary+"(t,e,n){return function(r,i,s){const o=t(r,i,s),a=e(r,i,s),c=(u=a,void 0===(l=o)?u:void 0===u?l:l+u);var l,u;return n?{value:c}:c}}"binary-"(t,e,n){return function(r,i,s){const o=t(r,i,s),a=e(r,i,s),c=(v(o)?o:0)-(v(a)?a:0);return n?{value:c}:c}}"binary*"(t,e,n){return function(r,i,s){const o=t(r,i,s)*e(r,i,s);return n?{value:o}:o}}"binary/"(t,e,n){return function(r,i,s){const o=t(r,i,s)/e(r,i,s);return n?{value:o}:o}}"binary%"(t,e,n){return function(r,i,s){const o=t(r,i,s)%e(r,i,s);return n?{value:o}:o}}"binary==="(t,e,n){return function(r,i,s){const o=t(r,i,s)===e(r,i,s);return n?{value:o}:o}}"binary!=="(t,e,n){return function(r,i,s){const o=t(r,i,s)!==e(r,i,s);return n?{value:o}:o}}"binary=="(t,e,n){return function(r,i,s){const o=t(r,i,s)==e(r,i,s);return n?{value:o}:o}}"binary!="(t,e,n){return function(r,i,s){const o=t(r,i,s)!=e(r,i,s);return n?{value:o}:o}}"binary<"(t,e,n){return function(r,i,s){const o=t(r,i,s)<e(r,i,s);return n?{value:o}:o}}"binary>"(t,e,n){return function(r,i,s){const o=t(r,i,s)>e(r,i,s);return n?{value:o}:o}}"binary<="(t,e,n){return function(r,i,s){const o=t(r,i,s)<=e(r,i,s);return n?{value:o}:o}}"binary>="(t,e,n){return function(r,i,s){const o=t(r,i,s)>=e(r,i,s);return n?{value:o}:o}}"binary&&"(t,e,n){return function(r,i,s){const o=t(r,i,s)&&e(r,i,s);return n?{value:o}:o}}"binary||"(t,e,n){return function(r,i,s){const o=t(r,i,s)||e(r,i,s);return n?{value:o}:o}}"ternary?:"(t,e,n,r){return function(i,s,o){const a=t(i,s,o)?e(i,s,o):n(i,s,o);return r?{value:a}:a}}value(t,e){return function(){return e?{context:void 0,name:void 0,value:t}:t}}identifier(t,e,n){return function(r,i){const s=i&&t in i?i:r;n&&1!==n&&s&&null==s[t]&&(s[t]={});const o=s?s[t]:void 0;return e?{context:s,name:t,value:o}:o}}computedMember(t,e,n,r){return function(i,s,o){const a=t(i,s,o);let c,l;return null!=a&&(c=e(i,s,o),c=function(t){return`${t}`}(c),r&&1!==r&&a&&!a[c]&&(a[c]={}),l=a[c]),n?{context:a,name:c,value:l}:l}}nonComputedMember(t,e,n,r){return function(i,s,o){const a=t(i,s,o);r&&1!==r&&a&&null==a[e]&&(a[e]={});const c=null!=a?a[e]:void 0;return n?{context:a,name:e,value:c}:c}}}function gs(t,e,n){let r,i,s,o,a,c,l,u,h,d,p,f=t;const $=f.isPure=function(t,e){switch(t.type){case Sr.MemberExpression:if(t.computed)return!1;break;case Sr.UnaryExpression:return fs;case Sr.BinaryExpression:return"+"!==t.operator&&fs;case Sr.CallExpression:return!1}return void 0===e?$s:e}(t,n);switch(t.type){case Sr.Program:return r=!0,f.body.forEach((t=>{let n=gs(t.expression,e,$);r=r&&n.constant})),f.constant=r,f;case Sr.Literal:return f.constant=!0,f.toWatch=[],f;case Sr.UnaryExpression:var m=gs(f.argument,e,$);return f.constant=m.constant,f.toWatch=m.toWatch,f;case Sr.BinaryExpression:return o=gs(f.left,e,$),a=gs(f.right,e,$),f.constant=o.constant&&a.constant,f.toWatch=o.toWatch.concat(a.toWatch),f;case Sr.LogicalExpression:return o=gs(f.left,e,$),a=gs(f.right,e,$),f.constant=o.constant&&a.constant,f.toWatch=f.constant?[]:[t],f;case Sr.ConditionalExpression:return c=gs(t.test,e,$),l=gs(t.alternate,e,$),u=gs(t.consequent,e,$),f.constant=c.constant&&l.constant&&u.constant,f.toWatch=f.constant?[]:[t],f;case Sr.Identifier:return f.constant=!1,f.toWatch=[t],f;case Sr.MemberExpression:return h=gs(t.object,e,$),t.computed&&(d=gs(t.property,e,$)),f.constant=h.constant&&(!f.computed||d.constant),f.toWatch=f.constant?[]:[t],f;case Sr.CallExpression:return s=!!t.filter&&function(t,e){const n=t(e);return!n.$stateful}(e,t.callee.name),r=s,i=[],t.arguments.forEach((t=>{m=gs(t,e,$),r=r&&m.constant,i.push.apply(i,m.toWatch)})),f.constant=r,f.toWatch=s?i:[f],f;case Sr.AssignmentExpression:return o=gs(t.left,e,$),a=gs(t.right,e,$),f.constant=o.constant&&a.constant,f.toWatch=[f],f;case Sr.ArrayExpression:return r=!0,i=[],t.elements.forEach((t=>{m=gs(t,e,$),r=r&&m.constant,i.push.apply(i,m.toWatch)})),f.constant=r,f.toWatch=i,f;case Sr.ObjectExpression:return r=!0,i=[],t.properties.forEach((t=>{m=gs(t.value,e,$),r=r&&m.constant,i.push.apply(i,m.toWatch),t.computed&&(p=gs(t.key,e,!1),r=r&&p.constant,i.push.apply(i,p.toWatch))})),f.constant=r,f.toWatch=i,f;case Sr.ThisExpression:case Sr.LocalsExpression:return f.constant=!1,f.toWatch=[],f}}function vs(t){return t.type===Sr.Identifier||t.type===Sr.MemberExpression}const ys=lt("$parse"),bs={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},ws=new Set("+ - * / % === !== == != < > <= >= && || ! = |".split(" "));class Es{constructor(t){this.options=t}lex(t){for(this.text=t,this.index=0,this.tokens=[];this.index<this.text.length;){const 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.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{const e=t+this.peek(),n=e+this.peek(2),r=ws.has(t),i=ws.has(e),s=ws.has(n);if(r||i||s){const r=s?n:i?e:t;this.tokens.push({index:this.index,text:r,operator:!0}),this.index+=r.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens}is(t,e){return-1!==e.indexOf(t)}peek(t){const e=t||1;return this.index+e<this.text.length&&this.text.charAt(this.index+e)}isNumber(t){return t>="0"&&t<="9"&&"string"==typeof t}isWhitespace(t){return" "===t||"\r"===t||"\t"===t||"\n"===t||"\v"===t}isIdentifierStart(t){return this.options.isIdentifierStart?this.options.isIdentifierStart(t,this.codePointAt(t)):t>="a"&&t<="z"||t>="A"&&t<="Z"||"_"===t||"$"===t}isIdentifierContinue(t){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(t,this.codePointAt(t)):t>="a"&&t<="z"||t>="A"&&t<="Z"||"_"===t||"$"===t||t>="0"&&t<="9"}codePointAt(t){return 1===t.length?t.charCodeAt(0):(t.charCodeAt(0)<<10)+t.charCodeAt(1)-56613888}peekMultichar(){const t=this.text.charAt(this.index),e=this.peek();if(!e)return t;const n=t.charCodeAt(0),r=e.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?t+e:t}isExpOperator(t){return"-"===t||"+"===t||this.isNumber(t)}throwError(t,e,n){n=n||this.index;const r=v(e)?`s ${e}-${this.index} [${this.text.substring(e,n)}]`:` ${n}`;throw ys("lexerr",`Lexer Error: ${t} at column${r} in expression [${this.text}].`)}readNumber(){let t="";const e=this.index;for(;this.index<this.text.length;){const e=this.text.charAt(this.index).toLowerCase();if("."===e||this.isNumber(e))t+=e;else{const n=this.peek();if("e"===e&&this.isExpOperator(n))t+=e;else if(this.isExpOperator(e)&&n&&this.isNumber(n)&&"e"===t.charAt(t.length-1))t+=e;else{if(!this.isExpOperator(e)||n&&this.isNumber(n)||"e"!==t.charAt(t.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:e,text:t,constant:!0,value:Number(t)})}readIdent(){const t=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){const t=this.peekMultichar();if(this.isIdentifierContinue&&!this.isIdentifierContinue(t))break;this.index+=t.length}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})}readString(t){const e=this.index;let n="",r=!1;for(this.index++;this.index<this.text.length;){const i=this.text[this.index];if(r)n+="u"===i?this.handleUnicodeEscape():bs[i]||i,r=!1;else if("\\"===i)r=!0;else{if(i===t)return this.tokens.push({index:e,text:this.text.slice(e,this.index+1),constant:!0,value:n}),void this.index++;n+=i}this.index++}this.throwError("Unterminated quote",e)}handleUnicodeEscape(){const t=this.text.substring(this.index+1,this.index+5);return t.match(/[\da-f]{4}/i)||this.throwError(`Invalid unicode escape [\\u${t}]`),this.index+=4,String.fromCharCode(parseInt(t,16))}}const Cs=lt("$parse"),Os=new Map(Object.entries({true:!0,false:!1,null:null,undefined:void 0}));class Ss{constructor(t){this.lexer=t,this.selfReferential={this:{type:Sr.ThisExpression},$locals:{type:Sr.LocalsExpression}}}ast(t){this.text=t,this.tokens=this.lexer.lex(t);const e=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),e}program(){const t=[];let e=!0;for(;e;)this.tokens.length>0&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),this.expect(";")||(e=!1);return{type:Sr.Program,body:t}}expressionStatement(){return{type:Sr.ExpressionStatement,expression:this.filterChain()}}filterChain(){let t=this.assignment();for(;this.expect("|");)t=this.filter(t);return t}assignment(){let t=this.ternary();if(this.expect("=")){if(!vs(t))throw Cs("lval","Trying to assign a value to a non l-value");t={type:Sr.AssignmentExpression,left:t,right:this.assignment(),operator:"="}}return t}ternary(){const t=this.logicalOR();let e,n;return this.expect("?")&&(e=this.assignment(),this.consume(":"))?(n=this.assignment(),{type:Sr.ConditionalExpression,test:t,alternate:e,consequent:n}):t}logicalOR(){let t=this.logicalAND();for(;this.expect("||");)t={type:Sr.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t}logicalAND(){let t=this.equality();for(;this.expect("&&");)t={type:Sr.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t}equality(){let t,e=this.relational();for(;t=this.expect("==","!=","===","!==");)e={type:Sr.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e}relational(){let t,e=this.additive();for(;t=this.expect("<",">","<=",">=");)e={type:Sr.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e}additive(){let t,e=this.multiplicative();for(;t=this.expect("+","-");)e={type:Sr.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e}multiplicative(){let t,e=this.unary();for(;t=this.expect("*","/","%");)e={type:Sr.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e}unary(){let t;return(t=this.expect("+","-","!"))?{type:Sr.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()}primary(){let t,e;for(this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():Object.prototype.hasOwnProperty.call(this.selfReferential,this.peek().text)?t=structuredClone(this.selfReferential[this.consume().text]):Os.has(this.peek().text)?t={type:Sr.Literal,value:Os.get(this.consume().text)}:this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());e=this.expect("(","[",".");)"("===e.text?(t={type:Sr.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:Sr.MemberExpression,object:t,property:this.assignment(),computed:!0},this.consume("]")):"."===e.text?t={type:Sr.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t}filter(t){const e=[t],n={type:Sr.CallExpression,callee:this.identifier(),arguments:e,filter:!0};for(;this.expect(":");)e.push(this.assignment());return n}parseArguments(){const t=[];if(")"!==this.peekToken().text)do{t.push(this.filterChain())}while(this.expect(","));return t}identifier(){const t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:Sr.Identifier,name:t.text}}constant(){return{type:Sr.Literal,value:this.consume().value}}arrayDeclaration(){const t=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t.push(this.assignment())}while(this.expect(","));return this.consume("]"),{type:Sr.ArrayExpression,elements:t}}object(){const t=[];let e;if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:Sr.Property,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.assignment()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.assignment()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.assignment(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.assignment()):this.throwError("invalid key",this.peek()),t.push(e)}while(this.expect(","));return this.consume("}"),{type:Sr.ObjectExpression,properties:t}}throwError(t,e){throw Cs("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",e.text,t,e.index+1,this.text,this.text.substring(e.index))}consume(t){if(0===this.tokens.length)throw Cs("ueoe","Unexpected end of expression: {0}",this.text);const e=this.expect(t);if(e)return e;this.throwError(`is unexpected, expecting [${t}]`,this.peek())}peekToken(){if(0===this.tokens.length)throw Cs("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]}peek(...t){return this.peekAhead(0,...t)}peekAhead(t,...e){if(this.tokens.length>t){const n=this.tokens[t],r=n.text;if(e.includes(r)||!e[0]&&!e[1]&&!e[2]&&!e[3])return n}return!1}expect(...t){const e=this.peek(...t);return!!e&&(this.tokens.shift(),e)}}class xs{constructor(t,e){this.ast=new Ss(t),this.astCompiler=new ms(e)}parse(t){const{ast:e,oneTime:n}=this.getAst(t),r=this.astCompiler.compile(e);return r.literal=function(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===Sr.Literal||t.body[0].expression.type===Sr.ArrayExpression||t.body[0].expression.type===Sr.ObjectExpression)}(e),r.constant=function(t){return t.constant}(e),r.oneTime=n,r}getAst(t){let e=!1;return(t=t.trim()).startsWith("::")&&(e=!0,t=t.substring(2)),{ast:this.ast.ast(t),oneTime:e}}}function As(){const t=Object.create(null);var e,n;this.setIdentifierFns=function(t,r){return e=t,n=r,this},this.$get=["$filter",function(r){var i={isIdentifierStart:O(e)&&e,isIdentifierContinue:O(n)&&n};return function(e,n){var o,a;switch(typeof e){case"string":if(e=e.trim(),!(o=t[a=e])){var c=new Es(i);o=new xs(c,r).parse(e),t[a]=_s(o)}return s(o,n);case"function":return s(e,n);default:return s((()=>{}),n)}};function s(t,e){if(!e)return t;t.$$interceptor&&(e=function(t,e){function n(n){return e(t(n))}return n.$stateful=t.$stateful||e.$stateful,n.$$pure=t.$$pure&&e.$$pure,n}(t.$$interceptor,e),t=t.$$intercepted);var n=!1,r=function(r,i,s,o){var a=n&&o?o[0]:t(r,i,s,o);return e(a)};return r.$$intercepted=t,r.$$interceptor=e,r.literal=t.literal,r.oneTime=t.oneTime,r.constant=t.constant,e.$stateful||(n=!t.inputs,r.inputs=t.inputs?t.inputs:[t],e.$$pure||(r.inputs=r.inputs.map((function(t){return t.isPure===$s?function(e){return t(e)}:t})))),_s(r)}}]}function ks(t,e,n,r){const i=t.$watch((()=>(i(),r(t))),e,n);return i}function _s(t){return t.constant?t.$$watchDelegate=ks:t.oneTime?t.$$watchDelegate=js:t.inputs&&(t.$$watchDelegate=Ts),t}function Ts(t,e,n,r){let i,s=r.inputs;if(1===s.length){let o=Vs,a=s[0];return t.$watch((t=>{const e=a(t);return Vs(e,o,a.isPure)||(i=r(t,void 0,void 0,[e]),o=e&&Rs(e)),i}),e,n)}{const o=[],a=[];for(let t=0,e=s.length;t<e;t++)o[t]=Vs,a[t]=null;return t.$watch((t=>{let e=!1;for(let n=0,r=s.length;n<r;n++){const r=s[n](t);(e||(e=!Vs(r,o[n],s[n].isPure)))&&(a[n]=r,o[n]=r&&Rs(r))}return e&&(i=r(t,void 0,void 0,a)),i}),e,n)}}function js(t,e,n,r){const i=r.literal?Ns:v;let s,o;const a=r.$$intercepted||r,c=r.$$interceptor||(t=>t),l=r.inputs&&!a.inputs;function u(){i(o)&&s()}function h(t,e,n,r){return o=l&&r?r[0]:a(t,e,n,r),i(o)&&t.$$postDigest(u),c(o)}return h.literal=r.literal,h.constant=r.constant,h.inputs=r.inputs,h.oneTime=void 0,_s(h),s=t.$watch(h,e,n),s}function Vs(t,e,n){return null==t||null==e?t===e:!("object"==typeof t&&"object"==typeof(t=Rs(t))&&!n)&&(t===e||t!=t&&e!=e)}function Ns(t){let e=!0;return Object.values(t).forEach((t=>{v(t)||(e=!1)})),e}function Rs(t){return O(t.valueOf)?t.valueOf():{}.constructor.prototype.valueOf.call(t)}const Ps=lt("$interpolate");function Ds(t,e){throw Ps("interr","Can't interpolate: {0}\n{1}",t,e.toString())}class Ms{constructor(){this.start="{{",this.end="}}"}startSymbol(t){return t?(this.start=t,this):this.start}endSymbol(t){return t?(this.end=t,this):this.end}$get=["$parse","$sce",function(t,e){const n=this,r=n.start.length,i=n.end.length,s=new RegExp(this.start.replace(/./g,a),"g"),o=new RegExp(n.end.replace(/./g,a),"g");function a(t){return`\\\\\\${t}`}function c(t){return t.replace(s,n.start).replace(o,n.end)}function l(s,o,a,l){const u=a===e.URL||a===e.MEDIA_URL;if(!s.length||-1===s.indexOf(n.start)){if(o)return;let t=c(s);u&&(t=e.getTrusted(a,t));const n=D(t);return n.exp=s,n.expressions=[],n.$$watchDelegate=ks,n}let h,d;l=!!l;let p=0;const f=[];let $;const m=s.length;let y;const b=[],w=[];let E;for(;p<m;){if(-1===(h=s.indexOf(n.start,p))||-1===(d=s.indexOf(n.end,h+r))){p!==m&&b.push(c(s.substring(p)));break}p!==h&&b.push(c(s.substring(p,h))),y=s.substring(h+r,d),f.push(y),p=d+i,w.push(b.length),b.push("")}E=1===b.length&&1===w.length;const C=u&&E?void 0:function(t){try{return t=a&&!u?e.getTrusted(a,t):e.valueOf(t),l&&!v(t)?t:z(t)}catch(t){Ds(s,t)}};if($=f.map((e=>t(e,C))),!o||f.length){const t=function(t){for(let e=0,n=f.length;e<n;e++){if(l&&g(t[e]))return;b[w[e]]=t[e]}return u?e.getTrusted(a,E?b[0]:b.join("")):(a&&b.length>1&&function(t){throw Ps("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required. See http://docs.angularjs.org/api/ng.$sce",t)}(s),b.join(""))};return V((e=>{let n=0;const r=f.length,i=new Array(r);try{for(;n<r;n++)i[n]=$[n](e);return t(i)}catch(t){Ds(s,t)}}),{exp:s,expressions:f,$$watchDelegate(e,n){let r;return e.$watchGroup($,((i,s)=>{const o=t(i);n.call(this,o,i!==s?r:o,e),r=o}))}})}}return l.startSymbol=function(){return n.start},l.endSymbol=function(){return n.end},l}]}function Ls(){this.$get=["$q","$rootScope",function(t,e){return function(n,r){return function(i,s,o){const a=arguments.length>4,c=a?G(arguments,4):[];let l=0;const u=t.defer(),{promise:h}=u;function d(){a?i.apply(null,c):i(l)}return o=v(o)?o:0,h.$$intervalId=n((function(){e.$evalAsync(d),l++,o>0&&l>=o&&(u.resolve(l),r(h.$$intervalId)),e.$apply()}),s,u),h}}}]}let Is={},Us="";function qs(t){try{return decodeURIComponent(t)}catch(e){return t}}const Hs="application/json",Fs={"Content-Type":`${Hs};charset=utf-8`},Bs=/^\[|^\{(?!\{)/,zs={"[":/]$/,"{":/}$/},Ws=/^\)]\}',?\n/,Gs=lt("$http");function Ks(t){return y(t)?E(t)?t.toISOString():Q(t):t}function Ys(){this.$get=function(){return function(t){if(!t)return"";const e=[];return Object.keys(t).sort().forEach((n=>{const r=t[n];null===r||g(r)||O(r)||(Array.isArray(r)?r.forEach((t=>{e.push(`${et(n)}=${et(Ks(t))}`)})):e.push(`${et(n)}=${et(Ks(r))}`))})),e.join("&")}}}function Qs(t,e){if(b(t)){const r=t.replace(Ws,"").trim();if(r){const i=e("Content-Type"),s=i&&0===i.indexOf(Hs);if(s||function(t){const e=t.match(Bs);return e&&zs[e[0]].test(t)}(r))try{t=b(n=r)?JSON.parse(n):n}catch(e){if(!s)return t;throw Gs("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',t,e)}}}var n;return t}function Zs(t){const e=Object.create(null);let n;function r(t,n){t&&(e[t]=e[t]?`${e[t]}, ${n}`:n)}return b(t)?t.split("\n").forEach((t=>{n=t.indexOf(":"),r(t.substring(0,n).trim().toLowerCase(),T(t.substring(n+1)))})):y(t)&&Object.entries(t).forEach((([t,e])=>{r($(t),T(e))})),e}function Js(t){let e;return function(n){if(e||(e=Zs(t)),n){let t=e[$(n)];return void 0===t&&(t=null),t}return e}}function Xs(t,e,n,r){return O(r)?r(t,e,n):(Array.isArray(r)&&r.forEach((r=>{t=r(t,e,n)})),t)}function to(t){return t>=200&&t<300}function eo(){const t=this.defaults={transformResponse:[Qs],transformRequest:[function(t){return!y(t)||(e=t,"[object File]"===toString.call(e))||function(t){return"[object Blob]"===toString.call(t)}(t)||function(t){return"[object FormData]"===toString.call(t)}(t)?t:Q(t);var e}],headers:{common:{Accept:"application/json, text/plain, */*"},post:rt(Fs),put:rt(Fs),patch:rt(Fs)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"};let e=!1;this.useApplyAsync=function(t){return v(t)?(e=!!t,this):e};const n=this.interceptors=[],r=this.xsrfTrustedOrigins=[];Object.defineProperty(this,"xsrfWhitelistedOrigins",{get(){return this.xsrfTrustedOrigins},set(t){this.xsrfTrustedOrigins=t}}),this.$get=["$browser","$httpBackend","$rootScope","$q","$injector","$sce",function(i,s,o,a,c,l){const u=new Map;t.paramSerializer=b(t.paramSerializer)?c.get(t.paramSerializer):t.paramSerializer;const h=[];n.forEach((t=>{h.unshift(b(t)?c.get(t):c.invoke(t))}));const d=function(t){const e=[He].concat(t.map(Be));return function(t){const n=Be(t);return e.some(We.bind(null,n))}}(r);function p(n){if(!y(n))throw lt("$http")("badreq","Http request configuration must be an object. Received: {0}",n);if(!b(l.valueOf(n.url)))throw lt("$http")("badreq","Http request configuration url must be a string or a $sce trusted object. Received: {0}",n.url);const r=V({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},n);var f;r.headers=function(e){let n=t.headers,r=V({},e.headers);return n=V({},n.common,n[$(e.method)]),Object.keys(n).forEach((t=>{const e=$(t);Object.keys(r).some((t=>$(t)===e))||(r[t]=n[t])})),function(t,e){let n;const r={};return Object.entries(t).forEach((([t,i])=>{O(i)?(n=i(e),null!=n&&(r[t]=n)):r[t]=i})),r}(r,rt(e))}(n),r.method=b(f=r.method)?f.toUpperCase():f,r.paramSerializer=b(r.paramSerializer)?c.get(r.paramSerializer):r.paramSerializer,i.$$incOutstandingRequestCount("$http");const m=[],w=[];let E=a.resolve(r);return h.forEach((t=>{(t.request||t.requestError)&&m.unshift(t.request,t.requestError),(t.response||t.responseError)&&w.push(t.response,t.responseError)})),E=C(E,m),E=E.then((function(n){const{headers:r}=n,i=Xs(n.data,Js(r),void 0,n.transformRequest);g(i)&&Object.keys(r).forEach((t=>{"content-type"===$(t)&&delete r[t]}));g(n.withCredentials)&&!g(t.withCredentials)&&(n.withCredentials=t.withCredentials);return function(n,r){const i=a.defer(),{promise:c}=i;let h,f;const $=n.headers;let{url:m}=n;b(m)||(m=l.valueOf(m));m=function(t,e){e.length>0&&(t+=(-1===t.indexOf("?")?"?":"&")+e);return t}(m,n.paramSerializer(n.params)),p.pendingRequests.push(n),c.then(S,S),(n.cache||t.cache)&&!1!==n.cache&&"GET"===n.method&&(h=y(n.cache)?n.cache:y(t.cache)?t.cache:u);h&&(f=h.get(m),v(f)?_(f)?f.then(O,O):Array.isArray(f)?C(f[1],f[0],rt(f[2]),f[3],f[4]):C(f,200,{},"OK","complete"):h.set(m,c));if(g(f)){const e=d(n.url)?function(){let t,e,n,r,i;const s=document.cookie;if(s!==Us)for(Us=s,t=Us.split("; "),Is={},n=0;n<t.length;n++)e=t[n],r=e.indexOf("="),r>0&&(i=qs(e.substring(0,r)),g(Is[i])&&(Is[i]=qs(e.substring(r+1))));return Is}()[n.xsrfCookieName||t.xsrfCookieName]:void 0;e&&($[n.xsrfHeaderName||t.xsrfHeaderName]=e),s(n.method,m,r,E,$,n.timeout,n.withCredentials,n.responseType,w(n.eventHandlers),w(n.uploadEventHandlers))}return c;function w(t){if(t){const n={};return Object.entries(t).forEach((([t,r])=>{n[t]=function(t){function n(){r(t)}e?o.$applyAsync(n):o.$$phase!==xe.NONE?n():o.$apply(n)}})),n}}function E(t,n,r,i,s){function a(){C(n,t,r,i,s)}h&&(to(t)?h.set(m,[t,n,Zs(r),i,s]):h.delete(m)),e?o.$applyAsync(a):(a(),o.$$phase||o.$apply())}function C(t,e,r,s,o){(to(e=e>=-1?e:0)?i.resolve:i.reject)({data:t,status:e,headers:Js(r),config:n,statusText:s,xhrStatus:o})}function O(t){C(t.data,t.status,rt(t.headers()),t.statusText,t.xhrStatus)}function S(){const t=p.pendingRequests.indexOf(n);-1!==t&&p.pendingRequests.splice(t,1)}}(n,i).then(S,S)})),E=C(E,w),E=E.finally((function(){i.$$completeOutstandingRequest((()=>{}),"$http")})),E;function C(t,e){for(let n=0,r=e.length;n<r;){const r=e[n++],i=e[n++];t=t.then(r,i)}return e.length=0,t}function S(t){const e=V({},t);return e.data=Xs(t.data,t.headers,t.status,r.transformResponse),to(t.status)?e:a.reject(e)}}return p.pendingRequests=[],function(...t){t.forEach((t=>{p[t]=function(e,n){return p(V({},n||{},{method:t,url:e}))}}))}("get","delete","head"),function(...t){t.forEach((t=>{p[t]=function(e,n,r){return p(V({},r||{},{method:t,url:e,data:n}))}}))}("post","put","patch"),p.defaults=t,p}]}function no(){this.$get=["$browser",function(t){return function(t){return function(e,n,r,i,s,o,a,c,l,u){n=n||t.url();const h=new XMLHttpRequest;let d=!1;if(h.open(e,n,!0),s&&Object.entries(s).forEach((([t,e])=>{v(e)&&h.setRequestHeader(t,e)})),h.onload=function(){const t=h.statusText||"";let e=h.status;0===e&&(e=h.response?200:"file"===Be(n).protocol?404:0),$(i,e,h.response,h.getAllResponseHeaders(),t,"complete")},h.onerror=function(){$(i,-1,null,null,"","error")},h.ontimeout=function(){$(i,-1,null,null,"","timeout")},h.onabort=function(){$(i,-1,null,null,"",d?"timeout":"abort")},l&&l&&Object.entries(l).forEach((([t,e])=>{h.addEventListener(t,e)})),u&&Object.entries(u).forEach((([t,e])=>{h.upload.addEventListener(t,e)})),a&&(h.withCredentials=!0),c)try{h.responseType=c}catch(t){if("json"!==c)throw t}if(h.send(g(r)?null:r),o>0)var p=t.defer((()=>{f("timeout")}),o);else _(o)&&o.then((()=>{f(v(o.$$timeoutId)?"timeout":"abort")}));function f(t){d="timeout"===t,h&&h.abort()}function $(e,n,r,i,s,o){v(p)&&t.cancel(p),e(n,r,i,s,o)}}}(t)}]}const ro={http:80,https:443,ftp:21},io=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,so=lt("$location");class oo{constructor(t,e){const n=Be(t);this.appBase=t,this.appBaseNoFile=e,this.$$absUrl="",this.$$html5=!1,this.$$replace=!1,this.$$protocol=n.protocol,this.$$host=n.hostname,this.$$port=N(n.port)||ro[n.protocol]||null,this.$$path=void 0,this.$$hash=void 0,this.$$urlUpdatedByLocation=!1}absUrl(){return this.$$absUrl}url(t){if(g(t))return this.$$url;const e=io.exec(t);return(e[1]||""===t)&&this.path(decodeURIComponent(e[1])),(e[2]||e[1]||""===t)&&this.search(e[3]||""),this.hash(e[5]||""),this}protocol(){return this.$$protocol}host(){return this.$$host}port(){return this.$$port}path(t){if(g(t))return this.$$path;let e=null!==t?t.toString():"";return this.$$path="/"===e.charAt(0)?e:`/${e}`,this.$$compose(),this}hash(t){return g(t)?this.$$hash:(this.$$hash=null!==t?t.toString():"",this.$$compose(),this)}replace(){return this.$$replace=!0,this}search(t,e){switch(arguments.length){case 0:return this.$$search;case 1:if(b(t)||w(t))t=t.toString(),this.$$search=J(t);else{if(!y(t))throw so("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");t=structuredClone(t,{}),Object.entries(t).forEach((([e,n])=>{null==n&&delete t[e]})),this.$$search=t}break;default:g(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this}$$compose(){this.$$url=function(t,e,n){const r=function(t){const e=[];return t&&Object.entries(t).forEach((([t,n])=>{Array.isArray(n)?n.forEach((n=>{e.push(et(t,!0)+(!0===n?"":`=${et(n,!0)}`))})):e.push(et(t,!0)+(!0===n?"":`=${et(n,!0)}`))})),e.length?e.join("&"):""}(e),i=n?`#${tt(n)}`:"";return function(t){const e=t.split("/");let n=e.length;for(;n--;)e[n]=tt(e[n].replace(/%2F/g,"/"));return e.join("/")}(t)+(r?`?${r}`:"")+i}(this.$$path,this.$$search,this.$$hash),this.$$absUrl=this.$$normalizeUrl(this.$$url),this.$$urlUpdatedByLocation=!0}$$normalizeUrl(t){throw new Error(`Method not implemented ${t}`)}state(t){if(!arguments.length)return this.$$state;if(!(this instanceof ao&&this.$$html5))throw so("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=g(t)?null:t,this.$$urlUpdatedByLocation=!0,this}$$parseLinkUrl(t,e){throw new Error(`Method not implemented ${t} ${e}`)}$$parse(t){throw new Error(`Method not implemented ${t}`)}}class ao extends oo{constructor(t,e,n){super(t,e),this.$$html5=!0,this.basePrefix=n||""}$$parse(t){const e=po(this.appBaseNoFile,t);if(!b(e))throw so("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,this.appBaseNoFile);uo(e,this,!0),this.$$path||(this.$$path="/"),this.$$compose()}$$normalizeUrl(t){return this.appBaseNoFile+t.substring(1)}$$parseLinkUrl(t,e){if(e&&"#"===e[0])return this.hash(e.slice(1)),!0;let n,r,i;return v(n=po(this.appBase,t))?(r=n,i=this.basePrefix&&v(n=po(this.basePrefix,n))?this.appBaseNoFile+(po("/",n)||n):this.appBase+r):v(n=po(this.appBaseNoFile,t))?i=this.appBaseNoFile+n:this.appBaseNoFile===`${t}/`&&(i=this.appBaseNoFile),i&&this.$$parse(i),!!i}}class co extends oo{constructor(t,e,n){super(t,e),this.hashPrefix=n}$$parse(t){const e=po(this.appBase,t)||po(this.appBaseNoFile,t);let n;g(e)||"#"!==e.charAt(0)?this.$$html5?n=e:(n="",g(e)&&(this.appBase=t,this.replace())):(n=po(this.hashPrefix,e),g(n)&&(n=e)),uo(n,this,!1),this.$$path=function(t,e,n){const r=/^\/[A-Z]:(\/.*)/;let i;ho(e,n)&&(e=e.replace(n,""));if(r.exec(e))return t;return i=r.exec(t),i?i[1]:t}(this.$$path,n,this.appBase),this.$$compose()}$$normalizeUrl(t){return this.appBase+(t?this.hashPrefix+t:"")}$$parseLinkUrl(t){return fo(this.appBase)===fo(t)&&(this.$$parse(t),!0)}}class lo{constructor(){this.hashPrefixConf="!",this.html5ModeConf={enabled:!1,requireBase:!0,rewriteLinks:!0}}setHashPrefix(t){this.hashPrefixConf=t}getHashPrefix(){return this.hashPrefixConf}setHtml5Mode(t){if(k(t)&&(this.html5ModeConf.enabled=t),y(t)){const e=t;v(e.enabled)&&k(e.enabled)&&(this.html5ModeConf.enabled=e.enabled),v(e.requireBase)&&k(e.requireBase)&&(this.html5ModeConf.requireBase=e.requireBase),v(e.rewriteLinks)&&(k(e.rewriteLinks)||b(e.rewriteLinks))&&(this.html5ModeConf.rewriteLinks=e.rewriteLinks)}}getHtml5Mode(){return this.html5ModeConf}$get=["$rootScope","$browser","$rootElement",(t,e,n)=>{let r,i;const s=e.baseHref(),o=e.url();let a;if(this.getHtml5Mode().enabled){if(!s&&this.getHtml5Mode().requireBase)throw so("nobase","$location in HTML5 mode requires a <base> tag to be present!");a=(c=o).substring(0,c.indexOf("/",c.indexOf("//")+2))+(s||"/"),i=ao}else a=fo(o),i=co;var c;const l=function(t){return t.substring(0,fo(t).lastIndexOf("/")+1)}(a);r=new i(a,l,`#${this.getHashPrefix()}`),r.$$parseLinkUrl(o,o),r.$$state=e.state();const u=/^\s*(javascript|mailto):/i;function h(t,n){const i=r.url(),s=r.$$state;try{e.url(t,n),r.$$state=e.state()}catch(t){throw r.url(i),r.$$state=s,t}}n.on("click",(i=>{const s=this.getHtml5Mode().rewriteLinks;if(!s||i.ctrlKey||i.metaKey||i.shiftKey||2===i.which||2===i.button)return;let o=At(i.target);for(;"a"!==o[0].nodeName.toLowerCase();)if(o[0]===n[0]||!(o=o.parent())[0])return;if(b(s)&&g(o.attr(s)))return;let a=o[0].href;const c=o.attr("href")||o.attr("xlink:href");y(a)&&"[object SVGAnimatedString]"===a.toString()&&(a=Be(a.animVal).href),u.test(a)||!a||o.attr("target")||i.isDefaultPrevented()||r.$$parseLinkUrl(a,c)&&(i.preventDefault(),r.absUrl()!==e.url()&&t.$apply())})),r.absUrl()!==o&&e.url(r.absUrl(),!0);let d=!0;return e.onUrlChange(((e,n)=>{ho(e,l)?(t.$evalAsync((()=>{const i=r.absUrl(),s=r.$$state;let o;r.$$parse(e),r.$$state=n,o=t.$broadcast("$locationChangeStart",e,i,n,s).defaultPrevented,r.absUrl()===e&&(o?(r.$$parse(i),r.$$state=s,h(i,s)):(d=!1,p(i,s)))})),t.$$phase===xe.NONE&&t.$digest()):window.location.href=e})),t.$watch((()=>{if(d||r.$$urlUpdatedByLocation){r.$$urlUpdatedByLocation=!1;const s=e.url(),o=r.absUrl(),a=e.state(),c=!((n=s)===(i=o)||Be(n).href===Be(i).href)||r.$$html5&&a!==r.$$state;(d||c)&&(d=!1,t.$evalAsync((()=>{const e=r.absUrl(),{defaultPrevented:n}=t.$broadcast("$locationChangeStart",e,s,r.$$state,a);r.absUrl()===e&&(n?(r.$$parse(s),r.$$state=a):(c&&h(e,a===r.$$state?null:r.$$state),p(s,a)))})))}var n,i;r.$$replace=!1})),r;function p(e,n){t.$broadcast("$locationChangeSuccess",r.absUrl(),e,r.$$state,n)}}]}function uo(t,e,n){if(/^\s*[\\/]{2,}/.test(t))throw so("badpath",'Invalid url "{0}".',t);const r="/"!==t.charAt(0);r&&(t=`/${t}`);const i=Be(t),s=r&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname;e.$$path=function(t,e){const n=t.split("/");let r=n.length;for(;r--;)n[r]=decodeURIComponent(n[r]),e&&(n[r]=n[r].replace(/\//g,"%2F"));return n.join("/")}(s,n),e.$$search=J(i.search),e.$$hash=decodeURIComponent(i.hash),e.$$path&&"/"!==e.$$path.charAt(0)&&(e.$$path=`/${e.$$path}`)}function ho(t,e){return t.slice(0,e.length)===e}function po(t,e){if(ho(e,t))return e.substring(t.length)}function fo(t){const e=t.indexOf("#");return-1===e?t:t.substring(0,e)}let $o={debug:void 0,error:void 0,info:void 0,log:void 0,warn:void 0};class mo{constructor(){this.debug=!0}debugEnabled(t){return void 0!==t?(this.debug=t,this):this.debug}formatError(t){return C(t)&&(t.stack?t=t.message&&-1===t.stack.indexOf(t.message)?`Error: ${t.message}\n${t.stack}`:t.stack:t.sourceURL&&(t=`${t.message}\n${t.sourceURL}:${t.line}`)),t}consoleLog(t){const e=window.console||{},n=e[t]||e.log||(()=>{});return(...t)=>{const r=t.map((t=>this.formatError(t)));return n.apply(e,r)}}$get(){return $o={log:this.consoleLog("log"),info:this.consoleLog("info"),warn:this.consoleLog("warn"),error:this.consoleLog("error"),debug:(()=>{const t=this.consoleLog("debug");return(...e)=>{this.debug&&t.apply(this,e)}})()},$o}}class go{$get=["$log",t=>new vo(t)]}class vo{constructor(t){this.log=t,this.taskCounts={},this.taskCallbacks=[],this.ALL_TASKS_TYPE="$$all$$",this.DEFAULT_TASK_TYPE="$$default$$"}completeTask(t,e=this.DEFAULT_TASK_TYPE){try{t()}finally{this.taskCounts[e]&&(this.taskCounts[e]--,this.taskCounts[this.ALL_TASKS_TYPE]--);const t=this.taskCounts[e],n=this.taskCounts[this.ALL_TASKS_TYPE];if(!n||!t){const t=n?()=>this.getLastCallbackForType(e):this.getLastCallback.bind(this);let r;for(;r=t();)try{r()}catch(t){this.log.error(t)}}}}incTaskCount(t=this.DEFAULT_TASK_TYPE){this.taskCounts[t]=(this.taskCounts[t]||0)+1,this.taskCounts[this.ALL_TASKS_TYPE]=(this.taskCounts[this.ALL_TASKS_TYPE]||0)+1}notifyWhenNoPendingTasks(t,e=this.ALL_TASKS_TYPE){this.taskCounts[e]?this.taskCallbacks.push({type:e,cb:t}):t()}getLastCallback(){const t=this.taskCallbacks.pop();return t?t.cb:void 0}getLastCallbackForType(t){for(let e=this.taskCallbacks.length-1;e>=0;--e){const n=this.taskCallbacks[e];if(n.type===t)return this.taskCallbacks.splice(e,1),n.cb}}}var yo=lt("$templateRequest");function bo(){var t;this.httpOptions=function(e){return e?(t=e,this):t},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(e,n,r,i,s){function o(a,c){o.totalPendingRequests++,b(a)&&n.has(a)||(a=s.getTrustedResourceUrl(a));var l=r.defaults&&r.defaults.transformResponse;return Array.isArray(l)?l=l.filter((function(t){return t!==Qs})):l===Qs&&(l=null),r.get(a,V({cache:n,transformResponse:l},t)).finally((function(){o.totalPendingRequests--})).then((function(t){return n.set(a,t.data),t.data}),(function(t){c||(t=yo("tpload","Failed to load template: {0} (HTTP status: {1} {2})",a,t.status,t.statusText),e(t));return i.reject(t)}))}return o.totalPendingRequests=0,o}]}const wo=lt("$timeout");class Eo{$get=["$rootScope","$browser","$q","$exceptionHandler",(t,e,n,r)=>{const i={};function s(s,o,a=!0){const c=G(arguments,3),l=v(a)&&!a,u=n.defer(),{promise:h}=u;let d;return d=e.defer((()=>{try{u.resolve(s.apply(null,c))}catch(t){u.reject(t),r(t)}finally{delete i[h.$$timeoutId]}l||t.$apply()}),o,"$timeout"),h.$$timeoutId=d,i[d]=u,h}return s.cancel=function(t){if(!t)return!1;if(!Object.prototype.hasOwnProperty.call(t,"$$timeoutId"))throw wo("badprom","`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.");if(!Object.prototype.hasOwnProperty.call(i,t.$$timeoutId))return!1;const n=t.$$timeoutId,r=i[n];return us(r.promise),r.reject("canceled"),delete i[n],e.cancel(n)},s}]}function Co(){let t=/^\s*(https?|s?ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationTrustedUrlList=function(e){return v(e)?(t=e,this):t},this.imgSrcSanitizationTrustedUrlList=function(t){return v(t)?(e=t,this):e},this.$get=function(){return function(n,r){const i=r?e:t,s=Be(n&&n.trim()).href;return""===s||s.match(i)?n:`unsafe:${s}`}}}const Oo="ng-active",So="ng-inactive";class xo{constructor(t,e,n,r){this.$element=t,this.$scope=e,this.$attrs=n,this.$animate=r,this.latestKey=0,this.nextAttachId=0,this.messages={},this.renderLater=!1,this.cachedCollection=null,this.head=void 0,this.default=void 0,this.$scope.$watchCollection(this.$attrs.ngMessages||this.$attrs.for,this.render.bind(this))}getAttachId(){return this.nextAttachId++}render(t={}){this.renderLater=!1,this.cachedCollection=t;const e=ko(this.$scope,this.$attrs.ngMessagesMultiple)||ko(this.$scope,this.$attrs.multiple),n=[],r={};let i=0,s=this.head,o=!1,a=0;for(;null!=s;){a++;const c=s.message;let l=!1;o||Object.entries(t).forEach((([t,e])=>{if(_o(e)&&!l&&(i++,c.test(t))){if(r[t])return;r[t]=!0,l=!0,c.attach()}})),l?o=!e:n.push(c),s=s.next}n.forEach((t=>{t.detach()}));const c=n.length!==a,l=this.default&&!c&&i>0;l?this.default.attach():this.default&&this.default.detach(),c||l?this.$animate.setClass(this.$element,Oo,So):this.$animate.setClass(this.$element,So,Oo)}reRender(){this.renderLater||(this.renderLater=!0,this.$scope.$evalAsync((()=>{this.renderLater&&this.cachedCollection&&this.render(this.cachedCollection)})))}register(t,e,n){if(n)this.default=e;else{const n=this.latestKey.toString();this.messages[n]={message:e},this.insertMessageNode(this.$element[0],t,n),t.$$ngMessageNode=n,this.latestKey++}this.reRender()}deregister(t,e){if(e)delete this.default;else{const e=t.$$ngMessageNode;delete t.$$ngMessageNode,this.removeMessageNode(this.$element[0],t,e),delete this.messages[e]}this.reRender()}findPreviousMessage(t,e){let n=e;const r=[];for(;n&&n!==t;){const t=n.$$ngMessageNode;if(t&&t.length)return this.messages[t];n.childNodes.length&&-1===r.indexOf(n)?(r.push(n),n=n.childNodes[n.childNodes.length-1]):n.previousSibling?n=n.previousSibling:(n=n.parentNode,r.push(n))}}insertMessageNode(t,e,n){const r=this.messages[n];if(this.head){const n=this.findPreviousMessage(t,e);n?(r.next=n.next,n.next=r):(r.next=this.head,this.head=r)}else this.head=r}removeMessageNode(t,e,n){const r=this.messages[n];if(!r)return;const i=this.findPreviousMessage(t,e);i?i.next=r.next:this.head=r.next}}function Ao(t){return{require:"ngMessages",restrict:"AE",controller:(e,n,r)=>new xo(e,n,r,t)}}function ko(t,e){return b(e)&&0===e.length||_o(t.$eval(e))}function _o(t){return b(t)?t.length:!!t}function To(t,e){return{restrict:"AE",require:"^^ngMessages",link(n,r,i){const s=i.ngMessagesInclude||i.src;t(s).then((t=>{n.$$destroyed||b(t)&&!t.trim()||e(t)(n,(t=>{r.after(t)}))}))}}}Ao.$inject=["$animate"],To.$inject=["$templateRequest","$compile"];const jo=Ro(!1),Vo=Ro(!1),No=Ro(!0);function Ro(t){function e(e){return{restrict:"AE",transclude:"element",priority:1,terminal:!0,require:"^^ngMessages",link(n,r,i,s,o){let a,c,l,u,h,d;if(!t){a=r[0],l=i.ngMessage||i.when,u=i.ngMessageExp||i.whenExp;const t=function(t){c=t?Array.isArray(t)?t:t.split(/[\s,]+/):null,s.reRender()};u?(t(n.$eval(u)),n.$watchCollection(u,t)):t(l)}s.register(a,d={test:t=>function(t,e){if(t)return Array.isArray(t)?t.indexOf(e)>=0:Object.prototype.hasOwnProperty.call(t,e)}(c,t),attach(){h||o(((n,i)=>{e.enter(n,null,r),h=n;const o=h.$$attachId=s.getAttachId();h.on("$destroy",(()=>{h&&h.$$attachId===o&&(s.deregister(a,t),d.detach()),i.$destroy()}))}))},detach(){if(h){const t=h;h=null,e.leave(t)}}},t),n.$on("$destroy",(()=>{s.deregister(a,t)}))}}}return e.$inject=["$animate"],e}const Po="ngAriaDisable",Do=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],Mo=function(t,e){if(-1!==e.indexOf(t[0].nodeName))return!0};function Lo(){let t={ariaHidden:!0,ariaChecked:!0,ariaReadonly:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaValue:!0,tabindex:!0,bindKeydown:!0,bindRoleForClick:!0};function e(e,n,r,i){return function(s,o,a){if(Object.prototype.hasOwnProperty.call(a,Po))return;const c=a.$normalize(n);!t[c]||Mo(o,r)||a[c]||s.$watch(a[e],(t=>{t=i?!t:!!t,o.attr(n,t)}))}}this.config=function(e){t=V(t,e)},this.$get=function(){return{config:e=>t[e],$$watchExpr:e}}}function Io(t){return t.$$watchExpr("ngDisabled","aria-disabled",Do,!1)}function Uo(t){return t.$$watchExpr("ngShow","aria-hidden",[],!0)}function qo(){return{restrict:"A",require:"?ngMessages",link(t,e,n){Object.prototype.hasOwnProperty.call(n,Po)||e.attr("aria-live")||e.attr("aria-live","assertive")}}}function Ho(t,e){return{restrict:"A",compile(n,r){if(Object.prototype.hasOwnProperty.call(r,Po))return;const i=e(r.ngClick);return function(e,n,r){Mo(n,Do)||(t.config("bindRoleForClick")&&!n.attr("role")&&n.attr("role","button"),t.config("tabindex")&&!n.attr("tabindex")&&n.attr("tabindex",0),!t.config("bindKeydown")||r.ngKeydown||r.ngKeypress||r.ngKeyup||n.on("keydown",(t=>{const n=t.which||t.keyCode;13!==n&&32!==n||(-1!==Do.indexOf(t.target.nodeName)||t.target.isContentEditable||t.preventDefault(),e.$apply((function(){i(e,{$event:t})})))})))}}}}function Fo(t){return t.$$watchExpr("ngRequired","aria-required",Do,!1)}function Bo(t){return t.$$watchExpr("ngChecked","aria-checked",Do,!1)}function zo(t){return t.$$watchExpr("ngValue","aria-checked",Do,!1)}function Wo(t){return t.$$watchExpr("ngHide","aria-hidden",[],!1)}function Go(t){return t.$$watchExpr("ngReadonly","aria-readonly",Do,!1)}function Ko(t){function e(e,n,r,i){return t.config(n)&&!r.attr(e)&&(i||!Mo(r,Do))&&("hidden"!==r.attr("type")||"INPUT"!==r[0].nodeName)}function n(t,e){return!e.attr("role")&&e.attr("type")===t&&!Mo(e,Do)}return{restrict:"A",require:"ngModel",priority:200,compile(r,i){if(Object.prototype.hasOwnProperty.call(i,Po))return;const s=function(t){const{type:e}=t,{role:n}=t;return"checkbox"===(e||n)||"menuitemcheckbox"===n?"checkbox":"radio"===(e||n)||"menuitemradio"===n?"radio":"range"===e||"progressbar"===n||"slider"===n?"range":""}(i);return{post(r,i,o,a){const c=e("tabindex","tabindex",i,!1);function l(){return a.$modelValue}switch(s){case"radio":case"checkbox":n(s,i)&&i.attr("role",s),e("aria-checked","ariaChecked",i,!1)&&r.$watch(l,"radio"===s?function(){i[0].setAttribute("aria-checked",(o.value==a.$viewValue).toString())}:function(){i.attr("aria-checked",(!a.$isEmpty(a.$viewValue)).toString())}),c&&i.attr("tabindex",0);break;case"range":if(n(s,i)&&i.attr("role","slider"),t.config("ariaValue")){const t=!i.attr("aria-valuemin")&&(Object.prototype.hasOwnProperty.call(o,"min")||Object.prototype.hasOwnProperty.call(o,"ngMin")),e=!i.attr("aria-valuemax")&&(Object.prototype.hasOwnProperty.call(o,"max")||Object.prototype.hasOwnProperty.call(o,"ngMax")),n=!i.attr("aria-valuenow");t&&o.$observe("min",(t=>{i.attr("aria-valuemin",t)})),e&&o.$observe("max",(t=>{i.attr("aria-valuemax",t)})),n&&r.$watch(l,(t=>{i.attr("aria-valuenow",t)}))}c&&i.attr("tabindex",0)}!Object.prototype.hasOwnProperty.call(o,"ngRequired")&&a.$validators.required&&e("aria-required","ariaRequired",i,!1)&&o.$observe("required",(()=>{i.attr("aria-required",(!!o.required).toString())})),e("aria-invalid","ariaInvalid",i,!0)&&r.$watch((()=>a.$invalid),(t=>{i.attr("aria-invalid",(!!t).toString())}))}}}}}function Yo(t){return function(e,n,r){Object.prototype.hasOwnProperty.call(r,Po)||!t.config("tabindex")||n.attr("tabindex")||Mo(n,Do)||n.attr("tabindex",0)}}Io.$inject=["$aria"],Uo.$inject=["$aria"],Ho.$inject=["$aria","$parse"],Fo.$inject=["$aria"],Bo.$inject=["$aria"],zo.$inject=["$aria"],Wo.$inject=["$aria"],Go.$inject=["$aria"],Ko.$inject=["$aria"],Yo.$inject=["$aria"];const Qo="$$animateCss",Zo=1e3,Jo=3,Xo=1.5,ta={transitionDuration:Wr,transitionDelay:zr,transitionProperty:Nr+Lr,animationDuration:Br,animationDelay:Fr,animationIterationCount:Pr+"IterationCount"},ea={transitionDuration:Wr,transitionDelay:zr,animationDuration:Br,animationDelay:Fr};function na(t,e){return[e?Fr:zr,`${t}s`]}function ra(t,e){const n=Object.create(null),r=window.getComputedStyle(t)||{};return Object.entries(e).forEach((([t,e])=>{let i=r[e];if(i){const e=i.charAt(0);("-"===e||"+"===e||e>=0)&&(i=function(t){let e=0;return t.split(/\s*,\s*/).forEach((t=>{"s"===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t=parseFloat(t)||0,e=e?Math.max(t,e):t})),e}(i)),0===i&&(i=null),n[t]=i}})),n}function ia(t){return 0===t||null!=t}function sa(t,e){let n=Nr,r=`${t}s`;return e?n+=Mr:r+=" linear all",[n,r]}function oa(t,e,n){n.forEach((n=>{t[n]=v(t[n])?t[n]:e.style.getPropertyValue(n)}))}function aa(){this.$get=["$$AnimateRunner","$timeout","$$animateCache","$$rAFScheduler","$$animateQueue",function(t,e,n,r,i){const s=function(t,e){e.addClass&&(t[0].classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t[0].classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};const o=[];function a(t){o.push(t),r.waitUntilQuiet((()=>{n.flush();const t=document.body.offsetWidth+1;for(let e=0;e<o.length;e++)o[e](t);o.length=0}))}function c(t,e,r){const i=function(t,e,r,i){let s=n.get(e);s||(s=ra(t,i),"infinite"===s.animationIterationCount&&(s.animationIterationCount=1));const o=r||s.transitionDuration>0||s.animationDuration>0;return n.put(e,s,o),s}(t,e,r,ta),s=i.animationDelay,o=i.transitionDelay;return i.maxDelay=s&&o?Math.max(s,o):s||o,i.maxDuration=Math.max(i.animationDuration*i.animationIterationCount,i.transitionDuration),i}return function(r,o){let l=o||{};l.$$prepared||(l=Jr(structuredClone(l)));const u={},h=ri(r);if(!h||!h.parentNode||!i.enabled())return z();const d=[],p=function(t){const e={};return t&&(t.to||t.from)&&(e.to=t.to,e.from=t.from),e}(l);let f,$,m,g,v,y,b,w,E,C;const O=[];if(0===l.duration)return z();const S=l.event&&Array.isArray(l.event)?l.event.join(" "):l.event,x=S&&l.structural;let A="",k="";x?A=Yr(S,kr,!0):S&&(A=S),l.addClass&&(k+=Yr(l.addClass,xr)),l.removeClass&&(k.length&&(k+=" "),k+=Yr(l.removeClass,Ar)),l.applyClassesEarly&&k.length&&s(r,l);let _=[A,k].join(" ").trim();const T=p.to&&Object.keys(p.to).length>0;if(!((l.keyframeStyle||"").length>0)&&!T&&!_)return z();let j,V,N=n.cacheKey(h,S,l.addClass,l.removeClass);if(n.containsCachedAnimationWithoutDuration(N))return _=null,z();if(l.stagger>0){const t=parseFloat(l.stagger);j={transitionDelay:t,animationDelay:t,transitionDuration:0,animationDuration:0}}else j=function(t,e,r,i){let s;const o=`stagger-${r}`;if(n.count(r)>0&&(s=n.get(o),!s)){const r=Yr(e,"-stagger");t.className+=` ${r}`,s=ra(t,i),s.animationDuration=Math.max(s.animationDuration,0),s.transitionDuration=Math.max(s.transitionDuration,0),t.classList.remove(r),n.put(o,s,!0)}return s||{}}(h,_,N,ea);if(l.$$skipPreparationClasses||r[0].classList.add(..._.split(" ").filter((t=>""!==t))),l.transitionStyle){const t=[Nr,l.transitionStyle];si(h,t),d.push(t)}if(l.duration>=0){V=h.style[Nr].length>0;const t=sa(l.duration,V);si(h,t),d.push(t)}if(l.keyframeStyle){const t=[Pr,l.keyframeStyle];si(h,t),d.push(t)}const R=j?l.staggerIndex>=0?l.staggerIndex:n.count(N):0,P=0===R;P&&!l.skipBlocking&&ca(h,Hr);let D=c(h,N,!x),M=D.maxDelay;y=Math.max(M,0),w=D.maxDuration;const L={};if(L.hasTransitions=D.transitionDuration>0,L.hasAnimations=D.animationDuration>0,L.hasTransitionAll=L.hasTransitions&&"all"===D.transitionProperty,L.applyTransitionDuration=T&&(L.hasTransitions&&!L.hasTransitionAll||L.hasAnimations&&!L.hasTransitions),L.applyAnimationDuration=l.duration&&L.hasAnimations,L.applyTransitionDelay=ia(l.delay)&&(L.applyTransitionDuration||L.hasTransitions),L.applyAnimationDelay=ia(l.delay)&&L.hasAnimations,L.recalculateTimingStyles=k.length>0,(L.applyTransitionDuration||L.applyAnimationDuration)&&(w=l.duration?parseFloat(l.duration):w,L.applyTransitionDuration&&(L.hasTransitions=!0,D.transitionDuration=w,V=h.style[Nr+Lr].length>0,d.push(sa(w,V))),L.applyAnimationDuration&&(L.hasAnimations=!0,D.animationDuration=w,d.push([Br,`${w}s`]))),0===w&&!L.recalculateTimingStyles)return z();var I,U=Yr(_,_r);null!=l.delay&&("boolean"!=typeof l.delay&&(I=parseFloat(l.delay),y=Math.max(I,0)),L.applyTransitionDelay&&d.push(na(I)),L.applyAnimationDelay&&d.push(na(I,!0)));return null==l.duration&&D.transitionDuration>0&&(L.recalculateTimingStyles=L.recalculateTimingStyles||P),b=y*Zo,E=w*Zo,l.skipBlocking||(L.blockTransition=D.transitionDuration>0,L.blockKeyframeAnimation=D.animationDuration>0&&j.animationDelay>0&&0===j.animationDuration),l.from&&(l.cleanupStyles&&oa(u,h,Object.keys(l.from)),ti(0,l)),L.blockTransition||L.blockKeyframeAnimation?B(w):l.skipBlocking||ca(h,!1),{$$willAnimate:!0,end:q,start(){if(!f)return v={end:q,cancel:H,resume:null,pause:null},g=new t(v),a(G),g}};function q(){F()}function H(){F(!0)}function F(t){if(f||m&&$)return;f=!0,$=!1,_&&!l.$$skipPreparationClasses&&r[0].classList.remove(..._.split(" ")),(U=Yr(_,_r))&&r[0].classList.remove(...U.split(" ")),ii(h,!1),ca(h,!1),d.forEach((t=>{h.style[t[0]]=""})),s(r,l),Xr(r,l),Object.keys(u).length&&Object.entries(u).forEach((([t,e])=>{e?h.style.setProperty(t,e):h.style.removeProperty(t)})),l.onDone&&l.onDone(),O.length&&r.off(O.join(" "),W);const n=r.data(Qo);n&&(e.cancel(n[0].timer),r.removeData(Qo)),g&&g.complete(!t)}function B(t){L.blockTransition&&ca(h,t),L.blockKeyframeAnimation&&ii(h,!!t)}function z(){return g=new t({end:q,cancel:H}),a((()=>{})),F(),{$$willAnimate:!1,start:()=>g,end:q}}function W(t){t.stopPropagation();const e=t.originalEvent||t;if(e.target!==h)return;const n=e.$manualTimeStamp||Date.now(),r=parseFloat(e.elapsedTime.toFixed(Jo));Math.max(n-C,0)>=b&&r>=w&&(m=!0,F())}function G(){if(f)return;if(!h.parentNode)return void F();const t=function(t){if(m)$&&t&&($=!1,F());else if($=!t,D.animationDuration){const t=ii(h,$);$?d.push(t):function(t,e){const n=t.indexOf(e);e>=0&&t.splice(n,1)}(d,t)}},i=R>0&&(D.transitionDuration&&0===j.transitionDuration||D.animationDuration&&0===j.animationDuration)&&Math.max(j.animationDelay,j.transitionDelay);function o(){if(f)return;if(B(!1),d.forEach((t=>{const e=t[0],n=t[1];h.style[e]=n})),s(r,l),r[0].classList.add(...U.split(" ").filter((t=>""!==t))),L.recalculateTimingStyles){if(N=n.cacheKey(h,S,l.addClass,l.removeClass),D=c(h,N,!1),M=D.maxDelay,y=Math.max(M,0),w=D.maxDuration,0===w)return void F();L.hasTransitions=D.transitionDuration>0,L.hasAnimations=D.animationDuration>0}if(L.applyAnimationDelay&&(M="boolean"!=typeof l.delay&&ia(l.delay)?parseFloat(l.delay):M,y=Math.max(M,0),D.animationDelay=M,I=na(M,!0),d.push(I),h.style[I[0]]=I[1]),b=y*Zo,E=w*Zo,l.easing){let t;const e=l.easing;L.hasTransitions&&(t=Nr+Ur,d.push([t,e]),h.style[t]=e),L.hasAnimations&&(t=Pr+Ur,d.push([t,e]),h.style[t]=e)}D.transitionDuration&&O.push(Rr),D.animationDuration&&O.push(Dr),C=Date.now();const t=b+Xo*E,i=C+t,o=r.data(Qo)||[];let p=!0;if(o.length){const t=o[0];p=i>t.expectedEndTime,p?e.cancel(t.timer):o.push(F)}if(p){const n=e(a,t,!1);o[0]={timer:n,expectedEndTime:i},o.push(F),r.data(Qo,o)}O.length&&r.on(O.join(" "),W),l.to&&(l.cleanupStyles&&oa(u,h,Object.keys(l.to)),ei(0,l))}function a(){const t=r.data(Qo);if(t){for(let e=1;e<t.length;e++)t[e]();r.removeData(Qo)}}i?e(o,Math.floor(i*R*Zo),!1):o(),v.resume=function(){t(!0)},v.pause=function(){t(!1)}}}}]}function ca(t,e){const n=e?`-${e}s`:"";return si(t,[zr,n]),[zr,n]}const la="data-ng-animate",ua="$ngAnimatePin";function ha(t){const e=" ",n=this.rules={skip:[],cancel:[],join:[]};function r(t){return{addClass:t.addClass,removeClass:t.removeClass,from:t.from,to:t.to}}function i(t,n){if(t&&n){const r=function(t){if(!t)return null;const n=t.split(e),r=Object.create(null);return n.forEach((t=>{r[t]=!0})),r}(n);return t.split(e).some((t=>r[t]))}}function s(t,e,r){return n[t].some((t=>t(e,r)))}function o(t,e){const n=(t.addClass||"").length>0,r=(t.removeClass||"").length>0;return e?n&&r:n||r}n.join.push((t=>!t.structural&&o(t))),n.skip.push((t=>!t.structural&&!o(t))),n.skip.push(((t,e)=>"leave"===e.event&&t.structural)),n.skip.push(((t,e)=>e.structural&&2===e.state&&!t.structural)),n.cancel.push(((t,e)=>e.structural&&t.structural)),n.cancel.push(((t,e)=>2===e.state&&t.structural)),n.cancel.push(((t,e)=>{if(e.structural)return!1;const n=t.addClass,r=t.removeClass,s=e.addClass,o=e.removeClass;return!(g(n)&&g(r)||g(s)&&g(o))&&(i(n,o)||i(r,s))})),this.$get=["$rootScope","$injector","$$animation","$$AnimateRunner","$templateRequest",function(e,n,i,a,c){const l=new Map,u=new Map;let h=null;function d(t){u.delete(t.target)}e.$templateRequest=c;const p=e.$watch("$templateRequest.totalPendingRequests",(t=>{0===t&&(p(),e.$templateRequest=void 0,e.$$postDigest((()=>{e.$$postDigest((()=>{null===h&&(h=!0)}))})))})),f=Object.create(null),$=t.customFilter(),m=t.classNameFilter(),w=function(){return!0},E=$||w,C=m?function(t,e){const n=[t.getAttribute("class"),e.addClass,e.removeClass].join(" ");return m.test(n)}:w,O=function(t,e){e.addClass&&(t[0].classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t[0].classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};function S(t,e){return ni(t,e,{})}const x=window.Node.prototype.contains||function(t){return this===t||!!(16&this.compareDocumentPosition(t))};function A(t,e,n){const r=Zr(e);return t.filter((t=>!(t.node===r&&(!n||t.callback===n))))}function k(t,e){"close"!==t||e.parentNode||_.off(e)}let _={on(t,e,n){const r=Zr(e);f[t]=f[t]||[],f[t].push({node:r,callback:n}),At(e).on("$destroy",(()=>{l.get(r)||_.off(t,e,n)}))},off(t,e,n){if(1===arguments.length&&!b(arguments[0])){e=arguments[0];for(const t in f)f[t]=A(f[t],e);return}const r=f[t];r&&(f[t]=1===arguments.length?null:A(r,e,n))},pin(t,e){Kr(L(t),"element","not an element"),Kr(L(e),"parentElement","not an element"),t.data(ua,e)},push:(t,c,d,p)=>((d=d||{}).domOperation=p,function(t,c,d){let p=d,$=Qr(t);const m=ri($),w=m&&m.parentNode;p=Jr(p);const A=new a,_=function(){let t=!1;return function(n){t?n():e.$$postDigest((()=>{t=!0,n()}))}}();Array.isArray(p.addClass)&&(p.addClass=p.addClass.join(" "));p.addClass&&!b(p.addClass)&&(p.addClass=null);Array.isArray(p.removeClass)&&(p.removeClass=p.removeClass.join(" "));p.removeClass&&!b(p.removeClass)&&(p.removeClass=null);p.from&&!y(p.from)&&(p.from=null);p.to&&!y(p.to)&&(p.to=null);if(!(h&&m&&E(m,c,d)&&C(m,p)))return U(),A;const V=["enter","move","leave"].indexOf(c)>=0;let N=document.hidden||u.get(m);const R=!N&&l.get(m)||{},P=!!R.state;N||P&&1===R.state||(N=!function(t,e){const r=document.body,i=ri(n.get("$rootElement"));let s,o=t===r||"HTML"===t.nodeName,a=t===i,c=!1,h=u.get(t),d=Lt(t,ua);d&&(e=ri(d));for(;e&&(a||(a=e===i),e.nodeType===Node.ELEMENT_NODE);){const t=l.get(e)||{};if(!c){const n=u.get(e);if(!0===n&&!1!==h){h=!0;break}!1===n&&(h=!1),c=t.structural}if(g(s)||!0===s){const t=Lt(e,Vr);v(t)&&(s=t)}if(c&&!1===s)break;if(o||(o=e===r),o&&a)break;e=a||(d=Lt(e,ua),!d)?e.parentNode:ri(d)}return(!c||s)&&!0!==h&&a&&o}(m,w));if(N)return document.hidden&&I(A,c,"start",r(p)),U(),document.hidden&&I(A,c,"close",r(p)),A;V&&function(t){const e=t.querySelectorAll(`[${la}]`);e.forEach((t=>{const e=parseInt(t.getAttribute(la),10),n=l.get(t);if(n)switch(e){case 2:n.runner.end();case 1:l.delete(t)}}))}(m);const D={structural:V,element:$,event:c,addClass:p.addClass,removeClass:p.removeClass,close:U,options:p,runner:A};if(P){if(s("skip",D,R))return 2===R.state?(U(),A):(ni($,R,D),R.runner);if(s("cancel",D,R))if(2===R.state)R.runner.end();else{if(!R.structural)return ni($,R,D),R.runner;R.close()}else{if(s("join",D,R)){if(2!==R.state)return function(t,e,n){let r="";e&&(r=Yr(e,kr,!0)),n.addClass&&(r=oi(r,Yr(n.addClass,xr))),n.removeClass&&(r=oi(r,Yr(n.removeClass,Ar))),r.length&&(n.preparationClasses=r,t[0].className+=` ${r}`)}($,V?c:null,p),c=D.event=R.event,p=ni($,R,D),R.runner;S($,D)}}}else S($,D);let M=D.structural;M||(M="animate"===D.event&&Object.keys(D.options.to||{}).length>0||o(D));if(!M)return U(),T(m),A;const L=(R.counter||0)+1;return D.counter=L,j(m,1,D),e.$$postDigest((()=>{$=Qr(t);let e=l.get(m);const n=!e;e=e||{};const s=($.parent()||[]).length>0&&("animate"===e.event||e.structural||o(e));if(n||e.counter!==L||!s)return n&&(O($,p),Xr($,p)),(n||V&&e.event!==c)&&(p.domOperation(),A.end()),void(s||T(m));c=!e.structural&&o(e,!0)?"setClass":e.event,j(m,2);const a=i($,c,e.options);A.setHost(a),I(A,c,"start",r(p)),a.done((t=>{U(!t);const e=l.get(m);e&&e.counter===L&&T(m),I(A,c,"close",r(p))}))})),A;function I(t,e,n,r){_((()=>{const t=function(t,e,n){const r=[],i=f[n];return i&&i.forEach((i=>{(x.call(i.node,e)||"leave"===n&&x.call(i.node,t))&&r.push(i.callback)})),r}(w,m,e);t.length?(t.forEach((t=>{t($,n,r)})),k(n,m)):k(n,m)})),t.progress(e,n,r)}function U(t){!function(t,e){e.preparationClasses&&(e.preparationClasses.split(" ").forEach((e=>t[0].classList.remove(e))),e.preparationClasses=null),e.activeClasses&&(e.activeClasses.split(" ").forEach((e=>t[0].classList.remove(e))),e.activeClasses=null)}($,p),O($,p),Xr($,p),p.domOperation(),A.complete(!t)}}(t,c,d)),enabled(t,e){const n=arguments.length;if(0===n)e=!!h;else{if(L(t)){const r=ri(t);1===n?e=!u.get(r):(u.has(r)||At(t).on("$destroy",d),u.set(r,!e))}else e=h=!!t}return e}};return _;function T(t){t.removeAttribute(la),l.delete(t)}function j(t,e,n){(n=n||{}).state=e,t.setAttribute(la,e);const r=l.get(t),i=r?V(r,n):n;l.set(t,i)}}]}function da(t){this.$get=["$injector","$$AnimateRunner",function(e,n){const r=function(t,e){e.addClass&&(t[0].classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t[0].classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};return function(i,s,o,a){let c=!1;3===arguments.length&&y(o)&&(a=o,o=null),a=Jr(a),o||(o=i.attr("class")||"",a.addClass&&(o+=` ${a.addClass}`),a.removeClass&&(o+=` ${a.removeClass}`));const l=a.addClass,u=a.removeClass,h=function(n){n=Array.isArray(n)?n:n.split(" ");const r=[],i={};for(let s=0;s<n.length;s++){const o=n[s],a=t.$$registeredAnimations[o];a&&!i[o]&&(r.push(e.get(a)),i[o]=!0)}return r}(o);let d,p,f;if(h.length){let t,e;"leave"===s?(e="leave",t="afterLeave"):(e=`before${s.charAt(0).toUpperCase()}${s.substring(1)}`,t=s),"enter"!==s&&"move"!==s&&(d=v(i,s,a,h,e)),p=v(i,s,a,h,t)}if(d||p)return{$$willAnimate:!0,end:()=>(f?f.end():(m(),f=new n,f.complete(!0)),f),start(){if(f)return f;let t;f=new n;const e=[];return d&&e.push((e=>{t=d(e)})),e.length?e.push((t=>{$(),t(!0)})):$(),p&&e.push((e=>{t=p(e)})),f.setHost({end(){i()},cancel(){i(!0)}}),n.chain(e,r),f;function r(t){m(),f.complete(t)}function i(e){c||((t||(()=>{}))(e),r(e))}}};function $(){a.domOperation(),r(i,a)}function m(){c=!0,$(),Xr(i,a)}function g(t,e,r,i,s){const o=[];return i.forEach((i=>{const a=i[s];a&&o.push((()=>{let i,s,o=!1;const c=function(t){o||(o=!0,(s||(()=>{}))(t),i.complete(!t))};return i=new n({end(){c()},cancel(){c(!0)}}),s=function(t,e,r,i,s){let o;switch(r){case"animate":o=[e,i.from,i.to,s];break;case"setClass":o=[e,l,u,s];break;case"addClass":o=[e,l,s];break;case"removeClass":o=[e,u,s];break;default:o=[e,s]}o.push(i);let a=t.apply(t,o);if(a)if(O(a.start)&&(a=a.start()),a instanceof n)a.done(s);else if(O(a))return a;return()=>{}}(a,t,e,r,(t=>{c(!1===t)})),i}))})),o}function v(t,e,r,i,s){let o=g(t,e,r,i,s);if(0===o.length){let e,n;"beforeSetClass"===s?(e=g(t,"removeClass",r,i,"beforeRemoveClass"),n=g(t,"addClass",r,i,"beforeAddClass")):"setClass"===s&&(e=g(t,"removeClass",r,i,"removeClass"),n=g(t,"addClass",r,i,"addClass")),e&&(o=o.concat(e)),n&&(o=o.concat(n))}if(0!==o.length)return function(t){const e=[];return o.length&&o.forEach((t=>{e.push(t())})),e.length?n.all(e,t):t(),function(t){e.forEach((e=>{t?e.cancel():e.end()}))}}}}}]}ha.$inject=["$animateProvider"],da.$inject=["$animateProvider"];const pa="$$animationRunner",fa="$$animatePrepareClasses";function $a(){const t="ng-animate-ref",e=this.drivers=[];function n(t){return t.data(pa)}this.$get=["$rootScope","$injector","$$AnimateRunner","$$rAFScheduler","$$animateCache",function(r,i,s,o,a){const c=[],l=function(t,e){e.addClass&&(t[0].classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t[0].classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};return function(u,h,d){d=Jr(d);const p=["enter","move","leave"].indexOf(h)>=0,f=new s({end(){y()},cancel(){y(!0)}});if(!e.length)return y(),f;let $=dt(u.attr("class"),dt(d.addClass,d.removeClass)),{tempClasses:m}=d;return m&&($+=` ${m}`,d.tempClasses=null),p&&u.data(fa,`ng-${h}${Tr}`),function(t,e){t.data(pa,e)}(u,f),c.push({element:u,classes:$,event:h,structural:p,options:d,beforeStart:function(){m=(m?`${m} `:"")+jr,u.className+=` ${m}`;let t=u.data(fa);t&&(u[0].classList.remove(t),t=null)},close:y}),u.on("$destroy",v),c.length>1||r.$$postDigest((()=>{const r=[];c.forEach((t=>{n(t.element)?r.push(t):t.close()})),c.length=0;const s=function(e){const n=[],r={};e.forEach(((e,i)=>{const{element:s}=e,o=ri(s),{event:a}=e,c=["enter","move"].indexOf(a)>=0,l=e.structural?function(e){const n=`[${t}]`,r=e.hasAttribute(t)?[e]:e.querySelectorAll(n),i=[];return r.forEach((e=>{const n=e.getAttribute(t);n&&n.length&&i.push(e)})),i}(o):[];if(l.length){const e=c?"to":"from";l.forEach((n=>{const s=n.getAttribute(t);r[s]=r[s]||{},r[s][e]={animationID:i,element:At(n)}}))}else n.push(e)}));const i={},s={};return Object.values(r).forEach((t=>{const{from:r}=t,{to:o}=t;if(!r||!o){const t=r?r.animationID:o.animationID,s=t.toString();return void(i[s]||(i[s]=!0,n.push(e[t])))}const a=e[r.animationID],c=e[o.animationID],l=r.animationID.toString();if(!s[l]){const t=s[l]={structural:!0,beforeStart(){a.beforeStart(),c.beforeStart()},close(){a.close(),c.close()},classes:g(a.classes,c.classes),from:a,to:c,anchors:[]};t.classes.length?n.push(t):(n.push(a),n.push(c))}s[l].anchors.push({out:r.element,in:o.element})})),n}(r),l=[];s.forEach((t=>{const r=t.from?t.from.element:t.element;let s=d.addClass;s=(s?`${s} `:"")+jr;const o=a.cacheKey(r[0],t.event,s,d.removeClass);l.push({element:r,domNode:ri(r),fn:function(){let r;const s=t.close;if(a.containsCachedAnimationWithoutDuration(o))return void s();t.beforeStart();if(n(t.anchors?t.from.element||t.to.element:t.element)){const n=function(t){for(let n=e.length-1;n>=0;n--){const r=e[n],s=i.get(r)(t);if(s)return s}}(t);n&&(r=n.start)}if(r){const e=r();e.done((t=>{s(!t)})),function(t,e){t.from&&t.to?(r(t.from.element),r(t.to.element)):r(t.element);function r(t){const r=n(t);r&&r.setHost(e)}}(t,e)}else s()}})}));const u=function(t){const e={children:[]};let n;const r=new Map;for(n=0;n<t.length;n++){const e=t[n];r.set(e.domNode,t[n]={domNode:e.domNode,element:e.element,fn:e.fn,children:[]})}for(n=0;n<t.length;n++)i(t[n]);return function(t){const e=[],n=[];let r;for(r=0;r<t.children.length;r++)n.push(t.children[r]);let i=n.length,s=0,o=[];for(r=0;r<n.length;r++){const t=n[r];i<=0&&(i=s,s=0,e.push(o),o=[]),o.push(t),t.children.forEach((t=>{s++,n.push(t)})),i--}return o.length&&e.push(o),e}(e);function i(t){if(t.processed)return t;t.processed=!0;const n=t.domNode;let s,{parentNode:o}=n;for(r.set(n,t);o;){if(s=r.get(o),s){s.processed||(s=i(s));break}o=o.parentNode}return(s||e).children.push(t),t}}(l);for(let t=0;t<u.length;t++){const e=u[t];for(let n=0;n<e.length;n++){const r=e[n],{element:i}=r;if(u[t][n]=r.fn,0===t){i.removeData(fa);continue}const s=i.data(fa);s&&i[0].classList.add(s)}}o(u)})),f;function g(t,e){t=t.split(" "),e=e.split(" ");const n=[];for(let r=0;r<t.length;r++){const i=t[r];if("ng-"!==i.substring(0,3))for(let t=0;t<e.length;t++)if(i===e[t]){n.push(i);break}}return n.join(" ")}function v(){const t=n(u);!t||"leave"===h&&d.$$domOperationFired||t.end()}function y(t){u.off("$destroy",v),function(t){t.removeData(pa)}(u),l(u,d),Xr(u,d),d.domOperation(),m&&m.split(" ").forEach((t=>u[0].classList.remove(t))),f.complete(!t)}}}]}function ma(){let t=[],e=null;function n(){if(!t.length)return;t.shift().forEach((t=>t())),e||window.requestAnimationFrame((()=>{e=null,n()}))}function r(e){t=t.concat(e),n()}t=r.queue=[],r.waitUntilQuiet=t=>{null!==e&&(window.cancelAnimationFrame(e),e=null),e=window.requestAnimationFrame((()=>{e=null,t(),n()}))},this.$get=function(){return r}}const ga="$animId";let va=0;const ya=new Map;function ba(){return{cacheKey(t,e,n,r){const{parentNode:i}=t,s=[i[ga]??(i[ga]=++va),e,t.getAttribute("class")];return n&&s.push(n),r&&s.push(r),s.join(" ")},containsCachedAnimationWithoutDuration(t){const e=ya.get(t);return!!e&&!e.isValid},flush(){ya.clear()},count:t=>ya.get(t)?.total??0,get:t=>ya.get(t)?.value,put(t,e,n){const r=ya.get(t);r?(r.total++,r.value=e):ya.set(t,{total:1,value:e,isValid:n})}}}function wa(){this.$get=[ba]}const Ea="ng-animate-shim",Ca="ng-anchor",Oa="ng-anchor-out",Sa="ng-anchor-in";function xa(t){t.drivers.push("$$animateCssDriver"),this.$get=["$animateCss","$$AnimateRunner","$rootElement",function(t,e,n){const r=document.body,i=n[0],s=At((o=i).parentNode&&11===o.parentNode.nodeType||r.contains(i)?i:r);var o;return function(n){return n.from&&n.to?function(n,i,o){const c=a(n),l=a(i),u=[];if(o.forEach((n=>{const i=function(n,i){const o=At(ri(n).cloneNode(!0)),a=Aa(p(o));let c;n[0].classList.add(Ea),i[0].classList.add(Ea),o[0].classList.add(Ca),s.append(o);const l=d();if(!l&&(c=f(),!c))return $();const u=l||c;return{start(){let t,n=u.start();return n.done((()=>{if(n=null,!c&&(c=f(),c))return n=c.start(),n.done((()=>{n=null,$(),t.complete()})),n;$(),t.complete()})),t=new e({end:r,cancel:r}),t;function r(){n&&n.end()}}};function h(t){const e={},n=ri(t).getBoundingClientRect();return["width","height","top","left"].forEach((t=>{let i=n[t];switch(t){case"top":i+=r.scrollTop;break;case"left":i+=r.scrollLeft}e[t]=`${Math.floor(i)}px`})),e}function d(){const e=t(o,{addClass:Oa,delay:!0,from:h(n)});return e.$$willAnimate?e:null}function p(t){return t.attr("class")||""}function f(){const e=Aa(p(i)),n=ka(e,a),r=ka(a,e),s=t(o,{to:h(i),addClass:`${Sa} ${n}`,removeClass:`${Oa} ${r}`,delay:!0});return s.$$willAnimate?s:null}function $(){o.remove(),n[0].classList.remove(Ea),i[0].classList.remove(Ea)}}(n.out,n.in);i&&u.push(i)})),!c&&!l&&0===u.length)return;return{start(){const t=[];c&&t.push(c.start()),l&&t.push(l.start()),u.forEach((e=>{t.push(e.start())}));const n=new e({end:r,cancel:r});return e.all(t,(t=>{n.complete(t)})),n;function r(){t.forEach((t=>{t.end()}))}}}}(n.from,n.to,n.anchors):a(n)};function a(e){const n=e.options||{};e.structural&&(n.event=e.event,n.structural=!0,n.applyClassesEarly=!0,"leave"===e.event&&(n.onDone=n.domOperation)),n.preparationClasses&&(n.event=oi(n.event,n.preparationClasses));const r=t(e.element,n);return r.$$willAnimate?r:null}}]}function Aa(t){return t.replace(/\bng-\S+\b/g,"")}function ka(t,e){return b(t)&&(t=t.split(" ")),b(e)&&(e=e.split(" ")),t.filter((t=>-1===e.indexOf(t))).join(" ")}function _a(t){t.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(t,e){return function(t){if(t.from&&t.to){const r=n(t.from),i=n(t.to);if(!r&&!i)return;return{start(){const t=[];r&&t.push(r.start()),i&&t.push(i.start()),e.all(t,(function(t){n.complete(t)}));const n=new e({end:s(),cancel:s()});return n;function s(){return function(){t.forEach((t=>{t.end()}))}}}}}return n(t)};function n(e){const{element:n}=e,{event:r}=e,{options:i}=e,{classes:s}=e;return t(n,r,s,i)}}]}function Ta(t){return{restrict:"A",transclude:"element",terminal:!0,priority:550,link(e,n,r,i,s){let o,a;e.$watchCollection(r.ngAnimateSwap||r.for,(e=>{o&&t.leave(o),a&&(a.$destroy(),a=null),e&&s(((e,r)=>{o=e,a=r,t.enter(e,null,n)}))}))}}}function ja(t){return{link(e,n,r){const i=r.ngAnimateChildren;function s(t){t="on"===t||"true"===t,n.data(Vr,t)}b(i)&&0===i.length?n.data(Vr,!0):(s(t(i)(e)),r.$observe("ngAnimateChildren",s))}}}function Va(t){return function e(){if(arguments.length>=t.length)return t.apply(this,arguments);const n=Array.prototype.slice.call(arguments);return e.bind(this,...n)}}function Na(){const t=arguments,e=t.length-1;return function(){let n=e,r=t[e].apply(this,arguments);for(;n--;)r=t[n].call(this,r);return r}}function Ra(){return Na.apply(null,[].slice.call(arguments).reverse())}xa.$inject=["$$animationProvider"],_a.$inject=["$$animationProvider"],Ta.$inject=["$animate"],ja.$inject=["$interpolate"];const Pa=Va(((t,e,n)=>n&&n[t]===e)),Da=t=>Ra.apply(null,t.split(".").map((t=>e=>e&&e[t])));const Ma=t=>e=>e.reduce(((e,n)=>e&&!!t(n)),!0),La=t=>e=>null!=e&&e.constructor===t||e instanceof t,Ia=t=>()=>t;function Ua(t){return function(e){for(let n=0;n<t.length;n++)if(t[n][0](e))return t[n][1](e)}}const qa={$q:void 0,$injector:void 0};function Ha(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;const n=typeof t;if(n!==typeof e||"object"!==n)return!1;const r=[t,e];if(Ma(Array.isArray)(r))return s=e,(i=t).length===s.length&&ac(i,s).reduce(((t,e)=>t&&Ha(e[0],e[1])),!0);var i,s;if(Ma(E)(r))return t.getTime()===e.getTime();if(Ma(S)(r))return t.toString()===e.toString();if(Ma(O)(r))return!0;if([O,Array.isArray,E,S].some((t=>!!t(r))))return!1;const o={};for(const n in t){if(!Ha(t[n],e[n]))return!1;o[n]=!0}for(const t in e)if(!o[t])return!1;return!0}function Fa(t,e,n,r,i=!1){const s=e=>t()[e].bind(n());return(r=r||Object.keys(t())).reduce(((t,n)=>{var r;return t[n]=i?(r=n,function(){return e[r]=s(r),e[r].apply(null,arguments)}):s(n),t}),e)}function Ba(t,e){const n=Object.create(t);return e&&Object.assign(n,e),n}const za=Va((function(t,e){const n=t.indexOf(e);n>=0&&t.splice(n,1);return t}));const Wa=Va(((t,e)=>(t.push(e),e)));function Ga(t,...e){const n=Object.assign({},...e.reverse());return Object.assign(n,Ka(t||{},Object.keys(n)))}function Ka(t,e){const n={};for(const r in t)-1!==e.indexOf(r)&&(n[r]=t[r]);return n}function Ya(t,e){return Object.keys(t).filter((t=>!e.includes(t))).reduce(((e,n)=>(e[n]=t[n],e)),{})}function Qa(t,e){const n=Array.isArray(t),r=n?[]:{},i=n?t=>r.push(t):(t,e)=>r[e]=t;return Object.entries(t).forEach((([t,n])=>{e(n,t)&&i(n,t)})),r}function Za(t,e){let n;return Object.entries(t).forEach((([t,r])=>{n||e(r,t)&&(n=r)})),n}function Ja(t,e,n){return n=n||(Array.isArray(t)?[]:{}),Object.entries(t).forEach((([t,r])=>n[t]=e(r,t))),n}const Xa=(t,e)=>t&&e,tc=(t,e)=>t||e,ec=(t,e)=>t.concat(e),nc=(t,e)=>Array.isArray(e)?t.concat(e.reduce(nc,[])):rc(t,e);function rc(t,e){return t.push(e),t}const ic=(t,e)=>t.includes(e)?t:rc(t,e),sc=t=>t.reduce(ec,[]),oc=function(t,e="assert failure"){return n=>{const r=t(n);if(!r)throw new Error(e);return r}};function ac(...t){if(0===t.length)return[];const e=t.reduce(((t,e)=>Math.min(e.length,t)),9007199254740991),n=[];for(let r=0;r<e;r++)switch(t.length){case 1:n.push([t[0][r]]);break;case 2:n.push([t[0][r],t[1][r]]);break;case 3:n.push([t[0][r],t[1][r],t[2][r]]);break;case 4:n.push([t[0][r],t[1][r],t[2][r],t[3][r]]);break;default:n.push(t.map((t=>t[r])))}return n}function cc(t,e){let n,r;if(Array.isArray(e)&&([n,r]=e),!b(n))throw new Error("invalid parameters to applyPairs");return t[n]=r,t}function lc(t){return t.length&&t[t.length-1]||void 0}function uc(t,e){return e&&Object.keys(e).forEach((t=>delete e[t])),e||(e={}),Object.assign(e,t)}const hc=t=>t.catch((()=>0))&&t,dc=t=>hc(qa.$q.reject(t)),pc=t=>null===t;function fc(t){return null===t&&void 0===t}function $c(t){if(Array.isArray(t)&&t.length){const e=t.slice(0,-1),n=t.slice(-1);return!(e.filter((t=>!b(t))).length||n.filter((t=>!O(t))).length)}return O(t)}function mc(t){return null!==t&&"object"==typeof t&&"function"==typeof t.then}class gc{constructor(t){this.pattern=/.*/,this.inherit=!0,Object.assign(this,t),this.name=void 0}is(t){return!!t}encode(t){return t}decode(t){return t}equals(t,e){return t==e}$subPattern(){const t=this.pattern.toString();return t.substring(1,t.length-2)}toString(){return`{ParamType:${this.name}}`}$normalize(t){return this.is(t)?t:this.decode(t)}$asArray(t,e){if(!t)return this;if("auto"===t&&!e)throw new Error("'auto' array mode is for query parameters only");return new vc(this,t)}}function vc(t,e){function n(t){return Array.isArray(t)?t:v(t)?[t]:[]}function r(t,r){return function(i){if(Array.isArray(i)&&0===i.length)return i;const s=Ja(n(i),t);return!0===r?0===Qa(s,(t=>!t)).length:function(t){switch(t.length){case 0:return;case 1:return"auto"===e?t[0]:t;default:return t}}(s)}}function i(t){return function(e,r){const i=n(e),s=n(r);if(i.length!==s.length)return!1;for(let e=0;e<i.length;e++)if(!t(i[e],s[e]))return!1;return!0}}["encode","decode","equals","$normalize"].forEach((e=>{const n=t[e].bind(t),s="equals"===e?i:r;this[e]=s(n)})),Object.assign(this,{dynamic:t.dynamic,name:t.name,pattern:t.pattern,inherit:t.inherit,raw:t.raw,is:r(t.is.bind(t),!0),$arrayMode:e})}class yc{constructor(){this.enqueue=!0,this.typeQueue=[],this.defaultTypes=Ka(yc.prototype,["hash","string","query","path","int","bool","date","json","any"]);this.types=Ba(Ja(this.defaultTypes,((t,e)=>new gc(Object.assign({name:e},t)))),{})}type(t,e,n){if(!v(e))return this.types[t];if(Object.prototype.hasOwnProperty.call(this.types,t))throw new Error(`A type named '${t}' has already been defined.`);return this.types[t]=new gc(Object.assign({name:t},e)),n&&(this.typeQueue.push({name:t,def:n}),this.enqueue||this._flushTypeQueue()),this}_flushTypeQueue(){for(;this.typeQueue.length;){const t=this.typeQueue.shift();if(t.pattern)throw new Error("You cannot override a type's .pattern at runtime.");Object.assign(this.types[t.name],qa.$injector.invoke(t.def))}}}!function(){const t=t=>{const e=t=>null!=t?t.toString():t,n={encode:e,decode:e,is:La(String),pattern:/.*/,equals:(t,e)=>t==e};return Object.assign({},n,t)};Object.assign(yc.prototype,{string:t({}),path:t({pattern:/[^/]*/}),query:t({}),hash:t({inherit:!1}),int:t({decode:t=>parseInt(t,10),is:function(t){return!fc(t)&&this.decode(t.toString())===t},pattern:/-?\d+/}),bool:t({encode:t=>t?1:0,decode:t=>0!==parseInt(t,10),is:La(Boolean),pattern:/0|1/}),date:t({encode:function(t){return this.is(t)?[t.getFullYear(),("0"+(t.getMonth()+1)).slice(-2),("0"+t.getDate()).slice(-2)].join("-"):void 0},decode:function(t){if(this.is(t))return t;const e=this.capture.exec(t);return e?new Date(e[1],e[2]-1,e[3]):void 0},is:t=>t instanceof Date&&!isNaN(t.valueOf()),equals:(t,e)=>["getFullYear","getMonth","getDate"].reduce(((n,r)=>n&&t[r]()===e[r]()),!0),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:t({encode:JSON.stringify,decode:JSON.parse,is:La(Object),equals:Ha,pattern:/[^/]*/}),any:t({encode:t=>t,decode:t=>t,is:()=>!0,equals:Ha})})}();class bc{constructor(){this.paramTypes=new yc,this._isCaseInsensitive=!1,this._isStrictMode=!0,this._defaultSquashPolicy=!1;const t=this.type("path");t.encode=t=>null!=t?t.toString().replace(/(~|\/)/g,(t=>({"~":"~~","/":"~2F"}[t]))):t,t.decode=t=>null!=t?t.toString().replace(/(~~|~2F)/g,(t=>({"~~":"~","~2F":"/"}[t]))):t,this.paramTypes.enqueue=!1,this.paramTypes._flushTypeQueue()}$get=[function(){return this}];caseInsensitive(t){return this._isCaseInsensitive=v(t)?t:this._isCaseInsensitive}defaultSquashPolicy(t){if(v(t)&&!0!==t&&!1!==t&&!b(t))throw new Error(`Invalid squash policy: ${t}. Valid policies: false, true, arbitrary-string`);return this._defaultSquashPolicy=v(t)?t:this._defaultSquashPolicy}strictMode(t){return this._isStrictMode=v(t)?t:this._isStrictMode}type(t,e,n){const r=this.paramTypes.type(t,e,n);return v(e)?this:r}}class wc{constructor(t={}){Object.assign(this,t)}$inherit(t,e,n){const r=function(t,e){const n=[];for(const r in t.path){if(t.path[r]!==e.path[r])break;n.push(t.path[r])}return n}(e,n),i={},s=[];for(const t in r){if(!r[t]||!r[t].params)continue;const e=r[t].params,n=Object.keys(e);if(n.length)for(const t in n)0==e[n[t]].inherit||s.indexOf(n[t])>=0||(s.push(n[t]),i[n[t]]=this[n[t]])}return Object.assign({},i,t)}}class Ec{constructor(t=[],e=null){this._items=t,this._limit=e,this._evictListeners=[],this.onEvict=Wa(this._evictListeners)}enqueue(t){const e=this._items;return e.push(t),this._limit&&e.length>this._limit&&this.evict(),t}evict(){const t=this._items.shift();return this._evictListeners.forEach((e=>e(t))),t}dequeue(){if(this.size())return this._items.splice(0,1)[0]}clear(){const t=this._items;return this._items=[],t}size(){return this._items.length}remove(t){const e=this._items.indexOf(t);return e>-1&&this._items.splice(e,1)[0]}peekTail(){return this._items[this._items.length-1]}peekHead(){if(this.size())return this._items[0]}}class Cc{constructor(){this.params=new wc,this.lastStartedTransitionId=-1,this.transitionHistory=new Ec([],1),this.successfulTransitions=new Ec([],1)}$get=[()=>this]}function Oc(t,e){return e.length<=t?e:e.substring(0,t-3)+"..."}function Sc(t){return t.replace(/^([A-Z])/,(t=>t.toLowerCase())).replace(/([A-Z])/g,(t=>"-"+t.toLowerCase()))}function xc(t){const e=Ac(t),n=e.match(/^(function [^ ]+\([^)]*\))/),r=n?n[1]:e,i=t.name||"";return i&&r.match(/function \(/)?"function "+i+r.substring(9):r}function Ac(t){const e=Array.isArray(t)?t.slice(-1)[0]:t;return e&&e.toString()||"undefined"}function kc(t){const e=[],n=Ua([[g,Ia("undefined")],[pc,Ia("null")],[mc,Ia("[Promise]")],[t=>t&&"function"==typeof t.then&&"Rejection"==t.constructor.name,t=>t._transitionRejection.toString()],[t=>y(t)&&!Array.isArray(t)&&t.constructor!==Object&&O(t.toString),t=>t.toString()],[$c,xc],[Ia(!0),t=>t]]);function r(t){if(y(t)){if(-1!==e.indexOf(t))return"[circular ref]";e.push(t)}return n(t)}return g(t)?r(t):JSON.stringify(t,((t,e)=>r(e))).replace(/\\"/g,'"')}function _c(t,e){return b(lc(t))&&b(e)?t.slice(0,-1).concat(lc(t)+e):rc(t,e)}function Tc(t){if(!t)return"ui-view (defunct)";const e=t.creationContext?t.creationContext.name||"(root)":"(none)";return`[ui-view#${t.id} ${t.$type}:${t.fqn} (${t.name}@${e})]`}function jc(t){return w(t)?Vc[t]:Vc[Vc[t]]}var Vc;!function(t){t[t.RESOLVE=0]="RESOLVE",t[t.TRANSITION=1]="TRANSITION",t[t.HOOK=2]="HOOK",t[t.UIVIEW=3]="UIVIEW",t[t.VIEWCONFIG=4]="VIEWCONFIG"}(Vc||(Vc={}));const Nc=Da("$id"),Rc=Da("router.$id"),Pc=t=>`Transition #${Nc(t)}-${Rc(t)}`;const Dc=new class{constructor(){this._enabled={},this.approximateDigests=0}_set(t,e){e.length||(e=Object.keys(Vc).map((t=>parseInt(t,10))).filter((t=>!isNaN(t))).map((t=>Vc[t]))),e.map(jc).forEach((e=>this._enabled[e]=t))}enable(...t){this._set(!0,t)}disable(...t){this._set(!1,t)}enabled(t){return!!this._enabled[jc(t)]}traceTransitionStart(t){this.enabled(Vc.TRANSITION)&&console.log(`${Pc(t)}: Started -> ${kc(t)}`)}traceTransitionIgnored(t){this.enabled(Vc.TRANSITION)&&console.log(`${Pc(t)}: Ignored <> ${kc(t)}`)}traceHookInvocation(t,e,n){if(!this.enabled(Vc.HOOK))return;const r=Da("traceData.hookType")(n)||"internal",i=Da("traceData.context.state.name")(n)||Da("traceData.context")(n)||"unknown",s=xc(t.registeredHook.callback);console.log(`${Pc(e)}: Hook -> ${r} context: ${i}, ${Oc(200,s)}`)}traceHookResult(t,e){this.enabled(Vc.HOOK)&&console.log(`${Pc(e)}: <- Hook returned: ${Oc(200,kc(t))}`)}traceResolvePath(t,e,n){this.enabled(Vc.RESOLVE)&&console.log(`${Pc(n)}: Resolving ${t} (${e})`)}traceResolvableResolved(t,e){this.enabled(Vc.RESOLVE)&&console.log(`${Pc(e)}: <- Resolved ${t} to: ${Oc(200,kc(t.data))}`)}traceError(t,e){this.enabled(Vc.TRANSITION)&&console.log(`${Pc(e)}: <- Rejected ${kc(e)}, reason: ${t}`)}traceSuccess(t,e){this.enabled(Vc.TRANSITION)&&console.log(`${Pc(e)}: <- Success ${kc(e)}, final state: ${t.name}`)}traceUIViewEvent(t,e,n=""){this.enabled(Vc.UIVIEW)&&console.log(`ui-view: ${function(t,e){for(;e.length<t;)e+=" ";return e}(30,t)} ${Tc(e)}${n}`)}traceUIViewConfigUpdated(t,e){this.enabled(Vc.UIVIEW)&&this.traceUIViewEvent("Updating",t,` with ViewConfig from context='${e}'`)}traceUIViewFill(t,e){this.enabled(Vc.UIVIEW)&&this.traceUIViewEvent("Fill",t,` with: ${Oc(200,e)}`)}traceViewSync(t){if(!this.enabled(Vc.VIEWCONFIG))return;const e="uiview component fqn",n="view config state (view name)",r=t.map((({ngView:t,viewConfig:r})=>{const i=t&&t.fqn,s=r&&`${r.viewDecl.$context.name}: (${r.viewDecl.$name})`;return{[e]:i,[n]:s}})).sort(((t,n)=>(t[e]||"").localeCompare(n[e]||"")));console.table(r)}traceViewServiceEvent(t,e){this.enabled(Vc.VIEWCONFIG)&&console.log(`VIEWCONFIG: ${t} ${(t=>{const e=t.viewDecl,n=e.$context.name||"(root)";return`[View#${t.$id} from '${n}' state]: target ui-view: '${e.$ngViewName}@${e.$ngViewContextAnchor}'`})(e)}`)}traceViewServiceUIViewEvent(t,e){this.enabled(Vc.VIEWCONFIG)&&console.log(`VIEWCONFIG: ${t} ${Tc(e)}`)}};let Mc="LAZY",Lc="WAIT";class Ic{constructor(t,e,n,r,i){this.resolved=!1,this.promise=void 0,t instanceof Ic?Object.assign(this,t):O(e)?(it(!fc(t),"token argument is required"),this.token=t,this.policy=r,this.resolveFn=e,this.deps=n||[],this.data=i,this.resolved=void 0!==i,this.promise=this.resolved?qa.$q.resolve(this.data):void 0):y(t)&&t.token&&(Object.prototype.hasOwnProperty.call(t,"resolveFn")||Object.prototype.hasOwnProperty.call(t,"data"))&&(this.token=t.token,this.resolveFn=t.resolveFn,this.deps=t.deps,this.policy=t.policy,this.data=t.data)}getPolicy(t){const e=this.policy||{},n=t&&t.resolvePolicy||{};return{when:e.when||n.when||Mc,async:e.async||n.async||Lc}}resolve(t,e){const n=qa.$q,r=t.findNode(this),i=r&&r.state,s=this.getPolicy(i).async,o=O(s)?s:t=>t;return this.promise=n.resolve().then((()=>n.all(t.getDependencies(this).map((n=>n.get(t,e)))))).then((t=>this.resolveFn.apply(null,t))).then(o).then((t=>(this.data=t,this.resolved=!0,this.resolveFn=null,Dc.traceResolvableResolved(this,e),this.data)))}get(t,e){return this.promise||this.resolve(t,e)}toString(){return`Resolvable(token: ${kc(this.token)}, requires: [${this.deps.map(kc)}])`}clone(){return new Ic(this)}}Ic.fromData=(t,e)=>new Ic(t,(()=>e),null,null,e);class Uc{constructor(t,e,n,r){this._stateRegistry=t,this._identifier=e,this._identifier=e,this._params=Object.assign({},n||{}),this._options=Object.assign({},r||{}),this._definition=t.matcher.find(e,this._options.relative)}name(){return this._definition&&this._definition.name||this._identifier}identifier(){return this._identifier}params(){return this._params}$state(){return this._definition}state(){return this._definition&&this._definition.self}options(){return this._options}exists(){return!(!this._definition||!this._definition.self)}valid(){return!this.error()}error(){const t=this.options().relative;if(!this._definition&&t){const e=t.name?t.name:t;return`Could not resolve '${this.name()}' from state '${e}'`}return this._definition?this._definition.self?void 0:`State '${this.name()}' has an invalid definition`:`No such state '${this.name()}'`}toString(){return`'${this.name()}'${kc(this.params())}`}withState(t){return new Uc(this._stateRegistry,t,this._params,this._options)}withParams(t,e=!1){const n=e?t:Object.assign({},this._params,t);return new Uc(this._stateRegistry,this._identifier,n,this._options)}withOptions(t,e=!1){const n=e?t:Object.assign({},this._options,t);return new Uc(this._stateRegistry,this._identifier,this._params,n)}}Uc.isDef=t=>t&&t.state&&(b(t.state)||y(t.state)&&b(t.state.name));const qc=t=>0===["value","type","squash","array","dynamic"].filter(Object.prototype.hasOwnProperty.bind(t||{})).length;var Hc;function Fc(t,e,n){const r=!1===n.reloadOnSearch&&e===Hc.SEARCH||void 0,i=Za([n.dynamic,r],v),s=v(i)?{dynamic:i}:{},o=function(t){function e(){return t.value}t=qc(t)?{value:t}:t,e.__cacheable=!0;const n=$c(t.value)?t.value:e;return Object.assign(t,{$$fn:n})}(n&&n.params&&n.params[t]);return Object.assign(s,o)}!function(t){t[t.PATH=0]="PATH",t[t.SEARCH=1]="SEARCH",t[t.CONFIG=2]="CONFIG"}(Hc||(Hc={}));class Bc{constructor(t,e,n,r,i){const s=Fc(t,n,i);e=function(t,e,n,r,i){if(t.type&&e&&"string"!==e.name)throw new Error(`Param '${r}' has two type configurations.`);if(t.type&&e&&"string"===e.name&&i.type(t.type))return i.type(t.type);if(e)return e;if(!t.type){const t=n===Hc.CONFIG?"any":n===Hc.PATH?"path":n===Hc.SEARCH?"query":"string";return i.type(t)}return t.type instanceof gc?t.type:i.type(t.type)}(s,e,n,t,r.paramTypes);const o=function(){const e={array:n===Hc.SEARCH&&"auto"},r=t.match(/\[\]$/)?{array:!0}:{};return Object.assign(e,r,s).array}();e=o?e.$asArray(o,n===Hc.SEARCH):e;const a=void 0!==s.value||n===Hc.SEARCH,c=v(s.dynamic)?!!s.dynamic:!!e.dynamic,l=v(s.raw)?!!s.raw:!!e.raw,u=function(t,e,n){const r=t.squash;if(!e||!1===r)return!1;if(!v(r)||null==r)return n;if(!0===r||b(r))return r;throw new Error(`Invalid squash policy: '${r}'. Valid policies: false, true, or arbitrary string`)}(s,a,r.defaultSquashPolicy()),h=function(t,e,n,r){const i=[{from:"",to:n||e?void 0:""},{from:null,to:n||e?void 0:""}],s=Array.isArray(t.replace)?t.replace:[];b(r)&&s.push({from:r,to:void 0});const o=Ja(s,(t=>t.from));return Qa(i,(t=>-1===o.indexOf(t.from))).concat(s)}(s,o,a,u),d=v(s.inherit)?!!s.inherit:!!e.inherit;this.isOptional=a,this.type=e,this.location=n,this.id=t,this.dynamic=c,this.raw=l,this.squash=u,this.replace=h,this.inherit=d,this.array=o,this.config=s}isDefaultValue(t){return this.isOptional&&this.type.equals(this.value(),t)}value(t){return t=(t=>{for(const e of this.replace)if(e.from===t)return e.to;return t})(t),g(t)?(()=>{if(this._defaultValueCache)return this._defaultValueCache.defaultValue;if(!qa.$injector)throw new Error("Injectable functions cannot be called at configuration time");const t=qa.$injector.invoke(this.config.$$fn);if(null!=t&&!this.type.is(t))throw new Error(`Default value (${t}) for parameter '${this.id}' is not an instance of ParamType (${this.type.name})`);return this.config.$$fn.__cacheable&&(this._defaultValueCache={defaultValue:t}),t})():this.type.$normalize(t)}isSearch(){return this.location===Hc.SEARCH}validates(t){if((g(t)||null===t)&&this.isOptional)return!0;const e=this.type.$normalize(t);if(!this.type.is(e))return!1;const n=this.type.encode(e);return!(b(n)&&!this.type.pattern.exec(n))}toString(){return`{Param:${this.id} ${this.type} squash: '${this.squash}' optional: ${this.isOptional}}`}static values(t,e={}){const n={};for(const r of t)n[r.id]=r.value(e[r.id]);return n}static changed(t,e={},n={}){return t.filter((t=>!t.type.equals(e[t.id],n[t.id])))}static equals(t,e={},n={}){return 0===Bc.changed(t,e,n).length}static validates(t,e={}){return t.map((t=>t.validates(e[t.id]))).reduce(Xa,!0)}}class zc{constructor(t){if(t instanceof zc){const e=t;this.state=e.state,this.paramSchema=e.paramSchema.slice(),this.paramValues=Object.assign({},e.paramValues),this.resolvables=e.resolvables.slice(),this.views=e.views&&e.views.slice()}else{const e=t;this.state=e,this.paramSchema=e.parameters({inherit:!1}),this.paramValues={},this.resolvables=e.resolvables.map((t=>t.clone()))}}clone(){return new zc(this)}applyRawParams(t){return this.paramValues=this.paramSchema.reduce(((e,n)=>{return cc(e,[(r=n).id,r.value(t[r.id])]);var r}),{}),this}parameter(t){return Za(this.paramSchema,Pa("id",t))}equals(t,e){const n=this.diff(t,e);return n&&0===n.length}diff(t,e){if(this.state!==t.state)return!1;const n=e?e(this):this.paramSchema;return Bc.changed(n,this.paramValues,t.paramValues)}}class Wc{static buildPath(t){const e=t.params();return t.$state().path.map((t=>new zc(t).applyRawParams(e)))}static buildToPath(t,e){const n=Wc.buildPath(e);return e.options().inherit?Wc.inheritParams(t,n,Object.keys(e.params())):n}static applyViewConfigs(t,e,n){e.filter((t=>n.includes(t.state))).forEach((n=>{const r=Object.values(n.state.views||{}),i=Wc.subPath(e,(t=>t===n)),s=r.map((e=>t.createViewConfig(i,e)));n.views=s.reduce(ec,[])}))}static inheritParams(t,e,n=[]){const r=t.map((t=>t.paramSchema)).reduce(ec,[]).filter((t=>!t.inherit)).map((t=>t.id));return e.map((function(e){let i=Object.assign({},e&&e.paramValues);const s=Ka(i,n);i=Ya(i,n);const o=Ya(function(t,e){const n=Za(t,Pa("state",e));return Object.assign({},n&&n.paramValues)}(t,e.state)||{},r),a=Object.assign(i,o,s);return new zc(e.state).applyRawParams(a)}))}static treeChanges(t,e,n){const r=Math.min(t.length,e.length);let i=0;for(;i<r&&t[i].state!==n&&(s=t[i],o=e[i],s.equals(o,Wc.nonDynamicParams));)i++;var s,o;let a,c,l,u,h;a=t,c=a.slice(0,i),l=a.slice(i);const d=c.map((function(t,n){const r=t.clone();return r.paramValues=e[n].paramValues,r}));return u=e.slice(i),h=d.concat(u),{from:a,to:h,retained:c,retainedWithToParams:d,exiting:l,entering:u}}static matching(t,e,n){let r=!1;return ac(t,e).reduce(((t,[e,i])=>(r=r||!e.equals(i,n),r?t:t.concat(e))),[])}static equals(t,e,n){return t.length===e.length&&Wc.matching(t,e,n).length===t.length}static subPath(t,e){const n=Za(t,e),r=t.indexOf(n);return-1===r?void 0:t.slice(0,r+1)}static nonDynamicParams(t){return t.state.parameters({inherit:!1}).filter((t=>!t.dynamic))}static paramValues(t){return t.reduce(((t,e)=>Object.assign(t,e.paramValues)),{})}}function Gc(t,e){return new Uc(t,e.at(-1).state,e.map((t=>t.paramValues)).reduce(((t,e)=>({...t,...e})),{}),{})}const Kc={LAZY:"LAZY",EAGER:"EAGER"},Yc=[Kc.EAGER,Kc.LAZY],Qc=[Kc.EAGER];class Zc{constructor(t){this._path=t}getTokens(){return this._path.reduce(((t,e)=>t.concat(e.resolvables.map((t=>t.token)))),[]).reduce(ic,[])}getResolvable(t){return lc(this._path.map((t=>t.resolvables)).reduce(ec,[]).filter((e=>e.token===t)))}getPolicy(t){const e=this.findNode(t);return t.getPolicy(e)}subContext(t){return new Zc(Wc.subPath(this._path,(e=>e.state===t)))}addResolvables(t,e){const n=Za(this._path,Pa("state",e)),r=t.map((t=>t.token));n.resolvables=n.resolvables.filter((t=>-1===r.indexOf(t.token))).concat(t)}resolvePath(t="LAZY",e){const n=(Yc.includes(t)?t:"LAZY")===Kc.EAGER?Qc:Yc;Dc.traceResolvePath(this._path,t,e);const r=(t,e)=>n=>t.includes(this.getPolicy(n)[e]),i=this._path.reduce(((t,i)=>{const s=i.resolvables.filter(r(n,"when")),o=s.filter(r(["NOWAIT"],"async")),a=s.filter((t=>!r(["NOWAIT"],"async")(t))),c=this.subContext(i.state),l=t=>t.get(c,e).then((e=>({token:t.token,value:e})));return o.forEach(l),t.concat(a.map(l))}),[]);return qa.$q.all(i)}injector(){return this._injector||(this._injector=new Jc)}findNode(t){return Za(this._path,(e=>e.resolvables.includes(t)))}getDependencies(t){const e=this.findNode(t),n=(Wc.subPath(this._path,(t=>t===e))||this._path).reduce(((t,e)=>t.concat(e.resolvables)),[]).filter((e=>e!==t));return t.deps.map((t=>{const e=n.filter((e=>e.token===t));if(e.length)return lc(e);const r=qa.$injector.get(t);if(g(r))throw new Error("Could not find Dependency Injection token: "+kc(t));return new Ic(t,(()=>r),[],r)}))}}class Jc{constructor(){this.native=qa.$injector}get(t){return qa.$injector.get(t)}getAsync(t){return qa.$q.resolve(qa.$injector.get(t))}getNative(t){return qa.$injector.get(t)}}const Xc=(t,e)=>t.reduce(((t,n)=>t||v(e[n])),!1);function tl(t){if(!t.parent)return{};const e=["component","bindings","componentProvider"],n=["templateProvider","templateUrl","template","notify","async"].concat(["controller","controllerProvider","controllerAs","resolveAs"]),r=e.concat(n);if(v(t.views)&&Xc(r,t))throw new Error(`State '${t.name}' has a 'views' object. It cannot also have "view properties" at the state level. Move the following properties into a view (in the 'views' object): ${r.filter((e=>v(t[e]))).join(", ")}`);const i={},s=t.views||{$default:Ka(t,r)};return Object.entries(s).forEach((([r,s])=>{if(r=r||"$default",b(s)&&(s={component:s}),s=Object.assign({},s),Xc(e,s)&&Xc(n,s))throw new Error(`Cannot combine: ${e.join("|")} with: ${n.join("|")} in stateview: '${r}@${t.name}'`);s.resolveAs=s.resolveAs||"$resolve",s.$type="ng1",s.$context=t,s.$name=r;const o=nl.normalizeUIViewTarget(s.$context,s.$name);s.$ngViewName=o.ngViewName,s.$ngViewContextAnchor=o.ngViewContextAnchor,i[r]=s})),i}let el=0;class nl{constructor(t,e,n){this.path=t,this.viewDecl=e,this.factory=n,this.component=void 0,this.template=void 0,this.$id=el++,this.loaded=!1,this.getTemplate=(t,e)=>this.component?this.factory.makeComponentTemplate(t,e,this.component,this.viewDecl.bindings):this.template}load(){const t=qa.$q,e=new Zc(this.path),n=this.path.reduce(((t,e)=>Object.assign(t,e.paramValues)),{}),r={template:t.resolve(this.factory.fromConfig(this.viewDecl,n,e)),controller:t.resolve(this.getController(e))};return t.all(r).then((t=>(Dc.traceViewServiceEvent("Loaded",this),this.controller=t.controller,Object.assign(this,t.template),this)))}getController(t){const e=this.viewDecl.controllerProvider;if(!$c(e))return this.viewDecl.controller;const n=be(e),r=Array.isArray(e)?lc(e):e;return new Ic("",r,n).get(t)}static normalizeUIViewTarget(t,e=""){const n=e.split("@");let r=n[0]||"$default",i=b(n[1])?n[1]:"^";const s=/^(\^(?:\.\^)*)\.(.*$)/.exec(r);s&&(i=s[1],r=s[2]),"!"===r.charAt(0)&&(r=r.substring(1),i="");if(/^(\^(?:\.\^)*)$/.exec(i)){const e=i.split(".").reduce((t=>t.parent),t);i=e.name}else"."===i&&(i=t.name);return{ngViewName:r,ngViewContextAnchor:i}}}class rl{constructor(){this._ngViews=[],this._viewConfigs=[],this._viewConfigFactories={},this._listeners=[],this._pluginapi={_rootViewContext:this._rootViewContext.bind(this),_viewConfigFactory:this._viewConfigFactory.bind(this),_registeredUIView:t=>Za(this._ngViews,(e=>e.id===t)),_registeredUIViews:()=>this._ngViews,_activeViewConfigs:()=>this._viewConfigs,_onSync:t=>(this._listeners.push(t),()=>za(this._listeners,t))},this._pluginapi._viewConfigFactory("ng1",function(){let t=null;return(e,n)=>(t=t||qa.$injector.get("$templateFactory"),[new nl(e,n,t)])}())}$get=[()=>this];_rootViewContext(t){return this._rootContext=t||this._rootContext}_viewConfigFactory(t,e){this._viewConfigFactories[t]=e}createViewConfig(t,e){const n=this._viewConfigFactories[e.$type];if(!n)throw new Error("ViewService: No view config factory registered for type "+e.$type);const r=n(t,e);return Array.isArray(r)?r:[r]}deactivateViewConfig(t){Dc.traceViewServiceEvent("<- Removing",t),za(this._viewConfigs,t)}activateViewConfig(t){Dc.traceViewServiceEvent("-> Registering",t),this._viewConfigs.push(t)}sync(){const t=this._ngViews.map((t=>[t.fqn,t])).reduce(cc,{});function e(t){let e=t.viewDecl.$context,n=0;for(;++n&&e.parent;)e=e.parent;return n}const n=Va(((t,e,n,r)=>e*(t(n)-t(r)))),r=this._ngViews.sort(n((function(t){const e=t=>t&&t.parent?e(t.parent)+1:1;return 1e4*t.fqn.split(".").length+e(t.creationContext)}),1)).map((r=>{const i=this._viewConfigs.filter(rl.matches(t,r));return i.length>1&&i.sort(n(e,-1)),{ngView:r,viewConfig:i[0]}})),i=r.map((t=>t.viewConfig)),s=this._viewConfigs.filter((t=>!i.includes(t))).map((t=>({ngView:void 0,viewConfig:t})));r.forEach((t=>{-1!==this._ngViews.indexOf(t.ngView)&&t.ngView.configUpdated(t.viewConfig)}));const o=r.concat(s);this._listeners.forEach((t=>t(o))),Dc.traceViewSync(o)}registerUIView(t){Dc.traceViewServiceUIViewEvent("-> Registering",t);const e=this._ngViews;return e.filter((e=>e.fqn===t.fqn&&e.$type===t.$type)).length&&Dc.traceViewServiceUIViewEvent("!!!! duplicate ngView named:",t),e.push(t),this.sync(),()=>{-1!==e.indexOf(t)?(Dc.traceViewServiceUIViewEvent("<- Deregistering",t),za(e)(t)):Dc.traceViewServiceUIViewEvent("Tried removing non-registered ngView",t)}}available(){return this._ngViews.map((t=>t.fqn))}active(){return this._ngViews.filter((t=>t.$config)).map((t=>t.name))}}rl.matches=(t,e)=>n=>{if(e.$type!==n.viewDecl.$type)return!1;const r=n.viewDecl,i=r.$ngViewName.split("."),s=e.fqn.split(".");if(!Ha(i,s.slice(0-i.length)))return!1;const o=1-i.length||void 0,a=s.slice(0,o).join("."),c=t[a].creationContext;return r.$ngViewContextAnchor===(c&&c.name)};const il={CREATE:0,BEFORE:1,RUN:2,SUCCESS:3,ERROR:4},sl={TRANSITION:0,STATE:1},ol=2,al=3,cl=4,ll=5,ul=6;let hl=0;class dl{static superseded(t,e){const n=new dl(ol,"The transition has been superseded by a different transition",t);return e&&e.redirected&&(n.redirected=!0),n}static redirected(t){return dl.superseded(t,{redirected:!0})}static invalid(t){return new dl(cl,"This transition is invalid",t)}static ignored(t){return new dl(ll,"The transition was ignored",t)}static aborted(t){return new dl(al,"The transition has been aborted",t)}static errored(t){return new dl(ul,"The transition errored",t)}static normalize(t){return La(dl)(t)?t:dl.errored(t)}constructor(t,e,n){this.$id=hl++,this.type=t,this.message=e,this.detail=n,this.redirected=!1}toString(){const t=(e=this.detail)&&e.toString!==Object.prototype.toString?e.toString():kc(e);var e;const{$id:n,type:r,message:i}=this;return`Transition Rejection($id: ${n} type: ${r}, message: ${i}, detail: ${t})`}toPromise(){return Object.assign(dc(this),{_transitionRejection:this})}}class pl{constructor(t=!1){this.disposed=!1,this.key=1,this.pendingKeys=[],this.publishDepth=0,this.subscriptions=[],this.topics={},this.async_=Boolean(t)}subscribe(t,e,n=null){let r=this.topics[t];r||(r=this.topics[t]=[]);const i=this.key;return this.subscriptions[i]=t,this.subscriptions[i+1]=e,this.subscriptions[i+2]=n,this.key=i+3,r.push(i),i}subscribeOnce(t,e,n=null){let r=!1;const i=this.subscribe(t,((...t)=>{r||(r=!0,this.unsubscribeByKey(i),e.apply(n,t))}),this);return i}static runAsync_(t,e,n){setTimeout((()=>{t.apply(e,n)}),0)}unsubscribe(t,e,n=null){const r=this.topics[t];if(r){const t=this.subscriptions,i=r.find((r=>t[r+1]===e&&t[r+2]===n));if(void 0!==i)return this.unsubscribeByKey(i)}return!1}unsubscribeByKey(t){const e=this.subscriptions[t];if(e){let n=this.topics[e];0!==this.publishDepth?(this.pendingKeys.push(t),this.subscriptions[t+1]=()=>{}):(n&&(this.topics[e]=n.filter((e=>e!==t))),delete this.subscriptions[t],delete this.subscriptions[t+1],delete this.subscriptions[t+2])}return!!e}publish(t,...e){const n=this.topics[t];if(n){const t=e;if(this.async_)for(let e=0;e<n.length;e++){const r=n[e];pl.runAsync_(this.subscriptions[r+1],this.subscriptions[r+2],t)}else{this.publishDepth++;try{for(let e=0,r=n.length;e<r&&!this.isDisposed();e++){const r=n[e];this.subscriptions[r+1].apply(this.subscriptions[r+2],t)}}finally{if(this.publishDepth--,this.pendingKeys.length>0&&0===this.publishDepth){let t;for(;t=this.pendingKeys.pop();)this.unsubscribeByKey(t)}}}return!0}return!1}clear(t){if(t){const e=this.topics[t];e&&(e.forEach(this.unsubscribeByKey,this),delete this.topics[t])}else this.subscriptions.length=0,this.topics={}}getCount(t){if(t){const e=this.topics[t];return e?e.length:0}let e=0;for(const t in this.topics)e+=this.getCount(t);return e}isDisposed(){return this.disposed}dispose(){this.clear(),this.pendingKeys.length=0,this.disposed=!0}}const fl=new pl(!0),$l={current:()=>{},transition:null,traceData:{},bind:null};class ml{static chain(t,e){return t.reduce(((t,e)=>t.then((()=>e.invokeHook()))),e||qa.$q.resolve())}static invokeHooks(t,e){for(let n=0;n<t.length;n++){const r=t[n].invokeHook();if(mc(r)){const i=t.slice(n+1);return ml.chain(i,r).then(e)}}return e()}static runAllHooks(t){t.forEach((t=>t.invokeHook()))}constructor(t,e,n,r){this.transition=t,this.stateContext=e,this.registeredHook=n,this.options=r,this.isSuperseded=()=>this.type.hookPhase===il.RUN&&!this.options.transition.isActive(),this.options=Ga(r,$l),this.type=n.eventType}logError(t){fl.publish("$stateService:defaultErrorHandler",t)}invokeHook(){const t=this.registeredHook;if(t._deregistered)return;const e=this.getNotCurrentRejection();if(e)return e;const n=this.options;Dc.traceHookInvocation(this,this.transition,n);const r=()=>t.callback.call(n.bind,this.transition,this.stateContext),i=t=>dl.normalize(t).toPromise(),s=e=>t.eventType.getErrorHandler(this)(e),o=e=>t.eventType.getResultHandler(this)(e);try{const t=r();return!this.type.synchronous&&mc(t)?t.catch(i).then(o,s):o(t)}catch(t){return s(dl.normalize(t))}finally{t.invokeLimit&&++t.invokeCount>=t.invokeLimit&&t.deregister()}}handleHookResult(t){const e=this.getNotCurrentRejection();return e||(mc(t)?t.then((t=>this.handleHookResult(t))):(Dc.traceHookResult(t,this.transition),!1===t?dl.aborted("Hook aborted transition").toPromise():t instanceof Uc?dl.redirected(t).toPromise():void 0))}getNotCurrentRejection(){return this.transition._aborted?dl.aborted().toPromise():this.isSuperseded()?dl.superseded(this.options.current()).toPromise():void 0}toString(){const{options:t,registeredHook:e}=this;return`${Da("traceData.hookType")(t)||"internal"} context: ${Da("traceData.context.state.name")(t)||Da("traceData.context")(t)||"unknown"}, ${Oc(200,Ac(e.callback))}`}}ml.HANDLE_RESULT=t=>e=>t.handleHookResult(e),ml.LOG_REJECTED_RESULT=t=>e=>{mc(e)&&e.catch((e=>t.logError(dl.normalize(e))))},ml.LOG_ERROR=t=>e=>t.logError(e),ml.REJECT_ERROR=()=>t=>dc(t),ml.THROW_ERROR=()=>t=>{throw t};class gl{static is(t){return!!/[!,*]+/.exec(t)}static fromString(t){return gl.is(t)?new gl(t):null}constructor(t){this.text=t,this.glob=t.split(".");const e=this.text.split(".").map((t=>"**"===t?"(?:|(?:\\.[^.]*)*)":"*"===t?"\\.[^.]*":"\\."+t)).join("");this.regexp=new RegExp("^"+e+"$")}matches(t){return this.regexp.test("."+t)}}function vl(t,e,n){const r=b(e)?[e]:e;return!!(O(r)?r:function(t){const e=r;for(let n=0;n<e.length;n++){const r=new gl(e[n]);if(r&&r.matches(t.name)||!r&&e[n]===t.name)return!0}return!1})(t,n)}class yl{constructor(t,e,n,r,i,s={}){this.tranSvc=t,this.eventType=e,this.callback=n,this.matchCriteria=r,this.removeHookFromRegistry=i,this.invokeCount=0,this._deregistered=!1,this.priority=s.priority||0,this.bind=s.bind||null,this.invokeLimit=s.invokeLimit}_matchingNodes(t,e,n){if(!0===e)return t;const r=t.filter((t=>vl(t.state,e,n)));return r.length?r:null}_getDefaultMatchCriteria(){return Ja(this.tranSvc._pluginapi._getPathTypes(),(()=>!0))}_getMatchingNodes(t,e){const n=Object.assign(this._getDefaultMatchCriteria(),this.matchCriteria);return Object.values(this.tranSvc._pluginapi._getPathTypes()).reduce(((r,i)=>{const s=i.scope===sl.STATE,o=t[i.name]||[],a=s?o:[lc(o)];return r[i.name]=this._matchingNodes(a,n[i.name],e),r}),{})}matches(t,e){const n=this._getMatchingNodes(t,e);return Object.values(n).every((t=>t))?n:null}deregister(){this.removeHookFromRegistry(this),this._deregistered=!0}}function bl(t,e,n){const r=(t._registeredHooks=t._registeredHooks||{})[n.name]=[],i=za(r);function s(t,s,o={}){const a=new yl(e,n,s,t,i,o);return r.push(a),a.deregister.bind(a)}return t[n.name]=s,s}class wl{constructor(t){this.transition=t}buildHooksForPhase(t){return this.transition.transitionService._pluginapi._getEvents(t).map((t=>this.buildHooks(t))).reduce(ec,[]).filter(Boolean)}buildHooks(t){const e=this.transition,n=e.treeChanges(),r=this.getMatchingHooks(t,n,e);if(!r)return[];const i={transition:e,current:e.options().current};return r.map((r=>r.matches(n,e)[t.criteriaMatchPath.name].map((n=>{const s=Object.assign({bind:r.bind,traceData:{hookType:t.name,context:n}},i),o=t.criteriaMatchPath.scope===sl.STATE?n.state.self:null,a=new ml(e,o,r,s);return{hook:r,node:n,transitionHook:a}})))).reduce(ec,[]).sort(function(t=!1){return function(e,n){const r=t?-1:1,i=(e.node.state.path.length-n.node.state.path.length)*r;return 0!==i?i:n.hook.priority-e.hook.priority}}(t.reverseSort)).map((t=>t.transitionHook))}getMatchingHooks(t,e,n){const r=t.hookPhase===il.CREATE,i=this.transition.transitionService;return(r?[i]:[this.transition,i]).map((e=>e.getHooks(t.name))).filter(oc(Array.isArray,`broken event named: ${t.name}`)).reduce(ec,[]).filter((t=>t.matches(e,n)))}}class El{constructor(t,e,n,r){if(this.globals=r,this.transitionService=n,this._deferred=qa.$q.defer(),this.promise=this._deferred.promise,this._registeredHooks={},this._hookBuilder=new wl(this),this.isActive=()=>this.globals.transition===this,this._targetState=e,!e.valid())throw new Error(e.error());this._options=Object.assign({current:Ia(this)},e.options()),this.$id=n._transitionCount++;const i=Wc.buildToPath(t,e);this._treeChanges=Wc.treeChanges(t,i,this._options.reloadState),this.createTransitionHookRegFns();const s=this._hookBuilder.buildHooksForPhase(il.CREATE);ml.invokeHooks(s,(()=>null)),this.applyViewConfigs()}createTransitionHookRegFns(){this.transitionService._pluginapi._getEvents().filter((t=>t.hookPhase!==il.CREATE)).forEach((t=>bl(this,this.transitionService,t)))}getHooks(t){return this._registeredHooks[t]}applyViewConfigs(){const t=this._treeChanges.entering.map((t=>t.state));Wc.applyViewConfigs(this.transitionService.$view,this._treeChanges.to,t)}$from(){return lc(this._treeChanges.from).state}$to(){return lc(this._treeChanges.to).state}from(){return this.$from().self}to(){return this.$to().self}targetState(){return this._targetState}is(t){return t instanceof El?this.is({to:t.$to().name,from:t.$from().name}):!(t.to&&!vl(this.$to(),t.to,this)||t.from&&!vl(this.$from(),t.from,this))}params(t="to"){return Object.freeze(this._treeChanges[t].map((t=>t.paramValues)).reduce(((t,e)=>({...t,...e})),{}))}paramsChanged(){const t=this.params("from"),e=this.params("to"),n=[].concat(this._treeChanges.to).concat(this._treeChanges.from).map((t=>t.paramSchema)).reduce(nc,[]).reduce(ic,[]);return Bc.changed(n,t,e).reduce(((t,n)=>(t[n.id]=e[n.id],t)),{})}injector(t,e="to"){let n=this._treeChanges[e];return t&&(n=Wc.subPath(n,(e=>e.state===t||e.state.name===t))),new Zc(n).injector()}getResolveTokens(t="to"){return new Zc(this._treeChanges[t]).getTokens()}addResolvable(t,e){t=La(Ic)(t)?t:new Ic(t);const n="string"==typeof e?e:e.name,r=this._treeChanges.to,i=Za(r,(t=>t.state.name===n));it(!!i,`targetNode not found ${n}`);new Zc(r).addResolvables([t],i.state)}redirectedFrom(){return this._options.redirectedFrom||null}originalTransition(){const t=this.redirectedFrom();return t&&t.originalTransition()||this}options(){return this._options}entering(){return Ja(this._treeChanges.entering,(t=>t.state)).map((t=>t.self))}exiting(){return Ja(this._treeChanges.exiting,(t=>t.state)).map((t=>t.self)).reverse()}retained(){return Ja(this._treeChanges.retained,(t=>t.state)).map((t=>t.self))}views(t="entering",e){let n=this._treeChanges[t];return n=e?n.filter(Pa("state",e)):n,n.map((t=>t.views)).reduce(ec,[])}treeChanges(t){return t?this._treeChanges[t]:this._treeChanges}redirect(t){let e=1,n=this;for(;null!=(n=n.redirectedFrom());)if(++e>20)throw new Error("Too many consecutive Transition redirects (20+)");const r={redirectedFrom:this,source:"redirect"};"url"===this.options().source&&!1!==t.options().location&&(r.location="replace");const i=Object.assign({},this.options(),t.options(),r);t=t.withOptions(i,!0);const s=this.transitionService.create(this._treeChanges.from,t),o=this._treeChanges.entering,a=s._treeChanges.entering;return Wc.matching(a,o,Wc.nonDynamicParams).filter((e=>{return!(n=t.options().reloadState,t=>n&&t.state.includes[n.name])(e);var n})).forEach(((t,e)=>{t.resolvables=o[e].resolvables})),s}_changedParams(){const t=this._treeChanges;if(this._options.reload)return;if(t.exiting.length||t.entering.length)return;if(t.to.length!==t.from.length)return;if(ac(t.to,t.from).map((t=>t[0].state!==t[1].state)).reduce(tc,!1))return;const e=t.to.map((t=>t.paramSchema)),[n,r]=[t.to,t.from].map((t=>t.map((t=>t.paramValues))));return ac(e,n,r).map((([t,e,n])=>Bc.changed(t,e,n))).reduce(ec,[])}dynamic(){const t=this._changedParams();return!!t&&t.map((t=>t.dynamic)).reduce(tc,!1)}ignored(){return!!this._ignoredReason()}_ignoredReason(){const t=this.globals.transition,e=this._options.reloadState,n=(t,n)=>{if(t.length!==n.length)return!1;const r=Wc.matching(t,n);return t.length===r.filter((t=>!e||!t.state.includes[e.name])).length},r=this.treeChanges(),i=t&&t.treeChanges();return i&&n(i.to,r.to)&&n(i.exiting,r.exiting)?"SameAsPending":0===r.exiting.length&&0===r.entering.length&&n(r.from,r.to)?"SameAsCurrent":void 0}run(){const t=ml.runAllHooks,e=t=>this._hookBuilder.buildHooksForPhase(t),n=e(il.BEFORE);return ml.invokeHooks(n,(()=>{const t=this.globals;return t.lastStartedTransitionId=this.$id,t.transition=this,t.transitionHistory.enqueue(this),Dc.traceTransitionStart(this),qa.$q.resolve(void 0)})).then((()=>{const t=e(il.RUN);return ml.invokeHooks(t,(()=>qa.$q.resolve(void 0)))})).then((()=>{Dc.traceSuccess(this.$to(),this),this.success=!0,this._deferred.resolve(this.to()),t(e(il.SUCCESS))}),(n=>{Dc.traceError(n,this),this.success=!1,this._deferred.reject(n),this._error=n,t(e(il.ERROR))})),this.promise}valid(){return!this.error()||void 0!==this.success}abort(){g(this.success)&&(this._aborted=!0)}error(){const t=this.$to();if(t.self.abstract)return dl.invalid(`Cannot transition to abstract state '${t.name}'`);const e=t.parameters(),n=this.params(),r=e.filter((t=>!t.validates(n[t.id])));if(r.length){const e=r.map((t=>`[${t.id}:${kc(n[t.id])}]`)).join(", "),i=`The following parameter values are not valid for state '${t.name}': ${e}`;return dl.invalid(i)}return!1===this.success?this._error:void 0}toString(){const t=this.from(),e=this.to(),n=t=>null!==t["#"]&&void 0!==t["#"]?t:Ya(t,["#"]);return`Transition#${this.$id}( '${y(t)?t.name:t}'${kc(n(this._treeChanges.from.map((t=>t.paramValues)).reduce(((t,e)=>({...t,...e})),{})))} -> ${this.valid()?"":"(X) "}'${y(e)?e.name:e}'${kc(n(this.params()))} )`}}El.diToken=El;const Cl=["$transition$",El];function Ol(t){const e=Object.values(t.treeChanges()).reduce(ec,[]).reduce(ic,[]),n=t=>Cl.includes(t.token)?Ic.fromData(t.token,null):t;e.forEach((t=>{t.resolvables=t.resolvables.map(n)}))}function Sl(t){return(e,n)=>(0,n.$$state()[t])(e,n)}const xl=Sl("onExit"),Al=Sl("onRetain"),kl=Sl("onEnter"),_l=1e3,Tl=t=>new Zc(t.treeChanges().to).resolvePath("EAGER",t).then((()=>{})),jl=(t,e)=>new Zc(t.treeChanges().to).subContext(e.$$state()).resolvePath("LAZY",t).then((()=>{})),Vl=t=>new Zc(t.treeChanges().to).resolvePath("LAZY",t).then((()=>{})),Nl=t=>{const e=qa.$q,n=t.views("entering");if(n.length)return e.all(n.map((t=>e.resolve(t.load())))).then((()=>{}))},Rl=t=>{const e=t.globals,n=()=>{e.transition===t&&(e.transition=null)};t.onSuccess({},(()=>{e.successfulTransitions.enqueue(t),e.$current=t.$to(),e.current=e.$current.self,uc(t.params(),e.params)}),{priority:1e4}),t.promise.then(n,n)};function Pl(t,e,n,r){return t.onBefore({entering:t=>!!t.lazyLoad},(t=>{const i=t.entering().filter((t=>!!t.$$state().lazyLoad)).map((e=>Dl(t,e,r)));return qa.$q.all(i).then((function(){if("url"!==t.originalTransition().options().source){const n=t.targetState();return e.target(n.identifier(),n.params(),n.options())}const r=n.match(n.parts()),i=r&&r.rule;if(i&&"STATE"===i.type){const n=i.state,s=r.match;return e.target(n,s,t.options())}n.sync()}))}))}function Dl(t,e,n){const r=e.$$state().lazyLoad;let i=r._promise;if(!i){const s=t=>(delete e.lazyLoad,delete e.$$state().lazyLoad,delete r._promise,t),o=t=>(delete r._promise,qa.$q.reject(t));i=r._promise=qa.$q.resolve(r(t,e)).then((function(t){t&&Array.isArray(t.states)&&t.states.forEach((t=>n.register(t)));return t})).then(s,o)}return i}class Ml{constructor(t,e,n,r,i=!1,s=ml.HANDLE_RESULT,o=ml.REJECT_ERROR,a=!1){this.name=t,this.hookPhase=e,this.hookOrder=n,this.criteriaMatchPath=r,this.reverseSort=i,this.getResultHandler=s,this.getErrorHandler=o,this.synchronous=a}}function Ll(t){const e=t._ignoredReason();if(!e)return;Dc.traceTransitionIgnored(t);const n=t.globals.transition;return"SameAsCurrent"===e&&n&&n.abort(),dl.ignored().toPromise()}function Il(t){if(!t.valid())throw new Error(t.error().toString())}let Ul={location:!0,relative:null,inherit:!1,notify:!0,reload:!1,supercede:!0,custom:{},current:()=>null,source:"unknown"};class ql{static $inject=["$routerGlobalsProvider","$viewProvider"];constructor(t,e){this._transitionCount=0,this._eventTypes=[],this._registeredHooks={},this._criteriaPaths={},this.globals=t,this.$view=e,this._deregisterHookFns={},this._pluginapi=Fa(Ia(this),{},Ia(this),["_definePathType","_defineEvent","_getPathTypes","_getEvents","getHooks"]),this._defineCorePaths(),this._defineCoreEvents(),this._registerCoreTransitionHooks(),t.successfulTransitions.onEvict(Ol)}$get=["$state","$urlService","$stateRegistry","$view",(t,e,n,r)=>(this._deregisterHookFns.lazyLoad=Pl(this,t,e,n),this._deregisterHookFns.updateUrl=((t,e,n)=>{t.onSuccess({},(t=>{const r=t.options(),i=e;if("url"!==r.source&&r.location&&i.$current.navigable){const t={replace:"replace"===r.location};n.push(i.$current.navigable.url,i.globals.params,t)}n.update(!0)}),{priority:9999})})(this,t,e),this._deregisterHookFns.redirectTo=((t,e)=>{t.onStart({to:t=>!!t.redirectTo},(t=>{const n=t.to().redirectTo;if(!n)return;const r=e;function i(e){if(e)return e instanceof Uc?e:b(e)?r.target(e,t.params(),t.options()):e.state||e.params?r.target(e.state||t.to(),e.params||t.params(),t.options()):void 0}return O(n)?qa.$q.resolve(n(t)).then(i):i(n)}))})(this,t),this._deregisterHookFns.activateViews=((t,e)=>{t.onSuccess({},(t=>{const n=t.views("entering"),r=t.views("exiting");(n.length||r.length)&&(r.forEach((t=>e.deactivateViewConfig(t))),n.forEach((t=>e.activateViewConfig(t))),e.sync())}))})(this,r),this)];create(t,e){return new El(t,e,this,this.globals)}_defineCoreEvents(){const t=il,e=ml,n=this._criteriaPaths,r=!1,i=!0;this._defineEvent("onCreate",t.CREATE,0,n.to,r,e.LOG_REJECTED_RESULT,e.THROW_ERROR,i),this._defineEvent("onBefore",t.BEFORE,0,n.to),this._defineEvent("onStart",t.RUN,0,n.to),this._defineEvent("onExit",t.RUN,100,n.exiting,!0),this._defineEvent("onRetain",t.RUN,200,n.retained),this._defineEvent("onEnter",t.RUN,300,n.entering),this._defineEvent("onFinish",t.RUN,400,n.to),this._defineEvent("onSuccess",t.SUCCESS,0,n.to,r,e.LOG_REJECTED_RESULT,e.LOG_ERROR,i),this._defineEvent("onError",t.ERROR,0,n.to,r,e.LOG_REJECTED_RESULT,e.LOG_ERROR,i)}_defineCorePaths(){const{STATE:t,TRANSITION:e}=sl;this._definePathType("to",e),this._definePathType("from",e),this._definePathType("exiting",t),this._definePathType("retained",t),this._definePathType("entering",t)}_defineEvent(t,e,n,r,i=!1,s=ml.HANDLE_RESULT,o=ml.REJECT_ERROR,a=!1){const c=new Ml(t,e,n,r,i,s,o,a);this._eventTypes.push(c),bl(this,this,c)}_getEvents(t){return(v(t)?this._eventTypes.filter((e=>e.hookPhase===t)):this._eventTypes.slice()).sort(((t,e)=>{const n=t.hookPhase-e.hookPhase;return 0===n?t.hookOrder-e.hookOrder:n}))}_definePathType(t,e){this._criteriaPaths[t]={name:t,scope:e}}_getPathTypes(){return this._criteriaPaths}getHooks(t){return this._registeredHooks[t]}_registerCoreTransitionHooks(){const t=this._deregisterHookFns;t.addCoreResolves=void this.onCreate({},(function(t){t.addResolvable(Ic.fromData(El,t),""),t.addResolvable(Ic.fromData("$transition$",t),""),t.addResolvable(Ic.fromData("$stateParams",t.params()),""),t.entering().forEach((e=>{t.addResolvable(Ic.fromData("$state$",e),e)}))})),t.ignored=(t=>t.onBefore({},Ll,{priority:-9999}))(this),t.invalid=(t=>t.onBefore({},Il,{priority:-1e4}))(this),t.onExit=(t=>t.onExit({exiting:t=>!!t.onExit},xl))(this),t.onRetain=(t=>t.onRetain({retained:t=>!!t.onRetain},Al))(this),t.onEnter=(t=>t.onEnter({entering:t=>!!t.onEnter},kl))(this),t.eagerResolve=(t=>t.onStart({},Tl,{priority:_l}))(this),t.lazyResolve=(t=>t.onEnter({entering:Ia(!0)},jl,{priority:_l}))(this),t.resolveAll=(t=>t.onFinish({},Vl,{priority:_l}))(this),t.loadViews=(t=>t.onFinish({},Nl))(this),t.updateGlobals=(t=>t.onCreate({},Rl))(this),t.lazyLoad=Pl(this)}}const Hl=lt("$stateProvider");class Fl{get params(){return this.globals.params}get current(){return this.globals.current}get $current(){return this.globals.$current}static $inject=["$routerGlobalsProvider","$transitionsProvider"];constructor(t,e){this.stateRegistry=void 0,this.urlService=void 0,this.globals=t,this.transitionService=e,this.invalidCallbacks=[],this._defaultErrorHandler=function(t){throw t instanceof Error&&t.stack?t:t instanceof dl?new Error(t.toString()):new Error(t)};const n=["current","$current","params","transition"],r=Object.keys(Fl.prototype).filter((t=>!n.includes(t)));Fa(Ia(Fl.prototype),this,Ia(this),r),fl.subscribe("$stateService:defaultErrorHandler",(t=>this.defaultErrorHandler()(t)))}$get=()=>this;decorator(t,e){return this.stateRegistry.decorator(t,e)||this}state(t){if(!t.name)throw Hl("stateinvalid","'name' required");try{this.stateRegistry.register(t)}catch(t){throw Hl("stateinvalid",t.message)}return this}_handleInvalidTargetState(t,e){const n=Gc(this.stateRegistry,t),r=this.globals,i=()=>r.transitionHistory.peekTail(),s=i(),o=new Ec(this.invalidCallbacks.slice()),a=new Zc(t).injector(),c=t=>{if(!(t instanceof Uc))return;let e=t;return e=this.target(e.identifier(),e.params(),e.options()),e.valid()?i()!==s?dl.superseded().toPromise():this.transitionTo(e.identifier(),e.params(),e.options()):dl.invalid(e.error()).toPromise()};return function t(){const r=o.dequeue();return void 0===r?dl.invalid(e.error()).toPromise():qa.$q.resolve(r(e,n,a)).then(c).then((e=>e||t()))}()}onInvalid(t){return this.invalidCallbacks.push(t),function(){za(this.invalidCallbacks)(t)}.bind(this)}reload(t){return this.transitionTo(this.globals.current,this.globals.params,{reload:!v(t)||t,inherit:!1,notify:!1})}go(t,e,n){const r=Ga(n,{relative:this.$current,inherit:!0},Ul);return this.transitionTo(t,e,r)}target(t,e,n={}){if(y(n.reload)&&!n.reload.name)throw new Error("Invalid reload state object");const r=this.stateRegistry;if(n.reloadState=!0===n.reload?r.root():r.matcher.find(n.reload,n.relative),n.reload&&!n.reloadState)throw new Error(`No such reload state '${b(n.reload)?n.reload:n.reload.name}'`);return new Uc(this.stateRegistry,t,e,n)}getCurrentPath(){const t=this.globals.successfulTransitions.peekTail();return t?t.treeChanges().to:(()=>[new zc(this.stateRegistry.root())])()}transitionTo(t,e={},n={}){n=Ga(n,Ul);const r=()=>this.globals.transition;n=Object.assign(n,{current:r});const i=this.target(t,e,n),s=this.getCurrentPath();if(!i.exists())return this._handleInvalidTargetState(s,i);if(!i.valid())return dc(i.error());if(!1===n.supercede&&r())return dl.ignored("Another transition is in progress and supercede has been set to false in TransitionOptions for the transition. So the transition was ignored in favour of the existing one in progress.").toPromise();const o=t=>e=>{if(e instanceof dl){const n=this.globals.lastStartedTransitionId<=t.$id;if(e.type===ll)return n&&this.urlService.update(),qa.$q.resolve(this.globals.current);const r=e.detail;if(e.type===ol&&e.redirected&&r instanceof Uc){const e=t.redirect(r);return e.run().catch(o(e))}if(e.type===al)return n&&this.urlService.update(),qa.$q.reject(e)}return this.defaultErrorHandler()(e),qa.$q.reject(e)},a=this.transitionService.create(s,i),c=a.run().catch(o(a));return hc(c),Object.assign(c,{transition:a})}is(t,e,n){n=Ga(n,{relative:this.$current});const r=this.stateRegistry.matcher.find(t,n.relative);if(!v(r))return;if(this.$current!==r)return!1;if(!e)return!0;const i=r.parameters({inherit:!0,matchingKeys:e});return Bc.equals(i,Bc.values(i,e),this.globals.params)}includes(t,e,n){n=Ga(n,{relative:this.$current});const r=b(t)&&gl.fromString(t);if(r){if(!r.matches(this.$current.name))return!1;t=this.$current.name}const i=this.stateRegistry.matcher.find(t,n.relative),s=this.$current.includes;if(!v(i))return;if(!v(s[i.name]))return!1;if(!e)return!0;const o=i.parameters({inherit:!0,matchingKeys:e});return Bc.equals(o,Bc.values(o,e),this.globals.params)}href(t,e,n){n=Ga(n,{lossy:!0,inherit:!0,absolute:!1,relative:this.$current}),e=e||{};const r=this.stateRegistry.matcher.find(t,n.relative);if(!v(r))return null;n.inherit&&(e=this.globals.params.$inherit(e,this.$current,r));const i=r&&n.lossy?r.navigable:r;return i&&void 0!==i.url&&null!==i.url?this.urlService.href(i.url,e,{absolute:n.absolute}):null}defaultErrorHandler(t){return this._defaultErrorHandler=t||this._defaultErrorHandler}get(t,e){const n=this.stateRegistry;return 0===arguments.length?n.get():n.get(t,e||this.$current)}lazyLoad(t,e){const n=this.get(t);if(!n||!n.lazyLoad)throw new Error("Can not lazy load "+t);const r=this.getCurrentPath(),i=Gc(this.stateRegistry,r);return Dl(e=e||this.transitionService.create(r,i),n)}}class Bl{constructor(){this.enabled=!1}useAnchorScroll(){this.enabled=!0}$get=["$anchorScroll","$timeout",(t,e)=>this.enabled?t:function(t){return e((()=>{t[0].scrollIntoView()}),0,!1)}]}class zl{constructor(){this._useHttp=!1}$get=["$http","$templateCache","$templateRequest","$q","$injector",(t,e,n,r,i)=>(this.$templateRequest=n,this.$http=t,this.$templateCache=e,this.$q=r,this.$injector=i,this)];useHttpService(t){this._useHttp=t}fromConfig(t,e,n){const r=t=>this.$q.resolve(t).then((t=>({template:t}))),i=t=>this.$q.resolve(t).then((t=>({component:t})));switch((t=>v(t.template)?"template":v(t.templateUrl)?"templateUrl":v(t.templateProvider)?"templateProvider":v(t.component)?"component":v(t.componentProvider)?"componentProvider":"default")(t)){case"template":return r(this.fromString(t.template,e));case"templateUrl":return r(this.fromUrl(t.templateUrl,e));case"templateProvider":return r(this.fromProvider(t.templateProvider,e,n));case"component":return i(t.component);case"componentProvider":return i(this.fromComponentProvider(t.componentProvider,e,n));default:return r("<ui-view></ui-view>")}}fromString(t,e){return O(t)?t(e):t}fromUrl(t,e){return O(t)&&(t=t(e)),null==t?null:this._useHttp?this.$http.get(t,{cache:this.$templateCache,headers:{Accept:"text/html"}}).then((function(t){return t.data})):this.$templateRequest(t)}fromProvider(t,e,n){const r=be(t),i=Array.isArray(t)?lc(t):t;return new Ic("",i,r).get(n)}fromComponentProvider(t,e,n){const r=be(t),i=Array.isArray(t)?lc(t):t;return new Ic("",i,r).get(n)}makeComponentTemplate(t,e,n,r){r=r||{};const i=t=>{const e=Sc(t);return/^(x|data)-/.exec(e)?`x-${e}`:e},s=function(t){const e=qa.$injector.get(t+"Directive");if(!e||!e.length)throw new Error(`Unable to find component named '${t}'`);return e.map(Wl).reduce(ec,[])}(n).map((n=>{const{name:s,type:o}=n,a=i(s);if(t.attr(a)&&!r[s])return`${a}='${t.attr(a)}'`;const c=r[s]||s;if("@"===o)return`${a}='{{::$resolve.${c}}}'`;if("&"===o){const t=e.getResolvable(c),n=t&&t.data,r=n&&be(n)||[];return`${a}='$resolve.${c}${Array.isArray(n)?`[${n.length-1}]`:""}(${r.join(",")})'`}return`${a}='::$resolve.${c}'`})).join(" "),o=i(n);return`<${o} ${s}></${o}>`}}const Wl=t=>y(t.bindToController)?Gl(t.bindToController):Gl(t.scope),Gl=t=>Object.keys(t||{}).map((e=>[e,/^([=<@&])[?]?(.*)/.exec(t[e])])).filter((t=>v(t)&&Array.isArray(t[1]))).map((t=>({name:t[1][2]||t[0],type:t[1][1]})));function Kl(t,e){let n=["",""],r=t.replace(/[\\[\]^$*+?.()|{}]/g,"\\$&");if(!e)return r;switch(e.squash){case!1:n=["(",")"+(e.isOptional?"?":"")];break;case!0:r=r.replace(/\/$/,""),n=["(?:/(",")|/)?"];break;default:n=[`(${e.squash}|`,")?"]}return r+n[0]+e.type.pattern.source+n[1]}const Yl=function(t){const e=new RegExp("("+t+")","g");return t=>t.split(e).filter(Boolean)}("/"),Ql={state:{params:{}},strict:!0,caseInsensitive:!0};class Zl{static encodeDashes(t){return encodeURIComponent(t).replace(/-/g,(t=>`%5C%${t.charCodeAt(0).toString(16).toUpperCase()}`))}static pathSegmentsAndParams(t){return ac(t._segments,t._params.filter((t=>t.location===Hc.PATH)).concat(void 0)).reduce(ec,[]).filter((t=>""!==t&&v(t)))}static queryParams(t){return t._params.filter((t=>t.location===Hc.SEARCH))}static compare(t,e){const n=t=>t._cache.weights=t._cache.weights||(t=>t._cache.segments=t._cache.segments||t._cache.path.map(Zl.pathSegmentsAndParams).reduce(ec,[]).reduce(_c,[]).map((t=>b(t)?Yl(t):t)).reduce(ec,[]))(t).map((t=>"/"===t?1:b(t)?2:t instanceof Bc?3:void 0)),r=n(t),i=n(e);((t,e,n)=>{const r=Math.max(t.length,e.length);for(;t.length<r;)t.push(n);for(;e.length<r;)e.push(n)})(r,i,0);const s=ac(r,i);let o,a;for(a=0;a<s.length;a++)if(o=s[a][0]-s[a][1],0!==o)return o;return 0}constructor(t,e,n,r){this._cache={path:[this]},this._children=[],this._params=[],this._segments=[],this._compiled=[],this.config=r=Ga(r,Ql),this.pattern=t;const i=/([:*])([\w[\]]+)|\{([\w[\]]+)(?::\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,s=/([:]?)([\w[\].-]+)|\{([\w[\].-]+)(?::\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,o=[];let a,c=0;const l=e=>{if(!Zl.nameValidator.test(e))throw new Error(`Invalid parameter name '${e}' in pattern '${t}'`);if(Za(this._params,Pa("id",e)))throw new Error(`Duplicate parameter name '${e}' in pattern '${t}'`)},u=(n,r)=>{const i=n[2]||n[3],s=r?n[4]:n[4]||("*"===n[1]?"[\\s\\S]*":null);return{id:i,regexp:s,segment:t.substring(c,n.index),type:s?e.type(s)||(t=>Ba(e.type(r?"query":"path"),{pattern:new RegExp(t,this.config.caseInsensitive?"i":void 0)}))(s):null}};let h,d;for(;(a=i.exec(t))&&(h=u(a,!1),!(h.segment.indexOf("?")>=0));)l(h.id),this._params.push(n.fromPath(h.id,h.type,r.state)),this._segments.push(h.segment),o.push([h.segment,lc(this._params)]),c=i.lastIndex;d=t.substring(c);const p=d.indexOf("?");if(p>=0){const t=d.substring(p);if(d=d.substring(0,p),t.length>0)for(c=0;a=s.exec(t);)h=u(a,!0),l(h.id),this._params.push(n.fromSearch(h.id,h.type,r.state)),c=i.lastIndex}this._segments.push(d),this._compiled=o.map((t=>Kl.apply(null,t))).concat(Kl(d))}append(t){return this._children.push(t),t._cache={path:this._cache.path.concat(t),parent:this,pattern:null},t}isRoot(){return this._cache.path[0]===this}toString(){return this.pattern}_getDecodedParamValue(t,e){return v(t)&&(t=e.type.decode(t)),e.value(t)}exec(t,e={},n){const r=(i=this._cache,s="pattern",o=()=>new RegExp(["^",sc(this._cache.path.map((t=>t._compiled))).join(""),!1===this.config.strict?"/?":"","$"].join(""),this.config.caseInsensitive?"i":void 0),i[s]=i[s]||o()).exec(t);var i,s,o;if(!r)return null;const a=this.parameters(),c=a.filter((t=>!t.isSearch())),l=a.filter((t=>t.isSearch())),u=this._cache.path.map((t=>t._segments.length-1)).reduce(((t,e)=>t+e)),h={};if(u!==r.length-1)throw new Error(`Unbalanced capture group in route '${this.pattern}'`);function d(t){const e=t=>t.split("").reverse().join(""),n=Ja(e(t).split(/-(?!\\)/),e);return Ja(n,(t=>t.replace(/\\-/g,"-"))).reverse()}for(let t=0;t<u;t++){const e=c[t];let n=r[t+1];for(let t=0;t<e.replace.length;t++)e.replace[t].from===n&&(n=e.replace[t].to);n&&!0===e.array&&(n=d(n)),h[e.id]=this._getDecodedParamValue(n,e)}return l.forEach((t=>{let n=e[t.id];for(let e=0;e<t.replace.length;e++)t.replace[e].from===n&&(n=t.replace[e].to);h[t.id]=this._getDecodedParamValue(n,t)})),n&&(h["#"]=n),h}parameters(t={}){return!1===t.inherit?this._params:sc(this._cache.path.map((t=>t._params)))}parameter(t,e={}){const n=this._cache.parent;return(()=>{for(const e of this._params)if(e.id===t)return e})()||!1!==e.inherit&&n&&n.parameter(t,e)||null}validates(t){t=t||{};return this.parameters().filter((e=>Object.prototype.hasOwnProperty.call(t,e.id))).map((e=>((t,e)=>!t||t.validates(e))(e,t[e.id]))).reduce(Xa,!0)}format(t={}){const e=this._cache.path,n=e.map(Zl.pathSegmentsAndParams).reduce(ec,[]).map((t=>b(t)?t:i(t))),r=e.map(Zl.queryParams).reduce(ec,[]).map(i);if(n.concat(r).filter((t=>!1===t.isValid)).length)return null;function i(e){const n=e.value(t[e.id]),r=e.validates(n),i=e.isDefaultValue(n),s=!!i&&e.squash,o=e.type.encode(n);return{param:e,value:n,isValid:r,isDefaultValue:i,squash:s,encoded:o}}const s=n.reduce(((t,e)=>{if(b(e))return t+e;const{squash:n,encoded:r,param:i}=e;return!0===n?t.match(/\/$/)?t.slice(0,-1):t:b(n)?t+n:!1!==n||null==r?t:Array.isArray(r)?t+Ja(r,Zl.encodeDashes).join("-"):i.raw?t+r:t+encodeURIComponent(r)}),""),o=r.map((t=>{let{param:e,squash:n,encoded:r,isDefaultValue:i}=t;if(!(null==r||i&&!1!==n)&&(Array.isArray(r)||(r=[r]),0!==r.length))return e.raw||(r=Ja(r,encodeURIComponent)),r.map((t=>`${e.id}=${t}`))})).reduce(ec,[]).join("&");return s+(o?`?${o}`:"")+(t["#"]?"#"+t["#"]:"")}}Zl.nameValidator=/^\w+([-.]+\w+)*(?:\[\])?$/;class Jl{name=void 0;navigable=void 0;parent=void 0;params=void 0;url=void 0;constructor(t){Object.assign(this,t),this.$$state=()=>this,this.self=t;const e=this.name?gl.fromString(this.name):null;this.__stateObjectCache={nameGlob:e}}is(t){return this===t||this.self===t||this.fqn()===t}fqn(){if(!(this.parent&&this.parent instanceof this.constructor))return this.name;const t=this.parent.fqn();return t?t+"."+this.name:this.name}root(){return this.parent&&this.parent.root()||this}parameters(t){return((t=Ga(t,{inherit:!0,matchingKeys:null})).inherit&&this.parent&&this.parent.parameters()||[]).concat(Object.values(this.params)).filter((e=>!t.matchingKeys||Object.prototype.hasOwnProperty.call(t.matchingKeys,e.id)))}parameter(t,e={}){return this.url&&this.url.parameter(t,e)||Za(Object.values(this.params),Pa("id",t))||e.inherit&&this.parent&&this.parent.parameter(t)}toString(){return this.fqn()}}Jl.isStateDeclaration=t=>O(t.$$state),Jl.isState=t=>y(t.__stateObjectCache);class Xl{constructor(t,e,n){this.urlService=t,this.stateService=e,this.routerGlobals=n}create(t,e){const{isState:n,isStateDeclaration:r}=Jl,i=Ua([[b,t=>i(this.urlService.compile(t))],[La(Zl),t=>this.fromUrlMatcher(t,e)],[(s=n,o=r,(...t)=>s.apply(null,t)||o.apply(null,t)),t=>this.fromState(t,this.stateService,this.routerGlobals)],[La(RegExp),t=>this.fromRegExp(t,e)],[O,t=>new tu(t,e)]]);var s,o;const a=i(t);if(!a)throw new Error("invalid 'what' in when()");return a}fromUrlMatcher(t,e){let n=e;b(e)&&(e=this.urlService.compile(e)),La(Zl)(e)&&(n=t=>e.format(t));const r={urlMatcher:t,matchPriority:function(e){const n=t.parameters().filter((t=>t.isOptional));return n.length?n.filter((t=>e[t.id])).length/n.length:1e-6},type:"URLMATCHER"};return Object.assign(new tu((function(e){const n=t.exec(e.path,e.search,e.hash);return t.validates(n)&&n}),n),r)}fromState(t,e,n){const r=Jl.isStateDeclaration(t)?t.$$state():t,i={state:r,type:"STATE"};return Object.assign(this.fromUrlMatcher(r.url,(t=>{const i=e;i.href(r,t)!==i.href(n.current,n.params)&&i.transitionTo(r,t,{inherit:!0,source:"url"})})),i)}fromRegExp(t,e){if(t.global||t.sticky)throw new Error("Rule RegExp must not be global or sticky");const n=b(e)?t=>e.replace(/\$(\$|\d{1,2})/,((e,n)=>t["$"===n?0:Number(n)])):e,r={regexp:t,type:"REGEXP"};return Object.assign(new tu((e=>t.exec(e.path)),n),r)}}Xl.isUrlRule=t=>t&&["type","match","handler"].every((e=>v(t[e])));class tu{constructor(t,e){this.match=t,this.type="RAW",this.$id=-1,this._group=void 0,this.handler=e||(t=>t)}matchPriority(t){return it(g(t)),0-this.$id}}let eu;function nu(t){if(!(O(t)||b(t)||La(Uc)(t)||Uc.isDef(t)))throw new Error("'handler' must be a string, function, TargetState, or have a state: 'newtarget' property");return O(t)?t:Ia(t)}eu=(t,e)=>{let n=((t,e)=>(e.priority||0)-(t.priority||0))(t,e);return 0!==n?n:(n=((t,e)=>{const n={STATE:4,URLMATCHER:4,REGEXP:3,RAW:2,OTHER:1};return(n[t.type]||0)-(n[e.type]||0)})(t,e),0!==n?n:(n=((t,e)=>t.urlMatcher&&e.urlMatcher?Zl.compare(t.urlMatcher,e.urlMatcher):0)(t,e),0!==n?n:((t,e)=>{const n={STATE:!0,URLMATCHER:!0};return n[t.type]&&n[e.type]?0:(t.$id||0)-(e.$id||0)})(t,e)))};class ru{constructor(t){this._sortFn=eu,this._rules=[],this._id=0,this.urlRuleFactory=t}initial(t){const e=nu(t);this.rule(this.urlRuleFactory.create(((t,e)=>0===e.globals.transitionHistory.size()&&!!/^\/?$/.exec(t.path)),e))}otherwise(t){const e=nu(t);this._otherwiseFn=this.urlRuleFactory.create(Ia(!0),e),this._sorted=!1}removeRule(t){za(this._rules,t)}rule(t){if(!Xl.isUrlRule(t))throw new Error("invalid rule");return t.$id=this._id++,t.priority=t.priority||0,this._rules.push(t),this._sorted=!1,()=>this.removeRule(t)}rules(){return this.ensureSorted(),this._rules.concat(this._otherwiseFn?[this._otherwiseFn]:[])}sort(t){const e=this.stableSort(this._rules,this._sortFn=t||this._sortFn);let n=0;for(let t=0;t<e.length;t++)e[t]._group=n,t<e.length-1&&0!==this._sortFn(e[t],e[t+1])&&n++;this._rules=e,this._sorted=!0}ensureSorted(){this._sorted||this.sort()}stableSort(t,e){const n=t.map(((t,e)=>({elem:t,idx:e})));return n.sort(((t,n)=>{const r=e(t.elem,n.elem);return 0===r?t.idx-n.idx:r})),n.map((t=>t.elem))}when(t,e,n){const r=this.urlRuleFactory.create(t,e);return v(n&&n.priority)&&(r.priority=n.priority),this.rule(r),r}}class iu{constructor(t){this.urlServiceConfig=t}fromConfig(t,e,n){return new Bc(t,e,Hc.CONFIG,this.urlServiceConfig,n)}fromPath(t,e,n){return new Bc(t,e,Hc.PATH,this.urlServiceConfig,n)}fromSearch(t,e,n){return new Bc(t,e,Hc.SEARCH,this.urlServiceConfig,n)}}class su{static $inject=["$locationProvider","$stateProvider","$routerGlobalsProvider","$urlConfigProvider"];constructor(t,e,n,r){this.stateService=e,this.stateService.urlService=this,this.$locationProvider=t,this.$location=void 0,this.$browser=void 0,this.urlRuleFactory=new Xl(this,this.stateService,n),this.rules=new ru(this.urlRuleFactory),this.config=r,this.paramFactory=new iu(this.config),this.path=()=>this.$location.path(),this.search=()=>this.$location.search(),this.hash=()=>this.$location.hash(),this._urlListeners=[]}$get=["$location","$browser","$rootScope",(t,e,n)=>(this.$location=t,this.$browser=e,n.$on("$locationChangeSuccess",(t=>this._urlListeners.forEach((e=>e(t))))),this.listen(),this)];html5Mode(){return this.$locationProvider.getHtml5Mode().enabled&&"undefined"!=typeof history}baseHref(){return this._baseHref||(this._baseHref=this.$browser.baseHref()||window.location.pathname)}url(t,e=!1,n){return v(t)&&this.$location.url(t),e&&this.$location.replace(),n&&this.$location.state(n),this.$location.url()}onChange(t){return this._urlListeners.push(t),()=>za(this._urlListeners)(t)}parts(){return{path:this.path(),search:this.search(),hash:this.hash()}}sync(t){if(t&&t.defaultPrevented)return;const e=this.stateService,n={path:this.path(),search:this.search(),hash:this.hash()},r=this.match(n);Ua([[b,t=>this.url(t,!0)],[Uc.isDef,t=>e.go(t.state,t.params,t.options)],[La(Uc),t=>e.go(t.state(),t.params(),t.options())]])(r&&r.rule.handler(r.match,n))}listen(t){if(!1!==t)return this._stopListeningFn=this._stopListeningFn||this.onChange((t=>this.sync(t)));this._stopListeningFn&&this._stopListeningFn(),delete this._stopListeningFn}match(t){t=Object.assign({path:"",search:{},hash:""},t);const e=this.rules.rules(),n=e=>{const n=e.match(t);return n&&{match:n,rule:e,weight:e.matchPriority(n)}};let r;for(let t=0;t<e.length&&(!r||r.rule._group===e[t]._group);t++){const i=n(e[t]);r=!r||i&&i.weight>r.weight?i:r}return r}update(t){t?this.location=this.url():this.url()!==this.location&&this.url(this.location,!0)}push(t,e,n){const r=n&&!!n.replace;this.url(t.format(e||{}),r)}href(t,e,n){let r=t.format(e);if(null==r)return null;n=n||{absolute:!1};const i=this.html5Mode();if(i||null===r||(r="#"+this.$locationProvider.getHashPrefix()+r),r=function(t,e,n,r){return"/"===r?t:e?(t=>t.replace(/\/[^/]*$/,""))(r)+t:n?r.slice(1)+t:t}(r,i,n.absolute,this.baseHref()),!n.absolute||!r)return r;const s=!i&&r?"/":"",o=this.$location.port(),a=80===o||443===o?"":":"+o;return[this.$location.protocol(),"://",this.$location.host(),a,s,r].join("")}compile(t,e){const n=this.config,r=e&&!e.state&&e.params;e=r?Object.assign({state:{params:r}},e):e;const i={strict:n._isStrictMode,caseInsensitive:n._isCaseInsensitive};return new Zl(t,n.paramTypes,this.paramFactory,Object.assign(i,e))}isMatcher(t){if(!y(t))return!1;let e=!0;return Object.entries(Zl.prototype).forEach((([n,r])=>{O(r)&&(e=e&&v(t[n])&&O(t[n]))})),e}}class ou{constructor(t){this._states=t}isRelative(t){return 0===(t=t||"").indexOf(".")||0===t.indexOf("^")}find(t,e,n=!0){if(!t&&""!==t)return;const r=b(t);let i=r?t:t.name;this.isRelative(i)&&(i=this.resolvePath(i,e));const s=this._states[i];if(s&&(r||!(r||s!==t&&s.self!==t)))return s;if(r&&n){const t=Object.values(this._states).filter((t=>t.__stateObjectCache.nameGlob&&t.__stateObjectCache.nameGlob.matches(i)));return t.length>1&&console.error(`stateMatcher.find: Found multiple matches for ${i} using glob: `,t.map((t=>t.name))),t[0]}}resolvePath(t,e){if(!e)throw new Error(`No reference point given for path '${t}'`);const n=this.find(e),r=t.split("."),i=r.length;let s=0,o=n;for(;s<i;s++)if(""!==r[s]||0!==s){if("^"!==r[s])break;if(!o.parent)throw new Error(`Path '${t}' not valid for state '${n.name}'`);o=o.parent}else o=n;const a=r.slice(s).join(".");return o.name+(o.name&&a?".":"")+a}}function au(t){return t.self.$$state=()=>t,t.self}function cu(t){return t.parent&&t.parent.data&&(t.data=t.self.data=Ba(t.parent.data,t.data)),t.data}function lu(t,e){return function(n){let r=n.self;if(r&&r.url&&r.name&&r.name.match(/\.\*\*$/)){const t={};uc(r,t),t.url+="{remainder:any}",r=t}const i=n.parent,s=function(t){if(!b(t))return!1;const e="^"===t.charAt(0);return{val:e?t.substring(1):t,root:e}}(r.url),o=s?t.compile(s.val,{state:r}):r.url;if(!o)return null;if(!t.isMatcher(o))throw new Error(`Invalid url '${o}' in state '${n}'`);return s&&s.root?o:(i&&i.navigable||e()).url.append(o)}}function uu(t){return function(e){return!t(e)&&e.url?e:e.parent?e.parent.navigable:null}}function hu(t){return t.parent&&!t.abstract?t.parent.path.concat(t):[t]}function du(t){const e=t.parent?Object.assign({},t.parent.includes):{};return e[t.name]=!0,e}function pu(t){const e=Ua([[t=>t.resolveFn,t=>new Ic(mu(t),t.resolveFn,t.deps,t.policy)],[t=>t.useFactory,t=>new Ic(mu(t),t.useFactory,t.deps||t.dependencies,t.policy)],[t=>t.useClass,t=>new Ic(mu(t),(()=>new t.useClass),[],t.policy)],[t=>t.useValue,t=>new Ic(mu(t),(()=>t.useValue),[],t.policy,t.useValue)],[t=>t.useExisting,t=>new Ic(mu(t),(t=>t),[t.useExisting],t.policy)]]),n=Ua([[Ra((t=>t.val),b),t=>new Ic(t.token,(t=>t),[t.val],t.policy)],[Ra((t=>t.val),Array.isArray),t=>new Ic(t.token,lc(t.val),t.val.slice(0,-1),t.policy)],[Ra((t=>t.val),O),t=>new Ic(t.token,t.val,(t=>{const e=qa.$injector;return t.$inject||e&&be(t,e.strictDi)||"deferred"})(t.val),t.policy)]]),r=Ua([[La(Ic),t=>t],[t=>!(!t.token||!t.resolveFn),e],[t=>!!(t&&t.val&&(b(t.val)||Array.isArray(t.val)||O(t.val))),n],[Ia(!0),t=>{throw new Error("Invalid resolve value: "+kc(t))}]]),i=t.resolve,s=Array.isArray(i)?i:((t,e)=>Object.keys(t||{}).map((n=>({token:n,val:t[n],deps:void 0,policy:e[n]}))))(i,t.resolvePolicy||{});return s.map(r)}class fu{constructor(t,e){this.matcher=t,this.$injector=void 0;const n=this,r=()=>t.find("");var i;this.builders={name:[t=>t.name],self:[au],parent:[function(e){return $u(e)?null:t.find(n.parentName(e))||r()}],data:[cu],url:[lu(e,r)],navigable:[uu($u)],params:[(i=e.paramFactory,function(t){const e=t.url&&t.url.parameters({inherit:!1})||[],n=Object.values(Ja(Ya(t.params||{},e.map((t=>t.id))),((e,n)=>i.fromConfig(n,null,t.self))));return e.concat(n).map((t=>[t.id,t])).reduce(cc,{})})],views:[],path:[hu],includes:[du],resolvables:[pu]}}builder(t,e){const n=this.builders,r=n[t]||[];return b(t)&&!v(e)?r.length>1?r:r[0]:b(t)&&O(e)?(n[t]=r,n[t].push(e),()=>n[t].splice(n[t].indexOf(e,1))&&null):void 0}build(t){const{matcher:e,builders:n}=this,r=this.parentName(t);if(r&&!e.find(r,void 0,!1))return null;for(const e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;const r=n[e].reduce(((t,e)=>n=>e(n,t)),(()=>{}));t[e]=r(t)}return t}parentName(t){const e=t.name||"",n=e.split(".");if("**"===n.pop()&&n.pop(),n.length){if(t.parent)throw new Error(`States that specify the 'parent:' property should not have a '.' in their name (${e})`);return n.join(".")}return t.parent?b(t.parent)?t.parent:t.parent.name:""}name(t){const e=t.name;if(-1!==e.indexOf(".")||!t.parent)return e;const n=b(t.parent)?t.parent:t.parent.name;return n?n+"."+e:e}}function $u(t){return""===t.name}function mu(t){return t.provide||t.token}class gu{constructor(t,e,n,r,i){this.stateRegistry=t,this.urlServiceRules=e,this.states=n,this.builder=r,this.listeners=i,this.queue=[]}register(t){const e=new Jl(t);if(!b(name))throw new Error("State must have a valid name");if(Object.prototype.hasOwnProperty.call(this.states,e.name)||this.queue.map((t=>t.name)).includes(e.name))throw new Error(`State '${e.name}' is already defined`);return this.queue.push(e),this.flush(),e}flush(){const{queue:t,states:e,builder:n}=this,r=[],i=[],s={},o=t=>Object.prototype.hasOwnProperty.call(this.states,t)&&this.states[t],a=()=>{r.length&&this.listeners.forEach((t=>t("registered",r.map((t=>t.self)))))};for(;t.length>0;){const c=t.shift(),l=c.name,u=n.build(c),h=i.indexOf(c);if(u){const t=o(l);if(t&&t.name===l)throw new Error(`State '${l}' is already defined`);const n=o(l+".**");n&&this.stateRegistry.deregister(n),e[l]=c,this.attachRoute(c),h>=0&&i.splice(h,1),r.push(c);continue}const d=s[l];if(s[l]=t.length,h>=0&&d===t.length)return t.push(c),a(),e;h<0&&i.push(c),t.push(c)}return a(),e}attachRoute(t){if(t.abstract||!t.url)return;const e=this.urlServiceRules;e.rule(e.urlRuleFactory.create(t))}}class vu{static $inject=["$urlServiceProvider","$stateProvider","$routerGlobalsProvider","$viewProvider"];constructor(t,e,n,r){this.states={},e.stateRegistry=this,this.urlService=t,this.urlServiceRules=t.rules,this.$injector=void 0,this.listeners=[],this.matcher=new ou(this.states),this.builder=new fu(this.matcher,t),this.builder.builder("views",tl),this.builder.builder("onExit",this.getStateHookBuilder("onExit")),this.builder.builder("onRetain",this.getStateHookBuilder("onRetain")),this.builder.builder("onEnter",this.getStateHookBuilder("onEnter")),this.stateQueue=new gu(this,this.urlServiceRules,this.states,this.builder,this.listeners),this.registerRoot(),r._pluginapi._rootViewContext(this.root()),n.$current=this.root(),n.current=n.$current.self}$get=["$injector",t=>(this.$injector=t,this.builder.$injector=t,this)];getStateHookBuilder(t){let e=this;return function(n){const r=n[t],i="onExit"===t?"from":"to";return r?function(t,n){const s=new Zc(t.treeChanges(i)).subContext(n.$$state()),o=Object.assign(yu(s),{$state$:n,$transition$:t});return e.$injector.invoke(r,this,o)}:void 0}}registerRoot(){this._root=this.stateQueue.register({name:"",url:"^",views:null,params:{"#":{value:null,type:"hash",dynamic:!0}},abstract:!0}),this._root.navigable=null}onStatesChanged(t){return this.listeners.push(t),function(){za(this.listeners)(t)}.bind(this)}root(){return this._root}register(t){return this.stateQueue.register(t)}_deregisterTree(t){const e=this.get().map((t=>t.$$state())),n=t=>{const r=e.filter((e=>-1!==t.indexOf(e.parent)));return 0===r.length?r:r.concat(n(r))},r=n([t]),i=[t].concat(r).reverse();return i.forEach((t=>{const e=this.urlServiceRules;e.rules().filter(Pa("state",t)).forEach((t=>e.removeRule(t))),delete this.states[t.name]})),i}deregister(t){const e=this.get(t);if(!e)throw new Error("Can't deregister state; not found: "+t);const n=this._deregisterTree(e.$$state());return this.listeners.forEach((t=>t("deregistered",n.map((t=>t.self))))),n}get(t,e){if(0===arguments.length)return Object.keys(this.states).map((t=>this.states[t].self));const n=this.matcher.find(t,e);return n&&n.self||null}decorator(t,e){return this.builder.builder(t,e)}}const yu=t=>t.getTokens().filter(b).map((e=>{const n=t.getResolvable(e);return[e,"NOWAIT"===t.getPolicy(n).async?n.promise:n.data]})).reduce(cc,{});function bu(t){const e=t.match(/^\s*({[^}]*})\s*$/);e&&(t="("+e[1]+")");const n=t.replace(/\n/g," ").match(/^\s*([^(]*?)\s*(\((.*)\))?\s*$/);if(!n||4!==n.length)throw new Error("Invalid state ref '"+t+"'");return{state:n[1]||null,paramExpr:n[3]||null}}function wu(t){const e=t.parent().inheritedData("$ngView"),n=Da("$cfg.path")(e);return n?lc(n).state.name:void 0}function Eu(t,e,n){const r=n.ngState||t.current.name,i=Object.assign(function(t,e){return{relative:wu(t)||e.$current,inherit:!0,source:"sref"}}(e,t),n.ngStateOpts||{}),s=t.href(r,n.ngStateParams,i);return{ngState:r,ngStateParams:n.ngStateParams,ngStateOpts:i,href:s}}function Cu(t){const e="[object SVGAnimatedString]"===Object.prototype.toString.call(t[0].getAttribute("href")),n="FORM"===t[0].nodeName;return{attr:n?"action":e?"xlink:href":"href",isAnchor:"A"===t[0].nodeName,clickable:!n}}function Ou(t,e,n,r,i){return function(s){const o=s.which||s.button,a=i();if(o>1||s.ctrlKey||s.metaKey||s.shiftKey||s.altKey||t.attr("target"))s.preventDefault(),s.stopImmediatePropagation();else{const i=n((function(){t.attr("disabled")||e.go(a.ngState,a.ngStateParams,a.ngStateOpts)}));s.preventDefault();let o=r.isAnchor&&!a.href?1:0;s.preventDefault=function(){o--<=0&&n.cancel(i)}}}}function Su(t,e,n,r){let i;r&&(i=r.events),Array.isArray(i)||(i=["click"]);const s=t.on?"on":"bind";for(const e of i)t[s](e,n);e.$on("$destroy",(function(){const e=t.off?"off":"unbind";for(const r of i)t[e](r,n)}))}function xu(t,e,n,r){const i=t;return{restrict:"A",require:["?^ngSrefActive","?^ngSrefActiveEq"],link:(t,s,o,a)=>{const c=Cu(s),l=a[1]||a[0];let u=null;const h={},d=()=>Eu(i,s,h),p=bu(o.ngSref);function f(){const t=d();u&&u(),l&&(u=l.$$addStateInfo(t.ngState,t.ngStateParams)),null!=t.href&&o.$set(c.attr,t.href)}if(h.ngState=p.state,h.ngStateOpts=o.ngSrefOpts?t.$eval(o.ngSrefOpts):{},p.paramExpr&&(t.$watch(p.paramExpr,(function(t){h.ngStateParams=Object.assign({},t),f()}),!0),h.ngStateParams=Object.assign({},t.$eval(p.paramExpr))),f(),t.$on("$destroy",n.onStatesChanged(f)),t.$on("$destroy",r.onSuccess({},f)),!c.clickable)return;const $=Ou(s,i,e,c,d);Su(s,t,$,h.ngStateOpts)}}}function Au(t,e,n,r){return{restrict:"A",require:["?^ngSrefActive","?^ngSrefActiveEq"],link:function(i,s,o,a){const c=Cu(s),l=a[1]||a[0];let u,h=null;const d={},p=()=>Eu(t,s,d),f=["ngState","ngStateParams","ngStateOpts"],$=f.reduce(((t,e)=>(t[e]=()=>{},t)),{});function m(){const t=p();h&&h(),l&&(h=l.$$addStateInfo(t.ngState,t.ngStateParams)),null!=t.href&&o.$set(c.attr,t.href)}f.forEach((t=>{d[t]=o[t]?i.$eval(o[t]):null,o.$observe(t,(e=>{$[t](),$[t]=i.$watch(e,(e=>{d[t]=e,m()}),!0)}))})),m(),i.$on("$destroy",n.onStatesChanged(m)),i.$on("$destroy",r.onSuccess({},m)),c.clickable&&(u=Ou(s,t,e,c,p),Su(s,i,u,d.ngStateOpts))}}}function ku(t,e,n,r,i){return{restrict:"A",controller:function(s,o,a){let c,l,u=[];c=n(a.ngSrefActiveEq||"",!1)(s);try{l=s.$eval(a.ngSrefActive)}catch(t){}function h(t){t.promise.then($,(()=>{}))}function d(){p(l)}function p(t){y(t)&&(u=[],Object.entries(t).forEach((([t,e])=>{const n=function(t,e){const n=bu(t);f(n.state,s.$eval(n.paramExpr),e)};b(e)?n(e,t):Array.isArray(e)&&e.forEach((e=>{n(e,t)}))})))}function f(e,n,r){const i={state:t.get(e,wu(o))||{name:e},params:n,activeClass:r};return u.push(i),function(){za(u)(i)}}function $(){const e=t=>t.split(/\s/).filter(Boolean),n=t=>t.map((t=>t.activeClass)).map(e).reduce(ec,[]),r=n(u).concat(e(c)).reduce(ic,[]),i=n(u.filter((e=>t.includes(e.state.name,e.params)))),a=!!u.filter((e=>t.is(e.state.name,e.params))).length?e(c):[],l=i.concat(a).reduce(ic,[]),h=r.filter((t=>!l.includes(t)));s.$evalAsync((()=>{l.forEach((t=>o[0].classList.add(t))),h.forEach((t=>o[0].classList.remove(t)))}))}l=l||n(a.ngSrefActive||"",!1)(s),p(l),this.$$addStateInfo=function(t,e){if(y(l)&&u.length>0)return;const n=f(t,e,l);return $(),n},s.$on("$destroy",function(){const t=r.onStatesChanged(d),e=i.onStart({},h),n=s.$on("$stateChangeSuccess",$);return function(){t(),e(),n()}}()),e.transition&&h(e.transition),$()}}}xu.$inject=["$state","$timeout","$stateRegistry","$transitions"],Au.$inject=["$state","$timeout","$stateRegistry","$transitions"],ku.$inject=["$state","$routerGlobals","$interpolate","$stateRegistry","$transitions"];let _u=["$view","$animate","$ngViewScroll","$interpolate","$q",function(t,e,n,r,i){const s={$cfg:{viewDecl:{$context:t._pluginapi._rootViewContext()}},$ngView:{}},o={count:0,restrict:"EA",terminal:!0,priority:400,transclude:"element",compile:function(a,c,l){return function(a,c,u){const h=u.onload||"",d=u.autoscroll,p={enter:function(t,n,r){e.enter(t,null,n).then(r)},leave:function(t,n){e.leave(t).then(n)}},f=c.inheritedData("$ngView")||s,$=r(u.ngView||u.name||"")(a)||"$default";let m,g,y,b;const w={$type:"ng1",id:o.count++,name:$,fqn:f.$ngView.fqn?f.$ngView.fqn+"."+$:$,config:null,configUpdated:function(t){if(t&&!(t instanceof nl))return;if(e=b,n=t,e===n)return;var e,n;Dc.traceUIViewConfigUpdated(w,t&&t.viewDecl&&t.viewDecl.$context),b=t,C(t)},get creationContext(){const t=Da("$cfg.viewDecl.$context")(f),e=Da("$ngView.creationContext")(f);return t||e}};Dc.traceUIViewEvent("Linking",w),c.data("$ngView",{$ngView:w}),C();const E=t.registerUIView(w);function C(t){const e=a.$new(),r=i.defer(),s=i.defer(),o={$cfg:t,$ngView:w},u={$animEnter:r.promise,$animLeave:s.promise,$$animLeave:s};e.$emit("$viewContentLoading",$);const f=l(e,(function(t){t.data("$ngViewAnim",u),t.data("$ngView",o),p.enter(t,c,(function(){r.resolve(),y&&y.$emit("$viewContentAnimationEnded"),(v(d)&&!d||a.$eval(d))&&n(t)})),function(){if(m&&(Dc.traceUIViewEvent("Removing (previous) el",m.data("$ngView")),m.remove(),m=null),y&&(Dc.traceUIViewEvent("Destroying scope",w),y.$destroy(),y=null),g){const t=g.data("$ngViewAnim");Dc.traceUIViewEvent("Animate out",t),p.leave(g,(function(){t.$$animLeave.resolve(),m=null})),m=g,g=null}}()}));g=f,y=e,y.$emit("$viewContentLoaded",t||b),y.$eval(h)}a.$on("$destroy",(function(){Dc.traceUIViewEvent("Destroying/Unregistering",w),E()}))}}};return o}];function Tu(t,e,n,r,i){const s=Da("viewDecl.controllerAs"),o=Da("viewDecl.resolveAs");return{restrict:"EA",priority:-400,compile:function(r){const a=r.html();return r.empty(),function(r,c){const l=c.data("$ngView");if(!l)return c.html(a),void t(c[0].contentDocument||c[0].childNodes)(r);const u=l.$cfg||{viewDecl:{},getTemplate:()=>{}},h=u.path&&new Zc(u.path);c.html(u.getTemplate(c,h)||a),Dc.traceUIViewFill(l.$ngView,c.html());const d=t(c[0].contentDocument||c[0].childNodes),p=u.controller,f=s(u),$=o(u),m=h&&yu(h);if(r[$]=m,p){const t=e(p,Object.assign({},m,{$scope:r,$element:c}));f&&(r[f]=t,r[f][$]=m),c.data("$ngControllerController",t),c.children().data("$ngControllerController",t),Vu(i,n,t,r,u)}if(b(u.component)){const t=Sc(u.component),e=new RegExp(`^(x-|data-)?${t}$`,"i"),s=()=>{const t=[].slice.call(c[0].children).filter((t=>t&&t.tagName&&e.exec(t.tagName)));return t&&At(t).data(`$${u.component}Controller`)},o=r.$watch(s,(function(t){t&&(Vu(i,n,t,r,u),o())}))}d(r)}}}}Tu.$inject=["$compile","$controller","$transitions","$view","$q"];let ju=0;function Vu(t,e,n,r,i){!O(n.$onInit)||i.viewDecl.component||i.viewDecl.componentProvider||n.$onInit();const s=lc(i.path).state.self,o={bind:n};if(O(n.uiOnParamsChanged)){const t=new Zc(i.path).getResolvable("$transition$").data,a=e=>{if(e===t||-1!==e.exiting().indexOf(s))return;const r=e.params("to"),i=e.params("from"),o=t=>t.paramSchema,a=e.treeChanges("to").map(o).reduce(ec,[]),c=e.treeChanges("from").map(o).reduce(ec,[]),l=a.filter((t=>{const e=c.indexOf(t);return-1===e||!c[e].type.equals(r[t.id],i[t.id])}));if(l.length){const t=l.map((t=>t.id)),i=Qa(r,((e,n)=>-1!==t.indexOf(n)));n.uiOnParamsChanged(i,e)}};r.$on("$destroy",e.onSuccess({},a,o))}if(O(n.uiCanExit)){const i=ju++,a="_uiCanExitIds",c=t=>!!t&&(t[a]&&!0===t[a][i]||c(t.redirectedFrom())),l=e=>{let r;const s=e[a]=e[a]||{};return c(e)||(r=t.resolve(n.uiCanExit(e)),r.then((t=>s[i]=!1!==t))),r},u={exiting:s.name};r.$on("$destroy",e.onBefore(u,l,o))}}function Nu(){return{restrict:"EA",link:(t,e,n)=>{const r=e[0],i=n.ngChannel,s=fl.subscribe(i,(t=>{r.innerHTML=t}));t.$on("$destroy",(()=>{fl.unsubscribeByKey(s)}))}}}function Ru(t){return{restrict:"A",link(e,n,r){const i=r.ngSetter;if(!i)return void console.warn("ngSetter: Model expression is not provided.");const s=t(i).assign;if(!s)return void console.warn("ngSetter: Invalid model expression.");const o=t=>{s(e,t),e.$digest()},a=new MutationObserver((t=>{let e=!1;for(const n of t)if("childList"===n.type||"characterData"===n.type){e=!0;break}e&&o(n[0].innerHTML)}));n&&n[0]?(a.observe(n[0],{childList:!0,subtree:!0,characterData:!0}),e.$on("$destroy",(()=>a.disconnect())),o(n.html())):console.warn("ngSetter: Element is not a valid DOM node.")}}}Ru.$inject=["$parse"];const Pu="0.6.4";const Du=lt("ng"),Mu=lt("$injector"),Lu={};const Iu=new class{constructor(){mt.clear(),this.cache=mt,this.eventBus=fl,this.version=Pu,this.element=At,this.bootsrappedModules=[],this.doBootstrap,window.angular=this,function(t){t.module("ng",[],["$provide",t=>{t.provider({$$sanitizeUri:Co}),t.provider("$compile",hn).directive({input:rr,textarea:rr,form:yn,script:ar,select:ur,option:hr,ngBind:dr,ngBindHtml:fr,ngBindTemplate:pr,ngClass:mr,ngClassEven:vr,ngClassOdd:gr,ngCloak:yr,ngController:br,ngDisabled:Io,ngForm:bn,ngHide:Or,ngIf:di,ngInclude:pi,ngInit:$i,ngMessages:Ao,ngMessage:jo,ngMessageExp:Vo,ngMessagesInclude:To,ngMessageDefault:No,ngNonBindable:mi,ngRef:vi,ngRepeat:yi,ngSetter:Ru,ngShow:Cr,ngStyle:bi,ngSwitch:wi,ngSwitchWhen:Ei,ngSwitchDefault:Ci,ngOptions:xi,ngTransclude:ki,ngModel:jn,ngChange:_i,pattern:Ni,ngPattern:Ni,required:Vi,ngRequired:Vi,ngMinlength:Pi,minlength:Pi,ngMaxlength:Ri,maxlength:Ri,ngValue:or,ngModelOptions:An}).directive({input:ir,ngAnimateSwap:Ta,ngAnimateChildren:ja,ngChecked:Bo,ngClick:Ho,ngDblclick:Yo,ngInclude:fi,ngHide:Wo,ngShow:Uo,ngMessages:qo,ngModel:Ko,ngReadonly:Go,ngRequired:Fo,ngValue:zo,ngSref:xu,ngSrefActive:ku,ngSrefActiveEq:ku,ngState:Au,ngView:_u,ngChannel:Nu}).directive({ngView:Tu}).directive(ji).directive(Je),t.provider({$aria:Lo,$anchorScroll:Li,$animate:hi,$$animation:$a,$animateCss:aa,$$animateCssDriver:xa,$$animateJs:da,$$animateJsDriver:_a,$$animateCache:wa,$$animateQueue:ha,$$AnimateRunner:Gi,$$animateAsyncRun:Hi,$browser:qi,$controller:Se,$exceptionHandler:Zi,$filter:as,$interpolate:Ms,$interval:ps,$$intervalFactory:Ls,$http:eo,$httpParamSerializer:Ys,$httpBackend:no,$location:lo,$log:mo,$parse:As,$$rAFScheduler:ma,$rootScope:Me,$routerGlobals:Cc,$q:cs,$sce:Ze,$sceDelegate:Qe,$$taskTrackerFactory:go,$templateCache:Yi,$templateRequest:bo,$timeout:Eo,$urlConfig:bc,$view:rl,$transitions:ql,$state:Fl,$ngViewScroll:Bl,$templateFactory:zl,$urlService:su,$stateRegistry:vu})}]).factory("$stateParams",["$routerGlobals",function(t){return t.params}]).value("$trace",Dc).info({version:Pu})}(this)}errorHandlingConfig(t){return ct(t)}bootstrap(t,e,n){n=n||{strictDi:!1};const r=At(t);if(r.injector())throw Du("btstrpd","App already bootstrapped");Array.isArray(e)&&(this.bootsrappedModules=e),this.bootsrappedModules.unshift(["$provide",t=>{t.value("$rootElement",r)}]),this.bootsrappedModules.unshift("ng");const i=ve(this.bootsrappedModules,n.strictDi);return i.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){if(qa.$injector=r,qa.$q=r.get("$q"),t.$apply((()=>{e.data("$injector",r),n(e)(t)})),!Object.prototype.hasOwnProperty.call(r,"strictDi"))try{r.invoke((()=>{}))}catch(t){r.strictDi=!!/strict mode/.exec(t&&t.toString())}r.get("$stateRegistry").get().map((t=>t.$$state().resolvables)).reduce(ec,[]).filter((t=>"deferred"===t.deps)).forEach((t=>t.deps=be(t.resolveFn,r.strictDi)))}]),i}injector(t,e){return ve(t,e)}resumeBootstrap(t){return t.forEach((t=>{this.bootsrappedModules.push(t)})),this.doBootstrap()}init(t){let e,n;const r={};nt.forEach((r=>{const i=`${r}app`;t.hasAttribute&&t.hasAttribute(i)&&(e=t,n=t.getAttribute(i))})),nt.forEach((r=>{const i=`${r}app`;let s;!e&&(s=t.querySelector(`[${i.replace(":","\\:")}]`))&&(e=s,n=s.getAttribute(i))})),e&&(r.strictDi=null!==function(t,e){let n,r;const i=nt.length;for(r=0;r<i;++r)if(n=nt[r]+e,b(n=t.getAttribute(n)))return n;return null}(e,"strict-di"),this.bootstrap(e,n?[n]:[],r))}module(t,e,n){return B(t,"module"),e&&Object.prototype.hasOwnProperty.call(Lu,t)&&(Lu[t]=null),function(t,e,n){return t[e]||(t[e]=n())}(Lu,t,(()=>{if(!e)throw Mu("nomod","Module '{0}' is not available. Possibly misspelled or not loaded",t);return new Jt(t,e,n)}))}};document.addEventListener("DOMContentLoaded",(()=>Iu.init(document)),{once:!0}),t.angular=Iu}));
1
+ /* Version: 0.6.5 - March 25, 2025 21:49:49 */
2
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).angular={})}(this,(function(t){"use strict";const e="ng-valid",n="ng-invalid",r="ng-pristine",i="ng-dirty",s="ng-untouched",o="ng-touched",a="ng-empty",c="ng-not-empty",l=/^((?:x|data)[-])/i,u=/[-]+(.)/g,h={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"},d=lt("ng");let p=0;function f(){return p+=1,p}function $(t){return b(t)?t.toLowerCase():t}function m(t){if(null==t||x(t))return!1;if(Array.isArray(t)||t instanceof Array||b(t))return!0;const e="length"in Object(t)&&t.length;return w(e)&&(e>=0&&e-1 in t||"function"==typeof t.item)}function g(t){return void 0===t}function v(t){return void 0!==t}function y(t){return null!==t&&"object"==typeof t}function b(t){return"string"==typeof t}function w(t){return"number"==typeof t}function E(t){return"[object Date]"===toString.call(t)}function C(t){switch(toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function O(t){return"function"==typeof t}function S(t){return"[object RegExp]"===toString.call(t)}function x(t){return t&&t.window===t}function A(t){return t&&t.$evalAsync&&t.$watch}function k(t){return"boolean"==typeof t}function _(t){return t&&O(t.then)}function T(t){return b(t)?t.trim():t}function j(t,e){const n=e;return t.replace(/[A-Z]/g,((t,e)=>(e?n:"")+t.toLowerCase()))}function V(t,...e){return function(t,e,n){const r=t.$$hashKey;for(let n=0,r=e.length;n<r;++n){const r=e[n];if(!y(r)&&!O(r))continue;const i=Object.keys(r);for(let e=0,n=i.length;e<n;e++){const n=i[e],s=r[n];t[n]=s}}return function(t,e){e?t.$$hashKey=e:delete t.$$hashKey}(t,r),t}(t,e)}function N(t){return parseInt(t,10)}function R(t){return Number.isNaN(t)}function P(t,e){return V(Object.create(t),e)}function D(t){return function(){return t}}function M(t){return O(t.toString)&&t.toString!==toString}function L(t){return!(!t||!(t.nodeName||t.attr&&t.find))}function I(t){return $(t.nodeName||t[0]&&t[0].nodeName)}function U(t,e){return-1!==Array.prototype.indexOf.call(t,e)}function q(t,e){const n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function H(t,e){return t===e||t!=t&&e!=e}function F(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;const n=typeof t;let r,i,s;if(n===typeof e&&"object"===n){if(!Array.isArray(t)){if(E(t))return!!E(e)&&H(t.getTime(),e.getTime());if(S(t))return!!S(e)&&t.toString()===e.toString();if(A(t)||A(e)||x(t)||x(e)||Array.isArray(e)||E(e)||S(e))return!1;for(i in s=Object.create(null),t)if("$"!==i.charAt(0)&&!O(t[i])){if(!F(t[i],e[i]))return!1;s[i]=!0}for(i in e)if(!(i in s)&&"$"!==i.charAt(0)&&v(e[i])&&!O(e[i]))return!1;return!0}if(!Array.isArray(e))return!1;if((r=t.length)===e.length){for(i=0;i<r;i++)if(!F(t[i],e[i]))return!1;return!0}}return!1}function B(t,e){if("hasOwnProperty"===t)throw d("badname","hasOwnProperty is not a valid {0} name",e)}function z(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=`${t}`;break;default:t=!M(t)||Array.isArray(t)||E(t)?Q(t):t.toString()}return t}function W(t,e,n){return t.concat(Array.prototype.slice.call(e,n))}function G(t,e){return Array.prototype.slice.call(t,e||0)}function K(t,e){const n=arguments.length>2?G(arguments,2):[];return!O(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,W(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function Y(t,e){let n=e;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?n=void 0:x(e)?n="$WINDOW":e&&window.document===e?n="$DOCUMENT":A(e)&&(n="$SCOPE"),n}function Q(t,e){if(!g(t))return w(e)||(e=e?2:null),JSON.stringify(t,Y,e)}function Z(t,e,n){const r=t.getTimezoneOffset(),i=function(t,e){const n=Date.parse(`Jan 01, 1970 00:00:00 ${t}`)/6e4;return R(n)?e:n}(e,r);return function(t,e){const n=new Date(t.getTime());return n.setMinutes(n.getMinutes()+e),n}(t,1*(i-r))}function J(t){const e={};return(t||"").split("&").forEach((t=>{let n,r,i;t&&(r=t=t.replace(/\+/g,"%20"),n=t.indexOf("="),-1!==n&&(r=t.substring(0,n),i=t.substring(n+1)),r=X(r),v(r)&&(i=!v(i)||X(i),Object.hasOwnProperty.call(e,r)?Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i))})),e}function X(t){try{return decodeURIComponent(t)}catch(t){}}function tt(t){return et(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function et(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,e?"%20":"+")}const nt=["ng-","data-ng-"];function rt(t,e){if(Array.isArray(t)){e=e||[];for(let n=0,r=t.length;n<r;n++)e[n]=t[n]}else if(y(t)){e=e||{};for(const n in t)n.startsWith("$")&&"$"===n.charAt(1)||(e[n]=t[n])}return e||t}function it(t,e="Assertion failed"){if(!t)throw new Error(e)}function st(t,e,n){if(!t)throw d("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function ot(t,e,n){return n&&Array.isArray(t)&&(t=t[t.length-1]),st(O(t),e,`not a function, got ${t&&"object"==typeof t?t.constructor.name||"Object":typeof t}`),t}const at={objectMaxDepth:5,urlErrorParamsEnabled:!0};function ct(t){var e;return y(t)&&(v(t.objectMaxDepth)&&(at.objectMaxDepth=w(e=t.objectMaxDepth)&&e>0?t.objectMaxDepth:NaN),v(t.urlErrorParamsEnabled)&&k(t.urlErrorParamsEnabled)&&(at.urlErrorParamsEnabled=t.urlErrorParamsEnabled)),at}function lt(t){const e='https://errors.angularjs.org/"NG_VERSION_FULL"/',n=`${e.replace(".","\\.")}[\\s\\S]*`,r=new RegExp(n,"g");return function(...n){const i=n[0],s=n[1];let o=`[${t?`${t}:`:""}${i}] `;const a=G(n,2).map((t=>ut(t)));let c,l;if(o+=s.replace(/\{\d+\}/g,(t=>{const e=+t.slice(1,-1);return e<a.length?a[e].replace(r,""):t})),o+=`\n${e}${t?`${t}/`:""}${i}`,ct().urlErrorParamsEnabled)for(l=0,c="?";l<a.length;l++,c="&")o+=`${c}p${l}=${encodeURIComponent(a[l])}`;return new Error(o)}}function ut(t){if("function"==typeof t)return t.toString().replace(/ \{[\s\S]*$/,"");if(g(t))return"undefined";if("string"!=typeof t){const e=[];let n=structuredClone(t);return JSON.stringify(n,((t,n)=>{const r=Y(t,n);if(y(r)){if(e.indexOf(r)>=0)return"...";e.push(r)}return r}))}return t}function ht(t){const e=t&&t.$$hashKey;if(e)return"function"==typeof e?t.$$hashKey():e;const n=typeof t;return"function"===n||"object"===n&&null!==t?(t.$$hashKey=`${n}:${f()}`,t.$$hashKey):`${n}:${t}`}function dt(t,e){return t||e?t?e?(Array.isArray(t)&&(t=t.join(" ")),Array.isArray(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function pt(t){return t.replace(l,"").replace(u,((t,e,n)=>n?e.toUpperCase():e))}function ft(t){return function(t,e){if(t.nodeType!==Node.ELEMENT_NODE)return!1;const n=t;return"true"===n.dataset[e]||"true"===n.getAttribute(e)}(t,"animate")}const $t="ng",mt=new Map;let gt=1;const vt=/-([a-z])/g,yt=/_([a-z])/g,bt={mouseleave:"mouseout",mouseenter:"mouseover"},wt=lt("jqLite"),Et=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Ct=/<([\w:-]+)/,Ot={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};Ot.tbody=Ot.tfoot=Ot.colgroup=Ot.caption=Ot.thead,Ot.th=Ot.td;const St={};"multiple,selected,checked,disabled,readOnly,required,open".split(",").forEach((t=>{St[$(t)]=t}));const xt={};function At(t){if(t instanceof At)return t;let e=!1;if(b(t)&&(t=t.trim(),e=!0),!(this instanceof At)){if(e&&"<"!==t.charAt(0))throw wt("nosel","Looking up elements via selectors is not supported by JQLite! See: http://docs.angularjs.org/api/angular.element");return new At(t)}if(e){It(this,function(t){let e=Et.exec(t);if(e)return[document.createElement(e[1])];let n=Pt(t);if(n)return n.childNodes;return[]}(t))}else O(t)?function(t){function e(){document.removeEventListener("DOMContentLoaded",e),t()}"complete"===document.readyState?setTimeout(t):document.addEventListener("DOMContentLoaded",e)}(t):It(this,t)}function kt(t,e){return e.toUpperCase()}function _t(t){return t.replace(vt,kt)}function Tt(t){return t.replace(yt,kt)}function jt(t,e){const n=t[$t],r=n&&mt.get(n);r&&(e?delete r.data[e]:r.data={},Mt(t))}function Vt(t,e=!1){let n=t[$t],r=n&&mt.get(n);return e&&!r&&(t[$t]=n=++gt,r={events:{},data:{},handle:null},mt.set(n,r)),r}function Nt(t){return!/<|&#?\w+;/.test(t)}function Rt(t){switch(t.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_NODE:case void 0:return!0;default:return!1}}function Pt(t){let e,n,r,i,s=document.createDocumentFragment(),o=[];if(Nt(t))o.push(document.createTextNode(t));else{for(e=s.appendChild(document.createElement("div")),n=(Ct.exec(t)||["",""])[1].toLowerCase(),r=Ot[n]||[],i=r.length;--i>-1;)e.appendChild(document.createElement(r[i])),e=e.firstChild;e.innerHTML=t,o=W(o,e.childNodes),e=s.firstChild,e.textContent=""}let a=document.createDocumentFragment();return a.append(...o),a}function Dt(t,e){t&&(!e&&Rt(t)&&Kt([t]),t.querySelectorAll&&Kt(t.querySelectorAll("*")))}function Mt(t){const e=t[$t],{events:n,data:r}=mt.get(e);r&&Object.keys(r).length||n&&Object.keys(n).length||(mt.delete(e),t[$t]=void 0)}function Lt(t,e,n){if(Rt(t)){let r;const i=v(n),s=!i&&e&&!y(e),o=!e,a=Vt(t,!s),c=a&&a.data;if(i)c[_t(e)]=n;else{if(o)return c;if(s)return c&&c[_t(e)];for(r in e)c[_t(r)]=e[r]}}}function It(t,e){if(!e)return;if(e.nodeType)return void(t[t.length++]=e);const n=e.length;if("number"==typeof n&&e.window!==e)for(let r=0;r<n;r++)t[t.length++]=e[r];else t[t.length++]=e}function Ut(t,e,n){t.nodeType===Node.DOCUMENT_NODE&&(t=t.documentElement);const r=Array.isArray(e)?e:[e];for(;t;){for(let e=0,i=r.length;e<i;e++)if(v(n=Lt(t,r[e])))return n;t=t.parentNode||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host}}function qt(t,e=!1){e||Dt(t);const n=t.parentNode;n&&n.removeChild(t)}function Ht(t,e){return function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};let i=e[r||n.type];const s=i?i.length:0;if(!s)return;if(g(n.immediatePropagationStopped)){const t=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),t&&t.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped};const o=i.specialHandlerWrapper||Ft;s>1&&(i=rt(i));for(let e=0;e<s;e++)n.isImmediatePropagationStopped()||o(t,n,i[e])}}function Ft(t,e,n){n.call(t,e)}function Bt(t,e,n){const r=e.relatedTarget;r&&(r===t||t.contains(r))||n.call(t,e)}function zt(t){const e=At(t)[0].cloneNode(!0),n=At(e).empty(),r=At("<div></div>").append(n[0]).html();try{return n[0].nodeType===Node.TEXT_NODE?$(r):r.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,(function(t,e){return"<"+$(e)}))}catch(t){return $(r)}}function Wt(t){let e=t[0];const n=t[t.length-1];let r;for(let i=1;e!==n&&(e=e.nextSibling);i++)(r||t[i]!==e)&&(r||(r=Array.prototype.slice.call(t,0,i)),r.push(e));return At(r||t)}function Gt(t,e){const n=St[e.toLowerCase()];return n&&xt[I(t)]&&n}function Kt(t){for(let e=0,n=t.length;e<n;e++){const n=(mt.get(t[e][$t])||{}).events;n&&n.$destroy&&At(t[e]).triggerHandler("$destroy"),jt(t[e]),At.prototype.off.call(At(t[e]))}}"input,select,option,textarea,button,form,details".split(",").forEach((t=>{xt[t]=!0})),At.prototype={toString(){const t=[];for(var e=0;e<this.length;e++)t.push(`${this[e]}`);return`[${t.join(", ")}]`},eq(t){return At(t>=0?this[t]:this[this.length+t])},length:0},At.prototype.elements=function(){let t=[];for(let e=0;e<this.length;e++)t.push(this[e]);return t},At.prototype.empty=function(){for(let t=0;t<this.length;t++){const e=this[t];Dt(e,!0),[Node.ELEMENT_NODE,Node.DOCUMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(e.nodeType)&&e.replaceChildren()}return this},At.prototype.scope=function(){return Lt(this[0],"$scope")||Ut(this[0].parentNode||this[0],["$isolateScope","$scope"])},At.prototype.isolateScope=function(){return Lt(this[0],"$isolateScope")||Lt(this[0],"$isolateScopeNoTemplate")},At.prototype.controller=function(t){return function(t,e){return Ut(t,`$${e||"ngController"}Controller`)}(this[0],t)},At.prototype.injector=function(){return Ut(this[0],"$injector")},At.prototype.on=function(t,e){for(let n=0;n<this.length;n++){const r=this[n];if(!Rt(r))return;const i=Vt(r,!0);i.handle||(i.handle=Ht(r,i.events));const s=t.indexOf(" ")>=0?t.split(" "):[t];let o=s.length;const a=function(t,n,s){let o=i.events[t];o||(o=i.events[t]=[],o.specialHandlerWrapper=n,"$destroy"===t||s||r.addEventListener(t,i.handle)),o.push(e)};for(;o--;)t=s[o],bt[t]?(a(bt[t],Bt),a(t,void 0,!0)):a(t)}return this},At.prototype.off=function(t,e){for(let n=0;n<this.length;n++){const r=this[n],i=Vt(r),s=i&&i.events,o=i&&i.handle;if(!o)return;if(t){const n=function(t){const n=s[t];v(e)&&Array.isArray(n)&&q(n,e),v(e)&&n&&n.length>0||(r.removeEventListener(t,o),delete s[t])};t.split(" ").forEach((t=>{n(t),bt[t]&&n(bt[t])}))}else for(t in s)"$destroy"!==t&&r.removeEventListener(t,o),delete s[t];Mt(r)}return this},At.prototype.removeData=function(t){for(let e=0;e<this.length;e++){jt(this[e],t)}return this},At.prototype.inheritedData=function(t,e){for(let n=0;n<this.length;n++){let n=Ut(this[0],t,e);return e?this:n}},At.prototype.html=function(t){const e=this[0];if(e)return g(t)?e.innerHTML:(Dt(e,!0),e.innerHTML=t,this)},At.prototype.text=function(t){let e="";for(let n=0;n<this.length;n++){const r=this[n];if(g(t)){const{nodeType:t}=r;e+=t===Node.ELEMENT_NODE||t===Node.TEXT_NODE?r.textContent:""}else r.textContent=t}return g(t)?e:this},At.prototype.val=function(t){for(let e=0;e<this.length;e++){const n=this[e];if(g(t)){if(n.multiple&&"select"===I(n)){const t=[];return Array.from(n.options).forEach((e=>{e.selected&&t.push(e.value||e.text)})),t}return n.value}return n.value=t,this}},At.prototype.attr=function(t,e){for(let n=0;n<this.length;n++){const r=this[n];let i;const{nodeType:s}=r;if(s===Node.TEXT_NODE||s===Node.ATTRIBUTE_NODE||s===Node.COMMENT_NODE||!r.getAttribute)continue;const o=$(t),a=St[o];if(y(t))for(let e in t)r.setAttribute(e,a?o:t[e]);else{if(!v(e))return i=r.getAttribute(t),a&&null!==i&&(i=o),null===i?void 0:i;null===e||!1===e&&a?r.removeAttribute(t):r.setAttribute(t,a?o:e)}}if(v(e)||y(t))return this},At.prototype.data=function(t,e){let n;const r=this.length;if(g(e)){if(y(t)){for(n=0;n<r;n++)Lt(this[n],t);return this}const i=g(e)?Math.min(r,1):r;for(let n=0;n<i;n++){const r=Lt(this[n],t,e);e=e?e+r:r}return e}for(n=0;n<r;n++)Lt(this[n],t,e);return this},At.prototype.replaceWith=function(t){let e,n=function(t,e){let n;const r=t.parentNode;Dt(t);const i=new At(e);for(let e=0;e<i.length;e++){const s=i[e];n?r.insertBefore(s,n.nextSibling):r.replaceChild(s,t),n=s}};for(let r=0;r<this.length;r++)It(e,n(this[r],t));return v(e)?e:this},At.prototype.children=function(){let t;for(let n=0;n<this.length;n++)t=At((e=this[n],Array.from(e.childNodes).filter((t=>t.nodeType===Node.ELEMENT_NODE))));var e;return v(t)?t:this},At.prototype.append=function(t){for(let e=0;e<this.length;e++){const n=this[e],{nodeType:r}=n;if(r!==Node.ELEMENT_NODE&&r!==Node.DOCUMENT_FRAGMENT_NODE)return this;let i=new At(t);for(let t=0;t<i.length;t++){const e=i[t];n.appendChild(e)}}return this},At.prototype.prepend=function(t){for(let e=0;e<this.length;e++){const n=this[e];if(n.nodeType===Node.ELEMENT_NODE){const e=n.firstChild,r=new At(t);for(let t=0;t<r.length;t++)n.insertBefore(r[t],e)}}return this},At.prototype.after=function(t){for(let e=0;e<this.length;e++){const n=this[e];let r=n;const i=n.parentNode;if(i){let e=new At(t);for(let t=0,n=e.length;t<n;t++){const n=e[t];i.insertBefore(n,r.nextSibling),r=n}}}return this},At.prototype.remove=function(t=!1){for(let e=0;e<this.length;e++){qt(this[e],t)}return this},At.prototype.detach=function(){for(let t=0;t<this.length;t++){qt(this[t],!0)}return this},At.prototype.parent=function(){let t,e=t=>{const e=t.parentNode;return e&&e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?e:null};for(let n=0,r=this.length;n<r;n++)g(t)?(t=e(this[n]),v(t)&&(t=At(t))):It(t,e(this[n]));return v(t)?t:this},At.prototype.find=function(t){let e;for(let n=0,r=this.length;n<r;n++){const r=this[n];g(e)?(e=r.getElementsByTagName?r.getElementsByTagName(t):[],v(e)&&(e=At(e))):r.getElementsByTagName&&It(e,r.getElementsByTagName(t))}return v(e)?e:this},At.prototype.triggerHandler=function(t,e){let n,r=function(t,e,n){let r,i,s;const o=e.type||e,a=Vt(t),c=a&&a.events,l=c&&c[o];l&&(r={preventDefault(){this.defaultPrevented=!0},isDefaultPrevented(){return!0===this.defaultPrevented},stopImmediatePropagation(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped(){return!0===this.immediatePropagationStopped},stopPropagation:()=>{},type:o,target:t},e.type&&(r=V(r,e)),i=rt(l),s=n?[r].concat(n):[r],i.forEach((e=>{r.isImmediatePropagationStopped()||e.apply(t,s)})))};for(let i=0,s=this.length;i<s;i++)g(n)?r(this[i],t,e):It(n,r(this[i],t,e));return v(n)?n:this};const Yt="$provide",Qt="$injector",Zt="$compileProvider";class Jt{constructor(t,e,n){it(b(t),"name required"),it(Array.isArray(e),"requires array required"),this.name=t,this.requires=e,this.invokeQueue=[],this.configBlocks=[],this.runBlocks=[],this.infoState={},n&&this.config(n)}info(t){return v(t)?(it(y(t),"module info value must be an object"),this.infoState=t,this):this.infoState}value(t,e){return this.invokeQueue.push([Yt,"value",[t,e]]),this}constant(t,e){return this.invokeQueue.unshift([Yt,"constant",[t,e]]),this}config(t){return this.configBlocks.push([Qt,"invoke",[t]]),this}run(t){return this.runBlocks.push(t),this}component(t,e){return e&&O(e)&&(e.$$moduleName=t),this.invokeQueue.push([Zt,"component",[t,e]]),this}factory(t,e){return e&&O(e)&&(e.$$moduleName=t),this.invokeQueue.push([Yt,"factory",[t,e]]),this}service(t,e){return e&&O(e)&&(e.$$moduleName=t),this.invokeQueue.push([Yt,"service",[t,e]]),this}provider(t,e){return e&&O(e)&&(e.$$moduleName=t),this.invokeQueue.push([Yt,"provider",[t,e]]),this}decorator(t,e){return e&&O(e)&&(e.$$moduleName=t),this.configBlocks.push([Yt,"decorator",[t,e]]),this}directive(t,e){return e&&O(e)&&(e.$$moduleName=t),this.invokeQueue.push([Zt,"directive",[t,e]]),this}animation(t,e){return e&&O(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$animateProvider","register",[t,e]]),this}filter(t,e){return e&&O(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$filterProvider","register",[t,e]]),this}controller(t,e){return e&&O(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$controllerProvider","register",[t,e]]),this}}const Xt=/^([^(]+?)=>/,te=/^[^(]*\(\s*([^)]*)\)/m,ee=/,/,ne=/^\s*(_?)(\S+?)\1\s*$/,re=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,ie=lt(Qt),se="Provider",oe=!0;class ae{constructor(t){this.cache={},this.strictDi=t,this.path=[],this.modules={}}get(t){if(Object.prototype.hasOwnProperty.call(this.cache,t)){if(this.cache[t]===oe)throw ie("cdep","Circular dependency found: {0}",`${t} <- ${this.path.join(" <- ")}`);return this.cache[t]}this.path.unshift(t),this.cache[t]=oe;try{this.cache[t]=this.factory(t)}catch(e){throw delete this.cache[t],e}return this.cache[t]}injectionArgs(t,e,n){const r=[],i=function(t,e,n){let r,i,s;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw ie("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=function(t){const e=ue(t).replace(re,""),n=e.match(Xt)||e.match(te);return n}(t),i[1].split(ee).forEach((function(t){t.replace(ne,(function(t,e,n){r.push(n)}))}))}t.$inject=r}}else Array.isArray(t)?(s=t.length-1,ot(t[s],"fn"),r=t.slice(0,s)):ot(t,"fn",!0);return r}(t,this.strictDi,n);for(let t=0,{length:n}=i;t<n;t++){const n=i[t];if("string"!=typeof n)throw ie("itkn","Incorrect injection token! Expected service name as string, got {0}",n);r.push(e&&Object.prototype.hasOwnProperty.call(e,n)?e[n]:this.get(n))}return r}invoke(t,e,n,r){"string"==typeof n&&(r=n,n=null);const i=this.injectionArgs(t,n,r);return Array.isArray(t)&&(t=t[t.length-1]),/^class\b/.test(ue(t))?(i.unshift(null),new(Function.prototype.bind.apply(t,i))):t.apply(e,i)}instantiate(t,e,n){const r=Array.isArray(t)?t[t.length-1]:t,i=this.injectionArgs(t,e,n);return i.unshift(null),new(Function.prototype.bind.apply(r,i))}loadNewModules(){}factory(t){console.error(`Unhandled ${t}`)}}class ce extends ae{constructor(t,e){super(e),this.cache=t}factory(t){throw this.path.push(t),ie("unpr","Unknown provider: {0}",this.path.join(" <- "))}}class le extends ae{constructor(t,e){super(t),this.providerInjector=e,this.modules=this.providerInjector.modules}factory(t){const e=this.providerInjector.get(t+se);return this.invoke(e.$get,e,void 0,t)}has(t){const e=Object.prototype.hasOwnProperty.call(this.providerInjector.cache,t+se),n=Object.prototype.hasOwnProperty.call(this.cache,t);return e||n}}function ue(t){return Function.prototype.toString.call(t)}const he=/^([^(]+?)=>/,de=/^[^(]*\(\s*([^)]*)\)/m,pe=/,/,fe=/^\s*(_?)(\S+?)\1\s*$/,$e=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,me=lt(Qt),ge="Provider";function ve(t,e=!1){it(Array.isArray(t),"modules required");const n=new Map,r={$provide:{provider:we(c),factory:we(l),service:we((function(t,e){return l(t,[Qt,t=>t.instantiate(e)])})),value:we((function(t,e){return r[t+ge]={$get:()=>e}})),constant:we((function(t,e){B(t,"constant"),i.cache[t]=e,s.cache[t]=e})),decorator:function(t,e){const n=i.get(t+ge),r=n.$get;n.$get=function(){const t=o.invoke(r,n);return o.invoke(e,null,{$delegate:t})}}}},i=r.$injector=new ce(r,e),s=new le(e,i);r.$injectorProvider={$get:()=>s};let o=s;const a=u(t);return o=s.get(Qt),a.forEach((t=>{t&&o.invoke(t)})),o.loadNewModules=function(t){u(t).forEach((t=>{t&&o.invoke(t)}))},o;function c(t,e){let n;if(B(t,"service"),n=O(e)||Array.isArray(e)?i.instantiate(e):e,!n.$get)throw me("pget","Provider '{0}' must define $get factory method.",t);return r[t+ge]=n,n}function l(t,e){return c(t,{$get:()=>{const n=o.invoke(e,this);if(g(n))throw me("undef","Provider '{0}' must return a value from $get factory method.",t);return n}})}function u(t){st(g(t)||Array.isArray(t),"modulesToLoad","not an array");let e=[];return t.forEach((t=>{if(!n.get(t)){n.set(t,!0);try{if(b(t)){const n=window.angular.module(t);o.modules[t]=n,e=e.concat(u(n.requires)).concat(n.runBlocks);n.invokeQueue.concat(n.configBlocks).forEach((t=>{const e=i.get(t[0]);e[t[1]].apply(e,t[2])}))}else O(t)||Array.isArray(t)?e.push(i.invoke(t)):ot(t,"module")}catch(e){throw Array.isArray(t)&&(t=t[t.length-1]),e.message&&e.stack&&-1===e.stack.indexOf(e.message)&&(e.message=`${e.message}\n${e.stack}`),me("modulerr","Failed to instantiate module {0} due to:\n{1}",t,e.stack||e.message||e)}}})),e}}function ye(t){const e=function(t){return Function.prototype.toString.call(t)}(t).replace($e,"");return e.match(he)||e.match(de)}function be(t,e,n){let r,i,s;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw me("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=ye(t),i[1].split(pe).forEach((function(t){t.replace(fe,(function(t,e,n){r.push(n)}))}))}t.$inject=r}}else Array.isArray(t)?(s=t.length-1,ot(t[s],"fn"),r=t.slice(0,s)):ot(t,"fn",!0);return r}function we(t){return function(e,n){if(!y(e))return t(e,n);Object.entries(e).forEach((([e,n])=>{t(e,n)}))}}const Ee=lt("$controller"),Ce=/^(\S+)(\s+as\s+([\w$]+))?$/;function Oe(t,e){if(b(t)){const e=Ce.exec(t);if(e)return e[3]}}class Se{constructor(){this.controllers=new Map}has(t){return this.controllers.has(t)}register(t,e){B(t,"controller"),y(t)?Object.entries(t).forEach((([t,e])=>{this.controllers.set(t,e)})):this.controllers.set(t,e)}$get=["$injector",t=>(e,n,r,i)=>{let s,o,a,c=i&&b(i)?i:null;if(r=!0===r,b(e)){if(o=e.match(Ce),!o)throw Ee("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",e);if(a=o[1],c=c||o[3],!(e=this.controllers.get(a)))throw Ee("ctrlreg","The controller with the name '{0}' is not registered.",a);ot(e,a,!0)}if(r){const r=(Array.isArray(e)?e[e.length-1]:e).prototype;return s=Object.create(r||null),c&&this.addIdentifier(n,c,s,a||e.name),function(){const r=t.invoke(e,s,n,a);return r!==s&&(y(r)||O(r))&&(s=r,c&&this.addIdentifier(n,c,s,a||e.name)),s}.bind(this,{instance:s,identifier:c})}return s=t.instantiate(e,n,a),c&&this.addIdentifier(n,c,s,a||e.name),s}];addIdentifier(t,e,n,r){if(!t||!y(t.$scope))throw lt("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,e);t.$scope[e]=n}}const xe={NONE:0,APPLY:1,DIGEST:2},Ae=lt("$rootScope"),ke=[],_e=[],Te=[];let je,Ve,Ne,Re=0,Pe=null,De=null;class Me{constructor(){this.rootScope=new Le(!0)}$get=["$exceptionHandler","$parse","$browser",(t,e,n)=>(Ne=t,je=e,Ve=n,this.rootScope)]}class Le{constructor(t=!1){this.isRoot=t,this.$id=f(),this.$$phase=xe.NONE,this.$parent=null,this.$root=this,this.$$watchers=[],this.$$digestWatchIndex=-1,this.$$nextSibling=null,this.$$prevSibling=null,this.$$childHead=null,this.$$childTail=null,this.$$destroyed=!1,this.$$suspended=!1,this.$$listeners=new Map,this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}$new(t){let e=t?new Le:Object.create(this);return t?e.$root=this.$root:(e.$id=f(),e.$$watchers=[],e.$$nextSibling=null,e.$$childHead=null,e.$$childTail=null,e.$$listeners=new Map,e.$$listenerCount={},e.$$watchersCount=0,e.$$suspended=!1),e.$parent=this,e.$$prevSibling=e.$parent.$$childTail,e.$parent.$$childHead?(e.$parent.$$childTail.$$nextSibling=e,e.$parent.$$childTail=e):(e.$parent.$$childHead=e,e.$parent.$$childTail=e),t&&e.$on("$destroy",(t=>{t.currentScope.$$destroyed=!0})),e}$transcluded(t){let e=Object.create(this);return e.$id=f(),e.$$watchers=[],e.$$nextSibling=null,e.$$childHead=null,e.$$childTail=null,e.$$listeners=new Map,e.$$listenerCount={},e.$$watchersCount=0,e.$$suspended=!1,e.$parent=t||this,e.$$prevSibling=e.$parent.$$childTail,e.$parent.$$childHead?(e.$parent.$$childTail.$$nextSibling=e,e.$parent.$$childTail=e):(e.$parent.$$childHead=e,e.$parent.$$childTail=e),t!==this&&e.$on("$destroy",(t=>{t.currentScope.$$destroyed=!0})),e}$watch(t,e,n){const r=je(t),i=O(e)?e:()=>{};if(r.$$watchDelegate)return r.$$watchDelegate(this,i,n,r,t);const s={fn:i,last:Ie,get:r,exp:t,eq:!!n};return Pe=null,0===this.$$watchers.length&&(this.$$digestWatchIndex=-1),this.$$watchers.unshift(s),this.$$digestWatchIndex++,this.incrementWatchersCount(1),()=>{const t=q(this.$$watchers,s);t>=0&&(this.incrementWatchersCount(-1),t<this.$$digestWatchIndex&&this.$$digestWatchIndex--),Pe=null}}$watchGroup(t,e){const n=new Array(t.length),r=new Array(t.length),i=[],s=this;let o=!1,a=!0;if(!t.length){let t=!0;return s.$evalAsync((()=>{t&&e(r,r,s)})),function(){t=!1}}if(1===t.length)return this.$watch(t[0],((t,i,s)=>{r[0]=t,n[0]=i,e(r,t===i?r:n,s)}));function c(){o=!1;try{a?(a=!1,e(r,r,s)):e(r,n,s)}finally{for(let e=0;e<t.length;e++)n[e]=r[e]}}return Object.entries(t).forEach((([t,e])=>{const n=s.$watch(e,(e=>{r[t]=e,o||(o=!0,s.$evalAsync(c))}));i.push(n)})),function(){for(;i.length;)i.shift()()}}$watchCollection(t,e){p.$$pure=je(t).literal,p.$stateful=!p.$$pure;const n=this;let r,i,s;const o=e.length>1;let a=0;const c=je(t,p),l=[];let u={},h=!0,d=0;function p(t){let e,n,s,o,c;if(r=t,!g(r)){if(y(r))if(m(r)){i!==l&&(i=l,d=i.length=0,a++),e=r.length,d!==e&&(a++,i.length=d=e);for(let t=0;t<e;t++)c=i[t],o=r[t],s=c!=c&&o!=o,s||c===o||(a++,i[t]=o)}else{for(n in i!==u&&(i=u={},d=0,a++),e=0,r)Object.hasOwnProperty.call(r,n)&&(e++,o=r[n],c=i[n],n in i?(s=c!=c&&o!=o,s||c===o||(a++,i[n]=o)):(d++,i[n]=o,a++));if(d>e)for(n in a++,i)Object.hasOwnProperty.call(r,n)||(d--,delete i[n])}else i!==r&&(i=r,a++);return a}}return this.$watch(c,(function(){if(h?(h=!1,e(r,r,n)):e(r,s,n),o)if(y(r))if(m(r)){s=new Array(r.length);for(let t=0;t<r.length;t++)s[t]=r[t]}else{s={};for(const t in r)Object.hasOwnProperty.call(r,t)&&(s[t]=r[t])}else s=r}))}$digest(){let t,e,n,r,i,s,o,a,c=10;const l=ke.length?this.$root:this,u=[];let h,d;this.beginPhase(xe.DIGEST),Ve.$$checkUrlChange(),this.isRoot&&null!==De&&(Ve.cancel(De),Ue(),De=null),Pe=null;do{s=!1,a=l;for(let t=0;t<ke.length;t++){try{d=ke[t],n=d.fn,n(d.scope,d.locals)}catch(t){Ne(t)}Pe=null}ke.length=0;do{if(i=!a.$$suspended&&a.$$watchers)for(a.$$digestWatchIndex=i.length;a.$$digestWatchIndex--;)try{const o=i[a.$$digestWatchIndex];if(o)if(r=o.get,(t=r(a))===(e=o.last)||(o.eq?F(t,e):R(t)&&R(e))){if(o===Pe){s=!1;break}}else s=!0,Pe=o,o.last=o.eq?structuredClone(t):t,n=o.fn,n(t,e===Ie?t:e,a),c<5&&(h=4-c,u[h]||(u[h]=[]),u[h].push({msg:O(o.exp)?`fn: ${o.exp.name||o.exp.toString()}`:o.exp,newVal:t,oldVal:e}))}catch(t){Ne(t)}if(!(o=!a.$$suspended&&a.$$watchersCount&&a.$$childHead||a!==l&&a.$$nextSibling))for(;a!==l&&!(o=a.$$nextSibling);)a=a.$parent}while(a=o);if((s||ke.length)&&!c--)throw this.clearPhase(),Ae("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",10,u)}while(s||ke.length);for(this.clearPhase();Re<_e.length;)try{_e[Re++]()}catch(t){Ne(t)}_e.length=Re=0,Ve.$$checkUrlChange()}beginPhase(t){if(this.$root.$$phase!==xe.NONE)throw Ae("inprog","digest already in progress",this.$root.$$phase);this.$root.$$phase=t}$suspend(){this.$$suspended=!0}$isSuspended(){return this.$$suspended}$resume(){this.$$suspended=!1}$destroy(){if(!this.$$destroyed){this.$broadcast("$destroy"),this.$$destroyed=!0,this===this.$root&&Ve.$$applicationDestroyed(),this.incrementWatchersCount(-this.$$watchersCount);for(const t in this.$$listenerCount)this.decrementListenerCount(this.$$listenerCount[t],t);this.$parent&&(this.$parent.$$childHead===this&&(this.$parent.$$childHead=this.$$nextSibling),this.$parent.$$childTail===this&&(this.$parent.$$childTail=this.$$prevSibling)),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$applyAsync=()=>{},this.$evalAsync=()=>{},this.$on=this.$watch=this.$watchGroup=function(){return()=>{}},this.$$listeners.clear(),this.$$nextSibling=null,this.$parent=null,this.$$nextSibling=null,this.$$prevSibling=null,this.$$childHead=null,this.$$childTail=null,this.$root=null,this.$$watchers=null}}$eval(t,e){return je(t)(this,e)}$evalAsync(t,e){let n;return this.$root.$$phase!==xe.NONE||ke.length||(n=Ve.defer((()=>{ke.length&&this.$root.$digest()}),null,"$evalAsync")),ke.push({scope:this,fn:je(t),locals:e}),n}$$postDigest(t){_e.push(t)}$apply(t){try{this.beginPhase(xe.APPLY);try{return this.$eval(t)}finally{this.clearPhase()}}catch(t){Ne(t)}finally{this.retry()}}retry(){try{this.$root.$digest()}catch(t){throw Ne(t),t}}clearPhase(){this.$root.$$phase=xe.NONE}$applyAsync(t){const e=this;t&&Te.push((()=>e.$eval(t))),null===De&&(De=Ve.defer(Ue,null,"$applyAsync"))}$on(t,e){let n=this.$$listeners.get(t);n||(n=[],this.$$listeners.set(t,n)),n.push(e);let r=this;do{r.$$listenerCount[t]=(r.$$listenerCount[t]??0)+1}while(r=r.$parent);return()=>{const r=n.indexOf(e);-1!==r&&(delete n[r],this.decrementListenerCount(1,t))}}incrementWatchersCount(t){this.$$watchersCount+=t,this.$parent&&this.$parent.incrementWatchersCount(t)}decrementListenerCount(t,e){let n=this;for(;n;n=n.$parent)void 0!==n.$$listenerCount[e]&&(n.$$listenerCount[e]-=t,0===n.$$listenerCount[e]&&delete n.$$listenerCount[e])}$emit(t,...e){const n=[];let r,i=this,s=!1;const o={name:t,targetScope:i,stopPropagation(){s=!0},preventDefault(){o.defaultPrevented=!0},defaultPrevented:!1},a=W([o],[o].concat(e),1);let c,l;do{for(r=i.$$listeners.get(t)||n,o.currentScope=i,c=0,l=r.length;c<l;c++)if(r[c])try{r[c].apply(null,a)}catch(t){Ne(t)}else r.splice(c,1),c--,l--;if(s)break;i=i.$parent}while(i);return o.currentScope=null,o}$broadcast(t,...e){const n=this;let r=n,i=n;const s={name:t,targetScope:n,preventDefault(){s.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[t])return s;const o=W([s],[s].concat(e),1);let a,c,l;for(;r=i;){for(s.currentScope=r,a=r.$$listeners.get(t)||[],c=0,l=a.length;c<l;c++)if(a[c])try{a[c].apply(null,o)}catch(t){Ne(t)}else a.splice(c,1),c--,l--;if(!(i=r.$$listenerCount[t]&&r.$$childHead||r!==n&&r.$$nextSibling))for(;r&&r!==n&&!(i=r.$$nextSibling);)r=r.$parent}return s.currentScope=null,s}}function Ie(){}function Ue(){for(;Te.length;)try{Te.shift()()}catch(t){Ne(t)}De=null}const qe=document.createElement("a"),He=Be(window.location.href);let Fe;function Be(t){if(!b(t))return t;const e=t;qe.setAttribute("href",e);let{hostname:n}=qe;return!("[::1]"===qe.hostname)&&n.indexOf(":")>-1&&(n=`[${n}]`),{href:qe.href,protocol:qe.protocol?qe.protocol.replace(/:$/,""):"",host:qe.host,search:qe.search?qe.search.replace(/^\?/,""):"",hash:qe.hash?qe.hash.replace(/^#/,""):"",hostname:n,port:qe.port,pathname:"/"===qe.pathname.charAt(0)?qe.pathname:`/${qe.pathname}`}}function ze(t){return We(t,function(){if(document.baseURI)return document.baseURI;Fe||(Fe=document.createElement("a"),Fe.href=".",Fe=Fe.cloneNode(!1));return Fe.href}())}function We(t,e){return t=Be(t),e=Be(e),t.protocol===e.protocol&&t.host===e.host}qe.href="http://[::1]";const Ge=lt("$sce"),Ke={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"};function Ye(t){if("self"===t)return t;if(b(t)){if(t.indexOf("***")>-1)throw Ge("iwcard","Illegal sequence *** in string matcher. String: {0}",t);return t=(e=t,e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1")).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp(`^${t}$`)}var e;if(S(t))return new RegExp(`^${t.source}$`);throw Ge("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function Qe(){this.SCE_CONTEXTS=Ke;let t=["self"],e=[];this.trustedResourceUrlList=function(e){return arguments.length&&(t=e.map((t=>Ye(t)))),t},this.bannedResourceUrlList=function(t){return arguments.length&&(e=t.map((t=>Ye(t)))),e},this.$get=["$injector","$$sanitizeUri",function(n,r){let i=function(){throw Ge("unsafe","Attempting to use an unsafe value in a safe context.")};function s(t,e){return"self"===t?We(e,He)||ze(e):!!t.exec(e.href)}function o(t){const e=function(t){this.$$unwrapTrustedValue=function(){return t}};return t&&(e.prototype=new t),e.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},e}n.has("$sanitize")&&(i=n.get("$sanitize"));const a=o(),c={};return c[Ke.HTML]=o(a),c[Ke.CSS]=o(a),c[Ke.MEDIA_URL]=o(a),c[Ke.URL]=o(c[Ke.MEDIA_URL]),c[Ke.JS]=o(a),c[Ke.RESOURCE_URL]=o(c[Ke.URL]),{trustAs:function(t,e){const n=Object.prototype.hasOwnProperty.call(c,t)?c[t]:null;if(!n)throw Ge("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||g(e)||""===e)return e;if("string"!=typeof e)throw Ge("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new n(e)},getTrusted:function(n,o){if(null===o||g(o)||""===o)return o;const a=Object.prototype.hasOwnProperty.call(c,n)?c[n]:null;if(a&&o instanceof a)return o.$$unwrapTrustedValue();if(O(o.$$unwrapTrustedValue)&&(o=o.$$unwrapTrustedValue()),n===Ke.MEDIA_URL||n===Ke.URL)return r(o.toString(),n===Ke.MEDIA_URL);if(n===Ke.RESOURCE_URL){if(function(n){const r=Be(n.toString());let i,o,a=!1;for(i=0,o=t.length;i<o;i++)if(s(t[i],r)){a=!0;break}if(a)for(i=0,o=e.length;i<o;i++)if(s(e[i],r)){a=!1;break}return a}(o))return o;throw Ge("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",o.toString())}if(n===Ke.HTML)return i();throw Ge("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(t){return t instanceof a?t.$$unwrapTrustedValue():t}}}]}function Ze(){let t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,n){const r=rt(Ke);r.isEnabled=function(){return t},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,t||(r.trustAs=r.getTrusted=function(t,e){return e},r.valueOf=function(t){return t}),r.parseAs=function(t,n){const i=e(n);return i.literal&&i.constant?i:e(n,(e=>r.getTrusted(t,e)))};const i=r.parseAs,{getTrusted:s}=r,{trustAs:o}=r;return Object.entries(Ke).forEach((([t,e])=>{const n=$(t);r[Tt(`parse_as_${n}`)]=function(t){return i(e,t)},r[Tt(`get_trusted_${n}`)]=function(t){return s(e,t)},r[Tt(`trust_as_${n}`)]=function(t){return o(e,t)}})),r}]}const Je={},Xe={blur:!0,focus:!0};function tn(t,e,n,r,i,s){return{restrict:"A",compile(o,a){const c=t(a[r]);return function(t,r){r.on(i,(r=>{const i=function(){c(t,{$event:r})};if(e.$$phase===xe.NONE)t.$apply(i);else if(s)t.$evalAsync(i);else try{i()}catch(t){n(t)}}))}}}}"click dblclick submit focus blur copy cut paste".split(" ").forEach((t=>{const e=pt(`ng-${t}`);Je[e]=["$parse","$rootScope","$exceptionHandler",(n,r,i)=>tn(n,r,i,e,t,Xe[t])]}));const en=lt("$compile"),nn=/^\w/,rn=document.createElement("div");class sn{constructor(t,e,n,r,i,s){if(this.$rootScope=t,this.$animate=e,this.$exceptionHandler=n,this.$sce=r,s){const t=Object.keys(s);for(let e=0,n=t.length;e<n;e++){const n=t[e];this[n]=s[n]}}else this.$attr={};this.$$element=i}$normalize=pt;$addClass(t){t&&t.length>0&&(ft(this.$$element[0])?this.$animate.addClass(this.$$element,t):this.$$element[0].classList.add(t.trim()))}$removeClass(t){t&&t.length>0&&(ft(this.$$element[0])?this.$animate.removeClass(this.$$element,t):this.$$element[0].classList.remove(t.trim()))}$updateClass(t,e){const n=on(t,e);n&&n.length&&(ft(this.$$element[0])?this.$animate.addClass(this.$$element,n):this.$$element[0].classList.add(...n.trim().split(/\s+/)));const r=on(e,t);r&&r.length&&(ft(this.$$element[0])?this.$animate.removeClass(this.$$element,r):this.$$element[0].classList.remove(...r.trim().split(/\s+/)))}$set(t,e,n,r){const i=Gt(this.$$element[0],t),s=h[t];let o=t;i?(this.$$element[0][t]=e,r=i):s&&(this[s]=e,o=s),this[t]=e,r?this.$attr[t]=r:(r=this.$attr[t])||(this.$attr[t]=r=j(t,"-")),"img"===this.$$element[0].nodeName.toLowerCase()&&"srcset"===t&&(this[t]=e=this.sanitizeSrcset(e,"$set('srcset', value)")),!1!==n&&(null===e||g(e)?this.$$element[0].removeAttribute(r):nn.test(r)?i&&!1===e?this.$$element[0].removeAttribute(r):this.$$element.attr(r,e):this.setSpecialAttr(this.$$element[0],r,e));const{$$observers:a}=this;a&&a[o]&&a[o].forEach((t=>{try{t(e)}catch(t){this.$exceptionHandler(t)}}))}$observe(t,e){const n=this.$$observers||(this.$$observers=Object.create(null)),r=n[t]||(n[t]=[]);return r.push(e),this.$rootScope.$evalAsync((()=>{r.$$inter||!Object.prototype.hasOwnProperty.call(this,t)||g(this[t])||e(this[t])})),function(){q(r,e)}}setSpecialAttr(t,e,n){rn.innerHTML=`<span ${e}>`;const{attributes:r}=rn.firstChild,i=r[0];r.removeNamedItem(i.name),i.value=n,t.attributes.setNamedItem(i)}sanitizeSrcset(t,e){if(!t)return t;if(!b(t))throw en("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',e,t.toString());for(var n="",r=T(t),i=/\s/.test(r)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,s=r.split(i),o=Math.floor(s.length/2),a=0;a<o;a++){var c=2*a;n+=this.$sce.getTrustedMediaUrl(T(s[c])),n+=" "+T(s[c+1])}var l=T(s[2*a]).split(/\s/);return n+=this.$sce.getTrustedMediaUrl(T(l[0])),2===l.length&&(n+=" "+T(l[1])),n}}function on(t,e){let n="";const r=t.split(/\s+/),i=e.split(/\s+/);t:for(let t=0;t<r.length;t++){const e=r[t];for(let t=0;t<i.length;t++)if(e===i[t])continue t;n+=(n.length>0?" ":"")+e}return n}function an(t,e){return{restrict:"A",compile:()=>(n,r)=>{const i=r[0];""===e&&(e=t);const s=_t(e);n[s]||(n[s]=i.getAttribute(t));const o=new MutationObserver((e=>{const r=e[0].target.getAttribute(t);n[s]!==r&&(n[s]=r,n.$digest())}));o.observe(i,{attributes:!0,attributeFilter:[t]}),n.$on("$destroy",(()=>{o.disconnect()}))}}}let cn=10;const ln=lt("$compile"),un=new Object,hn=["ngIf","ngRepeat"],dn="Directive";function pn(t,e){const n={},r={ngSrc:!0,ngSrcset:!0,src:!0,srcset:!0},i=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,s=/^(on[a-z]+|formaction)$/,o=Object.create(null);function a(t,e,n){const r=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,i=Object.create(null);return Object.entries(t).forEach((([t,s])=>{if((s=s.trim())in o)return void(i[t]=o[s]);const a=s.match(r);if(!a)throw ln("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",e,t,s,n?"controller bindings definition":"isolate scope definition");i[t]={mode:a[1][0],collection:"*"===a[2],optional:"?"===a[3],attrName:a[4]||t},a[4]&&(o[s]=i[t])})),i}function c(t,e){const n={isolateScope:null,bindToController:null};if(y(t.scope)&&(!0===t.bindToController?(n.bindToController=a(t.scope,e,!0),n.isolateScope={}):n.isolateScope=a(t.scope,e,!1)),y(t.bindToController)&&(n.bindToController=a(t.bindToController,e,!0)),n.bindToController&&!t.controller)throw ln("noctrl","Cannot bind to controller without directive '{0}'s controller.",e);return n}this.directive=function e(r,s){return st(r,"name"),B(r,"directive"),b(r)?(!function(t){const e=t.charAt(0);if(!e||e!==$(e))throw ln("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw ln("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}(r),st(s,"directiveFactory"),Object.prototype.hasOwnProperty.call(n,r)||(n[r]=[],t.factory(r+dn,["$injector","$exceptionHandler",function(t,e){const s=[];return n[r].forEach(((n,o)=>{try{let e=t.invoke(n);O(e)?e={compile:D(e)}:!e.compile&&e.link&&(e.compile=D(e.link)),e.priority=e.priority||0,e.index=o,e.name=e.name||r,e.require=function(t){const e=t.require||t.controller&&t.name;return!Array.isArray(e)&&y(e)&&Object.entries(e).forEach((([t,n])=>{const r=n.match(i);n.substring(r[0].length)||(e[t]=r[0]+t)})),e}(e),e.restrict=function(t,e){if(t&&(!b(t)||!/[EA]/.test(t)))throw ln("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",t,e);return t||"EA"}(e.restrict,r),e.$$moduleName=n.$$moduleName,s.push(e)}catch(t){e(t)}})),s}])),n[r].push(s)):Object.entries(r).forEach((([t,n])=>e(t,n))),this},this.component=function(t,e){if(!b(t))return Object.entries(t).forEach((([t,e])=>this.component(t,e))),this;const n=e.controller||function(){};function r(t){function r(e){return O(e)||Array.isArray(e)?function(n,r){return t.invoke(e,this,{$element:n,$attrs:r})}:e}const i=e.template||e.templateUrl?e.template:"",s={controller:n,controllerAs:Oe(e.controller)||e.controllerAs||"$ctrl",template:r(i),templateUrl:r(e.templateUrl),transclude:e.transclude,scope:{},bindToController:e.bindings||{},restrict:"E",require:e.require};return Object.entries(e).forEach((([t,e])=>{"$"===t.charAt(0)&&(s[t]=e)})),s}return Object.entries(e).forEach((([t,e])=>{"$"===t.charAt(0)&&(r[t]=e,O(n)&&(n[t]=e))})),r.$inject=["$injector"],this.directive(t,r)},this.aHrefSanitizationTrustedUrlList=function(t){return v(t)?(e.aHrefSanitizationTrustedUrlList(t),this):e.aHrefSanitizationTrustedUrlList()},this.imgSrcSanitizationTrustedUrlList=function(t){return v(t)?(e.imgSrcSanitizationTrustedUrlList(t),this):e.imgSrcSanitizationTrustedUrlList()};let u=!1;this.strictComponentBindingsEnabled=function(t){return v(t)?(u=t,this):u};const h=Object.create(null);this.addPropertySecurityContext=function(t,e,n){const r=`${t.toLowerCase()}|${e.toLowerCase()}`;if(r in h&&h[r]!==n)throw ln("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",t,e,h[r],n);return h[r]=n,this},function(){function t(t,e){e.forEach((e=>{h[e.toLowerCase()]=t}))}t(Ke.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),t(Ke.CSS,["*|style"]),t(Ke.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),t(Ke.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),t(Ke.RESOURCE_URL,["*|formAction","applet|code","applet|codebase","base|href","embed|src","frame|src","form|action","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])}(),this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(t,e,o,a,d,p,f,$,m){let v;function w(){try{if(! --cn)throw v=void 0,ln("infchng","{0} $onChanges() iterations reached. Aborting!\n",cn);f.$apply((()=>{for(let t=0,e=v.length;t<e;++t)try{v[t]()}catch(t){o(t)}v=void 0}))}finally{cn++}}const E=e.startSymbol(),S=e.endSymbol(),x="{{"===E&&"}}"===S?t=>t:t=>t.replace(/\{\{/g,E).replace(/}}/g,S),_=/^ng(Attr|Prop|On|Observe)([A-Z].*)$/;return j;function j(t,e,n,r,i){let s=At(t),o=N(s,e,s,n,r,i),a=null;return function(t,e,n){if(!s)throw ln("multilink","This element has already been linked.");st(t,"scope"),i&&i.needsNewScope&&(t=t.$parent.$new()),n=n||{};let r,{transcludeControllers:c,parentBoundTranscludeFn:l,futureParentElement:u}=n;if(l&&l.$$boundTransclude&&(l=l.$$boundTransclude),a||(a=function(t){const e=t&&t[0];if(!e)return"html";return"foreignobject"!==I(e)&&toString.call(e).match(/SVG/)?"svg":"html"}(u)),"html"!==a)r=At(Z(a,At("<div></div>").append(s).html()));else if(e){r=new At(s.elements().map((t=>t.cloneNode(!0))))}else r=s;if(c)for(const t in c)r.data(`$${t}Controller`,c[t].instance);return e&&e(r,t),o&&o(t,r,r,l),e||(s=o=null),r}}function N(t,e,n,r,i,s){const a=[];var c=null;let l,u,h,d;for(let p=0;p<t.length;p++){const g=new sn(f,m,o,$),v=D(t[p],g,r,i);u=(c=v.length?L(v,t[p],g,e,n,null,[],[],s):null)&&c.terminal||!(l=t[p].childNodes)||!l.length?null:N(l,c?(c.transcludeOnThisElement||!c.templateOnThisElement)&&c.transclude:e),(c||u)&&(a.push(p,c,u),h=!0,d=d||c),s=null}return h?function(t,n,r,i){let s,o,c,l,u,h,p;if(d){p=new Array(n.length);for(let t=0;t<a.length;t+=3)u=a[t],p[u]=n[u]}else p=n;for(let n=0,u=a.length;n<u;)c=p[a[n++]],s=a[n++],o=a[n++],s?(l=s.scope?t.$new():t,h=s.transcludeOnThisElement?R(t,s.transclude,i):!s.templateOnThisElement&&i?i:!i&&e?R(t,e):null,s(o,l,c,r,h)):o&&o(t,c.childNodes,void 0,i)}:null}function R(t,e,n){function r(r,i,s,o,a){return r||((r=t.$transcluded(a)).$$transcluded=!0),e(r,i,{parentBoundTranscludeFn:n,transcludeControllers:s,futureParentElement:o})}const i=r.$$slots=Object.create(null);for(const r in e.$$slots)e.$$slots[r]?i[r]=R(t,e.$$slots[r],n):i[r]=null;return r}function D(t,n,r,i){const s=[],{nodeType:a}=t,c=n.$attr;let u;switch(a){case Node.ELEMENT_NODE:u=t.nodeName.toLowerCase(),i!==pt(u)&&B(s,pt(u),"E",r);for(let e=0;e<t.attributes?.length;e++){let a=!1,u=!1,h=!1,p=!1,$=t.attributes[e],m=$.name,g=$.value,v=pt(m.toLowerCase());const y=v.match(_);y&&(a="Attr"===y[1],u="Prop"===y[1],h="On"===y[1],p="Observe"===y[1],m=m.replace(l,"").toLowerCase().substring(4+y[1].length).replace(/_(.)/g,((t,e)=>e.toUpperCase()))),u||h?(n[v]=g,c[v]=$.name,u?J(t,s,v,m):s.push(tn(d,f,o,v,m,!1))):p?s.push(an(m,g)):(v=pt(m.toLowerCase()),c[v]=m,!a&&Object.prototype.hasOwnProperty.call(n,v)||(n[v]=g,Gt(t,v)&&(n[v]=!0)),X(t,s,g,v,a),v!==i&&B(s,v,"A",r))}"input"===u&&"hidden"===t.getAttribute("type")&&t.setAttribute("autocomplete","off");break;case Node.TEXT_NODE:!function(t,n){const r=e(n,!0);r&&t.push({priority:0,compile:()=>(t,e)=>{t.$watch(r,(t=>{e[0].nodeValue=t}))}})}(s,t.nodeValue)}return s.sort(Y),s}function M(t,e,n,r,i,s){let o;return t?j(e,n,r,i,s):function(){return o||(o=j(e,n,r,i,s),e=n=s=null),o.apply(this,arguments)}}function L(t,e,n,r,i,s,a,c,l){l=l||{};let u,h,d,v,b,w=-Number.MAX_VALUE,{newScopeDirective:E}=l,{controllerDirectives:C}=l,{newIsolateScopeDirective:S}=l,{templateDirective:k}=l,{nonTlbTranscludeDirective:_}=l,j=!1,N=!1,{hasElementTranscludeDirective:R}=l,P=n.$$element=At(e),L=s,H=r,F=!1,B=!1,Y=function(t,r,i,s,l){let u,h,d,v,b,w,x,k,_,T;e===i?(_=n,k=n.$$element):(k=At(i),_=new sn(f,m,o,$,k,n)),b=r,S?v=r.$new(!0):E&&(b=r.$parent),l&&(x=function(t,e,n,r){let i;A(t)||(r=n,n=e,e=t,t=void 0);R&&(i=w);n||(n=R?k.parent():k);if(!r)return l(t,e,i,n,j);{const s=l.$$slots[r];if(s)return s(t,e,i,n,j);if(g(s))throw ln("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,zt(k))}},x.$$boundTransclude=l,x.isSlotFilled=function(t){return!!l.$$slots[t]}),C&&(w=function(t,e,n,r,i,s,o){const a=Object.create(null);for(const c in r){const l=r[c],u={$scope:l===o||l.$$isolateScope?i:s,$element:t,$attrs:e,$transclude:n};let{controller:h}=l;"@"===h&&(h=e[l.name]);const d=p(h,u,!0,l.controllerAs);a[l.name]=d,t.data(`$${l.name}Controller`,d.instance)}return a}(k,_,x,C,v,r,S)),S&&(v.$$isolateBindings=S.$$isolateBindings,T=it(r,_,v,v.$$isolateBindings,S),T.removeWatches&&v.$on("$destroy",T.removeWatches));for(const t in w){const e=C[t],n=w[t],r=e.$$bindings.bindToController;n.instance=n(),k.data(`$${e.name}Controller`,n.instance),n.bindingInfo=it(b,_,n.instance,r,e)}for(C&&Object.entries(C).forEach((([t,e])=>{const{require:n}=e;e.bindToController&&!Array.isArray(n)&&y(n)&&V(w[t].instance,U(t,n,k,w))})),w&&Object.values(w).forEach((t=>{const e=t.instance;if(O(e.$onChanges))try{e.$onChanges(t.bindingInfo.initialChanges)}catch(t){o(t)}if(O(e.$onInit))try{e.$onInit()}catch(t){o(t)}O(e.$doCheck)&&(b.$watch((()=>{e.$doCheck()})),e.$doCheck()),O(e.$onDestroy)&&b.$on("$destroy",(()=>{e.$onDestroy()}))})),u=0,h=a.length;u<h;u++)d=a[u],nt(d,d.isolateScope?v:r,k,_,d.require&&U(d.directiveName,d.require,k,w),x);var j=r;for(S&&(S.template||null===S.templateUrl)&&(j=v),t&&t(j,i.childNodes,void 0,l),u=c.length-1;u>=0;u--)d=c[u],nt(d,d.isolateScope?v:r,k,_,d.require&&U(d.directiveName,d.require,k,w),x);w&&Object.values(w).forEach((t=>{const e=t.instance;O(e.$postLink)&&e.$postLink()}))};for(let s=0,l=t.length;s<l&&(u=t[s],d=void 0,!(w>u.priority));s++){if(b=u.scope,b&&(u.templateUrl||(y(b)?(Q("new/isolated scope",S||E,u,P),S=u):Q("new/isolated scope",S,u,P)),E=E||u),h=u.name,!F&&(u.replace&&(u.templateUrl||u.template)||u.transclude&&!hn.includes(u.name))){let e;for(let n=s+1;e=t[n++];)if(e.transclude&&!hn.includes(e.name)||e.replace&&(e.templateUrl||e.template)){B=!0;break}F=!0}if(!u.templateUrl&&u.controller&&(C=C||Object.create(null),Q(`'${h}' controller`,C[h],u,P),C[h]=u),b=u.transclude,b)if(j=!0,hn.includes(u.name)||(Q("transclusion",_,u,P),_=u),"element"===b)R=!0,w=u.priority,d=P,P=n.$$element=At(document.createComment("")),e=P[0],tt(i,G(d),e),H=M(B,d,r,w,L&&L.name,{nonTlbTranscludeDirective:_});else{const t=Object.create(null);if(y(b)){d=document.createDocumentFragment();const e=Object.create(null),n=Object.create(null);Object.entries(b).forEach((([r,i])=>{const s="?"===i.charAt(0);i=s?i.substring(1):i,e[i]=r,t[r]=null,n[r]=s})),At(P[0].childNodes).elements().forEach((r=>{const i=e[pt(I(r))];i?(n[i]=!0,t[i]=t[i]||document.createDocumentFragment(),t[i].appendChild(r)):d.appendChild(r)})),Object.entries(n).forEach((([t,e])=>{if(!e)throw ln("reqslot","Required transclusion slot `{0}` was not filled.",t)}));for(const e in t)if(t[e]){const n=At(t[e].childNodes);t[e]=M(B,n,r)}d=At(d.childNodes)}else d=e.cloneNode(!0).childNodes;P.empty(),H=M(B,d,r,void 0,void 0,{needsNewScope:u.$$isolateScope||u.$$newScope}),H.$$slots=t}if(u.template)if(N=!0,Q("template",k,u,P),k=u,b=O(u.template)?u.template(P,n):u.template,b=x(b),u.replace){if(L=u,d=Nt(b)?[]:$n(Z(u.templateNamespace,T(b))),e=d[0],1!==d.length||e.nodeType!==Node.ELEMENT_NODE)throw ln("tplrt","Template for directive '{0}' must have exactly one root element. {1}",h,"");tt(i,P,e);const r={$attr:{}},o=D(e,r),a=t.splice(s+1,t.length-(s+1));(S||E)&&q(o,S,E),t=t.concat(o).concat(a),z(n,r),l=t.length}else P.html(b);if(u.templateUrl)N=!0,Q("template",k,u,P),k=u,u.replace&&(L=u),Y=W(t.splice(s,t.length-s),P,n,i,j&&H,a,c,{controllerDirectives:C,newScopeDirective:E!==u&&E,newIsolateScopeDirective:S,templateDirective:k,nonTlbTranscludeDirective:_}),l=t.length;else if(u.compile)try{v=u.compile(P,n,H);const t=u.$$originalDirective||u;O(v)?J(null,K(t,v)):v&&J(K(t,v.pre),K(t,v.post))}catch(t){o(t,zt(P))}u.terminal&&(Y.terminal=!0,w=Math.max(w,u.priority))}return Y.scope=E&&!0===E.scope,Y.transcludeOnThisElement=j,Y.templateOnThisElement=N,Y.transclude=H,l.hasElementTranscludeDirective=R,Y;function J(t,e){t&&(t.require=u.require,t.directiveName=h,(S===u||u.$$isolateScope)&&(t=et(t,{isolateScope:!0})),a.push(t)),e&&(e.require=u.require,e.directiveName=h,(S===u||u.$$isolateScope)&&(e=et(e,{isolateScope:!0})),c.push(e))}}function U(t,e,n,r){let s;if(b(e)){const o=e.match(i),a=e.substring(o[0].length),c=o[1]||o[3],l="?"===o[2];if("^^"===c?n=n.parent():(s=r&&r[a],s=s&&s.instance),!s){const t=`$${a}Controller`;s="^^"===c&&n[0]&&n[0].nodeType===Node.DOCUMENT_NODE?null:c?n.inheritedData(t):n.data(t)}if(!s&&!l)throw ln("ctreq","Controller '{0}', required by directive '{1}', can't be found!",a,t)}else if(Array.isArray(e)){s=[];for(let i=0,o=e.length;i<o;i++)s[i]=U(t,e[i],n,r)}else y(e)&&(s={},Object.entries(e).forEach((([e,i])=>{s[e]=U(t,i,n,r)})));return s||null}function q(t,e,n){for(let r=0,i=t.length;r<i;r++)t[r]=P(t[r],{$$isolateScope:e,$$newScope:n})}function B(e,r,i,s){let o=!1;if(Object.prototype.hasOwnProperty.call(n,r)){let n=t.get(r+dn);for(let t=0,r=n.length;t<r;t++){let r=n[t];if((g(s)||s>r.priority)&&-1!==r.restrict.indexOf(i)){if(!r.$$bindings){const t=r.$$bindings=c(r,r.name);y(t.isolateScope)&&(r.$$isolateBindings=t.isolateScope)}e.push(r),o=r}}}return o}function z(t,e){const n=e.$attr,r=t.$attr;Object.entries(t).forEach((([r,i])=>{"$"!==r.charAt(0)&&(e[r]&&e[r]!==i&&(i.length?i+=("style"===r?";":" ")+e[r]:i=e[r]),t.$set(r,i,!0,n[r]))})),Object.entries(e).forEach((([e,i])=>{Object.prototype.hasOwnProperty.call(t,e)||"$"===e.charAt(0)||(t[e]=i,"class"!==e&&"style"!==e&&(r[e]=n[e]))}))}function W(t,e,n,r,i,s,c,l){let u,h,d=[];const p=e[0],f=t.shift(),$=P(f,{templateUrl:null,transclude:null,replace:null,$$originalDirective:f}),m=O(f.templateUrl)?f.templateUrl(e,n):f.templateUrl,{templateNamespace:g}=f;return e.empty(),a(m).then((o=>{let a,v,b,w;if(o=x(o),f.replace){if(b=Nt(o)?[]:$n(Z(g,T(o))),a=b[0],1!==b.length||a.nodeType!==Node.ELEMENT_NODE)throw ln("tplrt","Template for directive '{0}' must have exactly one root element. {1}",f.name,m);v={$attr:{}},tt(r,e,a);const i=D(a,v);y(f.scope)&&q(i,!0),t=i.concat(t),z(n,v)}else a=p,e.html(o);for(t.unshift($),u=L(t,a,n,i,e,f,s,c,l),r&&Object.entries(r).forEach((([t,n])=>{n===a&&(r[t]=e[0])})),h=N(e[0].childNodes,i);d.length;){const t=d.shift(),n=d.shift(),i=d.shift(),s=d.shift();let o=e[0];if(!t.$$destroyed){if(n!==p){const t=n.className;l.hasElementTranscludeDirective&&f.replace||(o=a.cloneNode(!0)),tt(i,At(n),o);try{""!==t&&o.classList.add(...t.trim().split(" "))}catch(t){}}w=u.transcludeOnThisElement?R(t,u.transclude,s):s,u(h,t,o,r,w)}}d=null})).catch((t=>{C(t)&&o(t)})),function(t,e,n,r,i){let s=i;e.$$destroyed||(d?d.push(e,n,r,s):(u.transcludeOnThisElement&&(s=R(e,u.transclude,i)),u(h,e,n,r,s)))}}function Y(t,e){const n=e.priority-t.priority;return 0!==n?n:t.name!==e.name?t.name<e.name?-1:1:t.index-e.index}function Q(t,e,n,r){function i(t){return t?` (module: ${t})`:""}if(e)throw ln("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",e.name,i(e.$$moduleName),n.name,i(n.$$moduleName),t,zt(r))}function Z(t,e){switch(t=(t||"html").toLowerCase()){case"svg":case"math":var n=document.createElement("div");return n.innerHTML=`<${t}>${e}</${t}>`,n.childNodes[0].childNodes;default:return e}}function J(t,e,n,r){if(s.test(r))throw ln("nodomevents","Property bindings for HTML DOM event properties are disallowed");const i=I(t),o=function(t,e){const n=e.toLowerCase();return h[`${t}|${n}`]||h[`*|${n}`]}(i,r);let a=t=>t;"srcset"!==r||"img"!==i&&"source"!==i?o&&(a=$.getTrusted.bind($,o)):a=t=>function(t,e){if(!t)return t;if(!b(t))throw ln("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',e,t.toString());for(var n="",r=T(t),i=/\s/.test(r)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,s=r.split(i),o=Math.floor(s.length/2),a=0;a<o;a++){var c=2*a;n+=$.getTrustedMediaUrl(T(s[c])),n+=" "+T(s[c+1])}var l=T(s[2*a]).split(/\s/);return n+=$.getTrustedMediaUrl(T(l[0])),2===l.length&&(n+=" "+T(l[1])),n}($.valueOf(t),"ng-prop-srcset"),e.push({priority:100,compile:function(t,e){const i=d(e[n]),s=d(e[n],(t=>$.valueOf(t)));return{pre:function(t,e){function n(){const n=i(t);e[0][r]=a(n)}n(),t.$watch(s,n)}}}})}function X(t,n,i,o,a){const c=I(t),l=function(t,e){return"srcdoc"===e?$.HTML:"src"===e||"ngSrc"===e?-1===["img","video","audio","source","track"].indexOf(t)?$.RESOURCE_URL:$.MEDIA_URL:"xlinkHref"===e?"image"===t?$.MEDIA_URL:"a"===t?$.URL:$.RESOURCE_URL:"form"===t&&"action"===e||"base"===t&&"href"===e||"link"===t&&"href"===e?$.RESOURCE_URL:"a"!==t||"href"!==e&&"ngHref"!==e?void 0:$.URL}(c,o),u=r[o]||a;let h=e(i,!a,l,u);if(h){if("multiple"===o&&"select"===c)throw ln("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",zt(t.outerHTML));if(s.test(o))throw ln("nodomevents","Interpolations for HTML DOM event attributes are disallowed");n.push({priority:100,compile:()=>({pre:function(t,n,r){const s=r.$$observers||(r.$$observers=Object.create(null)),a=r[o];a!==i&&(h=a&&e(a,!0,l,u),i=a),h&&(r[o]=h(t),(s[o]||(s[o]=[])).$$inter=!0,(r.$$observers&&r.$$observers[o].$$scope||t).$watch(h,((t,e)=>{"class"===o&&t!==e?r.$updateClass(t,e):r.$set(o,t)})))}})})}}function tt(t,e,n){const r=e[0],i=e.length,s=r.parentNode;let o,a;if(t)for(o=0,a=t.length;o<a;o++)if(t[o]===r){t[o++]=n;for(let e=o,n=e+i-1,r=t.length;e<r;e++,n++)n<r?t[e]=t[n]:delete t[e];t.length-=i-1;break}s&&s.replaceChild(n,r);const c=document.createDocumentFragment();for(o=0;o<i;o++)c.appendChild(e[o]);for(mt.has(r[$t])&&(Lt(n,Lt(r)),At(r).off("$destroy")),Kt(c.querySelectorAll("*")),o=1;o<i;o++)delete e[o];e[0]=n,e.length=1}function et(t,e){return V((function(){return t.apply(null,arguments)}),t,e)}function nt(t,e,n,r,i,s){try{t(e,n,r,i,s)}catch(t){console.error(t),o(t,zt(n))}}function rt(t,e){if(u)throw ln("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",t,e)}function it(t,n,r,i,s){const o=[],a={};let c;function l(e,n,i){O(r.$onChanges)&&!H(n,i)&&(v||(t.$$postDigest(w),v=[]),c||(c={},v.push(u)),c[e]&&(i=c[e].previousValue),c[e]=new fn(i,n))}function u(){r.$onChanges(c),c=void 0}return i&&Object.entries(i).forEach((([i,c])=>{const{attrName:u}=c,{optional:h}=c,{mode:p}=c;let f,$,m,g,v;switch(p){case"@":h||Object.hasOwnProperty.call(n,u)||(rt(u,s.name),r[i]=n[u]=void 0),v=n.$observe(u,(t=>{if(b(t)||k(t)){const e=r[i];l(i,t,e),r[i]=t}})),n.$$observers[u].$$scope=t,f=n[u],b(f)?r[i]=e(f)(t):k(f)&&(r[i]=f),a[i]=new fn(un,r[i]),o.push(v);break;case"=":if(!Object.hasOwnProperty.call(n,u)){if(h)break;rt(u,s.name),n[u]=void 0}if(h&&!n[u])break;$=d(n[u]),g=$.literal?F:H,m=$.assign||function(){throw f=r[i]=$(t),ln("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",n[u],u,s.name)},f=r[i]=$(t);var y=function(e){return g(e,r[i])||(g(e,f)?m(t,e=r[i]):r[i]=e),f=e,f};y.$stateful=!0,v=c.collection?t.$watchCollection(n[u],y):t.$watch(d(n[u],y),null,$.literal),o.push(v);break;case"<":if(!Object.hasOwnProperty.call(n,u)){if(h)break;rt(u,s.name),n[u]=void 0}if(h&&!n[u])break;$=d(n[u]);var w=$.literal,E=r[i]=$(t);a[i]=new fn(un,r[i]),v=t[c.collection?"$watchCollection":"$watch"]($,((t,e)=>{if(e===t){if(e===E||w&&F(e,E))return;e=E}l(i,t,e),r[i]=t})),o.push(v);break;case"&":if(h||Object.hasOwnProperty.call(n,u)||rt(u,s.name),$=Object.prototype.hasOwnProperty.call(n,u)?d(n[u]):()=>{},$.toString()===(()=>{}).toString()&&h)break;r[i]=function(e){return $(t,e)}}})),{initialChanges:a,removeWatches:o.length&&function(){for(let t=0,e=o.length;t<e;++t)o[t]()}}}}]}pn.$inject=["$provide","$$sanitizeUriProvider"];class fn{constructor(t,e){this.previousValue=t,this.currentValue=e}isFirstChange(){return this.previousValue===un}}function $n(t){let e=(t=At(t)).length;if(e<=1)return t;for(;e--;){const n=t[e];(n.nodeType===Node.COMMENT_NODE||n.nodeType===Node.TEXT_NODE&&""===n.nodeValue.trim())&&[].splice.call(t,e,1)}return t}const mn={$addControl:()=>{},$getControls:D([]),$$renameControl:function(t,e){t.$name=e},$removeControl:()=>{},$setValidity:function(){},$setDirty:()=>{},$setPristine:()=>{},$setSubmitted:()=>{},$$setSubmitted:()=>{}},gn="ng-pending",vn="ng-submitted";function yn(t,e,n,r,i){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=i(e.name||e.ngForm||"")(n),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$$parentForm=mn,this.$$element=t,this.$$animate=r,Cn(this)}yn.$inject=["$element","$attrs","$scope","$animate","$interpolate"],yn.prototype={$rollbackViewValue(){this.$$controls.forEach((t=>{t.$rollbackViewValue()}))},$commitViewValue(){this.$$controls.forEach((t=>{t.$commitViewValue()}))},$addControl(t){B(t.$name,"input"),this.$$controls.push(t),t.$name&&(this[t.$name]=t),t.$$parentForm=this},$getControls(){return rt(this.$$controls)},$$renameControl(t,e){const n=t.$name;this[n]===t&&delete this[n],this[e]=t,t.$name=e},$removeControl(t){t.$name&&this[t.$name]===t&&delete this[t.$name],this.$pending&&Object.keys(this.$pending).forEach((e=>{this.$setValidity(e,null,t)})),this.$error&&Object.keys(this.$error).forEach((e=>{this.$setValidity(e,null,t)})),this.$$success&&Object.keys(this.$$success).forEach((e=>{this.$setValidity(e,null,t)})),q(this.$$controls,t),t.$$parentForm=mn},$setValidity:function(t,e,n){},$setDirty(){this.$$animate.removeClass(this.$$element,r),this.$$animate.addClass(this.$$element,i),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine(){this.$$animate.setClass(this.$$element,r,`${i} ${vn}`),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,this.$$controls.forEach((t=>{t.$setPristine()}))},$setUntouched(){this.$$controls.forEach((t=>{t.$setUntouched()}))},$setSubmitted(){let t=this;for(;t.$$parentForm&&t.$$parentForm!==mn;)t=t.$$parentForm;t.$$setSubmitted()},$$setSubmitted(){this.$$animate.addClass(this.$$element,vn),this.$submitted=!0,this.$$controls.forEach((t=>{t.$$setSubmitted&&t.$$setSubmitted()}))}},function(t){const{clazz:r}=t,{set:i}=t,{unset:s}=t;function o(t,e,n){n&&!t.$$classCache[e]?(t.$$animate.addClass(t.$$element,e),t.$$classCache[e]=!0):!n&&t.$$classCache[e]&&(t.$$animate.removeClass(t.$$element,e),t.$$classCache[e]=!1)}function a(t,r,i){r=r?`-${j(r,"-")}`:"",o(t,e+r,!0===i),o(t,n+r,!1===i)}r.prototype.$setValidity=function(t,e,n){let r;g(e)?function(t,e,n,r){t[e]||(t[e]={}),i(t[e],n,r)}(this,"$pending",t,n):function(t,e,n,r){t[e]&&s(t[e],n,r),On(t[e])&&(t[e]=void 0)}(this,"$pending",t,n),k(e)?e?(s(this.$error,t,n),i(this.$$success,t,n)):(i(this.$error,t,n),s(this.$$success,t,n)):(s(this.$error,t,n),s(this.$$success,t,n)),this.$pending?(o(this,gn,!0),this.$valid=this.$invalid=void 0,a(this,"",null)):(o(this,gn,!1),this.$valid=On(this.$error),this.$invalid=!this.$valid,a(this,"",this.$valid)),r=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.$$success[t]||null),a(this,t,r),this.$$parentForm.$setValidity(t,r,this)}}({clazz:yn,set(t,e,n){const r=t[e];if(r){-1===r.indexOf(n)&&r.push(n)}else t[e]=[n]},unset(t,e,n){const r=t[e];r&&(q(r,n),0===r.length&&delete t[e])}});const bn=function(t){return["$timeout","$parse",function(n,i){return{name:"form",restrict:t?"EA":"E",require:["form","^^?form"],controller:yn,compile:function(i,o){i[0].classList.add(r,e);const a=o.name?"name":!(!t||!o.ngForm)&&"ngForm";return{pre:function(t,e,r,i){const o=i[0];if(!("action"in r)){const r=function(e){t.$apply((()=>{o.$commitViewValue(),o.$setSubmitted()})),e.preventDefault()};e[0].addEventListener("submit",r),e.on("$destroy",(()=>{n((()=>{e[0].removeEventListener("submit",r)}),0,!1)}))}(i[1]||o.$$parentForm).$addControl(o);let c=a?s(o.$name):()=>{};a&&(c(t,o),r.$observe(a,(e=>{o.$name!==e&&(c(t,void 0),o.$$parentForm.$$renameControl(o,e),c=s(o.$name),c(t,o))}))),e.on("$destroy",(()=>{o.$$parentForm.$removeControl(o),c(t,void 0),V(o,mn)}))}}}};function s(t){return""===t?i('this[""]').assign:i(t).assign||(()=>{})}}]},wn=bn(),En=bn("ngForm");function Cn(t){t.$$classCache={},t.$$classCache[n]=!(t.$$classCache[e]=t.$$element[0].classList.contains(e))}function On(t){if(t)for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}const Sn=/(\s+|^)default(\s+|$)/;class xn{static $inject=["$attrs","$scope"];constructor(t,e){this.$$attrs=t,this.$$scope=e,this.parentCtrl}$onInit(){const t=this.parentCtrl?this.parentCtrl.$options:kn,e=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=t.createChild(e)}}class An{constructor(t){this.$$options=t}getOption(t){return this.$$options[t]}createChild(t){let e=!1;return t=Object.assign({},t),Object.entries(t).forEach((([n,r])=>{"$inherit"===r?"*"===n?e=!0:(t[n]=this.$$options[n],"updateOn"===n&&(t.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===n&&(t.updateOnDefault=!1,t[n]=T(r.replace(Sn,(()=>(t.updateOnDefault=!0," ")))))}),this),e&&(delete t["*"],Tn(t,this.$$options)),Tn(t,kn.$$options),new An(t)}}const kn=new An({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1}),_n=function(){return{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:xn}};function Tn(t,e){Object.keys(e).forEach((n=>{v(t[n])||(t[n]=e[n])}))}const jn=lt("ngModel");class Vn{static $inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"];constructor(t,e,n,r,i,s,o,a,c){var l;this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=c(n.name||"",!1)(t),this.$$parentForm=mn,this.$options=kn,this.$$updateEvents="",this.$$updateEventHandler=this.$$updateEventHandler.bind(this),this.$$parsedNgModel=i(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$parserName="parse",this.$$currentValidationRunId=0,this.$$scope=t,this.$$rootScope=t.$root,this.$$attr=n,this.$$element=r,this.$$animate=s,this.$$timeout=o,this.$$parse=i,this.$q=a,this.$$exceptionHandler=e,this.$$hasNativeValidators=!1,Cn(this),(l=this).$$scope.$watch((t=>{const e=l.$$ngModelGet(t);return e===l.$modelValue||l.$modelValue!=l.$modelValue&&e!=e||l.$$setModelValue(e),e}))}set(t,e){t[e]=!0}unset(t,e){delete t[e]}$setValidity(t,r){let i,s=this;function o(t,e,n){n&&!t.$$classCache[e]?(t.$$animate.addClass(t.$$element,e),t.$$classCache[e]=!0):!n&&t.$$classCache[e]&&(t.$$animate.removeClass(t.$$element,e),t.$$classCache[e]=!1)}function a(t,r,i){r=r?`-${j(r,"-")}`:"",o(t,e+r,!0===i),o(t,n+r,!1===i)}g(r)?function(t,e,n){t[e]||(t[e]={}),s.set(t[e],n)}(this,"$pending",t):function(t,e,n){t[e]&&s.unset(t[e],n),On(t[e])&&(t[e]=void 0)}(this,"$pending",t),k(r)?r?(delete this.$error[t],this.set(this.$$success,t)):(this.set(this.$error,t),delete this.$$success[t]):(delete this.$error[t],delete this.$$success[t]),this.$pending?(o(this,gn,!0),this.$valid=this.$invalid=void 0,a(this,"",null)):(o(this,gn,!1),this.$valid=On(this.$error),this.$invalid=!this.$valid,a(this,"",this.$valid)),i=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.$$success[t]||null),a(this,t,i),this.$$parentForm.$setValidity(t,i,this)}$$initGetterSetters(){if(this.$options.getOption("getterSetter")){const t=this.$$parse(`${this.$$attr.ngModel}()`),e=this.$$parse(`${this.$$attr.ngModel}($$$p)`);this.$$ngModelGet=function(e){let n=this.$$parsedNgModel(e);return O(n)&&(n=t(e)),n},this.$$ngModelSet=function(t,n){O(this.$$parsedNgModel(t))?e(t,{$$$p:n}):this.$$parsedNgModelAssign(t,n)}}else if(!this.$$parsedNgModel.assign)throw jn("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,zt(this.$$element))}$render(){}$isEmpty(t){return g(t)||""===t||null===t||t!=t}$$updateEmptyClasses(t){this.$isEmpty(t)?ft(this.$$element[0])?(this.$$animate.removeClass(this.$$element,c),this.$$animate.addClass(this.$$element,a)):(this.$$element[0].classList.remove(c),this.$$element[0].classList.add(a)):ft(this.$$element[0])?(this.$$animate.removeClass(this.$$element,a),this.$$animate.addClass(this.$$element,c)):(this.$$element[0].classList.remove(a),this.$$element[0].classList.add(c))}$setPristine(){this.$dirty=!1,this.$pristine=!0,ft(this.$$element[0])?(this.$$animate.removeClass(this.$$element,a),this.$$animate.addClass(this.$$element,r)):(this.$$element[0].classList.remove(a),this.$$element[0].classList.add(r))}$setDirty(){this.$dirty=!0,this.$pristine=!1,ft(this.$$element[0])?(this.$$animate.removeClass(this.$$element,r),this.$$animate.addClass(this.$$element,i)):(this.$$element[0].classList.remove(r),this.$$element[0].classList.add(i)),this.$$parentForm.$setDirty()}$setUntouched(){this.$touched=!1,this.$untouched=!0,ft(this.$$element[0])?this.$$animate.setClass(this.$$element,s,o):(this.$$element[0].classList.remove(o),this.$$element[0].classList.add(s))}$setTouched(){this.$touched=!0,this.$untouched=!1,ft(this.$$element[0])?this.$$animate.setClass(this.$$element,o,s):(this.$$element[0].classList.remove(s),this.$$element[0].classList.add(o))}$rollbackViewValue(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()}$validate(){if(R(this.$modelValue))return;const t=this.$$lastCommittedViewValue,e=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,i=this.$options.getOption("allowInvalid"),s=this;this.$$runValidators(e,t,(t=>{i||n===t||(s.$modelValue=t?e:void 0,s.$modelValue!==r&&s.$$writeModelToScope())}))}$$runValidators(t,e,n){this.$$currentValidationRunId++;const r=this.$$currentValidationRunId,i=this;function s(t,e){r===i.$$currentValidationRunId&&i.$setValidity(t,e)}function o(t){r===i.$$currentValidationRunId&&n(t)}!function(){const t=i.$$parserName;if(!g(i.$$parserValid))return i.$$parserValid||(Object.keys(i.$validators).forEach((t=>{s(t,null)})),Object.keys(i.$asyncValidators).forEach((t=>{s(t,null)}))),s(t,i.$$parserValid),i.$$parserValid;s(t,null);return!0}()?o(!1):function(){let n=!0;if(Object.entries(i.$validators).forEach((([r,i])=>{const o=Boolean(i(t,e));n=n&&o,s(r,o)})),!n)return Object.keys(i.$asyncValidators).forEach((t=>{s(t,null)})),!1;return!0}()?function(){const n=[];let r=!0;Object.entries(i.$asyncValidators).forEach((([i,o])=>{const a=o(t,e);if(!_(a))throw jn("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);s(i,void 0),n.push(a.then((()=>{s(i,!0)}),(()=>{r=!1,s(i,!1)})))})),n.length?i.$q.all(n).then((()=>{o(r)}),(()=>{})):o(!0)}():o(!1)}$commitViewValue(){this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==this.$viewValue||""===this.$viewValue&&this.$$hasNativeValidators)&&(void 0===this.$$lastCommittedViewValue&&Number.isNaN(this.$viewValue)||(this.$$updateEmptyClasses(this.$viewValue),this.$$lastCommittedViewValue=this.$viewValue,this.$pristine&&this.$setDirty(),this.$$parseAndValidate()))}$$parseAndValidate(){let t=this.$$lastCommittedViewValue;const e=this;if(this.$$parserValid=!g(t)||void 0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(let e=0;e<this.$parsers.length;e++)if(t=this.$parsers[e](t),g(t)){this.$$parserValid=!1;break}R(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));const n=this.$modelValue,r=this.$options.getOption("allowInvalid");function i(){e.$modelValue!==n&&e.$$writeModelToScope()}this.$$rawModelValue=t,r&&(this.$modelValue=t,i()),this.$$runValidators(t,this.$$lastCommittedViewValue,(n=>{r||(e.$modelValue=n?t:void 0,i())}))}$$writeModelToScope(){this.$$ngModelSet(this.$$scope,this.$modelValue),Object.values(this.$viewChangeListeners).forEach((t=>{try{t()}catch(t){this.$$exceptionHandler(t)}}),this)}$setViewValue(t,e){this.$viewValue=t,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(e)}$$debounceViewValueCommit(t){let e=this.$options.getOption("debounce");w(e[t])?e=e[t]:w(e.default)&&-1===this.$options.getOption("updateOn").indexOf(t)?e=e.default:w(e["*"])&&(e=e["*"]),this.$$timeout.cancel(this.$$pendingDebounce);const n=this;e>0?this.$$pendingDebounce=this.$$timeout((()=>{n.$commitViewValue()}),e):this.$$rootScope.$$phase!==xe.NONE?this.$commitViewValue():this.$$scope.$apply((()=>{n.$commitViewValue()}))}$overrideModelOptions(t){this.$options=this.$options.createChild(t),this.$$setUpdateOnEvents()}$processModelValue(){const t=this.$$format();this.$viewValue!==t&&(this.$$updateEmptyClasses(t),this.$viewValue=this.$$lastCommittedViewValue=t,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,(()=>{})))}$$format(){const t=this.$formatters;let e=t.length,n=this.$modelValue;for(;e--;)n=t[e](n);return n}$$setModelValue(t){this.$modelValue=this.$$rawModelValue=t,this.$$parserValid=void 0,this.$processModelValue()}$$setUpdateOnEvents(){this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler),this.$$updateEvents=this.$options.getOption("updateOn"),this.$$updateEvents&&this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)}$$updateEventHandler(t){this.$$debounceViewValueCommit(t&&t.type)}}function Nn(t){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Vn,priority:1,compile:n=>(n[0].classList.add(r,s,e),{pre:(t,e,n,r)=>{const i=r[0],s=r[1]||i.$$parentForm,o=r[2];o&&(i.$options=o.$options),i.$$initGetterSetters(),s.$addControl(i),n.$observe("name",(t=>{i.$name!==t&&i.$$parentForm.$$renameControl(i,t)})),t.$on("$destroy",(()=>{i.$$parentForm.$removeControl(i)}))},post:(e,n,r,i)=>{const s=i[0];function o(){s.$setTouched()}s.$$setUpdateOnEvents(),n.on("blur",(()=>{s.$touched||(t.$$phase!==xe.NONE?e.$evalAsync(o):e.$apply(o))}))}})}}Nn.$inject=["$rootScope"];const Rn=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Pn=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Dn=/^(?=.{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])?)*$/,Mn=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Ln=/^(\d{4,})-(\d{2})-(\d{2})$/,In=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Un=/^(\d{4,})-W(\d\d)$/,qn=/^(\d{4,})-(\d\d)$/,Hn=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Fn="validity",Bn="keydown wheel mousedown",zn=new Map;"date,datetime-local,month,time,week".split(",").forEach((t=>{zn.set(t,!0)}));const Wn={text:function(t,e,n,r,i){Kn(t,e,n,r,i),Gn(r)},date:Zn("date",Ln,Yn(Ln,["yyyy","MM","dd"])),"datetime-local":Zn("datetimelocal",In,Yn(In,["yyyy","MM","dd","HH","mm","ss","sss"])),time:Zn("time",Hn,Yn(Hn,["HH","mm","ss","sss"])),week:Zn("week",Un,(function(t,e){if(E(t))return t;if(b(t)){Un.lastIndex=0;const n=Un.exec(t);if(n){const t=+n[1],r=+n[2];let i=0,s=0,o=0,a=0;const c=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,(e<=4?5:12)-e)}(t),l=7*(r-1);return e&&(i=e.getHours(),s=e.getMinutes(),o=e.getSeconds(),a=e.getMilliseconds()),new Date(t,0,c.getDate()+l,i,s,o,a)}}return NaN})),month:Zn("month",qn,Yn(qn,["yyyy","MM"])),number:function(t,e,n,r,i,s,o){let a;if(Jn(t,e,n,r,"number"),Xn(r),Kn(t,e,n,r,i),v(n.min)||n.ngMin){let e=n.min||o(n.ngMin)(t);a=tr(e),r.$validators.min=function(t,e){return r.$isEmpty(e)||g(a)||e>=a},n.$observe("min",(t=>{t!==e&&(a=tr(t),e=t,r.$validate())}))}if(v(n.max)||n.ngMax){let e=n.max||o(n.ngMax)(t),i=tr(e);r.$validators.max=function(t,e){return r.$isEmpty(e)||g(i)||e<=i},n.$observe("max",(t=>{t!==e&&(i=tr(t),e=t,r.$validate())}))}if(v(n.step)||n.ngStep){let e=n.step||o(n.ngStep)(t),i=tr(e);r.$validators.step=function(t,e){return r.$isEmpty(e)||g(i)||rr(e,a||0,i)},n.$observe("step",(t=>{t!==e&&(i=tr(t),e=t,r.$validate())}))}},url:function(t,e,n,r,i){Kn(t,e,n,r,i),Gn(r),r.$validators.url=function(t,e){const n=t||e;return r.$isEmpty(n)||Pn.test(n)}},email:function(t,e,n,r,i){Kn(t,e,n,r,i),Gn(r),r.$validators.email=function(t,e){const n=t||e;return r.$isEmpty(n)||Dn.test(n)}},radio:function(t,e,n,r){const i=!n.ngTrim||"false"!==T(n.ngTrim);g(n.name)&&e.attr("name",f());e.on("change",(function(t){let s;e[0].checked&&(s=n.value,i&&(s=T(s)),r.$setViewValue(s,t&&t.type))})),r.$render=function(){let{value:t}=n;i&&(t=T(t)),e[0].checked=t===r.$viewValue},n.$observe("value",r.$render)},range:function(t,e,n,r,i){Jn(t,e,n,r,"range"),Xn(r),Kn(t,e,n,r,i);const s=r.$$hasNativeValidators&&"range"===e[0].type;let o=s?0:void 0,a=s?100:void 0,c=s?1:void 0;const{validity:l}=e[0],u=v(n.min),h=v(n.max),d=v(n.step),p=r.$render;r.$render=s&&v(l.rangeUnderflow)&&v(l.rangeOverflow)?function(){p(),r.$setViewValue(e.val())}:p,u&&(o=tr(n.min),r.$validators.min=s?function(){return!0}:function(t,e){return r.$isEmpty(e)||g(o)||e>=o},f("min",(function(t){if(o=tr(t),R(r.$modelValue))return;if(s){let t=e.val();o>t&&(t=o,e.val(t)),r.$setViewValue(t)}else r.$validate()})));h&&(a=tr(n.max),r.$validators.max=s?function(){return!0}:function(t,e){return r.$isEmpty(e)||g(a)||e<=a},f("max",(function(t){if(a=tr(t),R(r.$modelValue))return;if(s){let t=e.val();a<t&&(e.val(a),t=a<o?o:a),r.$setViewValue(t)}else r.$validate()})));d&&(c=tr(n.step),r.$validators.step=s?function(){return!l.stepMismatch}:function(t,e){return r.$isEmpty(e)||g(c)||rr(e,o||0,c)},f("step",(function(t){if(c=tr(t),R(r.$modelValue))return;s?r.$viewValue!==e.val()&&r.$setViewValue(e.val()):r.$validate()})));function f(t,r){e.attr(t,n[t]);let i=n[t];n.$observe(t,(t=>{t!==i&&(i=t,r(t))}))}},checkbox:function(t,e,n,r,i,s,o){const a=ir(o,t,"ngTrueValue",n.ngTrueValue,!0),c=ir(o,t,"ngFalseValue",n.ngFalseValue,!1);e.on("change",(function(t){r.$setViewValue(e[0].checked,t&&t.type)})),r.$render=function(){e[0].checked=r.$viewValue},r.$isEmpty=function(t){return!1===t},r.$formatters.push((t=>F(t,a))),r.$parsers.push((t=>t?a:c))},hidden:()=>{},button:()=>{},submit:()=>{},reset:()=>{},file:()=>{}};function Gn(t){t.$formatters.push((e=>t.$isEmpty(e)?e:e.toString()))}function Kn(t,e,n,r,i){const s=e[0].type.toLowerCase();let o,a=!1;e.on("compositionstart",(()=>{a=!0})),e.on("compositionend",(()=>{a=!1,c()}));let c=function(t){if(o&&(i.cancel(o),o=null),a)return;let c=e.val();const l=t&&t.type;"password"===s||n.ngTrim&&"false"===n.ngTrim||(c=T(c)),(r.$viewValue!==c||""===c&&r.$$hasNativeValidators)&&r.$setViewValue(c,l)};["input","change","paste","drop","cut"].forEach((t=>{e.on(t,c)})),zn[s]&&r.$$hasNativeValidators&&s===n.type&&e.on(Bn,(function(t){if(!o){const e=this[Fn],n=e.badInput,r=e.typeMismatch;o=i.defer((()=>{o=null,e.badInput===n&&e.typeMismatch===r||c(t)}))}})),r.$render=function(){const t=r.$isEmpty(r.$viewValue)?"":r.$viewValue;e.val()!==t&&e.val(t)}}function Yn(t,e){return function(n,r){let i,s;if(E(n))return n;if(b(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Rn.test(n))return new Date(n);if(t.lastIndex=0,i=t.exec(n),i){i.shift(),s=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},Object.entries(i).forEach((([t,n])=>{t<e.length&&(s[e[t]]=+n)}));const t=new Date(s.yyyy,s.MM-1,s.dd,s.HH,s.mm,s.ss||0,1e3*s.sss||0);return s.yyyy<100&&t.setFullYear(s.yyyy),t}}return NaN}}const Qn=/\b\d{4}-(0[1-9]|1[0-2])\b/;function Zn(t,e,n){return function(r,i,s,o,a,c,l){if(Jn(r,i,s,o,t),Kn(0,i,s,o,a),o.$parsers.push((n=>o.$isEmpty(n)?null:e.test(n)?["month","week","datetimelocal","time","date"].includes(t)?n:d(n,undefined):void(o.$$parserName=t))),o.$formatters.push((function(e){if(e&&!b(e))throw jn("datefmt","Expected `{0}` to be a String",e);if("month"===t){if(null==e)return"";if(!Qn.test(e))throw jn("datefmt","Expected month `{0}` to be a 'YYYY-DD'",e)}if("week"===t){if(null==e)return"";if(!Un.test(e))throw jn("datefmt","Expected week `{0}` to be a 'yyyy-Www'",e)}if("datetimelocal"===t){if(null==e)return"";if(!In.test(e))throw jn("datefmt","Expected week `{0}` to be a in date time format. See: https://developer.mozilla.org/en-US/docs/Web/HTML/Date_and_time_formats#local_date_and_time_strings",e)}return e})),v(s.min)||s.ngMin){let e=s.min||l(s.ngMin)(r),i=h(e);o.$validators.min=function(e){return"month"===t?g(i)||n(e)>=n(i):!u(e)||g(i)||n(e)>=i},s.$observe("min",(t=>{t!==e&&(i=h(t),e=t,o.$validate())}))}if(v(s.max)||s.ngMax){let e=s.max||l(s.ngMax)(r),i=h(e);o.$validators.max=function(e){return"month"===t?g(i)||n(e)<=n(i):!u(e)||g(i)||n(e)<=i},s.$observe("max",(t=>{t!==e&&(i=h(t),e=t,o.$validate())}))}function u(t){return t&&!(t.getTime&&t.getTime()!=t.getTime())}function h(t){return v(t)&&!E(t)?d(t)||void 0:t}function d(t,e){const r=o.$options.getOption("timezone");let i=n(t,e);return!Number.isNaN(i)&&r&&(i=Z(i,r)),i}}}function Jn(t,e,n,r,i){const s=e[0];(r.$$hasNativeValidators=y(s.validity))&&r.$parsers.push((t=>{const n=e[0][Fn]||{};if(!n.badInput&&!n.typeMismatch)return t;r.$$parserName=i}))}function Xn(t){t.$parsers.push((e=>t.$isEmpty(e)?null:Mn.test(e)?parseFloat(e):void(t.$$parserName="number"))),t.$formatters.push((e=>{if(!t.$isEmpty(e)){if(!w(e))throw jn("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e}))}function tr(t){return v(t)&&!w(t)&&(t=parseFloat(t)),R(t)?void 0:t}function er(t){return(0|t)===t}function nr(t){const e=t.toString(),n=e.indexOf(".");if(-1===n){if(t>-1&&t<1){const t=/e-(\d+)$/.exec(e);if(t)return Number(t[1])}return 0}return e.length-n-1}function rr(t,e,n){let r=Number(t);const i=!er(r),s=!er(e),o=!er(n);if(i||s||o){const t=i?nr(r):0,a=s?nr(e):0,c=o?nr(n):0,l=10**Math.max(t,a,c);r*=l,e*=l,n*=l,i&&(r=Math.round(r)),s&&(e=Math.round(e)),o&&(n=Math.round(n))}return(r-e)%n==0}function ir(t,e,n,r,i){let s;if(v(r)){if(s=t(r),!s.constant)throw jn("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return s(e)}return i}function sr(t,e,n){return{restrict:"E",require:["?ngModel"],link:{pre(r,i,s,o){o[0]&&(Wn[$(s.type)]||Wn.text)(r,i,s,o[0],t,e,n)}}}}function or(){const t={configurable:!0,enumerable:!1,get(){return this.getAttribute("value")||""},set(t){this.setAttribute("value",t)}};return{restrict:"E",priority:200,compile(e,n){if("hidden"===$(n.type))return{pre(e,n){const r=n[0];r.parentNode&&r.parentNode.insertBefore(r,r.nextSibling),Object.defineProperty&&Object.defineProperty(r,"value",t)}}}}}sr.$inject=["$browser","$filter","$parse"];const ar=/^(true|false|\d+)$/;function cr(){function t(t,e,n){const r=v(n)?n:null;t[0].value=r,e.$set("value",n)}return{restrict:"A",priority:100,compile:(e,n)=>ar.test(n.ngValue)?function(e,n,r){t(n,r,e.$eval(r.ngValue))}:function(e,n,r){e.$watch(r.ngValue,(e=>{t(n,r,e)}))}}}function lr(t){return{restrict:"E",terminal:!0,compile(e,n){"text/ng-template"===n.type&&t.set(n.id,e[0].text)}}}function ur(t,e){t[0].selected=e,t.attr("selected",e)}function hr(t,e){const n=this,r=new Map;n.selectValueMap={},n.ngModelCtrl={},n.multiple=!1,n.unknownOption=At(document.createElement("option")),n.hasEmptyOption=!1,n.emptyOption=void 0,n.renderUnknownOption=function(e){const r=n.generateUnknownOptionValue(e);n.unknownOption.val(r),t.prepend(n.unknownOption),ur(n.unknownOption,!0),t.val(r)},n.updateUnknownOption=function(e){const r=n.generateUnknownOptionValue(e);n.unknownOption.val(r),ur(n.unknownOption,!0),t.val(r)},n.generateUnknownOptionValue=function(t){return`? ${ht(t)} ?`},n.removeUnknownOption=function(){n.unknownOption.parent()&&n.unknownOption.remove()},n.selectEmptyOption=function(){n.emptyOption&&(t.val(""),ur(n.emptyOption,!0))},n.unselectEmptyOption=function(){n.hasEmptyOption&&ur(n.emptyOption,!1)},e.$on("$destroy",(()=>{n.renderUnknownOption=()=>{}})),n.readValue=function(){const e=t.val(),r=e in n.selectValueMap?n.selectValueMap[e]:e;return n.hasOption(r)?r:null},n.writeValue=function(e){const r=t[0].options[t[0].selectedIndex];if(r&&ur(At(r),!1),n.hasOption(e)){n.removeUnknownOption();const r=ht(e);t.val(r in n.selectValueMap?r:e);ur(At(t[0].options[t[0].selectedIndex]),!0)}else n.selectUnknownOrEmptyOption(e)},n.addOption=function(t,e){if(e[0].nodeType===Node.COMMENT_NODE)return;B(t,'"option value"'),""===t&&(n.hasEmptyOption=!0,n.emptyOption=e);const i=r.get(t)||0;r.set(t,i+1),s()},n.removeOption=function(t){const e=r.get(t);e&&(1===e?(r.delete(t),""===t&&(n.hasEmptyOption=!1,n.emptyOption=void 0)):r.set(t,e-1))},n.hasOption=function(t){return!!r.get(t)},n.$hasEmptyOption=function(){return n.hasEmptyOption},n.$isUnknownOptionSelected=function(){return t[0].options[0]===n.unknownOption[0]},n.$isEmptyOptionSelected=function(){return n.hasEmptyOption&&t[0].options[t[0].selectedIndex]===n.emptyOption[0]},n.selectUnknownOrEmptyOption=function(t){null==t&&n.emptyOption?(n.removeUnknownOption(),n.selectEmptyOption()):n.unknownOption.parent().length?n.updateUnknownOption(t):n.renderUnknownOption(t)};let i=!1;function s(){i||(i=!0,e.$$postDigest((()=>{i=!1,n.ngModelCtrl.$render()})))}let o=!1;function a(t){o||(o=!0,e.$$postDigest((()=>{e.$$destroyed||(o=!1,n.ngModelCtrl.$setViewValue(n.readValue()),t&&n.ngModelCtrl.$render())})))}n.registerOption=function(t,e,r,i,o){let c,l;r.$attr.ngValue?r.$observe("value",(t=>{let r;const i=e[0].selected;v(l)&&(n.removeOption(c),delete n.selectValueMap[l],r=!0),l=ht(t),c=t,n.selectValueMap[l]=t,n.addOption(t,e),e.attr("value",l),r&&i&&a()})):i?r.$observe("value",(t=>{let r;n.readValue();const i=e[0].selected;v(c)&&(n.removeOption(c),r=!0),c=t,n.addOption(t,e),r&&i&&a()})):o?t.$watch(o,((t,i)=>{r.$set("value",t);const s=e[0].selected;i!==t&&n.removeOption(i),n.addOption(t,e),i&&s&&a()})):n.addOption(r.value,e),r.$observe("disabled",(t=>{("true"===t||t&&e[0].selected)&&(n.multiple?a(!0):(n.ngModelCtrl.$setViewValue(null),n.ngModelCtrl.$render()))})),e.on("$destroy",(()=>{const t=n.readValue(),e=r.value;n.removeOption(e),s(),(n.multiple&&t&&-1!==t.indexOf(e)||t===e)&&a(!0)}))}}function dr(){return{restrict:"E",require:["select","?ngModel"],controller:hr,priority:1,link:{pre:function(t,e,n,r){const i=r[0],s=r[1];if(!s)return void(i.registerOption=()=>{});if(i.ngModelCtrl=s,e.on("change",(()=>{i.removeUnknownOption(),t.$apply((()=>{s.$setViewValue(i.readValue())}))})),n.multiple){let n;i.multiple=!0,i.readValue=function(){const t=[];return Array.from(e[0].getElementsByTagName("option")).forEach((e=>{if(e.selected&&!e.disabled){const n=e.value;t.push(n in i.selectValueMap?i.selectValueMap[n]:n)}})),t},i.writeValue=function(t){Array.from(e[0].getElementsByTagName("option")).forEach((e=>{const n=!!t&&(U(t,e.value)||U(t,i.selectValueMap[e.value]));n!==e.selected&&ur(At(e),n)}))};let r=NaN;t.$watch((()=>{r!==s.$viewValue||F(n,s.$viewValue)||(n=rt(s.$viewValue),s.$render()),r=s.$viewValue})),s.$isEmpty=function(t){return!t||0===t.length}}},post:function(t,e,n,r){const i=r[1];if(!i)return;const s=r[0];i.$render=function(){s.writeValue(i.$viewValue)}}}}}function pr(t){return{restrict:"E",priority:100,compile(e,n){let r,i;return v(n.ngValue)||(v(n.value)?r=t(n.value,!0):(i=t(e.text(),!0),i||n.$set("value",e.text()))),function(t,e,n){const s="$selectController",o=e.parent(),a=o.data(s)||o.parent().data(s);a&&a.registerOption(t,e,n,r,i)}}}}function fr(){return{restrict:"EA",link:(t,e,n)=>{t.$watch(n.ngBind,(t=>{e[0].textContent=z(t)}))}}}function $r(){return{restrict:"EA",link:(t,e,n)=>{n.$observe("ngBindTemplate",(t=>{e[0].textContent=g(t)?"":t}))}}}lr.$inject=["$templateCache"],hr.$inject=["$element","$scope"],pr.$inject=["$interpolate"];const mr=["$parse",t=>({restrict:"A",compile:(e,n)=>{const r=t(n.ngBindHtml),i=t(n.ngBindHtml,(t=>t));return(t,e)=>{t.$watch(i,(()=>{e.html(r(t)||"")}))}}})];function gr(t,e){let n;return t=`ngClass${t}`,["$parse",o=>({restrict:"EA",link(a,c,l){let u,h=c.data("$classCounts"),d=!0;function p(t,e){const n=[];return t&&t.forEach((t=>{(e>0||h[t])&&(h[t]=(h[t]||0)+e,h[t]===+(e>0)&&n.push(t))})),n.join(" ")}h||(h=Object.create(null),c.data("$classCounts",h)),"ngClass"!==t&&(n||(n=o("$index",(function(t){return 1&t}))),a.$watch(n,(function(t){t===e?(n=p(i(n=u),1),ft(c[0])?l.$addClass(n):a.$$postDigest((()=>{""!==n&&c[0].classList.add(...n.trim().split(" "))}))):function(t){t=p(i(t),-1),ft(c[0])?l.$removeClass(t):a.$$postDigest((()=>{""!==t&&c[0].classList.remove(...t.trim().split(" "))}))}(u);var n;d=t}))),a.$watch(o(l[t],s),(function(t){d===e&&function(t,e){const n=i(t),s=i(e),o=r(n,s),u=r(s,n),h=p(o,-1),d=p(u,1);ft(c[0])?(l.$addClass(d),l.$removeClass(h)):a.$$postDigest((()=>{""!==d&&c[0].classList.add(...d.trim().split(" ")),""!==h&&c[0].classList.remove(...h.trim().split(" "))}))}(u,t);u=t}))}})];function r(t,e){if(!t||!t.length)return[];if(!e||!e.length)return t;const n=[];t:for(let r=0;r<t.length;r++){const i=t[r];for(let t=0;t<e.length;t++)if(i===e[t])continue t;n.push(i)}return n}function i(t){return t&&t.split(" ")}function s(t){if(!t)return t;let e=t;return Array.isArray(t)?e=t.map(s).join(" "):y(t)?e=Object.keys(t).filter((e=>t[e])).join(" "):b(t)||(e=`${t}`),e}}const vr=gr("",!0),yr=gr("Odd",0),br=gr("Even",1);function wr(){return{restrict:"EA",compile(t,e){e.$set("ngCloak",void 0),t[0].classList.remove("ng-cloak")}}}function Er(){return{restrict:"A",scope:!0,controller:"@",priority:500}}const Cr="ng-hide",Or="ng-hide-animate";function Sr(t){return{restrict:"A",link(e,n,r){e.$watch(r.ngShow,(r=>{ft(n[0])?t[r?"removeClass":"addClass"](n,Cr,{tempClasses:Or}):e.$$postDigest((()=>{r?n.elements().forEach((t=>t.classList.remove(Cr))):n.elements().forEach((t=>t.classList.add(Cr)))}))}))}}}function xr(t){return{restrict:"A",link(e,n,r){e.$watch(r.ngHide,(r=>{ft(n[0])?t[r?"addClass":"removeClass"](n,Cr,{tempClasses:Or}):e.$$postDigest((()=>{r?n.elements().forEach((t=>t.classList.add(Cr))):n.elements().forEach((t=>t.classList.remove(Cr)))}))}))}}}Sr.$inject=["$animate"],xr.$inject=["$animate"];const Ar=Object.freeze({Program:1,ExpressionStatement:2,AssignmentExpression:3,ConditionalExpression:4,LogicalExpression:5,BinaryExpression:6,UnaryExpression:7,CallExpression:8,MemberExpression:9,Identifier:10,Literal:11,ArrayExpression:12,Property:13,ObjectExpression:14,ThisExpression:15,LocalsExpression:16,NGValueParameter:17}),kr="-add",_r="-remove",Tr="ng-",jr="-active",Vr="-prepare",Nr="ng-animate",Rr="$$ngAnimateChildren";let Pr,Dr,Mr,Lr;void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend?(Pr="WebkitTransition",Dr="webkitTransitionEnd transitionend"):(Pr="transition",Dr="transitionend"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend?(Mr="WebkitAnimation",Lr="webkitAnimationEnd animationend"):(Mr="animation",Lr="animationend");const Ir="Duration",Ur=Ar.Property,qr="Delay",Hr="TimingFunction",Fr="PlayState",Br=9999,zr=Mr+qr,Wr=Mr+Ir,Gr=Pr+qr,Kr=Pr+Ir,Yr=lt("ng");function Qr(t,e,n){if(!t)throw Yr("areq","Argument '{0}' is {1}",e||"?",n);return t}function Zr(t,e,n){let r="";return(t=Array.isArray(t)?t:t&&b(t)&&t.length?t.split(/\s+/):[]).forEach(((t,i)=>{t&&t.length>0&&(r+=i>0?" ":"",r+=n?e+t:t+e)})),r}function Jr(t){if(t instanceof At)switch(t.length){case 0:return t;case 1:if(t[0].nodeType===Node.ELEMENT_NODE)return t;break;default:return At(Xr(t))}if(t.nodeType===Node.ELEMENT_NODE)return At(t)}function Xr(t){if(!t[0])return t;for(let e=0;e<t.length;e++){const n=t[e];if(n.nodeType===Node.ELEMENT_NODE)return n}}function ti(t){if(!(t=t||{}).$$prepared){let e=t.domOperation||(()=>{});t.domOperation=function(){t.$$domOperationFired=!0,e(),e=()=>{}},t.$$prepared=!0}return t}function ei(t,e){ni(t,e),ri(t,e)}function ni(t,e){e.from&&(e.from=null)}function ri(t,e){e.to&&(e.to=null)}function ii(t,e,n){const r=e.options||{},i=n.options||{},s=`${r.addClass||""} ${i.addClass||""}`,o=`${r.removeClass||""} ${i.removeClass||""}`,a=function(t,e,n){const r=1,i=-1,s={};t=a(t),e=a(e),Object.keys(e).forEach((t=>{s[t]=r})),n=a(n),Object.keys(n).forEach((t=>{s[t]=s[t]===r?null:i}));const o={addClass:"",removeClass:""};function a(t){b(t)&&(t=t.trim().split(" "));const e={};return t&&t.forEach((t=>{t.length&&(e[t]=!0)})),e}return Object.entries(s).forEach((([e,n])=>{var s,a;n===r?(s="addClass",a=!t[e]||t[e+_r]):n===i&&(s="removeClass",a=t[e]||t[e+kr]),a&&(o[s].length&&(o[s]+=" "),o[s]+=e)})),o}(t.attr("class"),s,o);i.preparationClasses&&(r.preparationClasses=ci(i.preparationClasses,r.preparationClasses),delete i.preparationClasses);const c=r.domOperation!==(()=>{})?r.domOperation:null;return V(r,i),c&&(r.domOperation=c),a.addClass?r.addClass=a.addClass:r.addClass=null,a.removeClass?r.removeClass=a.removeClass:r.removeClass=null,e.addClass=r.addClass,e.removeClass=r.removeClass,r}function si(t){return t instanceof At?t[0]:t}function oi(t,e){const n=e?"paused":"",r=Mr+Fr;return ai(t,[r,n]),[r,n]}function ai(t,e){const n=e[0],r=e[1];t.style[n]=r}function ci(t,e){return t?e?`${t} ${e}`:t:e}const li=lt("$animate");function ui(t,e){return t||e?t?e?(Array.isArray(t)&&(t=t.join(" ")),Array.isArray(e)&&(e=e.join(" ")),`${t} ${e}`):t:e:""}function hi(t){return y(t)?t:{}}function di(t,e,n){if(n){const t=function(t){const{length:e}=t;for(let n=0;n<e;n++){const e=t[n];if(e.nodeType===Node.ELEMENT_NODE)return e}}(n);!t||t.parentNode||t.previousElementSibling||(n=null)}n?n.after(t):e.prepend(t)}function pi(t){const e=this;let n=null,r=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw li("notcsel","Expecting class selector starting with '.' got '{0}'.",n);const i=`${n}-animation`;e.$$registeredAnimations[n.substring(1)]=i,t.factory(i,r)},this.customFilter=function(t){return 1===arguments.length&&(r=O(t)?t:null),r},this.classNameFilter=function(t){if(1===arguments.length&&(n=t instanceof RegExp?t:null,n)){if(new RegExp(`[(\\s|\\/)]${Nr}[(\\s|\\/)]`).test(n.toString()))throw n=null,li("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',Nr)}return n},this.$get=["$$animateQueue",function(t){return{on:t.on,off:t.off,pin:t.pin,enabled:t.enabled,cancel(t){t.cancel&&t.cancel()},enter:(e,n,r,i)=>(n=n&&At(n),r=r&&At(r),di(e,n=n||r.parent(),r),t.push(e,"enter",hi(i))),move:(e,n,r,i)=>(n=n&&At(n),r=r&&At(r),di(e,n=n||r.parent(),r),t.push(e,"move",hi(i))),leave:(e,n)=>t.push(e,"leave",hi(n),(()=>{e.remove()})),addClass:(e,n,r)=>((r=hi(r)).addClass=ui(r.addClass,n),t.push(e,"addClass",r)),removeClass:(e,n,r)=>((r=hi(r)).removeClass=ui(r.removeClass,n),t.push(e,"removeClass",r)),setClass:(e,n,r,i)=>((i=hi(i)).addClass=ui(i.addClass,n),i.removeClass=ui(i.removeClass,r),t.push(e,"setClass",i)),animate:(e,n,r,i,s)=>((s=hi(s)).from=s.from?V(s.from,n):n,s.to=s.to?V(s.to,r):r,i=i||"ng-inline-animate",s.tempClasses=ui(s.tempClasses,i),t.push(e,"animate",s))}}]}function fi(t){return{transclude:"element",priority:600,terminal:!0,restrict:"A",link(e,n,r,i,s){let o,a,c;e.$watch(r.ngIf,(e=>{e?a||s(((e,r)=>{a=r,e[e.length++]=document.createComment(""),o={clone:e},ft(e[0])?t.enter(e,n.parent(),n):di(e,n.parent(),n)})):(c&&(c.remove(),c=null),a&&(a.$destroy(),a=null),o&&(c=Wt(o.clone),ft(c[0])?t.leave(c).done((t=>{!1!==t&&(c=null)})):c.remove(),o=null))}))}}}pi.$inject=["$provide"],fi.$inject=["$animate"];const $i=["$templateRequest","$anchorScroll","$animate",(t,e,n)=>({restrict:"EA",priority:400,terminal:!0,transclude:"element",controller:()=>{},compile(r,i){const s=i.ngInclude||i.src,o=i.onload||"",a=i.autoscroll;return(r,i,c,l,u)=>{function h(){!v(a)||a&&!r.$eval(a)||e()}let d,p,f,$=0;const m=()=>{p&&(p.remove(),p=null),d&&(d.$destroy(),d=null),f&&(ft(f[0])?n.leave(f).done((t=>{!1!==t&&(p=null)})):f.remove(),p=f,f=null)};r.$watch(s,(e=>{const s=function(t){!1!==t&&h()},a=++$;e?(t(e,!0).then((t=>{if(r.$$destroyed)return;if(a!==$)return;const c=r.$new();l.template=t;const p=u(c,(t=>{m(),ft(t[0])?n.enter(t,null,i).done(s):(di(t,null,i),h())}));d=c,f=p,d.$emit("$includeContentLoaded",e),r.$eval(o)}),(()=>{r.$$destroyed||a===$&&(m(),r.$emit("$includeContentError",e))})),r.$emit("$includeContentRequested",e)):(m(),l.template=null)}))}}})],mi=["$compile",t=>({restrict:"EA",priority:-400,require:"ngInclude",link(e,n,r,i){if(toString.call(n[0]).match(/SVG/))return n.empty(),void t(Pt(i.template).childNodes)(e,(t=>{n.append(t)}),{futureParentElement:n});n.html(i.template),t(n[0].childNodes)(e)}})];function gi(){return{priority:450,compile:()=>({pre(t,e,n){t.$eval(n.ngInit)}})}}function vi(){return{restrict:"EA",terminal:!0,priority:1e3}}const yi=lt("ngRef"),bi=["$parse",t=>({priority:-1,restrict:"A",compile(e,n){const r=pt(I(e)),i=t(n.ngRef),s=i.assign||function(){throw yi("nonassign",'Expression in ngRef="{0}" is non-assignable!',n.ngRef)};return function(t,e,o){let a;if(Object.prototype.hasOwnProperty.call(o,"ngRefRead")){if("$element"===o.ngRefRead)a=e;else if(a=e.data(`$${o.ngRefRead}Controller`),!a)throw yi("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',o.ngRefRead,n.ngRef)}else a=e.data(`$${r}Controller`);a=a||e,s(t,a),e.on("$destroy",(()=>{i(t)===a&&s(t,null)}))}}})];function wi(t,e){const n="$$NG_REMOVED",r=lt("ngRepeat"),i=function(t,e,n,r,i,s,o){t[n]=r,i&&(t[i]=s),t.$index=e,t.$first=0===e,t.$last=e===o-1,t.$middle=!(t.$first||t.$last),t.$odd=!(t.$even=!(1&e))},s=function(t){return t.clone[0]},o=function(t){return t.clone[t.clone.length-1]},a=function(t,e,n){return ht(n)},c=function(t,e){return e};return{restrict:"A",transclude:"element",priority:1e3,terminal:!0,compile:function(l,u){const h=u.ngRepeat;let d=h.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!d)throw r("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",h);const p=d[1],f=d[2],$=d[3],g=d[4];if(d=p.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/),!d)throw r("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",p);const v=d[3]||d[1],y=d[2];if($&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test($)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test($)))throw r("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",$);let b;if(g){var w={$id:ht};const e=t(g);b=function(t,n,r,i){return y&&(w[y]=n),w[v]=r,w.$index=i,e(t,w)}}return function(t,l,u,d,p){let g=Object.create(null);t.$watchCollection(f,(u=>{var d,f,E,C,O,S,x,A,k,_,T,j,V=l[0],N=Object.create(null);if($&&(t[$]=u),m(u))k=u,A=b||a;else for(var R in A=b||c,k=[],u)Object.hasOwnProperty.call(u,R)&&"$"!==R.charAt(0)&&k.push(R);for(C=k.length,T=new Array(C),d=0;d<C;d++)if(O=u===k?d:k[d],S=u[O],x=A(t,O,S,d),g[x])_=g[x],delete g[x],N[x]=_,T[d]=_;else{if(N[x])throw Object.values(T).forEach((t=>{t&&t.scope&&(g[t.id]=t)})),r("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",h,x,S);T[d]={id:x,scope:void 0,clone:void 0},N[x]=!0}for(var P in w&&(w[v]=void 0),g){if(j=Wt((_=g[P]).clone),e.leave(j),j[0].parentNode)for(d=0,f=j.length;d<f;d++)j[d][n]=!0;_.scope.$destroy()}for(d=0;d<C;d++)if(O=u===k?d:k[d],S=u[O],(_=T[d]).scope){E=V;do{E=E.nextSibling}while(E&&E[n]);s(_)!==E&&e.move(Wt(_.clone),null,V),V=o(_),i(_.scope,d,v,S,y,O,C)}else p(((t,n)=>{_.scope=n;const r=document.createComment("");t[t.length++]=r,ft(t[0])?e.enter(t,null,V):di(t,At(V).parent(),At(V)),V=r,_.clone=t,N[_.id]=_,i(_.scope,d,v,S,y,O,C)}));g=N}))}}}}function Ei(){return{restrict:"EA",link:(t,e,n)=>{t.$watchCollection(n.ngStyle,((t,n)=>{if(n){const t=Object.keys(n);for(let n=0,r=t.length;n<r;n++)e[0].style[t[n]]=""}if(t){const n=Object.entries(t);for(let t=0,r=n.length;t<r;t++){const[r,i]=n[t];e[0].style[r]=i}}}))}}}function Ci(t){return{require:"ngSwitch",controller:["$scope",class{constructor(){this.cases={}}}],link(e,n,r,i){const s=r.ngSwitch||r.on;let o=[];const a=[],c=[],l=[],u=function(t,e){return function(n){!1!==n&&t.splice(e,1)}};e.$watch(s,(e=>{let n,r;for(;c.length;)t.cancel(c.pop());for(n=0,r=l.length;n<r;++n){const e=Wt(a[n].clone);if(l[n].$destroy(),ft(e[0])){(c[n]=t.leave(e)).done(u(c,n))}else e.remove()}a.length=0,l.length=0,(o=i.cases[`!${e}`]||i.cases["?"])&&Object.values(o).forEach((e=>{e.transclude(((n,r)=>{l.push(r);const i=e.element;n[n.length++]=document.createComment("");const s={clone:n};a.push(s),ft(n[0])?t.enter(n,i.parent(),i):di(n,i.parent(),i)}))}))}))}}}function Oi(){return{transclude:"element",priority:1200,restrict:"EA",require:"^ngSwitch",link(t,e,n,r,i){const s=n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter(((t,e,n)=>n[e-1]!==t));s.forEach((t=>{r.cases[`!${t}`]=r.cases[`!${t}`]||[],r.cases[`!${t}`].push({transclude:i,element:e})}))}}}function Si(){return{restrict:"EA",transclude:"element",priority:1200,require:"^ngSwitch",link(t,e,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:e})}}}wi.$inject=["$parse","$animate"],Ci.$inject=["$animate"];const xi=lt("ngOptions"),Ai=/^\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]+?))?$/,ki=["$compile","$parse",function(t,e){const n=document.createElement("option"),r=document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,e,n,r){r[0].registerOption=()=>{}},post:function(i,s,o,a){const c=a[0],l=a[1],{multiple:u}=o;for(let t=0,e=s.children(),n=e.length;t<n;t++)if(""===e[t].value){c.hasEmptyOption=!0,c.emptyOption=e.eq(t);break}s.empty();const h=!!c.emptyOption;let d;At(n.cloneNode(!1)).val("?");const p=function(t,n,r){const i=t.match(Ai);if(!i)throw xi("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,zt(n));const s=i[5]||i[7],o=i[6],a=/ as /.test(i[0])&&i[1],c=i[9],l=e(i[2]?i[1]:s),u=a&&e(a)||l,h=c&&e(c),d=c?function(t,e){return h(r,e)}:function(t){return ht(t)},p=function(t,e){return d(t,b(t,e))},f=e(i[2]||i[1]),$=e(i[3]||""),g=e(i[4]||""),v=e(i[8]),y={};let b=o?function(t,e){return y[o]=e,y[s]=t,y}:function(t){return y[s]=t,y};function w(t,e,n,r,i){this.selectValue=t,this.viewValue=e,this.label=n,this.group=r,this.disabled=i}function E(t){let e;if(!o&&m(t))e=t;else{e=[];for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&"$"!==n.charAt(0)&&e.push(n)}return e}return{trackBy:c,getTrackByValue:p,getWatchables:e(v,(t=>{const e=[],n=E(t=t||[]),s=n.length;for(let o=0;o<s;o++){const s=t===n?o:n[o],a=t[s],c=b(a,s),l=d(a,c);if(e.push(l),i[2]||i[1]){const t=f(r,c);e.push(t)}if(i[4]){const t=g(r,c);e.push(t)}}return e})),getOptions(){const t=[],e={},n=v(r)||[],i=E(n),s=i.length;for(let o=0;o<s;o++){const s=n===i?o:i[o],a=n[s],c=b(a,s),l=u(r,c),h=d(l,c),p=new w(h,l,f(r,c),$(r,c),g(r,c));t.push(p),e[h]=p}return{items:t,selectValueMap:e,getOptionFromViewValue:t=>e[p(t)],getViewValueFromOption:t=>c?structuredClone(t.viewValue):t.viewValue}}}}(o.ngOptions,s,i),f=document.createDocumentFragment();function $(t,e){const r=n.cloneNode(!1);e.appendChild(r),function(t,e){t.element=e,e.disabled=t.disabled,t.label!==e.label&&(e.label=t.label,e.textContent=t.label);e.value=t.selectValue}(t,r)}function g(t){const e=d.getOptionFromViewValue(t),n=e&&e.element;return n&&!n.selected&&(n.selected=!0),e}c.generateUnknownOptionValue=()=>"?",u?(c.writeValue=function(t){if(!d)return;const e=t&&t.map(g)||[];d.items.forEach((t=>{t.element.selected&&!U(e,t)&&(t.element.selected=!1)}))},c.readValue=function(){const t=s.val()||[],e=[];return t.forEach((t=>{const n=d.selectValueMap[t];n&&!n.disabled&&e.push(d.getViewValueFromOption(n))})),e},p.trackBy&&i.$watchCollection((()=>{if(Array.isArray(l.$viewValue))return l.$viewValue.map((t=>p.getTrackByValue(t)))}),(()=>{l.$render()}))):(c.writeValue=function(t){if(!d)return;const e=s[0].options[s[0].selectedIndex],n=d.getOptionFromViewValue(t);e&&e.removeAttribute("selected"),n?(s[0].value!==n.selectValue&&(c.removeUnknownOption(),s[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):c.selectUnknownOrEmptyOption(t)},c.readValue=function(){const t=d.selectValueMap[s.val()];return t&&!t.disabled?(c.unselectEmptyOption(),c.removeUnknownOption(),d.getViewValueFromOption(t)):null},p.trackBy&&i.$watch((()=>p.getTrackByValue(l.$viewValue)),(()=>{l.$render()}))),h&&(t(c.emptyOption)(i),s.prepend(c.emptyOption),c.emptyOption[0].nodeType===Node.COMMENT_NODE&&(c.hasEmptyOption=!1,c.registerOption=function(t,e){""===e.val()&&(c.hasEmptyOption=!0,c.emptyOption=e,l.$render(),e.on("$destroy",(()=>{const t=c.$isEmptyOptionSelected();c.hasEmptyOption=!1,c.emptyOption=void 0,t&&l.$render()})))})),i.$watchCollection(p.getWatchables,(function(){const t=d&&c.readValue();if(d)for(let t=d.items.length-1;t>=0;t--){const e=d.items[t];v(e.group)?qt(e.element.parentNode):qt(e.element)}d=p.getOptions();const e={};if(d.items.forEach((t=>{let n;v(t.group)?(n=e[t.group],n||(n=r.cloneNode(!1),f.appendChild(n),n.label=null===t.group?"null":t.group,e[t.group]=n),$(t,n)):$(t,f)})),s[0].appendChild(f),l.$render(),!l.$isEmpty(t)){const e=c.readValue();(p.trackBy||u?F(t,e):t===e)||(l.$setViewValue(e),l.$render())}}))}}}}],_i=lt("ngTransclude"),Ti=["$compile",function(t){return{restrict:"EA",compile:function(e){const n=t(e[0].childNodes);return e.empty(),function(t,e,r,i,s){if(!s)throw _i("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",zt(e));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");const o=r.ngTransclude||r.ngTranscludeSlot;function a(){n(t,(t=>{e.append(t)}))}s((function(t,n){t.length&&function(t){for(let e=0,n=t.length;e<n;e++){const n=t[e];if(n.nodeType!==Node.TEXT_NODE||n.nodeValue.trim())return!0}}(t)?e.append(t):(a(),n.$destroy())}),null,o),o&&!s.isSlotFilled(o)&&a()}}}}];function ji(){return{restrict:"A",require:"ngModel",link(t,e,n,r){r.$viewChangeListeners.push((()=>t.$eval(n.ngChange)))}}}const Vi=/^\/(.+)\/([a-z]*)$/,Ni={};Object.entries(St).forEach((([t,e])=>{if("multiple"===e)return;function n(e,n,i){e.$watch(i[r],(e=>{i.$set(t,!!e)}))}let r=pt(`ng-${t}`),i=n;"checked"===e&&(i=function(t,e,i){i.ngModel!==i[r]&&n(t,0,i)}),Ni[r]=function(){return{restrict:"A",priority:100,link:i}}})),Object.entries(h).forEach((([t])=>{Ni[t]=function(){return{priority:100,link(e,n,r){if("ngPattern"===t&&"/"===r.ngPattern.charAt(0)){const t=r.ngPattern.match(Vi);if(t)return void r.$set("ngPattern",new RegExp(t[1],t[2]))}e.$watch(r[t],(e=>{r.$set(t,e)}))}}}})),["src","srcset","href"].forEach((t=>{const e=pt(`ng-${t}`);Ni[e]=["$sce",function(n){return{priority:99,link(r,i,s){let o=t;"href"===t&&"[object SVGAnimatedString]"===toString.call(i[0].href)&&(o="xlinkHref",s.$attr[o]="xlink:href"),s.$set(e,n.getTrustedMediaUrl(s[e])),s.$observe(e,(e=>{e?s.$set(o,e):"href"===t&&s.$set(o,null)}))}}}]}));const Ri=["$parse",t=>({restrict:"A",require:"?ngModel",link:(e,n,r,i)=>{if(!i)return;let s=Object.prototype.hasOwnProperty.call(r,"required")||t(r.ngRequired)(e);r.ngRequired||(r.required=!0),i.$validators.required=(t,e)=>!s||!i.$isEmpty(e),r.$observe("required",(t=>{s!==t&&(s=t,i.$validate())}))}})],Pi=["$parse",t=>({restrict:"A",require:"?ngModel",compile:(e,n)=>{var r,i;return n.ngPattern&&(r=n.ngPattern,i="/"===n.ngPattern.charAt(0)&&Vi.test(n.ngPattern)?function(){return n.ngPattern}:t(n.ngPattern)),function(t,e,n,s){if(s){var o=n.pattern;n.ngPattern?o=i(t):r=n.pattern;var a=Li(o,r,e);n.$observe("pattern",(function(t){var n=a;a=Li(t,r,e),(n&&n.toString())!==(a&&a.toString())&&s.$validate()})),s.$validators.pattern=function(t,e){return s.$isEmpty(e)||g(a)||a.test(e)}}}}})],Di=["$parse",t=>({restrict:"A",require:"?ngModel",link:(e,n,r,i)=>{if(!i)return;let s=r.maxlength||t(r.ngMaxlength)(e),o=Ii(s);r.$observe("maxlength",(t=>{s!==t&&(o=Ii(t),s=t,i.$validate())})),i.$validators.maxlength=function(t,e){return o<0||i.$isEmpty(e)||e.length<=o}}})],Mi=["$parse",function(t){return{restrict:"A",require:"?ngModel",link(e,n,r,i){if(!i)return;let s=r.minlength||t(r.ngMinlength)(e),o=Ii(s)||-1;r.$observe("minlength",(t=>{s!==t&&(o=Ii(t)||-1,s=t,i.$validate())})),i.$validators.minlength=function(t,e){return i.$isEmpty(e)||e.length>=o}}}}];function Li(t,e,n){if(t){if(b(t)&&(t=new RegExp(`^${t}$`)),!t.test)throw lt("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",e,t,zt(n));return t}}function Ii(t){const e=N(t);return R(e)?-1:e}class Ui{constructor(){this.autoScrollingEnabled=!0}disableAutoScrolling(){this.autoScrollingEnabled=!1}$get=["$location","$rootScope",function(t,e){function n(t){if(t){t.scrollIntoView();const e=function(){let t=r.yOffset;if(O(t))t=t();else if(L(t)){const e=t[0];t="fixed"!==window.getComputedStyle(e).position?0:e.getBoundingClientRect().bottom}else w(t)||(t=0);return t}();if(e){const n=t.getBoundingClientRect().top;window.scrollBy(0,n-e)}}else window.scrollTo(0,0)}const r=function(e){let r;(e=b(e)?e:w(e)?e.toString():t.hash())?(r=document.getElementById(e))||(r=function(t){let e=null;return Array.prototype.some.call(t,(t=>{if("a"===I(t))return e=t,!0})),e}(document.getElementsByName(e)))?n(r):"top"===e&&n(null):n(null)};return this.autoScrollingEnabled&&e.$watch((()=>t.hash()),((t,n)=>{if(t===n&&""===t)return;const i=()=>e.$evalAsync(r);"complete"===document.readyState?window.setTimeout((()=>i())):window.addEventListener("load",(()=>i()))})),r}]}function qi(t){return t.replace(/#$/,"")}class Hi{constructor(t){this.taskTracker=t,this.pendingDeferIds={},this.urlChangeListeners=[],this.urlChangeInit=!1,this.cachedState=null,this.lastHistoryState=null,this.lastBrowserUrl=window.location.href,this.baseElement=At(Array.from(document.getElementsByTagName("base"))),this.$$completeOutstandingRequest=this.taskTracker.completeTask.bind(t),this.$$incOutstandingRequestCount=this.taskTracker.incTaskCount.bind(t),this.notifyWhenNoOutstandingRequests=this.taskTracker.notifyWhenNoPendingTasks.bind(t),this.cacheState()}url(t,e){return void 0===e&&(e=null),t?(t=Be(t).href,this.lastBrowserUrl===t&&this.lastHistoryState===e||(this.lastBrowserUrl=t,this.lastHistoryState=e,history.pushState(e,"",t),this.cacheState()),this):qi(window.location.href)}state(){return this.cachedState}cacheStateAndFireUrlChange(){this.fireStateOrUrlChange()}cacheState(){const t=history.state??null;F(t,this.lastCachedState)||(this.cachedState=t,this.lastCachedState=t,this.lastHistoryState=t)}fireStateOrUrlChange(){const t=this.lastHistoryState;this.cacheState(),this.lastBrowserUrl===this.url()&&t===this.cachedState||(this.lastBrowserUrl=this.url(),this.lastHistoryState=this.cachedState,this.urlChangeListeners.forEach((t=>{t(qi(window.location.href),this.cachedState)})))}onUrlChange(t){return this.urlChangeInit||(window.addEventListener("popstate",this.cacheStateAndFireUrlChange.bind(this)),window.addEventListener("hashchange",this.cacheStateAndFireUrlChange.bind(this)),this.urlChangeInit=!0),this.urlChangeListeners.push(t),t}$$applicationDestroyed(){window.removeEventListener("popstate",this.cacheStateAndFireUrlChange.bind(this)),window.removeEventListener("hashchange",this.cacheStateAndFireUrlChange.bind(this))}$$checkUrlChange(){this.fireStateOrUrlChange()}baseHref(){const t=this.baseElement.attr("href");return t?t.replace(/^(https?:)?\/\/[^/]*/,""):""}defer(t,e=0,n=this.taskTracker.DEFAULT_TASK_TYPE){let r;return this.taskTracker.incTaskCount(n),r=window.setTimeout((()=>{delete this.pendingDeferIds[r],this.taskTracker.completeTask(t,n)}),e),this.pendingDeferIds[r]=n,r}cancel(t){if(Object.prototype.hasOwnProperty.call(this.pendingDeferIds,t)){const e=this.pendingDeferIds[t];return delete this.pendingDeferIds[t],window.clearTimeout(t),this.taskTracker.completeTask((()=>{}),e),!0}return!1}}class Fi{$get=["$$taskTrackerFactory",t=>new Hi(t)]}function Bi(){this.$get=[function(){var t=[];function e(e){t.push(e),t.length>1||window.requestAnimationFrame((function(){for(var e=0;e<t.length;e++)t[e]();t=[]}))}return function(){var t=!1;return e((function(){t=!0})),function(n){t?n():e(n)}}}]}let zi,Wi,Gi,Ki;function Yi(){this.$get=["$q","$$animateAsyncRun","$timeout",function(t,e,n){return zi=t,Wi=e,Gi=n,Qi}]}class Qi{static chain(t,e){let n=0;!function r(){n!==t.length?t[n]((t=>{!1!==t?(n++,r()):e(!1)})):e(!0)}()}static all(t,e){let n=0,r=!0;function i(i){r=r&&i,++n===t.length&&e(r)}t.forEach((t=>{t.done(i)}))}constructor(t){this.setHost(t);const e=Wi();this._doneCallbacks=[],this._tick=t=>{document.hidden?(t=>{Gi(t,0,!1)})(t):e(t)},this._state=0}setHost(t){this.host=t||{}}done(t){2===this._state?t():this._doneCallbacks.push(t)}progress(){}getPromise(){if(!this.promise){const t=this;this.promise=zi(((e,n)=>{t.done((t=>{!1===t?n():e()}))}))}return this.promise}then(t,e){return this.getPromise().then(t,e)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}pause(){this.host.pause&&this.host.pause()}resume(){this.host.resume&&this.host.resume()}end(){this.host.end&&this.host.end(),this._resolve(!0)}cancel(){this.host.cancel&&this.host.cancel(),this._resolve(!1)}complete(t){0===this._state&&(this._state=1,this._tick((()=>{this._resolve(t)})))}_resolve(t){2!==this._state&&(this._doneCallbacks.forEach((e=>{e(t)})),this._doneCallbacks.length=0,this._state=2)}}class Zi{$get=()=>new Map}const Ji=(t,e)=>{Ki.error(t,e)};function Xi(){this.$get=["$log",function(t){return Ki=t,Ji}]}function ts(){return function(t,e,n,r){if(!m(t)){if(null==t)return t;throw lt("filter")("notarray","Expected array but received: {0}",t)}let i;r=r||"$";let s=!1;switch(ns(e)){case"function":i=e;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":i=function(t,e,n,r){const i=y(t)&&n in t;let s;!0===e?e=F:O(e)||(e=function(t,e){return!g(t)&&(null===t||null===e?t===e:!(y(e)||y(t)&&!M(t))&&(t=`${t}`.toLowerCase(),e=`${e}`.toLowerCase(),-1!==t.indexOf(e)))});return s=function(s){return i&&!y(s)?es(s,t[n],e,n,!1):es(s,t,e,n,r)},s}(e,n,r,s);break;default:return t}return Array.prototype.filter.call(t,i)}}function es(t,e,n,r,i,s){const o=ns(t),a=ns(e);if("string"===a&&"!"===e.charAt(0))return!es(t,e.substring(1),n,r,i);if(Array.isArray(t))return t.some((t=>es(t,e,n,r,i)));switch(o){case"object":if(i){for(let i in t)if(i.charAt&&"$"!==i.charAt(0)&&es(t[i],e,n,r,!0))return!0;return!s&&es(t,e,n,r,!1)}if("object"===a){for(let i in e){const s=e[i];if(O(s)||g(s))continue;const o=i===r;if(!es(o?t:t[i],s,n,r,o,o))return!1}return!0}return n(t,e);case"function":return!1;default:return n(t,e)}}function ns(t){return null===t?"null":typeof t}function rs(){return function(t,e){return g(e)&&(e=2),Q(t,e)}}function is(){return function(t,e,n){return R(e=Math.abs(Number(e))===1/0?Number(e):N(e))?t:(w(t)&&(t=t.toString()),m(t)?(n=(n=!n||isNaN(n)?0:N(n))<0?Math.max(0,t.length+n):n,e>=0?ss(t,n,n+e):0===n?ss(t,e,t.length):ss(t,Math.max(0,n+e),n)):t)}}function ss(t,e,n){return b(t)?t.slice(e,n):[].slice.call(t,e,n)}function os(t){return function(r,i,s,o){if(null==r)return r;if(!m(r))throw lt("orderBy")("notarray","Expected array but received: {0}",r);Array.isArray(i)||(i=[i]),0===i.length&&(i=["+"]);const a=i.map((e=>{let n=1,r=t=>t;if(O(e))r=e;else if(b(e)&&("+"!==e.charAt(0)&&"-"!==e.charAt(0)||(n="-"===e.charAt(0)?-1:1,e=e.substring(1)),""!==e)){let n=t(e);if(n.constant){const t=n();r=e=>e[t]}else r=n}return{get:r,descending:n}}));const c=s?-1:1,l=O(o)?o:n,u=Array.prototype.map.call(r,(function(t,n){return{value:t,tieBreaker:{value:n,type:"number",index:n},predicateValues:a.map((r=>function(t,n){let r=typeof t;null===t?r="null":"object"===r&&(t=function(t){if(O(t.valueOf)&&e(t=t.valueOf()))return t;if(M(t)&&e(t=t.toString()))return t;return t}(t));return{value:t,type:r,index:n}}(r.get(t),n)))}}));return u.sort((function(t,e){for(let n=0,r=a.length;n<r;n++){const r=l(t.predicateValues[n],e.predicateValues[n]);if(r)return r*a[n].descending*c}return(l(t.tieBreaker,e.tieBreaker)||n(t.tieBreaker,e.tieBreaker))*c})),r=u.map((t=>t.value))};function e(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}}function n(t,e){let n=0;const r=t.type,i=e.type;if(r===i){let i=t.value,s=e.value;"string"===r?(i=i.toLowerCase(),s=s.toLowerCase()):"object"===r&&(y(i)&&(i=t.index),y(s)&&(s=e.index)),i!==s&&(n=i<s?-1:1)}else n="undefined"===r?1:"undefined"===i?-1:"null"===r?1:"null"===i||r<i?-1:1;return n}}function as(t){const e=function(e,n,r){return t.is(e,n,r)};return e.$stateful=!0,e}function cs(t){const e=function(e,n,r){return t.includes(e,n,r)};return e.$stateful=!0,e}function ls(t){const e="Filter";function n(r,i){if(y(r)){const t={};return Object.entries(r).forEach((([e,r])=>{t[e]=n(e,r)})),t}return t.factory(r+e,i)}this.register=n,this.$get=["$injector",function(t){return function(n){return t.get(n+e)}}],n("filter",ts),n("json",rs),n("limitTo",is),n("orderBy",os),n("isState",as),n("includedByState",cs)}os.$inject=["$parse"],as.$inject=["$state"],cs.$inject=["$state"],ls.$inject=["$provide"];class us{constructor(){this.errorOn=!0}$get=["$rootScope","$exceptionHandler",function(t,e){return function(t,e,n){const r=lt("$q");let i=0;const s=[];class o{constructor(){this.promise=new a,this.resolve=t=>h(this.promise,t),this.reject=t=>p(this.promise,t)}}class a{constructor(){this.$$state={status:0,pending:void 0,processScheduled:!1,pur:!1}}then(t,e){if(g(t)&&g(e))return this;const n=new a;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push({result:n,onFulfilled:t,onRejected:e}),this.$$state.status>0&&u(this.$$state),n}catch(t){return this.then(null,t)}finally(t){return this.then((e=>m(e,v,t)),(e=>m(e,$,t)))}}function c(e){e.processScheduled=!1;try{for(let t=0,n=e.pending.length;t<n;++t){e.pur=!0;const n=e.pending[t].result;let r;r=1===e.status?e.pending[t].onFulfilled:e.pending[t].onRejected;try{O(r)?h(n,r(e.value)):1===e.status?h(n,e.value):p(n,e.value)}catch(t){p(n,t)}}}finally{--i,n&&0===i&&t(l),e.pending=void 0}}function l(){for(;!i&&s.length;){const t=s.shift();if(!hs(t)){t.pur=!0;const n=`Possibly unhandled rejection: ${ut(t.value)}`;C(t.value)?e(t.value,n):e(n)}}}function u(e){!n||e.pending||2!==e.status||hs(e)||(0===i&&0===s.length&&t(l),s.push(e)),!e.processScheduled&&e.pending&&(e.processScheduled=!0,++i,t((()=>{c(e)})))}function h(t,e){t.$$state.status||(e===t?f(t,r("qcycle","Expected promise to be resolved with value other than itself '{0}'",e)):d(t,e))}function d(t,e){let n,r=!1;try{(y(e)||O(e))&&(n=e.then),O(n)?(t.$$state.status=-1,n.call(e,i,s)):(t.$$state.value=e,t.$$state.status=1,u(t.$$state))}catch(t){s(t)}function i(e){r||(r=!0,d(t,e))}function s(e){r||(r=!0,f(t,e))}}function p(t,e){t.$$state.status||f(t,e)}function f(t,e){t.$$state.value=e,t.$$state.status=2,u(t.$$state)}function $(t){const e=new a;return p(e,t),e}function m(t,e,n){let r=null;try{O(n)&&(r=n())}catch(t){return $(t)}return _(r)?r.then((()=>e(t)),$):e(t)}function v(t,e,n){const r=new a;return h(r,t),r.then(e,n)}function b(t){const e=new a;let n=0;const r=Array.isArray(t)?[]:{};return Object.entries(t).forEach((([t,i])=>{n++,v(i).then((i=>{r[t]=i,--n||h(e,r)}),(t=>{p(e,t)}))})),0===n&&h(e,r),e}function w(t){const e=new o;return t.forEach((t=>{v(t).then(e.resolve,e.reject)})),e.promise}function E(t){if(!O(t))throw r("norslvr","Expected resolverFn, got '{0}'",t);const e=new a;return t((t=>h(e,t)),(t=>p(e,t))),e}return E.defer=()=>new o,E.reject=$,E.resolve=v,E.all=b,E.race=w,E}((e=>{t.$evalAsync(e)}),e,this.errorOn)}];errorOnUnhandledRejections(t){return v(t)?(this.errorOn=t,this):this.errorOn}}function hs(t){return!!t.pur}function ds(t){t.$$state&&(t.$$state.pur=!0)}const ps=lt("$interval"),fs=new Map;function $s(){this.$get=["$$intervalFactory",function(t){function e(t){window.clearInterval(t),fs.delete(t)}const n=t((function(t,e,n){const r=window.setInterval(t,e);return fs.set(r,n),r}),e);return n.cancel=function(t){if(!t)return!1;if(!Object.prototype.hasOwnProperty.call(t,"$$intervalId"))throw ps("badprom","`$interval.cancel()` called with a promise that was not generated by `$interval()`.");if(!fs.has(t.$$intervalId))return!1;const n=t.$$intervalId,r=fs.get(n);return ds(r.promise),r.reject("canceled"),e(n),!0},n}]}const ms=1,gs=2;class vs{constructor(t){this.$filter=t}compile(t){let e,n,r=ys(t,this.$filter);(e=function(t){if(1===t.body.length&&bs(t.body[0].expression))return{type:Ar.AssignmentExpression,left:t.body[0].expression,right:{type:Ar.NGValueParameter},operator:"="}}(r))&&(n=this.recurse(e));const i=function(t){if(1!==t.length)return;const e=t[0].expression,n=e.toWatch;return 1!==n.length||n[0]!==e?n:void 0}(r.body);let s;if(i){s=[];for(const[t,e]of Object.entries(i)){const n=this.recurse(e);n.isPure=e.isPure,e.input=n,s.push(n),e.watchId=t}}const o=[];r.body.forEach((t=>{o.push(this.recurse(t.expression))}));const a=0===r.body.length?()=>{}:1===r.body.length?o[0]:function(t,e){let n;return o.forEach((r=>{n=r(t,e)})),n};return n&&(a.assign=(t,e,r)=>n(t,r,e)),s&&(a.inputs=s),a}recurse(t,e,n){let r,i;const s=this;let o;switch(t.type){case Ar.Literal:return this.value(t.value,e);case Ar.UnaryExpression:return i=this.recurse(t.argument),this[`unary${t.operator}`](i,e);case Ar.BinaryExpression:case Ar.LogicalExpression:return r=this.recurse(t.left),i=this.recurse(t.right),this[`binary${t.operator}`](r,i,e);case Ar.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case Ar.Identifier:return s.identifier(t.name,e,n);case Ar.MemberExpression:return r=this.recurse(t.object,!1,!!n),t.computed||(i=t.property.name),t.computed&&(i=this.recurse(t.property)),t.computed?this.computedMember(r,i,e,n):this.nonComputedMember(r,i,e,n);case Ar.CallExpression:return o=[],t.arguments.forEach((t=>{o.push(s.recurse(t))})),t.filter&&(i=this.$filter(t.callee.name)),t.filter||(i=this.recurse(t.callee,!0)),t.filter?function(t,n,r){const s=[];for(let e=0;e<o.length;++e)s.push(o[e](t,n,r));const a=i.apply(void 0,s);return e?{context:void 0,name:void 0,value:a}:a}:function(t,n,r){const s=i(t,n,r);let a;if(null!=s.value){const e=[];for(let i=0;i<o.length;++i)e.push(o[i](t,n,r));a=s.value.apply(s.context,e)}return e?{value:a}:a};case Ar.AssignmentExpression:return r=this.recurse(t.left,!0,1),i=this.recurse(t.right),function(t,n,s){const o=r(t,n,s),a=i(t,n,s);return o.context[o.name]=a,e?{value:a}:a};case Ar.ArrayExpression:return o=[],t.elements.forEach((t=>{o.push(s.recurse(t))})),function(t,n,r){const i=[];for(let e=0;e<o.length;++e)i.push(o[e](t,n,r));return e?{value:i}:i};case Ar.ObjectExpression:return o=[],t.properties.forEach((t=>{t.computed?o.push({key:s.recurse(t.key),computed:!0,value:s.recurse(t.value)}):o.push({key:t.key.type===Ar.Identifier?t.key.name:`${t.key.value}`,computed:!1,value:s.recurse(t.value)})})),function(t,n,r){const i={};for(let e=0;e<o.length;++e)o[e].computed?i[o[e].key(t,n,r)]=o[e].value(t,n,r):i[o[e].key]=o[e].value(t,n,r);return e?{value:i}:i};case Ar.ThisExpression:return function(t){return e?{value:t}:t};case Ar.LocalsExpression:return function(t,n){return e?{value:n}:n};case Ar.NGValueParameter:return function(t,n,r){return e?{value:r}:r}}}"unary+"(t,e){return function(n,r,i){let s=t(n,r,i);return s=v(s)?+s:0,e?{value:s}:s}}"unary-"(t,e){return function(n,r,i){let s=t(n,r,i);return s=v(s)?-s:-0,e?{value:s}:s}}"unary!"(t,e){return function(n,r,i){const s=!t(n,r,i);return e?{value:s}:s}}"binary+"(t,e,n){return function(r,i,s){const o=t(r,i,s),a=e(r,i,s),c=(u=a,void 0===(l=o)?u:void 0===u?l:l+u);var l,u;return n?{value:c}:c}}"binary-"(t,e,n){return function(r,i,s){const o=t(r,i,s),a=e(r,i,s),c=(v(o)?o:0)-(v(a)?a:0);return n?{value:c}:c}}"binary*"(t,e,n){return function(r,i,s){const o=t(r,i,s)*e(r,i,s);return n?{value:o}:o}}"binary/"(t,e,n){return function(r,i,s){const o=t(r,i,s)/e(r,i,s);return n?{value:o}:o}}"binary%"(t,e,n){return function(r,i,s){const o=t(r,i,s)%e(r,i,s);return n?{value:o}:o}}"binary==="(t,e,n){return function(r,i,s){const o=t(r,i,s)===e(r,i,s);return n?{value:o}:o}}"binary!=="(t,e,n){return function(r,i,s){const o=t(r,i,s)!==e(r,i,s);return n?{value:o}:o}}"binary=="(t,e,n){return function(r,i,s){const o=t(r,i,s)==e(r,i,s);return n?{value:o}:o}}"binary!="(t,e,n){return function(r,i,s){const o=t(r,i,s)!=e(r,i,s);return n?{value:o}:o}}"binary<"(t,e,n){return function(r,i,s){const o=t(r,i,s)<e(r,i,s);return n?{value:o}:o}}"binary>"(t,e,n){return function(r,i,s){const o=t(r,i,s)>e(r,i,s);return n?{value:o}:o}}"binary<="(t,e,n){return function(r,i,s){const o=t(r,i,s)<=e(r,i,s);return n?{value:o}:o}}"binary>="(t,e,n){return function(r,i,s){const o=t(r,i,s)>=e(r,i,s);return n?{value:o}:o}}"binary&&"(t,e,n){return function(r,i,s){const o=t(r,i,s)&&e(r,i,s);return n?{value:o}:o}}"binary||"(t,e,n){return function(r,i,s){const o=t(r,i,s)||e(r,i,s);return n?{value:o}:o}}"ternary?:"(t,e,n,r){return function(i,s,o){const a=t(i,s,o)?e(i,s,o):n(i,s,o);return r?{value:a}:a}}value(t,e){return function(){return e?{context:void 0,name:void 0,value:t}:t}}identifier(t,e,n){return function(r,i){const s=i&&t in i?i:r;n&&1!==n&&s&&null==s[t]&&(s[t]={});const o=s?s[t]:void 0;return e?{context:s,name:t,value:o}:o}}computedMember(t,e,n,r){return function(i,s,o){const a=t(i,s,o);let c,l;return null!=a&&(c=e(i,s,o),c=function(t){return`${t}`}(c),r&&1!==r&&a&&!a[c]&&(a[c]={}),l=a[c]),n?{context:a,name:c,value:l}:l}}nonComputedMember(t,e,n,r){return function(i,s,o){const a=t(i,s,o);r&&1!==r&&a&&null==a[e]&&(a[e]={});const c=null!=a?a[e]:void 0;return n?{context:a,name:e,value:c}:c}}}function ys(t,e,n){let r,i,s,o,a,c,l,u,h,d,p,f=t;const $=f.isPure=function(t,e){switch(t.type){case Ar.MemberExpression:if(t.computed)return!1;break;case Ar.UnaryExpression:return ms;case Ar.BinaryExpression:return"+"!==t.operator&&ms;case Ar.CallExpression:return!1}return void 0===e?gs:e}(t,n);switch(t.type){case Ar.Program:return r=!0,f.body.forEach((t=>{let n=ys(t.expression,e,$);r=r&&n.constant})),f.constant=r,f;case Ar.Literal:return f.constant=!0,f.toWatch=[],f;case Ar.UnaryExpression:var m=ys(f.argument,e,$);return f.constant=m.constant,f.toWatch=m.toWatch,f;case Ar.BinaryExpression:return o=ys(f.left,e,$),a=ys(f.right,e,$),f.constant=o.constant&&a.constant,f.toWatch=o.toWatch.concat(a.toWatch),f;case Ar.LogicalExpression:return o=ys(f.left,e,$),a=ys(f.right,e,$),f.constant=o.constant&&a.constant,f.toWatch=f.constant?[]:[t],f;case Ar.ConditionalExpression:return c=ys(t.test,e,$),l=ys(t.alternate,e,$),u=ys(t.consequent,e,$),f.constant=c.constant&&l.constant&&u.constant,f.toWatch=f.constant?[]:[t],f;case Ar.Identifier:return f.constant=!1,f.toWatch=[t],f;case Ar.MemberExpression:return h=ys(t.object,e,$),t.computed&&(d=ys(t.property,e,$)),f.constant=h.constant&&(!f.computed||d.constant),f.toWatch=f.constant?[]:[t],f;case Ar.CallExpression:return s=!!t.filter&&function(t,e){const n=t(e);return!n.$stateful}(e,t.callee.name),r=s,i=[],t.arguments.forEach((t=>{m=ys(t,e,$),r=r&&m.constant,i.push.apply(i,m.toWatch)})),f.constant=r,f.toWatch=s?i:[f],f;case Ar.AssignmentExpression:return o=ys(t.left,e,$),a=ys(t.right,e,$),f.constant=o.constant&&a.constant,f.toWatch=[f],f;case Ar.ArrayExpression:return r=!0,i=[],t.elements.forEach((t=>{m=ys(t,e,$),r=r&&m.constant,i.push.apply(i,m.toWatch)})),f.constant=r,f.toWatch=i,f;case Ar.ObjectExpression:return r=!0,i=[],t.properties.forEach((t=>{m=ys(t.value,e,$),r=r&&m.constant,i.push.apply(i,m.toWatch),t.computed&&(p=ys(t.key,e,!1),r=r&&p.constant,i.push.apply(i,p.toWatch))})),f.constant=r,f.toWatch=i,f;case Ar.ThisExpression:case Ar.LocalsExpression:return f.constant=!1,f.toWatch=[],f}}function bs(t){return t.type===Ar.Identifier||t.type===Ar.MemberExpression}const ws=lt("$parse"),Es={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},Cs=new Set("+ - * / % === !== == != < > <= >= && || ! = |".split(" "));class Os{constructor(t){this.options=t}lex(t){for(this.text=t,this.index=0,this.tokens=[];this.index<this.text.length;){const 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.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{const e=t+this.peek(),n=e+this.peek(2),r=Cs.has(t),i=Cs.has(e),s=Cs.has(n);if(r||i||s){const r=s?n:i?e:t;this.tokens.push({index:this.index,text:r,operator:!0}),this.index+=r.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens}is(t,e){return-1!==e.indexOf(t)}peek(t){const e=t||1;return this.index+e<this.text.length&&this.text.charAt(this.index+e)}isNumber(t){return t>="0"&&t<="9"&&"string"==typeof t}isWhitespace(t){return" "===t||"\r"===t||"\t"===t||"\n"===t||"\v"===t}isIdentifierStart(t){return this.options.isIdentifierStart?this.options.isIdentifierStart(t,this.codePointAt(t)):t>="a"&&t<="z"||t>="A"&&t<="Z"||"_"===t||"$"===t}isIdentifierContinue(t){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(t,this.codePointAt(t)):t>="a"&&t<="z"||t>="A"&&t<="Z"||"_"===t||"$"===t||t>="0"&&t<="9"}codePointAt(t){return 1===t.length?t.charCodeAt(0):(t.charCodeAt(0)<<10)+t.charCodeAt(1)-56613888}peekMultichar(){const t=this.text.charAt(this.index),e=this.peek();if(!e)return t;const n=t.charCodeAt(0),r=e.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?t+e:t}isExpOperator(t){return"-"===t||"+"===t||this.isNumber(t)}throwError(t,e,n){n=n||this.index;const r=v(e)?`s ${e}-${this.index} [${this.text.substring(e,n)}]`:` ${n}`;throw ws("lexerr",`Lexer Error: ${t} at column${r} in expression [${this.text}].`)}readNumber(){let t="";const e=this.index;for(;this.index<this.text.length;){const e=this.text.charAt(this.index).toLowerCase();if("."===e||this.isNumber(e))t+=e;else{const n=this.peek();if("e"===e&&this.isExpOperator(n))t+=e;else if(this.isExpOperator(e)&&n&&this.isNumber(n)&&"e"===t.charAt(t.length-1))t+=e;else{if(!this.isExpOperator(e)||n&&this.isNumber(n)||"e"!==t.charAt(t.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:e,text:t,constant:!0,value:Number(t)})}readIdent(){const t=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){const t=this.peekMultichar();if(this.isIdentifierContinue&&!this.isIdentifierContinue(t))break;this.index+=t.length}this.tokens.push({index:t,text:this.text.slice(t,this.index),identifier:!0})}readString(t){const e=this.index;let n="",r=!1;for(this.index++;this.index<this.text.length;){const i=this.text[this.index];if(r)n+="u"===i?this.handleUnicodeEscape():Es[i]||i,r=!1;else if("\\"===i)r=!0;else{if(i===t)return this.tokens.push({index:e,text:this.text.slice(e,this.index+1),constant:!0,value:n}),void this.index++;n+=i}this.index++}this.throwError("Unterminated quote",e)}handleUnicodeEscape(){const t=this.text.substring(this.index+1,this.index+5);return t.match(/[\da-f]{4}/i)||this.throwError(`Invalid unicode escape [\\u${t}]`),this.index+=4,String.fromCharCode(parseInt(t,16))}}const Ss=lt("$parse"),xs=new Map(Object.entries({true:!0,false:!1,null:null,undefined:void 0}));class As{constructor(t){this.lexer=t,this.selfReferential={this:{type:Ar.ThisExpression},$locals:{type:Ar.LocalsExpression}}}ast(t){this.text=t,this.tokens=this.lexer.lex(t);const e=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),e}program(){const t=[];let e=!0;for(;e;)this.tokens.length>0&&!this.peek("}",")",";","]")&&t.push(this.expressionStatement()),this.expect(";")||(e=!1);return{type:Ar.Program,body:t}}expressionStatement(){return{type:Ar.ExpressionStatement,expression:this.filterChain()}}filterChain(){let t=this.assignment();for(;this.expect("|");)t=this.filter(t);return t}assignment(){let t=this.ternary();if(this.expect("=")){if(!bs(t))throw Ss("lval","Trying to assign a value to a non l-value");t={type:Ar.AssignmentExpression,left:t,right:this.assignment(),operator:"="}}return t}ternary(){const t=this.logicalOR();let e,n;return this.expect("?")&&(e=this.assignment(),this.consume(":"))?(n=this.assignment(),{type:Ar.ConditionalExpression,test:t,alternate:e,consequent:n}):t}logicalOR(){let t=this.logicalAND();for(;this.expect("||");)t={type:Ar.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t}logicalAND(){let t=this.equality();for(;this.expect("&&");)t={type:Ar.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t}equality(){let t,e=this.relational();for(;t=this.expect("==","!=","===","!==");)e={type:Ar.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e}relational(){let t,e=this.additive();for(;t=this.expect("<",">","<=",">=");)e={type:Ar.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e}additive(){let t,e=this.multiplicative();for(;t=this.expect("+","-");)e={type:Ar.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e}multiplicative(){let t,e=this.unary();for(;t=this.expect("*","/","%");)e={type:Ar.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e}unary(){let t;return(t=this.expect("+","-","!"))?{type:Ar.UnaryExpression,operator:t.text,prefix:!0,argument:this.unary()}:this.primary()}primary(){let t,e;for(this.expect("(")?(t=this.filterChain(),this.consume(")")):this.expect("[")?t=this.arrayDeclaration():this.expect("{")?t=this.object():Object.prototype.hasOwnProperty.call(this.selfReferential,this.peek().text)?t=structuredClone(this.selfReferential[this.consume().text]):xs.has(this.peek().text)?t={type:Ar.Literal,value:xs.get(this.consume().text)}:this.peek().identifier?t=this.identifier():this.peek().constant?t=this.constant():this.throwError("not a primary expression",this.peek());e=this.expect("(","[",".");)"("===e.text?(t={type:Ar.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:Ar.MemberExpression,object:t,property:this.assignment(),computed:!0},this.consume("]")):"."===e.text?t={type:Ar.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t}filter(t){const e=[t],n={type:Ar.CallExpression,callee:this.identifier(),arguments:e,filter:!0};for(;this.expect(":");)e.push(this.assignment());return n}parseArguments(){const t=[];if(")"!==this.peekToken().text)do{t.push(this.filterChain())}while(this.expect(","));return t}identifier(){const t=this.consume();return t.identifier||this.throwError("is not a valid identifier",t),{type:Ar.Identifier,name:t.text}}constant(){return{type:Ar.Literal,value:this.consume().value}}arrayDeclaration(){const t=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;t.push(this.assignment())}while(this.expect(","));return this.consume("]"),{type:Ar.ArrayExpression,elements:t}}object(){const t=[];let e;if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:Ar.Property,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.assignment()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.assignment()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.assignment(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.assignment()):this.throwError("invalid key",this.peek()),t.push(e)}while(this.expect(","));return this.consume("}"),{type:Ar.ObjectExpression,properties:t}}throwError(t,e){throw Ss("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",e.text,t,e.index+1,this.text,this.text.substring(e.index))}consume(t){if(0===this.tokens.length)throw Ss("ueoe","Unexpected end of expression: {0}",this.text);const e=this.expect(t);if(e)return e;this.throwError(`is unexpected, expecting [${t}]`,this.peek())}peekToken(){if(0===this.tokens.length)throw Ss("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]}peek(...t){return this.peekAhead(0,...t)}peekAhead(t,...e){if(this.tokens.length>t){const n=this.tokens[t],r=n.text;if(e.includes(r)||!e[0]&&!e[1]&&!e[2]&&!e[3])return n}return!1}expect(...t){const e=this.peek(...t);return!!e&&(this.tokens.shift(),e)}}class ks{constructor(t,e){this.ast=new As(t),this.astCompiler=new vs(e)}parse(t){const{ast:e,oneTime:n}=this.getAst(t),r=this.astCompiler.compile(e);return r.literal=function(t){return 0===t.body.length||1===t.body.length&&(t.body[0].expression.type===Ar.Literal||t.body[0].expression.type===Ar.ArrayExpression||t.body[0].expression.type===Ar.ObjectExpression)}(e),r.constant=function(t){return t.constant}(e),r.oneTime=n,r}getAst(t){let e=!1;return(t=t.trim()).startsWith("::")&&(e=!0,t=t.substring(2)),{ast:this.ast.ast(t),oneTime:e}}}function _s(){const t=Object.create(null);var e,n;this.setIdentifierFns=function(t,r){return e=t,n=r,this},this.$get=["$filter",function(r){var i={isIdentifierStart:O(e)&&e,isIdentifierContinue:O(n)&&n};return function(e,n){var o,a;switch(typeof e){case"string":if(e=e.trim(),!(o=t[a=e])){var c=new Os(i);o=new ks(c,r).parse(e),t[a]=js(o)}return s(o,n);case"function":return s(e,n);default:return s((()=>{}),n)}};function s(t,e){if(!e)return t;t.$$interceptor&&(e=function(t,e){function n(n){return e(t(n))}return n.$stateful=t.$stateful||e.$stateful,n.$$pure=t.$$pure&&e.$$pure,n}(t.$$interceptor,e),t=t.$$intercepted);var n=!1,r=function(r,i,s,o){var a=n&&o?o[0]:t(r,i,s,o);return e(a)};return r.$$intercepted=t,r.$$interceptor=e,r.literal=t.literal,r.oneTime=t.oneTime,r.constant=t.constant,e.$stateful||(n=!t.inputs,r.inputs=t.inputs?t.inputs:[t],e.$$pure||(r.inputs=r.inputs.map((function(t){return t.isPure===gs?function(e){return t(e)}:t})))),js(r)}}]}function Ts(t,e,n,r){const i=t.$watch((()=>(i(),r(t))),e,n);return i}function js(t){return t.constant?t.$$watchDelegate=Ts:t.oneTime?t.$$watchDelegate=Ns:t.inputs&&(t.$$watchDelegate=Vs),t}function Vs(t,e,n,r){let i,s=r.inputs;if(1===s.length){let o=Rs,a=s[0];return t.$watch((t=>{const e=a(t);return Rs(e,o,a.isPure)||(i=r(t,void 0,void 0,[e]),o=e&&Ds(e)),i}),e,n)}{const o=[],a=[];for(let t=0,e=s.length;t<e;t++)o[t]=Rs,a[t]=null;return t.$watch((t=>{let e=!1;for(let n=0,r=s.length;n<r;n++){const r=s[n](t);(e||(e=!Rs(r,o[n],s[n].isPure)))&&(a[n]=r,o[n]=r&&Ds(r))}return e&&(i=r(t,void 0,void 0,a)),i}),e,n)}}function Ns(t,e,n,r){const i=r.literal?Ps:v;let s,o;const a=r.$$intercepted||r,c=r.$$interceptor||(t=>t),l=r.inputs&&!a.inputs;function u(){i(o)&&s()}function h(t,e,n,r){return o=l&&r?r[0]:a(t,e,n,r),i(o)&&t.$$postDigest(u),c(o)}return h.literal=r.literal,h.constant=r.constant,h.inputs=r.inputs,h.oneTime=void 0,js(h),s=t.$watch(h,e,n),s}function Rs(t,e,n){return null==t||null==e?t===e:!("object"==typeof t&&"object"==typeof(t=Ds(t))&&!n)&&(t===e||t!=t&&e!=e)}function Ps(t){let e=!0;return Object.values(t).forEach((t=>{v(t)||(e=!1)})),e}function Ds(t){return O(t.valueOf)?t.valueOf():{}.constructor.prototype.valueOf.call(t)}const Ms=lt("$interpolate");function Ls(t,e){throw Ms("interr","Can't interpolate: {0}\n{1}",t,e.toString())}class Is{constructor(){this.start="{{",this.end="}}"}startSymbol(t){return t?(this.start=t,this):this.start}endSymbol(t){return t?(this.end=t,this):this.end}$get=["$parse","$sce",function(t,e){const n=this,r=n.start.length,i=n.end.length,s=new RegExp(this.start.replace(/./g,a),"g"),o=new RegExp(n.end.replace(/./g,a),"g");function a(t){return`\\\\\\${t}`}function c(t){return t.replace(s,n.start).replace(o,n.end)}function l(s,o,a,l){const u=a===e.URL||a===e.MEDIA_URL;if(!s.length||-1===s.indexOf(n.start)){if(o)return;let t=c(s);u&&(t=e.getTrusted(a,t));const n=D(t);return n.exp=s,n.expressions=[],n.$$watchDelegate=Ts,n}let h,d;l=!!l;let p=0;const f=[];let $;const m=s.length;let y;const b=[],w=[];let E;for(;p<m;){if(-1===(h=s.indexOf(n.start,p))||-1===(d=s.indexOf(n.end,h+r))){p!==m&&b.push(c(s.substring(p)));break}p!==h&&b.push(c(s.substring(p,h))),y=s.substring(h+r,d),f.push(y),p=d+i,w.push(b.length),b.push("")}E=1===b.length&&1===w.length;const C=u&&E?void 0:function(t){try{return t=a&&!u?e.getTrusted(a,t):e.valueOf(t),l&&!v(t)?t:z(t)}catch(t){Ls(s,t)}};if($=f.map((e=>t(e,C))),!o||f.length){const t=function(t){for(let e=0,n=f.length;e<n;e++){if(l&&g(t[e]))return;b[w[e]]=t[e]}return u?e.getTrusted(a,E?b[0]:b.join("")):(a&&b.length>1&&function(t){throw Ms("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required. See http://docs.angularjs.org/api/ng.$sce",t)}(s),b.join(""))};return V((e=>{let n=0;const r=f.length,i=new Array(r);try{for(;n<r;n++)i[n]=$[n](e);return t(i)}catch(t){Ls(s,t)}}),{exp:s,expressions:f,$$watchDelegate(e,n){let r;return e.$watchGroup($,((i,s)=>{const o=t(i);n.call(this,o,i!==s?r:o,e),r=o}))}})}}return l.startSymbol=function(){return n.start},l.endSymbol=function(){return n.end},l}]}function Us(){this.$get=["$q","$rootScope",function(t,e){return function(n,r){return function(i,s,o){const a=arguments.length>4,c=a?G(arguments,4):[];let l=0;const u=t.defer(),{promise:h}=u;function d(){a?i.apply(null,c):i(l)}return o=v(o)?o:0,h.$$intervalId=n((function(){e.$evalAsync(d),l++,o>0&&l>=o&&(u.resolve(l),r(h.$$intervalId)),e.$apply()}),s,u),h}}}]}let qs={},Hs="";function Fs(t){try{return decodeURIComponent(t)}catch(e){return t}}const Bs="application/json",zs={"Content-Type":`${Bs};charset=utf-8`},Ws=/^\[|^\{(?!\{)/,Gs={"[":/]$/,"{":/}$/},Ks=/^\)]\}',?\n/,Ys=lt("$http");function Qs(t){return y(t)?E(t)?t.toISOString():Q(t):t}function Zs(){this.$get=function(){return function(t){if(!t)return"";const e=[];return Object.keys(t).sort().forEach((n=>{const r=t[n];null===r||g(r)||O(r)||(Array.isArray(r)?r.forEach((t=>{e.push(`${et(n)}=${et(Qs(t))}`)})):e.push(`${et(n)}=${et(Qs(r))}`))})),e.join("&")}}}function Js(t,e){if(b(t)){const r=t.replace(Ks,"").trim();if(r){const i=e("Content-Type"),s=i&&0===i.indexOf(Bs);if(s||function(t){const e=t.match(Ws);return e&&Gs[e[0]].test(t)}(r))try{t=b(n=r)?JSON.parse(n):n}catch(e){if(!s)return t;throw Ys("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',t,e)}}}var n;return t}function Xs(t){const e=Object.create(null);let n;function r(t,n){t&&(e[t]=e[t]?`${e[t]}, ${n}`:n)}return b(t)?t.split("\n").forEach((t=>{n=t.indexOf(":"),r(t.substring(0,n).trim().toLowerCase(),T(t.substring(n+1)))})):y(t)&&Object.entries(t).forEach((([t,e])=>{r($(t),T(e))})),e}function to(t){let e;return function(n){if(e||(e=Xs(t)),n){let t=e[$(n)];return void 0===t&&(t=null),t}return e}}function eo(t,e,n,r){return O(r)?r(t,e,n):(Array.isArray(r)&&r.forEach((r=>{t=r(t,e,n)})),t)}function no(t){return t>=200&&t<300}function ro(){const t=this.defaults={transformResponse:[Js],transformRequest:[function(t){return!y(t)||(e=t,"[object File]"===toString.call(e))||function(t){return"[object Blob]"===toString.call(t)}(t)||function(t){return"[object FormData]"===toString.call(t)}(t)?t:Q(t);var e}],headers:{common:{Accept:"application/json, text/plain, */*"},post:rt(zs),put:rt(zs),patch:rt(zs)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"};let e=!1;this.useApplyAsync=function(t){return v(t)?(e=!!t,this):e};const n=this.interceptors=[],r=this.xsrfTrustedOrigins=[];Object.defineProperty(this,"xsrfWhitelistedOrigins",{get(){return this.xsrfTrustedOrigins},set(t){this.xsrfTrustedOrigins=t}}),this.$get=["$browser","$httpBackend","$rootScope","$q","$injector","$sce",function(i,s,o,a,c,l){const u=new Map;t.paramSerializer=b(t.paramSerializer)?c.get(t.paramSerializer):t.paramSerializer;const h=[];n.forEach((t=>{h.unshift(b(t)?c.get(t):c.invoke(t))}));const d=function(t){const e=[He].concat(t.map(Be));return function(t){const n=Be(t);return e.some(We.bind(null,n))}}(r);function p(n){if(!y(n))throw lt("$http")("badreq","Http request configuration must be an object. Received: {0}",n);if(!b(l.valueOf(n.url)))throw lt("$http")("badreq","Http request configuration url must be a string or a $sce trusted object. Received: {0}",n.url);const r=V({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},n);var f;r.headers=function(e){let n=t.headers,r=V({},e.headers);return n=V({},n.common,n[$(e.method)]),Object.keys(n).forEach((t=>{const e=$(t);Object.keys(r).some((t=>$(t)===e))||(r[t]=n[t])})),function(t,e){let n;const r={};return Object.entries(t).forEach((([t,i])=>{O(i)?(n=i(e),null!=n&&(r[t]=n)):r[t]=i})),r}(r,rt(e))}(n),r.method=b(f=r.method)?f.toUpperCase():f,r.paramSerializer=b(r.paramSerializer)?c.get(r.paramSerializer):r.paramSerializer,i.$$incOutstandingRequestCount("$http");const m=[],w=[];let E=a.resolve(r);return h.forEach((t=>{(t.request||t.requestError)&&m.unshift(t.request,t.requestError),(t.response||t.responseError)&&w.push(t.response,t.responseError)})),E=C(E,m),E=E.then((function(n){const{headers:r}=n,i=eo(n.data,to(r),void 0,n.transformRequest);g(i)&&Object.keys(r).forEach((t=>{"content-type"===$(t)&&delete r[t]}));g(n.withCredentials)&&!g(t.withCredentials)&&(n.withCredentials=t.withCredentials);return function(n,r){const i=a.defer(),{promise:c}=i;let h,f;const $=n.headers;let{url:m}=n;b(m)||(m=l.valueOf(m));m=function(t,e){e.length>0&&(t+=(-1===t.indexOf("?")?"?":"&")+e);return t}(m,n.paramSerializer(n.params)),p.pendingRequests.push(n),c.then(S,S),(n.cache||t.cache)&&!1!==n.cache&&"GET"===n.method&&(h=y(n.cache)?n.cache:y(t.cache)?t.cache:u);h&&(f=h.get(m),v(f)?_(f)?f.then(O,O):Array.isArray(f)?C(f[1],f[0],rt(f[2]),f[3],f[4]):C(f,200,{},"OK","complete"):h.set(m,c));if(g(f)){const e=d(n.url)?function(){let t,e,n,r,i;const s=document.cookie;if(s!==Hs)for(Hs=s,t=Hs.split("; "),qs={},n=0;n<t.length;n++)e=t[n],r=e.indexOf("="),r>0&&(i=Fs(e.substring(0,r)),g(qs[i])&&(qs[i]=Fs(e.substring(r+1))));return qs}()[n.xsrfCookieName||t.xsrfCookieName]:void 0;e&&($[n.xsrfHeaderName||t.xsrfHeaderName]=e),s(n.method,m,r,E,$,n.timeout,n.withCredentials,n.responseType,w(n.eventHandlers),w(n.uploadEventHandlers))}return c;function w(t){if(t){const n={};return Object.entries(t).forEach((([t,r])=>{n[t]=function(t){function n(){r(t)}e?o.$applyAsync(n):o.$$phase!==xe.NONE?n():o.$apply(n)}})),n}}function E(t,n,r,i,s){function a(){C(n,t,r,i,s)}h&&(no(t)?h.set(m,[t,n,Xs(r),i,s]):h.delete(m)),e?o.$applyAsync(a):(a(),o.$$phase||o.$apply())}function C(t,e,r,s,o){(no(e=e>=-1?e:0)?i.resolve:i.reject)({data:t,status:e,headers:to(r),config:n,statusText:s,xhrStatus:o})}function O(t){C(t.data,t.status,rt(t.headers()),t.statusText,t.xhrStatus)}function S(){const t=p.pendingRequests.indexOf(n);-1!==t&&p.pendingRequests.splice(t,1)}}(n,i).then(S,S)})),E=C(E,w),E=E.finally((function(){i.$$completeOutstandingRequest((()=>{}),"$http")})),E;function C(t,e){for(let n=0,r=e.length;n<r;){const r=e[n++],i=e[n++];t=t.then(r,i)}return e.length=0,t}function S(t){const e=V({},t);return e.data=eo(t.data,t.headers,t.status,r.transformResponse),no(t.status)?e:a.reject(e)}}return p.pendingRequests=[],function(...t){t.forEach((t=>{p[t]=function(e,n){return p(V({},n||{},{method:t,url:e}))}}))}("get","delete","head"),function(...t){t.forEach((t=>{p[t]=function(e,n,r){return p(V({},r||{},{method:t,url:e,data:n}))}}))}("post","put","patch"),p.defaults=t,p}]}function io(){this.$get=["$browser",function(t){return function(t){return function(e,n,r,i,s,o,a,c,l,u){n=n||t.url();const h=new XMLHttpRequest;let d=!1;if(h.open(e,n,!0),s&&Object.entries(s).forEach((([t,e])=>{v(e)&&h.setRequestHeader(t,e)})),h.onload=function(){const t=h.statusText||"";let e=h.status;0===e&&(e=h.response?200:"file"===Be(n).protocol?404:0),$(i,e,h.response,h.getAllResponseHeaders(),t,"complete")},h.onerror=function(){$(i,-1,null,null,"","error")},h.ontimeout=function(){$(i,-1,null,null,"","timeout")},h.onabort=function(){$(i,-1,null,null,"",d?"timeout":"abort")},l&&l&&Object.entries(l).forEach((([t,e])=>{h.addEventListener(t,e)})),u&&Object.entries(u).forEach((([t,e])=>{h.upload.addEventListener(t,e)})),a&&(h.withCredentials=!0),c)try{h.responseType=c}catch(t){if("json"!==c)throw t}if(h.send(g(r)?null:r),o>0)var p=t.defer((()=>{f("timeout")}),o);else _(o)&&o.then((()=>{f(v(o.$$timeoutId)?"timeout":"abort")}));function f(t){d="timeout"===t,h&&h.abort()}function $(e,n,r,i,s,o){v(p)&&t.cancel(p),e(n,r,i,s,o)}}}(t)}]}const so={http:80,https:443,ftp:21},oo=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,ao=lt("$location");class co{constructor(t,e){const n=Be(t);this.appBase=t,this.appBaseNoFile=e,this.$$absUrl="",this.$$html5=!1,this.$$replace=!1,this.$$protocol=n.protocol,this.$$host=n.hostname,this.$$port=N(n.port)||so[n.protocol]||null,this.$$path=void 0,this.$$hash=void 0,this.$$urlUpdatedByLocation=!1}absUrl(){return this.$$absUrl}url(t){if(g(t))return this.$$url;const e=oo.exec(t);return(e[1]||""===t)&&this.path(decodeURIComponent(e[1])),(e[2]||e[1]||""===t)&&this.search(e[3]||""),this.hash(e[5]||""),this}protocol(){return this.$$protocol}host(){return this.$$host}port(){return this.$$port}path(t){if(g(t))return this.$$path;let e=null!==t?t.toString():"";return this.$$path="/"===e.charAt(0)?e:`/${e}`,this.$$compose(),this}hash(t){return g(t)?this.$$hash:(this.$$hash=null!==t?t.toString():"",this.$$compose(),this)}replace(){return this.$$replace=!0,this}search(t,e){switch(arguments.length){case 0:return this.$$search;case 1:if(b(t)||w(t))t=t.toString(),this.$$search=J(t);else{if(!y(t))throw ao("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");t=structuredClone(t,{}),Object.entries(t).forEach((([e,n])=>{null==n&&delete t[e]})),this.$$search=t}break;default:g(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this}$$compose(){this.$$url=function(t,e,n){const r=function(t){const e=[];return t&&Object.entries(t).forEach((([t,n])=>{Array.isArray(n)?n.forEach((n=>{e.push(et(t,!0)+(!0===n?"":`=${et(n,!0)}`))})):e.push(et(t,!0)+(!0===n?"":`=${et(n,!0)}`))})),e.length?e.join("&"):""}(e),i=n?`#${tt(n)}`:"";return function(t){const e=t.split("/");let n=e.length;for(;n--;)e[n]=tt(e[n].replace(/%2F/g,"/"));return e.join("/")}(t)+(r?`?${r}`:"")+i}(this.$$path,this.$$search,this.$$hash),this.$$absUrl=this.$$normalizeUrl(this.$$url),this.$$urlUpdatedByLocation=!0}$$normalizeUrl(t){throw new Error(`Method not implemented ${t}`)}state(t){if(!arguments.length)return this.$$state;if(!(this instanceof lo&&this.$$html5))throw ao("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=g(t)?null:t,this.$$urlUpdatedByLocation=!0,this}$$parseLinkUrl(t,e){throw new Error(`Method not implemented ${t} ${e}`)}$$parse(t){throw new Error(`Method not implemented ${t}`)}}class lo extends co{constructor(t,e,n){super(t,e),this.$$html5=!0,this.basePrefix=n||""}$$parse(t){const e=$o(this.appBaseNoFile,t);if(!b(e))throw ao("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,this.appBaseNoFile);po(e,this,!0),this.$$path||(this.$$path="/"),this.$$compose()}$$normalizeUrl(t){return this.appBaseNoFile+t.substring(1)}$$parseLinkUrl(t,e){if(e&&"#"===e[0])return this.hash(e.slice(1)),!0;let n,r,i;return v(n=$o(this.appBase,t))?(r=n,i=this.basePrefix&&v(n=$o(this.basePrefix,n))?this.appBaseNoFile+($o("/",n)||n):this.appBase+r):v(n=$o(this.appBaseNoFile,t))?i=this.appBaseNoFile+n:this.appBaseNoFile===`${t}/`&&(i=this.appBaseNoFile),i&&this.$$parse(i),!!i}}class uo extends co{constructor(t,e,n){super(t,e),this.hashPrefix=n}$$parse(t){const e=$o(this.appBase,t)||$o(this.appBaseNoFile,t);let n;g(e)||"#"!==e.charAt(0)?this.$$html5?n=e:(n="",g(e)&&(this.appBase=t,this.replace())):(n=$o(this.hashPrefix,e),g(n)&&(n=e)),po(n,this,!1),this.$$path=function(t,e,n){const r=/^\/[A-Z]:(\/.*)/;let i;fo(e,n)&&(e=e.replace(n,""));if(r.exec(e))return t;return i=r.exec(t),i?i[1]:t}(this.$$path,n,this.appBase),this.$$compose()}$$normalizeUrl(t){return this.appBase+(t?this.hashPrefix+t:"")}$$parseLinkUrl(t){return mo(this.appBase)===mo(t)&&(this.$$parse(t),!0)}}class ho{constructor(){this.hashPrefixConf="!",this.html5ModeConf={enabled:!1,requireBase:!0,rewriteLinks:!0}}setHashPrefix(t){this.hashPrefixConf=t}getHashPrefix(){return this.hashPrefixConf}setHtml5Mode(t){if(k(t)&&(this.html5ModeConf.enabled=t),y(t)){const e=t;v(e.enabled)&&k(e.enabled)&&(this.html5ModeConf.enabled=e.enabled),v(e.requireBase)&&k(e.requireBase)&&(this.html5ModeConf.requireBase=e.requireBase),v(e.rewriteLinks)&&(k(e.rewriteLinks)||b(e.rewriteLinks))&&(this.html5ModeConf.rewriteLinks=e.rewriteLinks)}}getHtml5Mode(){return this.html5ModeConf}$get=["$rootScope","$browser","$rootElement",(t,e,n)=>{let r,i;const s=e.baseHref(),o=e.url();let a;if(this.getHtml5Mode().enabled){if(!s&&this.getHtml5Mode().requireBase)throw ao("nobase","$location in HTML5 mode requires a <base> tag to be present!");a=(c=o).substring(0,c.indexOf("/",c.indexOf("//")+2))+(s||"/"),i=lo}else a=mo(o),i=uo;var c;const l=function(t){return t.substring(0,mo(t).lastIndexOf("/")+1)}(a);r=new i(a,l,`#${this.getHashPrefix()}`),r.$$parseLinkUrl(o,o),r.$$state=e.state();const u=/^\s*(javascript|mailto):/i;function h(t,n){const i=r.url(),s=r.$$state;try{e.url(t,n),r.$$state=e.state()}catch(t){throw r.url(i),r.$$state=s,t}}n.on("click",(i=>{const s=this.getHtml5Mode().rewriteLinks;if(!s||i.ctrlKey||i.metaKey||i.shiftKey||2===i.which||2===i.button)return;let o=At(i.target);for(;"a"!==o[0].nodeName.toLowerCase();)if(o[0]===n[0]||!(o=o.parent())[0])return;if(b(s)&&g(o.attr(s)))return;let a=o[0].href;const c=o.attr("href")||o.attr("xlink:href");y(a)&&"[object SVGAnimatedString]"===a.toString()&&(a=Be(a.animVal).href),u.test(a)||!a||o.attr("target")||i.isDefaultPrevented()||r.$$parseLinkUrl(a,c)&&(i.preventDefault(),r.absUrl()!==e.url()&&t.$apply())})),r.absUrl()!==o&&e.url(r.absUrl(),!0);let d=!0;return e.onUrlChange(((e,n)=>{fo(e,l)?(t.$evalAsync((()=>{const i=r.absUrl(),s=r.$$state;let o;r.$$parse(e),r.$$state=n,o=t.$broadcast("$locationChangeStart",e,i,n,s).defaultPrevented,r.absUrl()===e&&(o?(r.$$parse(i),r.$$state=s,h(i,s)):(d=!1,p(i,s)))})),t.$$phase===xe.NONE&&t.$digest()):window.location.href=e})),t.$watch((()=>{if(d||r.$$urlUpdatedByLocation){r.$$urlUpdatedByLocation=!1;const s=e.url(),o=r.absUrl(),a=e.state(),c=!((n=s)===(i=o)||Be(n).href===Be(i).href)||r.$$html5&&a!==r.$$state;(d||c)&&(d=!1,t.$evalAsync((()=>{const e=r.absUrl(),{defaultPrevented:n}=t.$broadcast("$locationChangeStart",e,s,r.$$state,a);r.absUrl()===e&&(n?(r.$$parse(s),r.$$state=a):(c&&h(e,a===r.$$state?null:r.$$state),p(s,a)))})))}var n,i;r.$$replace=!1})),r;function p(e,n){t.$broadcast("$locationChangeSuccess",r.absUrl(),e,r.$$state,n)}}]}function po(t,e,n){if(/^\s*[\\/]{2,}/.test(t))throw ao("badpath",'Invalid url "{0}".',t);const r="/"!==t.charAt(0);r&&(t=`/${t}`);const i=Be(t),s=r&&"/"===i.pathname.charAt(0)?i.pathname.substring(1):i.pathname;e.$$path=function(t,e){const n=t.split("/");let r=n.length;for(;r--;)n[r]=decodeURIComponent(n[r]),e&&(n[r]=n[r].replace(/\//g,"%2F"));return n.join("/")}(s,n),e.$$search=J(i.search),e.$$hash=decodeURIComponent(i.hash),e.$$path&&"/"!==e.$$path.charAt(0)&&(e.$$path=`/${e.$$path}`)}function fo(t,e){return t.slice(0,e.length)===e}function $o(t,e){if(fo(e,t))return e.substring(t.length)}function mo(t){const e=t.indexOf("#");return-1===e?t:t.substring(0,e)}let go={debug:void 0,error:void 0,info:void 0,log:void 0,warn:void 0};class vo{constructor(){this.debug=!0}debugEnabled(t){return void 0!==t?(this.debug=t,this):this.debug}formatError(t){return C(t)&&(t.stack?t=t.message&&-1===t.stack.indexOf(t.message)?`Error: ${t.message}\n${t.stack}`:t.stack:t.sourceURL&&(t=`${t.message}\n${t.sourceURL}:${t.line}`)),t}consoleLog(t){const e=window.console||{},n=e[t]||e.log||(()=>{});return(...t)=>{const r=t.map((t=>this.formatError(t)));return n.apply(e,r)}}$get(){return go={log:this.consoleLog("log"),info:this.consoleLog("info"),warn:this.consoleLog("warn"),error:this.consoleLog("error"),debug:(()=>{const t=this.consoleLog("debug");return(...e)=>{this.debug&&t.apply(this,e)}})()},go}}class yo{$get=["$log",t=>new bo(t)]}class bo{constructor(t){this.log=t,this.taskCounts={},this.taskCallbacks=[],this.ALL_TASKS_TYPE="$$all$$",this.DEFAULT_TASK_TYPE="$$default$$"}completeTask(t,e=this.DEFAULT_TASK_TYPE){try{t()}finally{this.taskCounts[e]&&(this.taskCounts[e]--,this.taskCounts[this.ALL_TASKS_TYPE]--);const t=this.taskCounts[e],n=this.taskCounts[this.ALL_TASKS_TYPE];if(!n||!t){const t=n?()=>this.getLastCallbackForType(e):this.getLastCallback.bind(this);let r;for(;r=t();)try{r()}catch(t){this.log.error(t)}}}}incTaskCount(t=this.DEFAULT_TASK_TYPE){this.taskCounts[t]=(this.taskCounts[t]||0)+1,this.taskCounts[this.ALL_TASKS_TYPE]=(this.taskCounts[this.ALL_TASKS_TYPE]||0)+1}notifyWhenNoPendingTasks(t,e=this.ALL_TASKS_TYPE){this.taskCounts[e]?this.taskCallbacks.push({type:e,cb:t}):t()}getLastCallback(){const t=this.taskCallbacks.pop();return t?t.cb:void 0}getLastCallbackForType(t){for(let e=this.taskCallbacks.length-1;e>=0;--e){const n=this.taskCallbacks[e];if(n.type===t)return this.taskCallbacks.splice(e,1),n.cb}}}var wo=lt("$templateRequest");function Eo(){var t;this.httpOptions=function(e){return e?(t=e,this):t},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(e,n,r,i,s){function o(a,c){o.totalPendingRequests++,b(a)&&n.has(a)||(a=s.getTrustedResourceUrl(a));var l=r.defaults&&r.defaults.transformResponse;return Array.isArray(l)?l=l.filter((function(t){return t!==Js})):l===Js&&(l=null),r.get(a,V({cache:n,transformResponse:l},t)).finally((function(){o.totalPendingRequests--})).then((function(t){return n.set(a,t.data),t.data}),(function(t){c||(t=wo("tpload","Failed to load template: {0} (HTTP status: {1} {2})",a,t.status,t.statusText),e(t));return i.reject(t)}))}return o.totalPendingRequests=0,o}]}const Co=lt("$timeout");class Oo{$get=["$rootScope","$browser","$q","$exceptionHandler",(t,e,n,r)=>{const i={};function s(s,o,a=!0){const c=G(arguments,3),l=v(a)&&!a,u=n.defer(),{promise:h}=u;let d;return d=e.defer((()=>{try{u.resolve(s.apply(null,c))}catch(t){u.reject(t),r(t)}finally{delete i[h.$$timeoutId]}l||t.$apply()}),o,"$timeout"),h.$$timeoutId=d,i[d]=u,h}return s.cancel=function(t){if(!t)return!1;if(!Object.prototype.hasOwnProperty.call(t,"$$timeoutId"))throw Co("badprom","`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.");if(!Object.prototype.hasOwnProperty.call(i,t.$$timeoutId))return!1;const n=t.$$timeoutId,r=i[n];return ds(r.promise),r.reject("canceled"),delete i[n],e.cancel(n)},s}]}function So(){let t=/^\s*(https?|s?ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationTrustedUrlList=function(e){return v(e)?(t=e,this):t},this.imgSrcSanitizationTrustedUrlList=function(t){return v(t)?(e=t,this):e},this.$get=function(){return function(n,r){const i=r?e:t,s=Be(n&&n.trim()).href;return""===s||s.match(i)?n:`unsafe:${s}`}}}const xo="ng-active",Ao="ng-inactive";class ko{constructor(t,e,n,r){this.$element=t,this.$scope=e,this.$attrs=n,this.$animate=r,this.latestKey=0,this.nextAttachId=0,this.messages={},this.renderLater=!1,this.cachedCollection=null,this.head=void 0,this.default=void 0,this.$scope.$watchCollection(this.$attrs.ngMessages||this.$attrs.for,this.render.bind(this))}getAttachId(){return this.nextAttachId++}render(t={}){this.renderLater=!1,this.cachedCollection=t;const e=To(this.$scope,this.$attrs.ngMessagesMultiple)||To(this.$scope,this.$attrs.multiple),n=[],r={};let i=0,s=this.head,o=!1,a=0;for(;null!=s;){a++;const c=s.message;let l=!1;o||Object.entries(t).forEach((([t,e])=>{if(jo(e)&&!l&&(i++,c.test(t))){if(r[t])return;r[t]=!0,l=!0,c.attach()}})),l?o=!e:n.push(c),s=s.next}n.forEach((t=>{t.detach()}));const c=n.length!==a,l=this.default&&!c&&i>0;l?this.default.attach():this.default&&this.default.detach(),c||l?this.$animate.setClass(this.$element,xo,Ao):this.$animate.setClass(this.$element,Ao,xo)}reRender(){this.renderLater||(this.renderLater=!0,this.$scope.$evalAsync((()=>{this.renderLater&&this.cachedCollection&&this.render(this.cachedCollection)})))}register(t,e,n){if(n)this.default=e;else{const n=this.latestKey.toString();this.messages[n]={message:e},this.insertMessageNode(this.$element[0],t,n),t.$$ngMessageNode=n,this.latestKey++}this.reRender()}deregister(t,e){if(e)delete this.default;else{const e=t.$$ngMessageNode;delete t.$$ngMessageNode,this.removeMessageNode(this.$element[0],t,e),delete this.messages[e]}this.reRender()}findPreviousMessage(t,e){let n=e;const r=[];for(;n&&n!==t;){const t=n.$$ngMessageNode;if(t&&t.length)return this.messages[t];n.childNodes.length&&-1===r.indexOf(n)?(r.push(n),n=n.childNodes[n.childNodes.length-1]):n.previousSibling?n=n.previousSibling:(n=n.parentNode,r.push(n))}}insertMessageNode(t,e,n){const r=this.messages[n];if(this.head){const n=this.findPreviousMessage(t,e);n?(r.next=n.next,n.next=r):(r.next=this.head,this.head=r)}else this.head=r}removeMessageNode(t,e,n){const r=this.messages[n];if(!r)return;const i=this.findPreviousMessage(t,e);i?i.next=r.next:this.head=r.next}}function _o(t){return{require:"ngMessages",restrict:"AE",controller:(e,n,r)=>new ko(e,n,r,t)}}function To(t,e){return b(e)&&0===e.length||jo(t.$eval(e))}function jo(t){return b(t)?t.length:!!t}function Vo(t,e){return{restrict:"AE",require:"^^ngMessages",link(n,r,i){const s=i.ngMessagesInclude||i.src;t(s).then((t=>{n.$$destroyed||b(t)&&!t.trim()||e(t)(n,(t=>{r.after(t)}))}))}}}_o.$inject=["$animate"],Vo.$inject=["$templateRequest","$compile"];const No=Do(!1),Ro=Do(!1),Po=Do(!0);function Do(t){function e(e){return{restrict:"AE",transclude:"element",priority:1,terminal:!0,require:"^^ngMessages",link(n,r,i,s,o){let a,c,l,u,h,d;if(!t){a=r[0],l=i.ngMessage||i.when,u=i.ngMessageExp||i.whenExp;const t=function(t){c=t?Array.isArray(t)?t:t.split(/[\s,]+/):null,s.reRender()};u?(t(n.$eval(u)),n.$watchCollection(u,t)):t(l)}s.register(a,d={test:t=>function(t,e){if(t)return Array.isArray(t)?t.indexOf(e)>=0:Object.prototype.hasOwnProperty.call(t,e)}(c,t),attach(){h||o(((n,i)=>{e.enter(n,null,r),h=n;const o=h.$$attachId=s.getAttachId();h.on("$destroy",(()=>{h&&h.$$attachId===o&&(s.deregister(a,t),d.detach()),i.$destroy()}))}))},detach(){if(h){const t=h;h=null,e.leave(t)}}},t),n.$on("$destroy",(()=>{s.deregister(a,t)}))}}}return e.$inject=["$animate"],e}const Mo="ngAriaDisable",Lo=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],Io=function(t,e){if(-1!==e.indexOf(t[0].nodeName))return!0};function Uo(){let t={ariaHidden:!0,ariaChecked:!0,ariaReadonly:!0,ariaDisabled:!0,ariaRequired:!0,ariaInvalid:!0,ariaValue:!0,tabindex:!0,bindKeydown:!0,bindRoleForClick:!0};function e(e,n,r,i){return function(s,o,a){if(Object.prototype.hasOwnProperty.call(a,Mo))return;const c=a.$normalize(n);!t[c]||Io(o,r)||a[c]||s.$watch(a[e],(t=>{t=i?!t:!!t,o.attr(n,t)}))}}this.config=function(e){t=V(t,e)},this.$get=function(){return{config:e=>t[e],$$watchExpr:e}}}function qo(t){return t.$$watchExpr("ngDisabled","aria-disabled",Lo,!1)}function Ho(t){return t.$$watchExpr("ngShow","aria-hidden",[],!0)}function Fo(){return{restrict:"A",require:"?ngMessages",link(t,e,n){Object.prototype.hasOwnProperty.call(n,Mo)||e.attr("aria-live")||e.attr("aria-live","assertive")}}}function Bo(t,e){return{restrict:"A",compile(n,r){if(Object.prototype.hasOwnProperty.call(r,Mo))return;const i=e(r.ngClick);return function(e,n,r){Io(n,Lo)||(t.config("bindRoleForClick")&&!n.attr("role")&&n.attr("role","button"),t.config("tabindex")&&!n.attr("tabindex")&&n.attr("tabindex",0),!t.config("bindKeydown")||r.ngKeydown||r.ngKeypress||r.ngKeyup||n.on("keydown",(t=>{const n=t.which||t.keyCode;13!==n&&32!==n||(-1!==Lo.indexOf(t.target.nodeName)||t.target.isContentEditable||t.preventDefault(),e.$apply((function(){i(e,{$event:t})})))})))}}}}function zo(t){return t.$$watchExpr("ngRequired","aria-required",Lo,!1)}function Wo(t){return t.$$watchExpr("ngChecked","aria-checked",Lo,!1)}function Go(t){return t.$$watchExpr("ngValue","aria-checked",Lo,!1)}function Ko(t){return t.$$watchExpr("ngHide","aria-hidden",[],!1)}function Yo(t){return t.$$watchExpr("ngReadonly","aria-readonly",Lo,!1)}function Qo(t){function e(e,n,r,i){return t.config(n)&&!r.attr(e)&&(i||!Io(r,Lo))&&("hidden"!==r.attr("type")||"INPUT"!==r[0].nodeName)}function n(t,e){return!e.attr("role")&&e.attr("type")===t&&!Io(e,Lo)}return{restrict:"A",require:"ngModel",priority:200,compile(r,i){if(Object.prototype.hasOwnProperty.call(i,Mo))return;const s=function(t){const{type:e}=t,{role:n}=t;return"checkbox"===(e||n)||"menuitemcheckbox"===n?"checkbox":"radio"===(e||n)||"menuitemradio"===n?"radio":"range"===e||"progressbar"===n||"slider"===n?"range":""}(i);return{post(r,i,o,a){const c=e("tabindex","tabindex",i,!1);function l(){return a.$modelValue}switch(s){case"radio":case"checkbox":n(s,i)&&i.attr("role",s),e("aria-checked","ariaChecked",i,!1)&&r.$watch(l,"radio"===s?function(){i[0].setAttribute("aria-checked",(o.value==a.$viewValue).toString())}:function(){i.attr("aria-checked",(!a.$isEmpty(a.$viewValue)).toString())}),c&&i.attr("tabindex",0);break;case"range":if(n(s,i)&&i.attr("role","slider"),t.config("ariaValue")){const t=!i.attr("aria-valuemin")&&(Object.prototype.hasOwnProperty.call(o,"min")||Object.prototype.hasOwnProperty.call(o,"ngMin")),e=!i.attr("aria-valuemax")&&(Object.prototype.hasOwnProperty.call(o,"max")||Object.prototype.hasOwnProperty.call(o,"ngMax")),n=!i.attr("aria-valuenow");t&&o.$observe("min",(t=>{i.attr("aria-valuemin",t)})),e&&o.$observe("max",(t=>{i.attr("aria-valuemax",t)})),n&&r.$watch(l,(t=>{i.attr("aria-valuenow",t)}))}c&&i.attr("tabindex",0)}!Object.prototype.hasOwnProperty.call(o,"ngRequired")&&a.$validators.required&&e("aria-required","ariaRequired",i,!1)&&o.$observe("required",(()=>{i.attr("aria-required",(!!o.required).toString())})),e("aria-invalid","ariaInvalid",i,!0)&&r.$watch((()=>a.$invalid),(t=>{i.attr("aria-invalid",(!!t).toString())}))}}}}}function Zo(t){return function(e,n,r){Object.prototype.hasOwnProperty.call(r,Mo)||!t.config("tabindex")||n.attr("tabindex")||Io(n,Lo)||n.attr("tabindex",0)}}qo.$inject=["$aria"],Ho.$inject=["$aria"],Bo.$inject=["$aria","$parse"],zo.$inject=["$aria"],Wo.$inject=["$aria"],Go.$inject=["$aria"],Ko.$inject=["$aria"],Yo.$inject=["$aria"],Qo.$inject=["$aria"],Zo.$inject=["$aria"];const Jo="$$animateCss",Xo=1e3,ta=3,ea=1.5,na={transitionDuration:Kr,transitionDelay:Gr,transitionProperty:Pr+Ur,animationDuration:Wr,animationDelay:zr,animationIterationCount:Mr+"IterationCount"},ra={transitionDuration:Kr,transitionDelay:Gr,animationDuration:Wr,animationDelay:zr};function ia(t,e){return[e?zr:Gr,`${t}s`]}function sa(t,e){const n=Object.create(null),r=window.getComputedStyle(t)||{};return Object.entries(e).forEach((([t,e])=>{let i=r[e];if(i){const e=i.charAt(0);("-"===e||"+"===e||e>=0)&&(i=function(t){let e=0;return t.split(/\s*,\s*/).forEach((t=>{"s"===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t=parseFloat(t)||0,e=e?Math.max(t,e):t})),e}(i)),0===i&&(i=null),n[t]=i}})),n}function oa(t){return 0===t||null!=t}function aa(t,e){let n=Pr,r=`${t}s`;return e?n+=Ir:r+=" linear all",[n,r]}function ca(t,e,n){n.forEach((n=>{t[n]=v(t[n])?t[n]:e.style.getPropertyValue(n)}))}function la(){this.$get=["$$AnimateRunner","$timeout","$$animateCache","$$rAFScheduler","$$animateQueue",function(t,e,n,r,i){const s=function(t,e){e.addClass&&(t[0].classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t[0].classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};const o=[];function a(t){o.push(t),r.waitUntilQuiet((()=>{n.flush();const t=document.body.offsetWidth+1;for(let e=0;e<o.length;e++)o[e](t);o.length=0}))}function c(t,e,r){const i=function(t,e,r,i){let s=n.get(e);s||(s=sa(t,i),"infinite"===s.animationIterationCount&&(s.animationIterationCount=1));const o=r||s.transitionDuration>0||s.animationDuration>0;return n.put(e,s,o),s}(t,e,r,na),s=i.animationDelay,o=i.transitionDelay;return i.maxDelay=s&&o?Math.max(s,o):s||o,i.maxDuration=Math.max(i.animationDuration*i.animationIterationCount,i.transitionDuration),i}return function(r,o){let l=o||{};l.$$prepared||(l=ti(structuredClone(l)));const u={},h=si(r);if(!h||!h.parentNode||!i.enabled())return z();const d=[],p=function(t){const e={};return t&&(t.to||t.from)&&(e.to=t.to,e.from=t.from),e}(l);let f,$,m,g,v,y,b,w,E,C;const O=[];if(0===l.duration)return z();const S=l.event&&Array.isArray(l.event)?l.event.join(" "):l.event,x=S&&l.structural;let A="",k="";x?A=Zr(S,Tr,!0):S&&(A=S),l.addClass&&(k+=Zr(l.addClass,kr)),l.removeClass&&(k.length&&(k+=" "),k+=Zr(l.removeClass,_r)),l.applyClassesEarly&&k.length&&s(r,l);let _=[A,k].join(" ").trim();const T=p.to&&Object.keys(p.to).length>0;if(!((l.keyframeStyle||"").length>0)&&!T&&!_)return z();let j,V,N=n.cacheKey(h,S,l.addClass,l.removeClass);if(n.containsCachedAnimationWithoutDuration(N))return _=null,z();if(l.stagger>0){const t=parseFloat(l.stagger);j={transitionDelay:t,animationDelay:t,transitionDuration:0,animationDuration:0}}else j=function(t,e,r,i){let s;const o=`stagger-${r}`;if(n.count(r)>0&&(s=n.get(o),!s)){const r=Zr(e,"-stagger");t.className+=` ${r}`,s=sa(t,i),s.animationDuration=Math.max(s.animationDuration,0),s.transitionDuration=Math.max(s.transitionDuration,0),t.classList.remove(r),n.put(o,s,!0)}return s||{}}(h,_,N,ra);if(l.$$skipPreparationClasses||r[0].classList.add(..._.split(" ").filter((t=>""!==t))),l.transitionStyle){const t=[Pr,l.transitionStyle];ai(h,t),d.push(t)}if(l.duration>=0){V=h.style[Pr].length>0;const t=aa(l.duration,V);ai(h,t),d.push(t)}if(l.keyframeStyle){const t=[Mr,l.keyframeStyle];ai(h,t),d.push(t)}const R=j?l.staggerIndex>=0?l.staggerIndex:n.count(N):0,P=0===R;P&&!l.skipBlocking&&ua(h,Br);let D=c(h,N,!x),M=D.maxDelay;y=Math.max(M,0),w=D.maxDuration;const L={};if(L.hasTransitions=D.transitionDuration>0,L.hasAnimations=D.animationDuration>0,L.hasTransitionAll=L.hasTransitions&&"all"===D.transitionProperty,L.applyTransitionDuration=T&&(L.hasTransitions&&!L.hasTransitionAll||L.hasAnimations&&!L.hasTransitions),L.applyAnimationDuration=l.duration&&L.hasAnimations,L.applyTransitionDelay=oa(l.delay)&&(L.applyTransitionDuration||L.hasTransitions),L.applyAnimationDelay=oa(l.delay)&&L.hasAnimations,L.recalculateTimingStyles=k.length>0,(L.applyTransitionDuration||L.applyAnimationDuration)&&(w=l.duration?parseFloat(l.duration):w,L.applyTransitionDuration&&(L.hasTransitions=!0,D.transitionDuration=w,V=h.style[Pr+Ur].length>0,d.push(aa(w,V))),L.applyAnimationDuration&&(L.hasAnimations=!0,D.animationDuration=w,d.push([Wr,`${w}s`]))),0===w&&!L.recalculateTimingStyles)return z();var I,U=Zr(_,jr);null!=l.delay&&("boolean"!=typeof l.delay&&(I=parseFloat(l.delay),y=Math.max(I,0)),L.applyTransitionDelay&&d.push(ia(I)),L.applyAnimationDelay&&d.push(ia(I,!0)));return null==l.duration&&D.transitionDuration>0&&(L.recalculateTimingStyles=L.recalculateTimingStyles||P),b=y*Xo,E=w*Xo,l.skipBlocking||(L.blockTransition=D.transitionDuration>0,L.blockKeyframeAnimation=D.animationDuration>0&&j.animationDelay>0&&0===j.animationDuration),l.from&&(l.cleanupStyles&&ca(u,h,Object.keys(l.from)),ni(0,l)),L.blockTransition||L.blockKeyframeAnimation?B(w):l.skipBlocking||ua(h,!1),{$$willAnimate:!0,end:q,start(){if(!f)return v={end:q,cancel:H,resume:null,pause:null},g=new t(v),a(G),g}};function q(){F()}function H(){F(!0)}function F(t){if(f||m&&$)return;f=!0,$=!1,_&&!l.$$skipPreparationClasses&&r[0].classList.remove(..._.split(" ")),(U=Zr(_,jr))&&r[0].classList.remove(...U.split(" ")),oi(h,!1),ua(h,!1),d.forEach((t=>{h.style[t[0]]=""})),s(r,l),ei(r,l),Object.keys(u).length&&Object.entries(u).forEach((([t,e])=>{e?h.style.setProperty(t,e):h.style.removeProperty(t)})),l.onDone&&l.onDone(),O.length&&r.off(O.join(" "),W);const n=r.data(Jo);n&&(e.cancel(n[0].timer),r.removeData(Jo)),g&&g.complete(!t)}function B(t){L.blockTransition&&ua(h,t),L.blockKeyframeAnimation&&oi(h,!!t)}function z(){return g=new t({end:q,cancel:H}),a((()=>{})),F(),{$$willAnimate:!1,start:()=>g,end:q}}function W(t){t.stopPropagation();const e=t.originalEvent||t;if(e.target!==h)return;const n=e.$manualTimeStamp||Date.now(),r=parseFloat(e.elapsedTime.toFixed(ta));Math.max(n-C,0)>=b&&r>=w&&(m=!0,F())}function G(){if(f)return;if(!h.parentNode)return void F();const t=function(t){if(m)$&&t&&($=!1,F());else if($=!t,D.animationDuration){const t=oi(h,$);$?d.push(t):function(t,e){const n=t.indexOf(e);e>=0&&t.splice(n,1)}(d,t)}},i=R>0&&(D.transitionDuration&&0===j.transitionDuration||D.animationDuration&&0===j.animationDuration)&&Math.max(j.animationDelay,j.transitionDelay);function o(){if(f)return;if(B(!1),d.forEach((t=>{const e=t[0],n=t[1];h.style[e]=n})),s(r,l),r[0].classList.add(...U.split(" ").filter((t=>""!==t))),L.recalculateTimingStyles){if(N=n.cacheKey(h,S,l.addClass,l.removeClass),D=c(h,N,!1),M=D.maxDelay,y=Math.max(M,0),w=D.maxDuration,0===w)return void F();L.hasTransitions=D.transitionDuration>0,L.hasAnimations=D.animationDuration>0}if(L.applyAnimationDelay&&(M="boolean"!=typeof l.delay&&oa(l.delay)?parseFloat(l.delay):M,y=Math.max(M,0),D.animationDelay=M,I=ia(M,!0),d.push(I),h.style[I[0]]=I[1]),b=y*Xo,E=w*Xo,l.easing){let t;const e=l.easing;L.hasTransitions&&(t=Pr+Hr,d.push([t,e]),h.style[t]=e),L.hasAnimations&&(t=Mr+Hr,d.push([t,e]),h.style[t]=e)}D.transitionDuration&&O.push(Dr),D.animationDuration&&O.push(Lr),C=Date.now();const t=b+ea*E,i=C+t,o=r.data(Jo)||[];let p=!0;if(o.length){const t=o[0];p=i>t.expectedEndTime,p?e.cancel(t.timer):o.push(F)}if(p){const n=e(a,t,!1);o[0]={timer:n,expectedEndTime:i},o.push(F),r.data(Jo,o)}O.length&&r.on(O.join(" "),W),l.to&&(l.cleanupStyles&&ca(u,h,Object.keys(l.to)),ri(0,l))}function a(){const t=r.data(Jo);if(t){for(let e=1;e<t.length;e++)t[e]();r.removeData(Jo)}}i?e(o,Math.floor(i*R*Xo),!1):o(),v.resume=function(){t(!0)},v.pause=function(){t(!1)}}}}]}function ua(t,e){const n=e?`-${e}s`:"";return ai(t,[Gr,n]),[Gr,n]}const ha="data-ng-animate",da="$ngAnimatePin";function pa(t){const e=" ",n=this.rules={skip:[],cancel:[],join:[]};function r(t){return{addClass:t.addClass,removeClass:t.removeClass,from:t.from,to:t.to}}function i(t,n){if(t&&n){const r=function(t){if(!t)return null;const n=t.split(e),r=Object.create(null);return n.forEach((t=>{r[t]=!0})),r}(n);return t.split(e).some((t=>r[t]))}}function s(t,e,r){return n[t].some((t=>t(e,r)))}function o(t,e){const n=(t.addClass||"").length>0,r=(t.removeClass||"").length>0;return e?n&&r:n||r}n.join.push((t=>!t.structural&&o(t))),n.skip.push((t=>!t.structural&&!o(t))),n.skip.push(((t,e)=>"leave"===e.event&&t.structural)),n.skip.push(((t,e)=>e.structural&&2===e.state&&!t.structural)),n.cancel.push(((t,e)=>e.structural&&t.structural)),n.cancel.push(((t,e)=>2===e.state&&t.structural)),n.cancel.push(((t,e)=>{if(e.structural)return!1;const n=t.addClass,r=t.removeClass,s=e.addClass,o=e.removeClass;return!(g(n)&&g(r)||g(s)&&g(o))&&(i(n,o)||i(r,s))})),this.$get=["$rootScope","$injector","$$animation","$$AnimateRunner","$templateRequest",function(e,n,i,a,c){const l=new Map,u=new Map;let h=null;function d(t){u.delete(t.target)}e.$templateRequest=c;const p=e.$watch("$templateRequest.totalPendingRequests",(t=>{0===t&&(p(),e.$templateRequest=void 0,e.$$postDigest((()=>{e.$$postDigest((()=>{null===h&&(h=!0)}))})))})),f=Object.create(null),$=t.customFilter(),m=t.classNameFilter(),w=function(){return!0},E=$||w,C=m?function(t,e){const n=[t.getAttribute("class"),e.addClass,e.removeClass].join(" ");return m.test(n)}:w,O=function(t,e){e.addClass&&(t[0].classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t[0].classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};function S(t,e){return ii(t,e,{})}const x=window.Node.prototype.contains||function(t){return this===t||!!(16&this.compareDocumentPosition(t))};function A(t,e,n){const r=Xr(e);return t.filter((t=>!(t.node===r&&(!n||t.callback===n))))}function k(t,e){"close"!==t||e.parentNode||_.off(e)}let _={on(t,e,n){const r=Xr(e);f[t]=f[t]||[],f[t].push({node:r,callback:n}),At(e).on("$destroy",(()=>{l.get(r)||_.off(t,e,n)}))},off(t,e,n){if(1===arguments.length&&!b(arguments[0])){e=arguments[0];for(const t in f)f[t]=A(f[t],e);return}const r=f[t];r&&(f[t]=1===arguments.length?null:A(r,e,n))},pin(t,e){Qr(L(t),"element","not an element"),Qr(L(e),"parentElement","not an element"),t.data(da,e)},push:(t,c,d,p)=>((d=d||{}).domOperation=p,function(t,c,d){let p=d,$=Jr(t);const m=si($),w=m&&m.parentNode;p=ti(p);const A=new a,_=function(){let t=!1;return function(n){t?n():e.$$postDigest((()=>{t=!0,n()}))}}();Array.isArray(p.addClass)&&(p.addClass=p.addClass.join(" "));p.addClass&&!b(p.addClass)&&(p.addClass=null);Array.isArray(p.removeClass)&&(p.removeClass=p.removeClass.join(" "));p.removeClass&&!b(p.removeClass)&&(p.removeClass=null);p.from&&!y(p.from)&&(p.from=null);p.to&&!y(p.to)&&(p.to=null);if(!(h&&m&&E(m,c,d)&&C(m,p)))return U(),A;const V=["enter","move","leave"].indexOf(c)>=0;let N=document.hidden||u.get(m);const R=!N&&l.get(m)||{},P=!!R.state;N||P&&1===R.state||(N=!function(t,e){const r=document.body,i=si(n.get("$rootElement"));let s,o=t===r||"HTML"===t.nodeName,a=t===i,c=!1,h=u.get(t),d=Lt(t,da);d&&(e=si(d));for(;e&&(a||(a=e===i),e.nodeType===Node.ELEMENT_NODE);){const t=l.get(e)||{};if(!c){const n=u.get(e);if(!0===n&&!1!==h){h=!0;break}!1===n&&(h=!1),c=t.structural}if(g(s)||!0===s){const t=Lt(e,Rr);v(t)&&(s=t)}if(c&&!1===s)break;if(o||(o=e===r),o&&a)break;e=a||(d=Lt(e,da),!d)?e.parentNode:si(d)}return(!c||s)&&!0!==h&&a&&o}(m,w));if(N)return document.hidden&&I(A,c,"start",r(p)),U(),document.hidden&&I(A,c,"close",r(p)),A;V&&function(t){const e=t.querySelectorAll(`[${ha}]`);e.forEach((t=>{const e=parseInt(t.getAttribute(ha),10),n=l.get(t);if(n)switch(e){case 2:n.runner.end();case 1:l.delete(t)}}))}(m);const D={structural:V,element:$,event:c,addClass:p.addClass,removeClass:p.removeClass,close:U,options:p,runner:A};if(P){if(s("skip",D,R))return 2===R.state?(U(),A):(ii($,R,D),R.runner);if(s("cancel",D,R))if(2===R.state)R.runner.end();else{if(!R.structural)return ii($,R,D),R.runner;R.close()}else{if(s("join",D,R)){if(2!==R.state)return function(t,e,n){let r="";e&&(r=Zr(e,Tr,!0)),n.addClass&&(r=ci(r,Zr(n.addClass,kr))),n.removeClass&&(r=ci(r,Zr(n.removeClass,_r))),r.length&&(n.preparationClasses=r,t[0].className+=` ${r}`)}($,V?c:null,p),c=D.event=R.event,p=ii($,R,D),R.runner;S($,D)}}}else S($,D);let M=D.structural;M||(M="animate"===D.event&&Object.keys(D.options.to||{}).length>0||o(D));if(!M)return U(),T(m),A;const L=(R.counter||0)+1;return D.counter=L,j(m,1,D),e.$$postDigest((()=>{$=Jr(t);let e=l.get(m);const n=!e;e=e||{};const s=($.parent()||[]).length>0&&("animate"===e.event||e.structural||o(e));if(n||e.counter!==L||!s)return n&&(O($,p),ei($,p)),(n||V&&e.event!==c)&&(p.domOperation(),A.end()),void(s||T(m));c=!e.structural&&o(e,!0)?"setClass":e.event,j(m,2);const a=i($,c,e.options);A.setHost(a),I(A,c,"start",r(p)),a.done((t=>{U(!t);const e=l.get(m);e&&e.counter===L&&T(m),I(A,c,"close",r(p))}))})),A;function I(t,e,n,r){_((()=>{const t=function(t,e,n){const r=[],i=f[n];return i&&i.forEach((i=>{(x.call(i.node,e)||"leave"===n&&x.call(i.node,t))&&r.push(i.callback)})),r}(w,m,e);t.length?(t.forEach((t=>{t($,n,r)})),k(n,m)):k(n,m)})),t.progress(e,n,r)}function U(t){!function(t,e){e.preparationClasses&&(e.preparationClasses.split(" ").forEach((e=>t[0].classList.remove(e))),e.preparationClasses=null),e.activeClasses&&(e.activeClasses.split(" ").forEach((e=>t[0].classList.remove(e))),e.activeClasses=null)}($,p),O($,p),ei($,p),p.domOperation(),A.complete(!t)}}(t,c,d)),enabled(t,e){const n=arguments.length;if(0===n)e=!!h;else{if(L(t)){const r=si(t);1===n?e=!u.get(r):(u.has(r)||At(t).on("$destroy",d),u.set(r,!e))}else e=h=!!t}return e}};return _;function T(t){t.removeAttribute(ha),l.delete(t)}function j(t,e,n){(n=n||{}).state=e,t.setAttribute(ha,e);const r=l.get(t),i=r?V(r,n):n;l.set(t,i)}}]}function fa(t){this.$get=["$injector","$$AnimateRunner",function(e,n){const r=function(t,e){e.addClass&&(t[0].classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t[0].classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};return function(i,s,o,a){let c=!1;3===arguments.length&&y(o)&&(a=o,o=null),a=ti(a),o||(o=i.attr("class")||"",a.addClass&&(o+=` ${a.addClass}`),a.removeClass&&(o+=` ${a.removeClass}`));const l=a.addClass,u=a.removeClass,h=function(n){n=Array.isArray(n)?n:n.split(" ");const r=[],i={};for(let s=0;s<n.length;s++){const o=n[s],a=t.$$registeredAnimations[o];a&&!i[o]&&(r.push(e.get(a)),i[o]=!0)}return r}(o);let d,p,f;if(h.length){let t,e;"leave"===s?(e="leave",t="afterLeave"):(e=`before${s.charAt(0).toUpperCase()}${s.substring(1)}`,t=s),"enter"!==s&&"move"!==s&&(d=v(i,s,a,h,e)),p=v(i,s,a,h,t)}if(d||p)return{$$willAnimate:!0,end:()=>(f?f.end():(m(),f=new n,f.complete(!0)),f),start(){if(f)return f;let t;f=new n;const e=[];return d&&e.push((e=>{t=d(e)})),e.length?e.push((t=>{$(),t(!0)})):$(),p&&e.push((e=>{t=p(e)})),f.setHost({end(){i()},cancel(){i(!0)}}),n.chain(e,r),f;function r(t){m(),f.complete(t)}function i(e){c||((t||(()=>{}))(e),r(e))}}};function $(){a.domOperation(),r(i,a)}function m(){c=!0,$(),ei(i,a)}function g(t,e,r,i,s){const o=[];return i.forEach((i=>{const a=i[s];a&&o.push((()=>{let i,s,o=!1;const c=function(t){o||(o=!0,(s||(()=>{}))(t),i.complete(!t))};return i=new n({end(){c()},cancel(){c(!0)}}),s=function(t,e,r,i,s){let o;switch(r){case"animate":o=[e,i.from,i.to,s];break;case"setClass":o=[e,l,u,s];break;case"addClass":o=[e,l,s];break;case"removeClass":o=[e,u,s];break;default:o=[e,s]}o.push(i);let a=t.apply(t,o);if(a)if(O(a.start)&&(a=a.start()),a instanceof n)a.done(s);else if(O(a))return a;return()=>{}}(a,t,e,r,(t=>{c(!1===t)})),i}))})),o}function v(t,e,r,i,s){let o=g(t,e,r,i,s);if(0===o.length){let e,n;"beforeSetClass"===s?(e=g(t,"removeClass",r,i,"beforeRemoveClass"),n=g(t,"addClass",r,i,"beforeAddClass")):"setClass"===s&&(e=g(t,"removeClass",r,i,"removeClass"),n=g(t,"addClass",r,i,"addClass")),e&&(o=o.concat(e)),n&&(o=o.concat(n))}if(0!==o.length)return function(t){const e=[];return o.length&&o.forEach((t=>{e.push(t())})),e.length?n.all(e,t):t(),function(t){e.forEach((e=>{t?e.cancel():e.end()}))}}}}}]}pa.$inject=["$animateProvider"],fa.$inject=["$animateProvider"];const $a="$$animationRunner",ma="$$animatePrepareClasses";function ga(){const t="ng-animate-ref",e=this.drivers=[];function n(t){return t.data($a)}this.$get=["$rootScope","$injector","$$AnimateRunner","$$rAFScheduler","$$animateCache",function(r,i,s,o,a){const c=[],l=function(t,e){e.addClass&&(t[0].classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t[0].classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};return function(u,h,d){d=ti(d);const p=["enter","move","leave"].indexOf(h)>=0,f=new s({end(){y()},cancel(){y(!0)}});if(!e.length)return y(),f;let $=dt(u.attr("class"),dt(d.addClass,d.removeClass)),{tempClasses:m}=d;return m&&($+=` ${m}`,d.tempClasses=null),p&&u.data(ma,`ng-${h}${Vr}`),function(t,e){t.data($a,e)}(u,f),c.push({element:u,classes:$,event:h,structural:p,options:d,beforeStart:function(){m=(m?`${m} `:"")+Nr,u.className+=` ${m}`;let t=u.data(ma);t&&(u[0].classList.remove(t),t=null)},close:y}),u.on("$destroy",v),c.length>1||r.$$postDigest((()=>{const r=[];c.forEach((t=>{n(t.element)?r.push(t):t.close()})),c.length=0;const s=function(e){const n=[],r={};e.forEach(((e,i)=>{const{element:s}=e,o=si(s),{event:a}=e,c=["enter","move"].indexOf(a)>=0,l=e.structural?function(e){const n=`[${t}]`,r=e.hasAttribute(t)?[e]:e.querySelectorAll(n),i=[];return r.forEach((e=>{const n=e.getAttribute(t);n&&n.length&&i.push(e)})),i}(o):[];if(l.length){const e=c?"to":"from";l.forEach((n=>{const s=n.getAttribute(t);r[s]=r[s]||{},r[s][e]={animationID:i,element:At(n)}}))}else n.push(e)}));const i={},s={};return Object.values(r).forEach((t=>{const{from:r}=t,{to:o}=t;if(!r||!o){const t=r?r.animationID:o.animationID,s=t.toString();return void(i[s]||(i[s]=!0,n.push(e[t])))}const a=e[r.animationID],c=e[o.animationID],l=r.animationID.toString();if(!s[l]){const t=s[l]={structural:!0,beforeStart(){a.beforeStart(),c.beforeStart()},close(){a.close(),c.close()},classes:g(a.classes,c.classes),from:a,to:c,anchors:[]};t.classes.length?n.push(t):(n.push(a),n.push(c))}s[l].anchors.push({out:r.element,in:o.element})})),n}(r),l=[];s.forEach((t=>{const r=t.from?t.from.element:t.element;let s=d.addClass;s=(s?`${s} `:"")+Nr;const o=a.cacheKey(r[0],t.event,s,d.removeClass);l.push({element:r,domNode:si(r),fn:function(){let r;const s=t.close;if(a.containsCachedAnimationWithoutDuration(o))return void s();t.beforeStart();if(n(t.anchors?t.from.element||t.to.element:t.element)){const n=function(t){for(let n=e.length-1;n>=0;n--){const r=e[n],s=i.get(r)(t);if(s)return s}}(t);n&&(r=n.start)}if(r){const e=r();e.done((t=>{s(!t)})),function(t,e){t.from&&t.to?(r(t.from.element),r(t.to.element)):r(t.element);function r(t){const r=n(t);r&&r.setHost(e)}}(t,e)}else s()}})}));const u=function(t){const e={children:[]};let n;const r=new Map;for(n=0;n<t.length;n++){const e=t[n];r.set(e.domNode,t[n]={domNode:e.domNode,element:e.element,fn:e.fn,children:[]})}for(n=0;n<t.length;n++)i(t[n]);return function(t){const e=[],n=[];let r;for(r=0;r<t.children.length;r++)n.push(t.children[r]);let i=n.length,s=0,o=[];for(r=0;r<n.length;r++){const t=n[r];i<=0&&(i=s,s=0,e.push(o),o=[]),o.push(t),t.children.forEach((t=>{s++,n.push(t)})),i--}return o.length&&e.push(o),e}(e);function i(t){if(t.processed)return t;t.processed=!0;const n=t.domNode;let s,{parentNode:o}=n;for(r.set(n,t);o;){if(s=r.get(o),s){s.processed||(s=i(s));break}o=o.parentNode}return(s||e).children.push(t),t}}(l);for(let t=0;t<u.length;t++){const e=u[t];for(let n=0;n<e.length;n++){const r=e[n],{element:i}=r;if(u[t][n]=r.fn,0===t){i.removeData(ma);continue}const s=i.data(ma);s&&i[0].classList.add(s)}}o(u)})),f;function g(t,e){t=t.split(" "),e=e.split(" ");const n=[];for(let r=0;r<t.length;r++){const i=t[r];if("ng-"!==i.substring(0,3))for(let t=0;t<e.length;t++)if(i===e[t]){n.push(i);break}}return n.join(" ")}function v(){const t=n(u);!t||"leave"===h&&d.$$domOperationFired||t.end()}function y(t){u.off("$destroy",v),function(t){t.removeData($a)}(u),l(u,d),ei(u,d),d.domOperation(),m&&m.split(" ").forEach((t=>u[0].classList.remove(t))),f.complete(!t)}}}]}function va(){let t=[],e=null;function n(){if(!t.length)return;t.shift().forEach((t=>t())),e||window.requestAnimationFrame((()=>{e=null,n()}))}function r(e){t=t.concat(e),n()}t=r.queue=[],r.waitUntilQuiet=t=>{null!==e&&(window.cancelAnimationFrame(e),e=null),e=window.requestAnimationFrame((()=>{e=null,t(),n()}))},this.$get=function(){return r}}const ya="$animId";let ba=0;const wa=new Map;function Ea(){return{cacheKey(t,e,n,r){const{parentNode:i}=t,s=[i[ya]??(i[ya]=++ba),e,t.getAttribute("class")];return n&&s.push(n),r&&s.push(r),s.join(" ")},containsCachedAnimationWithoutDuration(t){const e=wa.get(t);return!!e&&!e.isValid},flush(){wa.clear()},count:t=>wa.get(t)?.total??0,get:t=>wa.get(t)?.value,put(t,e,n){const r=wa.get(t);r?(r.total++,r.value=e):wa.set(t,{total:1,value:e,isValid:n})}}}function Ca(){this.$get=[Ea]}const Oa="ng-animate-shim",Sa="ng-anchor",xa="ng-anchor-out",Aa="ng-anchor-in";function ka(t){t.drivers.push("$$animateCssDriver"),this.$get=["$animateCss","$$AnimateRunner","$rootElement",function(t,e,n){const r=document.body,i=n[0],s=At((o=i).parentNode&&11===o.parentNode.nodeType||r.contains(i)?i:r);var o;return function(n){return n.from&&n.to?function(n,i,o){const c=a(n),l=a(i),u=[];if(o.forEach((n=>{const i=function(n,i){const o=At(si(n).cloneNode(!0)),a=_a(p(o));let c;n[0].classList.add(Oa),i[0].classList.add(Oa),o[0].classList.add(Sa),s.append(o);const l=d();if(!l&&(c=f(),!c))return $();const u=l||c;return{start(){let t,n=u.start();return n.done((()=>{if(n=null,!c&&(c=f(),c))return n=c.start(),n.done((()=>{n=null,$(),t.complete()})),n;$(),t.complete()})),t=new e({end:r,cancel:r}),t;function r(){n&&n.end()}}};function h(t){const e={},n=si(t).getBoundingClientRect();return["width","height","top","left"].forEach((t=>{let i=n[t];switch(t){case"top":i+=r.scrollTop;break;case"left":i+=r.scrollLeft}e[t]=`${Math.floor(i)}px`})),e}function d(){const e=t(o,{addClass:xa,delay:!0,from:h(n)});return e.$$willAnimate?e:null}function p(t){return t.attr("class")||""}function f(){const e=_a(p(i)),n=Ta(e,a),r=Ta(a,e),s=t(o,{to:h(i),addClass:`${Aa} ${n}`,removeClass:`${xa} ${r}`,delay:!0});return s.$$willAnimate?s:null}function $(){o.remove(),n[0].classList.remove(Oa),i[0].classList.remove(Oa)}}(n.out,n.in);i&&u.push(i)})),!c&&!l&&0===u.length)return;return{start(){const t=[];c&&t.push(c.start()),l&&t.push(l.start()),u.forEach((e=>{t.push(e.start())}));const n=new e({end:r,cancel:r});return e.all(t,(t=>{n.complete(t)})),n;function r(){t.forEach((t=>{t.end()}))}}}}(n.from,n.to,n.anchors):a(n)};function a(e){const n=e.options||{};e.structural&&(n.event=e.event,n.structural=!0,n.applyClassesEarly=!0,"leave"===e.event&&(n.onDone=n.domOperation)),n.preparationClasses&&(n.event=ci(n.event,n.preparationClasses));const r=t(e.element,n);return r.$$willAnimate?r:null}}]}function _a(t){return t.replace(/\bng-\S+\b/g,"")}function Ta(t,e){return b(t)&&(t=t.split(" ")),b(e)&&(e=e.split(" ")),t.filter((t=>-1===e.indexOf(t))).join(" ")}function ja(t){t.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(t,e){return function(t){if(t.from&&t.to){const r=n(t.from),i=n(t.to);if(!r&&!i)return;return{start(){const t=[];r&&t.push(r.start()),i&&t.push(i.start()),e.all(t,(function(t){n.complete(t)}));const n=new e({end:s(),cancel:s()});return n;function s(){return function(){t.forEach((t=>{t.end()}))}}}}}return n(t)};function n(e){const{element:n}=e,{event:r}=e,{options:i}=e,{classes:s}=e;return t(n,r,s,i)}}]}function Va(t){return{restrict:"A",transclude:"element",terminal:!0,priority:550,link(e,n,r,i,s){let o,a;e.$watchCollection(r.ngAnimateSwap||r.for,(e=>{o&&t.leave(o),a&&(a.$destroy(),a=null),e&&s(((e,r)=>{o=e,a=r,t.enter(e,null,n)}))}))}}}function Na(t){return{link(e,n,r){const i=r.ngAnimateChildren;function s(t){t="on"===t||"true"===t,n.data(Rr,t)}b(i)&&0===i.length?n.data(Rr,!0):(s(t(i)(e)),r.$observe("ngAnimateChildren",s))}}}function Ra(t){return function e(){if(arguments.length>=t.length)return t.apply(this,arguments);const n=Array.prototype.slice.call(arguments);return e.bind(this,...n)}}function Pa(){const t=arguments,e=t.length-1;return function(){let n=e,r=t[e].apply(this,arguments);for(;n--;)r=t[n].call(this,r);return r}}function Da(){return Pa.apply(null,[].slice.call(arguments).reverse())}ka.$inject=["$$animationProvider"],ja.$inject=["$$animationProvider"],Va.$inject=["$animate"],Na.$inject=["$interpolate"];const Ma=Ra(((t,e,n)=>n&&n[t]===e)),La=t=>Da.apply(null,t.split(".").map((t=>e=>e&&e[t])));const Ia=t=>e=>e.reduce(((e,n)=>e&&!!t(n)),!0),Ua=t=>e=>null!=e&&e.constructor===t||e instanceof t,qa=t=>()=>t;function Ha(t){return function(e){for(let n=0;n<t.length;n++)if(t[n][0](e))return t[n][1](e)}}const Fa={$q:void 0,$injector:void 0};function Ba(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;const n=typeof t;if(n!==typeof e||"object"!==n)return!1;const r=[t,e];if(Ia(Array.isArray)(r))return s=e,(i=t).length===s.length&&lc(i,s).reduce(((t,e)=>t&&Ba(e[0],e[1])),!0);var i,s;if(Ia(E)(r))return t.getTime()===e.getTime();if(Ia(S)(r))return t.toString()===e.toString();if(Ia(O)(r))return!0;if([O,Array.isArray,E,S].some((t=>!!t(r))))return!1;const o={};for(const n in t){if(!Ba(t[n],e[n]))return!1;o[n]=!0}for(const t in e)if(!o[t])return!1;return!0}function za(t,e,n,r,i=!1){const s=e=>t()[e].bind(n());return(r=r||Object.keys(t())).reduce(((t,n)=>{var r;return t[n]=i?(r=n,function(){return e[r]=s(r),e[r].apply(null,arguments)}):s(n),t}),e)}function Wa(t,e){const n=Object.create(t);return e&&Object.assign(n,e),n}const Ga=Ra((function(t,e){const n=t.indexOf(e);n>=0&&t.splice(n,1);return t}));const Ka=Ra(((t,e)=>(t.push(e),e)));function Ya(t,...e){const n=Object.assign({},...e.reverse());return Object.assign(n,Qa(t||{},Object.keys(n)))}function Qa(t,e){const n={};for(const r in t)-1!==e.indexOf(r)&&(n[r]=t[r]);return n}function Za(t,e){return Object.keys(t).filter((t=>!e.includes(t))).reduce(((e,n)=>(e[n]=t[n],e)),{})}function Ja(t,e){const n=Array.isArray(t),r=n?[]:{},i=n?t=>r.push(t):(t,e)=>r[e]=t;return Object.entries(t).forEach((([t,n])=>{e(n,t)&&i(n,t)})),r}function Xa(t,e){let n;return Object.entries(t).forEach((([t,r])=>{n||e(r,t)&&(n=r)})),n}function tc(t,e,n){return n=n||(Array.isArray(t)?[]:{}),Object.entries(t).forEach((([t,r])=>n[t]=e(r,t))),n}const ec=(t,e)=>t&&e,nc=(t,e)=>t||e,rc=(t,e)=>t.concat(e),ic=(t,e)=>Array.isArray(e)?t.concat(e.reduce(ic,[])):sc(t,e);function sc(t,e){return t.push(e),t}const oc=(t,e)=>t.includes(e)?t:sc(t,e),ac=t=>t.reduce(rc,[]),cc=function(t,e="assert failure"){return n=>{const r=t(n);if(!r)throw new Error(e);return r}};function lc(...t){if(0===t.length)return[];const e=t.reduce(((t,e)=>Math.min(e.length,t)),9007199254740991),n=[];for(let r=0;r<e;r++)switch(t.length){case 1:n.push([t[0][r]]);break;case 2:n.push([t[0][r],t[1][r]]);break;case 3:n.push([t[0][r],t[1][r],t[2][r]]);break;case 4:n.push([t[0][r],t[1][r],t[2][r],t[3][r]]);break;default:n.push(t.map((t=>t[r])))}return n}function uc(t,e){let n,r;if(Array.isArray(e)&&([n,r]=e),!b(n))throw new Error("invalid parameters to applyPairs");return t[n]=r,t}function hc(t){return t.length&&t[t.length-1]||void 0}function dc(t,e){return e&&Object.keys(e).forEach((t=>delete e[t])),e||(e={}),Object.assign(e,t)}const pc=t=>t.catch((()=>0))&&t,fc=t=>pc(Fa.$q.reject(t)),$c=t=>null===t;function mc(t){return null===t&&void 0===t}function gc(t){if(Array.isArray(t)&&t.length){const e=t.slice(0,-1),n=t.slice(-1);return!(e.filter((t=>!b(t))).length||n.filter((t=>!O(t))).length)}return O(t)}function vc(t){return null!==t&&"object"==typeof t&&"function"==typeof t.then}class yc{constructor(t){this.pattern=/.*/,this.inherit=!0,Object.assign(this,t),this.name=void 0}is(t){return!!t}encode(t){return t}decode(t){return t}equals(t,e){return t==e}$subPattern(){const t=this.pattern.toString();return t.substring(1,t.length-2)}toString(){return`{ParamType:${this.name}}`}$normalize(t){return this.is(t)?t:this.decode(t)}$asArray(t,e){if(!t)return this;if("auto"===t&&!e)throw new Error("'auto' array mode is for query parameters only");return new bc(this,t)}}function bc(t,e){function n(t){return Array.isArray(t)?t:v(t)?[t]:[]}function r(t,r){return function(i){if(Array.isArray(i)&&0===i.length)return i;const s=tc(n(i),t);return!0===r?0===Ja(s,(t=>!t)).length:function(t){switch(t.length){case 0:return;case 1:return"auto"===e?t[0]:t;default:return t}}(s)}}function i(t){return function(e,r){const i=n(e),s=n(r);if(i.length!==s.length)return!1;for(let e=0;e<i.length;e++)if(!t(i[e],s[e]))return!1;return!0}}["encode","decode","equals","$normalize"].forEach((e=>{const n=t[e].bind(t),s="equals"===e?i:r;this[e]=s(n)})),Object.assign(this,{dynamic:t.dynamic,name:t.name,pattern:t.pattern,inherit:t.inherit,raw:t.raw,is:r(t.is.bind(t),!0),$arrayMode:e})}class wc{constructor(){this.enqueue=!0,this.typeQueue=[],this.defaultTypes=Qa(wc.prototype,["hash","string","query","path","int","bool","date","json","any"]);this.types=Wa(tc(this.defaultTypes,((t,e)=>new yc(Object.assign({name:e},t)))),{})}type(t,e,n){if(!v(e))return this.types[t];if(Object.prototype.hasOwnProperty.call(this.types,t))throw new Error(`A type named '${t}' has already been defined.`);return this.types[t]=new yc(Object.assign({name:t},e)),n&&(this.typeQueue.push({name:t,def:n}),this.enqueue||this._flushTypeQueue()),this}_flushTypeQueue(){for(;this.typeQueue.length;){const t=this.typeQueue.shift();if(t.pattern)throw new Error("You cannot override a type's .pattern at runtime.");Object.assign(this.types[t.name],Fa.$injector.invoke(t.def))}}}!function(){const t=t=>{const e=t=>null!=t?t.toString():t,n={encode:e,decode:e,is:Ua(String),pattern:/.*/,equals:(t,e)=>t==e};return Object.assign({},n,t)};Object.assign(wc.prototype,{string:t({}),path:t({pattern:/[^/]*/}),query:t({}),hash:t({inherit:!1}),int:t({decode:t=>parseInt(t,10),is:function(t){return!mc(t)&&this.decode(t.toString())===t},pattern:/-?\d+/}),bool:t({encode:t=>t?1:0,decode:t=>0!==parseInt(t,10),is:Ua(Boolean),pattern:/0|1/}),date:t({encode:function(t){return this.is(t)?[t.getFullYear(),("0"+(t.getMonth()+1)).slice(-2),("0"+t.getDate()).slice(-2)].join("-"):void 0},decode:function(t){if(this.is(t))return t;const e=this.capture.exec(t);return e?new Date(e[1],e[2]-1,e[3]):void 0},is:t=>t instanceof Date&&!isNaN(t.valueOf()),equals:(t,e)=>["getFullYear","getMonth","getDate"].reduce(((n,r)=>n&&t[r]()===e[r]()),!0),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:t({encode:JSON.stringify,decode:JSON.parse,is:Ua(Object),equals:Ba,pattern:/[^/]*/}),any:t({encode:t=>t,decode:t=>t,is:()=>!0,equals:Ba})})}();class Ec{constructor(){this.paramTypes=new wc,this._isCaseInsensitive=!1,this._isStrictMode=!0,this._defaultSquashPolicy=!1;const t=this.type("path");t.encode=t=>null!=t?t.toString().replace(/(~|\/)/g,(t=>({"~":"~~","/":"~2F"}[t]))):t,t.decode=t=>null!=t?t.toString().replace(/(~~|~2F)/g,(t=>({"~~":"~","~2F":"/"}[t]))):t,this.paramTypes.enqueue=!1,this.paramTypes._flushTypeQueue()}$get=[function(){return this}];caseInsensitive(t){return this._isCaseInsensitive=v(t)?t:this._isCaseInsensitive}defaultSquashPolicy(t){if(v(t)&&!0!==t&&!1!==t&&!b(t))throw new Error(`Invalid squash policy: ${t}. Valid policies: false, true, arbitrary-string`);return this._defaultSquashPolicy=v(t)?t:this._defaultSquashPolicy}strictMode(t){return this._isStrictMode=v(t)?t:this._isStrictMode}type(t,e,n){const r=this.paramTypes.type(t,e,n);return v(e)?this:r}}class Cc{constructor(t={}){Object.assign(this,t)}$inherit(t,e,n){const r=function(t,e){const n=[];for(const r in t.path){if(t.path[r]!==e.path[r])break;n.push(t.path[r])}return n}(e,n),i={},s=[];for(const t in r){if(!r[t]||!r[t].params)continue;const e=r[t].params,n=Object.keys(e);if(n.length)for(const t in n)0==e[n[t]].inherit||s.indexOf(n[t])>=0||(s.push(n[t]),i[n[t]]=this[n[t]])}return Object.assign({},i,t)}}class Oc{constructor(t=[],e=null){this._items=t,this._limit=e,this._evictListeners=[],this.onEvict=Ka(this._evictListeners)}enqueue(t){const e=this._items;return e.push(t),this._limit&&e.length>this._limit&&this.evict(),t}evict(){const t=this._items.shift();return this._evictListeners.forEach((e=>e(t))),t}dequeue(){if(this.size())return this._items.splice(0,1)[0]}clear(){const t=this._items;return this._items=[],t}size(){return this._items.length}remove(t){const e=this._items.indexOf(t);return e>-1&&this._items.splice(e,1)[0]}peekTail(){return this._items[this._items.length-1]}peekHead(){if(this.size())return this._items[0]}}class Sc{constructor(){this.params=new Cc,this.lastStartedTransitionId=-1,this.transitionHistory=new Oc([],1),this.successfulTransitions=new Oc([],1)}$get=[()=>this]}function xc(t,e){return e.length<=t?e:e.substring(0,t-3)+"..."}function Ac(t){return t.replace(/^([A-Z])/,(t=>t.toLowerCase())).replace(/([A-Z])/g,(t=>"-"+t.toLowerCase()))}function kc(t){const e=_c(t),n=e.match(/^(function [^ ]+\([^)]*\))/),r=n?n[1]:e,i=t.name||"";return i&&r.match(/function \(/)?"function "+i+r.substring(9):r}function _c(t){const e=Array.isArray(t)?t.slice(-1)[0]:t;return e&&e.toString()||"undefined"}function Tc(t){const e=[],n=Ha([[g,qa("undefined")],[$c,qa("null")],[vc,qa("[Promise]")],[t=>t&&"function"==typeof t.then&&"Rejection"==t.constructor.name,t=>t._transitionRejection.toString()],[t=>y(t)&&!Array.isArray(t)&&t.constructor!==Object&&O(t.toString),t=>t.toString()],[gc,kc],[qa(!0),t=>t]]);function r(t){if(y(t)){if(-1!==e.indexOf(t))return"[circular ref]";e.push(t)}return n(t)}return g(t)?r(t):JSON.stringify(t,((t,e)=>r(e))).replace(/\\"/g,'"')}function jc(t,e){return b(hc(t))&&b(e)?t.slice(0,-1).concat(hc(t)+e):sc(t,e)}function Vc(t){if(!t)return"ui-view (defunct)";const e=t.creationContext?t.creationContext.name||"(root)":"(none)";return`[ui-view#${t.id} ${t.$type}:${t.fqn} (${t.name}@${e})]`}function Nc(t){return w(t)?Rc[t]:Rc[Rc[t]]}var Rc;!function(t){t[t.RESOLVE=0]="RESOLVE",t[t.TRANSITION=1]="TRANSITION",t[t.HOOK=2]="HOOK",t[t.UIVIEW=3]="UIVIEW",t[t.VIEWCONFIG=4]="VIEWCONFIG"}(Rc||(Rc={}));const Pc=La("$id"),Dc=La("router.$id"),Mc=t=>`Transition #${Pc(t)}-${Dc(t)}`;const Lc=new class{constructor(){this._enabled={},this.approximateDigests=0}_set(t,e){e.length||(e=Object.keys(Rc).map((t=>parseInt(t,10))).filter((t=>!isNaN(t))).map((t=>Rc[t]))),e.map(Nc).forEach((e=>this._enabled[e]=t))}enable(...t){this._set(!0,t)}disable(...t){this._set(!1,t)}enabled(t){return!!this._enabled[Nc(t)]}traceTransitionStart(t){this.enabled(Rc.TRANSITION)&&console.log(`${Mc(t)}: Started -> ${Tc(t)}`)}traceTransitionIgnored(t){this.enabled(Rc.TRANSITION)&&console.log(`${Mc(t)}: Ignored <> ${Tc(t)}`)}traceHookInvocation(t,e,n){if(!this.enabled(Rc.HOOK))return;const r=La("traceData.hookType")(n)||"internal",i=La("traceData.context.state.name")(n)||La("traceData.context")(n)||"unknown",s=kc(t.registeredHook.callback);console.log(`${Mc(e)}: Hook -> ${r} context: ${i}, ${xc(200,s)}`)}traceHookResult(t,e){this.enabled(Rc.HOOK)&&console.log(`${Mc(e)}: <- Hook returned: ${xc(200,Tc(t))}`)}traceResolvePath(t,e,n){this.enabled(Rc.RESOLVE)&&console.log(`${Mc(n)}: Resolving ${t} (${e})`)}traceResolvableResolved(t,e){this.enabled(Rc.RESOLVE)&&console.log(`${Mc(e)}: <- Resolved ${t} to: ${xc(200,Tc(t.data))}`)}traceError(t,e){this.enabled(Rc.TRANSITION)&&console.log(`${Mc(e)}: <- Rejected ${Tc(e)}, reason: ${t}`)}traceSuccess(t,e){this.enabled(Rc.TRANSITION)&&console.log(`${Mc(e)}: <- Success ${Tc(e)}, final state: ${t.name}`)}traceUIViewEvent(t,e,n=""){this.enabled(Rc.UIVIEW)&&console.log(`ui-view: ${function(t,e){for(;e.length<t;)e+=" ";return e}(30,t)} ${Vc(e)}${n}`)}traceUIViewConfigUpdated(t,e){this.enabled(Rc.UIVIEW)&&this.traceUIViewEvent("Updating",t,` with ViewConfig from context='${e}'`)}traceUIViewFill(t,e){this.enabled(Rc.UIVIEW)&&this.traceUIViewEvent("Fill",t,` with: ${xc(200,e)}`)}traceViewSync(t){if(!this.enabled(Rc.VIEWCONFIG))return;const e="uiview component fqn",n="view config state (view name)",r=t.map((({ngView:t,viewConfig:r})=>{const i=t&&t.fqn,s=r&&`${r.viewDecl.$context.name}: (${r.viewDecl.$name})`;return{[e]:i,[n]:s}})).sort(((t,n)=>(t[e]||"").localeCompare(n[e]||"")));console.table(r)}traceViewServiceEvent(t,e){this.enabled(Rc.VIEWCONFIG)&&console.log(`VIEWCONFIG: ${t} ${(t=>{const e=t.viewDecl,n=e.$context.name||"(root)";return`[View#${t.$id} from '${n}' state]: target ui-view: '${e.$ngViewName}@${e.$ngViewContextAnchor}'`})(e)}`)}traceViewServiceUIViewEvent(t,e){this.enabled(Rc.VIEWCONFIG)&&console.log(`VIEWCONFIG: ${t} ${Vc(e)}`)}};let Ic="LAZY",Uc="WAIT";class qc{constructor(t,e,n,r,i){this.resolved=!1,this.promise=void 0,t instanceof qc?Object.assign(this,t):O(e)?(it(!mc(t),"token argument is required"),this.token=t,this.policy=r,this.resolveFn=e,this.deps=n||[],this.data=i,this.resolved=void 0!==i,this.promise=this.resolved?Fa.$q.resolve(this.data):void 0):y(t)&&t.token&&(Object.prototype.hasOwnProperty.call(t,"resolveFn")||Object.prototype.hasOwnProperty.call(t,"data"))&&(this.token=t.token,this.resolveFn=t.resolveFn,this.deps=t.deps,this.policy=t.policy,this.data=t.data)}getPolicy(t){const e=this.policy||{},n=t&&t.resolvePolicy||{};return{when:e.when||n.when||Ic,async:e.async||n.async||Uc}}resolve(t,e){const n=Fa.$q,r=t.findNode(this),i=r&&r.state,s=this.getPolicy(i).async,o=O(s)?s:t=>t;return this.promise=n.resolve().then((()=>n.all(t.getDependencies(this).map((n=>n.get(t,e)))))).then((t=>this.resolveFn.apply(null,t))).then(o).then((t=>(this.data=t,this.resolved=!0,this.resolveFn=null,Lc.traceResolvableResolved(this,e),this.data)))}get(t,e){return this.promise||this.resolve(t,e)}toString(){return`Resolvable(token: ${Tc(this.token)}, requires: [${this.deps.map(Tc)}])`}clone(){return new qc(this)}}qc.fromData=(t,e)=>new qc(t,(()=>e),null,null,e);class Hc{constructor(t,e,n,r){this._stateRegistry=t,this._identifier=e,this._identifier=e,this._params=Object.assign({},n||{}),this._options=Object.assign({},r||{}),this._definition=t.matcher.find(e,this._options.relative)}name(){return this._definition&&this._definition.name||this._identifier}identifier(){return this._identifier}params(){return this._params}$state(){return this._definition}state(){return this._definition&&this._definition.self}options(){return this._options}exists(){return!(!this._definition||!this._definition.self)}valid(){return!this.error()}error(){const t=this.options().relative;if(!this._definition&&t){const e=t.name?t.name:t;return`Could not resolve '${this.name()}' from state '${e}'`}return this._definition?this._definition.self?void 0:`State '${this.name()}' has an invalid definition`:`No such state '${this.name()}'`}toString(){return`'${this.name()}'${Tc(this.params())}`}withState(t){return new Hc(this._stateRegistry,t,this._params,this._options)}withParams(t,e=!1){const n=e?t:Object.assign({},this._params,t);return new Hc(this._stateRegistry,this._identifier,n,this._options)}withOptions(t,e=!1){const n=e?t:Object.assign({},this._options,t);return new Hc(this._stateRegistry,this._identifier,this._params,n)}}Hc.isDef=t=>t&&t.state&&(b(t.state)||y(t.state)&&b(t.state.name));const Fc=t=>0===["value","type","squash","array","dynamic"].filter(Object.prototype.hasOwnProperty.bind(t||{})).length;var Bc;function zc(t,e,n){const r=!1===n.reloadOnSearch&&e===Bc.SEARCH||void 0,i=Xa([n.dynamic,r],v),s=v(i)?{dynamic:i}:{},o=function(t){function e(){return t.value}t=Fc(t)?{value:t}:t,e.__cacheable=!0;const n=gc(t.value)?t.value:e;return Object.assign(t,{$$fn:n})}(n&&n.params&&n.params[t]);return Object.assign(s,o)}!function(t){t[t.PATH=0]="PATH",t[t.SEARCH=1]="SEARCH",t[t.CONFIG=2]="CONFIG"}(Bc||(Bc={}));class Wc{constructor(t,e,n,r,i){const s=zc(t,n,i);e=function(t,e,n,r,i){if(t.type&&e&&"string"!==e.name)throw new Error(`Param '${r}' has two type configurations.`);if(t.type&&e&&"string"===e.name&&i.type(t.type))return i.type(t.type);if(e)return e;if(!t.type){const t=n===Bc.CONFIG?"any":n===Bc.PATH?"path":n===Bc.SEARCH?"query":"string";return i.type(t)}return t.type instanceof yc?t.type:i.type(t.type)}(s,e,n,t,r.paramTypes);const o=function(){const e={array:n===Bc.SEARCH&&"auto"},r=t.match(/\[\]$/)?{array:!0}:{};return Object.assign(e,r,s).array}();e=o?e.$asArray(o,n===Bc.SEARCH):e;const a=void 0!==s.value||n===Bc.SEARCH,c=v(s.dynamic)?!!s.dynamic:!!e.dynamic,l=v(s.raw)?!!s.raw:!!e.raw,u=function(t,e,n){const r=t.squash;if(!e||!1===r)return!1;if(!v(r)||null==r)return n;if(!0===r||b(r))return r;throw new Error(`Invalid squash policy: '${r}'. Valid policies: false, true, or arbitrary string`)}(s,a,r.defaultSquashPolicy()),h=function(t,e,n,r){const i=[{from:"",to:n||e?void 0:""},{from:null,to:n||e?void 0:""}],s=Array.isArray(t.replace)?t.replace:[];b(r)&&s.push({from:r,to:void 0});const o=tc(s,(t=>t.from));return Ja(i,(t=>-1===o.indexOf(t.from))).concat(s)}(s,o,a,u),d=v(s.inherit)?!!s.inherit:!!e.inherit;this.isOptional=a,this.type=e,this.location=n,this.id=t,this.dynamic=c,this.raw=l,this.squash=u,this.replace=h,this.inherit=d,this.array=o,this.config=s}isDefaultValue(t){return this.isOptional&&this.type.equals(this.value(),t)}value(t){return t=(t=>{for(const e of this.replace)if(e.from===t)return e.to;return t})(t),g(t)?(()=>{if(this._defaultValueCache)return this._defaultValueCache.defaultValue;if(!Fa.$injector)throw new Error("Injectable functions cannot be called at configuration time");const t=Fa.$injector.invoke(this.config.$$fn);if(null!=t&&!this.type.is(t))throw new Error(`Default value (${t}) for parameter '${this.id}' is not an instance of ParamType (${this.type.name})`);return this.config.$$fn.__cacheable&&(this._defaultValueCache={defaultValue:t}),t})():this.type.$normalize(t)}isSearch(){return this.location===Bc.SEARCH}validates(t){if((g(t)||null===t)&&this.isOptional)return!0;const e=this.type.$normalize(t);if(!this.type.is(e))return!1;const n=this.type.encode(e);return!(b(n)&&!this.type.pattern.exec(n))}toString(){return`{Param:${this.id} ${this.type} squash: '${this.squash}' optional: ${this.isOptional}}`}static values(t,e={}){const n={};for(const r of t)n[r.id]=r.value(e[r.id]);return n}static changed(t,e={},n={}){return t.filter((t=>!t.type.equals(e[t.id],n[t.id])))}static equals(t,e={},n={}){return 0===Wc.changed(t,e,n).length}static validates(t,e={}){return t.map((t=>t.validates(e[t.id]))).reduce(ec,!0)}}class Gc{constructor(t){if(t instanceof Gc){const e=t;this.state=e.state,this.paramSchema=e.paramSchema.slice(),this.paramValues=Object.assign({},e.paramValues),this.resolvables=e.resolvables.slice(),this.views=e.views&&e.views.slice()}else{const e=t;this.state=e,this.paramSchema=e.parameters({inherit:!1}),this.paramValues={},this.resolvables=e.resolvables.map((t=>t.clone()))}}clone(){return new Gc(this)}applyRawParams(t){return this.paramValues=this.paramSchema.reduce(((e,n)=>{return uc(e,[(r=n).id,r.value(t[r.id])]);var r}),{}),this}parameter(t){return Xa(this.paramSchema,Ma("id",t))}equals(t,e){const n=this.diff(t,e);return n&&0===n.length}diff(t,e){if(this.state!==t.state)return!1;const n=e?e(this):this.paramSchema;return Wc.changed(n,this.paramValues,t.paramValues)}}class Kc{static buildPath(t){const e=t.params();return t.$state().path.map((t=>new Gc(t).applyRawParams(e)))}static buildToPath(t,e){const n=Kc.buildPath(e);return e.options().inherit?Kc.inheritParams(t,n,Object.keys(e.params())):n}static applyViewConfigs(t,e,n){e.filter((t=>n.includes(t.state))).forEach((n=>{const r=Object.values(n.state.views||{}),i=Kc.subPath(e,(t=>t===n)),s=r.map((e=>t.createViewConfig(i,e)));n.views=s.reduce(rc,[])}))}static inheritParams(t,e,n=[]){const r=t.map((t=>t.paramSchema)).reduce(rc,[]).filter((t=>!t.inherit)).map((t=>t.id));return e.map((function(e){let i=Object.assign({},e&&e.paramValues);const s=Qa(i,n);i=Za(i,n);const o=Za(function(t,e){const n=Xa(t,Ma("state",e));return Object.assign({},n&&n.paramValues)}(t,e.state)||{},r),a=Object.assign(i,o,s);return new Gc(e.state).applyRawParams(a)}))}static treeChanges(t,e,n){const r=Math.min(t.length,e.length);let i=0;for(;i<r&&t[i].state!==n&&(s=t[i],o=e[i],s.equals(o,Kc.nonDynamicParams));)i++;var s,o;let a,c,l,u,h;a=t,c=a.slice(0,i),l=a.slice(i);const d=c.map((function(t,n){const r=t.clone();return r.paramValues=e[n].paramValues,r}));return u=e.slice(i),h=d.concat(u),{from:a,to:h,retained:c,retainedWithToParams:d,exiting:l,entering:u}}static matching(t,e,n){let r=!1;return lc(t,e).reduce(((t,[e,i])=>(r=r||!e.equals(i,n),r?t:t.concat(e))),[])}static equals(t,e,n){return t.length===e.length&&Kc.matching(t,e,n).length===t.length}static subPath(t,e){const n=Xa(t,e),r=t.indexOf(n);return-1===r?void 0:t.slice(0,r+1)}static nonDynamicParams(t){return t.state.parameters({inherit:!1}).filter((t=>!t.dynamic))}static paramValues(t){return t.reduce(((t,e)=>Object.assign(t,e.paramValues)),{})}}function Yc(t,e){return new Hc(t,e.at(-1).state,e.map((t=>t.paramValues)).reduce(((t,e)=>({...t,...e})),{}),{})}const Qc={LAZY:"LAZY",EAGER:"EAGER"},Zc=[Qc.EAGER,Qc.LAZY],Jc=[Qc.EAGER];class Xc{constructor(t){this._path=t}getTokens(){return this._path.reduce(((t,e)=>t.concat(e.resolvables.map((t=>t.token)))),[]).reduce(oc,[])}getResolvable(t){return hc(this._path.map((t=>t.resolvables)).reduce(rc,[]).filter((e=>e.token===t)))}getPolicy(t){const e=this.findNode(t);return t.getPolicy(e)}subContext(t){return new Xc(Kc.subPath(this._path,(e=>e.state===t)))}addResolvables(t,e){const n=Xa(this._path,Ma("state",e)),r=t.map((t=>t.token));n.resolvables=n.resolvables.filter((t=>-1===r.indexOf(t.token))).concat(t)}resolvePath(t="LAZY",e){const n=(Zc.includes(t)?t:"LAZY")===Qc.EAGER?Jc:Zc;Lc.traceResolvePath(this._path,t,e);const r=(t,e)=>n=>t.includes(this.getPolicy(n)[e]),i=this._path.reduce(((t,i)=>{const s=i.resolvables.filter(r(n,"when")),o=s.filter(r(["NOWAIT"],"async")),a=s.filter((t=>!r(["NOWAIT"],"async")(t))),c=this.subContext(i.state),l=t=>t.get(c,e).then((e=>({token:t.token,value:e})));return o.forEach(l),t.concat(a.map(l))}),[]);return Fa.$q.all(i)}injector(){return this._injector||(this._injector=new tl)}findNode(t){return Xa(this._path,(e=>e.resolvables.includes(t)))}getDependencies(t){const e=this.findNode(t),n=(Kc.subPath(this._path,(t=>t===e))||this._path).reduce(((t,e)=>t.concat(e.resolvables)),[]).filter((e=>e!==t));return t.deps.map((t=>{const e=n.filter((e=>e.token===t));if(e.length)return hc(e);const r=Fa.$injector.get(t);if(g(r))throw new Error("Could not find Dependency Injection token: "+Tc(t));return new qc(t,(()=>r),[],r)}))}}class tl{constructor(){this.native=Fa.$injector}get(t){return Fa.$injector.get(t)}getAsync(t){return Fa.$q.resolve(Fa.$injector.get(t))}getNative(t){return Fa.$injector.get(t)}}const el=(t,e)=>t.reduce(((t,n)=>t||v(e[n])),!1);function nl(t){if(!t.parent)return{};const e=["component","bindings","componentProvider"],n=["templateProvider","templateUrl","template","notify","async"].concat(["controller","controllerProvider","controllerAs","resolveAs"]),r=e.concat(n);if(v(t.views)&&el(r,t))throw new Error(`State '${t.name}' has a 'views' object. It cannot also have "view properties" at the state level. Move the following properties into a view (in the 'views' object): ${r.filter((e=>v(t[e]))).join(", ")}`);const i={},s=t.views||{$default:Qa(t,r)};return Object.entries(s).forEach((([r,s])=>{if(r=r||"$default",b(s)&&(s={component:s}),s=Object.assign({},s),el(e,s)&&el(n,s))throw new Error(`Cannot combine: ${e.join("|")} with: ${n.join("|")} in stateview: '${r}@${t.name}'`);s.resolveAs=s.resolveAs||"$resolve",s.$type="ng1",s.$context=t,s.$name=r;const o=il.normalizeUIViewTarget(s.$context,s.$name);s.$ngViewName=o.ngViewName,s.$ngViewContextAnchor=o.ngViewContextAnchor,i[r]=s})),i}let rl=0;class il{constructor(t,e,n){this.path=t,this.viewDecl=e,this.factory=n,this.component=void 0,this.template=void 0,this.$id=rl++,this.loaded=!1,this.getTemplate=(t,e)=>this.component?this.factory.makeComponentTemplate(t,e,this.component,this.viewDecl.bindings):this.template}load(){const t=Fa.$q,e=new Xc(this.path),n=this.path.reduce(((t,e)=>Object.assign(t,e.paramValues)),{}),r={template:t.resolve(this.factory.fromConfig(this.viewDecl,n,e)),controller:t.resolve(this.getController(e))};return t.all(r).then((t=>(Lc.traceViewServiceEvent("Loaded",this),this.controller=t.controller,Object.assign(this,t.template),this)))}getController(t){const e=this.viewDecl.controllerProvider;if(!gc(e))return this.viewDecl.controller;const n=be(e),r=Array.isArray(e)?hc(e):e;return new qc("",r,n).get(t)}static normalizeUIViewTarget(t,e=""){const n=e.split("@");let r=n[0]||"$default",i=b(n[1])?n[1]:"^";const s=/^(\^(?:\.\^)*)\.(.*$)/.exec(r);s&&(i=s[1],r=s[2]),"!"===r.charAt(0)&&(r=r.substring(1),i="");if(/^(\^(?:\.\^)*)$/.exec(i)){const e=i.split(".").reduce((t=>t.parent),t);i=e.name}else"."===i&&(i=t.name);return{ngViewName:r,ngViewContextAnchor:i}}}class sl{constructor(){this._ngViews=[],this._viewConfigs=[],this._viewConfigFactories={},this._listeners=[],this._pluginapi={_rootViewContext:this._rootViewContext.bind(this),_viewConfigFactory:this._viewConfigFactory.bind(this),_registeredUIView:t=>Xa(this._ngViews,(e=>e.id===t)),_registeredUIViews:()=>this._ngViews,_activeViewConfigs:()=>this._viewConfigs,_onSync:t=>(this._listeners.push(t),()=>Ga(this._listeners,t))},this._pluginapi._viewConfigFactory("ng1",function(){let t=null;return(e,n)=>(t=t||Fa.$injector.get("$templateFactory"),[new il(e,n,t)])}())}$get=[()=>this];_rootViewContext(t){return this._rootContext=t||this._rootContext}_viewConfigFactory(t,e){this._viewConfigFactories[t]=e}createViewConfig(t,e){const n=this._viewConfigFactories[e.$type];if(!n)throw new Error("ViewService: No view config factory registered for type "+e.$type);const r=n(t,e);return Array.isArray(r)?r:[r]}deactivateViewConfig(t){Lc.traceViewServiceEvent("<- Removing",t),Ga(this._viewConfigs,t)}activateViewConfig(t){Lc.traceViewServiceEvent("-> Registering",t),this._viewConfigs.push(t)}sync(){const t=this._ngViews.map((t=>[t.fqn,t])).reduce(uc,{});function e(t){let e=t.viewDecl.$context,n=0;for(;++n&&e.parent;)e=e.parent;return n}const n=Ra(((t,e,n,r)=>e*(t(n)-t(r)))),r=this._ngViews.sort(n((function(t){const e=t=>t&&t.parent?e(t.parent)+1:1;return 1e4*t.fqn.split(".").length+e(t.creationContext)}),1)).map((r=>{const i=this._viewConfigs.filter(sl.matches(t,r));return i.length>1&&i.sort(n(e,-1)),{ngView:r,viewConfig:i[0]}})),i=r.map((t=>t.viewConfig)),s=this._viewConfigs.filter((t=>!i.includes(t))).map((t=>({ngView:void 0,viewConfig:t})));r.forEach((t=>{-1!==this._ngViews.indexOf(t.ngView)&&t.ngView.configUpdated(t.viewConfig)}));const o=r.concat(s);this._listeners.forEach((t=>t(o))),Lc.traceViewSync(o)}registerUIView(t){Lc.traceViewServiceUIViewEvent("-> Registering",t);const e=this._ngViews;return e.filter((e=>e.fqn===t.fqn&&e.$type===t.$type)).length&&Lc.traceViewServiceUIViewEvent("!!!! duplicate ngView named:",t),e.push(t),this.sync(),()=>{-1!==e.indexOf(t)?(Lc.traceViewServiceUIViewEvent("<- Deregistering",t),Ga(e)(t)):Lc.traceViewServiceUIViewEvent("Tried removing non-registered ngView",t)}}available(){return this._ngViews.map((t=>t.fqn))}active(){return this._ngViews.filter((t=>t.$config)).map((t=>t.name))}}sl.matches=(t,e)=>n=>{if(e.$type!==n.viewDecl.$type)return!1;const r=n.viewDecl,i=r.$ngViewName.split("."),s=e.fqn.split(".");if(!Ba(i,s.slice(0-i.length)))return!1;const o=1-i.length||void 0,a=s.slice(0,o).join("."),c=t[a].creationContext;return r.$ngViewContextAnchor===(c&&c.name)};const ol={CREATE:0,BEFORE:1,RUN:2,SUCCESS:3,ERROR:4},al={TRANSITION:0,STATE:1},cl=2,ll=3,ul=4,hl=5,dl=6;let pl=0;class fl{static superseded(t,e){const n=new fl(cl,"The transition has been superseded by a different transition",t);return e&&e.redirected&&(n.redirected=!0),n}static redirected(t){return fl.superseded(t,{redirected:!0})}static invalid(t){return new fl(ul,"This transition is invalid",t)}static ignored(t){return new fl(hl,"The transition was ignored",t)}static aborted(t){return new fl(ll,"The transition has been aborted",t)}static errored(t){return new fl(dl,"The transition errored",t)}static normalize(t){return Ua(fl)(t)?t:fl.errored(t)}constructor(t,e,n){this.$id=pl++,this.type=t,this.message=e,this.detail=n,this.redirected=!1}toString(){const t=(e=this.detail)&&e.toString!==Object.prototype.toString?e.toString():Tc(e);var e;const{$id:n,type:r,message:i}=this;return`Transition Rejection($id: ${n} type: ${r}, message: ${i}, detail: ${t})`}toPromise(){return Object.assign(fc(this),{_transitionRejection:this})}}class $l{constructor(t=!1){this.disposed=!1,this.key=1,this.pendingKeys=[],this.publishDepth=0,this.subscriptions=[],this.topics={},this.async_=Boolean(t)}subscribe(t,e,n=null){let r=this.topics[t];r||(r=this.topics[t]=[]);const i=this.key;return this.subscriptions[i]=t,this.subscriptions[i+1]=e,this.subscriptions[i+2]=n,this.key=i+3,r.push(i),i}subscribeOnce(t,e,n=null){let r=!1;const i=this.subscribe(t,((...t)=>{r||(r=!0,this.unsubscribeByKey(i),e.apply(n,t))}),this);return i}static runAsync_(t,e,n){setTimeout((()=>{t.apply(e,n)}),0)}unsubscribe(t,e,n=null){const r=this.topics[t];if(r){const t=this.subscriptions,i=r.find((r=>t[r+1]===e&&t[r+2]===n));if(void 0!==i)return this.unsubscribeByKey(i)}return!1}unsubscribeByKey(t){const e=this.subscriptions[t];if(e){let n=this.topics[e];0!==this.publishDepth?(this.pendingKeys.push(t),this.subscriptions[t+1]=()=>{}):(n&&(this.topics[e]=n.filter((e=>e!==t))),delete this.subscriptions[t],delete this.subscriptions[t+1],delete this.subscriptions[t+2])}return!!e}publish(t,...e){const n=this.topics[t];if(n){const t=e;if(this.async_)for(let e=0;e<n.length;e++){const r=n[e];$l.runAsync_(this.subscriptions[r+1],this.subscriptions[r+2],t)}else{this.publishDepth++;try{for(let e=0,r=n.length;e<r&&!this.isDisposed();e++){const r=n[e];this.subscriptions[r+1].apply(this.subscriptions[r+2],t)}}finally{if(this.publishDepth--,this.pendingKeys.length>0&&0===this.publishDepth){let t;for(;t=this.pendingKeys.pop();)this.unsubscribeByKey(t)}}}return!0}return!1}clear(t){if(t){const e=this.topics[t];e&&(e.forEach(this.unsubscribeByKey,this),delete this.topics[t])}else this.subscriptions.length=0,this.topics={}}getCount(t){if(t){const e=this.topics[t];return e?e.length:0}let e=0;for(const t in this.topics)e+=this.getCount(t);return e}isDisposed(){return this.disposed}dispose(){this.clear(),this.pendingKeys.length=0,this.disposed=!0}}const ml=new $l(!0),gl={current:()=>{},transition:null,traceData:{},bind:null};class vl{static chain(t,e){return t.reduce(((t,e)=>t.then((()=>e.invokeHook()))),e||Fa.$q.resolve())}static invokeHooks(t,e){for(let n=0;n<t.length;n++){const r=t[n].invokeHook();if(vc(r)){const i=t.slice(n+1);return vl.chain(i,r).then(e)}}return e()}static runAllHooks(t){t.forEach((t=>t.invokeHook()))}constructor(t,e,n,r){this.transition=t,this.stateContext=e,this.registeredHook=n,this.options=r,this.isSuperseded=()=>this.type.hookPhase===ol.RUN&&!this.options.transition.isActive(),this.options=Ya(r,gl),this.type=n.eventType}logError(t){ml.publish("$stateService:defaultErrorHandler",t)}invokeHook(){const t=this.registeredHook;if(t._deregistered)return;const e=this.getNotCurrentRejection();if(e)return e;const n=this.options;Lc.traceHookInvocation(this,this.transition,n);const r=()=>t.callback.call(n.bind,this.transition,this.stateContext),i=t=>fl.normalize(t).toPromise(),s=e=>t.eventType.getErrorHandler(this)(e),o=e=>t.eventType.getResultHandler(this)(e);try{const t=r();return!this.type.synchronous&&vc(t)?t.catch(i).then(o,s):o(t)}catch(t){return s(fl.normalize(t))}finally{t.invokeLimit&&++t.invokeCount>=t.invokeLimit&&t.deregister()}}handleHookResult(t){const e=this.getNotCurrentRejection();return e||(vc(t)?t.then((t=>this.handleHookResult(t))):(Lc.traceHookResult(t,this.transition),!1===t?fl.aborted("Hook aborted transition").toPromise():t instanceof Hc?fl.redirected(t).toPromise():void 0))}getNotCurrentRejection(){return this.transition._aborted?fl.aborted().toPromise():this.isSuperseded()?fl.superseded(this.options.current()).toPromise():void 0}toString(){const{options:t,registeredHook:e}=this;return`${La("traceData.hookType")(t)||"internal"} context: ${La("traceData.context.state.name")(t)||La("traceData.context")(t)||"unknown"}, ${xc(200,_c(e.callback))}`}}vl.HANDLE_RESULT=t=>e=>t.handleHookResult(e),vl.LOG_REJECTED_RESULT=t=>e=>{vc(e)&&e.catch((e=>t.logError(fl.normalize(e))))},vl.LOG_ERROR=t=>e=>t.logError(e),vl.REJECT_ERROR=()=>t=>fc(t),vl.THROW_ERROR=()=>t=>{throw t};class yl{static is(t){return!!/[!,*]+/.exec(t)}static fromString(t){return yl.is(t)?new yl(t):null}constructor(t){this.text=t,this.glob=t.split(".");const e=this.text.split(".").map((t=>"**"===t?"(?:|(?:\\.[^.]*)*)":"*"===t?"\\.[^.]*":"\\."+t)).join("");this.regexp=new RegExp("^"+e+"$")}matches(t){return this.regexp.test("."+t)}}function bl(t,e,n){const r=b(e)?[e]:e;return!!(O(r)?r:function(t){const e=r;for(let n=0;n<e.length;n++){const r=new yl(e[n]);if(r&&r.matches(t.name)||!r&&e[n]===t.name)return!0}return!1})(t,n)}class wl{constructor(t,e,n,r,i,s={}){this.tranSvc=t,this.eventType=e,this.callback=n,this.matchCriteria=r,this.removeHookFromRegistry=i,this.invokeCount=0,this._deregistered=!1,this.priority=s.priority||0,this.bind=s.bind||null,this.invokeLimit=s.invokeLimit}_matchingNodes(t,e,n){if(!0===e)return t;const r=t.filter((t=>bl(t.state,e,n)));return r.length?r:null}_getDefaultMatchCriteria(){return tc(this.tranSvc._pluginapi._getPathTypes(),(()=>!0))}_getMatchingNodes(t,e){const n=Object.assign(this._getDefaultMatchCriteria(),this.matchCriteria);return Object.values(this.tranSvc._pluginapi._getPathTypes()).reduce(((r,i)=>{const s=i.scope===al.STATE,o=t[i.name]||[],a=s?o:[hc(o)];return r[i.name]=this._matchingNodes(a,n[i.name],e),r}),{})}matches(t,e){const n=this._getMatchingNodes(t,e);return Object.values(n).every((t=>t))?n:null}deregister(){this.removeHookFromRegistry(this),this._deregistered=!0}}function El(t,e,n){const r=(t._registeredHooks=t._registeredHooks||{})[n.name]=[],i=Ga(r);function s(t,s,o={}){const a=new wl(e,n,s,t,i,o);return r.push(a),a.deregister.bind(a)}return t[n.name]=s,s}class Cl{constructor(t){this.transition=t}buildHooksForPhase(t){return this.transition.transitionService._pluginapi._getEvents(t).map((t=>this.buildHooks(t))).reduce(rc,[]).filter(Boolean)}buildHooks(t){const e=this.transition,n=e.treeChanges(),r=this.getMatchingHooks(t,n,e);if(!r)return[];const i={transition:e,current:e.options().current};return r.map((r=>r.matches(n,e)[t.criteriaMatchPath.name].map((n=>{const s=Object.assign({bind:r.bind,traceData:{hookType:t.name,context:n}},i),o=t.criteriaMatchPath.scope===al.STATE?n.state.self:null,a=new vl(e,o,r,s);return{hook:r,node:n,transitionHook:a}})))).reduce(rc,[]).sort(function(t=!1){return function(e,n){const r=t?-1:1,i=(e.node.state.path.length-n.node.state.path.length)*r;return 0!==i?i:n.hook.priority-e.hook.priority}}(t.reverseSort)).map((t=>t.transitionHook))}getMatchingHooks(t,e,n){const r=t.hookPhase===ol.CREATE,i=this.transition.transitionService;return(r?[i]:[this.transition,i]).map((e=>e.getHooks(t.name))).filter(cc(Array.isArray,`broken event named: ${t.name}`)).reduce(rc,[]).filter((t=>t.matches(e,n)))}}class Ol{constructor(t,e,n,r){if(this.globals=r,this.transitionService=n,this._deferred=Fa.$q.defer(),this.promise=this._deferred.promise,this._registeredHooks={},this._hookBuilder=new Cl(this),this.isActive=()=>this.globals.transition===this,this._targetState=e,!e.valid())throw new Error(e.error());this._options=Object.assign({current:qa(this)},e.options()),this.$id=n._transitionCount++;const i=Kc.buildToPath(t,e);this._treeChanges=Kc.treeChanges(t,i,this._options.reloadState),this.createTransitionHookRegFns();const s=this._hookBuilder.buildHooksForPhase(ol.CREATE);vl.invokeHooks(s,(()=>null)),this.applyViewConfigs()}createTransitionHookRegFns(){this.transitionService._pluginapi._getEvents().filter((t=>t.hookPhase!==ol.CREATE)).forEach((t=>El(this,this.transitionService,t)))}getHooks(t){return this._registeredHooks[t]}applyViewConfigs(){const t=this._treeChanges.entering.map((t=>t.state));Kc.applyViewConfigs(this.transitionService.$view,this._treeChanges.to,t)}$from(){return hc(this._treeChanges.from).state}$to(){return hc(this._treeChanges.to).state}from(){return this.$from().self}to(){return this.$to().self}targetState(){return this._targetState}is(t){return t instanceof Ol?this.is({to:t.$to().name,from:t.$from().name}):!(t.to&&!bl(this.$to(),t.to,this)||t.from&&!bl(this.$from(),t.from,this))}params(t="to"){return Object.freeze(this._treeChanges[t].map((t=>t.paramValues)).reduce(((t,e)=>({...t,...e})),{}))}paramsChanged(){const t=this.params("from"),e=this.params("to"),n=[].concat(this._treeChanges.to).concat(this._treeChanges.from).map((t=>t.paramSchema)).reduce(ic,[]).reduce(oc,[]);return Wc.changed(n,t,e).reduce(((t,n)=>(t[n.id]=e[n.id],t)),{})}injector(t,e="to"){let n=this._treeChanges[e];return t&&(n=Kc.subPath(n,(e=>e.state===t||e.state.name===t))),new Xc(n).injector()}getResolveTokens(t="to"){return new Xc(this._treeChanges[t]).getTokens()}addResolvable(t,e){t=Ua(qc)(t)?t:new qc(t);const n="string"==typeof e?e:e.name,r=this._treeChanges.to,i=Xa(r,(t=>t.state.name===n));it(!!i,`targetNode not found ${n}`);new Xc(r).addResolvables([t],i.state)}redirectedFrom(){return this._options.redirectedFrom||null}originalTransition(){const t=this.redirectedFrom();return t&&t.originalTransition()||this}options(){return this._options}entering(){return tc(this._treeChanges.entering,(t=>t.state)).map((t=>t.self))}exiting(){return tc(this._treeChanges.exiting,(t=>t.state)).map((t=>t.self)).reverse()}retained(){return tc(this._treeChanges.retained,(t=>t.state)).map((t=>t.self))}views(t="entering",e){let n=this._treeChanges[t];return n=e?n.filter(Ma("state",e)):n,n.map((t=>t.views)).reduce(rc,[])}treeChanges(t){return t?this._treeChanges[t]:this._treeChanges}redirect(t){let e=1,n=this;for(;null!=(n=n.redirectedFrom());)if(++e>20)throw new Error("Too many consecutive Transition redirects (20+)");const r={redirectedFrom:this,source:"redirect"};"url"===this.options().source&&!1!==t.options().location&&(r.location="replace");const i=Object.assign({},this.options(),t.options(),r);t=t.withOptions(i,!0);const s=this.transitionService.create(this._treeChanges.from,t),o=this._treeChanges.entering,a=s._treeChanges.entering;return Kc.matching(a,o,Kc.nonDynamicParams).filter((e=>{return!(n=t.options().reloadState,t=>n&&t.state.includes[n.name])(e);var n})).forEach(((t,e)=>{t.resolvables=o[e].resolvables})),s}_changedParams(){const t=this._treeChanges;if(this._options.reload)return;if(t.exiting.length||t.entering.length)return;if(t.to.length!==t.from.length)return;if(lc(t.to,t.from).map((t=>t[0].state!==t[1].state)).reduce(nc,!1))return;const e=t.to.map((t=>t.paramSchema)),[n,r]=[t.to,t.from].map((t=>t.map((t=>t.paramValues))));return lc(e,n,r).map((([t,e,n])=>Wc.changed(t,e,n))).reduce(rc,[])}dynamic(){const t=this._changedParams();return!!t&&t.map((t=>t.dynamic)).reduce(nc,!1)}ignored(){return!!this._ignoredReason()}_ignoredReason(){const t=this.globals.transition,e=this._options.reloadState,n=(t,n)=>{if(t.length!==n.length)return!1;const r=Kc.matching(t,n);return t.length===r.filter((t=>!e||!t.state.includes[e.name])).length},r=this.treeChanges(),i=t&&t.treeChanges();return i&&n(i.to,r.to)&&n(i.exiting,r.exiting)?"SameAsPending":0===r.exiting.length&&0===r.entering.length&&n(r.from,r.to)?"SameAsCurrent":void 0}run(){const t=vl.runAllHooks,e=t=>this._hookBuilder.buildHooksForPhase(t),n=e(ol.BEFORE);return vl.invokeHooks(n,(()=>{const t=this.globals;return t.lastStartedTransitionId=this.$id,t.transition=this,t.transitionHistory.enqueue(this),Lc.traceTransitionStart(this),Fa.$q.resolve(void 0)})).then((()=>{const t=e(ol.RUN);return vl.invokeHooks(t,(()=>Fa.$q.resolve(void 0)))})).then((()=>{Lc.traceSuccess(this.$to(),this),this.success=!0,this._deferred.resolve(this.to()),t(e(ol.SUCCESS))}),(n=>{Lc.traceError(n,this),this.success=!1,this._deferred.reject(n),this._error=n,t(e(ol.ERROR))})),this.promise}valid(){return!this.error()||void 0!==this.success}abort(){g(this.success)&&(this._aborted=!0)}error(){const t=this.$to();if(t.self.abstract)return fl.invalid(`Cannot transition to abstract state '${t.name}'`);const e=t.parameters(),n=this.params(),r=e.filter((t=>!t.validates(n[t.id])));if(r.length){const e=r.map((t=>`[${t.id}:${Tc(n[t.id])}]`)).join(", "),i=`The following parameter values are not valid for state '${t.name}': ${e}`;return fl.invalid(i)}return!1===this.success?this._error:void 0}toString(){const t=this.from(),e=this.to(),n=t=>null!==t["#"]&&void 0!==t["#"]?t:Za(t,["#"]);return`Transition#${this.$id}( '${y(t)?t.name:t}'${Tc(n(this._treeChanges.from.map((t=>t.paramValues)).reduce(((t,e)=>({...t,...e})),{})))} -> ${this.valid()?"":"(X) "}'${y(e)?e.name:e}'${Tc(n(this.params()))} )`}}Ol.diToken=Ol;const Sl=["$transition$",Ol];function xl(t){const e=Object.values(t.treeChanges()).reduce(rc,[]).reduce(oc,[]),n=t=>Sl.includes(t.token)?qc.fromData(t.token,null):t;e.forEach((t=>{t.resolvables=t.resolvables.map(n)}))}function Al(t){return(e,n)=>(0,n.$$state()[t])(e,n)}const kl=Al("onExit"),_l=Al("onRetain"),Tl=Al("onEnter"),jl=1e3,Vl=t=>new Xc(t.treeChanges().to).resolvePath("EAGER",t).then((()=>{})),Nl=(t,e)=>new Xc(t.treeChanges().to).subContext(e.$$state()).resolvePath("LAZY",t).then((()=>{})),Rl=t=>new Xc(t.treeChanges().to).resolvePath("LAZY",t).then((()=>{})),Pl=t=>{const e=Fa.$q,n=t.views("entering");if(n.length)return e.all(n.map((t=>e.resolve(t.load())))).then((()=>{}))},Dl=t=>{const e=t.globals,n=()=>{e.transition===t&&(e.transition=null)};t.onSuccess({},(()=>{e.successfulTransitions.enqueue(t),e.$current=t.$to(),e.current=e.$current.self,dc(t.params(),e.params)}),{priority:1e4}),t.promise.then(n,n)};function Ml(t,e,n,r){return t.onBefore({entering:t=>!!t.lazyLoad},(t=>{const i=t.entering().filter((t=>!!t.$$state().lazyLoad)).map((e=>Ll(t,e,r)));return Fa.$q.all(i).then((function(){if("url"!==t.originalTransition().options().source){const n=t.targetState();return e.target(n.identifier(),n.params(),n.options())}const r=n.match(n.parts()),i=r&&r.rule;if(i&&"STATE"===i.type){const n=i.state,s=r.match;return e.target(n,s,t.options())}n.sync()}))}))}function Ll(t,e,n){const r=e.$$state().lazyLoad;let i=r._promise;if(!i){const s=t=>(delete e.lazyLoad,delete e.$$state().lazyLoad,delete r._promise,t),o=t=>(delete r._promise,Fa.$q.reject(t));i=r._promise=Fa.$q.resolve(r(t,e)).then((function(t){t&&Array.isArray(t.states)&&t.states.forEach((t=>n.register(t)));return t})).then(s,o)}return i}class Il{constructor(t,e,n,r,i=!1,s=vl.HANDLE_RESULT,o=vl.REJECT_ERROR,a=!1){this.name=t,this.hookPhase=e,this.hookOrder=n,this.criteriaMatchPath=r,this.reverseSort=i,this.getResultHandler=s,this.getErrorHandler=o,this.synchronous=a}}function Ul(t){const e=t._ignoredReason();if(!e)return;Lc.traceTransitionIgnored(t);const n=t.globals.transition;return"SameAsCurrent"===e&&n&&n.abort(),fl.ignored().toPromise()}function ql(t){if(!t.valid())throw new Error(t.error().toString())}let Hl={location:!0,relative:null,inherit:!1,notify:!0,reload:!1,supercede:!0,custom:{},current:()=>null,source:"unknown"};class Fl{static $inject=["$routerGlobalsProvider","$viewProvider"];constructor(t,e){this._transitionCount=0,this._eventTypes=[],this._registeredHooks={},this._criteriaPaths={},this.globals=t,this.$view=e,this._deregisterHookFns={},this._pluginapi=za(qa(this),{},qa(this),["_definePathType","_defineEvent","_getPathTypes","_getEvents","getHooks"]),this._defineCorePaths(),this._defineCoreEvents(),this._registerCoreTransitionHooks(),t.successfulTransitions.onEvict(xl)}$get=["$state","$urlService","$stateRegistry","$view",(t,e,n,r)=>(this._deregisterHookFns.lazyLoad=Ml(this,t,e,n),this._deregisterHookFns.updateUrl=((t,e,n)=>{t.onSuccess({},(t=>{const r=t.options(),i=e;if("url"!==r.source&&r.location&&i.$current.navigable){const t={replace:"replace"===r.location};n.push(i.$current.navigable.url,i.globals.params,t)}n.update(!0)}),{priority:9999})})(this,t,e),this._deregisterHookFns.redirectTo=((t,e)=>{t.onStart({to:t=>!!t.redirectTo},(t=>{const n=t.to().redirectTo;if(!n)return;const r=e;function i(e){if(e)return e instanceof Hc?e:b(e)?r.target(e,t.params(),t.options()):e.state||e.params?r.target(e.state||t.to(),e.params||t.params(),t.options()):void 0}return O(n)?Fa.$q.resolve(n(t)).then(i):i(n)}))})(this,t),this._deregisterHookFns.activateViews=((t,e)=>{t.onSuccess({},(t=>{const n=t.views("entering"),r=t.views("exiting");(n.length||r.length)&&(r.forEach((t=>e.deactivateViewConfig(t))),n.forEach((t=>e.activateViewConfig(t))),e.sync())}))})(this,r),this)];create(t,e){return new Ol(t,e,this,this.globals)}_defineCoreEvents(){const t=ol,e=vl,n=this._criteriaPaths,r=!1,i=!0;this._defineEvent("onCreate",t.CREATE,0,n.to,r,e.LOG_REJECTED_RESULT,e.THROW_ERROR,i),this._defineEvent("onBefore",t.BEFORE,0,n.to),this._defineEvent("onStart",t.RUN,0,n.to),this._defineEvent("onExit",t.RUN,100,n.exiting,!0),this._defineEvent("onRetain",t.RUN,200,n.retained),this._defineEvent("onEnter",t.RUN,300,n.entering),this._defineEvent("onFinish",t.RUN,400,n.to),this._defineEvent("onSuccess",t.SUCCESS,0,n.to,r,e.LOG_REJECTED_RESULT,e.LOG_ERROR,i),this._defineEvent("onError",t.ERROR,0,n.to,r,e.LOG_REJECTED_RESULT,e.LOG_ERROR,i)}_defineCorePaths(){const{STATE:t,TRANSITION:e}=al;this._definePathType("to",e),this._definePathType("from",e),this._definePathType("exiting",t),this._definePathType("retained",t),this._definePathType("entering",t)}_defineEvent(t,e,n,r,i=!1,s=vl.HANDLE_RESULT,o=vl.REJECT_ERROR,a=!1){const c=new Il(t,e,n,r,i,s,o,a);this._eventTypes.push(c),El(this,this,c)}_getEvents(t){return(v(t)?this._eventTypes.filter((e=>e.hookPhase===t)):this._eventTypes.slice()).sort(((t,e)=>{const n=t.hookPhase-e.hookPhase;return 0===n?t.hookOrder-e.hookOrder:n}))}_definePathType(t,e){this._criteriaPaths[t]={name:t,scope:e}}_getPathTypes(){return this._criteriaPaths}getHooks(t){return this._registeredHooks[t]}_registerCoreTransitionHooks(){const t=this._deregisterHookFns;t.addCoreResolves=void this.onCreate({},(function(t){t.addResolvable(qc.fromData(Ol,t),""),t.addResolvable(qc.fromData("$transition$",t),""),t.addResolvable(qc.fromData("$stateParams",t.params()),""),t.entering().forEach((e=>{t.addResolvable(qc.fromData("$state$",e),e)}))})),t.ignored=(t=>t.onBefore({},Ul,{priority:-9999}))(this),t.invalid=(t=>t.onBefore({},ql,{priority:-1e4}))(this),t.onExit=(t=>t.onExit({exiting:t=>!!t.onExit},kl))(this),t.onRetain=(t=>t.onRetain({retained:t=>!!t.onRetain},_l))(this),t.onEnter=(t=>t.onEnter({entering:t=>!!t.onEnter},Tl))(this),t.eagerResolve=(t=>t.onStart({},Vl,{priority:jl}))(this),t.lazyResolve=(t=>t.onEnter({entering:qa(!0)},Nl,{priority:jl}))(this),t.resolveAll=(t=>t.onFinish({},Rl,{priority:jl}))(this),t.loadViews=(t=>t.onFinish({},Pl))(this),t.updateGlobals=(t=>t.onCreate({},Dl))(this),t.lazyLoad=Ml(this)}}const Bl=lt("$stateProvider");class zl{get params(){return this.globals.params}get current(){return this.globals.current}get $current(){return this.globals.$current}static $inject=["$routerGlobalsProvider","$transitionsProvider"];constructor(t,e){this.stateRegistry=void 0,this.urlService=void 0,this.globals=t,this.transitionService=e,this.invalidCallbacks=[],this._defaultErrorHandler=function(t){throw t instanceof Error&&t.stack?t:t instanceof fl?new Error(t.toString()):new Error(t)};const n=["current","$current","params","transition"],r=Object.keys(zl.prototype).filter((t=>!n.includes(t)));za(qa(zl.prototype),this,qa(this),r),ml.subscribe("$stateService:defaultErrorHandler",(t=>this.defaultErrorHandler()(t)))}$get=()=>this;decorator(t,e){return this.stateRegistry.decorator(t,e)||this}state(t){if(!t.name)throw Bl("stateinvalid","'name' required");try{this.stateRegistry.register(t)}catch(t){throw Bl("stateinvalid",t.message)}return this}_handleInvalidTargetState(t,e){const n=Yc(this.stateRegistry,t),r=this.globals,i=()=>r.transitionHistory.peekTail(),s=i(),o=new Oc(this.invalidCallbacks.slice()),a=new Xc(t).injector(),c=t=>{if(!(t instanceof Hc))return;let e=t;return e=this.target(e.identifier(),e.params(),e.options()),e.valid()?i()!==s?fl.superseded().toPromise():this.transitionTo(e.identifier(),e.params(),e.options()):fl.invalid(e.error()).toPromise()};return function t(){const r=o.dequeue();return void 0===r?fl.invalid(e.error()).toPromise():Fa.$q.resolve(r(e,n,a)).then(c).then((e=>e||t()))}()}onInvalid(t){return this.invalidCallbacks.push(t),function(){Ga(this.invalidCallbacks)(t)}.bind(this)}reload(t){return this.transitionTo(this.globals.current,this.globals.params,{reload:!v(t)||t,inherit:!1,notify:!1})}go(t,e,n){const r=Ya(n,{relative:this.$current,inherit:!0},Hl);return this.transitionTo(t,e,r)}target(t,e,n={}){if(y(n.reload)&&!n.reload.name)throw new Error("Invalid reload state object");const r=this.stateRegistry;if(n.reloadState=!0===n.reload?r.root():r.matcher.find(n.reload,n.relative),n.reload&&!n.reloadState)throw new Error(`No such reload state '${b(n.reload)?n.reload:n.reload.name}'`);return new Hc(this.stateRegistry,t,e,n)}getCurrentPath(){const t=this.globals.successfulTransitions.peekTail();return t?t.treeChanges().to:(()=>[new Gc(this.stateRegistry.root())])()}transitionTo(t,e={},n={}){n=Ya(n,Hl);const r=()=>this.globals.transition;n=Object.assign(n,{current:r});const i=this.target(t,e,n),s=this.getCurrentPath();if(!i.exists())return this._handleInvalidTargetState(s,i);if(!i.valid())return fc(i.error());if(!1===n.supercede&&r())return fl.ignored("Another transition is in progress and supercede has been set to false in TransitionOptions for the transition. So the transition was ignored in favour of the existing one in progress.").toPromise();const o=t=>e=>{if(e instanceof fl){const n=this.globals.lastStartedTransitionId<=t.$id;if(e.type===hl)return n&&this.urlService.update(),Fa.$q.resolve(this.globals.current);const r=e.detail;if(e.type===cl&&e.redirected&&r instanceof Hc){const e=t.redirect(r);return e.run().catch(o(e))}if(e.type===ll)return n&&this.urlService.update(),Fa.$q.reject(e)}return this.defaultErrorHandler()(e),Fa.$q.reject(e)},a=this.transitionService.create(s,i),c=a.run().catch(o(a));return pc(c),Object.assign(c,{transition:a})}is(t,e,n){n=Ya(n,{relative:this.$current});const r=this.stateRegistry.matcher.find(t,n.relative);if(!v(r))return;if(this.$current!==r)return!1;if(!e)return!0;const i=r.parameters({inherit:!0,matchingKeys:e});return Wc.equals(i,Wc.values(i,e),this.globals.params)}includes(t,e,n){n=Ya(n,{relative:this.$current});const r=b(t)&&yl.fromString(t);if(r){if(!r.matches(this.$current.name))return!1;t=this.$current.name}const i=this.stateRegistry.matcher.find(t,n.relative),s=this.$current.includes;if(!v(i))return;if(!v(s[i.name]))return!1;if(!e)return!0;const o=i.parameters({inherit:!0,matchingKeys:e});return Wc.equals(o,Wc.values(o,e),this.globals.params)}href(t,e,n){n=Ya(n,{lossy:!0,inherit:!0,absolute:!1,relative:this.$current}),e=e||{};const r=this.stateRegistry.matcher.find(t,n.relative);if(!v(r))return null;n.inherit&&(e=this.globals.params.$inherit(e,this.$current,r));const i=r&&n.lossy?r.navigable:r;return i&&void 0!==i.url&&null!==i.url?this.urlService.href(i.url,e,{absolute:n.absolute}):null}defaultErrorHandler(t){return this._defaultErrorHandler=t||this._defaultErrorHandler}get(t,e){const n=this.stateRegistry;return 0===arguments.length?n.get():n.get(t,e||this.$current)}lazyLoad(t,e){const n=this.get(t);if(!n||!n.lazyLoad)throw new Error("Can not lazy load "+t);const r=this.getCurrentPath(),i=Yc(this.stateRegistry,r);return Ll(e=e||this.transitionService.create(r,i),n)}}class Wl{constructor(){this.enabled=!1}useAnchorScroll(){this.enabled=!0}$get=["$anchorScroll","$timeout",(t,e)=>this.enabled?t:function(t){return e((()=>{t[0].scrollIntoView()}),0,!1)}]}class Gl{constructor(){this._useHttp=!1}$get=["$http","$templateCache","$templateRequest","$q","$injector",(t,e,n,r,i)=>(this.$templateRequest=n,this.$http=t,this.$templateCache=e,this.$q=r,this.$injector=i,this)];useHttpService(t){this._useHttp=t}fromConfig(t,e,n){const r=t=>this.$q.resolve(t).then((t=>({template:t}))),i=t=>this.$q.resolve(t).then((t=>({component:t})));switch((t=>v(t.template)?"template":v(t.templateUrl)?"templateUrl":v(t.templateProvider)?"templateProvider":v(t.component)?"component":v(t.componentProvider)?"componentProvider":"default")(t)){case"template":return r(this.fromString(t.template,e));case"templateUrl":return r(this.fromUrl(t.templateUrl,e));case"templateProvider":return r(this.fromProvider(t.templateProvider,e,n));case"component":return i(t.component);case"componentProvider":return i(this.fromComponentProvider(t.componentProvider,e,n));default:return r("<ui-view></ui-view>")}}fromString(t,e){return O(t)?t(e):t}fromUrl(t,e){return O(t)&&(t=t(e)),null==t?null:this._useHttp?this.$http.get(t,{cache:this.$templateCache,headers:{Accept:"text/html"}}).then((function(t){return t.data})):this.$templateRequest(t)}fromProvider(t,e,n){const r=be(t),i=Array.isArray(t)?hc(t):t;return new qc("",i,r).get(n)}fromComponentProvider(t,e,n){const r=be(t),i=Array.isArray(t)?hc(t):t;return new qc("",i,r).get(n)}makeComponentTemplate(t,e,n,r){r=r||{};const i=t=>{const e=Ac(t);return/^(x|data)-/.exec(e)?`x-${e}`:e},s=function(t){const e=Fa.$injector.get(t+dn);if(!e||!e.length)throw new Error(`Unable to find component named '${t}'`);return e.map(Kl).reduce(rc,[])}(n).map((n=>{const{name:s,type:o}=n,a=i(s);if(t.attr(a)&&!r[s])return`${a}='${t.attr(a)}'`;const c=r[s]||s;if("@"===o)return`${a}='{{::$resolve.${c}}}'`;if("&"===o){const t=e.getResolvable(c),n=t&&t.data,r=n&&be(n)||[];return`${a}='$resolve.${c}${Array.isArray(n)?`[${n.length-1}]`:""}(${r.join(",")})'`}return`${a}='::$resolve.${c}'`})).join(" "),o=i(n);return`<${o} ${s}></${o}>`}}const Kl=t=>y(t.bindToController)?Yl(t.bindToController):Yl(t.scope),Yl=t=>Object.keys(t||{}).map((e=>[e,/^([=<@&])[?]?(.*)/.exec(t[e])])).filter((t=>v(t)&&Array.isArray(t[1]))).map((t=>({name:t[1][2]||t[0],type:t[1][1]})));function Ql(t,e){let n=["",""],r=t.replace(/[\\[\]^$*+?.()|{}]/g,"\\$&");if(!e)return r;switch(e.squash){case!1:n=["(",")"+(e.isOptional?"?":"")];break;case!0:r=r.replace(/\/$/,""),n=["(?:/(",")|/)?"];break;default:n=[`(${e.squash}|`,")?"]}return r+n[0]+e.type.pattern.source+n[1]}const Zl=function(t){const e=new RegExp("("+t+")","g");return t=>t.split(e).filter(Boolean)}("/"),Jl={state:{params:{}},strict:!0,caseInsensitive:!0};class Xl{static encodeDashes(t){return encodeURIComponent(t).replace(/-/g,(t=>`%5C%${t.charCodeAt(0).toString(16).toUpperCase()}`))}static pathSegmentsAndParams(t){return lc(t._segments,t._params.filter((t=>t.location===Bc.PATH)).concat(void 0)).reduce(rc,[]).filter((t=>""!==t&&v(t)))}static queryParams(t){return t._params.filter((t=>t.location===Bc.SEARCH))}static compare(t,e){const n=t=>t._cache.weights=t._cache.weights||(t=>t._cache.segments=t._cache.segments||t._cache.path.map(Xl.pathSegmentsAndParams).reduce(rc,[]).reduce(jc,[]).map((t=>b(t)?Zl(t):t)).reduce(rc,[]))(t).map((t=>"/"===t?1:b(t)?2:t instanceof Wc?3:void 0)),r=n(t),i=n(e);((t,e,n)=>{const r=Math.max(t.length,e.length);for(;t.length<r;)t.push(n);for(;e.length<r;)e.push(n)})(r,i,0);const s=lc(r,i);let o,a;for(a=0;a<s.length;a++)if(o=s[a][0]-s[a][1],0!==o)return o;return 0}constructor(t,e,n,r){this._cache={path:[this]},this._children=[],this._params=[],this._segments=[],this._compiled=[],this.config=r=Ya(r,Jl),this.pattern=t;const i=/([:*])([\w[\]]+)|\{([\w[\]]+)(?::\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,s=/([:]?)([\w[\].-]+)|\{([\w[\].-]+)(?::\s*((?:[^{\\}]+|\\.|{(?:[^{\\}]+|\\.)*})+))?\}/g,o=[];let a,c=0;const l=e=>{if(!Xl.nameValidator.test(e))throw new Error(`Invalid parameter name '${e}' in pattern '${t}'`);if(Xa(this._params,Ma("id",e)))throw new Error(`Duplicate parameter name '${e}' in pattern '${t}'`)},u=(n,r)=>{const i=n[2]||n[3],s=r?n[4]:n[4]||("*"===n[1]?"[\\s\\S]*":null);return{id:i,regexp:s,segment:t.substring(c,n.index),type:s?e.type(s)||(t=>Wa(e.type(r?"query":"path"),{pattern:new RegExp(t,this.config.caseInsensitive?"i":void 0)}))(s):null}};let h,d;for(;(a=i.exec(t))&&(h=u(a,!1),!(h.segment.indexOf("?")>=0));)l(h.id),this._params.push(n.fromPath(h.id,h.type,r.state)),this._segments.push(h.segment),o.push([h.segment,hc(this._params)]),c=i.lastIndex;d=t.substring(c);const p=d.indexOf("?");if(p>=0){const t=d.substring(p);if(d=d.substring(0,p),t.length>0)for(c=0;a=s.exec(t);)h=u(a,!0),l(h.id),this._params.push(n.fromSearch(h.id,h.type,r.state)),c=i.lastIndex}this._segments.push(d),this._compiled=o.map((t=>Ql.apply(null,t))).concat(Ql(d))}append(t){return this._children.push(t),t._cache={path:this._cache.path.concat(t),parent:this,pattern:null},t}isRoot(){return this._cache.path[0]===this}toString(){return this.pattern}_getDecodedParamValue(t,e){return v(t)&&(t=e.type.decode(t)),e.value(t)}exec(t,e={},n){const r=(i=this._cache,s="pattern",o=()=>new RegExp(["^",ac(this._cache.path.map((t=>t._compiled))).join(""),!1===this.config.strict?"/?":"","$"].join(""),this.config.caseInsensitive?"i":void 0),i[s]=i[s]||o()).exec(t);var i,s,o;if(!r)return null;const a=this.parameters(),c=a.filter((t=>!t.isSearch())),l=a.filter((t=>t.isSearch())),u=this._cache.path.map((t=>t._segments.length-1)).reduce(((t,e)=>t+e)),h={};if(u!==r.length-1)throw new Error(`Unbalanced capture group in route '${this.pattern}'`);function d(t){const e=t=>t.split("").reverse().join(""),n=tc(e(t).split(/-(?!\\)/),e);return tc(n,(t=>t.replace(/\\-/g,"-"))).reverse()}for(let t=0;t<u;t++){const e=c[t];let n=r[t+1];for(let t=0;t<e.replace.length;t++)e.replace[t].from===n&&(n=e.replace[t].to);n&&!0===e.array&&(n=d(n)),h[e.id]=this._getDecodedParamValue(n,e)}return l.forEach((t=>{let n=e[t.id];for(let e=0;e<t.replace.length;e++)t.replace[e].from===n&&(n=t.replace[e].to);h[t.id]=this._getDecodedParamValue(n,t)})),n&&(h["#"]=n),h}parameters(t={}){return!1===t.inherit?this._params:ac(this._cache.path.map((t=>t._params)))}parameter(t,e={}){const n=this._cache.parent;return(()=>{for(const e of this._params)if(e.id===t)return e})()||!1!==e.inherit&&n&&n.parameter(t,e)||null}validates(t){t=t||{};return this.parameters().filter((e=>Object.prototype.hasOwnProperty.call(t,e.id))).map((e=>((t,e)=>!t||t.validates(e))(e,t[e.id]))).reduce(ec,!0)}format(t={}){const e=this._cache.path,n=e.map(Xl.pathSegmentsAndParams).reduce(rc,[]).map((t=>b(t)?t:i(t))),r=e.map(Xl.queryParams).reduce(rc,[]).map(i);if(n.concat(r).filter((t=>!1===t.isValid)).length)return null;function i(e){const n=e.value(t[e.id]),r=e.validates(n),i=e.isDefaultValue(n),s=!!i&&e.squash,o=e.type.encode(n);return{param:e,value:n,isValid:r,isDefaultValue:i,squash:s,encoded:o}}const s=n.reduce(((t,e)=>{if(b(e))return t+e;const{squash:n,encoded:r,param:i}=e;return!0===n?t.match(/\/$/)?t.slice(0,-1):t:b(n)?t+n:!1!==n||null==r?t:Array.isArray(r)?t+tc(r,Xl.encodeDashes).join("-"):i.raw?t+r:t+encodeURIComponent(r)}),""),o=r.map((t=>{let{param:e,squash:n,encoded:r,isDefaultValue:i}=t;if(!(null==r||i&&!1!==n)&&(Array.isArray(r)||(r=[r]),0!==r.length))return e.raw||(r=tc(r,encodeURIComponent)),r.map((t=>`${e.id}=${t}`))})).reduce(rc,[]).join("&");return s+(o?`?${o}`:"")+(t["#"]?"#"+t["#"]:"")}}Xl.nameValidator=/^\w+([-.]+\w+)*(?:\[\])?$/;class tu{name=void 0;navigable=void 0;parent=void 0;params=void 0;url=void 0;constructor(t){Object.assign(this,t),this.$$state=()=>this,this.self=t;const e=this.name?yl.fromString(this.name):null;this.__stateObjectCache={nameGlob:e}}is(t){return this===t||this.self===t||this.fqn()===t}fqn(){if(!(this.parent&&this.parent instanceof this.constructor))return this.name;const t=this.parent.fqn();return t?t+"."+this.name:this.name}root(){return this.parent&&this.parent.root()||this}parameters(t){return((t=Ya(t,{inherit:!0,matchingKeys:null})).inherit&&this.parent&&this.parent.parameters()||[]).concat(Object.values(this.params)).filter((e=>!t.matchingKeys||Object.prototype.hasOwnProperty.call(t.matchingKeys,e.id)))}parameter(t,e={}){return this.url&&this.url.parameter(t,e)||Xa(Object.values(this.params),Ma("id",t))||e.inherit&&this.parent&&this.parent.parameter(t)}toString(){return this.fqn()}}tu.isStateDeclaration=t=>O(t.$$state),tu.isState=t=>y(t.__stateObjectCache);class eu{constructor(t,e,n){this.urlService=t,this.stateService=e,this.routerGlobals=n}create(t,e){const{isState:n,isStateDeclaration:r}=tu,i=Ha([[b,t=>i(this.urlService.compile(t))],[Ua(Xl),t=>this.fromUrlMatcher(t,e)],[(s=n,o=r,(...t)=>s.apply(null,t)||o.apply(null,t)),t=>this.fromState(t,this.stateService,this.routerGlobals)],[Ua(RegExp),t=>this.fromRegExp(t,e)],[O,t=>new nu(t,e)]]);var s,o;const a=i(t);if(!a)throw new Error("invalid 'what' in when()");return a}fromUrlMatcher(t,e){let n=e;b(e)&&(e=this.urlService.compile(e)),Ua(Xl)(e)&&(n=t=>e.format(t));const r={urlMatcher:t,matchPriority:function(e){const n=t.parameters().filter((t=>t.isOptional));return n.length?n.filter((t=>e[t.id])).length/n.length:1e-6},type:"URLMATCHER"};return Object.assign(new nu((function(e){const n=t.exec(e.path,e.search,e.hash);return t.validates(n)&&n}),n),r)}fromState(t,e,n){const r=tu.isStateDeclaration(t)?t.$$state():t,i={state:r,type:"STATE"};return Object.assign(this.fromUrlMatcher(r.url,(t=>{const i=e;i.href(r,t)!==i.href(n.current,n.params)&&i.transitionTo(r,t,{inherit:!0,source:"url"})})),i)}fromRegExp(t,e){if(t.global||t.sticky)throw new Error("Rule RegExp must not be global or sticky");const n=b(e)?t=>e.replace(/\$(\$|\d{1,2})/,((e,n)=>t["$"===n?0:Number(n)])):e,r={regexp:t,type:"REGEXP"};return Object.assign(new nu((e=>t.exec(e.path)),n),r)}}eu.isUrlRule=t=>t&&["type","match","handler"].every((e=>v(t[e])));class nu{constructor(t,e){this.match=t,this.type="RAW",this.$id=-1,this._group=void 0,this.handler=e||(t=>t)}matchPriority(t){return it(g(t)),0-this.$id}}let ru;function iu(t){if(!(O(t)||b(t)||Ua(Hc)(t)||Hc.isDef(t)))throw new Error("'handler' must be a string, function, TargetState, or have a state: 'newtarget' property");return O(t)?t:qa(t)}ru=(t,e)=>{let n=((t,e)=>(e.priority||0)-(t.priority||0))(t,e);return 0!==n?n:(n=((t,e)=>{const n={STATE:4,URLMATCHER:4,REGEXP:3,RAW:2,OTHER:1};return(n[t.type]||0)-(n[e.type]||0)})(t,e),0!==n?n:(n=((t,e)=>t.urlMatcher&&e.urlMatcher?Xl.compare(t.urlMatcher,e.urlMatcher):0)(t,e),0!==n?n:((t,e)=>{const n={STATE:!0,URLMATCHER:!0};return n[t.type]&&n[e.type]?0:(t.$id||0)-(e.$id||0)})(t,e)))};class su{constructor(t){this._sortFn=ru,this._rules=[],this._id=0,this.urlRuleFactory=t}initial(t){const e=iu(t);this.rule(this.urlRuleFactory.create(((t,e)=>0===e.globals.transitionHistory.size()&&!!/^\/?$/.exec(t.path)),e))}otherwise(t){const e=iu(t);this._otherwiseFn=this.urlRuleFactory.create(qa(!0),e),this._sorted=!1}removeRule(t){Ga(this._rules,t)}rule(t){if(!eu.isUrlRule(t))throw new Error("invalid rule");return t.$id=this._id++,t.priority=t.priority||0,this._rules.push(t),this._sorted=!1,()=>this.removeRule(t)}rules(){return this.ensureSorted(),this._rules.concat(this._otherwiseFn?[this._otherwiseFn]:[])}sort(t){const e=this.stableSort(this._rules,this._sortFn=t||this._sortFn);let n=0;for(let t=0;t<e.length;t++)e[t]._group=n,t<e.length-1&&0!==this._sortFn(e[t],e[t+1])&&n++;this._rules=e,this._sorted=!0}ensureSorted(){this._sorted||this.sort()}stableSort(t,e){const n=t.map(((t,e)=>({elem:t,idx:e})));return n.sort(((t,n)=>{const r=e(t.elem,n.elem);return 0===r?t.idx-n.idx:r})),n.map((t=>t.elem))}when(t,e,n){const r=this.urlRuleFactory.create(t,e);return v(n&&n.priority)&&(r.priority=n.priority),this.rule(r),r}}class ou{constructor(t){this.urlServiceConfig=t}fromConfig(t,e,n){return new Wc(t,e,Bc.CONFIG,this.urlServiceConfig,n)}fromPath(t,e,n){return new Wc(t,e,Bc.PATH,this.urlServiceConfig,n)}fromSearch(t,e,n){return new Wc(t,e,Bc.SEARCH,this.urlServiceConfig,n)}}class au{static $inject=["$locationProvider","$stateProvider","$routerGlobalsProvider","$urlConfigProvider"];constructor(t,e,n,r){this.stateService=e,this.stateService.urlService=this,this.$locationProvider=t,this.$location=void 0,this.$browser=void 0,this.urlRuleFactory=new eu(this,this.stateService,n),this.rules=new su(this.urlRuleFactory),this.config=r,this.paramFactory=new ou(this.config),this.path=()=>this.$location.path(),this.search=()=>this.$location.search(),this.hash=()=>this.$location.hash(),this._urlListeners=[]}$get=["$location","$browser","$rootScope",(t,e,n)=>(this.$location=t,this.$browser=e,n.$on("$locationChangeSuccess",(t=>this._urlListeners.forEach((e=>e(t))))),this.listen(),this)];html5Mode(){return this.$locationProvider.getHtml5Mode().enabled&&"undefined"!=typeof history}baseHref(){return this._baseHref||(this._baseHref=this.$browser.baseHref()||window.location.pathname)}url(t,e=!1,n){return v(t)&&this.$location.url(t),e&&this.$location.replace(),n&&this.$location.state(n),this.$location.url()}onChange(t){return this._urlListeners.push(t),()=>Ga(this._urlListeners)(t)}parts(){return{path:this.path(),search:this.search(),hash:this.hash()}}sync(t){if(t&&t.defaultPrevented)return;const e=this.stateService,n={path:this.path(),search:this.search(),hash:this.hash()},r=this.match(n);Ha([[b,t=>this.url(t,!0)],[Hc.isDef,t=>e.go(t.state,t.params,t.options)],[Ua(Hc),t=>e.go(t.state(),t.params(),t.options())]])(r&&r.rule.handler(r.match,n))}listen(t){if(!1!==t)return this._stopListeningFn=this._stopListeningFn||this.onChange((t=>this.sync(t)));this._stopListeningFn&&this._stopListeningFn(),delete this._stopListeningFn}match(t){t=Object.assign({path:"",search:{},hash:""},t);const e=this.rules.rules(),n=e=>{const n=e.match(t);return n&&{match:n,rule:e,weight:e.matchPriority(n)}};let r;for(let t=0;t<e.length&&(!r||r.rule._group===e[t]._group);t++){const i=n(e[t]);r=!r||i&&i.weight>r.weight?i:r}return r}update(t){t?this.location=this.url():this.url()!==this.location&&this.url(this.location,!0)}push(t,e,n){const r=n&&!!n.replace;this.url(t.format(e||{}),r)}href(t,e,n){let r=t.format(e);if(null==r)return null;n=n||{absolute:!1};const i=this.html5Mode();if(i||null===r||(r="#"+this.$locationProvider.getHashPrefix()+r),r=function(t,e,n,r){return"/"===r?t:e?(t=>t.replace(/\/[^/]*$/,""))(r)+t:n?r.slice(1)+t:t}(r,i,n.absolute,this.baseHref()),!n.absolute||!r)return r;const s=!i&&r?"/":"",o=this.$location.port(),a=80===o||443===o?"":":"+o;return[this.$location.protocol(),"://",this.$location.host(),a,s,r].join("")}compile(t,e){const n=this.config,r=e&&!e.state&&e.params;e=r?Object.assign({state:{params:r}},e):e;const i={strict:n._isStrictMode,caseInsensitive:n._isCaseInsensitive};return new Xl(t,n.paramTypes,this.paramFactory,Object.assign(i,e))}isMatcher(t){if(!y(t))return!1;let e=!0;return Object.entries(Xl.prototype).forEach((([n,r])=>{O(r)&&(e=e&&v(t[n])&&O(t[n]))})),e}}class cu{constructor(t){this._states=t}isRelative(t){return 0===(t=t||"").indexOf(".")||0===t.indexOf("^")}find(t,e,n=!0){if(!t&&""!==t)return;const r=b(t);let i=r?t:t.name;this.isRelative(i)&&(i=this.resolvePath(i,e));const s=this._states[i];if(s&&(r||!(r||s!==t&&s.self!==t)))return s;if(r&&n){const t=Object.values(this._states).filter((t=>t.__stateObjectCache.nameGlob&&t.__stateObjectCache.nameGlob.matches(i)));return t.length>1&&console.error(`stateMatcher.find: Found multiple matches for ${i} using glob: `,t.map((t=>t.name))),t[0]}}resolvePath(t,e){if(!e)throw new Error(`No reference point given for path '${t}'`);const n=this.find(e),r=t.split("."),i=r.length;let s=0,o=n;for(;s<i;s++)if(""!==r[s]||0!==s){if("^"!==r[s])break;if(!o.parent)throw new Error(`Path '${t}' not valid for state '${n.name}'`);o=o.parent}else o=n;const a=r.slice(s).join(".");return o.name+(o.name&&a?".":"")+a}}function lu(t){return t.self.$$state=()=>t,t.self}function uu(t){return t.parent&&t.parent.data&&(t.data=t.self.data=Wa(t.parent.data,t.data)),t.data}function hu(t,e){return function(n){let r=n.self;if(r&&r.url&&r.name&&r.name.match(/\.\*\*$/)){const t={};dc(r,t),t.url+="{remainder:any}",r=t}const i=n.parent,s=function(t){if(!b(t))return!1;const e="^"===t.charAt(0);return{val:e?t.substring(1):t,root:e}}(r.url),o=s?t.compile(s.val,{state:r}):r.url;if(!o)return null;if(!t.isMatcher(o))throw new Error(`Invalid url '${o}' in state '${n}'`);return s&&s.root?o:(i&&i.navigable||e()).url.append(o)}}function du(t){return function(e){return!t(e)&&e.url?e:e.parent?e.parent.navigable:null}}function pu(t){return t.parent&&!t.abstract?t.parent.path.concat(t):[t]}function fu(t){const e=t.parent?Object.assign({},t.parent.includes):{};return e[t.name]=!0,e}function $u(t){const e=Ha([[t=>t.resolveFn,t=>new qc(vu(t),t.resolveFn,t.deps,t.policy)],[t=>t.useFactory,t=>new qc(vu(t),t.useFactory,t.deps||t.dependencies,t.policy)],[t=>t.useClass,t=>new qc(vu(t),(()=>new t.useClass),[],t.policy)],[t=>t.useValue,t=>new qc(vu(t),(()=>t.useValue),[],t.policy,t.useValue)],[t=>t.useExisting,t=>new qc(vu(t),(t=>t),[t.useExisting],t.policy)]]),n=Ha([[Da((t=>t.val),b),t=>new qc(t.token,(t=>t),[t.val],t.policy)],[Da((t=>t.val),Array.isArray),t=>new qc(t.token,hc(t.val),t.val.slice(0,-1),t.policy)],[Da((t=>t.val),O),t=>new qc(t.token,t.val,(t=>{const e=Fa.$injector;return t.$inject||e&&be(t,e.strictDi)||"deferred"})(t.val),t.policy)]]),r=Ha([[Ua(qc),t=>t],[t=>!(!t.token||!t.resolveFn),e],[t=>!!(t&&t.val&&(b(t.val)||Array.isArray(t.val)||O(t.val))),n],[qa(!0),t=>{throw new Error("Invalid resolve value: "+Tc(t))}]]),i=t.resolve,s=Array.isArray(i)?i:((t,e)=>Object.keys(t||{}).map((n=>({token:n,val:t[n],deps:void 0,policy:e[n]}))))(i,t.resolvePolicy||{});return s.map(r)}class mu{constructor(t,e){this.matcher=t,this.$injector=void 0;const n=this,r=()=>t.find("");var i;this.builders={name:[t=>t.name],self:[lu],parent:[function(e){return gu(e)?null:t.find(n.parentName(e))||r()}],data:[uu],url:[hu(e,r)],navigable:[du(gu)],params:[(i=e.paramFactory,function(t){const e=t.url&&t.url.parameters({inherit:!1})||[],n=Object.values(tc(Za(t.params||{},e.map((t=>t.id))),((e,n)=>i.fromConfig(n,null,t.self))));return e.concat(n).map((t=>[t.id,t])).reduce(uc,{})})],views:[],path:[pu],includes:[fu],resolvables:[$u]}}builder(t,e){const n=this.builders,r=n[t]||[];return b(t)&&!v(e)?r.length>1?r:r[0]:b(t)&&O(e)?(n[t]=r,n[t].push(e),()=>n[t].splice(n[t].indexOf(e,1))&&null):void 0}build(t){const{matcher:e,builders:n}=this,r=this.parentName(t);if(r&&!e.find(r,void 0,!1))return null;for(const e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;const r=n[e].reduce(((t,e)=>n=>e(n,t)),(()=>{}));t[e]=r(t)}return t}parentName(t){const e=t.name||"",n=e.split(".");if("**"===n.pop()&&n.pop(),n.length){if(t.parent)throw new Error(`States that specify the 'parent:' property should not have a '.' in their name (${e})`);return n.join(".")}return t.parent?b(t.parent)?t.parent:t.parent.name:""}name(t){const e=t.name;if(-1!==e.indexOf(".")||!t.parent)return e;const n=b(t.parent)?t.parent:t.parent.name;return n?n+"."+e:e}}function gu(t){return""===t.name}function vu(t){return t.provide||t.token}class yu{constructor(t,e,n,r,i){this.stateRegistry=t,this.urlServiceRules=e,this.states=n,this.builder=r,this.listeners=i,this.queue=[]}register(t){const e=new tu(t);if(!b(name))throw new Error("State must have a valid name");if(Object.prototype.hasOwnProperty.call(this.states,e.name)||this.queue.map((t=>t.name)).includes(e.name))throw new Error(`State '${e.name}' is already defined`);return this.queue.push(e),this.flush(),e}flush(){const{queue:t,states:e,builder:n}=this,r=[],i=[],s={},o=t=>Object.prototype.hasOwnProperty.call(this.states,t)&&this.states[t],a=()=>{r.length&&this.listeners.forEach((t=>t("registered",r.map((t=>t.self)))))};for(;t.length>0;){const c=t.shift(),l=c.name,u=n.build(c),h=i.indexOf(c);if(u){const t=o(l);if(t&&t.name===l)throw new Error(`State '${l}' is already defined`);const n=o(l+".**");n&&this.stateRegistry.deregister(n),e[l]=c,this.attachRoute(c),h>=0&&i.splice(h,1),r.push(c);continue}const d=s[l];if(s[l]=t.length,h>=0&&d===t.length)return t.push(c),a(),e;h<0&&i.push(c),t.push(c)}return a(),e}attachRoute(t){if(t.abstract||!t.url)return;const e=this.urlServiceRules;e.rule(e.urlRuleFactory.create(t))}}class bu{static $inject=["$urlServiceProvider","$stateProvider","$routerGlobalsProvider","$viewProvider"];constructor(t,e,n,r){this.states={},e.stateRegistry=this,this.urlService=t,this.urlServiceRules=t.rules,this.$injector=void 0,this.listeners=[],this.matcher=new cu(this.states),this.builder=new mu(this.matcher,t),this.builder.builder("views",nl),this.builder.builder("onExit",this.getStateHookBuilder("onExit")),this.builder.builder("onRetain",this.getStateHookBuilder("onRetain")),this.builder.builder("onEnter",this.getStateHookBuilder("onEnter")),this.stateQueue=new yu(this,this.urlServiceRules,this.states,this.builder,this.listeners),this.registerRoot(),r._pluginapi._rootViewContext(this.root()),n.$current=this.root(),n.current=n.$current.self}$get=["$injector",t=>(this.$injector=t,this.builder.$injector=t,this)];getStateHookBuilder(t){let e=this;return function(n){const r=n[t],i="onExit"===t?"from":"to";return r?function(t,n){const s=new Xc(t.treeChanges(i)).subContext(n.$$state()),o=Object.assign(wu(s),{$state$:n,$transition$:t});return e.$injector.invoke(r,this,o)}:void 0}}registerRoot(){this._root=this.stateQueue.register({name:"",url:"^",views:null,params:{"#":{value:null,type:"hash",dynamic:!0}},abstract:!0}),this._root.navigable=null}onStatesChanged(t){return this.listeners.push(t),function(){Ga(this.listeners)(t)}.bind(this)}root(){return this._root}register(t){return this.stateQueue.register(t)}_deregisterTree(t){const e=this.get().map((t=>t.$$state())),n=t=>{const r=e.filter((e=>-1!==t.indexOf(e.parent)));return 0===r.length?r:r.concat(n(r))},r=n([t]),i=[t].concat(r).reverse();return i.forEach((t=>{const e=this.urlServiceRules;e.rules().filter(Ma("state",t)).forEach((t=>e.removeRule(t))),delete this.states[t.name]})),i}deregister(t){const e=this.get(t);if(!e)throw new Error("Can't deregister state; not found: "+t);const n=this._deregisterTree(e.$$state());return this.listeners.forEach((t=>t("deregistered",n.map((t=>t.self))))),n}get(t,e){if(0===arguments.length)return Object.keys(this.states).map((t=>this.states[t].self));const n=this.matcher.find(t,e);return n&&n.self||null}decorator(t,e){return this.builder.builder(t,e)}}const wu=t=>t.getTokens().filter(b).map((e=>{const n=t.getResolvable(e);return[e,"NOWAIT"===t.getPolicy(n).async?n.promise:n.data]})).reduce(uc,{});function Eu(t){const e=t.match(/^\s*({[^}]*})\s*$/);e&&(t="("+e[1]+")");const n=t.replace(/\n/g," ").match(/^\s*([^(]*?)\s*(\((.*)\))?\s*$/);if(!n||4!==n.length)throw new Error("Invalid state ref '"+t+"'");return{state:n[1]||null,paramExpr:n[3]||null}}function Cu(t){const e=t.parent().inheritedData("$ngView"),n=La("$cfg.path")(e);return n?hc(n).state.name:void 0}function Ou(t,e,n){const r=n.ngState||t.current.name,i=Object.assign(function(t,e){return{relative:Cu(t)||e.$current,inherit:!0,source:"sref"}}(e,t),n.ngStateOpts||{}),s=t.href(r,n.ngStateParams,i);return{ngState:r,ngStateParams:n.ngStateParams,ngStateOpts:i,href:s}}function Su(t){const e="[object SVGAnimatedString]"===Object.prototype.toString.call(t[0].getAttribute("href")),n="FORM"===t[0].nodeName;return{attr:n?"action":e?"xlink:href":"href",isAnchor:"A"===t[0].nodeName,clickable:!n}}function xu(t,e,n,r,i){return function(s){const o=s.which||s.button,a=i();if(o>1||s.ctrlKey||s.metaKey||s.shiftKey||s.altKey||t.attr("target"))s.preventDefault(),s.stopImmediatePropagation();else{const i=n((function(){t.attr("disabled")||e.go(a.ngState,a.ngStateParams,a.ngStateOpts)}));s.preventDefault();let o=r.isAnchor&&!a.href?1:0;s.preventDefault=function(){o--<=0&&n.cancel(i)}}}}function Au(t,e,n,r){let i;r&&(i=r.events),Array.isArray(i)||(i=["click"]);const s=t.on?"on":"bind";for(const e of i)t[s](e,n);e.$on("$destroy",(function(){const e=t.off?"off":"unbind";for(const r of i)t[e](r,n)}))}function ku(t,e,n,r){const i=t;return{restrict:"A",require:["?^ngSrefActive","?^ngSrefActiveEq"],link:(t,s,o,a)=>{const c=Su(s),l=a[1]||a[0];let u=null;const h={},d=()=>Ou(i,s,h),p=Eu(o.ngSref);function f(){const t=d();u&&u(),l&&(u=l.$$addStateInfo(t.ngState,t.ngStateParams)),null!=t.href&&o.$set(c.attr,t.href)}if(h.ngState=p.state,h.ngStateOpts=o.ngSrefOpts?t.$eval(o.ngSrefOpts):{},p.paramExpr&&(t.$watch(p.paramExpr,(function(t){h.ngStateParams=Object.assign({},t),f()}),!0),h.ngStateParams=Object.assign({},t.$eval(p.paramExpr))),f(),t.$on("$destroy",n.onStatesChanged(f)),t.$on("$destroy",r.onSuccess({},f)),!c.clickable)return;const $=xu(s,i,e,c,d);Au(s,t,$,h.ngStateOpts)}}}function _u(t,e,n,r){return{restrict:"A",require:["?^ngSrefActive","?^ngSrefActiveEq"],link:function(i,s,o,a){const c=Su(s),l=a[1]||a[0];let u,h=null;const d={},p=()=>Ou(t,s,d),f=["ngState","ngStateParams","ngStateOpts"],$=f.reduce(((t,e)=>(t[e]=()=>{},t)),{});function m(){const t=p();h&&h(),l&&(h=l.$$addStateInfo(t.ngState,t.ngStateParams)),null!=t.href&&o.$set(c.attr,t.href)}f.forEach((t=>{d[t]=o[t]?i.$eval(o[t]):null,o.$observe(t,(e=>{$[t](),$[t]=i.$watch(e,(e=>{d[t]=e,m()}),!0)}))})),m(),i.$on("$destroy",n.onStatesChanged(m)),i.$on("$destroy",r.onSuccess({},m)),c.clickable&&(u=xu(s,t,e,c,p),Au(s,i,u,d.ngStateOpts))}}}function Tu(t,e,n,r,i){return{restrict:"A",controller:function(s,o,a){let c,l,u=[];c=n(a.ngSrefActiveEq||"",!1)(s);try{l=s.$eval(a.ngSrefActive)}catch(t){}function h(t){t.promise.then($,(()=>{}))}function d(){p(l)}function p(t){y(t)&&(u=[],Object.entries(t).forEach((([t,e])=>{const n=function(t,e){const n=Eu(t);f(n.state,s.$eval(n.paramExpr),e)};b(e)?n(e,t):Array.isArray(e)&&e.forEach((e=>{n(e,t)}))})))}function f(e,n,r){const i={state:t.get(e,Cu(o))||{name:e},params:n,activeClass:r};return u.push(i),function(){Ga(u)(i)}}function $(){const e=t=>t.split(/\s/).filter(Boolean),n=t=>t.map((t=>t.activeClass)).map(e).reduce(rc,[]),r=n(u).concat(e(c)).reduce(oc,[]),i=n(u.filter((e=>t.includes(e.state.name,e.params)))),a=!!u.filter((e=>t.is(e.state.name,e.params))).length?e(c):[],l=i.concat(a).reduce(oc,[]),h=r.filter((t=>!l.includes(t)));s.$evalAsync((()=>{l.forEach((t=>o[0].classList.add(t))),h.forEach((t=>o[0].classList.remove(t)))}))}l=l||n(a.ngSrefActive||"",!1)(s),p(l),this.$$addStateInfo=function(t,e){if(y(l)&&u.length>0)return;const n=f(t,e,l);return $(),n},s.$on("$destroy",function(){const t=r.onStatesChanged(d),e=i.onStart({},h),n=s.$on("$stateChangeSuccess",$);return function(){t(),e(),n()}}()),e.transition&&h(e.transition),$()}}}ku.$inject=["$state","$timeout","$stateRegistry","$transitions"],_u.$inject=["$state","$timeout","$stateRegistry","$transitions"],Tu.$inject=["$state","$routerGlobals","$interpolate","$stateRegistry","$transitions"];let ju=["$view","$animate","$ngViewScroll","$interpolate","$q",function(t,e,n,r,i){const s={$cfg:{viewDecl:{$context:t._pluginapi._rootViewContext()}},$ngView:{}},o={count:0,restrict:"EA",terminal:!0,priority:400,transclude:"element",compile:function(a,c,l){return function(a,c,u){const h=u.onload||"",d=u.autoscroll,p={enter:function(t,n,r){e.enter(t,null,n).then(r)},leave:function(t,n){e.leave(t).then(n)}},f=c.inheritedData("$ngView")||s,$=r(u.ngView||u.name||"")(a)||"$default";let m,g,y,b;const w={$type:"ng1",id:o.count++,name:$,fqn:f.$ngView.fqn?f.$ngView.fqn+"."+$:$,config:null,configUpdated:function(t){if(t&&!(t instanceof il))return;if(e=b,n=t,e===n)return;var e,n;Lc.traceUIViewConfigUpdated(w,t&&t.viewDecl&&t.viewDecl.$context),b=t,C(t)},get creationContext(){const t=La("$cfg.viewDecl.$context")(f),e=La("$ngView.creationContext")(f);return t||e}};Lc.traceUIViewEvent("Linking",w),c.data("$ngView",{$ngView:w}),C();const E=t.registerUIView(w);function C(t){const e=a.$new(),r=i.defer(),s=i.defer(),o={$cfg:t,$ngView:w},u={$animEnter:r.promise,$animLeave:s.promise,$$animLeave:s};e.$emit("$viewContentLoading",$);const f=l(e,(function(t){t.data("$ngViewAnim",u),t.data("$ngView",o),p.enter(t,c,(function(){r.resolve(),y&&y.$emit("$viewContentAnimationEnded"),(v(d)&&!d||a.$eval(d))&&n(t)})),function(){if(m&&(Lc.traceUIViewEvent("Removing (previous) el",m.data("$ngView")),m.remove(),m=null),y&&(Lc.traceUIViewEvent("Destroying scope",w),y.$destroy(),y=null),g){const t=g.data("$ngViewAnim");Lc.traceUIViewEvent("Animate out",t),p.leave(g,(function(){t.$$animLeave.resolve(),m=null})),m=g,g=null}}()}));g=f,y=e,y.$emit("$viewContentLoaded",t||b),y.$eval(h)}a.$on("$destroy",(function(){Lc.traceUIViewEvent("Destroying/Unregistering",w),E()}))}}};return o}];function Vu(t,e,n,r,i){const s=La("viewDecl.controllerAs"),o=La("viewDecl.resolveAs");return{restrict:"EA",priority:-400,compile:function(r){const a=r.html();return r.empty(),function(r,c){const l=c.data("$ngView");if(!l)return c.html(a),void t(c[0].contentDocument||c[0].childNodes)(r);const u=l.$cfg||{viewDecl:{},getTemplate:()=>{}},h=u.path&&new Xc(u.path);c.html(u.getTemplate(c,h)||a),Lc.traceUIViewFill(l.$ngView,c.html());const d=t(c[0].contentDocument||c[0].childNodes),p=u.controller,f=s(u),$=o(u),m=h&&wu(h);if(r[$]=m,p){const t=e(p,Object.assign({},m,{$scope:r,$element:c}));f&&(r[f]=t,r[f][$]=m),c.data("$ngControllerController",t),c.children().data("$ngControllerController",t),Ru(i,n,t,r,u)}if(b(u.component)){const t=Ac(u.component),e=new RegExp(`^(x-|data-)?${t}$`,"i"),s=()=>{const t=[].slice.call(c[0].children).filter((t=>t&&t.tagName&&e.exec(t.tagName)));return t&&At(t).data(`$${u.component}Controller`)},o=r.$watch(s,(function(t){t&&(Ru(i,n,t,r,u),o())}))}d(r)}}}}Vu.$inject=["$compile","$controller","$transitions","$view","$q"];let Nu=0;function Ru(t,e,n,r,i){!O(n.$onInit)||i.viewDecl.component||i.viewDecl.componentProvider||n.$onInit();const s=hc(i.path).state.self,o={bind:n};if(O(n.uiOnParamsChanged)){const t=new Xc(i.path).getResolvable("$transition$").data,a=e=>{if(e===t||-1!==e.exiting().indexOf(s))return;const r=e.params("to"),i=e.params("from"),o=t=>t.paramSchema,a=e.treeChanges("to").map(o).reduce(rc,[]),c=e.treeChanges("from").map(o).reduce(rc,[]),l=a.filter((t=>{const e=c.indexOf(t);return-1===e||!c[e].type.equals(r[t.id],i[t.id])}));if(l.length){const t=l.map((t=>t.id)),i=Ja(r,((e,n)=>-1!==t.indexOf(n)));n.uiOnParamsChanged(i,e)}};r.$on("$destroy",e.onSuccess({},a,o))}if(O(n.uiCanExit)){const i=Nu++,a="_uiCanExitIds",c=t=>!!t&&(t[a]&&!0===t[a][i]||c(t.redirectedFrom())),l=e=>{let r;const s=e[a]=e[a]||{};return c(e)||(r=t.resolve(n.uiCanExit(e)),r.then((t=>s[i]=!1!==t))),r},u={exiting:s.name};r.$on("$destroy",e.onBefore(u,l,o))}}function Pu(){return{restrict:"EA",link:(t,e,n)=>{const r=e[0].childNodes.length>0,i=n.ngChannel,s=ml.subscribe(i,(async n=>{r?y(n)&&Object.entries(n).forEach((([e,n])=>{t[e]=n})):e[0].innerHTML=n}));t.$on("$destroy",(()=>{ml.unsubscribeByKey(s)}))}}}function Du(t){return{restrict:"A",link(e,n,r){const i=r.ngSetter;if(!i)return void console.warn("ngSetter: Model expression is not provided.");const s=t(i).assign;if(!s)return void console.warn("ngSetter: Invalid model expression.");const o=t=>{s(e,t),e.$digest()},a=new MutationObserver((t=>{let e=!1;for(const n of t)if("childList"===n.type||"characterData"===n.type){e=!0;break}e&&o(n[0].innerHTML)}));n&&n[0]?(a.observe(n[0],{childList:!0,subtree:!0,characterData:!0}),e.$on("$destroy",(()=>a.disconnect())),o(n.html())):console.warn("ngSetter: Element is not a valid DOM node.")}}}Du.$inject=["$parse"];const Mu="0.6.5";const Lu=lt("ng"),Iu=lt("$injector"),Uu={};const qu=new class{constructor(){mt.clear(),this.Cache=mt,this.EventBus=ml,this.version=Mu,this.element=At,this.bootsrappedModules=[],window.angular=this,function(t){t.module("ng",[],["$provide",t=>{t.provider({$$sanitizeUri:So}),t.provider("$compile",pn).directive({input:sr,textarea:sr,form:wn,script:lr,select:dr,option:pr,ngBind:fr,ngBindHtml:mr,ngBindTemplate:$r,ngClass:vr,ngClassEven:br,ngClassOdd:yr,ngCloak:wr,ngController:Er,ngDisabled:qo,ngForm:En,ngHide:xr,ngIf:fi,ngInclude:$i,ngInit:gi,ngMessages:_o,ngMessage:No,ngMessageExp:Ro,ngMessagesInclude:Vo,ngMessageDefault:Po,ngNonBindable:vi,ngRef:bi,ngRepeat:wi,ngSetter:Du,ngShow:Sr,ngStyle:Ei,ngSwitch:Ci,ngSwitchWhen:Oi,ngSwitchDefault:Si,ngOptions:ki,ngTransclude:Ti,ngModel:Nn,ngChange:ji,pattern:Pi,ngPattern:Pi,required:Ri,ngRequired:Ri,ngMinlength:Mi,minlength:Mi,ngMaxlength:Di,maxlength:Di,ngValue:cr,ngModelOptions:_n}).directive({input:or,ngAnimateSwap:Va,ngAnimateChildren:Na,ngChecked:Wo,ngClick:Bo,ngDblclick:Zo,ngInclude:mi,ngHide:Ko,ngShow:Ho,ngMessages:Fo,ngModel:Qo,ngReadonly:Yo,ngRequired:zo,ngValue:Go,ngSref:ku,ngSrefActive:Tu,ngSrefActiveEq:Tu,ngState:_u,ngView:ju,ngChannel:Pu}).directive({ngView:Vu}).directive(Ni).directive(Je),t.provider({$aria:Uo,$anchorScroll:Ui,$animate:pi,$$animation:ga,$animateCss:la,$$animateCssDriver:ka,$$animateJs:fa,$$animateJsDriver:ja,$$animateCache:Ca,$$animateQueue:pa,$$AnimateRunner:Yi,$$animateAsyncRun:Bi,$browser:Fi,$controller:Se,$exceptionHandler:Xi,$filter:ls,$interpolate:Is,$interval:$s,$$intervalFactory:Us,$http:ro,$httpParamSerializer:Zs,$httpBackend:io,$location:ho,$log:vo,$parse:_s,$$rAFScheduler:va,$rootScope:Me,$routerGlobals:Sc,$q:us,$sce:Ze,$sceDelegate:Qe,$$taskTrackerFactory:yo,$templateCache:Zi,$templateRequest:Eo,$timeout:Oo,$urlConfig:Ec,$view:sl,$transitions:Fl,$state:zl,$ngViewScroll:Wl,$templateFactory:Gl,$urlService:au,$stateRegistry:bu})}]).factory("$stateParams",["$routerGlobals",function(t){return t.params}]).value("$trace",Lc).info({version:Mu})}(this)}errorHandlingConfig(t){return ct(t)}bootstrap(t,e,n){n=n||{strictDi:!1};const r=At(t);if(r.injector())throw Lu("btstrpd","App already bootstrapped");Array.isArray(e)&&(this.bootsrappedModules=e),this.bootsrappedModules.unshift(["$provide",t=>{t.value("$rootElement",r)}]),this.bootsrappedModules.unshift("ng");const i=ve(this.bootsrappedModules,n.strictDi);return i.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){if(Fa.$injector=r,Fa.$q=r.get("$q"),t.$apply((()=>{e.data("$injector",r),n(e)(t)})),!Object.prototype.hasOwnProperty.call(r,"strictDi"))try{r.invoke((()=>{}))}catch(t){r.strictDi=!!/strict mode/.exec(t&&t.toString())}r.get("$stateRegistry").get().map((t=>t.$$state().resolvables)).reduce(rc,[]).filter((t=>"deferred"===t.deps)).forEach((t=>t.deps=be(t.resolveFn,r.strictDi)))}]),i}injector(t,e){return ve(t,e)}init(t){let e,n;const r={};nt.forEach((r=>{const i=`${r}app`;t.hasAttribute&&t.hasAttribute(i)&&(e=t,n=t.getAttribute(i))})),nt.forEach((r=>{const i=`${r}app`;let s;!e&&(s=t.querySelector(`[${i.replace(":","\\:")}]`))&&(e=s,n=s.getAttribute(i))})),e&&(r.strictDi=null!==function(t,e){let n,r;const i=nt.length;for(r=0;r<i;++r)if(n=nt[r]+e,b(n=t.getAttribute(n)))return n;return null}(e,"strict-di"),this.bootstrap(e,n?[n]:[],r))}module(t,e,n){return B(t,"module"),e&&Object.prototype.hasOwnProperty.call(Uu,t)&&(Uu[t]=null),function(t,e,n){return t[e]||(t[e]=n())}(Uu,t,(()=>{if(!e)throw Iu("nomod","Module '{0}' is not available. Possibly misspelled or not loaded",t);return new Jt(t,e,n)}))}};document.addEventListener("DOMContentLoaded",(()=>qu.init(document)),{once:!0}),t.angular=qu}));