@angular-wave/angular.ts 0.0.69 → 0.0.70

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.
@@ -1,2 +1,2 @@
1
- /* Version: 0.0.69 - August 14, 2024 01:36:43 */
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"},p=ht("ng");let d=0;function f(){return d+=1,d}function $(t){return w(t)?t.toLowerCase():t}function m(t){if(null==t||S(t))return!1;if(Array.isArray(t)||t instanceof Array||w(t))return!0;const e="length"in Object(t)&&t.length;return b(e)&&(e>=0&&e-1 in t||"function"==typeof t.item)}function g(t){return void 0===t}function y(t){return void 0!==t}function v(t){return null!==t&&"object"==typeof t}function w(t){return"string"==typeof t}function b(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 x(t){return"function"==typeof t}function O(t){return"[object RegExp]"===toString.call(t)}function S(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&&x(t.then)}function T(t){return w(t)?t.trim():t}function N(t,e){const n=e;return t.replace(/[A-Z]/g,((t,e)=>(e?n:"")+t.toLowerCase()))}function j(t,e,n){let r,i;if(t)if(x(t))for(r in t)"prototype"!==r&&"length"!==r&&"name"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&e.call(n,t[r],r,t);else if(Array.isArray(t)||m(t)){const s="object"!=typeof t;for(r=0,i=t.length;r<i;r++)(s||r in t)&&e.call(n,t[r],r,t)}else if(t.forEach&&t.forEach!==j)t.forEach(e,n,t);else if(null===(s=t)||"object"!=typeof s||Object.getPrototypeOf(s))for(r in t)Object.hasOwnProperty.call(t,r)&&e.call(n,t[r],r,t);else for(r in t)e.call(n,t[r],r,t);var s;return t}function R(t,e,n){const r=Object.keys(t).sort();return r.forEach((r=>e.call(n,t[r],r))),r}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(!v(r)&&!x(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 P(t){return parseInt(t,10)}function D(t){return Number.isNaN(t)}function M(t,e){return V(Object.create(t),e)}function L(t){return function(){return t}}function I(t){return x(t.toString)&&t.toString!==toString}function q(t){return!(!t||!(t.nodeName||t.attr&&t.find))}function U(t){return $(t.nodeName||t[0]&&t[0].nodeName)}function H(t,e){return-1!==Array.prototype.indexOf.call(t,e)}function F(t,e){const n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function B(t,e){return t===e||t!=t&&e!=e}function z(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)&&B(t.getTime(),e.getTime());if(O(t))return!!O(e)&&t.toString()===e.toString();if(A(t)||A(e)||S(t)||S(e)||Array.isArray(e)||E(e)||O(e))return!1;for(i in s=Object.create(null),t)if("$"!==i.charAt(0)&&!x(t[i])){if(!z(t[i],e[i]))return!1;s[i]=!0}for(i in e)if(!(i in s)&&"$"!==i.charAt(0)&&y(e[i])&&!x(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(!z(t[i],e[i]))return!1;return!0}}return!1}function W(t,e){if("hasOwnProperty"===t)throw p("badname","hasOwnProperty is not a valid {0} name",e)}function G(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=`${t}`;break;default:t=!I(t)||Array.isArray(t)||E(t)?Y(t):t.toString()}return t}function K(t,e,n){return t.concat(Array.prototype.slice.call(e,n))}function Q(t,e){return Array.prototype.slice.call(t,e||0)}function J(t,e){const n=arguments.length>2?Q(arguments,2):[];return!x(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,K(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function Z(t,e){let n=e;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?n=void 0:S(e)?n="$WINDOW":e&&window.document===e?n="$DOCUMENT":A(e)&&(n="$SCOPE"),n}function Y(t,e){if(!g(t))return b(e)||(e=e?2:null),JSON.stringify(t,Z,e)}function X(t,e,n){const r=t.getTimezoneOffset(),i=function(t,e){const n=Date.parse(`Jan 01, 1970 00:00:00 ${t}`)/6e4;return D(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 tt(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=et(r),y(r)&&(i=!y(i)||et(i),Object.hasOwnProperty.call(e,r)?Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i))})),e}function et(t){try{return decodeURIComponent(t)}catch(t){}}function nt(t){return rt(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function rt(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 it=["ng-","data-ng-"];function st(t,e){if(Array.isArray(t)){e=e||[];for(let n=0,r=t.length;n<r;n++)e[n]=t[n]}else if(v(t)){e=e||{};for(const n in t)n.startsWith("$")&&"$"===n.charAt(1)||(e[n]=t[n])}return e||t}function ot(t,e="Assertion failed"){if(!t)throw new Error(e)}function at(t,e,n){if(!t)throw p("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function ct(t,e,n){return n&&Array.isArray(t)&&(t=t[t.length-1]),at(x(t),e,`not a function, got ${t&&"object"==typeof t?t.constructor.name||"Object":typeof t}`),t}const lt={objectMaxDepth:5,urlErrorParamsEnabled:!0};function ut(t){var e;return v(t)&&(y(t.objectMaxDepth)&&(lt.objectMaxDepth=b(e=t.objectMaxDepth)&&e>0?t.objectMaxDepth:NaN),y(t.urlErrorParamsEnabled)&&k(t.urlErrorParamsEnabled)&&(lt.urlErrorParamsEnabled=t.urlErrorParamsEnabled)),lt}function ht(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=Q(n,2).map((t=>pt(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}`,ut().urlErrorParamsEnabled)for(l=0,c="?";l<a.length;l++,c="&")o+=`${c}p${l}=${encodeURIComponent(a[l])}`;return new Error(o)}}function pt(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=Z(t,n);if(v(r)){if(e.indexOf(r)>=0)return"...";e.push(r)}return r}))}return t}function dt(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 ft(t,e){return t||e?t?e?(Array.isArray(t)&&(t=t.join(" ")),Array.isArray(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function $t(t){return t.replace(l,"").replace(u,((t,e,n)=>n?e.toUpperCase():e))}function mt(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 gt="ngId",yt=new Proxy(new Map,{get:(t,e,n)=>"size"===e?t.size:"function"==typeof t[e]?function(...n){return t[e].apply(t,n)}:Reflect.get(t,e,n),set:(t,e,n,r)=>Reflect.set(t,e,n,r),deleteProperty:(t,e)=>Reflect.deleteProperty(t,e),has:(t,e)=>Reflect.has(t,e),ownKeys:t=>Reflect.ownKeys(t),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t,e)});let vt=1;const wt=/-([a-z])/g,bt=/_([a-z])/g,Et={mouseleave:"mouseout",mouseenter:"mouseover"},Ct=ht("jqLite"),xt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Ot=/<([\w:-]+)/,St={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};St.tbody=St.tfoot=St.colgroup=St.caption=St.thead,St.th=St.td;const At={};"multiple,selected,checked,disabled,readOnly,required,open".split(",").forEach((t=>{At[$(t)]=t}));const kt={};function _t(t){if(t instanceof _t)return t;let e=!1;if(w(t)&&(t=t.trim(),e=!0),!(this instanceof _t)){if(e&&"<"!==t.charAt(0))throw Ct("nosel","Looking up elements via selectors is not supported by JQLite! See: http://docs.angularjs.org/api/angular.element");return new _t(t)}if(e){Ut(this,function(t){let e=xt.exec(t);if(e)return[document.createElement(e[1])];let n=Mt(t);if(n)return n.childNodes;return[]}(t))}else x(t)?function(t){function e(){window.document.removeEventListener("DOMContentLoaded",e),t()}"complete"===window.document.readyState?window.setTimeout(t):window.document.addEventListener("DOMContentLoaded",e)}(t):Ut(this,t)}function Tt(t,e){return e.toUpperCase()}function Nt(t){return t.replace(wt,Tt)}function jt(t){return t.replace(bt,Tt)}function Rt(t,e){const n=t[gt],r=n&&yt.get(n);r&&(e?delete r.data[e]:r.data={},It(t))}function Vt(t,e=!1){let n=t[gt],r=n&&yt.get(n);return e&&!r&&(t[gt]=n=++vt,r={events:{},data:{},handle:null},yt.set(n,r)),r}function Pt(t){return!/<|&#?\w+;/.test(t)}function Dt(t){switch(t.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_NODE:case void 0:return!0;default:return!1}}function Mt(t){let e,n,r,i,s=document.createDocumentFragment(),o=[];if(Pt(t))o.push(document.createTextNode(t));else{for(e=s.appendChild(document.createElement("div")),n=(Ot.exec(t)||["",""])[1].toLowerCase(),r=St[n]||[],i=r.length;--i>-1;)e.appendChild(window.document.createElement(r[i])),e=e.firstChild;e.innerHTML=t,o=K(o,e.childNodes),e=s.firstChild,e.textContent=""}let a=document.createDocumentFragment();return a.append(...o),a}function Lt(t,e){t&&(!e&&Dt(t)&&Jt([t]),t.querySelectorAll&&Jt(t.querySelectorAll("*")))}function It(t){const e=t[gt],{events:n,data:r}=yt.get(e);r&&Object.keys(r).length||n&&Object.keys(n).length||(yt.delete(e),t[gt]=void 0)}function qt(t,e,n){if(Dt(t)){let r;const i=y(n),s=!i&&e&&!v(e),o=!e,a=Vt(t,!s),c=a&&a.data;if(i)c[Nt(e)]=n;else{if(o)return c;if(s)return c&&c[Nt(e)];for(r in e)c[Nt(r)]=e[r]}}}function Ut(t,e){if(e)if(e.nodeType)t[t.length++]=e;else{const{length:n}=e;if("number"==typeof n&&e.window!==e){if(n)for(let r=0;r<n;r++)t[t.length++]=e[r]}else t[t.length++]=e}}function Ht(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(y(n=qt(t,r[e])))return n;t=t.parentNode||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host}}function Ft(t,e=!1){e||Lt(t);const n=t.parentNode;n&&n.removeChild(t)}function Bt(t,e){const n=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||zt;s>1&&(i=st(i));for(let e=0;e<s;e++)n.isImmediatePropagationStopped()||o(t,n,i[e])};return n.elem=t,n}function zt(t,e,n){n.call(t,e)}function Wt(t,e,n){const r=e.relatedTarget;r&&(r===t||t.contains(r))||n.call(t,e)}function Gt(t){const e=_t(t)[0].cloneNode(!0),n=_t(e).empty(),r=_t("<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 Kt(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 _t(r||t)}function Qt(t,e){const n=At[e.toLowerCase()];return n&&kt[U(t)]&&n}function Jt(t){for(let e=0,n=t.length;e<n;e++){const n=(yt.get(t[e][gt])||{}).events;n&&n.$destroy&&_t(t[e]).triggerHandler("$destroy"),Rt(t[e]),_t.prototype.off.call(_t(t[e]))}}"input,select,option,textarea,button,form,details".split(",").forEach((t=>{kt[t]=!0})),_t.prototype={toString(){const t=[];return j(this,(e=>{t.push(`${e}`)})),`[${t.join(", ")}]`},eq(t){return _t(t>=0?this[t]:this[this.length+t])},length:0},_t.prototype.empty=function(){for(let t=0;t<this.length;t++){const e=this[t];Lt(e,!0),[Node.ELEMENT_NODE,Node.DOCUMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(e.nodeType)&&e.replaceChildren()}return this},_t.prototype.scope=function(){return qt(this[0],"$scope")||Ht(this[0].parentNode||this[0],["$isolateScope","$scope"])},_t.prototype.isolateScope=function(){return qt(this[0],"$isolateScope")||qt(this[0],"$isolateScopeNoTemplate")},_t.prototype.controller=function(t){return function(t,e){return Ht(t,`$${e||"ngController"}Controller`)}(this[0],t)},_t.prototype.injector=function(){return Ht(this[0],"$injector")},_t.prototype.on=function(t,e){for(let n=0;n<this.length;n++){const r=this[n];if(!Dt(r))return;const i=Vt(r,!0);i.handle||(i.handle=Bt(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],Et[t]?(a(Et[t],Wt),a(t,void 0,!0)):a(t)}return this},_t.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];y(e)&&Array.isArray(n)&&F(n,e),y(e)&&n&&n.length>0||(r.removeEventListener(t,o),delete s[t])};j(t.split(" "),(t=>{n(t),Et[t]&&n(Et[t])}))}else for(t in s)"$destroy"!==t&&r.removeEventListener(t,o),delete s[t];It(r)}return this},_t.prototype.removeData=function(t){for(let e=0;e<this.length;e++){Rt(this[e],t)}return this},_t.prototype.inheritedData=function(t,e){for(let n=0;n<this.length;n++){let n=Ht(this[0],t,e);return e?this:n}},_t.prototype.html=function(t){const e=this[0];if(e)return g(t)?e.innerHTML:(Lt(e,!0),e.innerHTML=t,this)},_t.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},_t.prototype.val=function(t){for(let e=0;e<this.length;e++){const n=this[e];if(g(t)){if(n.multiple&&"select"===U(n)){const t=[];return j(n.options,(e=>{e.selected&&t.push(e.value||e.text)})),t}return n.value}return n.value=t,this}},_t.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=At[o];if(v(t))for(let e in t)r.setAttribute(e,a?o:t[e]);else{if(!y(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(y(e)||v(t))return this},_t.prototype.data=function(t,e){let n;const r=this.length;if(g(e)){if(v(t)){for(n=0;n<r;n++)qt(this[n],t);return this}const i=g(e)?Math.min(r,1):r;for(let n=0;n<i;n++){const r=qt(this[n],t,e);e=e?e+r:r}return e}for(n=0;n<r;n++)qt(this[n],t,e);return this},_t.prototype.replaceWith=function(t){let e,n=function(t,e){let n;const r=t.parentNode;Lt(t),j(new _t(e),(e=>{n?r.insertBefore(e,n.nextSibling):r.replaceChild(e,t),n=e}))};for(let r=0;r<this.length;r++)Ut(e,n(this[r],t));return y(e)?e:this},_t.prototype.children=function(){let t;for(let n=0;n<this.length;n++)t=_t((e=this[n],Array.from(e.childNodes).filter((t=>t.nodeType===Node.ELEMENT_NODE))));var e;return y(t)?t:this},_t.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 _t(t);for(let t=0;t<i.length;t++){const e=i[t];n.appendChild(e)}}return this},_t.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;j(new _t(t),(t=>{n.insertBefore(t,e)}))}}return this},_t.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 _t(t);for(let t=0,n=e.length;t<n;t++){const n=e[t];i.insertBefore(n,r.nextSibling),r=n}}}return this},_t.prototype.remove=function(t=!1){for(let e=0;e<this.length;e++){Ft(this[e],t)}return this},_t.prototype.detach=function(){for(let t=0;t<this.length;t++){Ft(this[t],!0)}return this},_t.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]),y(t)&&(t=_t(t))):Ut(t,e(this[n]));return y(t)?t:this},_t.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):[],y(e)&&(e=_t(e))):r.getElementsByTagName&&Ut(e,r.getElementsByTagName(t))}return y(e)?e:this},_t.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=st(l),s=n?[r].concat(n):[r],j(i,(e=>{r.isImmediatePropagationStopped()||e.apply(t,s)})))};for(let i=0,s=this.length;i<s;i++)g(n)?r(this[i],t,e):Ut(n,r(this[i],t,e));return y(n)?n:this};const Zt="$provide",Yt="$injector",Xt="$compileProvider";class te{constructor(t,e,n){ot(w(t),"name required"),ot(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 y(t)?(ot(v(t),"module info value must be an object"),this.infoState=t,this):this.infoState}value(t,e){return this.invokeQueue.push([Zt,"value",[t,e]]),this}constant(t,e){return this.invokeQueue.unshift([Zt,"constant",[t,e]]),this}config(t){return this.configBlocks.push([Yt,"invoke",[t]]),this}run(t){return this.runBlocks.push(t),this}component(t,e){return e&&x(e)&&(e.$$moduleName=t),this.invokeQueue.push([Xt,"component",[t,e]]),this}factory(t,e){return e&&x(e)&&(e.$$moduleName=t),this.invokeQueue.push([Zt,"factory",[t,e]]),this}service(t,e){return e&&x(e)&&(e.$$moduleName=t),this.invokeQueue.push([Zt,"service",[t,e]]),this}provider(t,e){return e&&x(e)&&(e.$$moduleName=t),this.invokeQueue.push([Zt,"provider",[t,e]]),this}decorator(t,e){return e&&x(e)&&(e.$$moduleName=t),this.configBlocks.push([Zt,"decorator",[t,e]]),this}directive(t,e){return e&&x(e)&&(e.$$moduleName=t),this.invokeQueue.push([Xt,"directive",[t,e]]),this}animation(t,e){return e&&x(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$animateProvider","register",[t,e]]),this}filter(t,e){return e&&x(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$filterProvider","register",[t,e]]),this}controller(t,e){return e&&x(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$controllerProvider","register",[t,e]]),this}}const ee=/^([^(]+?)=>/,ne=/^[^(]*\(\s*([^)]*)\)/m,re=/,/,ie=/^\s*(_?)(\S+?)\1\s*$/,se=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,oe=ht(Yt),ae="Provider",ce=!0;class le{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]===ce)throw oe("cdep","Circular dependency found: {0}",`${t} <- ${this.path.join(" <- ")}`);return this.cache[t]}this.path.unshift(t),this.cache[t]=ce;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 oe("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=function(t){const e=pe(t).replace(se,""),n=e.match(ee)||e.match(ne);return n}(t),i[1].split(re).forEach((function(t){t.replace(ie,(function(t,e,n){r.push(n)}))}))}t.$inject=r}}else Array.isArray(t)?(s=t.length-1,ct(t[s],"fn"),r=t.slice(0,s)):ct(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 oe("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(pe(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 ue extends le{constructor(t,e){super(e),this.cache=t}factory(t){throw this.path.push(t),oe("unpr","Unknown provider: {0}",this.path.join(" <- "))}}class he extends le{constructor(t,e){super(t),this.providerInjector=e,this.modules=this.providerInjector.modules}factory(t){const e=this.providerInjector.get(t+ae);return this.invoke(e.$get,e,void 0,t)}has(t){const e=Object.prototype.hasOwnProperty.call(this.providerInjector.cache,t+ae),n=Object.prototype.hasOwnProperty.call(this.cache,t);return e||n}}function pe(t){return Function.prototype.toString.call(t)}const de=/^([^(]+?)=>/,fe=/^[^(]*\(\s*([^)]*)\)/m,$e=/,/,me=/^\s*(_?)(\S+?)\1\s*$/,ge=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,ye=ht(Yt),ve="Provider";function we(t,e=!1){ot(Array.isArray(t),"modules required");const n=new Map,r={$provide:{provider:Ce(c),factory:Ce(l),service:Ce((function(t,e){return l(t,[Yt,t=>t.instantiate(e)])})),value:Ce((function(t,e){return r[t+ve]={$get:()=>e}})),constant:Ce((function(t,e){W(t,"constant"),i.cache[t]=e,s.cache[t]=e})),decorator:function(t,e){const n=i.get(t+ve),r=n.$get;n.$get=function(){const t=o.invoke(r,n);return o.invoke(e,null,{$delegate:t})}}}},i=r.$injector=new ue(r,e),s=new he(e,i);r.$injectorProvider={$get:()=>s};let o=s;const a=u(t);return o=s.get(Yt),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(W(t,"service"),n=x(e)||Array.isArray(e)?i.instantiate(e):e,!n.$get)throw ye("pget","Provider '{0}' must define $get factory method.",t);return r[t+ve]=n,n}function l(t,e){return c(t,{$get:()=>{const n=o.invoke(e,this);if(g(n))throw ye("undef","Provider '{0}' must return a value from $get factory method.",t);return n}})}function u(t){at(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(w(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 x(t)||Array.isArray(t)?e.push(i.invoke(t)):ct(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}`),ye("modulerr","Failed to instantiate module {0} due to:\n{1}",t,e.stack||e.message||e)}}})),e}}function be(t){const e=function(t){return Function.prototype.toString.call(t)}(t).replace(ge,"");return e.match(de)||e.match(fe)}function Ee(t,e,n){let r,i,s;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw ye("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=be(t),i[1].split($e).forEach((function(t){t.replace(me,(function(t,e,n){r.push(n)}))}))}t.$inject=r}}else Array.isArray(t)?(s=t.length-1,ct(t[s],"fn"),r=t.slice(0,s)):ct(t,"fn",!0);return r}function Ce(t){return function(e,n){if(!v(e))return t(e,n);Object.entries(e).forEach((([e,n])=>{t(e,n)}))}}const xe=ht("$controller"),Oe=/^(\S+)(\s+as\s+([\w$]+))?$/;function Se(t,e){if(w(t)){const e=Oe.exec(t);if(e)return e[3]}}function Ae(){const t={};this.has=function(e){return Object.prototype.hasOwnProperty.call(t,e)},this.register=function(e,n){W(e,"controller"),v(e)?V(t,e):t[e]=n},this.$get=["$injector",function(e){return function(r,i,s,o){let a,c,l,u;if(s=!0===s,o&&w(o)&&(u=o),w(r)){if(c=r.match(Oe),!c)throw xe("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);if(l=c[1],u=u||c[3],!(r=Object.prototype.hasOwnProperty.call(t,l)?t[l]:function(t,e,n){if(!e)return t;const r=e.split(".");let i;const s=r.length;for(let e=0;e<s;e++)i=r[e],t&&(t=t[i]);return t}(i.$scope,l)))throw xe("ctrlreg","The controller with the name '{0}' is not registered.",l);ct(r,l,!0)}if(s){const t=(Array.isArray(r)?r[r.length-1]:r).prototype;return a=Object.create(t||null),u&&n(i,u,a,l||r.name),V((()=>{const t=e.invoke(r,a,i,l);return t!==a&&(v(t)||x(t))&&(a=t,u&&n(i,u,a,l||r.name)),a}),{instance:a,identifier:u})}return a=e.instantiate(r,i,l),u&&n(i,u,a,l||r.name),a};function n(t,e,n,r){if(!t||!v(t.$scope))throw ht("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,e);t.$scope[e]=n}}]}const ke={NONE:0,APPLY:1,DIGEST:2},_e=ht("$rootScope"),Te=[],Ne=[],je=[];let Re,Ve,Pe,De,Me=0,Le=null,Ie=null;class qe{constructor(){De=new Ue}$get=["$exceptionHandler","$parse","$browser",function(t,e,n){return Pe=t,Re=e,Ve=n,De}]}class Ue{constructor(){this.$id=f(),this.$$phase=ke.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={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null,this.$$ChildScope=null}$new(t,e){let n;return t?(n=new Ue,n.$root=De):(n=Object.create(this),n.$id=f(),n.$$watchers=[],n.$$nextSibling=null,n.$$childHead=null,n.$$childTail=null,n.$$listeners={},n.$$listenerCount={},n.$$watchersCount=0,n.$$ChildScope=null,n.$$suspended=!1),n.$parent=e||this,n.$$prevSibling=n.$parent.$$childTail,n.$parent.$$childHead?(n.$parent.$$childTail.$$nextSibling=n,n.$parent.$$childTail=n):(n.$parent.$$childHead=n,n.$parent.$$childTail=n),(t||e!==this)&&n.$on("$destroy",(t=>{t.currentScope.$$destroyed=!0})),n}$watch(t,e,n){const r=Re(t),i=x(e)?e:()=>{};if(r.$$watchDelegate)return r.$$watchDelegate(this,i,n,r,t);const s={fn:i,last:He,get:r,exp:t,eq:!!n};return Le=null,0===this.$$watchers.length&&(this.$$digestWatchIndex=-1),this.$$watchers.unshift(s),this.$$digestWatchIndex++,this.incrementWatchersCount(1),()=>{const t=F(this.$$watchers,s);t>=0&&(this.incrementWatchersCount(-1),t<this.$$digestWatchIndex&&this.$$digestWatchIndex--),Le=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 j(t,((t,e)=>{const n=s.$watch(t,(t=>{r[e]=t,o||(o=!0,s.$evalAsync(c))}));i.push(n)})),function(){for(;i.length;)i.shift()()}}$watchCollection(t,e){d.$$pure=Re(t).literal,d.$stateful=!d.$$pure;const n=this;let r,i,s;const o=e.length>1;let a=0;const c=Re(t,d),l=[];let u={},h=!0,p=0;function d(t){let e,n,s,o,c;if(r=t,!g(r)){if(v(r))if(m(r)){i!==l&&(i=l,p=i.length=0,a++),e=r.length,p!==e&&(a++,i.length=p=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={},p=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)):(p++,i[n]=o,a++));if(p>e)for(n in a++,i)Object.hasOwnProperty.call(r,n)||(p--,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(v(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,l=10;const u=Te.length?this.$root:this,h=[];let p,d;this.beginPhase(ke.DIGEST),Ve.$$checkUrlChange(),this===this.$root&&null!==Ie&&(Ve.cancel(Ie),Fe(),Ie=null),Le=null;do{o=!1,c=u;for(let t=0;t<Te.length;t++){try{d=Te[t],r=d.fn,r(d.scope,d.locals)}catch(t){Pe(t)}Le=null}Te.length=0;do{if(s=!c.$$suspended&&c.$$watchers)for(c.$$digestWatchIndex=s.length;c.$$digestWatchIndex--;)try{if(t=s[c.$$digestWatchIndex],t)if(i=t.get,(e=i(c))===(n=t.last)||(t.eq?z(e,n):D(e)&&D(n))){if(t===Le){o=!1;break}}else o=!0,Le=t,t.last=t.eq?structuredClone(e):e,r=t.fn,r(e,n===He?e:n,c),l<5&&(p=4-l,h[p]||(h[p]=[]),h[p].push({msg:x(t.exp)?`fn: ${t.exp.name||t.exp.toString()}`:t.exp,newVal:e,oldVal:n}))}catch(t){Pe(t)}if(!(a=!c.$$suspended&&c.$$watchersCount&&c.$$childHead||c!==u&&c.$$nextSibling))for(;c!==u&&!(a=c.$$nextSibling);)c=c.$parent}while(c=a);if((o||Te.length)&&!l--)throw this.clearPhase(),_e("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",10,h)}while(o||Te.length);for(this.clearPhase();Me<Ne.length;)try{Ne[Me++]()}catch(t){Pe(t)}Ne.length=Me=0,Ve.$$checkUrlChange()}beginPhase(t){if(this.$root.$$phase!==ke.NONE)throw _e("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.$evalAsync=this.$applyAsync=()=>{},this.$on=this.$watch=this.$watchGroup=function(){return()=>{}},this.$$listeners={},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 Re(t)(this,e)}$evalAsync(t,e){let n;return this.$root.$$phase!==ke.NONE||Te.length||(n=Ve.defer((()=>{Te.length&&this.$root.$digest()}),null,"$evalAsync")),Te.push({scope:this,fn:Re(t),locals:e}),n}$$postDigest(t){Ne.push(t)}$apply(t){try{this.beginPhase(ke.APPLY);try{return this.$eval(t)}finally{this.clearPhase()}}catch(t){Pe(t)}finally{this.retry()}}retry(){try{this.$root.$digest()}catch(t){throw Pe(t),t}}clearPhase(){this.$root.$$phase=ke.NONE}$applyAsync(t){const e=this;t&&je.push((()=>e.$eval(t))),null===Ie&&(Ie=Ve.defer(Fe,null,"$applyAsync"))}$on(t,e){let n=this.$$listeners[t];n||(this.$$listeners[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=K([o],[o].concat(e),1);let c,l;do{for(r=i.$$listeners[t]||n,o.currentScope=i,c=0,l=r.length;c<l;c++)if(r[c])try{r[c].apply(null,a)}catch(t){Pe(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=K([s],[s].concat(e),1);let a,c,l;for(;r=i;){for(s.currentScope=r,a=r.$$listeners[t]||[],c=0,l=a.length;c<l;c++)if(a[c])try{a[c].apply(null,o)}catch(t){Pe(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 He(){}function Fe(){for(;je.length;)try{je.shift()()}catch(t){Pe(t)}Ie=null}const Be=window.document.createElement("a"),ze=Ge(window.location.href);let We;function Ge(t){if(!w(t))return t;const e=t;Be.setAttribute("href",e);let{hostname:n}=Be;return!("[::1]"===Be.hostname)&&n.indexOf(":")>-1&&(n=`[${n}]`),{href:Be.href,protocol:Be.protocol?Be.protocol.replace(/:$/,""):"",host:Be.host,search:Be.search?Be.search.replace(/^\?/,""):"",hash:Be.hash?Be.hash.replace(/^#/,""):"",hostname:n,port:Be.port,pathname:"/"===Be.pathname.charAt(0)?Be.pathname:`/${Be.pathname}`}}function Ke(t){return Qe(t,function(){if(window.document.baseURI)return window.document.baseURI;We||(We=window.document.createElement("a"),We.href=".",We=We.cloneNode(!1));return We.href}())}function Qe(t,e){return t=Ge(t),e=Ge(e),t.protocol===e.protocol&&t.host===e.host}Be.href="http://[::1]";const Je=ht("$sce"),Ze={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"};function Ye(t){if("self"===t)return t;if(w(t)){if(t.indexOf("***")>-1)throw Je("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(O(t))return new RegExp(`^${t.source}$`);throw Je("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function Xe(){this.SCE_CONTEXTS=Ze;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 Je("unsafe","Attempting to use an unsafe value in a safe context.")};function s(t,e){return"self"===t?Qe(e,ze)||Ke(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[Ze.HTML]=o(a),c[Ze.CSS]=o(a),c[Ze.MEDIA_URL]=o(a),c[Ze.URL]=o(c[Ze.MEDIA_URL]),c[Ze.JS]=o(a),c[Ze.RESOURCE_URL]=o(c[Ze.URL]),{trustAs:function(t,e){const n=Object.prototype.hasOwnProperty.call(c,t)?c[t]:null;if(!n)throw Je("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 Je("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(x(o.$$unwrapTrustedValue)&&(o=o.$$unwrapTrustedValue()),n===Ze.MEDIA_URL||n===Ze.URL)return r(o.toString(),n===Ze.MEDIA_URL);if(n===Ze.RESOURCE_URL){if(function(n){const r=Ge(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 Je("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",o.toString())}if(n===Ze.HTML)return i();throw Je("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(t){return t instanceof a?t.$$unwrapTrustedValue():t}}}]}function tn(){let t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,n){const r=st(Ze);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 j(Ze,((t,e)=>{const n=$(e);r[jt(`parse_as_${n}`)]=function(e){return i(t,e)},r[jt(`get_trusted_${n}`)]=function(e){return s(t,e)},r[jt(`trust_as_${n}`)]=function(e){return o(t,e)}})),r}]}const en={},nn={blur:!0,focus:!0};function rn(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===ke.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=$t(`ng-${t}`);en[e]=["$parse","$rootScope","$exceptionHandler",(n,r,i)=>rn(n,r,i,e,t,nn[t])]}));let sn=10;const on=ht("$compile"),an=new Object,cn=["ngIf","ngRepeat"];function ln(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 j(t,((t,s)=>{if((t=t.trim())in a)return void(i[s]=a[t]);const o=t.match(r);if(!o)throw on("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",e,s,t,n?"controller bindings definition":"isolate scope definition");i[s]={mode:o[1][0],collection:"*"===o[2],optional:"?"===o[3],attrName:o[4]||s},o[4]&&(a[t]=i[s])})),i}function u(t,e){const n={isolateScope:null,bindToController:null};if(v(t.scope)&&(!0===t.bindToController?(n.bindToController=c(t.scope,e,!0),n.isolateScope={}):n.isolateScope=c(t.scope,e,!1)),v(t.bindToController)&&(n.bindToController=c(t.bindToController,e,!0)),n.bindToController&&!t.controller)throw on("noctrl","Cannot bind to controller without directive '{0}'s controller.",e);return n}this.directive=function e(i,o){return at(i,"name"),W(i,"directive"),w(i)?(!function(t){const e=t.charAt(0);if(!e||e!==$(e))throw on("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw on("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}(i),at(o,"directiveFactory"),Object.prototype.hasOwnProperty.call(n,i)||(n[i]=[],t.factory(i+r,["$injector","$exceptionHandler",function(t,e){const r=[];return j(n[i],((n,o)=>{try{let e=t.invoke(n);x(e)?e={compile:L(e)}:!e.compile&&e.link&&(e.compile=L(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)&&v(e)&&j(e,((t,n)=>{const r=t.match(s);t.substring(r[0].length)||(e[n]=r[0]+n)})),e}(e),e.restrict=function(t,e){if(t&&(!w(t)||!/[EA]/.test(t)))throw on("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,n){if(!w(e))return j(e,(r=J(this,t),function(t,e){r(e,t)})),this;var r;const i=n.controller||function(){};function s(t){function e(e){return x(e)||Array.isArray(e)?function(n,r){return t.invoke(e,this,{$element:n,$attrs:r})}:e}const r=n.template||n.templateUrl?n.template:"",s={controller:i,controllerAs:Se(n.controller)||n.controllerAs||"$ctrl",template:e(r),templateUrl:e(n.templateUrl),transclude:n.transclude,scope:{},bindToController:n.bindings||{},restrict:"E",require:n.require};return j(n,((t,e)=>{"$"===e.charAt(0)&&(s[e]=t)})),s}return j(n,((t,e)=>{"$"===e.charAt(0)&&(s[e]=t,x(i)&&(i[e]=t))})),s.$inject=["$injector"],this.directive(e,s)},this.aHrefSanitizationTrustedUrlList=function(t){return y(t)?(e.aHrefSanitizationTrustedUrlList(t),this):e.aHrefSanitizationTrustedUrlList()},this.imgSrcSanitizationTrustedUrlList=function(t){return y(t)?(e.imgSrcSanitizationTrustedUrlList(t),this):e.imgSrcSanitizationTrustedUrlList()};let p=!1;this.strictComponentBindingsEnabled=function(t){return y(t)?(p=t,this):p};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 on("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){j(e,(e=>{d[e.toLowerCase()]=t}))}t(Ze.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),t(Ze.CSS,["*|style"]),t(Ze.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),t(Ze.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),t(Ze.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,f,m,y,b,E){const O=/^\w/,S=window.document.createElement("div");let _;function R(){try{if(! --sn)throw _=void 0,on("infchng","{0} $onChanges() iterations reached. Aborting!\n",sn);y.$apply((()=>{for(let t=0,e=_.length;t<e;++t)try{_[t]()}catch(t){a(t)}_=void 0}))}finally{sn++}}function P(t,e){if(!t)return t;if(!w(t))throw on("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+=b.getTrustedMediaUrl(T(s[c])),n+=" "+T(s[c+1])}var l=T(s[2*a]).split(/\s/);return n+=b.getTrustedMediaUrl(T(l[0])),2===l.length&&(n+=" "+T(l[1])),n}class D{constructor(t,e){if(e){const t=Object.keys(e);for(let n=0,r=t.length;n<r;n++){const r=t[n];this[r]=e[r]}}else this.$attr={};this.$$element=t}$normalize=$t;$addClass(t){t&&t.length>0&&E.addClass(this.$$element,t)}$removeClass(t){t&&t.length>0&&E.removeClass(this.$$element,t)}$updateClass(t,e){const n=hn(t,e);n&&n.length&&E.addClass(this.$$element,n);const r=hn(e,t);r&&r.length&&E.removeClass(this.$$element,r)}$set(t,e,n,r){const i=Qt(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=N(t,"-")),"img"===this.$$element[0].nodeName.toLowerCase()&&"srcset"===t&&(this[t]=e=P(e,"$set('srcset', value)")),!1!==n&&(null===e||g(e)?this.$$element[0].removeAttribute(r):O.test(r)?i&&!1===e?this.$$element[0].removeAttribute(r):this.$$element.attr(r,e):function(t,e,n){S.innerHTML=`<span ${e}>`;const{attributes:r}=S.firstChild,i=r[0];r.removeNamedItem(i.name),i.value=n,t.attributes.setNamedItem(i)}(this.$$element[0],r,e));const{$$observers:c}=this;c&&j(c[o],(t=>{try{t(e)}catch(t){a(t)}}))}$observe(t,e){const n=this.$$observers||(this.$$observers=Object.create(null)),r=n[t]||(n[t]=[]);return r.push(e),y.$evalAsync((()=>{r.$$inter||!Object.prototype.hasOwnProperty.call(this,t)||g(this[t])||e(this[t])})),function(){F(r,e)}}}const L=e.startSymbol(),I=e.endSymbol(),q="{{"===L&&"}}"===I?t=>t:function(t){return t.replace(/\{\{/g,L).replace(/}}/g,I)},H=/^ng(Attr|Prop|On)([A-Z].*)$/,W=/^(.+)Start$/;return G;function G(t,e,n,r,i){t instanceof _t||(t=_t(t));let s=K(t,e,t,n,r,i),o=null;return function(e,n,r){if(!t)throw on("multilink","This element has already been linked.");at(e,"scope"),i&&i.needsNewScope&&(e=e.$parent.$new()),r=r||{};let a,{transcludeControllers:c,parentBoundTranscludeFn:l,futureParentElement:u}=r;if(l&&l.$$boundTransclude&&(l=l.$$boundTransclude),o||(o=function(t){const e=t&&t[0];if(!e)return"html";return"foreignobject"!==U(e)&&toString.call(e).match(/SVG/)?"svg":"html"}(u)),a="html"!==o?_t(pt(o,_t("<div></div>").append(t).html())):n?_t(Array.from(t).map((t=>t.cloneNode(!0)))):t,c)for(const t in c)a.data(`$${t}Controller`,c[t].instance);return n&&n(a,e),s&&s(e,a,a,l),n||(t=s=null),a}}function K(t,e,n,r,i,s){const o=[];let a,c;var l;let u,h,p,d;for(let f=0;f<t.length;f++)a=new D,c=Y(t[f],[],a,0===f?r:void 0,i),h=(l=c.length?nt(c,t[f],a,e,n,null,[],[],s):null)&&l.terminal||!(u=t[f].childNodes)||!u.length?null:K(u,l?(l.transcludeOnThisElement||!l.templateOnThisElement)&&l.transclude:e),(l||h)&&(o.push(f,l,h),p=!0,d=d||l),s=null;return p?function(t,n,r,i){let s,a,c,l,u,h,p,f,$;if(d)for($=new Array(n.length),u=0;u<o.length;u+=3)p=o[u],$[p]=n[p];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,f=s.transcludeOnThisElement?Z(t,s.transclude,i):!s.templateOnThisElement&&i?i:!i&&e?Z(t,e):null,s(a,l,c,r,f)):a&&a(t,c.childNodes,void 0,i)}:null}function Z(t,e,n){function r(r,i,s,o,a){return r||((r=t.$new(!1,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]=Z(t,e.$$slots[r],n):i[r]=null;return r}function Y(t,n,r,i,s){const{nodeType:o}=t,a=r.$attr;let c;switch(o){case Node.ELEMENT_NODE:c=t.nodeName.toLowerCase(),st(n,$t(c),"E",i,s);for(var u,h,p,d,f,$=t.attributes,m=0,g=$&&$.length;m<g;m++){let e,o=!1,c=!1,g=!1,y=!1,v=!1;h=(u=$[m]).name,d=u.value,(f=(p=$t(h.toLowerCase())).match(H))?(g="Attr"===f[1],y="Prop"===f[1],v="On"===f[1],h=h.replace(l,"").toLowerCase().substr(4+f[1].length).replace(/_(.)/g,((t,e)=>e.toUpperCase()))):(e=p.match(W))&&ot(e[1])&&(o=h,c=`${h.substr(0,h.length-5)}end`,h=h.substr(0,h.length-6)),y||v?(r[p]=d,a[p]=u.name,y?ft(t,n,p,h):mt(n,p,h)):(a[p=$t(h.toLowerCase())]=h,!g&&Object.prototype.hasOwnProperty.call(r,p)||(r[p]=d,Qt(t,p)&&(r[p]=!0)),vt(t,n,d,p,g),st(n,p,"A",i,s,o,c))}"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:function(){return function(t,e){t.$watch(r,(t=>{e[0].nodeValue=t}))}}})}(n,t.nodeValue)}return n.sort(ut),n}function X(t,e,n){const r=[];let i=0;if(e&&t.hasAttribute&&t.hasAttribute(e))do{if(!t)throw on("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",e,n);t.nodeType===Node.ELEMENT_NODE&&(t.hasAttribute(e)&&i++,t.hasAttribute(n)&&i--),r.push(t),t=t.nextSibling}while(i>0);else r.push(t);return _t(r)}function tt(t,e,n){return function(r,i,s,o,a){return i=X(i[0],e,n),t(r,i,s,o,a)}}function et(t,e,n,r,i,s){let o;return t?G(e,n,r,i,s):function(){return o||(o=G(e,n,r,i,s),e=n=s=null),o.apply(this,arguments)}}function nt(t,e,n,r,i,s,o,c,l){l=l||{};let u,h,p,d,f,$=-Number.MAX_VALUE,{newScopeDirective:y}=l,{controllerDirectives:w}=l,{newIsolateScopeDirective:b}=l,{templateDirective:E}=l,{nonTlbTranscludeDirective:C}=l,O=!1,S=!1,{hasElementTranscludeDirective:k}=l,_=n.$$element=_t(e),N=s,R=r,P=!1,M=!1;for(let s=0,l=t.length;s<l;s++){u=t[s];const m=u.$$start,g=u.$$end;if(m&&(_=X(e,m,g)),p=void 0,$>u.priority)break;if(f=u.scope,f&&(u.templateUrl||(v(f)?(ht("new/isolated scope",b||y,u,_),b=u):ht("new/isolated scope",b,u,_)),y=y||u),h=u.name,!P&&(u.replace&&(u.templateUrl||u.template)||u.transclude&&!cn.includes(u.name))){let e;for(let n=s+1;e=t[n++];)if(e.transclude&&!cn.includes(e.name)||e.replace&&(e.templateUrl||e.template)){M=!0;break}P=!0}if(!u.templateUrl&&u.controller&&(w=w||Object.create(null),ht(`'${h}' controller`,w[h],u,_),w[h]=u),f=u.transclude,f)if(O=!0,cn.includes(u.name)||(ht("transclusion",C,u,_),C=u),"element"===f)k=!0,$=u.priority,p=_,_=n.$$element=_t(document.createComment("")),e=_[0],wt(i,Q(p),e),R=et(M,p,r,$,N&&N.name,{nonTlbTranscludeDirective:C});else{const t=Object.create(null);if(v(f)){p=window.document.createDocumentFragment();const e=Object.create(null),n=Object.create(null);j(f,((r,i)=>{const s="?"===r.charAt(0);r=s?r.substring(1):r,e[r]=i,t[i]=null,n[i]=s})),j(_t(_[0].childNodes),(r=>{const i=e[$t(U(r))];i?(n[i]=!0,t[i]=t[i]||window.document.createDocumentFragment(),t[i].appendChild(r)):p.appendChild(r)})),j(n,((t,e)=>{if(!t)throw on("reqslot","Required transclusion slot `{0}` was not filled.",e)}));for(const e in t)if(t[e]){const n=_t(t[e].childNodes);t[e]=et(M,n,r)}p=_t(p.childNodes)}else p=e.cloneNode(!0).childNodes;_.empty(),R=et(M,p,r,void 0,void 0,{needsNewScope:u.$$isolateScope||u.$$newScope}),R.$$slots=t}if(u.template)if(S=!0,ht("template",E,u,_),E=u,f=x(u.template)?u.template(_,n):u.template,f=q(f),u.replace){if(N=u,p=Pt(f)?[]:pn(pt(u.templateNamespace,T(f))),e=p[0],1!==p.length||e.nodeType!==Node.ELEMENT_NODE)throw on("tplrt","Template for directive '{0}' must have exactly one root element. {1}",h,"");wt(i,_,e);const r={$attr:{}},o=Y(e,[],r),a=t.splice(s+1,t.length-(s+1));(b||y)&&it(o,b,y),t=t.concat(o).concat(a),ct(n,r),l=t.length}else _.html(f);if(u.templateUrl)S=!0,ht("template",E,u,_),E=u,u.replace&&(N=u),I=lt(t.splice(s,t.length-s),_,n,i,O&&R,o,c,{controllerDirectives:w,newScopeDirective:y!==u&&y,newIsolateScopeDirective:b,templateDirective:E,nonTlbTranscludeDirective:C}),l=t.length;else if(u.compile)try{d=u.compile(_,n,R);const t=u.$$originalDirective||u;x(d)?L(null,J(t,d),m,g):d&&L(J(t,d.pre),J(t,d.post),m,g)}catch(t){a(t,Gt(_))}u.terminal&&(I.terminal=!0,$=Math.max($,u.priority))}return I.scope=y&&!0===y.scope,I.transcludeOnThisElement=O,I.templateOnThisElement=S,I.transclude=R,l.hasElementTranscludeDirective=k,I;function L(t,e,n,r){t&&(n&&(t=tt(t,n,r)),t.require=u.require,t.directiveName=h,(b===u||u.$$isolateScope)&&(t=bt(t,{isolateScope:!0})),o.push(t)),e&&(n&&(e=tt(e,n,r)),e.require=u.require,e.directiveName=h,(b===u||u.$$isolateScope)&&(e=bt(e,{isolateScope:!0})),c.push(e))}function I(t,r,i,s,l){let u,h,p,d,f,$,E,C,O,S;e===i?(O=n,C=n.$$element):(C=_t(i),O=new D(C,n)),f=r,b?d=r.$new(!0):y&&(f=r.$parent),l&&(E=function(t,e,n,r){let i;A(t)||(r=n,n=e,e=t,t=void 0);k&&(i=$);n||(n=k?C.parent():C);if(!r)return l(t,e,i,n,_);{const s=l.$$slots[r];if(s)return s(t,e,i,n,_);if(g(s))throw on("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,Gt(C))}},E.$$boundTransclude=l,E.isSlotFilled=function(t){return!!l.$$slots[t]}),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 p=m(h,u,!0,l.controllerAs);a[l.name]=p,t.data(`$${l.name}Controller`,p.instance)}return a}(C,O,E,w,d,r,b)),b&&(d.$$isolateBindings=b.$$isolateBindings,S=xt(r,O,d,d.$$isolateBindings,b),S.removeWatches&&d.$on("$destroy",S.removeWatches));for(const t in $){const e=w[t],n=$[t],r=e.$$bindings.bindToController;n.instance=n(),C.data(`$${e.name}Controller`,n.instance),n.bindingInfo=xt(f,O,n.instance,r,e)}for(j(w,((t,e)=>{const{require:n}=t;t.bindToController&&!Array.isArray(n)&&v(n)&&V($[e].instance,rt(e,n,C,$))})),j($,(t=>{const e=t.instance;if(x(e.$onChanges))try{e.$onChanges(t.bindingInfo.initialChanges)}catch(t){a(t)}if(x(e.$onInit))try{e.$onInit()}catch(t){a(t)}x(e.$doCheck)&&(f.$watch((()=>{e.$doCheck()})),e.$doCheck()),x(e.$onDestroy)&&f.$on("$destroy",(()=>{e.$onDestroy()}))})),u=0,h=o.length;u<h;u++)p=o[u],Et(p,p.isolateScope?d:r,C,O,p.require&&rt(p.directiveName,p.require,C,$),E);var _=r;for(b&&(b.template||null===b.templateUrl)&&(_=d),t&&t(_,i.childNodes,void 0,l),u=c.length-1;u>=0;u--)p=c[u],Et(p,p.isolateScope?d:r,C,O,p.require&&rt(p.directiveName,p.require,C,$),E);j($,(t=>{const e=t.instance;x(e.$postLink)&&e.$postLink()}))}}function rt(t,e,n,r){let i;if(w(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 on("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]=rt(t,e[s],n,r)}else v(e)&&(i={},j(e,((e,s)=>{i[s]=rt(t,e,n,r)})));return i||null}function it(t,e,n){for(let r=0,i=t.length;r<i;r++)t[r]=M(t[r],{$$isolateScope:e,$$newScope:n})}function st(e,i,s,o,a,c,l){if(i===a)return null;let h=null;if(Object.prototype.hasOwnProperty.call(n,i))for(let n,a=t.get(i+r),p=0,d=a.length;p<d;p++)if(n=a[p],(g(o)||o>n.priority)&&-1!==n.restrict.indexOf(s)){if(c&&(n=M(n,{$$start:c,$$end:l})),!n.$$bindings){const t=n.$$bindings=u(n,n.name);v(t.isolateScope)&&(n.$$isolateBindings=t.isolateScope)}e.push(n),h=n}return h}function ot(e){if(Object.prototype.hasOwnProperty.call(n,e))for(let n,i=t.get(e+r),s=0,o=i.length;s<o;s++)if(n=i[s],n.multiElement)return!0;return!1}function ct(t,e){const n=e.$attr,r=t.$attr;j(t,((r,i)=>{"$"!==i.charAt(0)&&(e[i]&&e[i]!==r&&(r.length?r+=("style"===i?";":" ")+e[i]:r=e[i]),t.$set(i,r,!0,n[i]))})),j(e,((e,i)=>{Object.prototype.hasOwnProperty.call(t,i)||"$"===i.charAt(0)||(t[i]=e,"class"!==i&&"style"!==i&&(r[i]=n[i]))}))}function lt(t,e,n,r,i,s,o,l){let u,h,p=[];const d=e[0],f=t.shift(),$=M(f,{templateUrl:null,transclude:null,replace:null,$$originalDirective:f}),m=x(f.templateUrl)?f.templateUrl(e,n):f.templateUrl,{templateNamespace:g}=f;return e.empty(),c(m).then((a=>{let c,y,w,b;if(a=q(a),f.replace){if(w=Pt(a)?[]:pn(pt(g,T(a))),c=w[0],1!==w.length||c.nodeType!==Node.ELEMENT_NODE)throw on("tplrt","Template for directive '{0}' must have exactly one root element. {1}",f.name,m);y={$attr:{}},wt(r,e,c);const i=Y(c,[],y);v(f.scope)&&it(i,!0),t=i.concat(t),ct(n,y)}else c=d,e.html(a);for(t.unshift($),u=nt(t,c,n,i,e,f,s,o,l),j(r,((t,n)=>{t===c&&(r[n]=e[0])})),h=K(e[0].childNodes,i);p.length;){const t=p.shift(),n=p.shift(),i=p.shift(),s=p.shift();let o=e[0];if(!t.$$destroyed){if(n!==d){const t=n.className;l.hasElementTranscludeDirective&&f.replace||(o=c.cloneNode(!0)),wt(i,_t(n),o);try{""!==t&&o.classList.add(t)}catch(t){}}b=u.transcludeOnThisElement?Z(t,u.transclude,s):s,u(h,t,o,r,b)}}p=null})).catch((t=>{C(t)&&a(t)})),function(t,e,n,r,i){let s=i;e.$$destroyed||(p?p.push(e,n,r,s):(u.transcludeOnThisElement&&(s=Z(e,u.transclude,i)),u(h,e,n,r,s)))}}function ut(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 ht(t,e,n,r){function i(t){return t?` (module: ${t})`:""}if(e)throw on("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",e.name,i(e.$$moduleName),n.name,i(n.$$moduleName),t,Gt(r))}function pt(t,e){switch(t=$(t||"html")){case"svg":case"math":var n=window.document.createElement("div");return n.innerHTML=`<${t}>${e}</${t}>`,n.childNodes[0].childNodes;default:return e}}function dt(t){return P(b.valueOf(t),"ng-prop-srcset")}function ft(t,e,n,r){if(o.test(r))throw on("nodomevents","Property bindings for HTML DOM event properties are disallowed");const i=U(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=b.getTrusted.bind(b,s)):a=dt,e.push({priority:100,compile:function(t,e){const i=f(e[n]),s=f(e[n],(t=>b.valueOf(t)));return{pre:function(t,e){function n(){const n=i(t);e[0][r]=a(n)}n(),t.$watch(s,n)}}}})}function mt(t,e,n){t.push(rn(f,y,a,e,n,!1))}function vt(t,n,r,s,a){const c=U(t),l=function(t,e){return"srcdoc"===e?b.HTML:"src"===e||"ngSrc"===e?-1===["img","video","audio","source","track"].indexOf(t)?b.RESOURCE_URL:b.MEDIA_URL:"xlinkHref"===e?"image"===t?b.MEDIA_URL:"a"===t?b.URL:b.RESOURCE_URL:"form"===t&&"action"===e||"base"===t&&"href"===e||"link"===t&&"href"===e?b.RESOURCE_URL:"a"!==t||"href"!==e&&"ngHref"!==e?void 0:b.URL}(c,s),u=i[s]||a;let h=e(r,!a,l,u);if(h){if("multiple"===s&&"select"===c)throw on("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",Gt(t.outerHTML));if(o.test(s))throw on("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 wt(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,t.context===r&&(t.context=n);break}s&&s.replaceChild(n,r);const c=window.document.createDocumentFragment();for(o=0;o<i;o++)c.appendChild(e[o]);for(yt.has(r[gt])&&(qt(n,qt(r)),_t(r).off("$destroy")),Jt(c.querySelectorAll("*")),o=1;o<i;o++)delete e[o];e[0]=n,e.length=1}function bt(t,e){return V((function(){return t.apply(null,arguments)}),t,e)}function Et(t,e,n,r,i,s){try{t(e,n,r,i,s)}catch(t){console.error(t),a(t,Gt(n))}}function Ct(t,e){if(p)throw on("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",t,e)}function xt(t,n,r,i,s){const o=[],a={};let c;function l(e,n,i){x(r.$onChanges)&&!B(n,i)&&(_||(t.$$postDigest(R),_=[]),c||(c={},_.push(u)),c[e]&&(i=c[e].previousValue),c[e]=new un(i,n))}function u(){r.$onChanges(c),c=void 0}return j(i,((i,c)=>{const{attrName:u}=i,{optional:h}=i,{mode:p}=i;let d,$,m,g,y;switch(p){case"@":h||hasOwnProperty.call(n,u)||(Ct(u,s.name),r[c]=n[u]=void 0),y=n.$observe(u,(t=>{if(w(t)||k(t)){const e=r[c];l(c,t,e),r[c]=t}})),n.$$observers[u].$$scope=t,d=n[u],w(d)?r[c]=e(d)(t):k(d)&&(r[c]=d),a[c]=new un(an,r[c]),o.push(y);break;case"=":if(!Object.hasOwnProperty.call(n,u)){if(h)break;Ct(u,s.name),n[u]=void 0}if(h&&!n[u])break;$=f(n[u]),g=$.literal?z:B,m=$.assign||function(){throw d=r[c]=$(t),on("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",n[u],u,s.name)},d=r[c]=$(t);var v=function(e){return g(e,r[c])||(g(e,d)?m(t,e=r[c]):r[c]=e),d=e,d};v.$stateful=!0,y=i.collection?t.$watchCollection(n[u],v):t.$watch(f(n[u],v),null,$.literal),o.push(y);break;case"<":if(!Object.hasOwnProperty.call(n,u)){if(h)break;Ct(u,s.name),n[u]=void 0}if(h&&!n[u])break;$=f(n[u]);var b=$.literal,E=r[c]=$(t);a[c]=new un(an,r[c]),y=t[i.collection?"$watchCollection":"$watch"]($,((t,e)=>{if(e===t){if(e===E||b&&z(e,E))return;e=E}l(c,t,e),r[c]=t})),o.push(y);break;case"&":if(h||Object.hasOwnProperty.call(n,u)||Ct(u,s.name),$=Object.prototype.hasOwnProperty.call(n,u)?f(n[u]):()=>{},$.toString()===(()=>{}).toString()&&h)break;r[c]=function(e){return $(t,e)}}})),{initialChanges:a,removeWatches:o.length&&function(){for(let t=0,e=o.length;t<e;++t)o[t]()}}}}]}ln.$inject=["$provide","$$sanitizeUriProvider"];class un{constructor(t,e){this.previousValue=t,this.currentValue=e}isFirstChange(){return this.previousValue===an}}function hn(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 pn(t){let e=(t=_t(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 dn={$addControl:()=>{},$getControls:L([]),$$renameControl:function(t,e){t.$name=e},$removeControl:()=>{},$setValidity:()=>{},$setDirty:()=>{},$setPristine:()=>{},$setSubmitted:()=>{},$$setSubmitted:()=>{}},fn="ng-pending",$n="ng-submitted";function mn(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=dn,this.$$element=t,this.$$animate=r,wn(this)}mn.$inject=["$element","$attrs","$scope","$animate","$interpolate"],mn.prototype={$rollbackViewValue(){this.$$controls.forEach((t=>{t.$rollbackViewValue()}))},$commitViewValue(){this.$$controls.forEach((t=>{t.$commitViewValue()}))},$addControl(t){W(t.$name,"input"),this.$$controls.push(t),t.$name&&(this[t.$name]=t),t.$$parentForm=this},$getControls(){return st(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],j(this.$pending,(function(e,n){this.$setValidity(n,null,t)}),this),j(this.$error,(function(e,n){this.$setValidity(n,null,t)}),this),j(this.$$success,(function(e,n){this.$setValidity(n,null,t)}),this),F(this.$$controls,t),t.$$parentForm=dn},$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} ${$n}`),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!==dn;)t=t.$$parentForm;t.$$setSubmitted()},$$setSubmitted(){this.$$animate.addClass(this.$$element,$n),this.$submitted=!0,this.$$controls.forEach((t=>{t.$$setSubmitted&&t.$$setSubmitted()}))}},bn({clazz:mn,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&&(F(r,n),0===r.length&&delete t[e])}});const gn=function(t){return["$timeout","$parse",function(n,i){return{name:"form",restrict:t?"EA":"E",require:["form","^^?form"],controller:mn,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,dn)}))}}}};function s(t){return""===t?i('this[""]').assign:i(t).assign||(()=>{})}}]},yn=gn(),vn=gn(!0);function wn(t){t.$$classCache={},t.$$classCache[n]=!(t.$$classCache[e]=t.$$element[0].classList.contains(e))}function bn(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?`-${N(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,fn,!0),this.$valid=this.$invalid=void 0,a(this,"",null)):(o(this,fn,!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)}}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 xn{static $inject=["$attrs","$scope"];constructor(t,e){this.$$attrs=t,this.$$scope=e,this.parentCtrl}$onInit(){const t=this.parentCtrl?this.parentCtrl.$options:Sn,e=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=t.createChild(e)}}class On{constructor(t){this.$$options=t}getOption(t){return this.$$options[t]}createChild(t){let e=!1;return j(t=Object.assign({},t),(function(n,r){"$inherit"===n?"*"===r?e=!0:(t[r]=this.$$options[r],"updateOn"===r&&(t.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===r&&(t.updateOnDefault=!1,t[r]=T(n.replace(Cn,(()=>(t.updateOnDefault=!0," ")))))}),this),e&&(delete t["*"],kn(t,this.$$options)),kn(t,Sn.$$options),new On(t)}}const Sn=new On({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1}),An=function(){return{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:xn}};function kn(t,e){Object.keys(e).forEach((n=>{y(t[n])||(t[n]=e[n])}))}const _n=ht("ngModel");function Tn(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=dn,this.$options=Sn,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,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}))}Tn.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"],Tn.prototype={$$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 x(n)&&(n=t(e)),n},this.$$ngModelSet=function(t,n){x(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,Gt(this.$$element))},$render:()=>{},$isEmpty:t=>g(t)||""===t||null===t||t!=t,$$updateEmptyClasses(t){this.$isEmpty(t)?mt(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)):mt(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,mt(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,mt(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,mt(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,mt(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(D(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||(j(i.$validators,((t,e)=>{s(e,null)})),j(i.$asyncValidators,((t,e)=>{s(e,null)}))),s(t,i.$$parserValid),i.$$parserValid;s(t,null);return!0}()?o(!1):function(){let n=!0;if(j(i.$validators,((r,i)=>{const o=Boolean(r(t,e));n=n&&o,s(i,o)})),!n)return j(i.$asyncValidators,((t,e)=>{s(e,null)})),!1;return!0}()?function(){const n=[];let r=!0;j(i.$asyncValidators,((i,o)=>{const a=i(t,e);if(!_(a))throw _n("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);s(o,void 0),n.push(a.then((()=>{s(o,!0)}),(()=>{r=!1,s(o,!1)})))})),n.length?i.$$q.all(n).then((()=>{o(r)}),(()=>{})):o(!0)}():o(!1)},$commitViewValue(){const t=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==t||""===t&&this.$$hasNativeValidators)&&(void 0===this.$$lastCommittedViewValue&&Number.isNaN(t)||(this.$$updateEmptyClasses(t),this.$$lastCommittedViewValue=t,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}D(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),j(this.$viewChangeListeners,(function(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");b(e[t])?e=e[t]:b(e.default)&&-1===this.$options.getOption("updateOn").indexOf(t)?e=e.default:b(e["*"])&&(e=e["*"]),this.$$timeout.cancel(this.$$pendingDebounce);const n=this;e>0?this.$$pendingDebounce=this.$$timeout((()=>{n.$commitViewValue()}),e):this.$$rootScope.$$phase!==ke.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)}},bn({clazz:Tn,set(t,e){t[e]=!0},unset(t,e){delete t[e]}});const Nn=["$rootScope",t=>({restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Tn,priority:1,compile:function(n){return n[0].classList.add(r,s,e),{pre:function(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:function(e,n,r,i){const s=i[0];function o(){s.$setTouched()}s.$$setUpdateOnEvents(),n.on("blur",(()=>{s.$touched||(t.$$phase!==ke.NONE?e.$evalAsync(o):e.$apply(o))}))}}}})],jn=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Rn=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Vn=/^(?=.{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)$/,qn=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Un="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:Qn("date",Dn,Gn(Dn,["yyyy","MM","dd"])),"datetime-local":Qn("datetimelocal",Mn,Gn(Mn,["yyyy","MM","dd","HH","mm","ss","sss"])),time:Qn("time",qn,Gn(qn,["HH","mm","ss","sss"])),week:Qn("week",Ln,(function(t,e){if(E(t))return t;if(w(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:Qn("month",In,Gn(In,["yyyy","MM"])),number:function(t,e,n,r,i,s,o){let a;if(Jn(t,e,n,r,"number"),Zn(r),Wn(t,e,n,r,i),y(n.min)||n.ngMin){let e=n.min||o(n.ngMin)(t);a=Yn(e),r.$validators.min=function(t,e){return r.$isEmpty(e)||g(a)||e>=a},n.$observe("min",(t=>{t!==e&&(a=Yn(t),e=t,r.$validate())}))}if(y(n.max)||n.ngMax){let e=n.max||o(n.ngMax)(t),i=Yn(e);r.$validators.max=function(t,e){return r.$isEmpty(e)||g(i)||e<=i},n.$observe("max",(t=>{t!==e&&(i=Yn(t),e=t,r.$validate())}))}if(y(n.step)||n.ngStep){let e=n.step||o(n.ngStep)(t),i=Yn(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=Yn(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)||Rn.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)||Vn.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"),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=y(n.min),h=y(n.max),p=y(n.step),d=r.$render;r.$render=s&&y(l.rangeUnderflow)&&y(l.rangeOverflow)?function(){d(),r.$setViewValue(e.val())}:d,u&&(o=Yn(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=Yn(t),D(r.$modelValue))return;if(s){let t=e.val();o>t&&(t=o,e.val(t)),r.$setViewValue(t)}else r.$validate()})));h&&(a=Yn(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=Yn(t),D(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()})));p&&(c=Yn(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=Yn(t),D(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=>z(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);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[Un],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(w(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),jn.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},j(i,((t,n)=>{n<e.length&&(s[e[n]]=+t)}));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 Qn(t,e,n){return function(r,i,s,o,a,c,l){if(Jn(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:p(n,undefined):void(o.$$parserName=t))),o.$formatters.push((function(e){if(e&&!w(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})),y(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(y(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 y(t)&&!E(t)?p(t)||void 0:t}function p(t,e){const r=o.$options.getOption("timezone");let i=n(t,e);return!Number.isNaN(i)&&r&&(i=X(i,r)),i}}}function Jn(t,e,n,r,i){const s=e[0];(r.$$hasNativeValidators=v(s.validity))&&r.$parsers.push((t=>{const n=e[0][Un]||{};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(!b(e))throw _n("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e}))}function Yn(t){return y(t)&&!b(t)&&(t=parseFloat(t)),D(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(y(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=y(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)}))}}}const ar=["$templateCache",t=>({restrict:"E",terminal:!0,compile(e,n){if("text/ng-template"===n.type){const r=n.id,{text:i}=e[0];t.put(r,i)}}})];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=_t(window.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`? ${dt(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(_t(r),!1),n.hasOption(e)){n.removeUnknownOption();const r=dt(e);t.val(r in n.selectValueMap?r:e);cr(_t(t[0].options[t[0].selectedIndex]),!0)}else n.selectUnknownOrEmptyOption(e)},n.addOption=function(t,e){if(e[0].nodeType===Node.COMMENT_NODE)return;W(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;y(l)&&(n.removeOption(c),delete n.selectValueMap[l],r=!0),l=dt(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;y(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&&(H(t,e.value)||H(t,i.selectValueMap[e.value]));n!==e.selected&&cr(_t(e),n)}))};let r=NaN;t.$watch((()=>{r!==s.$viewValue||z(n,s.$viewValue)||(n=st(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 y(n.ngValue)||(y(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 pr(){return{restrict:"EA",link:(t,e,n)=>{t.$watch(n.ngBind,(t=>{e[0].textContent=G(t)}))}}}function dr(){return{restrict:"EA",link:(t,e,n)=>{n.$observe("ngBindTemplate",(t=>{e[0].textContent=g(t)?"":t}))}}}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"),p=!0;function d(t,e){const n=[];return j(t,(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=d(i(n=u),1),l.$addClass(n)):function(t){t=d(i(t),-1),l.$removeClass(t)}(u);var n;p=t}))),a.$watch(o(l[t],s),(function(t){p===e&&function(t,e){const n=i(t),s=i(e),o=r(n,s),a=r(s,n),c=d(o,-1),u=d(a,1);l.$addClass(u),l.$removeClass(c)}(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(" "):v(t)?e=Object.keys(t).filter((e=>t[e])).join(" "):w(t)||(e=`${t}`),e}}const mr=$r("",!0),gr=$r("Odd",0),yr=$r("Even",1);function vr(){return{restrict:"EA",compile(t,e){e.$set("ngCloak",void 0),t[0].classList.remove("ng-cloak")}}}const wr=[()=>({restrict:"A",scope:!0,controller:"@",priority:500})],br="ng-hide",Er="ng-hide-animate";function Cr(t){return{restrict:"A",multiElement:!0,link(e,n,r){e.$watch(r.ngShow,(e=>{t[e?"removeClass":"addClass"](n,br,{tempClasses:Er})}))}}}function xr(t){return{restrict:"A",multiElement:!0,link(e,n,r){e.$watch(r.ngHide,(e=>{t[e?"addClass":"removeClass"](n,br,{tempClasses:Er})}))}}}Cr.$inject=["$animate"],xr.$inject=["$animate"];const Or=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}),Sr="-add",Ar="-remove",kr="ng-",_r="-active",Tr="-prepare",Nr="ng-animate",jr="$$ngAnimateChildren";let Rr,Vr,Pr,Dr;void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend?(Rr="WebkitTransition",Vr="webkitTransitionEnd transitionend"):(Rr="transition",Vr="transitionend"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend?(Pr="WebkitAnimation",Dr="webkitAnimationEnd animationend"):(Pr="animation",Dr="animationend");const Mr="Duration",Lr=Or.Property,Ir="Delay",qr="TimingFunction",Ur="PlayState",Hr=9999,Fr=Pr+Ir,Br=Pr+Mr,zr=Rr+Ir,Wr=Rr+Mr,Gr=ht("ng");function Kr(t,e,n){if(!t)throw Gr("areq","Argument '{0}' is {1}",e||"?",n);return t}function Qr(t,e,n){let r="";return(t=Array.isArray(t)?t:t&&w(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 _t)switch(t.length){case 0:return t;case 1:if(t[0].nodeType===Node.ELEMENT_NODE)return t;break;default:return _t(Zr(t))}if(t.nodeType===Node.ELEMENT_NODE)return _t(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 Yr(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),j(e,((t,e)=>{s[e]=r})),n=a(n),j(n,((t,e)=>{s[e]=s[e]===r?null:i}));const o={addClass:"",removeClass:""};function a(t){w(t)&&(t=t.split(" "));const e={};return j(t,(t=>{t.length&&(e[t]=!0)})),e}return j(s,(function(e,n){var s,a;e===r?(s="addClass",a=!t[n]||t[n+Ar]):e===i&&(s="removeClass",a=t[n]||t[n+Sr]),a&&(o[s].length&&(o[s]+=" "),o[s]+=n)})),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 _t?t[0]:t}function ii(t,e){const n=e?"paused":"",r=Pr+Ur;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}function ai(t,e){for(const n in e)t.style[n]=e[n]}const ci=ht("$animate");function li(t,e){return t||e?t?e?(Array.isArray(t)&&(t=t.join(" ")),Array.isArray(e)&&(e=e.join(" ")),`${t} ${e}`):t:e:""}function ui(t){return v(t)?t:{}}function hi(){const t=new Map,e=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){return{enabled:()=>{},on:()=>{},off:()=>{},pin:()=>{},push(o,a,c,l){l&&l(),(c=c||{}).from&&ai(o[0],c.from),c.to&&ai(o[0],c.to),(c.addClass||c.removeClass)&&function(n,o,a){const c=t.get(n)||{},l=i(c,o,!0),u=i(c,a,!1);(l||u)&&(t.set(n,c),e.push(n),1===e.length&&r.$$postDigest(s))}(o,c.addClass,c.removeClass);const u=new n;return u.complete(),u}};function i(t,e,n){let r=!1;return e&&j(e=w(e)?e.split(" "):Array.isArray(e)?e:[],(e=>{e&&(r=!0,t[e]=n)})),r}function s(){j(e,(function(e){const n=t.get(e);if(n){const r=function(t){w(t)&&(t=t.split(" "));const e=Object.create(null);return j(t,(t=>{t.length&&(e[t]=!0)})),e}(e.attr("class"));let i="",s="";j(n,(function(t,e){t!==!!r[e]&&(t?i+=(i.length?" ":"")+e:s+=(s.length?" ":"")+e)})),j(e,(function(t){s&&s.split(" ").forEach((e=>t.classList.remove(e))),i&&i.split(" ").forEach((e=>t.classList.add(e)))})),t.delete(e)}})),e.length=0}}]}function pi(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 di(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 ci("notcsel","Expecting class selector starting with '.' got '{0}'.",n);const i=`${n}-animation`;e.$$registeredAnimations[n.substr(1)]=i,t.factory(i,r)},this.customFilter=function(t){return 1===arguments.length&&(r=x(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,ci("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&&_t(n),r=r&&_t(r),pi(e,n=n||r.parent(),r),t.push(e,"enter",ui(i))),move:(e,n,r,i)=>(n=n&&_t(n),r=r&&_t(r),pi(e,n=n||r.parent(),r),t.push(e,"move",ui(i))),leave:(e,n)=>t.push(e,"leave",ui(n),(()=>{e.remove()})),addClass:(e,n,r)=>((r=ui(r)).addClass=li(r.addClass,n),t.push(e,"addClass",r)),removeClass:(e,n,r)=>((r=ui(r)).removeClass=li(r.removeClass,n),t.push(e,"removeClass",r)),setClass:(e,n,r,i)=>((i=ui(i)).addClass=li(i.addClass,n),i.removeClass=li(i.removeClass,r),t.push(e,"setClass",i)),animate:(e,n,r,i,s)=>((s=ui(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=li(s.tempClasses,i),t.push(e,"animate",s))}}]}function fi(t){return{multiElement:!0,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},mt(e[0])?t.enter(e,n.parent(),n):pi(e,n.parent(),n)})):(c&&(c.remove(),c=null),a&&(a.$destroy(),a=null),o&&(c=Kt(o.clone),mt(c[0])?t.leave(c).done((t=>{!1!==t&&(c=null)})):c.remove(),o=null))}))}}}di.$inject=["$provide"],fi.$inject=["$animate"];const $i=["$templateRequest","$anchorScroll","$animate",(t,e,n)=>({restrict:"ECA",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(){!y(a)||a&&!r.$eval(a)||e()}let p,d,f,$=0;const m=()=>{d&&(d.remove(),d=null),p&&(p.$destroy(),p=null),f&&(mt(f[0])?n.leave(f).done((t=>{!1!==t&&(d=null)})):f.remove(),d=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 d=u(c,(t=>{m(),mt(t[0])?n.enter(t,null,i).done(s):(pi(t,null,i),h())}));p=c,f=d,p.$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:"ECA",priority:-400,require:"ngInclude",link(e,n,r,i){if(toString.call(n[0]).match(/SVG/))return n.empty(),void t(Mt(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 yi(){return{restrict:"EA",terminal:!0,priority:1e3}}const vi=ht("ngRef"),wi=["$parse",t=>({priority:-1,restrict:"A",compile(e,n){const r=$t(U(e)),i=t(n.ngRef),s=i.assign||function(){throw vi("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 vi("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)}))}}})],bi=["$parse","$animate",(t,e)=>{const n="$$NG_REMOVED",r=ht("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 dt(n)},c=function(t,e){return e};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,compile:function(l,u){const h=u.ngRepeat;let p=h.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!p)throw r("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",h);const d=p[1],f=p[2],$=p[3],g=p[4];if(p=d.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/),!p)throw r("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",d);const y=p[3]||p[1],v=p[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 w;if(g){var b={$id:dt};const e=t(g);w=function(t,n,r,i){return v&&(b[v]=n),b[y]=r,b.$index=i,e(t,b)}}return function(t,l,u,p,d){let g=Object.create(null);t.$watchCollection(f,(u=>{var p,f,E,C,x,O,S,A,k,_,T,N,R=l[0],V=Object.create(null);if($&&(t[$]=u),m(u))k=u,A=w||a;else for(var P in A=w||c,k=[],u)Object.hasOwnProperty.call(u,P)&&"$"!==P.charAt(0)&&k.push(P);for(C=k.length,T=new Array(C),p=0;p<C;p++)if(x=u===k?p:k[p],O=u[x],S=A(t,x,O,p),g[S])_=g[S],delete g[S],V[S]=_,T[p]=_;else{if(V[S])throw j(T,(function(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,S,O);T[p]={id:S,scope:void 0,clone:void 0},V[S]=!0}for(var D in b&&(b[y]=void 0),g){if(N=Kt((_=g[D]).clone),e.leave(N),N[0].parentNode)for(p=0,f=N.length;p<f;p++)N[p][n]=!0;_.scope.$destroy()}for(p=0;p<C;p++)if(x=u===k?p:k[p],O=u[x],(_=T[p]).scope){E=R;do{E=E.nextSibling}while(E&&E[n]);s(_)!==E&&e.move(Kt(_.clone),null,R),R=o(_),i(_.scope,p,y,O,v,x,C)}else d(((t,n)=>{_.scope=n;const r=document.createComment("");t[t.length++]=r,e.enter(t,null,R),R=r,_.clone=t,e.enter(t,null,R),R=t,_.clone=t,V[_.id]=_,i(_.scope,p,y,O,v,x,C)}));g=V}))}}}}];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}}}))}}}const Ci=["$animate",t=>({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=Kt(a[n].clone);l[n].$destroy();(c[n]=t.leave(e)).done(u(c,n))}a.length=0,l.length=0,(o=i.cases[`!${e}`]||i.cases["?"])&&j(o,(e=>{e.transclude(((n,r)=>{l.push(r);const i=e.element;n[n.length++]=document.createComment("");const s={clone:n};a.push(s),t.enter(n,i.parent(),i)}))}))}))}})];function xi(){return{transclude:"element",priority:1200,restrict:"EA",require:"^ngSwitch",multiElement:!0,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 Oi(){return{restrict:"EA",transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link(t,e,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:e})}}}const Si=ht("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=window.document.createElement("option"),r=window.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 p;_t(n.cloneNode(!1)).val("?");const d=function(t,n,r){const i=t.match(Ai);if(!i)throw Si("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,Gt(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),p=c?function(t,e){return h(r,e)}:function(t){return dt(t)},d=function(t,e){return p(t,w(t,e))},f=e(i[2]||i[1]),$=e(i[3]||""),g=e(i[4]||""),y=e(i[8]),v={};let w=o?function(t,e){return v[o]=e,v[s]=t,v}:function(t){return v[s]=t,v};function b(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:d,getWatchables:e(y,(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=w(a,s),l=p(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=y(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=w(a,s),l=u(r,c),h=p(l,c),d=new b(h,l,f(r,c),$(r,c),g(r,c));t.push(d),e[h]=d}return{items:t,selectValueMap:e,getOptionFromViewValue:t=>e[d(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=p.getOptionFromViewValue(t),n=e&&e.element;return n&&!n.selected&&(n.selected=!0),e}c.generateUnknownOptionValue=()=>"?",u?(c.writeValue=function(t){if(!p)return;const e=t&&t.map(g)||[];p.items.forEach((t=>{t.element.selected&&!H(e,t)&&(t.element.selected=!1)}))},c.readValue=function(){const t=s.val()||[],e=[];return j(t,(t=>{const n=p.selectValueMap[t];n&&!n.disabled&&e.push(p.getViewValueFromOption(n))})),e},d.trackBy&&i.$watchCollection((()=>{if(Array.isArray(l.$viewValue))return l.$viewValue.map((t=>d.getTrackByValue(t)))}),(()=>{l.$render()}))):(c.writeValue=function(t){if(!p)return;const e=s[0].options[s[0].selectedIndex],n=p.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=p.selectValueMap[s.val()];return t&&!t.disabled?(c.unselectEmptyOption(),c.removeUnknownOption(),p.getViewValueFromOption(t)):null},d.trackBy&&i.$watch((()=>d.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(d.getWatchables,(function(){const t=p&&c.readValue();if(p)for(let t=p.items.length-1;t>=0;t--){const e=p.items[t];y(e.group)?Ft(e.element.parentNode):Ft(e.element)}p=d.getOptions();const e={};if(p.items.forEach((t=>{let n;y(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();(d.trackBy||u?z(t,e):t===e)||(l.$setViewValue(e),l.$render())}}))}}}}],_i=ht("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}",Gt(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 Ni(){return{restrict:"A",priority:100,require:"ngModel",link(t,e,n,r){const i=n.ngList||", ",s="false"!==n.ngTrim,o=s?T(i):i;r.$parsers.push((function(t){if(g(t))return;const e=[];return t&&j(t.split(o),(t=>{t&&e.push(s?T(t):t)})),e})),r.$formatters.push((t=>{if(Array.isArray(t))return t.join(i)})),r.$isEmpty=function(t){return!t||!t.length}}}}function ji(){return{restrict:"A",require:"ngModel",link(t,e,n,r){r.$viewChangeListeners.push((()=>t.$eval(n.ngChange)))}}}const Ri=/^\/(.+)\/([a-z]*)$/,Vi={};Object.entries(At).forEach((([t,e])=>{if("multiple"===e)return;function n(e,n,i){e.$watch(i[r],(e=>{i.$set(t,!!e)}))}let r=$t(`ng-${t}`),i=n;"checked"===e&&(i=function(t,e,i){i.ngModel!==i[r]&&n(t,0,i)}),Vi[r]=function(){return{restrict:"A",priority:100,link:i}}})),Object.entries(h).forEach((([t])=>{Vi[t]=function(){return{priority:100,link(e,n,r){if("ngPattern"===t&&"/"===r.ngPattern.charAt(0)){const t=r.ngPattern.match(Ri);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=$t(`ng-${t}`);Vi[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 Pi=["$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=function(t,e){return!s||!i.$isEmpty(e)},r.$observe("required",(t=>{s!==t&&(s=t,i.$validate())}))}})],Di=["$parse",function(t){return{restrict:"A",require:"?ngModel",compile:function(e,n){var r,i;return n.ngPattern&&(r=n.ngPattern,i="/"===n.ngPattern.charAt(0)&&Ri.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=Ii(o,r,e);n.$observe("pattern",(function(t){var n=a;a=Ii(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)}}}}}}],Mi=["$parse",t=>({restrict:"A",require:"?ngModel",link(e,n,r,i){if(!i)return;let s=r.maxlength||t(r.ngMaxlength)(e),o=qi(s);r.$observe("maxlength",(t=>{s!==t&&(o=qi(t),s=t,i.$validate())})),i.$validators.maxlength=function(t,e){return o<0||i.$isEmpty(e)||e.length<=o}}})],Li=["$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=qi(s)||-1;r.$observe("minlength",(t=>{s!==t&&(o=qi(t)||-1,s=t,i.$validate())})),i.$validators.minlength=function(t,e){return i.$isEmpty(e)||e.length>=o}}}}];function Ii(t,e,n){if(t){if(w(t)&&(t=new RegExp(`^${t}$`)),!t.test)throw ht("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",e,t,Gt(n));return t}}function qi(t){const e=P(t);return D(e)?-1:e}function Ui(){let t=!0;this.disableAutoScrolling=()=>{t=!1},this.$get=["$location","$rootScope",function(e,n){function r(t){if(t){t.scrollIntoView();const e=function(){let t=i.yOffset;if(x(t))t=t();else if(q(t)){const e=t[0];t="fixed"!==window.getComputedStyle(e).position?0:e.getBoundingClientRect().bottom}else b(t)||(t=0);return t}();if(e){const n=t.getBoundingClientRect().top;window.scrollBy(0,n-e)}}else window.scrollTo(0,0)}const i=function(t){let n;(t=w(t)?t:b(t)?t.toString():e.hash())?(n=document.getElementById(t))||(n=function(t){let e=null;return Array.prototype.some.call(t,(t=>{if("a"===U(t))return e=t,!0})),e}(document.getElementsByName(t)))?r(n):"top"===t&&r(null):r(null)};return t&&n.$watch((()=>e.hash()),((t,e)=>{if(t===e&&""===t)return;const r=()=>n.$evalAsync(i);"complete"===document.readyState?window.setTimeout((()=>r())):window.addEventListener("load",(()=>r()))})),i}]}let Hi=null;function Fi(t){return t.replace(/#$/,"")}function Bi(t){const e=this,n={},r=[];let i,s,o=!1;e.$$completeOutstandingRequest=t.completeTask,e.$$incOutstandingRequestCount=t.incTaskCount,e.notifyWhenNoOutstandingRequests=t.notifyWhenNoPendingTasks;let a=window.location.href;const c=_t(Array.from(document.getElementsByTagName("base")));function l(){h()}function u(){i=history.state,i=g(i)?null:i,z(i,Hi)&&(i=Hi),Hi=i,s=i}function h(){const t=s;u(),a===e.url()&&t===i||(a=e.url(),s=i,r.forEach((t=>{t(Fi(window.location.href),i)})))}u(),e.url=function(t,n,r){return g(r)&&(r=null),t?(t=Ge(t).href,a===t&&s===r||(a=t,s=r,history.pushState(r,"",t),u()),e):Fi(window.location.href)},e.state=function(){return i},e.onUrlChange=function(t){return o||(_t(window).on("popstate",l),_t(window).on("hashchange",l),o=!0),r.push(t),t},e.$$applicationDestroyed=function(){_t(window).off("hashchange popstate",l)},e.$$checkUrlChange=h,e.baseHref=function(){const t=c.attr("href");return t?t.replace(/^(https?:)?\/\/[^/]*/,""):""},e.defer=function(e,r,i){let s;return r=r||0,i=i||t.DEFAULT_TASK_TYPE,t.incTaskCount(i),s=window.setTimeout((()=>{delete n[s],t.completeTask(e,i)}),r),n[s]=i,s},e.cancel=function(e){if(Object.prototype.hasOwnProperty.call(n,e)){const r=n[e];return delete n[e],window.clearTimeout(e),t.completeTask((()=>{}),r),!0}return!1}}class zi{$get=["$$taskTrackerFactory",function(t){return new Bi(t)}]}function Wi(){this.$get=["$$AnimateRunner",t=>function(e,n){let r,i=n||{};i.$$prepared||(i=structuredClone(i)),i.cleanupStyles&&(i.from=i.to=null),i.from&&(ai(e[0],i.from),i.from=null);const s=new t;function o(){return requestAnimationFrame((()=>{!function(){i.addClass&&(e[0].classList.add(i.addClass),i.addClass=null);i.removeClass&&(e[0].classList.remove(i.removeClass),i.removeClass=null);i.to&&(ai(e[0],i.to),i.to=null)}(),r||s.complete(),r=!0})),s}return{start:o,end:o}}]}function Gi(){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 Ki,Qi,Ji,Zi;function Yi(){this.$get=["$q","$$animateAsyncRun","$timeout",function(t,e,n){return Ki=t,Qi=e,Ji=n,Xi}]}class Xi{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=Qi();this._doneCallbacks=[],this._tick=t=>{document.hidden?(t=>{Ji(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=Ki(((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)}}function ts(){this.$get=function(){const t={};function e(e,n){if(e in t)throw ht("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);let r=0,i=V({},n,{id:e}),s=Object.create(null);const o=n&&n.capacity||Number.MAX_VALUE;let a=Object.create(null),c=null,l=null;return t[e]={put(t,e){if(!g(e)){if(o<Number.MAX_VALUE){u(a[t]||(a[t]={key:t}))}return t in s||r++,s[t]=e,r>o&&this.remove(l.key),e}},get(t){if(o<Number.MAX_VALUE){const e=a[t];if(!e)return;u(e)}return s[t]},remove(t){if(o<Number.MAX_VALUE){const e=a[t];if(!e)return;e===c&&(c=e.p),e===l&&(l=e.n),h(e.n,e.p),delete a[t]}t in s&&(delete s[t],r--)},removeAll(){s=Object.create(null),r=0,a=Object.create(null),c=l=null},destroy(){s=null,i=null,a=null,delete t[e]},info:()=>V({},i,{size:r})};function u(t){t!==c&&(l?l===t&&(l=t.n):l=t,h(t.n,t.p),h(t,c),c=t,c.n=null)}function h(t,e){t!==e&&(t&&(t.p=e),e&&(e.n=t))}}return e.info=function(){const e={};return j(t,((t,n)=>{e[n]=t.info()})),e},e.get=function(e){return t[e]},e}}function es(){this.$get=["$cacheFactory",t=>t("templates")]}const ns=(t,e)=>{Zi.error(t,e)};function rs(){this.$get=["$log",function(t){return Zi=t,ns}]}function is(){return function(t,e,n,r){if(!m(t)){if(null==t)return t;throw ht("filter")("notarray","Expected array but received: {0}",t)}let i;r=r||"$";let s=!1;switch(os(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=v(t)&&n in t;let s;!0===e?e=z:x(e)||(e=function(t,e){return!g(t)&&(null===t||null===e?t===e:!(v(e)||v(t)&&!I(t))&&(t=$(`${t}`),e=$(`${e}`),-1!==t.indexOf(e)))});return s=function(s){return i&&!v(s)?ss(s,t[n],e,n,!1):ss(s,t,e,n,r)},s}(e,n,r,s);break;default:return t}return Array.prototype.filter.call(t,i)}}function ss(t,e,n,r,i,s){const o=os(t),a=os(e);if("string"===a&&"!"===e.charAt(0))return!ss(t,e.substring(1),n,r,i);if(Array.isArray(t))return t.some((t=>ss(t,e,n,r,i)));switch(o){case"object":if(i){for(let i in t)if(i.charAt&&"$"!==i.charAt(0)&&ss(t[i],e,n,r,!0))return!0;return!s&&ss(t,e,n,r,!1)}if("object"===a){for(let i in e){const s=e[i];if(x(s)||g(s))continue;const o=i===r;if(!ss(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 os(t){return null===t?"null":typeof t}function as(){return function(t,e){return g(e)&&(e=2),Y(t,e)}}function cs(){return function(t,e,n){return D(e=Math.abs(Number(e))===1/0?Number(e):P(e))?t:(b(t)&&(t=t.toString()),m(t)?(n=(n=!n||isNaN(n)?0:P(n))<0?Math.max(0,t.length+n):n,e>=0?ls(t,n,n+e):0===n?ls(t,e,t.length):ls(t,Math.max(0,n+e),n)):t)}}function ls(t,e,n){return w(t)?t.slice(e,n):[].slice.call(t,e,n)}function us(t){return function(r,i,s,o){if(null==r)return r;if(!m(r))throw ht("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(x(e))r=e;else if(w(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=x(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(x(t.valueOf)&&e(t=t.valueOf()))return t;if(I(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&&(v(i)&&(i=t.index),v(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 hs(t){const e="Filter";function n(r,i){if(v(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",is),n("json",as),n("limitTo",cs),n("orderBy",us)}function ps(){let t=!0;this.$get=["$rootScope","$exceptionHandler",function(e,n){return fs((t=>{e.$evalAsync(t)}),n,t)}],this.errorOnUnhandledRejections=function(e){return y(e)?(t=e,this):t}}function ds(){let t=!0;this.$get=["$browser","$exceptionHandler",function(e,n){return fs((t=>{e.defer(t)}),n,t)}],this.errorOnUnhandledRejections=function(e){return y(e)?(t=e,this):t}}function fs(t,e,n){const r=ht("$q");let i=0;const s=[];function o(){return new a}function a(){const t=this.promise=new c;this.resolve=function(e){h(t,e)},this.reject=function(e){d(t,e)},this.notify=function(e){$(t,e)}}class c{constructor(){this.$$state={status:0}}then(t,e,n){if(g(t)&&g(e)&&g(n))return this;const r=new c;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,t,e,n]),this.$$state.status>0&&u(this.$$state),r}catch(t){return this.then(null,t)}finally(t,e){return this.then((e=>y(e,b,t)),(e=>y(e,m,t)),e)}}function l(){for(;!i&&s.length;){const t=s.shift();if(!$s(t)){ms(t);const n=`Possibly unhandled rejection: ${pt(t.value)}`;C(t.value)?e(t.value,n):e(n)}}}function u(r){!n||r.pending||2!==r.status||$s(r)||(0===i&&0===s.length&&t(l),s.push(r)),!r.processScheduled&&r.pending&&(r.processScheduled=!0,++i,t((()=>{!function(r){let s,o,a;a=r.pending,r.processScheduled=!1,r.pending=void 0;try{for(let t=0,n=a.length;t<n;++t){ms(r),o=a[t][0],s=a[t][r.status];try{x(s)?h(o,s(r.value)):1===r.status?h(o,r.value):d(o,r.value)}catch(t){d(o,t),t&&!0===t.$$passToExceptionHandler&&e(t)}}}finally{--i,n&&0===i&&t(l)}}(r)})))}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)):p(t,e))}function p(t,e){let n,r=!1;try{(v(e)||x(e))&&(n=e.then),x(n)?(t.$$state.status=-1,n.call(e,(function(e){if(r)return;r=!0,p(t,e)}),i,(function(e){$(t,e)}))):(t.$$state.value=e,t.$$state.status=1,u(t.$$state))}catch(t){i(t)}function i(e){r||(r=!0,f(t,e))}}function d(t,e){t.$$state.status||f(t,e)}function f(t,e){t.$$state.value=e,t.$$state.status=2,u(t.$$state)}function $(n,r){const i=n.$$state.pending;n.$$state.status<=0&&i&&i.length&&t((()=>{let t,n;for(let s=0,o=i.length;s<o;s++){n=i[s][0],t=i[s][3];try{$(n,x(t)?t(r):r)}catch(t){e(t)}}}))}function m(t){const e=new c;return d(e,t),e}function y(t,e,n){let r=null;try{x(n)&&(r=n())}catch(t){return m(t)}return _(r)?r.then((()=>e(t)),m):e(t)}function w(t,e,n,r){const i=new c;return h(i,t),i.then(e,n,r)}let b=w;function E(t){if(!x(t))throw r("norslvr","Expected resolverFn, got '{0}'",t);const e=new c;return t((function(t){h(e,t)}),(function(t){d(e,t)})),e}return E.prototype=c.prototype,E.defer=o,E.reject=m,E.when=w,E.resolve=b,E.all=function(t){const e=new c;let n=0;const r=Array.isArray(t)?[]:{};return j(t,((t,i)=>{n++,w(t).then((t=>{r[i]=t,--n||h(e,r)}),(t=>{d(e,t)}))})),0===n&&h(e,r),e},E.race=function(t){const e=o();return j(t,(t=>{w(t).then(e.resolve,e.reject)})),e.promise},E}function $s(t){return!!t.pur}function ms(t){t.pur=!0}function gs(t){t.$$state&&ms(t.$$state)}us.$inject=["$parse"],hs.$inject=["$provide"];const ys=ht("$interval"),vs=new Map;function ws(){this.$get=["$$intervalFactory",function(t){function e(t){window.clearInterval(t),vs.delete(t)}const n=t((function(t,e,n){const r=window.setInterval(t,e);return vs.set(r,n),r}),e);return n.cancel=function(t){if(!t)return!1;if(!Object.prototype.hasOwnProperty.call(t,"$$intervalId"))throw ys("badprom","`$interval.cancel()` called with a promise that was not generated by `$interval()`.");if(!vs.has(t.$$intervalId))return!1;const n=t.$$intervalId,r=vs.get(n);return gs(r.promise),r.reject("canceled"),e(n),!0},n}]}const bs=1,Es=2;class Cs{constructor(t){this.$filter=t}compile(t){let e,n,r=xs(t,this.$filter);(e=function(t){if(1===t.body.length&&Os(t.body[0].expression))return{type:Or.AssignmentExpression,left:t.body[0].expression,right:{type:Or.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 Or.Literal:return this.value(t.value,e);case Or.UnaryExpression:return i=this.recurse(t.argument),this[`unary${t.operator}`](i,e);case Or.BinaryExpression:case Or.LogicalExpression:return r=this.recurse(t.left),i=this.recurse(t.right),this[`binary${t.operator}`](r,i,e);case Or.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case Or.Identifier:return s.identifier(t.name,e,n);case Or.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 Or.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 Or.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 Or.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 Or.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===Or.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 Or.ThisExpression:return function(t){return e?{value:t}:t};case Or.LocalsExpression:return function(t,n){return e?{value:n}:n};case Or.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=y(s)?+s:0,e?{value:s}:s}}"unary-"(t,e){return function(n,r,i){let s=t(n,r,i);return s=y(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=(y(o)?o:0)-(y(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=`${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 xs(t,e,n){let r,i,s,o,a,c,l,u,h,p,d,f=t;const $=f.isPure=function(t,e){switch(t.type){case Or.MemberExpression:if(t.computed)return!1;break;case Or.UnaryExpression:return bs;case Or.BinaryExpression:return"+"!==t.operator&&bs;case Or.CallExpression:return!1}return void 0===e?Es:e}(t,n);switch(t.type){case Or.Program:return r=!0,f.body.forEach((t=>{let n=xs(t.expression,e,$);r=r&&n.constant})),f.constant=r,f;case Or.Literal:return f.constant=!0,f.toWatch=[],f;case Or.UnaryExpression:var m=xs(f.argument,e,$);return f.constant=m.constant,f.toWatch=m.toWatch,f;case Or.BinaryExpression:return o=xs(f.left,e,$),a=xs(f.right,e,$),f.constant=o.constant&&a.constant,f.toWatch=o.toWatch.concat(a.toWatch),f;case Or.LogicalExpression:return o=xs(f.left,e,$),a=xs(f.right,e,$),f.constant=o.constant&&a.constant,f.toWatch=f.constant?[]:[t],f;case Or.ConditionalExpression:return c=xs(t.test,e,$),l=xs(t.alternate,e,$),u=xs(t.consequent,e,$),f.constant=c.constant&&l.constant&&u.constant,f.toWatch=f.constant?[]:[t],f;case Or.Identifier:return f.constant=!1,f.toWatch=[t],f;case Or.MemberExpression:return h=xs(t.object,e,$),t.computed&&(p=xs(t.property,e,$)),f.constant=h.constant&&(!f.computed||p.constant),f.toWatch=f.constant?[]:[t],f;case Or.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=xs(t,e,$),r=r&&m.constant,i.push.apply(i,m.toWatch)})),f.constant=r,f.toWatch=s?i:[f],f;case Or.AssignmentExpression:return o=xs(t.left,e,$),a=xs(t.right,e,$),f.constant=o.constant&&a.constant,f.toWatch=[f],f;case Or.ArrayExpression:return r=!0,i=[],t.elements.forEach((t=>{m=xs(t,e,$),r=r&&m.constant,i.push.apply(i,m.toWatch)})),f.constant=r,f.toWatch=i,f;case Or.ObjectExpression:return r=!0,i=[],t.properties.forEach((t=>{m=xs(t.value,e,$),r=r&&m.constant,i.push.apply(i,m.toWatch),t.computed&&(d=xs(t.key,e,!1),r=r&&d.constant,i.push.apply(i,d.toWatch))})),f.constant=r,f.toWatch=i,f;case Or.ThisExpression:case Or.LocalsExpression:return f.constant=!1,f.toWatch=[],f}}function Os(t){return t.type===Or.Identifier||t.type===Or.MemberExpression}const Ss=ht("$parse"),As={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},ks=new Set("+ - * / % === !== == != < > <= >= && || ! = |".split(" "));class _s{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=ks.has(t),i=ks.has(e),s=ks.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=y(e)?`s ${e}-${this.index} [${this.text.substring(e,n)}]`:` ${n}`;throw Ss("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():As[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 Ts=ht("$parse"),Ns=new Map(Object.entries({true:!0,false:!1,null:null,undefined:void 0}));class js{constructor(t){this.lexer=t,this.selfReferential={this:{type:Or.ThisExpression},$locals:{type:Or.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:Or.Program,body:t}}expressionStatement(){return{type:Or.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(!Os(t))throw Ts("lval","Trying to assign a value to a non l-value");t={type:Or.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:Or.ConditionalExpression,test:t,alternate:e,consequent:n}):t}logicalOR(){let t=this.logicalAND();for(;this.expect("||");)t={type:Or.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t}logicalAND(){let t=this.equality();for(;this.expect("&&");)t={type:Or.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t}equality(){let t,e=this.relational();for(;t=this.expect("==","!=","===","!==");)e={type:Or.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e}relational(){let t,e=this.additive();for(;t=this.expect("<",">","<=",">=");)e={type:Or.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e}additive(){let t,e=this.multiplicative();for(;t=this.expect("+","-");)e={type:Or.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e}multiplicative(){let t,e=this.unary();for(;t=this.expect("*","/","%");)e={type:Or.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e}unary(){let t;return(t=this.expect("+","-","!"))?{type:Or.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]):Ns.has(this.peek().text)?t={type:Or.Literal,value:Ns.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:Or.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:Or.MemberExpression,object:t,property:this.assignment(),computed:!0},this.consume("]")):"."===e.text?t={type:Or.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t}filter(t){const e=[t],n={type:Or.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:Or.Identifier,name:t.text}}constant(){return{type:Or.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:Or.ArrayExpression,elements:t}}object(){const t=[];let e;if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:Or.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:Or.ObjectExpression,properties:t}}throwError(t,e){throw Ts("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 Ts("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 Ts("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 Rs{constructor(t,e){this.ast=new js(t),this.astCompiler=new Cs(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===Or.Literal||t.body[0].expression.type===Or.ArrayExpression||t.body[0].expression.type===Or.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 Vs(){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:x(e)&&e,isIdentifierContinue:x(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 _s(i);o=new Rs(c,r).parse(e),t[a]=Ds(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===Es?function(e){return t(e)}:t})))),Ds(r)}}]}function Ps(t,e,n,r){const i=t.$watch((()=>(i(),r(t))),e,n);return i}function Ds(t){return t.constant?t.$$watchDelegate=Ps:t.oneTime?t.$$watchDelegate=Ls:t.inputs&&(t.$$watchDelegate=Ms),t}function Ms(t,e,n,r){let i,s=r.inputs;if(1===s.length){let o=Is;return s=s[0],t.$watch((t=>{const e=s(t);return Is(e,o,s.isPure)||(i=r(t,void 0,void 0,[e]),o=e&&Us(e)),i}),e,n)}const o=[],a=[];for(let t=0,e=s.length;t<e;t++)o[t]=Is,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=!Is(r,o[n],s[n].isPure)))&&(a[n]=r,o[n]=r&&Us(r))}return e&&(i=r(t,void 0,void 0,a)),i}),e,n)}function Ls(t,e,n,r){const i=r.literal?qs:y;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,Ds(h),s=t.$watch(h,e,n),s}function Is(t,e,n){return null==t||null==e?t===e:!("object"==typeof t&&"object"==typeof(t=Us(t))&&!n)&&(t===e||t!=t&&e!=e)}function qs(t){let e=!0;return j(t,(t=>{y(t)||(e=!1)})),e}function Us(t){return x(t.valueOf)?t.valueOf():{}.constructor.prototype.valueOf.call(t)}const Hs=ht("$interpolate");function Fs(){let t="{{",e="}}";this.startSymbol=function(e){return e?(t=e,this):t},this.endSymbol=function(t){return t?(e=t,this):e},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){const s=t.length,o=e.length,a=new RegExp(t.replace(/./g,l),"g"),c=new RegExp(e.replace(/./g,l),"g");function l(t){return`\\\\\\${t}`}function u(n){return n.replace(a,t).replace(c,e)}function h(a,c,l,h){const p=l===i.URL||l===i.MEDIA_URL;if(!a.length||-1===a.indexOf(t)){if(c)return;let t=u(a);p&&(t=i.getTrusted(l,t));const e=L(t);return e.exp=a,e.expressions=[],e.$$watchDelegate=Ps,e}let d,f;h=!!h;let $=0;const m=[];let v;const w=a.length;let b;const E=[],C=[];let x;for(;$<w;){if(-1===(d=a.indexOf(t,$))||-1===(f=a.indexOf(e,d+s))){$!==w&&E.push(u(a.substring($)));break}$!==d&&E.push(u(a.substring($,d))),b=a.substring(d+s,f),m.push(b),$=f+o,C.push(E.length),E.push("")}x=1===E.length&&1===C.length;const O=p&&x?void 0:function(t){try{return t=l&&!p?i.getTrusted(l,t):i.valueOf(t),h&&!y(t)?t:G(t)}catch(t){r(Hs.interr(a,t))}};if(v=m.map((t=>n(t,O))),!c||m.length){const t=function(t){for(let e=0,n=m.length;e<n;e++){if(h&&g(t[e]))return;E[C[e]]=t[e]}return p?i.getTrusted(l,x?E[0]:E.join("")):(l&&E.length>1&&Hs.throwNoconcat(a),E.join(""))};return V((e=>{let n=0;const i=m.length,s=new Array(i);try{for(;n<i;n++)s[n]=v[n](e);return t(s)}catch(t){r(Hs.interr(a,t))}}),{exp:a,expressions:m,$$watchDelegate(e,n){let r;return e.$watchGroup(v,(function(i,s){const o=t(i);n.call(this,o,i!==s?r:o,e),r=o}))}})}}return h.startSymbol=function(){return t},h.endSymbol=function(){return e},h}]}function Bs(){this.$get=["$browser","$q","$$q","$rootScope",function(t,e,n,r){return function(i,s){return function(o,a,c,l){const u=arguments.length>4,h=u?Q(arguments,4):[];let p=0;const d=y(l)&&!l,f=(d?n:e).defer(),{promise:$}=f;function m(){u?o.apply(null,h):o(p)}return c=y(c)?c:0,$.$$intervalId=i((function(){d?t.defer(m):r.$evalAsync(m),f.notify(p++),c>0&&p>=c&&(f.resolve(p),s($.$$intervalId)),d||r.$apply()}),a,f,d),$}}}]}Hs.throwNoconcat=function(t){throw Hs("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)},Hs.interr=function(t,e){throw Hs("interr","Can't interpolate: {0}\n{1}",t,e.toString())};let zs={},Ws="";function Gs(t){try{return decodeURIComponent(t)}catch(e){return t}}const Ks="application/json",Qs={"Content-Type":`${Ks};charset=utf-8`},Js=/^\[|^\{(?!\{)/,Zs={"[":/]$/,"{":/}$/},Ys=/^\)]\}',?\n/,Xs=ht("$http");function to(t){return v(t)?E(t)?t.toISOString():Y(t):t}function eo(){this.$get=function(){return function(t){if(!t)return"";const e=[];return R(t,((t,n)=>{null===t||g(t)||x(t)||(Array.isArray(t)?t.forEach((t=>{e.push(`${rt(n)}=${rt(to(t))}`)})):e.push(`${rt(n)}=${rt(to(t))}`))})),e.join("&")}}}function no(){this.$get=function(){return function(t){if(!t)return"";const e=[];return function t(n,r,i){Array.isArray(n)?j(n,((e,n)=>{t(e,`${r}[${v(e)?n:""}]`)})):v(n)&&!E(n)?R(n,((e,n)=>{t(e,r+(i?"":"[")+n+(i?"":"]"))})):(x(n)&&(n=n()),e.push(`${rt(r)}=${null==n?"":rt(to(n))}`))}(t,"",!0),e.join("&")}}}function ro(t,e){if(w(t)){const r=t.replace(Ys,"").trim();if(r){const i=e("Content-Type"),s=i&&0===i.indexOf(Ks);if(s||function(t){const e=t.match(Js);return e&&Zs[e[0]].test(t)}(r))try{t=w(n=r)?JSON.parse(n):n}catch(e){if(!s)return t;throw Xs("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',t,e)}}}var n;return t}function io(t){const e=Object.create(null);let n;function r(t,n){t&&(e[t]=e[t]?`${e[t]}, ${n}`:n)}return w(t)?t.split("\n").forEach((t=>{n=t.indexOf(":"),r(t.substring(0,n).trim().toLowerCase(),T(t.substring(n+1)))})):v(t)&&j(t,((t,e)=>{r($(e),T(t))})),e}function so(t){let e;return function(n){if(e||(e=io(t)),n){let t=e[$(n)];return void 0===t&&(t=null),t}return e}}function oo(t,e,n,r){return x(r)?r(t,e,n):(Array.isArray(r)&&r.forEach((r=>{t=r(t,e,n)})),t)}function ao(t){return t>=200&&t<300}function co(){const t=this.defaults={transformResponse:[ro],transformRequest:[function(t){return!v(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:Y(t);var e}],headers:{common:{Accept:"application/json, text/plain, */*"},post:st(Qs),put:st(Qs),patch:st(Qs)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"};let e=!1;this.useApplyAsync=function(t){return y(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","$cacheFactory","$rootScope","$q","$injector","$sce",function(i,s,o,a,c,l,u){const h=o("$http");t.paramSerializer=w(t.paramSerializer)?l.get(t.paramSerializer):t.paramSerializer;const p=[];n.forEach((t=>{p.unshift(w(t)?l.get(t):l.invoke(t))}));const d=function(t){const e=[ze].concat(t.map(Ge));return function(t){const n=Ge(t);return e.some(Qe.bind(null,n))}}(r);function f(n){if(!v(n))throw ht("$http")("badreq","Http request configuration must be an object. Received: {0}",n);if(!w(u.valueOf(n.url)))throw ht("$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 o;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=>{r[$(t)]||(r[t]=n[t])})),function(t,e){let n;const r={};return j(t,((t,i)=>{x(t)?(n=t(e),null!=n&&(r[i]=n)):r[i]=t})),r}(r,st(e))}(n),r.method=w(o=r.method)?o.toUpperCase():o,r.paramSerializer=w(r.paramSerializer)?l.get(r.paramSerializer):r.paramSerializer,i.$$incOutstandingRequestCount("$http");const m=[],b=[];let E=c.resolve(r);return j(p,(t=>{(t.request||t.requestError)&&m.unshift(t.request,t.requestError),(t.response||t.responseError)&&b.push(t.response,t.responseError)})),E=C(E,m),E=E.then((function(n){const{headers:r}=n,i=oo(n.data,so(r),void 0,n.transformRequest);g(i)&&j(r,((t,e)=>{"content-type"===$(e)&&delete r[e]}));g(n.withCredentials)&&!g(t.withCredentials)&&(n.withCredentials=t.withCredentials);return function(n,r){const i=c.defer(),{promise:o}=i;let l,p;const $=n.headers;let{url:m}=n;w(m)||(m=u.valueOf(m));m=function(t,e){e.length>0&&(t+=(-1===t.indexOf("?")?"?":"&")+e);return t}(m,n.paramSerializer(n.params)),f.pendingRequests.push(n),o.then(O,O),(n.cache||t.cache)&&!1!==n.cache&&"GET"===n.method&&(l=v(n.cache)?n.cache:v(t.cache)?t.cache:h);l&&(p=l.get(m),y(p)?_(p)?p.then(x,x):Array.isArray(p)?C(p[1],p[0],st(p[2]),p[3],p[4]):C(p,200,{},"OK","complete"):l.put(m,o));if(g(p)){const e=d(n.url)?function(){let t,e,n,r,i;const s=window.document.cookie;if(s!==Ws)for(Ws=s,t=Ws.split("; "),zs={},n=0;n<t.length;n++)e=t[n],r=e.indexOf("="),r>0&&(i=Gs(e.substring(0,r)),g(zs[i])&&(zs[i]=Gs(e.substring(r+1))));return zs}()[n.xsrfCookieName||t.xsrfCookieName]:void 0;e&&($[n.xsrfHeaderName||t.xsrfHeaderName]=e),s(n.method,m,r,E,$,n.timeout,n.withCredentials,n.responseType,b(n.eventHandlers),b(n.uploadEventHandlers))}return o;function b(t){if(t){const n={};return j(t,((t,r)=>{n[r]=function(n){function r(){t(n)}e?a.$applyAsync(r):a.$$phase!==ke.NONE?r():a.$apply(r)}})),n}}function E(t,n,r,i,s){function o(){C(n,t,r,i,s)}l&&(ao(t)?l.put(m,[t,n,io(r),i,s]):l.remove(m)),e?a.$applyAsync(o):(o(),a.$$phase||a.$apply())}function C(t,e,r,s,o){(ao(e=e>=-1?e:0)?i.resolve:i.reject)({data:t,status:e,headers:so(r),config:n,statusText:s,xhrStatus:o})}function x(t){C(t.data,t.status,st(t.headers()),t.statusText,t.xhrStatus)}function O(){const t=f.pendingRequests.indexOf(n);-1!==t&&f.pendingRequests.splice(t,1)}}(n,i).then(O,O)})),E=C(E,b),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 O(t){const e=V({},t);return e.data=oo(t.data,t.headers,t.status,r.transformResponse),ao(t.status)?e:c.reject(e)}}return f.pendingRequests=[],function(...t){t.forEach((t=>{f[t]=function(e,n){return f(V({},n||{},{method:t,url:e}))}}))}("get","delete","head"),function(...t){t.forEach((t=>{f[t]=function(e,n,r){return f(V({},r||{},{method:t,url:e,data:n}))}}))}("post","put","patch"),f.defaults=t,f}]}function lo(){this.$get=["$browser",function(t){return function(t,e){return function(n,r,i,s,o,a,c,l,u,h){r=r||t.url();const p=new XMLHttpRequest;let d=!1;if(p.open(n,r,!0),j(o,((t,e)=>{y(t)&&p.setRequestHeader(e,t)})),p.onload=function(){const t=p.statusText||"";let e=p.status;0===e&&(e=p.response?200:"file"===Ge(r).protocol?404:0),m(s,e,p.response,p.getAllResponseHeaders(),t,"complete")},p.onerror=function(){m(s,-1,null,null,"","error")},p.ontimeout=function(){m(s,-1,null,null,"","timeout")},p.onabort=function(){m(s,-1,null,null,"",d?"timeout":"abort")},j(u,((t,e)=>{p.addEventListener(e,t)})),j(h,((t,e)=>{p.upload.addEventListener(e,t)})),c&&(p.withCredentials=!0),l)try{p.responseType=l}catch(t){if("json"!==l)throw t}if(p.send(g(i)?null:i),a>0)var f=e((()=>{$("timeout")}),a);else _(a)&&a.then((()=>{$(y(a.$$timeoutId)?"timeout":"abort")}));function $(t){d="timeout"===t,p&&p.abort()}function m(e,n,r,i,s,o){y(f)&&t.cancel(f),e(n,r,i,s,o)}}}(t,t.defer)}]}const uo={http:80,https:443,ftp:21},ho=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,po=ht("$location");class fo{constructor(t,e){this.appBase=t,this.appBaseNoFile=e,this.$$absUrl="",this.$$html5=!1,this.$$replace=!1,this.$$protocol=void 0,this.$$host=void 0,this.$$port=void 0,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=ho.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(w(t)||b(t))t=t.toString(),this.$$search=tt(t);else{if(!v(t))throw po("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 j(t,((t,n)=>{Array.isArray(t)?j(t,(t=>{e.push(rt(n,!0)+(!0===t?"":`=${rt(t,!0)}`))})):e.push(rt(n,!0)+(!0===t?"":`=${rt(t,!0)}`))})),e.length?e.join("&"):""}(e),i=n?`#${nt(n)}`:"";return function(t){const e=t.split("/");let n=e.length;for(;n--;)e[n]=nt(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 $o&&this.$$html5))throw po("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}}class $o extends fo{constructor(t,e,n){super(t,e),this.$$html5=!0,this.basePrefix=n||"",yo(t,this)}$$parse(t){const e=bo(this.appBaseNoFile,t);if(!w(e))throw po("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,this.appBaseNoFile);vo(e,this,!0),this.$$path||(this.$$path="/"),this.$$compose()}$$normalizeUrl(t){return this.appBaseNoFile+t.substr(1)}$$parseLinkUrl=function(t,e){if(e&&"#"===e[0])return this.hash(e.slice(1)),!0;let n,r,i;return y(n=bo(this.appBase,t))?(r=n,i=this.basePrefix&&y(n=bo(this.basePrefix,n))?this.appBaseNoFile+(bo("/",n)||n):this.appBase+r):y(n=bo(this.appBaseNoFile,t))?i=this.appBaseNoFile+n:this.appBaseNoFile===`${t}/`&&(i=this.appBaseNoFile),i&&this.$$parse(i),!!i}}class mo extends fo{constructor(t,e,n){super(t,e),this.appBase=t,this.appBaseNoFile=e,this.hashPrefix=n,yo(t,this)}$$parse(t){const e=bo(this.appBase,t)||bo(this.appBaseNoFile,t);let n;g(e)||"#"!==e.charAt(0)?this.$$html5?n=e:(n="",g(e)&&(this.appBase=t,this.replace())):(n=bo(this.hashPrefix,e),g(n)&&(n=e)),vo(n,this,!1),this.$$path=function(t,e,n){const r=/^\/[A-Z]:(\/.*)/;let i;wo(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 Eo(this.appBase)===Eo(t)&&(this.$$parse(t),!0)}}function go(){let t="!";const e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return y(e)?(t=e,this):t},this.html5Mode=function(t){return k(t)?(e.enabled=t,this):v(t)?(k(t.enabled)&&(e.enabled=t.enabled),k(t.requireBase)&&(e.requireBase=t.requireBase),(k(t.rewriteLinks)||w(t.rewriteLinks))&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$rootElement",function(n,r,i){let s,o;const a=r.baseHref(),c=r.url();let l;if(e.enabled){if(!a&&e.requireBase)throw po("nobase","$location in HTML5 mode requires a <base> tag to be present!");l=(u=c).substring(0,u.indexOf("/",u.indexOf("//")+2))+(a||"/"),o=$o}else l=Eo(c),o=mo;var u;const h=function(t){return t.substr(0,Eo(t).lastIndexOf("/")+1)}(l);s=new o(l,h,`#${t}`),s.$$parseLinkUrl(c,c),s.$$state=r.state();const p=/^\s*(javascript|mailto):/i;function d(t,e,n){const i=s.url(),o=s.$$state;try{r.url(t,e,n),s.$$state=r.state()}catch(t){throw s.url(i),s.$$state=o,t}}i.on("click",(t=>{const{rewriteLinks:o}=e;if(!o||t.ctrlKey||t.metaKey||t.shiftKey||2===t.which||2===t.button)return;let a=_t(t.target);for(;"a"!==a[0].nodeName.toLowerCase();)if(a[0]===i[0]||!(a=a.parent())[0])return;if(w(o)&&g(a.attr(o)))return;let c=a[0].href;const l=a.attr("href")||a.attr("xlink:href");v(c)&&"[object SVGAnimatedString]"===c.toString()&&(c=Ge(c.animVal).href),p.test(c)||!c||a.attr("target")||t.isDefaultPrevented()||s.$$parseLinkUrl(c,l)&&(t.preventDefault(),s.absUrl()!==r.url()&&n.$apply())})),s.absUrl()!==c&&r.url(s.absUrl(),!0);let f=!0;return r.onUrlChange(((t,e)=>{wo(t,h)?(n.$evalAsync((()=>{const r=s.absUrl(),i=s.$$state;let o;s.$$parse(t),s.$$state=e,o=n.$broadcast("$locationChangeStart",t,r,e,i).defaultPrevented,s.absUrl()===t&&(o?(s.$$parse(r),s.$$state=i,d(r,!1,i)):(f=!1,$(r,i)))})),n.$$phase===ke.NONE&&n.$digest()):window.location.href=t})),n.$watch((()=>{if(f||s.$$urlUpdatedByLocation){s.$$urlUpdatedByLocation=!1;const i=r.url(),o=s.absUrl(),a=r.state(),c=s.$$replace,l=!((t=i)===(e=o)||Ge(t).href===Ge(e).href)||s.$$html5&&a!==s.$$state;(f||l)&&(f=!1,n.$evalAsync((()=>{const t=s.absUrl(),{defaultPrevented:e}=n.$broadcast("$locationChangeStart",t,i,s.$$state,a);s.absUrl()===t&&(e?(s.$$parse(i),s.$$state=a):(l&&d(t,c,a===s.$$state?null:s.$$state),$(i,a)))})))}var t,e;s.$$replace=!1})),s;function $(t,e){n.$broadcast("$locationChangeSuccess",s.absUrl(),t,s.$$state,e)}}]}function yo(t,e){const n=Ge(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=P(n.port)||uo[n.protocol]||null}function vo(t,e,n){if(/^\s*[\\/]{2,}/.test(t))throw po("badpath",'Invalid url "{0}".',t);const r="/"!==t.charAt(0);r&&(t=`/${t}`);const i=Ge(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=tt(i.search),e.$$hash=decodeURIComponent(i.hash),e.$$path&&"/"!==e.$$path.charAt(0)&&(e.$$path=`/${e.$$path}`)}function wo(t,e){return t.slice(0,e.length)===e}function bo(t,e){if(wo(e,t))return e.substr(t.length)}function Eo(t){const e=t.indexOf("#");return-1===e?t:t.substr(0,e)}let Co={debug:void 0,error:void 0,info:void 0,log:void 0,warn:void 0};class xo{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 Co={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)}})()},Co}}function Oo(){this.$get=["$log",t=>new So(t)]}function So(t){const e=this,n={},r=[],i=e.ALL_TASKS_TYPE="$$all$$",s=e.DEFAULT_TASK_TYPE="$$default$$";function o(){const t=r.pop();return t&&t.cb}function a(t){for(let e=r.length-1;e>=0;--e){const n=r[e];if(n.type===t)return r.splice(e,1),n.cb}}e.completeTask=function(e,r){r=r||s;try{e()}finally{!function(t){t=t||s,n[t]&&(n[t]--,n[i]--)}(r);const e=n[r],c=n[i];if(!c||!e){const e=c?a:o;let n;for(;n=e(r);)try{n()}catch(e){t.error(e)}}}},e.incTaskCount=function(t){n[t=t||s]=(n[t]||0)+1,n[i]=(n[i]||0)+1},e.notifyWhenNoPendingTasks=function(t,e){n[e=e||i]?r.push({type:e,cb:t}):t()}}var Ao=ht("$templateRequest");function ko(){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++,w(a)&&!g(n.get(a))||(a=s.getTrustedResourceUrl(a));var l=r.defaults&&r.defaults.transformResponse;return Array.isArray(l)?l=l.filter((function(t){return t!==ro})):l===ro&&(l=null),r.get(a,V({cache:n,transformResponse:l},t)).finally((function(){o.totalPendingRequests--})).then((function(t){return n.put(a,t.data)}),(function(t){c||(t=Ao("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 _o=ht("$timeout");function To(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(t,e,n,r,i){const s={};function o(o,a,c=!0){const l=Q(arguments,3),u=y(c)&&!c,h=(u?r:n).defer(),{promise:p}=h;let d;return d=e.defer((()=>{try{h.resolve(o.apply(null,l))}catch(t){h.reject(t),i(t)}finally{delete s[p.$$timeoutId]}u||t.$apply()}),a,"$timeout"),p.$$timeoutId=d,s[d]=h,p}return o.cancel=function(t){if(!t)return!1;if(!Object.prototype.hasOwnProperty.call(t,"$$timeoutId"))throw _o("badprom","`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.");if(!Object.prototype.hasOwnProperty.call(s,t.$$timeoutId))return!1;const n=t.$$timeoutId,r=s[n];return gs(r.promise),r.reject("canceled"),delete s[n],e.cancel(n)},o}]}function No(){let t=/^\s*(https?|s?ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationTrustedUrlList=function(e){return y(e)?(t=e,this):t},this.imgSrcSanitizationTrustedUrlList=function(t){return y(t)?(e=t,this):e},this.$get=function(){return function(n,r){const i=r?e:t,s=Ge(n&&n.trim()).href;return""===s||s.match(i)?n:`unsafe:${s}`}}}function jo(t){return{link(e,n,r){const i=r.ngAnimateChildren;function s(t){t="on"===t||"true"===t,n.data(jr,t)}w(i)&&0===i.length?n.data(jr,!0):(s(t(i)(e)),r.$observe("ngAnimateChildren",s))}}}jo.$inject=["$interpolate"];const Ro="$$animationRunner",Vo="$$animatePrepareClasses";function Po(){const t="ng-animate-ref",e=this.drivers=[];function n(t){return t.data(Ro)}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),e.addClass=null),e.removeClass&&(t[0].classList.remove(e.removeClass),e.removeClass=null)};return function(u,h,p){p=Yr(p);const d=["enter","move","leave"].indexOf(h)>=0,f=new s({end(){v()},cancel(){v(!0)}});if(!e.length)return v(),f;let $=ft(u.attr("class"),ft(p.addClass,p.removeClass)),{tempClasses:m}=p;return m&&($+=` ${m}`,p.tempClasses=null),d&&u.data(Vo,`ng-${h}${Tr}`),function(t,e){t.data(Ro,e)}(u,f),c.push({element:u,classes:$,event:h,structural:d,options:p,beforeStart:function(){m=(m?`${m} `:"")+Nr,u.className+=` ${m}`;let t=u.data(Vo);t&&(u[0].classList.remove(t),t=null)},close:v}),u.on("$destroy",y),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={};j(e,((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 j(r,(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:_t(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=p.addClass;s=(s?`${s} `:"")+Nr;const o=a.cacheKey(r[0],t.event,s,p.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(Vo);continue}const s=i.data(Vo);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 y(){const t=n(u);!t||"leave"===h&&p.$$domOperationFired||t.end()}function v(t){u.off("$destroy",y),function(t){t.removeData(Ro)}(u),l(u,p),Xr(u,p),p.domOperation(),m&&m.split(" ").forEach((t=>u[0].classList.remove(t))),f.complete(!t)}}}]}function Do(){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()}return t=r.queue=[],r.waitUntilQuiet=t=>{null!==e&&(window.cancelAnimationFrame(e),e=null),e=window.requestAnimationFrame((()=>{e=null,t(),n()}))},r}function Mo(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)}))}))}}}Mo.$inject=["$animate"];const Lo="data-ng-animate",Io="$ngAnimatePin";function qo(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","$rootElement","$$animation","$$AnimateRunner","$templateRequest",function(e,n,i,a,c){const l=new Map,u=new Map;let h=null;function p(t){u.delete(t.target)}const d=e.$watch((()=>0===c.totalPendingRequests),(t=>{t&&(d(),e.$$postDigest((()=>{e.$$postDigest((()=>{null===h&&(h=!0)}))})))})),f=Object.create(null),$=t.customFilter(),m=t.classNameFilter(),b=function(){return!0},E=$||b,C=m?function(t,e){const n=[t.getAttribute("class"),e.addClass,e.removeClass].join(" ");return m.test(n)}:b,x=function(t,e){e.addClass&&(t[0].classList.add(e.addClass),e.addClass=null),e.removeClass&&(t[0].classList.remove(e.removeClass),e.removeClass=null)};function O(t,e){return ni(t,e,{})}const S=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}),_t(e).on("$destroy",(()=>{l.get(r)||_.off(t,e,n)}))},off(t,e,n){if(1===arguments.length&&!w(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(q(t),"element","not an element"),Kr(q(e),"parentElement","not an element"),t.data(Io,e)},push:(t,c,p,d)=>((p=p||{}).domOperation=d,function(t,c,p){let d=p,$=Jr(t);const m=ri($),b=m&&m.parentNode;d=Yr(d);const A=new a,_=function(){let t=!1;return function(n){t?n():e.$$postDigest((()=>{t=!0,n()}))}}();Array.isArray(d.addClass)&&(d.addClass=d.addClass.join(" "));d.addClass&&!w(d.addClass)&&(d.addClass=null);Array.isArray(d.removeClass)&&(d.removeClass=d.removeClass.join(" "));d.removeClass&&!w(d.removeClass)&&(d.removeClass=null);d.from&&!v(d.from)&&(d.from=null);d.to&&!v(d.to)&&(d.to=null);if(!(h&&m&&E(m,c,p)&&C(m,d)))return U(),A;const R=["enter","move","leave"].indexOf(c)>=0;let V=document.hidden||u.get(m);const P=!V&&l.get(m)||{},D=!!P.state;V||D&&1===P.state||(V=!function(t,e){const r=document.body,i=ri(n);let s,o=t===r||"HTML"===t.nodeName,a=t===i,c=!1,h=u.get(t),p=qt(t,Io);p&&(e=ri(p));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=qt(e,jr);y(t)&&(s=t)}if(c&&!1===s)break;if(o||(o=e===r),o&&a)break;e=a||(p=qt(e,Io),!p)?e.parentNode:ri(p)}return(!c||s)&&!0!==h&&a&&o}(m,b));if(V)return document.hidden&&q(A,c,"start",r(d)),U(),document.hidden&&q(A,c,"close",r(d)),A;R&&function(t){const e=t.querySelectorAll(`[${Lo}]`);j(e,(t=>{const e=parseInt(t.getAttribute(Lo),10),n=l.get(t);if(n)switch(e){case 2:n.runner.end();case 1:l.delete(t)}}))}(m);const M={structural:R,element:$,event:c,addClass:d.addClass,removeClass:d.removeClass,close:U,options:d,runner:A};if(D){if(s("skip",M,P))return 2===P.state?(U(),A):(ni($,P,M),P.runner);if(s("cancel",M,P))if(2===P.state)P.runner.end();else{if(!P.structural)return ni($,P,M),P.runner;P.close()}else{if(s("join",M,P)){if(2!==P.state)return function(t,e,n){let r="";e&&(r=Qr(e,kr,!0)),n.addClass&&(r=oi(r,Qr(n.addClass,Sr))),n.removeClass&&(r=oi(r,Qr(n.removeClass,Ar))),r.length&&(n.preparationClasses=r,t[0].className+=` ${r}`)}($,R?c:null,d),c=M.event=P.event,d=ni($,P,M),P.runner;O($,M)}}}else O($,M);let L=M.structural;L||(L="animate"===M.event&&Object.keys(M.options.to||{}).length>0||o(M));if(!L)return U(),T(m),A;const I=(P.counter||0)+1;return M.counter=I,N(m,1,M),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!==I||!s)return n&&(x($,d),Xr($,d)),(n||R&&e.event!==c)&&(d.domOperation(),A.end()),void(s||T(m));c=!e.structural&&o(e,!0)?"setClass":e.event,N(m,2);const a=i($,c,e.options);A.setHost(a),q(A,c,"start",r(d)),a.done((t=>{U(!t);const e=l.get(m);e&&e.counter===I&&T(m),q(A,c,"close",r(d))}))})),A;function q(t,e,n,r){_((()=>{const t=function(t,e,n){const r=[],i=f[n];return i&&i.forEach((i=>{(S.call(i.node,e)||"leave"===n&&S.call(i.node,t))&&r.push(i.callback)})),r}(b,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)}($,d),x($,d),Xr($,d),d.domOperation(),A.complete(!t)}}(t,c,p)),enabled(t,e){const n=arguments.length;if(0===n)e=!!h;else{if(q(t)){const r=ri(t);1===n?e=!u.get(r):(u.has(r)||_t(t).on("$destroy",p),u.set(r,!e))}else e=h=!!t}return e}};return _;function T(t){t.removeAttribute(Lo),l.delete(t)}function N(t,e,n){(n=n||{}).state=e,t.setAttribute(Lo,e);const r=l.get(t),i=r?V(r,n):n;l.set(t,i)}}]}qo.$inject=["$animateProvider"];const Uo="$animId";let Ho=0;const Fo=new Map;function Bo(){return{cacheKey(t,e,n,r){const{parentNode:i}=t,s=[i[Uo]??(i[Uo]=++Ho),e,t.getAttribute("class")];return n&&s.push(n),r&&s.push(r),s.join(" ")},containsCachedAnimationWithoutDuration(t){const e=Fo.get(t);return!!e&&!e.isValid},flush(){Fo.clear()},count:t=>Fo.get(t)?.total??0,get:t=>Fo.get(t)?.value,put(t,e,n){const r=Fo.get(t);r?(r.total++,r.value=e):Fo.set(t,{total:1,value:e,isValid:n})}}}function zo(){this.$get=[Bo]}const Wo="$$animateCss",Go=1e3,Ko=3,Qo=1.5,Jo={transitionDuration:Wr,transitionDelay:zr,transitionProperty:Rr+Lr,animationDuration:Br,animationDelay:Fr,animationIterationCount:Pr+"IterationCount"},Zo={transitionDuration:Wr,transitionDelay:zr,animationDuration:Br,animationDelay:Fr};function Yo(t,e){return[e?Fr:zr,`${t}s`]}function Xo(t,e){const n=Object.create(null),r=window.getComputedStyle(t)||{};return j(e,((t,e)=>{let i=r[t];if(i){const t=i.charAt(0);("-"===t||"+"===t||t>=0)&&(i=function(t){let e=0;return j(t.split(/\s*,\s*/),(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[e]=i}})),n}function ta(t){return 0===t||null!=t}function ea(t,e){let n=Rr,r=`${t}s`;return e?n+=Mr:r+=" linear all",[n,r]}function na(t,e,n){j(n,(n=>{t[n]=y(t[n])?t[n]:e.style.getPropertyValue(n)}))}function ra(){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),e.addClass=null),e.removeClass&&(t[0].classList.remove(e.removeClass),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=Xo(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,Jo),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=Yr(structuredClone(l)));const u={},h=ri(r);if(!h||!h.parentNode||!i.enabled())return W();const p=[],d=function(t){const e={};return t&&(t.to||t.from)&&(e.to=t.to,e.from=t.from),e}(l);let f,$,m,g,y,v,w,b,E,C;const x=[];if(0===l.duration)return W();const O=l.event&&Array.isArray(l.event)?l.event.join(" "):l.event,S=O&&l.structural;let A="",k="";S?A=Qr(O,kr,!0):O&&(A=O),l.addClass&&(k+=Qr(l.addClass,Sr)),l.removeClass&&(k.length&&(k+=" "),k+=Qr(l.removeClass,Ar)),l.applyClassesEarly&&k.length&&s(r,l);let _=[A,k].join(" ").trim();const T=d.to&&Object.keys(d.to).length>0;if(!((l.keyframeStyle||"").length>0)&&!T&&!_)return W();let N,R,V=n.cacheKey(h,O,l.addClass,l.removeClass);if(n.containsCachedAnimationWithoutDuration(V))return _=null,W();if(l.stagger>0){const t=parseFloat(l.stagger);N={transitionDelay:t,animationDelay:t,transitionDuration:0,animationDuration:0}}else N=function(t,e,r,i){let s;const o=`stagger-${r}`;if(n.count(r)>0&&(s=n.get(o),!s)){const r=Qr(e,"-stagger");t.className+=` ${r}`,s=Xo(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,_,V,Zo);if(l.$$skipPreparationClasses||r[0].classList.add(_),l.transitionStyle){const t=[Rr,l.transitionStyle];si(h,t),p.push(t)}if(l.duration>=0){R=h.style[Rr].length>0;const t=ea(l.duration,R);si(h,t),p.push(t)}if(l.keyframeStyle){const t=[Pr,l.keyframeStyle];si(h,t),p.push(t)}const P=N?l.staggerIndex>=0?l.staggerIndex:n.count(V):0,D=0===P;D&&!l.skipBlocking&&ia(h,Hr);let M=c(h,V,!S),L=M.maxDelay;v=Math.max(L,0),b=M.maxDuration;const I={};if(I.hasTransitions=M.transitionDuration>0,I.hasAnimations=M.animationDuration>0,I.hasTransitionAll=I.hasTransitions&&"all"===M.transitionProperty,I.applyTransitionDuration=T&&(I.hasTransitions&&!I.hasTransitionAll||I.hasAnimations&&!I.hasTransitions),I.applyAnimationDuration=l.duration&&I.hasAnimations,I.applyTransitionDelay=ta(l.delay)&&(I.applyTransitionDuration||I.hasTransitions),I.applyAnimationDelay=ta(l.delay)&&I.hasAnimations,I.recalculateTimingStyles=k.length>0,(I.applyTransitionDuration||I.applyAnimationDuration)&&(b=l.duration?parseFloat(l.duration):b,I.applyTransitionDuration&&(I.hasTransitions=!0,M.transitionDuration=b,R=h.style[Rr+Lr].length>0,p.push(ea(b,R))),I.applyAnimationDuration&&(I.hasAnimations=!0,M.animationDuration=b,p.push([Br,`${b}s`]))),0===b&&!I.recalculateTimingStyles)return W();var q,U=Qr(_,_r);null!=l.delay&&("boolean"!=typeof l.delay&&(q=parseFloat(l.delay),v=Math.max(q,0)),I.applyTransitionDelay&&p.push(Yo(q)),I.applyAnimationDelay&&p.push(Yo(q,!0)));return null==l.duration&&M.transitionDuration>0&&(I.recalculateTimingStyles=I.recalculateTimingStyles||D),w=v*Go,E=b*Go,l.skipBlocking||(I.blockTransition=M.transitionDuration>0,I.blockKeyframeAnimation=M.animationDuration>0&&N.animationDelay>0&&0===N.animationDuration),l.from&&(l.cleanupStyles&&na(u,h,Object.keys(l.from)),ti(0,l)),I.blockTransition||I.blockKeyframeAnimation?z(b):l.skipBlocking||ia(h,!1),{$$willAnimate:!0,end:H,start(){if(!f)return y={end:H,cancel:F,resume:null,pause:null},g=new t(y),a(K),g}};function H(){B()}function F(){B(!0)}function B(t){if(f||m&&$)return;f=!0,$=!1,_&&!l.$$skipPreparationClasses&&_.split(" ").forEach((function(t){r[0].classList.remove(t)})),(U=Qr(_,_r))&&U.split(" ").forEach((function(t){r[0].classList.remove(t)})),ii(h,!1),ia(h,!1),j(p,(t=>{h.style[t[0]]=""})),s(r,l),Xr(r,l),Object.keys(u).length&&j(u,((t,e)=>{t?h.style.setProperty(e,t):h.style.removeProperty(e)})),l.onDone&&l.onDone(),x&&x.length&&r.off(x.join(" "),G);const n=r.data(Wo);n&&(e.cancel(n[0].timer),r.removeData(Wo)),g&&g.complete(!t)}function z(t){I.blockTransition&&ia(h,t),I.blockKeyframeAnimation&&ii(h,!!t)}function W(){return g=new t({end:H,cancel:F}),a((()=>{})),B(),{$$willAnimate:!1,start:()=>g,end:H}}function G(t){t.stopPropagation();const e=t.originalEvent||t;if(e.target!==h)return;const n=e.$manualTimeStamp||Date.now(),r=parseFloat(e.elapsedTime.toFixed(Ko));Math.max(n-C,0)>=w&&r>=b&&(m=!0,B())}function K(){if(f)return;if(!h.parentNode)return void B();const t=function(t){if(m)$&&t&&($=!1,B());else if($=!t,M.animationDuration){const t=ii(h,$);$?p.push(t):function(t,e){const n=t.indexOf(e);e>=0&&t.splice(n,1)}(p,t)}},i=P>0&&(M.transitionDuration&&0===N.transitionDuration||M.animationDuration&&0===N.animationDuration)&&Math.max(N.animationDelay,N.transitionDelay);function o(){if(f)return;if(z(!1),j(p,(t=>{const e=t[0],n=t[1];h.style[e]=n})),s(r,l),r[0].classList.add(U),I.recalculateTimingStyles){if(V=n.cacheKey(h,O,l.addClass,l.removeClass),M=c(h,V,!1),L=M.maxDelay,v=Math.max(L,0),b=M.maxDuration,0===b)return void B();I.hasTransitions=M.transitionDuration>0,I.hasAnimations=M.animationDuration>0}if(I.applyAnimationDelay&&(L="boolean"!=typeof l.delay&&ta(l.delay)?parseFloat(l.delay):L,v=Math.max(L,0),M.animationDelay=L,q=Yo(L,!0),p.push(q),h.style[q[0]]=q[1]),w=v*Go,E=b*Go,l.easing){let t;const e=l.easing;I.hasTransitions&&(t=Rr+qr,p.push([t,e]),h.style[t]=e),I.hasAnimations&&(t=Pr+qr,p.push([t,e]),h.style[t]=e)}M.transitionDuration&&x.push(Vr),M.animationDuration&&x.push(Dr),C=Date.now();const t=w+Qo*E,i=C+t,o=r.data(Wo)||[];let d=!0;if(o.length){const t=o[0];d=i>t.expectedEndTime,d?e.cancel(t.timer):o.push(B)}if(d){const n=e(a,t,!1);o[0]={timer:n,expectedEndTime:i},o.push(B),r.data(Wo,o)}x.length&&r.on(x.join(" "),G),l.to&&(l.cleanupStyles&&na(u,h,Object.keys(l.to)),ei(0,l))}function a(){const t=r.data(Wo);if(t){for(let e=1;e<t.length;e++)t[e]();r.removeData(Wo)}}i?e(o,Math.floor(i*P*Go),!1):o(),y.resume=function(){t(!0)},y.pause=function(){t(!1)}}}}]}function ia(t,e){const n=e?`-${e}s`:"";return si(t,[zr,n]),[zr,n]}const sa="ng-animate-shim",oa="ng-anchor",aa="ng-anchor-out",ca="ng-anchor-in";function la(t){t.drivers.push("$$animateCssDriver"),this.$get=["$animateCss","$$AnimateRunner","$rootElement",function(t,e,n){const r=document.body,i=n[0],s=_t((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=_t(ri(n).cloneNode(!0)),a=ua(d(o));let c;n[0].classList.add(sa),i[0].classList.add(sa),o[0].classList.add(oa),s.append(o);const l=p();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 p(){const e=t(o,{addClass:aa,delay:!0,from:h(n)});return e.$$willAnimate?e:null}function d(t){return t.attr("class")||""}function f(){const e=ua(d(i)),n=ha(e,a),r=ha(a,e),s=t(o,{to:h(i),addClass:`${ca} ${n}`,removeClass:`${aa} ${r}`,delay:!0});return s.$$willAnimate?s:null}function $(){o.remove(),n[0].classList.remove(sa),i[0].classList.remove(sa)}}(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()),j(u,(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 ua(t){return t.replace(/\bng-\S+\b/g,"")}function ha(t,e){return w(t)&&(t=t.split(" ")),w(e)&&(e=e.split(" ")),t.filter((t=>-1===e.indexOf(t))).join(" ")}function pa(t){this.$get=["$injector","$$AnimateRunner",function(e,n){const r=function(t,e){e.addClass&&(t[0].classList.add(e.addClass),e.addClass=null),e.removeClass&&(t[0].classList.remove(e.removeClass),e.removeClass=null)};return function(i,s,o,a){let c=!1;3===arguments.length&&v(o)&&(a=o,o=null),a=Yr(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 p,d,f;if(h.length){let t,e;"leave"===s?(e="leave",t="afterLeave"):(e=`before${s.charAt(0).toUpperCase()}${s.substr(1)}`,t=s),"enter"!==s&&"move"!==s&&(p=y(i,s,a,h,e)),d=y(i,s,a,h,t)}if(p||d)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 p&&e.push((e=>{t=p(e)})),e.length?e.push((t=>{$(),t(!0)})):$(),d&&e.push((e=>{t=d(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 j(i,(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(x(a.start)&&(a=a.start()),a instanceof n)a.done(s);else if(x(a))return a;return()=>{}}(a,t,e,r,(t=>{c(!1===t)})),i}))})),o}function y(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&&j(o,(t=>{e.push(t())})),e.length?n.all(e,t):t(),function(t){j(e,(e=>{t?e.cancel():e.end()}))}}}}}]}function da(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(){j(t,(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 fa(t){const e="ng-active",n="ng-inactive";return{require:"ngMessages",restrict:"AE",controller:["$element","$scope","$attrs",function(s,o,a){const c=this;let l=0,u=0;this.head=void 0,this.default=void 0,this.getAttachId=function(){return u++};const h=this.messages={};let p,d;function f(t,e){let n=e;const r=[];for(;n&&n!==t;){const t=n.$$ngMessageNode;if(t&&t.length)return h[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))}}this.render=function(l){p=!1,d=l=l||{};const u=r(o,a.ngMessagesMultiple)||r(o,a.multiple),h=[],f={};let $=0,m=c.head,g=!1,y=0;for(;null!=m;){y++;const t=m.message;let e=!1;g||j(l,((n,r)=>{if(i(n)&&!e&&($++,t.test(r))){if(f[r])return;f[r]=!0,e=!0,t.attach()}})),e?g=!u:h.push(t),m=m.next}j(h,(t=>{t.detach()}));const v=h.length!==y,w=c.default&&!v&&$>0;w?c.default.attach():c.default&&c.default.detach(),v||w?t.setClass(s,e,n):t.setClass(s,n,e)},o.$watchCollection(a.ngMessages||a.for,c.render),this.reRender=function(){p||(p=!0,o.$evalAsync((()=>{p&&d&&c.render(d)})))},this.register=function(t,e,n){if(n)c.default=e;else{const n=l.toString();h[n]={message:e},function(t,e,n){const r=h[n];if(c.head){const n=f(t,e);n?(r.next=n.next,n.next=r):(r.next=c.head,c.head=r)}else c.head=r}(s[0],t,n),t.$$ngMessageNode=n,l++}c.reRender()},this.deregister=function(t,e){if(e)delete c.default;else{const e=t.$$ngMessageNode;delete t.$$ngMessageNode,function(t,e,n){const r=h[n];if(!r)return;const i=f(t,e);i?i.next=r.next:c.head=r.next}(s[0],t,e),delete h[e]}c.reRender()}}]};function r(t,e){return w(e)&&0===e.length||i(t.$eval(e))}function i(t){return w(t)?t.length:!!t}}function $a(t,e){return{restrict:"AE",require:"^^ngMessages",link(n,r,i){const s=i.ngMessagesInclude||i.src;t(s).then((t=>{n.$$destroyed||w(t)&&!t.trim()||e(t)(n,(t=>{r.after(t)}))}))}}}la.$inject=["$$animationProvider"],pa.$inject=["$animateProvider"],da.$inject=["$$animationProvider"],fa.$inject=["$animate"],$a.$inject=["$templateRequest","$compile"];const ma=va(!1),ga=va(!1),ya=va(!0);function va(t){return["$animate",function(e){return{restrict:"AE",transclude:"element",priority:1,terminal:!0,require:"^^ngMessages",link(n,r,i,s,o){let a,c,l,u,h,p;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,p={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),p.detach()),i.$destroy()}))}))},detach(){if(h){const t=h;h=null,e.leave(t)}}},t),n.$on("$destroy",(()=>{s.deregister(a,t)}))}}}]}const wa="ngAriaDisable";const ba=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],Ea=function(t,e){if(-1!==e.indexOf(t[0].nodeName))return!0};function Ca(){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,wa))return;const c=a.$normalize(n);!t[c]||Ea(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}}}const xa={$q:void 0,$injector:void 0};function Oa(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 Sa(){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 Aa(){return Sa.apply(null,[].slice.call(arguments).reverse())}const ka=t=>e=>e&&e[t],_a=Oa(((t,e,n)=>n&&n[t]===e)),Ta=t=>Aa.apply(null,t.split(".").map(ka)),Na=t=>(...e)=>!t.apply(null,e);function ja(t,e){return(...n)=>t.apply(null,n)||e.apply(null,n)}const Ra=t=>e=>e.reduce(((e,n)=>e&&!!t(n)),!0),Va=t=>e=>e.reduce(((e,n)=>e||!!t(n)),!1),Pa=t=>e=>null!=e&&e.constructor===t||e instanceof t,Da=t=>()=>t;function Ma(t){return function(e){for(let n=0;n<t.length;n++)if(t[n][0](e))return t[n][1](e)}}const La=JSON.parse.bind(JSON),Ia=JSON.stringify.bind(JSON),qa=function(t,e,n){if(Array.isArray(t))return t.forEach(e,n);Object.keys(t).forEach((n=>e(t[n],n)))},Ua=dc;function Ha(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 Fa(t,e){const n=Object.create(t);return e&&Object.assign(n,e),n}const Ba=Oa((function(t,e){return t.includes(e)}));const za=Oa((function(t,e){const n=t.indexOf(e);n>=0&&t.splice(n,1);return t}));const Wa=Oa(((t,e)=>(t.push(e),e)));function Ga(t,...e){const n=Object.assign({},...e.reverse());return Object.assign(n,Qa(t||{},Object.keys(n)))}const Ka=(t,e)=>Object.assign(t,e);function Qa(t,e){const n={};for(const r in t)-1!==e.indexOf(r)&&(n[r]=t[r]);return n}function Ja(t,e){return Object.keys(t).filter(Na(Ba(e))).reduce(((e,n)=>(e[n]=t[n],e)),{})}function Za(t,e){const n=Array.isArray(t),r=n?[]:{},i=n?t=>r.push(t):(t,e)=>r[e]=t;return qa(t,(function(t,n){e(t,n)&&i(t,n)})),r}function Ya(t,e){let n;return qa(t,(function(t,r){n||e(t,r)&&(n=t)})),n}let Xa=tc;function tc(t,e,n){return n=n||(Array.isArray(t)?[]:{}),qa(t,((t,r)=>n[r]=e(t,r))),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)=>Ba(t,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),!w(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 pc(t,e){return e&&Object.keys(e).forEach((t=>delete e[t])),e||(e={}),Object.assign(e,t)}function dc(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(Ra(Array.isArray)(r))return s=e,(i=t).length===s.length&&lc(i,s).reduce(((t,e)=>t&&dc(e[0],e[1])),!0);var i,s;if(Ra(E)(r))return t.getTime()===e.getTime();if(Ra(O)(r))return t.toString()===e.toString();if(Ra(x)(r))return!0;if([x,Array.isArray,E,O].map(Va).reduce(((t,e)=>t||!!e(r)),!1))return!1;const o={};for(const n in t){if(!dc(t[n],e[n]))return!1;o[n]=!0}for(const t in e)if(!o[t])return!1;return!0}const fc=t=>t.catch((()=>0))&&t,$c=t=>fc(xa.$q.reject(t)),mc=t=>null===t,gc=ja(mc,g);function yc(t){if(Array.isArray(t)&&t.length){const e=t.slice(0,-1),n=t.slice(-1);return!(e.filter(Na(w)).length||n.filter(Na(x)).length)}return x(t)}const vc=(wc=v,bc=Aa(ka("then"),x),(...t)=>wc.apply(null,t)&&bc.apply(null,t));var wc,bc;function Ec(t,e){return e.length<=t?e:e.substr(0,t-3)+"..."}function Cc(t){return t.replace(/^([A-Z])/,(t=>t.toLowerCase())).replace(/([A-Z])/g,(t=>"-"+t.toLowerCase()))}function xc(t){const e=Oc(t),n=e.match(/^(function [^ ]+\([^)]*\))/),r=n?n[1]:e,i=t.name||"";return i&&r.match(/function \(/)?"function "+i+r.substr(9):r}function Oc(t){const e=Array.isArray(t)?t.slice(-1)[0]:t;return e&&e.toString()||"undefined"}function Sc(t){const e=[],n=Ma([[g,Da("undefined")],[mc,Da("null")],[vc,Da("[Promise]")],[t=>t&&"function"==typeof t.then&&"Rejection"==t.constructor.name,t=>t._transitionRejection.toString()],[t=>v(t)&&!Array.isArray(t)&&t.constructor!==Object&&x(t.toString),t=>t.toString()],[yc,xc],[Da(!0),t=>t]]);function r(t){if(v(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 Ac(t,e){return w(hc(t))&&w(e)?t.slice(0,-1).concat(hc(t)+e):sc(t,e)}function kc(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 _c(t){return b(t)?Tc[t]:Tc[Tc[t]]}var Tc;!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"}(Tc||(Tc={}));const Nc=Ta("$id"),jc=Ta("router.$id"),Rc=t=>`Transition #${Nc(t)}-${jc(t)}`;const Vc=new class{constructor(){this._enabled={},this.approximateDigests=0}_set(t,e){e.length||(e=Object.keys(Tc).map((t=>parseInt(t,10))).filter((t=>!isNaN(t))).map((t=>Tc[t]))),e.map(_c).forEach((e=>this._enabled[e]=t))}enable(...t){this._set(!0,t)}disable(...t){this._set(!1,t)}enabled(t){return!!this._enabled[_c(t)]}traceTransitionStart(t){this.enabled(Tc.TRANSITION)&&console.log(`${Rc(t)}: Started -> ${Sc(t)}`)}traceTransitionIgnored(t){this.enabled(Tc.TRANSITION)&&console.log(`${Rc(t)}: Ignored <> ${Sc(t)}`)}traceHookInvocation(t,e,n){if(!this.enabled(Tc.HOOK))return;const r=Ta("traceData.hookType")(n)||"internal",i=Ta("traceData.context.state.name")(n)||Ta("traceData.context")(n)||"unknown",s=xc(t.registeredHook.callback);console.log(`${Rc(e)}: Hook -> ${r} context: ${i}, ${Ec(200,s)}`)}traceHookResult(t,e){this.enabled(Tc.HOOK)&&console.log(`${Rc(e)}: <- Hook returned: ${Ec(200,Sc(t))}`)}traceResolvePath(t,e,n){this.enabled(Tc.RESOLVE)&&console.log(`${Rc(n)}: Resolving ${t} (${e})`)}traceResolvableResolved(t,e){this.enabled(Tc.RESOLVE)&&console.log(`${Rc(e)}: <- Resolved ${t} to: ${Ec(200,Sc(t.data))}`)}traceError(t,e){this.enabled(Tc.TRANSITION)&&console.log(`${Rc(e)}: <- Rejected ${Sc(e)}, reason: ${t}`)}traceSuccess(t,e){this.enabled(Tc.TRANSITION)&&console.log(`${Rc(e)}: <- Success ${Sc(e)}, final state: ${t.name}`)}traceUIViewEvent(t,e,n=""){this.enabled(Tc.UIVIEW)&&console.log(`ui-view: ${function(t,e){for(;e.length<t;)e+=" ";return e}(30,t)} ${kc(e)}${n}`)}traceUIViewConfigUpdated(t,e){this.enabled(Tc.UIVIEW)&&this.traceUIViewEvent("Updating",t,` with ViewConfig from context='${e}'`)}traceUIViewFill(t,e){this.enabled(Tc.UIVIEW)&&this.traceUIViewEvent("Fill",t,` with: ${Ec(200,e)}`)}traceViewSync(t){if(!this.enabled(Tc.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(Tc.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(Tc.VIEWCONFIG)&&console.log(`VIEWCONFIG: ${t} ${kc(e)}`)}};function Pc(t,e,n,r){if(xa.$injector=t,xa.$q=e,!Object.prototype.hasOwnProperty.call(t,"strictDi"))try{t.invoke((()=>{}))}catch(e){t.strictDi=!!/strict mode/.exec(e&&e.toString())}n.get().map((t=>t.$$state().resolvables)).reduce(rc,[]).filter((t=>"deferred"===t.deps)).forEach((e=>e.deps=Ee(e.resolveFn,t.strictDi))),r.listen()}function Dc(t){t.$watch((function(){Vc.approximateDigests++}))}Pc.$inject=["$injector","$q","$stateRegistry","$urlService"],Dc.$inject=["$rootScope"];let Mc="LAZY",Lc="WAIT";class Ic{constructor(t,e,n,r,i){if(this.resolved=!1,this.promise=void 0,t instanceof Ic)Object.assign(this,t);else if(x(e)){if(gc(t))throw new Error("new Resolvable(): token argument is required");if(!x(e))throw new Error("new Resolvable(): resolveFn argument must be a function");this.token=t,this.policy=r,this.resolveFn=e,this.deps=n||[],this.data=i,this.resolved=void 0!==i,this.promise=this.resolved?xa.$q.when(this.data):void 0}else if(v(t)&&t.token&&(Object.prototype.hasOwnProperty.call(t,"resolveFn")||Object.prototype.hasOwnProperty.call(t,"data"))){const e=t;return new Ic(e.token,e.resolveFn,e.deps,e.policy,e.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=xa.$q,r=t.findNode(this),i=r&&r.state,s=this.getPolicy(i).async,o=x(s)?s:t=>t;return this.promise=n.when().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,Vc.traceResolvableResolved(this,e),this.data)))}get(t,e){return this.promise||this.resolve(t,e)}toString(){return`Resolvable(token: ${Sc(this.token)}, requires: [${this.deps.map(Sc)}])`}clone(){return new Ic(this)}}Ic.fromData=(t,e)=>new Ic(t,(()=>e),null,null,e);class qc{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.when(t).then((t=>({template:t}))),i=t=>this.$q.when(t).then((t=>({component:t})));switch((t=>y(t.template)?"template":y(t.templateUrl)?"templateUrl":y(t.templateProvider)?"templateProvider":y(t.component)?"component":y(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 x(t)?t(e):t}fromUrl(t,e){return x(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=Ee(t),i=Array.isArray(t)?hc(t):t;return new Ic("",i,r).get(n)}fromComponentProvider(t,e,n){const r=Ee(t),i=Array.isArray(t)?hc(t):t;return new Ic("",i,r).get(n)}makeComponentTemplate(t,e,n,r){r=r||{};const i=t=>{const e=Cc(t);return/^(x|data)-/.exec(e)?`x-${e}`:e},s=function(t){const e=xa.$injector.get(t+"Directive");if(!e||!e.length)throw new Error(`Unable to find component named '${t}'`);return e.map(Uc).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&&Ee(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 Uc=t=>v(t.bindToController)?Hc(t.bindToController):Hc(t.scope),Hc=t=>Object.keys(t||{}).map((e=>[e,/^([=<@&])[?]?(.*)/.exec(t[e])])).filter((t=>y(t)&&Array.isArray(t[1]))).map((t=>({name:t[1][2]||t[0],type:t[1][1]})));function Fc(){let t=!1;this.useAnchorScroll=function(){t=!0},this.$get=["$anchorScroll","$timeout",(e,n)=>t?e:function(t){return n((function(){t[0].scrollIntoView()}),0,!1)}]}function Bc(t){const e=function(e,n,r){return t.is(e,n,r)};return e.$stateful=!0,e}function zc(t){const e=function(e,n,r){return t.includes(e,n,r)};return e.$stateful=!0,e}function Wc(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 Gc(t){const e=t.parent().inheritedData("$ngView"),n=Ta("$cfg.path")(e);return n?hc(n).state.name:void 0}function Kc(t,e,n){const r=n.ngState||t.current.name,i=Object.assign(function(t,e){return{relative:Gc(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 Qc(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 Jc(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 Zc(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 Yc(t,e,n,r){const i=t;return{restrict:"A",require:["?^ngSrefActive","?^ngSrefActiveEq"],link:(t,s,o,a)=>{const c=Qc(s),l=a[1]||a[0];let u=null;const h={},p=()=>Kc(i,s,h),d=Wc(o.ngSref);function f(){const t=p();u&&u(),l&&(u=l.$$addStateInfo(t.ngState,t.ngStateParams)),null!=t.href&&o.$set(c.attr,t.href)}if(h.ngState=d.state,h.ngStateOpts=o.ngSrefOpts?t.$eval(o.ngSrefOpts):{},d.paramExpr&&(t.$watch(d.paramExpr,(function(t){h.ngStateParams=Object.assign({},t),f()}),!0),h.ngStateParams=Object.assign({},t.$eval(d.paramExpr))),f(),t.$on("$destroy",n.onStatesChanged(f)),t.$on("$destroy",r.onSuccess({},f)),!c.clickable)return;const $=Jc(s,i,e,c,p);Zc(s,t,$,h.ngStateOpts)}}}function Xc(t,e,n,r){return{restrict:"A",require:["?^ngSrefActive","?^ngSrefActiveEq"],link:function(i,s,o,a){const c=Qc(s),l=a[1]||a[0];let u,h=null;const p={},d=()=>Kc(t,s,p),f=["ngState","ngStateParams","ngStateOpts"],$=f.reduce(((t,e)=>(t[e]=()=>{},t)),{});function m(){const t=d();h&&h(),l&&(h=l.$$addStateInfo(t.ngState,t.ngStateParams)),null!=t.href&&o.$set(c.attr,t.href)}f.forEach((t=>{p[t]=o[t]?i.$eval(o[t]):null,o.$observe(t,(e=>{$[t](),$[t]=i.$watch(e,(e=>{p[t]=e,m()}),!0)}))})),m(),i.$on("$destroy",n.onStatesChanged(m)),i.$on("$destroy",r.onSuccess({},m)),c.clickable&&(u=Jc(s,t,e,c,d),Zc(s,i,u,p.ngStateOpts))}}}function tl(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 p(){d(l)}function d(t){v(t)&&(u=[],qa(t,(function(t,e){const n=function(t,e){const n=Wc(t);f(n.state,s.$eval(n.paramExpr),e)};w(t)?n(t,e):Array.isArray(t)&&qa(t,(function(t){n(t,e)}))})))}function f(e,n,r){const i={state:t.get(e,Gc(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(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=>!Ba(l,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),d(l),this.$$addStateInfo=function(t,e){if(v(l)&&u.length>0)return;const n=f(t,e,l);return $(),n},s.$on("$destroy",function(){const t=r.onStatesChanged(p),e=i.onStart({},h),n=s.$on("$stateChangeSuccess",$);return function(){t(),e(),n()}}()),e.transition&&h(e.transition),$()}}}Bc.$inject=["$state"],zc.$inject=["$state"],Yc.$inject=["$state","$timeout","$stateRegistry","$transitions"],Xc.$inject=["$state","$timeout","$stateRegistry","$transitions"],tl.$inject=["$state","$routerGlobals","$interpolate","$stateRegistry","$transitions"];class el{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()}'${Sc(this.params())}`}withState(t){return new el(this._stateRegistry,t,this._params,this._options)}withParams(t,e=!1){const n=e?t:Object.assign({},this._params,t);return new el(this._stateRegistry,this._identifier,n,this._options)}withOptions(t,e=!1){const n=e?t:Object.assign({},this._options,t);return new el(this._stateRegistry,this._identifier,this._params,n)}}el.isDef=t=>t&&t.state&&(w(t.state)||v(t.state)&&w(t.state.name));class nl{constructor(t){this.pattern=/.*/,this.inherit=!0,Object.assign(this,t),this.name=void 0}is(t){return!0}encode(t){return t}decode(t){return t}equals(t,e){return t==e}$subPattern(){const t=this.pattern.toString();return t.substr(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 rl(this,t)}}function rl(t,e){function n(t){return Array.isArray(t)?t:y(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===Za(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})}const il=t=>0===["value","type","squash","array","dynamic"].filter(Object.prototype.hasOwnProperty.bind(t||{})).length;var sl;function ol(t,e,n){const r=!1===n.reloadOnSearch&&e===sl.SEARCH||void 0,i=Ya([n.dynamic,r],y),s=y(i)?{dynamic:i}:{},o=function(t){function e(){return t.value}t=il(t)?{value:t}:t,e.__cacheable=!0;const n=yc(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"}(sl||(sl={}));class al{constructor(t,e,n,r,i){const s=ol(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===sl.CONFIG?"any":n===sl.PATH?"path":n===sl.SEARCH?"query":"string";return i.type(t)}return t.type instanceof nl?t.type:i.type(t.type)}(s,e,n,t,r.paramTypes);const o=function(){const e={array:n===sl.SEARCH&&"auto"},r=t.match(/\[\]$/)?{array:!0}:{};return Object.assign(e,r,s).array}();e=o?e.$asArray(o,n===sl.SEARCH):e;const a=void 0!==s.value||n===sl.SEARCH,c=y(s.dynamic)?!!s.dynamic:!!e.dynamic,l=y(s.raw)?!!s.raw:!!e.raw,u=function(t,e,n){const r=t.squash;if(!e||!1===r)return!1;if(!y(r)||null==r)return n;if(!0===r||w(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:[];w(r)&&s.push({from:r,to:void 0});const o=tc(s,ka("from"));return Za(i,(t=>-1===o.indexOf(t.from))).concat(s)}(s,o,a,u),p=y(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=p,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(!xa.$injector)throw new Error("Injectable functions cannot be called at configuration time");const t=xa.$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===sl.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!(w(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===al.changed(t,e,n).length}static validates(t,e={}){return t.map((t=>t.validates(e[t.id]))).reduce(ec,!0)}}class cl{constructor(t){if(t instanceof cl){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 cl(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 Ya(this.paramSchema,_a("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 al.changed(n,this.paramValues,t.paramValues)}}cl.clone=t=>t.clone();class ll{static makeTargetState(t,e){const n=hc(e).state;return new el(t,n,e.map(ka("paramValues")).reduce(Ka,{}),{})}static buildPath(t){const e=t.params();return t.$state().path.map((t=>new cl(t).applyRawParams(e)))}static buildToPath(t,e){const n=ll.buildPath(e);return e.options().inherit?ll.inheritParams(t,n,Object.keys(e.params())):n}static applyViewConfigs(t,e,n){e.filter((t=>Ba(n,t.state))).forEach((n=>{const r=Object.values(n.state.views||{}),i=ll.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(ka("id"));return e.map((function(e){let i=Object.assign({},e&&e.paramValues);const s=Qa(i,n);i=Ja(i,n);const o=Ja(function(t,e){const n=Ya(t,_a("state",e));return Object.assign({},n&&n.paramValues)}(t,e.state)||{},r),a=Object.assign(i,o,s);return new cl(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,ll.nonDynamicParams));)i++;var s,o;let a,c,l,u,h;a=t,c=a.slice(0,i),l=a.slice(i);const p=c.map((function(t,n){const r=t.clone();return r.paramValues=e[n].paramValues,r}));return u=e.slice(i),h=p.concat(u),{from:a,to:h,retained:c,retainedWithToParams:p,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&&ll.matching(t,e,n).length===t.length}static subPath(t,e){const n=Ya(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)),{})}}let ul={LAZY:"LAZY",EAGER:"EAGER"};const hl=ul,pl=[hl.EAGER,hl.LAZY],dl=[hl.EAGER];class fl{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.state)}subContext(t){return new fl(ll.subPath(this._path,(e=>e.state===t)))}addResolvables(t,e){const n=Ya(this._path,_a("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=(Ba(pl,t)?t:"LAZY")===ul.EAGER?dl:pl;Vc.traceResolvePath(this._path,t,e);const r=(t,e)=>n=>Ba(t,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(Na(r(["NOWAIT"],"async"))),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 xa.$q.all(i)}injector(){return this._injector||(this._injector=new $l(this))}findNode(t){return Ya(this._path,(e=>Ba(e.resolvables,t)))}getDependencies(t){const e=this.findNode(t),n=(ll.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=this.injector().getNative(t);if(g(r))throw new Error("Could not find Dependency Injection token: "+Sc(t));return new Ic(t,(()=>r),[],r)}))}}class $l{constructor(t){this.context=t,this.native=this.get("Native Injector")||xa.$injector}get(t){const e=this.context.getResolvable(t);if(e){if("NOWAIT"===this.context.getPolicy(e).async)return e.get(this.context);if(!e.resolved)throw new Error("Resolvable async .get() not complete:"+Sc(e.token));return e.data}return this.getNative(t)}getAsync(t){const e=this.context.getResolvable(t);return e?e.get(this.context):xa.$q.when(this.native.get(t))}getNative(t){return this.native&&this.native.get(t)}}const ml=(t,e)=>t.reduce(((t,n)=>t||y(e[n])),!1);function gl(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(y(t.views)&&ml(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=>y(t[e]))).join(", ")}`);const i={},s=t.views||{$default:Qa(t,r)};return qa(s,(function(r,s){if(s=s||"$default",w(r)&&(r={component:r}),r=Object.assign({},r),ml(e,r)&&ml(n,r))throw new Error(`Cannot combine: ${e.join("|")} with: ${n.join("|")} in stateview: '${s}@${t.name}'`);r.resolveAs=r.resolveAs||"$resolve",r.$type="ng1",r.$context=t,r.$name=s;const o=vl.normalizeUIViewTarget(r.$context,r.$name);r.$ngViewName=o.ngViewName,r.$ngViewContextAnchor=o.ngViewContextAnchor,i[s]=r})),i}let yl=0;class vl{constructor(t,e,n){this.path=t,this.viewDecl=e,this.factory=n,this.component=void 0,this.template=void 0,this.$id=yl++,this.loaded=!1,this.getTemplate=(t,e)=>this.component?this.factory.makeComponentTemplate(t,e,this.component,this.viewDecl.bindings):this.template}load(){const t=xa.$q,e=new fl(this.path),n=this.path.reduce(((t,e)=>Object.assign(t,e.paramValues)),{}),r={template:t.when(this.factory.fromConfig(this.viewDecl,n,e)),controller:t.when(this.getController(e))};return t.all(r).then((t=>(Vc.traceViewServiceEvent("Loaded",this),this.controller=t.controller,Object.assign(this,t.template),this)))}getController(t){const e=this.viewDecl.controllerProvider;if(!yc(e))return this.viewDecl.controller;const n=Ee(e),r=Array.isArray(e)?hc(e):e;return new Ic("",r,n).get(t)}static normalizeUIViewTarget(t,e=""){const n=e.split("@");let r=n[0]||"$default",i=w(n[1])?n[1]:"^";const s=/^(\^(?:\.\^)*)\.(.*$)/.exec(r);s&&(i=s[1],r=s[2]),"!"===r.charAt(0)&&(r=r.substr(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 wl{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=w(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 bl(t){return t.self.$$state=()=>t,t.self}function El(t){return t.parent&&t.parent.data&&(t.data=t.self.data=Fa(t.parent.data,t.data)),t.data}const Cl=(t,e)=>function(n){let r=n.self;if(r&&r.url&&r.name&&r.name.match(/\.\*\*$/)){const t={};pc(r,t),t.url+="{remainder:any}",r=t}const i=n.parent,s=(t=>{if(!w(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)},xl=t=>function(e){return!t(e)&&e.url?e:e.parent?e.parent.navigable:null};function Ol(t){return t.parent&&!t.abstract?t.parent.path.concat(t):[t]}function Sl(t){const e=t.parent?Object.assign({},t.parent.includes):{};return e[t.name]=!0,e}function Al(t){const e=t=>t.provide||t.token,n=Ma([[ka("resolveFn"),t=>new Ic(e(t),t.resolveFn,t.deps,t.policy)],[ka("useFactory"),t=>new Ic(e(t),t.useFactory,t.deps||t.dependencies,t.policy)],[ka("useClass"),t=>new Ic(e(t),(()=>new t.useClass),[],t.policy)],[ka("useValue"),t=>new Ic(e(t),(()=>t.useValue),[],t.policy,t.useValue)],[ka("useExisting"),t=>new Ic(e(t),(t=>t),[t.useExisting],t.policy)]]),r=Ma([[Aa(ka("val"),w),t=>new Ic(t.token,(t=>t),[t.val],t.policy)],[Aa(ka("val"),Array.isArray),t=>new Ic(t.token,hc(t.val),t.val.slice(0,-1),t.policy)],[Aa(ka("val"),x),t=>new Ic(t.token,t.val,(t=>{const e=xa.$injector;return t.$inject||e&&Ee(t,e.strictDi)||"deferred"})(t.val),t.policy)]]),i=Ma([[Pa(Ic),t=>t],[t=>!(!t.token||!t.resolveFn),n],[t=>!(!t.provide&&!t.token||!(t.useValue||t.useFactory||t.useExisting||t.useClass)),n],[t=>!!(t&&t.val&&(w(t.val)||Array.isArray(t.val)||x(t.val))),r],[Da(!0),t=>{throw new Error("Invalid resolve value: "+Sc(t))}]]),s=t.resolve,o=Array.isArray(s)?s:((t,e)=>Object.keys(t||{}).map((n=>({token:n,val:t[n],deps:void 0,policy:e[n]}))))(s,t.resolvePolicy||{});return o.map(i)}class kl{constructor(t,e){this.matcher=t,this.$injector=void 0;const n=this,r=()=>t.find(""),i=t=>""===t.name;var s;this.builders={name:[t=>t.name],self:[bl],parent:[function(e){return i(e)?null:t.find(n.parentName(e))||r()}],data:[El],url:[Cl(e,r)],navigable:[xl(i)],params:[(s=e.paramFactory,function(t){const e=t.url&&t.url.parameters({inherit:!1})||[],n=Object.values(Xa(Ja(t.params||{},e.map(ka("id"))),((e,n)=>s.fromConfig(n,null,t.self))));return e.concat(n).map((t=>[t.id,t])).reduce(uc,{})})],views:[],path:[Ol],includes:[Sl],resolvables:[Al]}}builder(t,e){const n=this.builders,r=n[t]||[];return w(t)&&!y(e)?r.length>1?r:r[0]:w(t)&&x(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?w(t.parent)?t.parent:t.parent.name:""}name(t){const e=t.name;if(-1!==e.indexOf(".")||!t.parent)return e;const n=w(t.parent)?t.parent:t.parent.name;return n?n+"."+e:e}}class _l{static is(t){return!!/[!,*]+/.exec(t)}static fromString(t){return _l.is(t)?new _l(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)}}class Tl{static create(t){const e=Tl.isStateClass(t)?new t:Object.setPrototypeOf(Object.assign({},t),Tl.prototype);return t.$$state=()=>e,e.self=t,e.__stateObjectCache={nameGlob:_l.fromString(e.name)},e}constructor(t){return Tl.create(t||{})}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)||Ya(Object.values(this.params),_a("id",t))||e.inherit&&this.parent&&this.parent.parameter(t)}toString(){return this.fqn()}}Tl.isStateClass=t=>x(t)&&!0===t.__uiRouterState,Tl.isStateDeclaration=t=>x(t.$$state),Tl.isState=t=>v(t.__stateObjectCache);class Nl{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=this.queue,n=Tl.create(t),r=n.name;if(!w(r))throw new Error("State must have a valid name");if(Object.prototype.hasOwnProperty.call(this.states,r)||Ba(e.map(ka("name")),r))throw new Error(`State '${r}' is already defined`);return e.push(n),this.flush(),n}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 p=s[l];if(s[l]=t.length,h>=0&&p===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 jl{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 wl(this.states),this.builder=new kl(this.matcher,t),this.builder.builder("views",gl),this.builder.builder("onExit",this.getStateHookBuilder("onExit")),this.builder.builder("onRetain",this.getStateHookBuilder("onRetain")),this.builder.builder("onEnter",this.getStateHookBuilder("onEnter")),this.stateQueue=new Nl(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 fl(t.treeChanges(i)).subContext(n.$$state()),o=Object.assign(Rl(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})).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(_a("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 Rl=t=>t.getTokens().filter(w).map((e=>{const n=t.getResolvable(e);return[e,"NOWAIT"===t.getPolicy(n).async?n.promise:n.data]})).reduce(uc,{});let Vl=["$view","$animate","$ngViewScroll","$interpolate","$q",function(t,e,n,r,i){const s={$cfg:{viewDecl:{$context:t._pluginapi._rootViewContext()}},$ngView:{}},o={count:0,restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(a,c,l){return function(a,c,u){const h=u.onload||"",p=u.autoscroll,d={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,v,w;const b={$type:"ng1",id:o.count++,name:$,fqn:f.$ngView.fqn?f.$ngView.fqn+"."+$:$,config:null,configUpdated:function(t){if(t&&!(t instanceof vl))return;if(e=w,n=t,e===n)return;var e,n;Vc.traceUIViewConfigUpdated(b,t&&t.viewDecl&&t.viewDecl.$context),w=t,C(t)},get creationContext(){const t=Ta("$cfg.viewDecl.$context")(f),e=Ta("$ngView.creationContext")(f);return t||e}};Vc.traceUIViewEvent("Linking",b),c.data("$ngView",{$ngView:b}),C();const E=t.registerUIView(b);function C(t){const e=a.$new(),r=i.defer(),s=i.defer(),o={$cfg:t,$ngView:b},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),d.enter(t,c,(function(){r.resolve(),v&&v.$emit("$viewContentAnimationEnded"),(y(p)&&!p||a.$eval(p))&&n(t)})),function(){if(m&&(Vc.traceUIViewEvent("Removing (previous) el",m.data("$ngView")),m.remove(),m=null),v&&(Vc.traceUIViewEvent("Destroying scope",b),v.$destroy(),v=null),g){const t=g.data("$ngViewAnim");Vc.traceUIViewEvent("Animate out",t),d.leave(g,(function(){t.$$animLeave.resolve(),m=null})),m=g,g=null}}()}));g=f,v=e,v.$emit("$viewContentLoaded",t||w),v.$eval(h)}a.$on("$destroy",(function(){Vc.traceUIViewEvent("Destroying/Unregistering",b),E()}))}}};return o}];function Pl(t,e,n,r,i){const s=Ta("viewDecl.controllerAs"),o=Ta("viewDecl.resolveAs");return{restrict:"ECA",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 fl(u.path);c.html(u.getTemplate(c,h)||a),Vc.traceUIViewFill(l.$ngView,c.html());const p=t(c[0].contentDocument||c[0].childNodes),d=u.controller,f=s(u),$=o(u),m=h&&Rl(h);if(r[$]=m,d){const t=e(d,Object.assign({},m,{$scope:r,$element:c}));f&&(r[f]=t,r[f][$]=m),c.data("$ngControllerController",t),c.children().data("$ngControllerController",t),Ml(i,n,t,r,u)}if(w(u.component)){const t=Cc(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&&_t(t).data(`$${u.component}Controller`)},o=r.$watch(s,(function(t){t&&(Ml(i,n,t,r,u),o())}))}p(r)}}}}Pl.$inject=["$compile","$controller","$transitions","$view","$q"];let Dl=0;function Ml(t,e,n,r,i){!x(n.$onInit)||i.viewDecl.component||i.viewDecl.componentProvider||n.$onInit();const s=hc(i.path).state.self,o={bind:n};if(x(n.uiOnParamsChanged)){const t=new fl(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=Za(r,((e,n)=>-1!==t.indexOf(n)));n.uiOnParamsChanged(i,e)}};r.$on("$destroy",e.onSuccess({},a,o))}if(x(n.uiCanExit)){const i=Dl++,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.when(n.uiCanExit(e)),r.then((t=>s[i]=!1!==t))),r},u={exiting:s.name};r.$on("$destroy",e.onBefore(u,l,o))}}class Ll{constructor(){this.enqueue=!0,this.typeQueue=[],this.defaultTypes=Qa(Ll.prototype,["hash","string","query","path","int","bool","date","json","any"]);this.types=Fa(tc(this.defaultTypes,((t,e)=>new nl(Object.assign({name:e},t)))),{})}type(t,e,n){if(!y(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 nl(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],xa.$injector.invoke(t.def))}}}!function(){const t=t=>{const e=t=>null!=t?t.toString():t,n={encode:e,decode:e,is:Pa(String),pattern:/.*/,equals:(t,e)=>t==e};return Object.assign({},n,t)};Object.assign(Ll.prototype,{string:t({}),path:t({pattern:/[^/]*/}),query:t({}),hash:t({inherit:!1}),int:t({decode:t=>parseInt(t,10),is:function(t){return!gc(t)&&this.decode(t.toString())===t},pattern:/-?\d+/}),bool:t({encode:t=>t?1:0,decode:t=>0!==parseInt(t,10),is:Pa(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:Ia,decode:La,is:Pa(Object),equals:Ua,pattern:/[^/]*/}),any:t({encode:t=>t,decode:t=>t,is:()=>!0,equals:Ua})})}();class Il{constructor(){this.paramTypes=new Ll,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=y(t)?t:this._isCaseInsensitive}defaultSquashPolicy(t){if(y(t)&&!0!==t&&!1!==t&&!w(t))throw new Error(`Invalid squash policy: ${t}. Valid policies: false, true, arbitrary-string`);return this._defaultSquashPolicy=y(t)?t:this._defaultSquashPolicy}strictMode(t){return this._isStrictMode=y(t)?t:this._isStrictMode}type(t,e,n){const r=this.paramTypes.type(t,e,n);return y(e)?this:r}}class ql{constructor(){this._ngViews=[],this._viewConfigs=[],this._viewConfigFactories={},this._listeners=[],this._pluginapi={_rootViewContext:this._rootViewContext.bind(this),_viewConfigFactory:this._viewConfigFactory.bind(this),_registeredUIView:t=>Ya(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||xa.$injector.get("$templateFactory"),[new vl(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){Vc.traceViewServiceEvent("<- Removing",t),za(this._viewConfigs,t)}activateViewConfig(t){Vc.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=Oa(((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(ql.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=>!Ba(i,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))),Vc.traceViewSync(o)}registerUIView(t){Vc.traceViewServiceUIViewEvent("-> Registering",t);const e=this._ngViews;return e.filter((e=>e.fqn===t.fqn&&e.$type===t.$type)).length&&Vc.traceViewServiceUIViewEvent("!!!! duplicate ngView named:",t),e.push(t),this.sync(),()=>{-1!==e.indexOf(t)?(Vc.traceViewServiceUIViewEvent("<- Deregistering",t),za(e)(t)):Vc.traceViewServiceUIViewEvent("Tried removing non-registered ngView",t)}}available(){return this._ngViews.map(ka("fqn"))}active(){return this._ngViews.filter(ka("$config")).map(ka("name"))}}function Ul(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]}ql.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(!Ua(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 Hl=function(t){const e=new RegExp("("+t+")","g");return t=>t.split(e).filter(Boolean)}("/"),Fl={state:{params:{}},strict:!0,caseInsensitive:!0};class Bl{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===sl.PATH)).concat(void 0)).reduce(rc,[]).filter((t=>""!==t&&y(t)))}static queryParams(t){return t._params.filter((t=>t.location===sl.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(Bl.pathSegmentsAndParams).reduce(rc,[]).reduce(Ac,[]).map((t=>w(t)?Hl(t):t)).reduce(rc,[]))(t).map((t=>"/"===t?1:w(t)?2:t instanceof al?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=Ga(r,Fl),this.pattern=t;const i=/([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,s=/([:]?)([\w\[\].-]+)|\{([\w\[\].-]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,o=[];let a,c=0;const l=e=>{if(!Bl.nameValidator.test(e))throw new Error(`Invalid parameter name '${e}' in pattern '${t}'`);if(Ya(this._params,_a("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=>Fa(e.type(r?"query":"path"),{pattern:new RegExp(t,this.config.caseInsensitive?"i":void 0)}))(s):null}};let h,p;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;p=t.substring(c);const d=p.indexOf("?");if(d>=0){const t=p.substring(d);if(p=p.substring(0,d),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(p),this._compiled=o.map((t=>Ul.apply(null,t))).concat(Ul(p))}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 y(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(ka("_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 p(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=p(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(Bl.pathSegmentsAndParams).reduce(rc,[]).map((t=>w(t)?t:i(t))),r=e.map(Bl.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(w(e))return t+e;const{squash:n,encoded:r,param:i}=e;return!0===n?t.match(/\/$/)?t.slice(0,-1):t:w(n)?t+n:!1!==n||null==r?t:Array.isArray(r)?t+tc(r,Bl.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["#"]:"")}}Bl.nameValidator=/^\w+([-.]+\w+)*(?:\[\])?$/;class zl{constructor(t,e,n){this.urlService=t,this.stateService=e,this.routerGlobals=n}create(t,e){const{isState:n,isStateDeclaration:r}=Tl,i=Ma([[w,t=>i(this.urlService.compile(t))],[Pa(Bl),t=>this.fromUrlMatcher(t,e)],[ja(n,r),t=>this.fromState(t,this.stateService,this.routerGlobals)],[Pa(RegExp),t=>this.fromRegExp(t,e)],[x,t=>new Wl(t,e)]]),s=i(t);if(!s)throw new Error("invalid 'what' in when()");return s}fromUrlMatcher(t,e){let n=e;w(e)&&(e=this.urlService.compile(e)),Pa(Bl)(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 Wl((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=Tl.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=w(e)?t=>e.replace(/\$(\$|\d{1,2})/,((e,n)=>t["$"===n?0:Number(n)])):e,r={regexp:t,type:"REGEXP"};return Object.assign(new Wl((e=>t.exec(e.path)),n),r)}}zl.isUrlRule=t=>t&&["type","match","handler"].every((e=>y(t[e])));class Wl{constructor(t,e){this.match=t,this.type="RAW",this.$id=-1,this.matchPriority=()=>0-this.$id,this.handler=e||(t=>t)}}let Gl;function Kl(t){if(!(x(t)||w(t)||Pa(el)(t)||el.isDef(t)))throw new Error("'handler' must be a string, function, TargetState, or have a state: 'newtarget' property");return x(t)?t:Da(t)}Gl=(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?Bl.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 Ql{constructor(t){this._sortFn=Gl,this._rules=[],this._id=0,this.urlRuleFactory=t}initial(t){const e=Kl(t);this.rule(this.urlRuleFactory.create(((t,e)=>0===e.globals.transitionHistory.size()&&!!/^\/?$/.exec(t.path)),e))}otherwise(t){const e=Kl(t);this._otherwiseFn=this.urlRuleFactory.create(Da(!0),e),this._sorted=!1}removeRule(t){za(this._rules,t)}rule(t){if(!zl.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 y(n&&n.priority)&&(r.priority=n.priority),this.rule(r),r}}class Jl{constructor(t){this.urlServiceConfig=t}fromConfig(t,e,n){return new al(t,e,sl.CONFIG,this.urlServiceConfig,n)}fromPath(t,e,n){return new al(t,e,sl.PATH,this.urlServiceConfig,n)}fromSearch(t,e,n){return new al(t,e,sl.SEARCH,this.urlServiceConfig,n)}}class Zl{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.interceptDeferred=!1,this.urlRuleFactory=new zl(this,this.stateService,n),this.rules=new Ql(this.urlRuleFactory),this.config=r,this.paramFactory=new Jl(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)];html5Mode(){let t=this.$locationProvider.html5Mode();return t=v(t)?t.enabled:t,t&&"undefined"!=typeof history}baseHref(){return this._baseHref||(this._baseHref=this.$browser.baseHref()||window.location.pathname)}url(t,e=!1,n){return y(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);Ma([[w,t=>this.url(t,!0)],[el.isDef,t=>e.go(t.state,t.params,t.options)],[Pa(el),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}deferIntercept(t){void 0===t&&(t=!0),this.interceptDeferred=t}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.hashPrefix()+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 Bl(t,n.paramTypes,this.paramFactory,Object.assign(i,e))}isMatcher(t){if(!v(t))return!1;let e=!0;return j(Bl.prototype,((n,r)=>{x(n)&&(e=e&&y(t[r])&&x(t[r]))})),e}}class Yl{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]}}const Xl={CREATE:0,BEFORE:1,RUN:2,SUCCESS:3,ERROR:4},tu={TRANSITION:0,STATE:1},eu=2,nu=3,ru=4,iu=5,su=6;let ou=0;class au{static superseded(t,e){const n=new au(eu,"The transition has been superseded by a different transition",t);return e&&e.redirected&&(n.redirected=!0),n}static redirected(t){return au.superseded(t,{redirected:!0})}static invalid(t){return new au(ru,"This transition is invalid",t)}static ignored(t){return new au(iu,"The transition was ignored",t)}static aborted(t){return new au(nu,"The transition has been aborted",t)}static errored(t){return new au(su,"The transition errored",t)}static normalize(t){return Pa(au)(t)?t:au.errored(t)}constructor(t,e,n){this.$id=ou++,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():Sc(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($c(this),{_transitionRejection:this})}}class cu{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];cu.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 lu=new cu(!0),uu={current:()=>{},transition:null,traceData:{},bind:null};class hu{static chain(t,e){return t.reduce(((t,e)=>t.then((()=>e.invokeHook()))),e||xa.$q.when())}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 hu.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===Xl.RUN&&!this.options.transition.isActive(),this.options=Ga(r,uu),this.type=n.eventType}logError(t){lu.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;Vc.traceHookInvocation(this,this.transition,n);const r=()=>t.callback.call(n.bind,this.transition,this.stateContext),i=t=>au.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(au.normalize(t))}finally{t.invokeLimit&&++t.invokeCount>=t.invokeLimit&&t.deregister()}}handleHookResult(t){const e=this.getNotCurrentRejection();if(e)return e;if(vc(t))return t.then((t=>this.handleHookResult(t)));if(Vc.traceHookResult(t,this.transition),!1===t)return au.aborted("Hook aborted transition").toPromise();return Pa(el)(t)?au.redirected(t).toPromise():void 0}getNotCurrentRejection(){return this.transition._aborted?au.aborted().toPromise():this.isSuperseded()?au.superseded(this.options.current()).toPromise():void 0}toString(){const{options:t,registeredHook:e}=this;return`${Ta("traceData.hookType")(t)||"internal"} context: ${Ta("traceData.context.state.name")(t)||Ta("traceData.context")(t)||"unknown"}, ${Ec(200,Oc(e.callback))}`}}function pu(t,e,n){const r=w(e)?[e]:e;return!!(x(r)?r:function(t){const e=r;for(let n=0;n<e.length;n++){const r=new _l(e[n]);if(r&&r.matches(t.name)||!r&&e[n]===t.name)return!0}return!1})(t,n)}hu.HANDLE_RESULT=t=>e=>t.handleHookResult(e),hu.LOG_REJECTED_RESULT=t=>e=>{vc(e)&&e.catch((e=>t.logError(au.normalize(e))))},hu.LOG_ERROR=t=>e=>t.logError(e),hu.REJECT_ERROR=()=>t=>$c(t),hu.THROW_ERROR=()=>t=>{throw t};class du{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=>pu(t.state,e,n)));return r.length?r:null}_getDefaultMatchCriteria(){return Xa(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===tu.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 fu(t,e,n){const r=(t._registeredHooks=t._registeredHooks||{})[n.name]=[],i=za(r);function s(t,s,o={}){const a=new du(e,n,s,t,i,o);return r.push(a),a.deregister.bind(a)}return t[n.name]=s,s}class $u{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===tu.STATE?n.state.self:null,a=new hu(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===Xl.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)))}}const mu=ka("self");class gu{constructor(t,e,n,r){if(this.globals=r,this.transitionService=n,this._deferred=xa.$q.defer(),this.promise=this._deferred.promise,this._registeredHooks={},this._hookBuilder=new $u(this),this.isActive=()=>this.globals.transition===this,this._targetState=e,!e.valid())throw new Error(e.error());this._options=Object.assign({current:Da(this)},e.options()),this.$id=n._transitionCount++;const i=ll.buildToPath(t,e);this._treeChanges=ll.treeChanges(t,i,this._options.reloadState),this.createTransitionHookRegFns();const s=this._hookBuilder.buildHooksForPhase(Xl.CREATE);hu.invokeHooks(s,(()=>null)),this.applyViewConfigs()}createTransitionHookRegFns(){this.transitionService._pluginapi._getEvents().filter((t=>t.hookPhase!==Xl.CREATE)).forEach((t=>fu(this,this.transitionService,t)))}getHooks(t){return this._registeredHooks[t]}applyViewConfigs(){const t=this._treeChanges.entering.map((t=>t.state));ll.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 gu?this.is({to:t.$to().name,from:t.$from().name}):!(t.to&&!pu(this.$to(),t.to,this)||t.from&&!pu(this.$from(),t.from,this))}params(t="to"){return Object.freeze(this._treeChanges[t].map(ka("paramValues")).reduce(Ka,{}))}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 al.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=ll.subPath(n,(e=>e.state===t||e.state.name===t))),new fl(n).injector()}getResolveTokens(t="to"){return new fl(this._treeChanges[t]).getTokens()}addResolvable(t,e=""){t=Pa(Ic)(t)?t:new Ic(t);const n="string"==typeof e?e:e.name,r=this._treeChanges.to,i=Ya(r,(t=>t.state.name===n));console.assert(i,`targetNode not found ${n}`);new fl(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,ka("state")).map(mu)}exiting(){return tc(this._treeChanges.exiting,ka("state")).map(mu).reverse()}retained(){return tc(this._treeChanges.retained,ka("state")).map(mu)}views(t="entering",e){let n=this._treeChanges[t];return n=e?n.filter(_a("state",e)):n,n.map(ka("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;var c;return ll.matching(a,o,ll.nonDynamicParams).filter(Na((c=t.options().reloadState,t=>c&&t.state.includes[c.name]))).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])=>al.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=ll.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=hu.runAllHooks,e=t=>this._hookBuilder.buildHooksForPhase(t),n=e(Xl.BEFORE);return hu.invokeHooks(n,(()=>{const t=this.globals;return t.lastStartedTransitionId=this.$id,t.transition=this,t.transitionHistory.enqueue(this),Vc.traceTransitionStart(this),xa.$q.when(void 0)})).then((()=>{const t=e(Xl.RUN);return hu.invokeHooks(t,(()=>xa.$q.when(void 0)))})).then((()=>{Vc.traceSuccess(this.$to(),this),this.success=!0,this._deferred.resolve(this.to()),t(e(Xl.SUCCESS))}),(n=>{Vc.traceError(n,this),this.success=!1,this._deferred.reject(n),this._error=n,t(e(Xl.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 au.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}:${Sc(n[t.id])}]`)).join(", "),i=`The following parameter values are not valid for state '${t.name}': ${e}`;return au.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:Ja(t,["#"]);return`Transition#${this.$id}( '${v(t)?t.name:t}'${Sc(n(this._treeChanges.from.map(ka("paramValues")).reduce(Ka,{})))} -> ${this.valid()?"":"(X) "}'${v(e)?e.name:e}'${Sc(n(this.params()))} )`}}gu.diToken=gu;const yu=Ba(["$transition$",gu]);function vu(t){const e=Object.values(t.treeChanges()).reduce(rc,[]).reduce(oc,[]),n=t=>yu(t.token)?Ic.fromData(t.token,null):t;e.forEach((t=>{t.resolvables=t.resolvables.map(n)}))}function wu(t){return(e,n)=>(0,n.$$state()[t])(e,n)}const bu=wu("onExit"),Eu=wu("onRetain"),Cu=wu("onEnter"),xu=1e3,Ou=t=>new fl(t.treeChanges().to).resolvePath("EAGER",t).then((()=>{})),Su=(t,e)=>new fl(t.treeChanges().to).subContext(e.$$state()).resolvePath("LAZY",t).then((()=>{})),Au=t=>new fl(t.treeChanges().to).resolvePath("LAZY",t).then((()=>{})),ku=t=>{const e=xa.$q,n=t.views("entering");if(n.length)return e.all(n.map((t=>e.when(t.load())))).then((()=>{}))},_u=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,pc(t.params(),e.params)}),{priority:1e4}),t.promise.then(n,n)};function Tu(t,e,n,r){return t.onBefore({entering:t=>!!t.lazyLoad},(t=>{const i=t.entering().filter((t=>!!t.$$state().lazyLoad)).map((e=>Nu(t,e,r)));return xa.$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 Nu(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,xa.$q.reject(t));i=r._promise=xa.$q.when(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 ju{constructor(t,e,n,r,i=!1,s=hu.HANDLE_RESULT,o=hu.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 Ru(t){const e=t._ignoredReason();if(!e)return;Vc.traceTransitionIgnored(t);const n=t.globals.transition;return"SameAsCurrent"===e&&n&&n.abort(),au.ignored().toPromise()}function Vu(t){if(!t.valid())throw new Error(t.error().toString())}let Pu={location:!0,relative:null,inherit:!1,notify:!0,reload:!1,supercede:!0,custom:{},current:()=>null,source:"unknown"};class Du{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=Ha(Da(this),{},Da(this),["_definePathType","_defineEvent","_getPathTypes","_getEvents","getHooks"]),this._defineCorePaths(),this._defineCoreEvents(),this._registerCoreTransitionHooks(),t.successfulTransitions.onEvict(vu)}$get=["$state","$urlService","$stateRegistry","$view",(t,e,n,r)=>(this._deregisterHookFns.lazyLoad=Tu(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 el?e:w(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 x(n)?xa.$q.when(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 gu(t,e,this,this.globals)}_defineCoreEvents(){const t=Xl,e=hu,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}=tu;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=hu.HANDLE_RESULT,o=hu.REJECT_ERROR,a=!1){const c=new ju(t,e,n,r,i,s,o,a);this._eventTypes.push(c),fu(this,this,c)}_getEvents(t){return(y(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(gu,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({},Ru,{priority:-9999}))(this),t.invalid=(t=>t.onBefore({},Vu,{priority:-1e4}))(this),t.onExit=(t=>t.onExit({exiting:t=>!!t.onExit},bu))(this),t.onRetain=(t=>t.onRetain({retained:t=>!!t.onRetain},Eu))(this),t.onEnter=(t=>t.onEnter({entering:t=>!!t.onEnter},Cu))(this),t.eagerResolve=(t=>t.onStart({},Ou,{priority:xu}))(this),t.lazyResolve=(t=>t.onEnter({entering:Da(!0)},Su,{priority:xu}))(this),t.resolveAll=(t=>t.onFinish({},Au,{priority:xu}))(this),t.loadViews=(t=>t.onFinish({},ku))(this),t.updateGlobals=(t=>t.onCreate({},_u))(this),t.lazyLoad=Tu(this)}}const Mu=ht("$stateProvider");class Lu{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 au?new Error(t.toString()):new Error(t)};const n=Object.keys(Lu.prototype).filter(Na(Ba(["current","$current","params","transition"])));Ha(Da(Lu.prototype),this,Da(this),n),lu.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 Mu("stateinvalid","'name' required");try{this.stateRegistry.register(t)}catch(t){throw Mu("stateinvalid",t.message)}return this}_handleInvalidTargetState(t,e){const n=ll.makeTargetState(this.stateRegistry,t),r=this.globals,i=()=>r.transitionHistory.peekTail(),s=i(),o=new Yl(this.invalidCallbacks.slice()),a=new fl(t).injector(),c=t=>{if(!(t instanceof el))return;let e=t;return e=this.target(e.identifier(),e.params(),e.options()),e.valid()?i()!==s?au.superseded().toPromise():this.transitionTo(e.identifier(),e.params(),e.options()):au.invalid(e.error()).toPromise()};return function t(){const r=o.dequeue();return void 0===r?au.invalid(e.error()).toPromise():xa.$q.when(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:!y(t)||t,inherit:!1,notify:!1})}go(t,e,n){const r=Ga(n,{relative:this.$current,inherit:!0},Pu);return this.transitionTo(t,e,r)}target(t,e,n={}){if(v(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 '${w(n.reload)?n.reload:n.reload.name}'`);return new el(this.stateRegistry,t,e,n)}getCurrentPath(){const t=this.globals.successfulTransitions.peekTail();return t?t.treeChanges().to:(()=>[new cl(this.stateRegistry.root())])()}transitionTo(t,e={},n={}){n=Ga(n,Pu);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 $c(i.error());if(!1===n.supercede&&r())return au.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 au){const n=this.globals.lastStartedTransitionId<=t.$id;if(e.type===iu)return n&&this.urlService.update(),xa.$q.when(this.globals.current);const r=e.detail;if(e.type===eu&&e.redirected&&r instanceof el){const e=t.redirect(r);return e.run().catch(o(e))}if(e.type===nu)return n&&this.urlService.update(),xa.$q.reject(e)}return this.defaultErrorHandler()(e),xa.$q.reject(e)},a=this.transitionService.create(s,i),c=a.run().catch(o(a));return fc(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(!y(r))return;if(this.$current!==r)return!1;if(!e)return!0;const i=r.parameters({inherit:!0,matchingKeys:e});return al.equals(i,al.values(i,e),this.globals.params)}includes(t,e,n){n=Ga(n,{relative:this.$current});const r=w(t)&&_l.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(!y(i))return;if(!y(s[i.name]))return!1;if(!e)return!0;const o=i.parameters({inherit:!0,matchingKeys:e});return al.equals(o,al.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(!y(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=ll.makeTargetState(this.stateRegistry,r);return Nu(e=e||this.transitionService.create(r,i),n)}}class Iu{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 qu{constructor(){this.params=new Iu,this.lastStartedTransitionId=-1,this.transitionHistory=new Yl([],1),this.successfulTransitions=new Yl([],1)}$get=[()=>this]}const Uu="0.0.69";function Hu(t){console.assert(void 0!==t,"angular is %s",t);const e=t.module("ng",[],["$provide",t=>{t.provider({$$sanitizeUri:No}),t.provider("$compile",ln).directive({input:rr,textarea:rr,form:yn,script:ar,select:ur,option:hr,ngBind:pr,ngBindHtml:fr,ngBindTemplate:dr,ngClass:mr,ngClassEven:yr,ngClassOdd:gr,ngCloak:vr,ngController:wr,ngForm:vn,ngHide:xr,ngIf:fi,ngInclude:$i,ngInit:gi,ngMessages:fa,ngMessage:ma,ngMessageExp:ga,ngMessagesInclude:$a,ngMessageDefault:ya,ngNonBindable:yi,ngRef:wi,ngRepeat:bi,ngShow:Cr,ngStyle:Ei,ngSwitch:Ci,ngSwitchWhen:xi,ngSwitchDefault:Oi,ngOptions:ki,ngTransclude:Ti,ngModel:Nn,ngList:Ni,ngChange:ji,pattern:Di,ngPattern:Di,required:Pi,ngRequired:Pi,ngMinlength:Li,minlength:Li,ngMaxlength:Mi,maxlength:Mi,ngValue:or,ngModelOptions:An}).directive({ngInclude:mi,input:ir}).directive(Vi).directive(en),t.provider({$anchorScroll:Ui,$animate:di,$animateCss:Wi,$$animateQueue:hi,$$AnimateRunner:Yi,$$animateAsyncRun:Gi,$browser:zi,$cacheFactory:ts,$controller:Ae,$exceptionHandler:rs,$filter:hs,$interpolate:Fs,$interval:ws,$$intervalFactory:Bs,$http:co,$httpParamSerializer:eo,$httpParamSerializerJQLike:no,$httpBackend:lo,$location:go,$log:xo,$parse:Vs,$rootScope:qe,$q:ps,$$q:ds,$sce:tn,$sceDelegate:Xe,$$taskTrackerFactory:Oo,$templateCache:es,$templateRequest:ko,$timeout:To})}]).info({version:Uu});return function(t){t.module("ngAnimate",[]).directive("ngAnimateSwap",Mo).directive("ngAnimateChildren",jo).factory("$$rAFScheduler",Do).provider("$$animateQueue",qo).provider("$$animateCache",zo).provider("$$animation",Po).provider("$animateCss",ra).provider("$$animateCssDriver",la).provider("$$animateJs",pa).provider("$$animateJsDriver",da)}(t),function(t){t.module("ngAria",["ng"]).provider("$aria",Ca).directive("ngShow",["$aria",function(t){return t.$$watchExpr("ngShow","aria-hidden",[],!0)}]).directive("ngHide",["$aria",function(t){return t.$$watchExpr("ngHide","aria-hidden",[],!1)}]).directive("ngValue",["$aria",function(t){return t.$$watchExpr("ngValue","aria-checked",ba,!1)}]).directive("ngChecked",["$aria",function(t){return t.$$watchExpr("ngChecked","aria-checked",ba,!1)}]).directive("ngReadonly",["$aria",function(t){return t.$$watchExpr("ngReadonly","aria-readonly",ba,!1)}]).directive("ngRequired",["$aria",function(t){return t.$$watchExpr("ngRequired","aria-required",ba,!1)}]).directive("ngModel",["$aria",function(t){function e(e,n,r,i){return t.config(n)&&!r.attr(e)&&(i||!Ea(r,ba))&&("hidden"!==r.attr("type")||"INPUT"!==r[0].nodeName)}function n(t,e){return!e.attr("role")&&e.attr("type")===t&&!Ea(e,ba)}return{restrict:"A",require:"ngModel",priority:200,compile(r,i){if(Object.prototype.hasOwnProperty.call(i,wa))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())}))}}}}}]).directive("ngDisabled",["$aria",function(t){return t.$$watchExpr("ngDisabled","aria-disabled",ba,!1)}]).directive("ngMessages",(()=>({restrict:"A",require:"?ngMessages",link(t,e,n){Object.prototype.hasOwnProperty.call(n,wa)||e.attr("aria-live")||e.attr("aria-live","assertive")}}))).directive("ngClick",["$aria","$parse",function(t,e){return{restrict:"A",compile(n,r){if(Object.prototype.hasOwnProperty.call(r,wa))return;const i=e(r.ngClick);return function(e,n,r){Ea(n,ba)||(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!==ba.indexOf(t.target.nodeName)||t.target.isContentEditable||t.preventDefault(),e.$apply((function(){i(e,{$event:t})})))})))}}}}]).directive("ngDblclick",["$aria",function(t){return function(e,n,r){Object.prototype.hasOwnProperty.call(r,wa)||!t.config("tabindex")||n.attr("tabindex")||Ea(n,ba)||n.attr("tabindex",0)}}])}(t),function(t){t.module("ng.router",["ng"]).provider("$urlConfig",Il).provider("$routerGlobals",qu).provider("$view",ql).provider("$transitions",Du).provider("$state",Lu).provider("$ngViewScroll",Fc).provider("$templateFactory",qc).provider("$urlService",Zl).provider("$stateRegistry",jl).factory("$stateParams",["$routerGlobals",function(t){return t.params}]).value("$trace",Vc).filter("isState",Bc).filter("includedByState",zc).directive("ngSref",Yc).directive("ngSrefActive",tl).directive("ngSrefActiveEq",tl).directive("ngState",Xc).directive("ngView",Vl).directive("ngView",Pl).run(Dc).run(Pc)}(t),e}const Fu=ht("ng"),Bu=ht("$injector"),zu={};const Wu=new class{constructor(){yt.clear(),this.cache=yt,this.version=Uu,this.element=_t,this.bootsrappedModules=[],this.doBootstrap,Hu(this)}errorHandlingConfig(t){return ut(t)}bootstrap(t,e,n){n=n||{strictDi:!1},this.doBootstrap=function(){const r=_t(t);if(r.injector())throw Fu("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=we(this.bootsrappedModules,n.strictDi);return i.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){t.$apply((()=>{e.data("$injector",r),n(e)(t)}))}]),i};const r=/^NG_DEFER_BOOTSTRAP!/;if(window&&!r.test(window.name))return this.doBootstrap();window.name=window.name.replace(r,""),this.resumeBootstrap=function(t){return Array.isArray(t)&&t.forEach((t=>e.push(t))),this.doBootstrap()}}injector(t,e){return we(t,e)}resumeBootstrap(t){return j(t,(t=>{this.bootsrappedModules.push(t)})),this.doBootstrap()}init(t){let e,n;const r={};it.forEach((r=>{const i=`${r}app`;t.hasAttribute&&t.hasAttribute(i)&&(e=t,n=t.getAttribute(i))})),it.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=it.length;for(r=0;r<i;++r)if(n=it[r]+e,w(n=t.getAttribute(n)))return n;return null}(e,"strict-di"),this.bootstrap(e,n?[n]:[],r))}module(t,e,n){return W(t,"module"),e&&Object.prototype.hasOwnProperty.call(zu,t)&&(zu[t]=null),function(t,e,n){return t[e]||(t[e]=n())}(zu,t,(()=>{if(!e)throw Bu("nomod","Module '{0}' is not available. Possibly misspelled or not loaded",t);return new te(t,e,n)}))}};window.angular=Wu,"complete"===document.readyState?Wu.init(document):document.addEventListener("DOMContentLoaded",(()=>{Wu.init(document)})),t.angular=Wu}));
1
+ /* Version: 0.0.70 - August 14, 2024 17:25:03 */
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"},p=ht("ng");let d=0;function f(){return d+=1,d}function $(t){return w(t)?t.toLowerCase():t}function m(t){if(null==t||S(t))return!1;if(Array.isArray(t)||t instanceof Array||w(t))return!0;const e="length"in Object(t)&&t.length;return b(e)&&(e>=0&&e-1 in t||"function"==typeof t.item)}function g(t){return void 0===t}function y(t){return void 0!==t}function v(t){return null!==t&&"object"==typeof t}function w(t){return"string"==typeof t}function b(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 x(t){return"function"==typeof t}function O(t){return"[object RegExp]"===toString.call(t)}function S(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&&x(t.then)}function T(t){return w(t)?t.trim():t}function j(t,e){const n=e;return t.replace(/[A-Z]/g,((t,e)=>(e?n:"")+t.toLowerCase()))}function N(t,e,n){let r,i;if(t)if(x(t))for(r in t)"prototype"!==r&&"length"!==r&&"name"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&e.call(n,t[r],r,t);else if(Array.isArray(t)||m(t)){const s="object"!=typeof t;for(r=0,i=t.length;r<i;r++)(s||r in t)&&e.call(n,t[r],r,t)}else if(t.forEach&&t.forEach!==N)t.forEach(e,n,t);else if(null===(s=t)||"object"!=typeof s||Object.getPrototypeOf(s))for(r in t)Object.hasOwnProperty.call(t,r)&&e.call(n,t[r],r,t);else for(r in t)e.call(n,t[r],r,t);var s;return t}function R(t,e,n){const r=Object.keys(t).sort();return r.forEach((r=>e.call(n,t[r],r))),r}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(!v(r)&&!x(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 P(t){return parseInt(t,10)}function D(t){return Number.isNaN(t)}function M(t,e){return V(Object.create(t),e)}function L(t){return function(){return t}}function I(t){return x(t.toString)&&t.toString!==toString}function q(t){return!(!t||!(t.nodeName||t.attr&&t.find))}function U(t){return $(t.nodeName||t[0]&&t[0].nodeName)}function H(t,e){return-1!==Array.prototype.indexOf.call(t,e)}function F(t,e){const n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function B(t,e){return t===e||t!=t&&e!=e}function z(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)&&B(t.getTime(),e.getTime());if(O(t))return!!O(e)&&t.toString()===e.toString();if(A(t)||A(e)||S(t)||S(e)||Array.isArray(e)||E(e)||O(e))return!1;for(i in s=Object.create(null),t)if("$"!==i.charAt(0)&&!x(t[i])){if(!z(t[i],e[i]))return!1;s[i]=!0}for(i in e)if(!(i in s)&&"$"!==i.charAt(0)&&y(e[i])&&!x(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(!z(t[i],e[i]))return!1;return!0}}return!1}function W(t,e){if("hasOwnProperty"===t)throw p("badname","hasOwnProperty is not a valid {0} name",e)}function G(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=`${t}`;break;default:t=!I(t)||Array.isArray(t)||E(t)?Y(t):t.toString()}return t}function K(t,e,n){return t.concat(Array.prototype.slice.call(e,n))}function Q(t,e){return Array.prototype.slice.call(t,e||0)}function J(t,e){const n=arguments.length>2?Q(arguments,2):[];return!x(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,K(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function Z(t,e){let n=e;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?n=void 0:S(e)?n="$WINDOW":e&&window.document===e?n="$DOCUMENT":A(e)&&(n="$SCOPE"),n}function Y(t,e){if(!g(t))return b(e)||(e=e?2:null),JSON.stringify(t,Z,e)}function X(t,e,n){const r=t.getTimezoneOffset(),i=function(t,e){const n=Date.parse(`Jan 01, 1970 00:00:00 ${t}`)/6e4;return D(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 tt(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=et(r),y(r)&&(i=!y(i)||et(i),Object.hasOwnProperty.call(e,r)?Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i))})),e}function et(t){try{return decodeURIComponent(t)}catch(t){}}function nt(t){return rt(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function rt(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 it=["ng-","data-ng-"];function st(t,e){if(Array.isArray(t)){e=e||[];for(let n=0,r=t.length;n<r;n++)e[n]=t[n]}else if(v(t)){e=e||{};for(const n in t)n.startsWith("$")&&"$"===n.charAt(1)||(e[n]=t[n])}return e||t}function ot(t,e="Assertion failed"){if(!t)throw new Error(e)}function at(t,e,n){if(!t)throw p("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function ct(t,e,n){return n&&Array.isArray(t)&&(t=t[t.length-1]),at(x(t),e,`not a function, got ${t&&"object"==typeof t?t.constructor.name||"Object":typeof t}`),t}const lt={objectMaxDepth:5,urlErrorParamsEnabled:!0};function ut(t){var e;return v(t)&&(y(t.objectMaxDepth)&&(lt.objectMaxDepth=b(e=t.objectMaxDepth)&&e>0?t.objectMaxDepth:NaN),y(t.urlErrorParamsEnabled)&&k(t.urlErrorParamsEnabled)&&(lt.urlErrorParamsEnabled=t.urlErrorParamsEnabled)),lt}function ht(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=Q(n,2).map((t=>pt(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}`,ut().urlErrorParamsEnabled)for(l=0,c="?";l<a.length;l++,c="&")o+=`${c}p${l}=${encodeURIComponent(a[l])}`;return new Error(o)}}function pt(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=Z(t,n);if(v(r)){if(e.indexOf(r)>=0)return"...";e.push(r)}return r}))}return t}function dt(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 ft(t,e){return t||e?t?e?(Array.isArray(t)&&(t=t.join(" ")),Array.isArray(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function $t(t){return t.replace(l,"").replace(u,((t,e,n)=>n?e.toUpperCase():e))}function mt(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 gt="ngId",yt=new Proxy(new Map,{get:(t,e,n)=>"size"===e?t.size:"function"==typeof t[e]?function(...n){return t[e].apply(t,n)}:Reflect.get(t,e,n),set:(t,e,n,r)=>Reflect.set(t,e,n,r),deleteProperty:(t,e)=>Reflect.deleteProperty(t,e),has:(t,e)=>Reflect.has(t,e),ownKeys:t=>Reflect.ownKeys(t),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t,e)});let vt=1;const wt=/-([a-z])/g,bt=/_([a-z])/g,Et={mouseleave:"mouseout",mouseenter:"mouseover"},Ct=ht("jqLite"),xt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Ot=/<([\w:-]+)/,St={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};St.tbody=St.tfoot=St.colgroup=St.caption=St.thead,St.th=St.td;const At={};"multiple,selected,checked,disabled,readOnly,required,open".split(",").forEach((t=>{At[$(t)]=t}));const kt={};function _t(t){if(t instanceof _t)return t;let e=!1;if(w(t)&&(t=t.trim(),e=!0),!(this instanceof _t)){if(e&&"<"!==t.charAt(0))throw Ct("nosel","Looking up elements via selectors is not supported by JQLite! See: http://docs.angularjs.org/api/angular.element");return new _t(t)}if(e){Ut(this,function(t){let e=xt.exec(t);if(e)return[document.createElement(e[1])];let n=Mt(t);if(n)return n.childNodes;return[]}(t))}else x(t)?function(t){function e(){window.document.removeEventListener("DOMContentLoaded",e),t()}"complete"===window.document.readyState?window.setTimeout(t):window.document.addEventListener("DOMContentLoaded",e)}(t):Ut(this,t)}function Tt(t,e){return e.toUpperCase()}function jt(t){return t.replace(wt,Tt)}function Nt(t){return t.replace(bt,Tt)}function Rt(t,e){const n=t[gt],r=n&&yt.get(n);r&&(e?delete r.data[e]:r.data={},It(t))}function Vt(t,e=!1){let n=t[gt],r=n&&yt.get(n);return e&&!r&&(t[gt]=n=++vt,r={events:{},data:{},handle:null},yt.set(n,r)),r}function Pt(t){return!/<|&#?\w+;/.test(t)}function Dt(t){switch(t.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_NODE:case void 0:return!0;default:return!1}}function Mt(t){let e,n,r,i,s=document.createDocumentFragment(),o=[];if(Pt(t))o.push(document.createTextNode(t));else{for(e=s.appendChild(document.createElement("div")),n=(Ot.exec(t)||["",""])[1].toLowerCase(),r=St[n]||[],i=r.length;--i>-1;)e.appendChild(window.document.createElement(r[i])),e=e.firstChild;e.innerHTML=t,o=K(o,e.childNodes),e=s.firstChild,e.textContent=""}let a=document.createDocumentFragment();return a.append(...o),a}function Lt(t,e){t&&(!e&&Dt(t)&&Jt([t]),t.querySelectorAll&&Jt(t.querySelectorAll("*")))}function It(t){const e=t[gt],{events:n,data:r}=yt.get(e);r&&Object.keys(r).length||n&&Object.keys(n).length||(yt.delete(e),t[gt]=void 0)}function qt(t,e,n){if(Dt(t)){let r;const i=y(n),s=!i&&e&&!v(e),o=!e,a=Vt(t,!s),c=a&&a.data;if(i)c[jt(e)]=n;else{if(o)return c;if(s)return c&&c[jt(e)];for(r in e)c[jt(r)]=e[r]}}}function Ut(t,e){if(e)if(e.nodeType)t[t.length++]=e;else{const{length:n}=e;if("number"==typeof n&&e.window!==e){if(n)for(let r=0;r<n;r++)t[t.length++]=e[r]}else t[t.length++]=e}}function Ht(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(y(n=qt(t,r[e])))return n;t=t.parentNode||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host}}function Ft(t,e=!1){e||Lt(t);const n=t.parentNode;n&&n.removeChild(t)}function Bt(t,e){const n=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||zt;s>1&&(i=st(i));for(let e=0;e<s;e++)n.isImmediatePropagationStopped()||o(t,n,i[e])};return n.elem=t,n}function zt(t,e,n){n.call(t,e)}function Wt(t,e,n){const r=e.relatedTarget;r&&(r===t||t.contains(r))||n.call(t,e)}function Gt(t){const e=_t(t)[0].cloneNode(!0),n=_t(e).empty(),r=_t("<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 Kt(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 _t(r||t)}function Qt(t,e){const n=At[e.toLowerCase()];return n&&kt[U(t)]&&n}function Jt(t){for(let e=0,n=t.length;e<n;e++){const n=(yt.get(t[e][gt])||{}).events;n&&n.$destroy&&_t(t[e]).triggerHandler("$destroy"),Rt(t[e]),_t.prototype.off.call(_t(t[e]))}}"input,select,option,textarea,button,form,details".split(",").forEach((t=>{kt[t]=!0})),_t.prototype={toString(){const t=[];return N(this,(e=>{t.push(`${e}`)})),`[${t.join(", ")}]`},eq(t){return _t(t>=0?this[t]:this[this.length+t])},length:0},_t.prototype.empty=function(){for(let t=0;t<this.length;t++){const e=this[t];Lt(e,!0),[Node.ELEMENT_NODE,Node.DOCUMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(e.nodeType)&&e.replaceChildren()}return this},_t.prototype.scope=function(){return qt(this[0],"$scope")||Ht(this[0].parentNode||this[0],["$isolateScope","$scope"])},_t.prototype.isolateScope=function(){return qt(this[0],"$isolateScope")||qt(this[0],"$isolateScopeNoTemplate")},_t.prototype.controller=function(t){return function(t,e){return Ht(t,`$${e||"ngController"}Controller`)}(this[0],t)},_t.prototype.injector=function(){return Ht(this[0],"$injector")},_t.prototype.on=function(t,e){for(let n=0;n<this.length;n++){const r=this[n];if(!Dt(r))return;const i=Vt(r,!0);i.handle||(i.handle=Bt(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],Et[t]?(a(Et[t],Wt),a(t,void 0,!0)):a(t)}return this},_t.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];y(e)&&Array.isArray(n)&&F(n,e),y(e)&&n&&n.length>0||(r.removeEventListener(t,o),delete s[t])};N(t.split(" "),(t=>{n(t),Et[t]&&n(Et[t])}))}else for(t in s)"$destroy"!==t&&r.removeEventListener(t,o),delete s[t];It(r)}return this},_t.prototype.removeData=function(t){for(let e=0;e<this.length;e++){Rt(this[e],t)}return this},_t.prototype.inheritedData=function(t,e){for(let n=0;n<this.length;n++){let n=Ht(this[0],t,e);return e?this:n}},_t.prototype.html=function(t){const e=this[0];if(e)return g(t)?e.innerHTML:(Lt(e,!0),e.innerHTML=t,this)},_t.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},_t.prototype.val=function(t){for(let e=0;e<this.length;e++){const n=this[e];if(g(t)){if(n.multiple&&"select"===U(n)){const t=[];return N(n.options,(e=>{e.selected&&t.push(e.value||e.text)})),t}return n.value}return n.value=t,this}},_t.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=At[o];if(v(t))for(let e in t)r.setAttribute(e,a?o:t[e]);else{if(!y(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(y(e)||v(t))return this},_t.prototype.data=function(t,e){let n;const r=this.length;if(g(e)){if(v(t)){for(n=0;n<r;n++)qt(this[n],t);return this}const i=g(e)?Math.min(r,1):r;for(let n=0;n<i;n++){const r=qt(this[n],t,e);e=e?e+r:r}return e}for(n=0;n<r;n++)qt(this[n],t,e);return this},_t.prototype.replaceWith=function(t){let e,n=function(t,e){let n;const r=t.parentNode;Lt(t),N(new _t(e),(e=>{n?r.insertBefore(e,n.nextSibling):r.replaceChild(e,t),n=e}))};for(let r=0;r<this.length;r++)Ut(e,n(this[r],t));return y(e)?e:this},_t.prototype.children=function(){let t;for(let n=0;n<this.length;n++)t=_t((e=this[n],Array.from(e.childNodes).filter((t=>t.nodeType===Node.ELEMENT_NODE))));var e;return y(t)?t:this},_t.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 _t(t);for(let t=0;t<i.length;t++){const e=i[t];n.appendChild(e)}}return this},_t.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;N(new _t(t),(t=>{n.insertBefore(t,e)}))}}return this},_t.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 _t(t);for(let t=0,n=e.length;t<n;t++){const n=e[t];i.insertBefore(n,r.nextSibling),r=n}}}return this},_t.prototype.remove=function(t=!1){for(let e=0;e<this.length;e++){Ft(this[e],t)}return this},_t.prototype.detach=function(){for(let t=0;t<this.length;t++){Ft(this[t],!0)}return this},_t.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]),y(t)&&(t=_t(t))):Ut(t,e(this[n]));return y(t)?t:this},_t.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):[],y(e)&&(e=_t(e))):r.getElementsByTagName&&Ut(e,r.getElementsByTagName(t))}return y(e)?e:this},_t.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=st(l),s=n?[r].concat(n):[r],N(i,(e=>{r.isImmediatePropagationStopped()||e.apply(t,s)})))};for(let i=0,s=this.length;i<s;i++)g(n)?r(this[i],t,e):Ut(n,r(this[i],t,e));return y(n)?n:this};const Zt="$provide",Yt="$injector",Xt="$compileProvider";class te{constructor(t,e,n){ot(w(t),"name required"),ot(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 y(t)?(ot(v(t),"module info value must be an object"),this.infoState=t,this):this.infoState}value(t,e){return this.invokeQueue.push([Zt,"value",[t,e]]),this}constant(t,e){return this.invokeQueue.unshift([Zt,"constant",[t,e]]),this}config(t){return this.configBlocks.push([Yt,"invoke",[t]]),this}run(t){return this.runBlocks.push(t),this}component(t,e){return e&&x(e)&&(e.$$moduleName=t),this.invokeQueue.push([Xt,"component",[t,e]]),this}factory(t,e){return e&&x(e)&&(e.$$moduleName=t),this.invokeQueue.push([Zt,"factory",[t,e]]),this}service(t,e){return e&&x(e)&&(e.$$moduleName=t),this.invokeQueue.push([Zt,"service",[t,e]]),this}provider(t,e){return e&&x(e)&&(e.$$moduleName=t),this.invokeQueue.push([Zt,"provider",[t,e]]),this}decorator(t,e){return e&&x(e)&&(e.$$moduleName=t),this.configBlocks.push([Zt,"decorator",[t,e]]),this}directive(t,e){return e&&x(e)&&(e.$$moduleName=t),this.invokeQueue.push([Xt,"directive",[t,e]]),this}animation(t,e){return e&&x(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$animateProvider","register",[t,e]]),this}filter(t,e){return e&&x(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$filterProvider","register",[t,e]]),this}controller(t,e){return e&&x(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$controllerProvider","register",[t,e]]),this}}const ee=/^([^(]+?)=>/,ne=/^[^(]*\(\s*([^)]*)\)/m,re=/,/,ie=/^\s*(_?)(\S+?)\1\s*$/,se=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,oe=ht(Yt),ae="Provider",ce=!0;class le{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]===ce)throw oe("cdep","Circular dependency found: {0}",`${t} <- ${this.path.join(" <- ")}`);return this.cache[t]}this.path.unshift(t),this.cache[t]=ce;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 oe("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=function(t){const e=pe(t).replace(se,""),n=e.match(ee)||e.match(ne);return n}(t),i[1].split(re).forEach((function(t){t.replace(ie,(function(t,e,n){r.push(n)}))}))}t.$inject=r}}else Array.isArray(t)?(s=t.length-1,ct(t[s],"fn"),r=t.slice(0,s)):ct(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 oe("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(pe(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 ue extends le{constructor(t,e){super(e),this.cache=t}factory(t){throw this.path.push(t),oe("unpr","Unknown provider: {0}",this.path.join(" <- "))}}class he extends le{constructor(t,e){super(t),this.providerInjector=e,this.modules=this.providerInjector.modules}factory(t){const e=this.providerInjector.get(t+ae);return this.invoke(e.$get,e,void 0,t)}has(t){const e=Object.prototype.hasOwnProperty.call(this.providerInjector.cache,t+ae),n=Object.prototype.hasOwnProperty.call(this.cache,t);return e||n}}function pe(t){return Function.prototype.toString.call(t)}const de=/^([^(]+?)=>/,fe=/^[^(]*\(\s*([^)]*)\)/m,$e=/,/,me=/^\s*(_?)(\S+?)\1\s*$/,ge=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,ye=ht(Yt),ve="Provider";function we(t,e=!1){ot(Array.isArray(t),"modules required");const n=new Map,r={$provide:{provider:Ce(c),factory:Ce(l),service:Ce((function(t,e){return l(t,[Yt,t=>t.instantiate(e)])})),value:Ce((function(t,e){return r[t+ve]={$get:()=>e}})),constant:Ce((function(t,e){W(t,"constant"),i.cache[t]=e,s.cache[t]=e})),decorator:function(t,e){const n=i.get(t+ve),r=n.$get;n.$get=function(){const t=o.invoke(r,n);return o.invoke(e,null,{$delegate:t})}}}},i=r.$injector=new ue(r,e),s=new he(e,i);r.$injectorProvider={$get:()=>s};let o=s;const a=u(t);return o=s.get(Yt),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(W(t,"service"),n=x(e)||Array.isArray(e)?i.instantiate(e):e,!n.$get)throw ye("pget","Provider '{0}' must define $get factory method.",t);return r[t+ve]=n,n}function l(t,e){return c(t,{$get:()=>{const n=o.invoke(e,this);if(g(n))throw ye("undef","Provider '{0}' must return a value from $get factory method.",t);return n}})}function u(t){at(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(w(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 x(t)||Array.isArray(t)?e.push(i.invoke(t)):ct(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}`),ye("modulerr","Failed to instantiate module {0} due to:\n{1}",t,e.stack||e.message||e)}}})),e}}function be(t){const e=function(t){return Function.prototype.toString.call(t)}(t).replace(ge,"");return e.match(de)||e.match(fe)}function Ee(t,e,n){let r,i,s;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw ye("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=be(t),i[1].split($e).forEach((function(t){t.replace(me,(function(t,e,n){r.push(n)}))}))}t.$inject=r}}else Array.isArray(t)?(s=t.length-1,ct(t[s],"fn"),r=t.slice(0,s)):ct(t,"fn",!0);return r}function Ce(t){return function(e,n){if(!v(e))return t(e,n);Object.entries(e).forEach((([e,n])=>{t(e,n)}))}}const xe=ht("$controller"),Oe=/^(\S+)(\s+as\s+([\w$]+))?$/;function Se(t,e){if(w(t)){const e=Oe.exec(t);if(e)return e[3]}}function Ae(){const t={};this.has=function(e){return Object.prototype.hasOwnProperty.call(t,e)},this.register=function(e,n){W(e,"controller"),v(e)?V(t,e):t[e]=n},this.$get=["$injector",function(e){return function(r,i,s,o){let a,c,l,u;if(s=!0===s,o&&w(o)&&(u=o),w(r)){if(c=r.match(Oe),!c)throw xe("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",r);if(l=c[1],u=u||c[3],!(r=Object.prototype.hasOwnProperty.call(t,l)?t[l]:function(t,e,n){if(!e)return t;const r=e.split(".");let i;const s=r.length;for(let e=0;e<s;e++)i=r[e],t&&(t=t[i]);return t}(i.$scope,l)))throw xe("ctrlreg","The controller with the name '{0}' is not registered.",l);ct(r,l,!0)}if(s){const t=(Array.isArray(r)?r[r.length-1]:r).prototype;return a=Object.create(t||null),u&&n(i,u,a,l||r.name),V((()=>{const t=e.invoke(r,a,i,l);return t!==a&&(v(t)||x(t))&&(a=t,u&&n(i,u,a,l||r.name)),a}),{instance:a,identifier:u})}return a=e.instantiate(r,i,l),u&&n(i,u,a,l||r.name),a};function n(t,e,n,r){if(!t||!v(t.$scope))throw ht("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,e);t.$scope[e]=n}}]}const ke={NONE:0,APPLY:1,DIGEST:2},_e=ht("$rootScope"),Te=[],je=[],Ne=[];let Re,Ve,Pe,De,Me=0,Le=null,Ie=null;class qe{constructor(){De=new Ue}$get=["$exceptionHandler","$parse","$browser",function(t,e,n){return Pe=t,Re=e,Ve=n,De}]}class Ue{constructor(){this.$id=f(),this.$$phase=ke.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={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null,this.$$ChildScope=null}$new(t,e){let n;return t?(n=new Ue,n.$root=De):(n=Object.create(this),n.$id=f(),n.$$watchers=[],n.$$nextSibling=null,n.$$childHead=null,n.$$childTail=null,n.$$listeners={},n.$$listenerCount={},n.$$watchersCount=0,n.$$ChildScope=null,n.$$suspended=!1),n.$parent=e||this,n.$$prevSibling=n.$parent.$$childTail,n.$parent.$$childHead?(n.$parent.$$childTail.$$nextSibling=n,n.$parent.$$childTail=n):(n.$parent.$$childHead=n,n.$parent.$$childTail=n),(t||e!==this)&&n.$on("$destroy",(t=>{t.currentScope.$$destroyed=!0})),n}$watch(t,e,n){const r=Re(t),i=x(e)?e:()=>{};if(r.$$watchDelegate)return r.$$watchDelegate(this,i,n,r,t);const s={fn:i,last:He,get:r,exp:t,eq:!!n};return Le=null,0===this.$$watchers.length&&(this.$$digestWatchIndex=-1),this.$$watchers.unshift(s),this.$$digestWatchIndex++,this.incrementWatchersCount(1),()=>{const t=F(this.$$watchers,s);t>=0&&(this.incrementWatchersCount(-1),t<this.$$digestWatchIndex&&this.$$digestWatchIndex--),Le=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 N(t,((t,e)=>{const n=s.$watch(t,(t=>{r[e]=t,o||(o=!0,s.$evalAsync(c))}));i.push(n)})),function(){for(;i.length;)i.shift()()}}$watchCollection(t,e){d.$$pure=Re(t).literal,d.$stateful=!d.$$pure;const n=this;let r,i,s;const o=e.length>1;let a=0;const c=Re(t,d),l=[];let u={},h=!0,p=0;function d(t){let e,n,s,o,c;if(r=t,!g(r)){if(v(r))if(m(r)){i!==l&&(i=l,p=i.length=0,a++),e=r.length,p!==e&&(a++,i.length=p=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={},p=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)):(p++,i[n]=o,a++));if(p>e)for(n in a++,i)Object.hasOwnProperty.call(r,n)||(p--,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(v(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,l=10;const u=Te.length?this.$root:this,h=[];let p,d;this.beginPhase(ke.DIGEST),Ve.$$checkUrlChange(),this===this.$root&&null!==Ie&&(Ve.cancel(Ie),Fe(),Ie=null),Le=null;do{o=!1,c=u;for(let t=0;t<Te.length;t++){try{d=Te[t],r=d.fn,r(d.scope,d.locals)}catch(t){Pe(t)}Le=null}Te.length=0;do{if(s=!c.$$suspended&&c.$$watchers)for(c.$$digestWatchIndex=s.length;c.$$digestWatchIndex--;)try{if(t=s[c.$$digestWatchIndex],t)if(i=t.get,(e=i(c))===(n=t.last)||(t.eq?z(e,n):D(e)&&D(n))){if(t===Le){o=!1;break}}else o=!0,Le=t,t.last=t.eq?structuredClone(e):e,r=t.fn,r(e,n===He?e:n,c),l<5&&(p=4-l,h[p]||(h[p]=[]),h[p].push({msg:x(t.exp)?`fn: ${t.exp.name||t.exp.toString()}`:t.exp,newVal:e,oldVal:n}))}catch(t){Pe(t)}if(!(a=!c.$$suspended&&c.$$watchersCount&&c.$$childHead||c!==u&&c.$$nextSibling))for(;c!==u&&!(a=c.$$nextSibling);)c=c.$parent}while(c=a);if((o||Te.length)&&!l--)throw this.clearPhase(),_e("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",10,h)}while(o||Te.length);for(this.clearPhase();Me<je.length;)try{je[Me++]()}catch(t){Pe(t)}je.length=Me=0,Ve.$$checkUrlChange()}beginPhase(t){if(this.$root.$$phase!==ke.NONE)throw _e("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.$evalAsync=this.$applyAsync=()=>{},this.$on=this.$watch=this.$watchGroup=function(){return()=>{}},this.$$listeners={},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 Re(t)(this,e)}$evalAsync(t,e){let n;return this.$root.$$phase!==ke.NONE||Te.length||(n=Ve.defer((()=>{Te.length&&this.$root.$digest()}),null,"$evalAsync")),Te.push({scope:this,fn:Re(t),locals:e}),n}$$postDigest(t){je.push(t)}$apply(t){try{this.beginPhase(ke.APPLY);try{return this.$eval(t)}finally{this.clearPhase()}}catch(t){Pe(t)}finally{this.retry()}}retry(){try{this.$root.$digest()}catch(t){throw Pe(t),t}}clearPhase(){this.$root.$$phase=ke.NONE}$applyAsync(t){const e=this;t&&Ne.push((()=>e.$eval(t))),null===Ie&&(Ie=Ve.defer(Fe,null,"$applyAsync"))}$on(t,e){let n=this.$$listeners[t];n||(this.$$listeners[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=K([o],[o].concat(e),1);let c,l;do{for(r=i.$$listeners[t]||n,o.currentScope=i,c=0,l=r.length;c<l;c++)if(r[c])try{r[c].apply(null,a)}catch(t){Pe(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=K([s],[s].concat(e),1);let a,c,l;for(;r=i;){for(s.currentScope=r,a=r.$$listeners[t]||[],c=0,l=a.length;c<l;c++)if(a[c])try{a[c].apply(null,o)}catch(t){Pe(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 He(){}function Fe(){for(;Ne.length;)try{Ne.shift()()}catch(t){Pe(t)}Ie=null}const Be=window.document.createElement("a"),ze=Ge(window.location.href);let We;function Ge(t){if(!w(t))return t;const e=t;Be.setAttribute("href",e);let{hostname:n}=Be;return!("[::1]"===Be.hostname)&&n.indexOf(":")>-1&&(n=`[${n}]`),{href:Be.href,protocol:Be.protocol?Be.protocol.replace(/:$/,""):"",host:Be.host,search:Be.search?Be.search.replace(/^\?/,""):"",hash:Be.hash?Be.hash.replace(/^#/,""):"",hostname:n,port:Be.port,pathname:"/"===Be.pathname.charAt(0)?Be.pathname:`/${Be.pathname}`}}function Ke(t){return Qe(t,function(){if(window.document.baseURI)return window.document.baseURI;We||(We=window.document.createElement("a"),We.href=".",We=We.cloneNode(!1));return We.href}())}function Qe(t,e){return t=Ge(t),e=Ge(e),t.protocol===e.protocol&&t.host===e.host}Be.href="http://[::1]";const Je=ht("$sce"),Ze={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"};function Ye(t){if("self"===t)return t;if(w(t)){if(t.indexOf("***")>-1)throw Je("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(O(t))return new RegExp(`^${t.source}$`);throw Je("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function Xe(){this.SCE_CONTEXTS=Ze;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 Je("unsafe","Attempting to use an unsafe value in a safe context.")};function s(t,e){return"self"===t?Qe(e,ze)||Ke(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[Ze.HTML]=o(a),c[Ze.CSS]=o(a),c[Ze.MEDIA_URL]=o(a),c[Ze.URL]=o(c[Ze.MEDIA_URL]),c[Ze.JS]=o(a),c[Ze.RESOURCE_URL]=o(c[Ze.URL]),{trustAs:function(t,e){const n=Object.prototype.hasOwnProperty.call(c,t)?c[t]:null;if(!n)throw Je("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 Je("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(x(o.$$unwrapTrustedValue)&&(o=o.$$unwrapTrustedValue()),n===Ze.MEDIA_URL||n===Ze.URL)return r(o.toString(),n===Ze.MEDIA_URL);if(n===Ze.RESOURCE_URL){if(function(n){const r=Ge(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 Je("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",o.toString())}if(n===Ze.HTML)return i();throw Je("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(t){return t instanceof a?t.$$unwrapTrustedValue():t}}}]}function tn(){let t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,n){const r=st(Ze);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 N(Ze,((t,e)=>{const n=$(e);r[Nt(`parse_as_${n}`)]=function(e){return i(t,e)},r[Nt(`get_trusted_${n}`)]=function(e){return s(t,e)},r[Nt(`trust_as_${n}`)]=function(e){return o(t,e)}})),r}]}const en={},nn={blur:!0,focus:!0};function rn(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===ke.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=$t(`ng-${t}`);en[e]=["$parse","$rootScope","$exceptionHandler",(n,r,i)=>rn(n,r,i,e,t,nn[t])]}));let sn=10;const on=ht("$compile"),an=new Object,cn=["ngIf","ngRepeat"];function ln(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 N(t,((t,s)=>{if((t=t.trim())in a)return void(i[s]=a[t]);const o=t.match(r);if(!o)throw on("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",e,s,t,n?"controller bindings definition":"isolate scope definition");i[s]={mode:o[1][0],collection:"*"===o[2],optional:"?"===o[3],attrName:o[4]||s},o[4]&&(a[t]=i[s])})),i}function u(t,e){const n={isolateScope:null,bindToController:null};if(v(t.scope)&&(!0===t.bindToController?(n.bindToController=c(t.scope,e,!0),n.isolateScope={}):n.isolateScope=c(t.scope,e,!1)),v(t.bindToController)&&(n.bindToController=c(t.bindToController,e,!0)),n.bindToController&&!t.controller)throw on("noctrl","Cannot bind to controller without directive '{0}'s controller.",e);return n}this.directive=function e(i,o){return at(i,"name"),W(i,"directive"),w(i)?(!function(t){const e=t.charAt(0);if(!e||e!==$(e))throw on("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw on("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}(i),at(o,"directiveFactory"),Object.prototype.hasOwnProperty.call(n,i)||(n[i]=[],t.factory(i+r,["$injector","$exceptionHandler",function(t,e){const r=[];return N(n[i],((n,o)=>{try{let e=t.invoke(n);x(e)?e={compile:L(e)}:!e.compile&&e.link&&(e.compile=L(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)&&v(e)&&N(e,((t,n)=>{const r=t.match(s);t.substring(r[0].length)||(e[n]=r[0]+n)})),e}(e),e.restrict=function(t,e){if(t&&(!w(t)||!/[EA]/.test(t)))throw on("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,n){if(!w(e))return N(e,(r=J(this,t),function(t,e){r(e,t)})),this;var r;const i=n.controller||function(){};function s(t){function e(e){return x(e)||Array.isArray(e)?function(n,r){return t.invoke(e,this,{$element:n,$attrs:r})}:e}const r=n.template||n.templateUrl?n.template:"",s={controller:i,controllerAs:Se(n.controller)||n.controllerAs||"$ctrl",template:e(r),templateUrl:e(n.templateUrl),transclude:n.transclude,scope:{},bindToController:n.bindings||{},restrict:"E",require:n.require};return N(n,((t,e)=>{"$"===e.charAt(0)&&(s[e]=t)})),s}return N(n,((t,e)=>{"$"===e.charAt(0)&&(s[e]=t,x(i)&&(i[e]=t))})),s.$inject=["$injector"],this.directive(e,s)},this.aHrefSanitizationTrustedUrlList=function(t){return y(t)?(e.aHrefSanitizationTrustedUrlList(t),this):e.aHrefSanitizationTrustedUrlList()},this.imgSrcSanitizationTrustedUrlList=function(t){return y(t)?(e.imgSrcSanitizationTrustedUrlList(t),this):e.imgSrcSanitizationTrustedUrlList()};let p=!1;this.strictComponentBindingsEnabled=function(t){return y(t)?(p=t,this):p};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 on("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){N(e,(e=>{d[e.toLowerCase()]=t}))}t(Ze.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),t(Ze.CSS,["*|style"]),t(Ze.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),t(Ze.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),t(Ze.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,f,m,y,b,E){const O=/^\w/,S=window.document.createElement("div");let _;function R(){try{if(! --sn)throw _=void 0,on("infchng","{0} $onChanges() iterations reached. Aborting!\n",sn);y.$apply((()=>{for(let t=0,e=_.length;t<e;++t)try{_[t]()}catch(t){a(t)}_=void 0}))}finally{sn++}}function P(t,e){if(!t)return t;if(!w(t))throw on("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+=b.getTrustedMediaUrl(T(s[c])),n+=" "+T(s[c+1])}var l=T(s[2*a]).split(/\s/);return n+=b.getTrustedMediaUrl(T(l[0])),2===l.length&&(n+=" "+T(l[1])),n}class D{constructor(t,e){if(e){const t=Object.keys(e);for(let n=0,r=t.length;n<r;n++){const r=t[n];this[r]=e[r]}}else this.$attr={};this.$$element=t}$normalize=$t;$addClass(t){t&&t.length>0&&E.addClass(this.$$element,t)}$removeClass(t){t&&t.length>0&&E.removeClass(this.$$element,t)}$updateClass(t,e){const n=hn(t,e);n&&n.length&&E.addClass(this.$$element,n);const r=hn(e,t);r&&r.length&&E.removeClass(this.$$element,r)}$set(t,e,n,r){const i=Qt(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=P(e,"$set('srcset', value)")),!1!==n&&(null===e||g(e)?this.$$element[0].removeAttribute(r):O.test(r)?i&&!1===e?this.$$element[0].removeAttribute(r):this.$$element.attr(r,e):function(t,e,n){S.innerHTML=`<span ${e}>`;const{attributes:r}=S.firstChild,i=r[0];r.removeNamedItem(i.name),i.value=n,t.attributes.setNamedItem(i)}(this.$$element[0],r,e));const{$$observers:c}=this;c&&N(c[o],(t=>{try{t(e)}catch(t){a(t)}}))}$observe(t,e){const n=this.$$observers||(this.$$observers=Object.create(null)),r=n[t]||(n[t]=[]);return r.push(e),y.$evalAsync((()=>{r.$$inter||!Object.prototype.hasOwnProperty.call(this,t)||g(this[t])||e(this[t])})),function(){F(r,e)}}}const L=e.startSymbol(),I=e.endSymbol(),q="{{"===L&&"}}"===I?t=>t:function(t){return t.replace(/\{\{/g,L).replace(/}}/g,I)},H=/^ng(Attr|Prop|On)([A-Z].*)$/,W=/^(.+)Start$/;return G;function G(t,e,n,r,i){t instanceof _t||(t=_t(t));let s=K(t,e,t,n,r,i),o=null;return function(e,n,r){if(!t)throw on("multilink","This element has already been linked.");at(e,"scope"),i&&i.needsNewScope&&(e=e.$parent.$new()),r=r||{};let a,{transcludeControllers:c,parentBoundTranscludeFn:l,futureParentElement:u}=r;if(l&&l.$$boundTransclude&&(l=l.$$boundTransclude),o||(o=function(t){const e=t&&t[0];if(!e)return"html";return"foreignobject"!==U(e)&&toString.call(e).match(/SVG/)?"svg":"html"}(u)),a="html"!==o?_t(pt(o,_t("<div></div>").append(t).html())):n?_t(Array.from(t).map((t=>t.cloneNode(!0)))):t,c)for(const t in c)a.data(`$${t}Controller`,c[t].instance);return n&&n(a,e),s&&s(e,a,a,l),n||(t=s=null),a}}function K(t,e,n,r,i,s){const o=[];let a,c;var l;let u,h,p,d;for(let f=0;f<t.length;f++)a=new D,c=Y(t[f],[],a,0===f?r:void 0,i),h=(l=c.length?nt(c,t[f],a,e,n,null,[],[],s):null)&&l.terminal||!(u=t[f].childNodes)||!u.length?null:K(u,l?(l.transcludeOnThisElement||!l.templateOnThisElement)&&l.transclude:e),(l||h)&&(o.push(f,l,h),p=!0,d=d||l),s=null;return p?function(t,n,r,i){let s,a,c,l,u,h,p,f,$;if(d)for($=new Array(n.length),u=0;u<o.length;u+=3)p=o[u],$[p]=n[p];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,f=s.transcludeOnThisElement?Z(t,s.transclude,i):!s.templateOnThisElement&&i?i:!i&&e?Z(t,e):null,s(a,l,c,r,f)):a&&a(t,c.childNodes,void 0,i)}:null}function Z(t,e,n){function r(r,i,s,o,a){return r||((r=t.$new(!1,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]=Z(t,e.$$slots[r],n):i[r]=null;return r}function Y(t,n,r,i,s){const{nodeType:o}=t,a=r.$attr;let c;switch(o){case Node.ELEMENT_NODE:c=t.nodeName.toLowerCase(),st(n,$t(c),"E",i,s);for(var u,h,p,d,f,$=t.attributes,m=0,g=$&&$.length;m<g;m++){let e,o=!1,c=!1,g=!1,y=!1,v=!1;h=(u=$[m]).name,d=u.value,(f=(p=$t(h.toLowerCase())).match(H))?(g="Attr"===f[1],y="Prop"===f[1],v="On"===f[1],h=h.replace(l,"").toLowerCase().substr(4+f[1].length).replace(/_(.)/g,((t,e)=>e.toUpperCase()))):(e=p.match(W))&&ot(e[1])&&(o=h,c=`${h.substr(0,h.length-5)}end`,h=h.substr(0,h.length-6)),y||v?(r[p]=d,a[p]=u.name,y?ft(t,n,p,h):mt(n,p,h)):(a[p=$t(h.toLowerCase())]=h,!g&&Object.prototype.hasOwnProperty.call(r,p)||(r[p]=d,Qt(t,p)&&(r[p]=!0)),vt(t,n,d,p,g),st(n,p,"A",i,s,o,c))}"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:function(){return function(t,e){t.$watch(r,(t=>{e[0].nodeValue=t}))}}})}(n,t.nodeValue)}return n.sort(ut),n}function X(t,e,n){const r=[];let i=0;if(e&&t.hasAttribute&&t.hasAttribute(e))do{if(!t)throw on("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",e,n);t.nodeType===Node.ELEMENT_NODE&&(t.hasAttribute(e)&&i++,t.hasAttribute(n)&&i--),r.push(t),t=t.nextSibling}while(i>0);else r.push(t);return _t(r)}function tt(t,e,n){return function(r,i,s,o,a){return i=X(i[0],e,n),t(r,i,s,o,a)}}function et(t,e,n,r,i,s){let o;return t?G(e,n,r,i,s):function(){return o||(o=G(e,n,r,i,s),e=n=s=null),o.apply(this,arguments)}}function nt(t,e,n,r,i,s,o,c,l){l=l||{};let u,h,p,d,f,$=-Number.MAX_VALUE,{newScopeDirective:y}=l,{controllerDirectives:w}=l,{newIsolateScopeDirective:b}=l,{templateDirective:E}=l,{nonTlbTranscludeDirective:C}=l,O=!1,S=!1,{hasElementTranscludeDirective:k}=l,_=n.$$element=_t(e),j=s,R=r,P=!1,M=!1;for(let s=0,l=t.length;s<l;s++){u=t[s];const m=u.$$start,g=u.$$end;if(m&&(_=X(e,m,g)),p=void 0,$>u.priority)break;if(f=u.scope,f&&(u.templateUrl||(v(f)?(ht("new/isolated scope",b||y,u,_),b=u):ht("new/isolated scope",b,u,_)),y=y||u),h=u.name,!P&&(u.replace&&(u.templateUrl||u.template)||u.transclude&&!cn.includes(u.name))){let e;for(let n=s+1;e=t[n++];)if(e.transclude&&!cn.includes(e.name)||e.replace&&(e.templateUrl||e.template)){M=!0;break}P=!0}if(!u.templateUrl&&u.controller&&(w=w||Object.create(null),ht(`'${h}' controller`,w[h],u,_),w[h]=u),f=u.transclude,f)if(O=!0,cn.includes(u.name)||(ht("transclusion",C,u,_),C=u),"element"===f)k=!0,$=u.priority,p=_,_=n.$$element=_t(document.createComment("")),e=_[0],wt(i,Q(p),e),R=et(M,p,r,$,j&&j.name,{nonTlbTranscludeDirective:C});else{const t=Object.create(null);if(v(f)){p=window.document.createDocumentFragment();const e=Object.create(null),n=Object.create(null);N(f,((r,i)=>{const s="?"===r.charAt(0);r=s?r.substring(1):r,e[r]=i,t[i]=null,n[i]=s})),N(_t(_[0].childNodes),(r=>{const i=e[$t(U(r))];i?(n[i]=!0,t[i]=t[i]||window.document.createDocumentFragment(),t[i].appendChild(r)):p.appendChild(r)})),N(n,((t,e)=>{if(!t)throw on("reqslot","Required transclusion slot `{0}` was not filled.",e)}));for(const e in t)if(t[e]){const n=_t(t[e].childNodes);t[e]=et(M,n,r)}p=_t(p.childNodes)}else p=e.cloneNode(!0).childNodes;_.empty(),R=et(M,p,r,void 0,void 0,{needsNewScope:u.$$isolateScope||u.$$newScope}),R.$$slots=t}if(u.template)if(S=!0,ht("template",E,u,_),E=u,f=x(u.template)?u.template(_,n):u.template,f=q(f),u.replace){if(j=u,p=Pt(f)?[]:pn(pt(u.templateNamespace,T(f))),e=p[0],1!==p.length||e.nodeType!==Node.ELEMENT_NODE)throw on("tplrt","Template for directive '{0}' must have exactly one root element. {1}",h,"");wt(i,_,e);const r={$attr:{}},o=Y(e,[],r),a=t.splice(s+1,t.length-(s+1));(b||y)&&it(o,b,y),t=t.concat(o).concat(a),ct(n,r),l=t.length}else _.html(f);if(u.templateUrl)S=!0,ht("template",E,u,_),E=u,u.replace&&(j=u),I=lt(t.splice(s,t.length-s),_,n,i,O&&R,o,c,{controllerDirectives:w,newScopeDirective:y!==u&&y,newIsolateScopeDirective:b,templateDirective:E,nonTlbTranscludeDirective:C}),l=t.length;else if(u.compile)try{d=u.compile(_,n,R);const t=u.$$originalDirective||u;x(d)?L(null,J(t,d),m,g):d&&L(J(t,d.pre),J(t,d.post),m,g)}catch(t){a(t,Gt(_))}u.terminal&&(I.terminal=!0,$=Math.max($,u.priority))}return I.scope=y&&!0===y.scope,I.transcludeOnThisElement=O,I.templateOnThisElement=S,I.transclude=R,l.hasElementTranscludeDirective=k,I;function L(t,e,n,r){t&&(n&&(t=tt(t,n,r)),t.require=u.require,t.directiveName=h,(b===u||u.$$isolateScope)&&(t=bt(t,{isolateScope:!0})),o.push(t)),e&&(n&&(e=tt(e,n,r)),e.require=u.require,e.directiveName=h,(b===u||u.$$isolateScope)&&(e=bt(e,{isolateScope:!0})),c.push(e))}function I(t,r,i,s,l){let u,h,p,d,f,$,E,C,O,S;e===i?(O=n,C=n.$$element):(C=_t(i),O=new D(C,n)),f=r,b?d=r.$new(!0):y&&(f=r.$parent),l&&(E=function(t,e,n,r){let i;A(t)||(r=n,n=e,e=t,t=void 0);k&&(i=$);n||(n=k?C.parent():C);if(!r)return l(t,e,i,n,_);{const s=l.$$slots[r];if(s)return s(t,e,i,n,_);if(g(s))throw on("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,Gt(C))}},E.$$boundTransclude=l,E.isSlotFilled=function(t){return!!l.$$slots[t]}),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 p=m(h,u,!0,l.controllerAs);a[l.name]=p,t.data(`$${l.name}Controller`,p.instance)}return a}(C,O,E,w,d,r,b)),b&&(d.$$isolateBindings=b.$$isolateBindings,S=xt(r,O,d,d.$$isolateBindings,b),S.removeWatches&&d.$on("$destroy",S.removeWatches));for(const t in $){const e=w[t],n=$[t],r=e.$$bindings.bindToController;n.instance=n(),C.data(`$${e.name}Controller`,n.instance),n.bindingInfo=xt(f,O,n.instance,r,e)}for(N(w,((t,e)=>{const{require:n}=t;t.bindToController&&!Array.isArray(n)&&v(n)&&V($[e].instance,rt(e,n,C,$))})),N($,(t=>{const e=t.instance;if(x(e.$onChanges))try{e.$onChanges(t.bindingInfo.initialChanges)}catch(t){a(t)}if(x(e.$onInit))try{e.$onInit()}catch(t){a(t)}x(e.$doCheck)&&(f.$watch((()=>{e.$doCheck()})),e.$doCheck()),x(e.$onDestroy)&&f.$on("$destroy",(()=>{e.$onDestroy()}))})),u=0,h=o.length;u<h;u++)p=o[u],Et(p,p.isolateScope?d:r,C,O,p.require&&rt(p.directiveName,p.require,C,$),E);var _=r;for(b&&(b.template||null===b.templateUrl)&&(_=d),t&&t(_,i.childNodes,void 0,l),u=c.length-1;u>=0;u--)p=c[u],Et(p,p.isolateScope?d:r,C,O,p.require&&rt(p.directiveName,p.require,C,$),E);N($,(t=>{const e=t.instance;x(e.$postLink)&&e.$postLink()}))}}function rt(t,e,n,r){let i;if(w(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 on("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]=rt(t,e[s],n,r)}else v(e)&&(i={},N(e,((e,s)=>{i[s]=rt(t,e,n,r)})));return i||null}function it(t,e,n){for(let r=0,i=t.length;r<i;r++)t[r]=M(t[r],{$$isolateScope:e,$$newScope:n})}function st(e,i,s,o,a,c,l){if(i===a)return null;let h=null;if(Object.prototype.hasOwnProperty.call(n,i))for(let n,a=t.get(i+r),p=0,d=a.length;p<d;p++)if(n=a[p],(g(o)||o>n.priority)&&-1!==n.restrict.indexOf(s)){if(c&&(n=M(n,{$$start:c,$$end:l})),!n.$$bindings){const t=n.$$bindings=u(n,n.name);v(t.isolateScope)&&(n.$$isolateBindings=t.isolateScope)}e.push(n),h=n}return h}function ot(e){if(Object.prototype.hasOwnProperty.call(n,e))for(let n,i=t.get(e+r),s=0,o=i.length;s<o;s++)if(n=i[s],n.multiElement)return!0;return!1}function ct(t,e){const n=e.$attr,r=t.$attr;N(t,((r,i)=>{"$"!==i.charAt(0)&&(e[i]&&e[i]!==r&&(r.length?r+=("style"===i?";":" ")+e[i]:r=e[i]),t.$set(i,r,!0,n[i]))})),N(e,((e,i)=>{Object.prototype.hasOwnProperty.call(t,i)||"$"===i.charAt(0)||(t[i]=e,"class"!==i&&"style"!==i&&(r[i]=n[i]))}))}function lt(t,e,n,r,i,s,o,l){let u,h,p=[];const d=e[0],f=t.shift(),$=M(f,{templateUrl:null,transclude:null,replace:null,$$originalDirective:f}),m=x(f.templateUrl)?f.templateUrl(e,n):f.templateUrl,{templateNamespace:g}=f;return e.empty(),c(m).then((a=>{let c,y,w,b;if(a=q(a),f.replace){if(w=Pt(a)?[]:pn(pt(g,T(a))),c=w[0],1!==w.length||c.nodeType!==Node.ELEMENT_NODE)throw on("tplrt","Template for directive '{0}' must have exactly one root element. {1}",f.name,m);y={$attr:{}},wt(r,e,c);const i=Y(c,[],y);v(f.scope)&&it(i,!0),t=i.concat(t),ct(n,y)}else c=d,e.html(a);for(t.unshift($),u=nt(t,c,n,i,e,f,s,o,l),N(r,((t,n)=>{t===c&&(r[n]=e[0])})),h=K(e[0].childNodes,i);p.length;){const t=p.shift(),n=p.shift(),i=p.shift(),s=p.shift();let o=e[0];if(!t.$$destroyed){if(n!==d){const t=n.className;l.hasElementTranscludeDirective&&f.replace||(o=c.cloneNode(!0)),wt(i,_t(n),o);try{""!==t&&o.classList.add(t)}catch(t){}}b=u.transcludeOnThisElement?Z(t,u.transclude,s):s,u(h,t,o,r,b)}}p=null})).catch((t=>{C(t)&&a(t)})),function(t,e,n,r,i){let s=i;e.$$destroyed||(p?p.push(e,n,r,s):(u.transcludeOnThisElement&&(s=Z(e,u.transclude,i)),u(h,e,n,r,s)))}}function ut(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 ht(t,e,n,r){function i(t){return t?` (module: ${t})`:""}if(e)throw on("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",e.name,i(e.$$moduleName),n.name,i(n.$$moduleName),t,Gt(r))}function pt(t,e){switch(t=$(t||"html")){case"svg":case"math":var n=window.document.createElement("div");return n.innerHTML=`<${t}>${e}</${t}>`,n.childNodes[0].childNodes;default:return e}}function dt(t){return P(b.valueOf(t),"ng-prop-srcset")}function ft(t,e,n,r){if(o.test(r))throw on("nodomevents","Property bindings for HTML DOM event properties are disallowed");const i=U(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=b.getTrusted.bind(b,s)):a=dt,e.push({priority:100,compile:function(t,e){const i=f(e[n]),s=f(e[n],(t=>b.valueOf(t)));return{pre:function(t,e){function n(){const n=i(t);e[0][r]=a(n)}n(),t.$watch(s,n)}}}})}function mt(t,e,n){t.push(rn(f,y,a,e,n,!1))}function vt(t,n,r,s,a){const c=U(t),l=function(t,e){return"srcdoc"===e?b.HTML:"src"===e||"ngSrc"===e?-1===["img","video","audio","source","track"].indexOf(t)?b.RESOURCE_URL:b.MEDIA_URL:"xlinkHref"===e?"image"===t?b.MEDIA_URL:"a"===t?b.URL:b.RESOURCE_URL:"form"===t&&"action"===e||"base"===t&&"href"===e||"link"===t&&"href"===e?b.RESOURCE_URL:"a"!==t||"href"!==e&&"ngHref"!==e?void 0:b.URL}(c,s),u=i[s]||a;let h=e(r,!a,l,u);if(h){if("multiple"===s&&"select"===c)throw on("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",Gt(t.outerHTML));if(o.test(s))throw on("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 wt(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,t.context===r&&(t.context=n);break}s&&s.replaceChild(n,r);const c=window.document.createDocumentFragment();for(o=0;o<i;o++)c.appendChild(e[o]);for(yt.has(r[gt])&&(qt(n,qt(r)),_t(r).off("$destroy")),Jt(c.querySelectorAll("*")),o=1;o<i;o++)delete e[o];e[0]=n,e.length=1}function bt(t,e){return V((function(){return t.apply(null,arguments)}),t,e)}function Et(t,e,n,r,i,s){try{t(e,n,r,i,s)}catch(t){console.error(t),a(t,Gt(n))}}function Ct(t,e){if(p)throw on("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",t,e)}function xt(t,n,r,i,s){const o=[],a={};let c;function l(e,n,i){x(r.$onChanges)&&!B(n,i)&&(_||(t.$$postDigest(R),_=[]),c||(c={},_.push(u)),c[e]&&(i=c[e].previousValue),c[e]=new un(i,n))}function u(){r.$onChanges(c),c=void 0}return N(i,((i,c)=>{const{attrName:u}=i,{optional:h}=i,{mode:p}=i;let d,$,m,g,y;switch(p){case"@":h||hasOwnProperty.call(n,u)||(Ct(u,s.name),r[c]=n[u]=void 0),y=n.$observe(u,(t=>{if(w(t)||k(t)){const e=r[c];l(c,t,e),r[c]=t}})),n.$$observers[u].$$scope=t,d=n[u],w(d)?r[c]=e(d)(t):k(d)&&(r[c]=d),a[c]=new un(an,r[c]),o.push(y);break;case"=":if(!Object.hasOwnProperty.call(n,u)){if(h)break;Ct(u,s.name),n[u]=void 0}if(h&&!n[u])break;$=f(n[u]),g=$.literal?z:B,m=$.assign||function(){throw d=r[c]=$(t),on("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",n[u],u,s.name)},d=r[c]=$(t);var v=function(e){return g(e,r[c])||(g(e,d)?m(t,e=r[c]):r[c]=e),d=e,d};v.$stateful=!0,y=i.collection?t.$watchCollection(n[u],v):t.$watch(f(n[u],v),null,$.literal),o.push(y);break;case"<":if(!Object.hasOwnProperty.call(n,u)){if(h)break;Ct(u,s.name),n[u]=void 0}if(h&&!n[u])break;$=f(n[u]);var b=$.literal,E=r[c]=$(t);a[c]=new un(an,r[c]),y=t[i.collection?"$watchCollection":"$watch"]($,((t,e)=>{if(e===t){if(e===E||b&&z(e,E))return;e=E}l(c,t,e),r[c]=t})),o.push(y);break;case"&":if(h||Object.hasOwnProperty.call(n,u)||Ct(u,s.name),$=Object.prototype.hasOwnProperty.call(n,u)?f(n[u]):()=>{},$.toString()===(()=>{}).toString()&&h)break;r[c]=function(e){return $(t,e)}}})),{initialChanges:a,removeWatches:o.length&&function(){for(let t=0,e=o.length;t<e;++t)o[t]()}}}}]}ln.$inject=["$provide","$$sanitizeUriProvider"];class un{constructor(t,e){this.previousValue=t,this.currentValue=e}isFirstChange(){return this.previousValue===an}}function hn(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 pn(t){let e=(t=_t(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 dn={$addControl:()=>{},$getControls:L([]),$$renameControl:function(t,e){t.$name=e},$removeControl:()=>{},$setValidity:()=>{},$setDirty:()=>{},$setPristine:()=>{},$setSubmitted:()=>{},$$setSubmitted:()=>{}},fn="ng-pending",$n="ng-submitted";function mn(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=dn,this.$$element=t,this.$$animate=r,wn(this)}mn.$inject=["$element","$attrs","$scope","$animate","$interpolate"],mn.prototype={$rollbackViewValue(){this.$$controls.forEach((t=>{t.$rollbackViewValue()}))},$commitViewValue(){this.$$controls.forEach((t=>{t.$commitViewValue()}))},$addControl(t){W(t.$name,"input"),this.$$controls.push(t),t.$name&&(this[t.$name]=t),t.$$parentForm=this},$getControls(){return st(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],N(this.$pending,(function(e,n){this.$setValidity(n,null,t)}),this),N(this.$error,(function(e,n){this.$setValidity(n,null,t)}),this),N(this.$$success,(function(e,n){this.$setValidity(n,null,t)}),this),F(this.$$controls,t),t.$$parentForm=dn},$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} ${$n}`),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!==dn;)t=t.$$parentForm;t.$$setSubmitted()},$$setSubmitted(){this.$$animate.addClass(this.$$element,$n),this.$submitted=!0,this.$$controls.forEach((t=>{t.$$setSubmitted&&t.$$setSubmitted()}))}},bn({clazz:mn,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&&(F(r,n),0===r.length&&delete t[e])}});const gn=function(t){return["$timeout","$parse",function(n,i){return{name:"form",restrict:t?"EA":"E",require:["form","^^?form"],controller:mn,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,dn)}))}}}};function s(t){return""===t?i('this[""]').assign:i(t).assign||(()=>{})}}]},yn=gn(),vn=gn(!0);function wn(t){t.$$classCache={},t.$$classCache[n]=!(t.$$classCache[e]=t.$$element[0].classList.contains(e))}function bn(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,fn,!0),this.$valid=this.$invalid=void 0,a(this,"",null)):(o(this,fn,!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)}}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 xn{static $inject=["$attrs","$scope"];constructor(t,e){this.$$attrs=t,this.$$scope=e,this.parentCtrl}$onInit(){const t=this.parentCtrl?this.parentCtrl.$options:Sn,e=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=t.createChild(e)}}class On{constructor(t){this.$$options=t}getOption(t){return this.$$options[t]}createChild(t){let e=!1;return N(t=Object.assign({},t),(function(n,r){"$inherit"===n?"*"===r?e=!0:(t[r]=this.$$options[r],"updateOn"===r&&(t.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===r&&(t.updateOnDefault=!1,t[r]=T(n.replace(Cn,(()=>(t.updateOnDefault=!0," ")))))}),this),e&&(delete t["*"],kn(t,this.$$options)),kn(t,Sn.$$options),new On(t)}}const Sn=new On({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1}),An=function(){return{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:xn}};function kn(t,e){Object.keys(e).forEach((n=>{y(t[n])||(t[n]=e[n])}))}const _n=ht("ngModel");function Tn(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=dn,this.$options=Sn,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,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}))}Tn.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"],Tn.prototype={$$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 x(n)&&(n=t(e)),n},this.$$ngModelSet=function(t,n){x(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,Gt(this.$$element))},$render:()=>{},$isEmpty:t=>g(t)||""===t||null===t||t!=t,$$updateEmptyClasses(t){this.$isEmpty(t)?mt(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)):mt(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,mt(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,mt(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,mt(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,mt(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(D(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||(N(i.$validators,((t,e)=>{s(e,null)})),N(i.$asyncValidators,((t,e)=>{s(e,null)}))),s(t,i.$$parserValid),i.$$parserValid;s(t,null);return!0}()?o(!1):function(){let n=!0;if(N(i.$validators,((r,i)=>{const o=Boolean(r(t,e));n=n&&o,s(i,o)})),!n)return N(i.$asyncValidators,((t,e)=>{s(e,null)})),!1;return!0}()?function(){const n=[];let r=!0;N(i.$asyncValidators,((i,o)=>{const a=i(t,e);if(!_(a))throw _n("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);s(o,void 0),n.push(a.then((()=>{s(o,!0)}),(()=>{r=!1,s(o,!1)})))})),n.length?i.$$q.all(n).then((()=>{o(r)}),(()=>{})):o(!0)}():o(!1)},$commitViewValue(){const t=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==t||""===t&&this.$$hasNativeValidators)&&(void 0===this.$$lastCommittedViewValue&&Number.isNaN(t)||(this.$$updateEmptyClasses(t),this.$$lastCommittedViewValue=t,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}D(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),N(this.$viewChangeListeners,(function(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");b(e[t])?e=e[t]:b(e.default)&&-1===this.$options.getOption("updateOn").indexOf(t)?e=e.default:b(e["*"])&&(e=e["*"]),this.$$timeout.cancel(this.$$pendingDebounce);const n=this;e>0?this.$$pendingDebounce=this.$$timeout((()=>{n.$commitViewValue()}),e):this.$$rootScope.$$phase!==ke.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)}},bn({clazz:Tn,set(t,e){t[e]=!0},unset(t,e){delete t[e]}});const jn=["$rootScope",t=>({restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Tn,priority:1,compile:function(n){return n[0].classList.add(r,s,e),{pre:function(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:function(e,n,r,i){const s=i[0];function o(){s.$setTouched()}s.$$setUpdateOnEvents(),n.on("blur",(()=>{s.$touched||(t.$$phase!==ke.NONE?e.$evalAsync(o):e.$apply(o))}))}}}})],Nn=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Rn=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Vn=/^(?=.{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)$/,qn=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Un="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:Qn("date",Dn,Gn(Dn,["yyyy","MM","dd"])),"datetime-local":Qn("datetimelocal",Mn,Gn(Mn,["yyyy","MM","dd","HH","mm","ss","sss"])),time:Qn("time",qn,Gn(qn,["HH","mm","ss","sss"])),week:Qn("week",Ln,(function(t,e){if(E(t))return t;if(w(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:Qn("month",In,Gn(In,["yyyy","MM"])),number:function(t,e,n,r,i,s,o){let a;if(Jn(t,e,n,r,"number"),Zn(r),Wn(t,e,n,r,i),y(n.min)||n.ngMin){let e=n.min||o(n.ngMin)(t);a=Yn(e),r.$validators.min=function(t,e){return r.$isEmpty(e)||g(a)||e>=a},n.$observe("min",(t=>{t!==e&&(a=Yn(t),e=t,r.$validate())}))}if(y(n.max)||n.ngMax){let e=n.max||o(n.ngMax)(t),i=Yn(e);r.$validators.max=function(t,e){return r.$isEmpty(e)||g(i)||e<=i},n.$observe("max",(t=>{t!==e&&(i=Yn(t),e=t,r.$validate())}))}if(y(n.step)||n.ngStep){let e=n.step||o(n.ngStep)(t),i=Yn(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=Yn(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)||Rn.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)||Vn.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"),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=y(n.min),h=y(n.max),p=y(n.step),d=r.$render;r.$render=s&&y(l.rangeUnderflow)&&y(l.rangeOverflow)?function(){d(),r.$setViewValue(e.val())}:d,u&&(o=Yn(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=Yn(t),D(r.$modelValue))return;if(s){let t=e.val();o>t&&(t=o,e.val(t)),r.$setViewValue(t)}else r.$validate()})));h&&(a=Yn(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=Yn(t),D(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()})));p&&(c=Yn(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=Yn(t),D(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=>z(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);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[Un],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(w(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Nn.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},N(i,((t,n)=>{n<e.length&&(s[e[n]]=+t)}));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 Qn(t,e,n){return function(r,i,s,o,a,c,l){if(Jn(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:p(n,undefined):void(o.$$parserName=t))),o.$formatters.push((function(e){if(e&&!w(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})),y(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(y(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 y(t)&&!E(t)?p(t)||void 0:t}function p(t,e){const r=o.$options.getOption("timezone");let i=n(t,e);return!Number.isNaN(i)&&r&&(i=X(i,r)),i}}}function Jn(t,e,n,r,i){const s=e[0];(r.$$hasNativeValidators=v(s.validity))&&r.$parsers.push((t=>{const n=e[0][Un]||{};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(!b(e))throw _n("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e}))}function Yn(t){return y(t)&&!b(t)&&(t=parseFloat(t)),D(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(y(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=y(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)}))}}}const ar=["$templateCache",t=>({restrict:"E",terminal:!0,compile(e,n){if("text/ng-template"===n.type){const r=n.id,{text:i}=e[0];t.put(r,i)}}})];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=_t(window.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`? ${dt(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(_t(r),!1),n.hasOption(e)){n.removeUnknownOption();const r=dt(e);t.val(r in n.selectValueMap?r:e);cr(_t(t[0].options[t[0].selectedIndex]),!0)}else n.selectUnknownOrEmptyOption(e)},n.addOption=function(t,e){if(e[0].nodeType===Node.COMMENT_NODE)return;W(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;y(l)&&(n.removeOption(c),delete n.selectValueMap[l],r=!0),l=dt(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;y(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&&(H(t,e.value)||H(t,i.selectValueMap[e.value]));n!==e.selected&&cr(_t(e),n)}))};let r=NaN;t.$watch((()=>{r!==s.$viewValue||z(n,s.$viewValue)||(n=st(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 y(n.ngValue)||(y(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 pr(){return{restrict:"EA",link:(t,e,n)=>{t.$watch(n.ngBind,(t=>{e[0].textContent=G(t)}))}}}function dr(){return{restrict:"EA",link:(t,e,n)=>{n.$observe("ngBindTemplate",(t=>{e[0].textContent=g(t)?"":t}))}}}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"),p=!0;function d(t,e){const n=[];return N(t,(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=d(i(n=u),1),l.$addClass(n)):function(t){t=d(i(t),-1),l.$removeClass(t)}(u);var n;p=t}))),a.$watch(o(l[t],s),(function(t){p===e&&function(t,e){const n=i(t),s=i(e),o=r(n,s),a=r(s,n),c=d(o,-1),u=d(a,1);l.$addClass(u),l.$removeClass(c)}(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(" "):v(t)?e=Object.keys(t).filter((e=>t[e])).join(" "):w(t)||(e=`${t}`),e}}const mr=$r("",!0),gr=$r("Odd",0),yr=$r("Even",1);function vr(){return{restrict:"EA",compile(t,e){e.$set("ngCloak",void 0),t[0].classList.remove("ng-cloak")}}}const wr=[()=>({restrict:"A",scope:!0,controller:"@",priority:500})],br="ng-hide",Er="ng-hide-animate";function Cr(t){return{restrict:"A",multiElement:!0,link(e,n,r){e.$watch(r.ngShow,(e=>{t[e?"removeClass":"addClass"](n,br,{tempClasses:Er})}))}}}function xr(t){return{restrict:"A",multiElement:!0,link(e,n,r){e.$watch(r.ngHide,(e=>{t[e?"addClass":"removeClass"](n,br,{tempClasses:Er})}))}}}Cr.$inject=["$animate"],xr.$inject=["$animate"];const Or=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}),Sr="-add",Ar="-remove",kr="ng-",_r="-active",Tr="-prepare",jr="ng-animate",Nr="$$ngAnimateChildren";let Rr,Vr,Pr,Dr;void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend?(Rr="WebkitTransition",Vr="webkitTransitionEnd transitionend"):(Rr="transition",Vr="transitionend"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend?(Pr="WebkitAnimation",Dr="webkitAnimationEnd animationend"):(Pr="animation",Dr="animationend");const Mr="Duration",Lr=Or.Property,Ir="Delay",qr="TimingFunction",Ur="PlayState",Hr=9999,Fr=Pr+Ir,Br=Pr+Mr,zr=Rr+Ir,Wr=Rr+Mr,Gr=ht("ng");function Kr(t,e,n){if(!t)throw Gr("areq","Argument '{0}' is {1}",e||"?",n);return t}function Qr(t,e,n){let r="";return(t=Array.isArray(t)?t:t&&w(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 _t)switch(t.length){case 0:return t;case 1:if(t[0].nodeType===Node.ELEMENT_NODE)return t;break;default:return _t(Zr(t))}if(t.nodeType===Node.ELEMENT_NODE)return _t(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 Yr(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),N(e,((t,e)=>{s[e]=r})),n=a(n),N(n,((t,e)=>{s[e]=s[e]===r?null:i}));const o={addClass:"",removeClass:""};function a(t){w(t)&&(t=t.split(" "));const e={};return N(t,(t=>{t.length&&(e[t]=!0)})),e}return N(s,(function(e,n){var s,a;e===r?(s="addClass",a=!t[n]||t[n+Ar]):e===i&&(s="removeClass",a=t[n]||t[n+Sr]),a&&(o[s].length&&(o[s]+=" "),o[s]+=n)})),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 _t?t[0]:t}function ii(t,e){const n=e?"paused":"",r=Pr+Ur;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}function ai(t,e){for(const n in e)t.style[n]=e[n]}const ci=ht("$animate");function li(t,e){return t||e?t?e?(Array.isArray(t)&&(t=t.join(" ")),Array.isArray(e)&&(e=e.join(" ")),`${t} ${e}`):t:e:""}function ui(t){return v(t)?t:{}}function hi(){const t=new Map,e=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){return{enabled:()=>{},on:()=>{},off:()=>{},pin:()=>{},push(o,a,c,l){l&&l(),(c=c||{}).from&&ai(o[0],c.from),c.to&&ai(o[0],c.to),(c.addClass||c.removeClass)&&function(n,o,a){const c=t.get(n)||{},l=i(c,o,!0),u=i(c,a,!1);(l||u)&&(t.set(n,c),e.push(n),1===e.length&&r.$$postDigest(s))}(o,c.addClass,c.removeClass);const u=new n;return u.complete(),u}};function i(t,e,n){let r=!1;return e&&N(e=w(e)?e.split(" "):Array.isArray(e)?e:[],(e=>{e&&(r=!0,t[e]=n)})),r}function s(){N(e,(function(e){const n=t.get(e);if(n){const r=function(t){w(t)&&(t=t.split(" "));const e=Object.create(null);return N(t,(t=>{t.length&&(e[t]=!0)})),e}(e.attr("class"));let i="",s="";N(n,(function(t,e){t!==!!r[e]&&(t?i+=(i.length?" ":"")+e:s+=(s.length?" ":"")+e)})),N(e,(function(t){s&&s.split(" ").forEach((e=>t.classList.remove(e))),i&&i.split(" ").forEach((e=>t.classList.add(e)))})),t.delete(e)}})),e.length=0}}]}function pi(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 di(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 ci("notcsel","Expecting class selector starting with '.' got '{0}'.",n);const i=`${n}-animation`;e.$$registeredAnimations[n.substr(1)]=i,t.factory(i,r)},this.customFilter=function(t){return 1===arguments.length&&(r=x(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,ci("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&&_t(n),r=r&&_t(r),pi(e,n=n||r.parent(),r),t.push(e,"enter",ui(i))),move:(e,n,r,i)=>(n=n&&_t(n),r=r&&_t(r),pi(e,n=n||r.parent(),r),t.push(e,"move",ui(i))),leave:(e,n)=>t.push(e,"leave",ui(n),(()=>{e.remove()})),addClass:(e,n,r)=>((r=ui(r)).addClass=li(r.addClass,n),t.push(e,"addClass",r)),removeClass:(e,n,r)=>((r=ui(r)).removeClass=li(r.removeClass,n),t.push(e,"removeClass",r)),setClass:(e,n,r,i)=>((i=ui(i)).addClass=li(i.addClass,n),i.removeClass=li(i.removeClass,r),t.push(e,"setClass",i)),animate:(e,n,r,i,s)=>((s=ui(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=li(s.tempClasses,i),t.push(e,"animate",s))}}]}function fi(t){return{multiElement:!0,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},mt(e[0])?t.enter(e,n.parent(),n):pi(e,n.parent(),n)})):(c&&(c.remove(),c=null),a&&(a.$destroy(),a=null),o&&(c=Kt(o.clone),mt(c[0])?t.leave(c).done((t=>{!1!==t&&(c=null)})):c.remove(),o=null))}))}}}di.$inject=["$provide"],fi.$inject=["$animate"];const $i=["$templateRequest","$anchorScroll","$animate",(t,e,n)=>({restrict:"ECA",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(){!y(a)||a&&!r.$eval(a)||e()}let p,d,f,$=0;const m=()=>{d&&(d.remove(),d=null),p&&(p.$destroy(),p=null),f&&(mt(f[0])?n.leave(f).done((t=>{!1!==t&&(d=null)})):f.remove(),d=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 d=u(c,(t=>{m(),mt(t[0])?n.enter(t,null,i).done(s):(pi(t,null,i),h())}));p=c,f=d,p.$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:"ECA",priority:-400,require:"ngInclude",link(e,n,r,i){if(toString.call(n[0]).match(/SVG/))return n.empty(),void t(Mt(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 yi(){return{restrict:"EA",terminal:!0,priority:1e3}}const vi=ht("ngRef"),wi=["$parse",t=>({priority:-1,restrict:"A",compile(e,n){const r=$t(U(e)),i=t(n.ngRef),s=i.assign||function(){throw vi("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 vi("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)}))}}})],bi=["$parse","$animate",(t,e)=>{const n="$$NG_REMOVED",r=ht("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 dt(n)},c=function(t,e){return e};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,compile:function(l,u){const h=u.ngRepeat;let p=h.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!p)throw r("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",h);const d=p[1],f=p[2],$=p[3],g=p[4];if(p=d.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/),!p)throw r("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",d);const y=p[3]||p[1],v=p[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 w;if(g){var b={$id:dt};const e=t(g);w=function(t,n,r,i){return v&&(b[v]=n),b[y]=r,b.$index=i,e(t,b)}}return function(t,l,u,p,d){let g=Object.create(null);t.$watchCollection(f,(u=>{var p,f,E,C,x,O,S,A,k,_,T,j,R=l[0],V=Object.create(null);if($&&(t[$]=u),m(u))k=u,A=w||a;else for(var P in A=w||c,k=[],u)Object.hasOwnProperty.call(u,P)&&"$"!==P.charAt(0)&&k.push(P);for(C=k.length,T=new Array(C),p=0;p<C;p++)if(x=u===k?p:k[p],O=u[x],S=A(t,x,O,p),g[S])_=g[S],delete g[S],V[S]=_,T[p]=_;else{if(V[S])throw N(T,(function(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,S,O);T[p]={id:S,scope:void 0,clone:void 0},V[S]=!0}for(var D in b&&(b[y]=void 0),g){if(j=Kt((_=g[D]).clone),e.leave(j),j[0].parentNode)for(p=0,f=j.length;p<f;p++)j[p][n]=!0;_.scope.$destroy()}for(p=0;p<C;p++)if(x=u===k?p:k[p],O=u[x],(_=T[p]).scope){E=R;do{E=E.nextSibling}while(E&&E[n]);s(_)!==E&&e.move(Kt(_.clone),null,R),R=o(_),i(_.scope,p,y,O,v,x,C)}else d(((t,n)=>{_.scope=n;const r=document.createComment("");t[t.length++]=r,e.enter(t,null,R),R=r,_.clone=t,e.enter(t,null,R),R=t,_.clone=t,V[_.id]=_,i(_.scope,p,y,O,v,x,C)}));g=V}))}}}}];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}}}))}}}const Ci=["$animate",t=>({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=Kt(a[n].clone);l[n].$destroy();(c[n]=t.leave(e)).done(u(c,n))}a.length=0,l.length=0,(o=i.cases[`!${e}`]||i.cases["?"])&&N(o,(e=>{e.transclude(((n,r)=>{l.push(r);const i=e.element;n[n.length++]=document.createComment("");const s={clone:n};a.push(s),t.enter(n,i.parent(),i)}))}))}))}})];function xi(){return{transclude:"element",priority:1200,restrict:"EA",require:"^ngSwitch",multiElement:!0,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 Oi(){return{restrict:"EA",transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link(t,e,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:e})}}}const Si=ht("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=window.document.createElement("option"),r=window.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 p;_t(n.cloneNode(!1)).val("?");const d=function(t,n,r){const i=t.match(Ai);if(!i)throw Si("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,Gt(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),p=c?function(t,e){return h(r,e)}:function(t){return dt(t)},d=function(t,e){return p(t,w(t,e))},f=e(i[2]||i[1]),$=e(i[3]||""),g=e(i[4]||""),y=e(i[8]),v={};let w=o?function(t,e){return v[o]=e,v[s]=t,v}:function(t){return v[s]=t,v};function b(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:d,getWatchables:e(y,(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=w(a,s),l=p(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=y(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=w(a,s),l=u(r,c),h=p(l,c),d=new b(h,l,f(r,c),$(r,c),g(r,c));t.push(d),e[h]=d}return{items:t,selectValueMap:e,getOptionFromViewValue:t=>e[d(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=p.getOptionFromViewValue(t),n=e&&e.element;return n&&!n.selected&&(n.selected=!0),e}c.generateUnknownOptionValue=()=>"?",u?(c.writeValue=function(t){if(!p)return;const e=t&&t.map(g)||[];p.items.forEach((t=>{t.element.selected&&!H(e,t)&&(t.element.selected=!1)}))},c.readValue=function(){const t=s.val()||[],e=[];return N(t,(t=>{const n=p.selectValueMap[t];n&&!n.disabled&&e.push(p.getViewValueFromOption(n))})),e},d.trackBy&&i.$watchCollection((()=>{if(Array.isArray(l.$viewValue))return l.$viewValue.map((t=>d.getTrackByValue(t)))}),(()=>{l.$render()}))):(c.writeValue=function(t){if(!p)return;const e=s[0].options[s[0].selectedIndex],n=p.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=p.selectValueMap[s.val()];return t&&!t.disabled?(c.unselectEmptyOption(),c.removeUnknownOption(),p.getViewValueFromOption(t)):null},d.trackBy&&i.$watch((()=>d.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(d.getWatchables,(function(){const t=p&&c.readValue();if(p)for(let t=p.items.length-1;t>=0;t--){const e=p.items[t];y(e.group)?Ft(e.element.parentNode):Ft(e.element)}p=d.getOptions();const e={};if(p.items.forEach((t=>{let n;y(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();(d.trackBy||u?z(t,e):t===e)||(l.$setViewValue(e),l.$render())}}))}}}}],_i=ht("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}",Gt(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",priority:100,require:"ngModel",link(t,e,n,r){const i=n.ngList||", ",s="false"!==n.ngTrim,o=s?T(i):i;r.$parsers.push((function(t){if(g(t))return;const e=[];return t&&N(t.split(o),(t=>{t&&e.push(s?T(t):t)})),e})),r.$formatters.push((t=>{if(Array.isArray(t))return t.join(i)})),r.$isEmpty=function(t){return!t||!t.length}}}}function Ni(){return{restrict:"A",require:"ngModel",link(t,e,n,r){r.$viewChangeListeners.push((()=>t.$eval(n.ngChange)))}}}const Ri=/^\/(.+)\/([a-z]*)$/,Vi={};Object.entries(At).forEach((([t,e])=>{if("multiple"===e)return;function n(e,n,i){e.$watch(i[r],(e=>{i.$set(t,!!e)}))}let r=$t(`ng-${t}`),i=n;"checked"===e&&(i=function(t,e,i){i.ngModel!==i[r]&&n(t,0,i)}),Vi[r]=function(){return{restrict:"A",priority:100,link:i}}})),Object.entries(h).forEach((([t])=>{Vi[t]=function(){return{priority:100,link(e,n,r){if("ngPattern"===t&&"/"===r.ngPattern.charAt(0)){const t=r.ngPattern.match(Ri);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=$t(`ng-${t}`);Vi[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 Pi=["$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=function(t,e){return!s||!i.$isEmpty(e)},r.$observe("required",(t=>{s!==t&&(s=t,i.$validate())}))}})],Di=["$parse",function(t){return{restrict:"A",require:"?ngModel",compile:function(e,n){var r,i;return n.ngPattern&&(r=n.ngPattern,i="/"===n.ngPattern.charAt(0)&&Ri.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=Ii(o,r,e);n.$observe("pattern",(function(t){var n=a;a=Ii(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)}}}}}}],Mi=["$parse",t=>({restrict:"A",require:"?ngModel",link(e,n,r,i){if(!i)return;let s=r.maxlength||t(r.ngMaxlength)(e),o=qi(s);r.$observe("maxlength",(t=>{s!==t&&(o=qi(t),s=t,i.$validate())})),i.$validators.maxlength=function(t,e){return o<0||i.$isEmpty(e)||e.length<=o}}})],Li=["$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=qi(s)||-1;r.$observe("minlength",(t=>{s!==t&&(o=qi(t)||-1,s=t,i.$validate())})),i.$validators.minlength=function(t,e){return i.$isEmpty(e)||e.length>=o}}}}];function Ii(t,e,n){if(t){if(w(t)&&(t=new RegExp(`^${t}$`)),!t.test)throw ht("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",e,t,Gt(n));return t}}function qi(t){const e=P(t);return D(e)?-1:e}function Ui(){let t=!0;this.disableAutoScrolling=()=>{t=!1},this.$get=["$location","$rootScope",function(e,n){function r(t){if(t){t.scrollIntoView();const e=function(){let t=i.yOffset;if(x(t))t=t();else if(q(t)){const e=t[0];t="fixed"!==window.getComputedStyle(e).position?0:e.getBoundingClientRect().bottom}else b(t)||(t=0);return t}();if(e){const n=t.getBoundingClientRect().top;window.scrollBy(0,n-e)}}else window.scrollTo(0,0)}const i=function(t){let n;(t=w(t)?t:b(t)?t.toString():e.hash())?(n=document.getElementById(t))||(n=function(t){let e=null;return Array.prototype.some.call(t,(t=>{if("a"===U(t))return e=t,!0})),e}(document.getElementsByName(t)))?r(n):"top"===t&&r(null):r(null)};return t&&n.$watch((()=>e.hash()),((t,e)=>{if(t===e&&""===t)return;const r=()=>n.$evalAsync(i);"complete"===document.readyState?window.setTimeout((()=>r())):window.addEventListener("load",(()=>r()))})),i}]}let Hi=null;function Fi(t){return t.replace(/#$/,"")}function Bi(t){const e=this,n={},r=[];let i,s,o=!1;e.$$completeOutstandingRequest=t.completeTask,e.$$incOutstandingRequestCount=t.incTaskCount,e.notifyWhenNoOutstandingRequests=t.notifyWhenNoPendingTasks;let a=window.location.href;const c=_t(Array.from(document.getElementsByTagName("base")));function l(){h()}function u(){i=history.state,i=g(i)?null:i,z(i,Hi)&&(i=Hi),Hi=i,s=i}function h(){const t=s;u(),a===e.url()&&t===i||(a=e.url(),s=i,r.forEach((t=>{t(Fi(window.location.href),i)})))}u(),e.url=function(t,n,r){return g(r)&&(r=null),t?(t=Ge(t).href,a===t&&s===r||(a=t,s=r,history.pushState(r,"",t),u()),e):Fi(window.location.href)},e.state=function(){return i},e.onUrlChange=function(t){return o||(_t(window).on("popstate",l),_t(window).on("hashchange",l),o=!0),r.push(t),t},e.$$applicationDestroyed=function(){_t(window).off("hashchange popstate",l)},e.$$checkUrlChange=h,e.baseHref=function(){const t=c.attr("href");return t?t.replace(/^(https?:)?\/\/[^/]*/,""):""},e.defer=function(e,r,i){let s;return r=r||0,i=i||t.DEFAULT_TASK_TYPE,t.incTaskCount(i),s=window.setTimeout((()=>{delete n[s],t.completeTask(e,i)}),r),n[s]=i,s},e.cancel=function(e){if(Object.prototype.hasOwnProperty.call(n,e)){const r=n[e];return delete n[e],window.clearTimeout(e),t.completeTask((()=>{}),r),!0}return!1}}class zi{$get=["$$taskTrackerFactory",function(t){return new Bi(t)}]}function Wi(){this.$get=["$$AnimateRunner",t=>function(e,n){let r,i=n||{};i.$$prepared||(i=structuredClone(i)),i.cleanupStyles&&(i.from=i.to=null),i.from&&(ai(e[0],i.from),i.from=null);const s=new t;function o(){return requestAnimationFrame((()=>{!function(){i.addClass&&(e[0].classList.add(i.addClass),i.addClass=null);i.removeClass&&(e[0].classList.remove(i.removeClass),i.removeClass=null);i.to&&(ai(e[0],i.to),i.to=null)}(),r||s.complete(),r=!0})),s}return{start:o,end:o}}]}function Gi(){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 Ki,Qi,Ji,Zi;function Yi(){this.$get=["$q","$$animateAsyncRun","$timeout",function(t,e,n){return Ki=t,Qi=e,Ji=n,Xi}]}class Xi{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=Qi();this._doneCallbacks=[],this._tick=t=>{document.hidden?(t=>{Ji(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=Ki(((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)}}function ts(){this.$get=function(){const t={};function e(e,n){if(e in t)throw ht("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);let r=0,i=V({},n,{id:e}),s=Object.create(null);const o=n&&n.capacity||Number.MAX_VALUE;let a=Object.create(null),c=null,l=null;return t[e]={put(t,e){if(!g(e)){if(o<Number.MAX_VALUE){u(a[t]||(a[t]={key:t}))}return t in s||r++,s[t]=e,r>o&&this.remove(l.key),e}},get(t){if(o<Number.MAX_VALUE){const e=a[t];if(!e)return;u(e)}return s[t]},remove(t){if(o<Number.MAX_VALUE){const e=a[t];if(!e)return;e===c&&(c=e.p),e===l&&(l=e.n),h(e.n,e.p),delete a[t]}t in s&&(delete s[t],r--)},removeAll(){s=Object.create(null),r=0,a=Object.create(null),c=l=null},destroy(){s=null,i=null,a=null,delete t[e]},info:()=>V({},i,{size:r})};function u(t){t!==c&&(l?l===t&&(l=t.n):l=t,h(t.n,t.p),h(t,c),c=t,c.n=null)}function h(t,e){t!==e&&(t&&(t.p=e),e&&(e.n=t))}}return e.info=function(){const e={};return N(t,((t,n)=>{e[n]=t.info()})),e},e.get=function(e){return t[e]},e}}function es(){this.$get=["$cacheFactory",t=>t("templates")]}const ns=(t,e)=>{Zi.error(t,e)};function rs(){this.$get=["$log",function(t){return Zi=t,ns}]}function is(){return function(t,e,n,r){if(!m(t)){if(null==t)return t;throw ht("filter")("notarray","Expected array but received: {0}",t)}let i;r=r||"$";let s=!1;switch(os(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=v(t)&&n in t;let s;!0===e?e=z:x(e)||(e=function(t,e){return!g(t)&&(null===t||null===e?t===e:!(v(e)||v(t)&&!I(t))&&(t=$(`${t}`),e=$(`${e}`),-1!==t.indexOf(e)))});return s=function(s){return i&&!v(s)?ss(s,t[n],e,n,!1):ss(s,t,e,n,r)},s}(e,n,r,s);break;default:return t}return Array.prototype.filter.call(t,i)}}function ss(t,e,n,r,i,s){const o=os(t),a=os(e);if("string"===a&&"!"===e.charAt(0))return!ss(t,e.substring(1),n,r,i);if(Array.isArray(t))return t.some((t=>ss(t,e,n,r,i)));switch(o){case"object":if(i){for(let i in t)if(i.charAt&&"$"!==i.charAt(0)&&ss(t[i],e,n,r,!0))return!0;return!s&&ss(t,e,n,r,!1)}if("object"===a){for(let i in e){const s=e[i];if(x(s)||g(s))continue;const o=i===r;if(!ss(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 os(t){return null===t?"null":typeof t}function as(){return function(t,e){return g(e)&&(e=2),Y(t,e)}}function cs(){return function(t,e,n){return D(e=Math.abs(Number(e))===1/0?Number(e):P(e))?t:(b(t)&&(t=t.toString()),m(t)?(n=(n=!n||isNaN(n)?0:P(n))<0?Math.max(0,t.length+n):n,e>=0?ls(t,n,n+e):0===n?ls(t,e,t.length):ls(t,Math.max(0,n+e),n)):t)}}function ls(t,e,n){return w(t)?t.slice(e,n):[].slice.call(t,e,n)}function us(t){return function(r,i,s,o){if(null==r)return r;if(!m(r))throw ht("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(x(e))r=e;else if(w(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=x(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(x(t.valueOf)&&e(t=t.valueOf()))return t;if(I(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&&(v(i)&&(i=t.index),v(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 hs(t){const e="Filter";function n(r,i){if(v(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",is),n("json",as),n("limitTo",cs),n("orderBy",us)}function ps(){let t=!0;this.$get=["$rootScope","$exceptionHandler",function(e,n){return fs((t=>{e.$evalAsync(t)}),n,t)}],this.errorOnUnhandledRejections=function(e){return y(e)?(t=e,this):t}}function ds(){let t=!0;this.$get=["$browser","$exceptionHandler",function(e,n){return fs((t=>{e.defer(t)}),n,t)}],this.errorOnUnhandledRejections=function(e){return y(e)?(t=e,this):t}}function fs(t,e,n){const r=ht("$q");let i=0;const s=[];function o(){return new a}function a(){const t=this.promise=new c;this.resolve=function(e){h(t,e)},this.reject=function(e){d(t,e)},this.notify=function(e){$(t,e)}}class c{constructor(){this.$$state={status:0}}then(t,e,n){if(g(t)&&g(e)&&g(n))return this;const r=new c;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,t,e,n]),this.$$state.status>0&&u(this.$$state),r}catch(t){return this.then(null,t)}finally(t,e){return this.then((e=>y(e,b,t)),(e=>y(e,m,t)),e)}}function l(){for(;!i&&s.length;){const t=s.shift();if(!$s(t)){ms(t);const n=`Possibly unhandled rejection: ${pt(t.value)}`;C(t.value)?e(t.value,n):e(n)}}}function u(r){!n||r.pending||2!==r.status||$s(r)||(0===i&&0===s.length&&t(l),s.push(r)),!r.processScheduled&&r.pending&&(r.processScheduled=!0,++i,t((()=>{!function(r){let s,o,a;a=r.pending,r.processScheduled=!1,r.pending=void 0;try{for(let t=0,n=a.length;t<n;++t){ms(r),o=a[t][0],s=a[t][r.status];try{x(s)?h(o,s(r.value)):1===r.status?h(o,r.value):d(o,r.value)}catch(t){d(o,t),t&&!0===t.$$passToExceptionHandler&&e(t)}}}finally{--i,n&&0===i&&t(l)}}(r)})))}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)):p(t,e))}function p(t,e){let n,r=!1;try{(v(e)||x(e))&&(n=e.then),x(n)?(t.$$state.status=-1,n.call(e,(function(e){if(r)return;r=!0,p(t,e)}),i,(function(e){$(t,e)}))):(t.$$state.value=e,t.$$state.status=1,u(t.$$state))}catch(t){i(t)}function i(e){r||(r=!0,f(t,e))}}function d(t,e){t.$$state.status||f(t,e)}function f(t,e){t.$$state.value=e,t.$$state.status=2,u(t.$$state)}function $(n,r){const i=n.$$state.pending;n.$$state.status<=0&&i&&i.length&&t((()=>{let t,n;for(let s=0,o=i.length;s<o;s++){n=i[s][0],t=i[s][3];try{$(n,x(t)?t(r):r)}catch(t){e(t)}}}))}function m(t){const e=new c;return d(e,t),e}function y(t,e,n){let r=null;try{x(n)&&(r=n())}catch(t){return m(t)}return _(r)?r.then((()=>e(t)),m):e(t)}function w(t,e,n,r){const i=new c;return h(i,t),i.then(e,n,r)}let b=w;function E(t){if(!x(t))throw r("norslvr","Expected resolverFn, got '{0}'",t);const e=new c;return t((function(t){h(e,t)}),(function(t){d(e,t)})),e}return E.prototype=c.prototype,E.defer=o,E.reject=m,E.when=w,E.resolve=b,E.all=function(t){const e=new c;let n=0;const r=Array.isArray(t)?[]:{};return N(t,((t,i)=>{n++,w(t).then((t=>{r[i]=t,--n||h(e,r)}),(t=>{d(e,t)}))})),0===n&&h(e,r),e},E.race=function(t){const e=o();return N(t,(t=>{w(t).then(e.resolve,e.reject)})),e.promise},E}function $s(t){return!!t.pur}function ms(t){t.pur=!0}function gs(t){t.$$state&&ms(t.$$state)}us.$inject=["$parse"],hs.$inject=["$provide"];const ys=ht("$interval"),vs=new Map;function ws(){this.$get=["$$intervalFactory",function(t){function e(t){window.clearInterval(t),vs.delete(t)}const n=t((function(t,e,n){const r=window.setInterval(t,e);return vs.set(r,n),r}),e);return n.cancel=function(t){if(!t)return!1;if(!Object.prototype.hasOwnProperty.call(t,"$$intervalId"))throw ys("badprom","`$interval.cancel()` called with a promise that was not generated by `$interval()`.");if(!vs.has(t.$$intervalId))return!1;const n=t.$$intervalId,r=vs.get(n);return gs(r.promise),r.reject("canceled"),e(n),!0},n}]}const bs=1,Es=2;class Cs{constructor(t){this.$filter=t}compile(t){let e,n,r=xs(t,this.$filter);(e=function(t){if(1===t.body.length&&Os(t.body[0].expression))return{type:Or.AssignmentExpression,left:t.body[0].expression,right:{type:Or.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 Or.Literal:return this.value(t.value,e);case Or.UnaryExpression:return i=this.recurse(t.argument),this[`unary${t.operator}`](i,e);case Or.BinaryExpression:case Or.LogicalExpression:return r=this.recurse(t.left),i=this.recurse(t.right),this[`binary${t.operator}`](r,i,e);case Or.ConditionalExpression:return this["ternary?:"](this.recurse(t.test),this.recurse(t.alternate),this.recurse(t.consequent),e);case Or.Identifier:return s.identifier(t.name,e,n);case Or.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 Or.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 Or.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 Or.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 Or.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===Or.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 Or.ThisExpression:return function(t){return e?{value:t}:t};case Or.LocalsExpression:return function(t,n){return e?{value:n}:n};case Or.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=y(s)?+s:0,e?{value:s}:s}}"unary-"(t,e){return function(n,r,i){let s=t(n,r,i);return s=y(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=(y(o)?o:0)-(y(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=`${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 xs(t,e,n){let r,i,s,o,a,c,l,u,h,p,d,f=t;const $=f.isPure=function(t,e){switch(t.type){case Or.MemberExpression:if(t.computed)return!1;break;case Or.UnaryExpression:return bs;case Or.BinaryExpression:return"+"!==t.operator&&bs;case Or.CallExpression:return!1}return void 0===e?Es:e}(t,n);switch(t.type){case Or.Program:return r=!0,f.body.forEach((t=>{let n=xs(t.expression,e,$);r=r&&n.constant})),f.constant=r,f;case Or.Literal:return f.constant=!0,f.toWatch=[],f;case Or.UnaryExpression:var m=xs(f.argument,e,$);return f.constant=m.constant,f.toWatch=m.toWatch,f;case Or.BinaryExpression:return o=xs(f.left,e,$),a=xs(f.right,e,$),f.constant=o.constant&&a.constant,f.toWatch=o.toWatch.concat(a.toWatch),f;case Or.LogicalExpression:return o=xs(f.left,e,$),a=xs(f.right,e,$),f.constant=o.constant&&a.constant,f.toWatch=f.constant?[]:[t],f;case Or.ConditionalExpression:return c=xs(t.test,e,$),l=xs(t.alternate,e,$),u=xs(t.consequent,e,$),f.constant=c.constant&&l.constant&&u.constant,f.toWatch=f.constant?[]:[t],f;case Or.Identifier:return f.constant=!1,f.toWatch=[t],f;case Or.MemberExpression:return h=xs(t.object,e,$),t.computed&&(p=xs(t.property,e,$)),f.constant=h.constant&&(!f.computed||p.constant),f.toWatch=f.constant?[]:[t],f;case Or.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=xs(t,e,$),r=r&&m.constant,i.push.apply(i,m.toWatch)})),f.constant=r,f.toWatch=s?i:[f],f;case Or.AssignmentExpression:return o=xs(t.left,e,$),a=xs(t.right,e,$),f.constant=o.constant&&a.constant,f.toWatch=[f],f;case Or.ArrayExpression:return r=!0,i=[],t.elements.forEach((t=>{m=xs(t,e,$),r=r&&m.constant,i.push.apply(i,m.toWatch)})),f.constant=r,f.toWatch=i,f;case Or.ObjectExpression:return r=!0,i=[],t.properties.forEach((t=>{m=xs(t.value,e,$),r=r&&m.constant,i.push.apply(i,m.toWatch),t.computed&&(d=xs(t.key,e,!1),r=r&&d.constant,i.push.apply(i,d.toWatch))})),f.constant=r,f.toWatch=i,f;case Or.ThisExpression:case Or.LocalsExpression:return f.constant=!1,f.toWatch=[],f}}function Os(t){return t.type===Or.Identifier||t.type===Or.MemberExpression}const Ss=ht("$parse"),As={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},ks=new Set("+ - * / % === !== == != < > <= >= && || ! = |".split(" "));class _s{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=ks.has(t),i=ks.has(e),s=ks.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=y(e)?`s ${e}-${this.index} [${this.text.substring(e,n)}]`:` ${n}`;throw Ss("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():As[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 Ts=ht("$parse"),js=new Map(Object.entries({true:!0,false:!1,null:null,undefined:void 0}));class Ns{constructor(t){this.lexer=t,this.selfReferential={this:{type:Or.ThisExpression},$locals:{type:Or.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:Or.Program,body:t}}expressionStatement(){return{type:Or.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(!Os(t))throw Ts("lval","Trying to assign a value to a non l-value");t={type:Or.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:Or.ConditionalExpression,test:t,alternate:e,consequent:n}):t}logicalOR(){let t=this.logicalAND();for(;this.expect("||");)t={type:Or.LogicalExpression,operator:"||",left:t,right:this.logicalAND()};return t}logicalAND(){let t=this.equality();for(;this.expect("&&");)t={type:Or.LogicalExpression,operator:"&&",left:t,right:this.equality()};return t}equality(){let t,e=this.relational();for(;t=this.expect("==","!=","===","!==");)e={type:Or.BinaryExpression,operator:t.text,left:e,right:this.relational()};return e}relational(){let t,e=this.additive();for(;t=this.expect("<",">","<=",">=");)e={type:Or.BinaryExpression,operator:t.text,left:e,right:this.additive()};return e}additive(){let t,e=this.multiplicative();for(;t=this.expect("+","-");)e={type:Or.BinaryExpression,operator:t.text,left:e,right:this.multiplicative()};return e}multiplicative(){let t,e=this.unary();for(;t=this.expect("*","/","%");)e={type:Or.BinaryExpression,operator:t.text,left:e,right:this.unary()};return e}unary(){let t;return(t=this.expect("+","-","!"))?{type:Or.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]):js.has(this.peek().text)?t={type:Or.Literal,value:js.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:Or.CallExpression,callee:t,arguments:this.parseArguments()},this.consume(")")):"["===e.text?(t={type:Or.MemberExpression,object:t,property:this.assignment(),computed:!0},this.consume("]")):"."===e.text?t={type:Or.MemberExpression,object:t,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return t}filter(t){const e=[t],n={type:Or.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:Or.Identifier,name:t.text}}constant(){return{type:Or.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:Or.ArrayExpression,elements:t}}object(){const t=[];let e;if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:Or.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:Or.ObjectExpression,properties:t}}throwError(t,e){throw Ts("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 Ts("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 Ts("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 Rs{constructor(t,e){this.ast=new Ns(t),this.astCompiler=new Cs(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===Or.Literal||t.body[0].expression.type===Or.ArrayExpression||t.body[0].expression.type===Or.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 Vs(){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:x(e)&&e,isIdentifierContinue:x(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 _s(i);o=new Rs(c,r).parse(e),t[a]=Ds(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===Es?function(e){return t(e)}:t})))),Ds(r)}}]}function Ps(t,e,n,r){const i=t.$watch((()=>(i(),r(t))),e,n);return i}function Ds(t){return t.constant?t.$$watchDelegate=Ps:t.oneTime?t.$$watchDelegate=Ls:t.inputs&&(t.$$watchDelegate=Ms),t}function Ms(t,e,n,r){let i,s=r.inputs;if(1===s.length){let o=Is;return s=s[0],t.$watch((t=>{const e=s(t);return Is(e,o,s.isPure)||(i=r(t,void 0,void 0,[e]),o=e&&Us(e)),i}),e,n)}const o=[],a=[];for(let t=0,e=s.length;t<e;t++)o[t]=Is,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=!Is(r,o[n],s[n].isPure)))&&(a[n]=r,o[n]=r&&Us(r))}return e&&(i=r(t,void 0,void 0,a)),i}),e,n)}function Ls(t,e,n,r){const i=r.literal?qs:y;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,Ds(h),s=t.$watch(h,e,n),s}function Is(t,e,n){return null==t||null==e?t===e:!("object"==typeof t&&"object"==typeof(t=Us(t))&&!n)&&(t===e||t!=t&&e!=e)}function qs(t){let e=!0;return N(t,(t=>{y(t)||(e=!1)})),e}function Us(t){return x(t.valueOf)?t.valueOf():{}.constructor.prototype.valueOf.call(t)}const Hs=ht("$interpolate");function Fs(){let t="{{",e="}}";this.startSymbol=function(e){return e?(t=e,this):t},this.endSymbol=function(t){return t?(e=t,this):e},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){const s=t.length,o=e.length,a=new RegExp(t.replace(/./g,l),"g"),c=new RegExp(e.replace(/./g,l),"g");function l(t){return`\\\\\\${t}`}function u(n){return n.replace(a,t).replace(c,e)}function h(a,c,l,h){const p=l===i.URL||l===i.MEDIA_URL;if(!a.length||-1===a.indexOf(t)){if(c)return;let t=u(a);p&&(t=i.getTrusted(l,t));const e=L(t);return e.exp=a,e.expressions=[],e.$$watchDelegate=Ps,e}let d,f;h=!!h;let $=0;const m=[];let v;const w=a.length;let b;const E=[],C=[];let x;for(;$<w;){if(-1===(d=a.indexOf(t,$))||-1===(f=a.indexOf(e,d+s))){$!==w&&E.push(u(a.substring($)));break}$!==d&&E.push(u(a.substring($,d))),b=a.substring(d+s,f),m.push(b),$=f+o,C.push(E.length),E.push("")}x=1===E.length&&1===C.length;const O=p&&x?void 0:function(t){try{return t=l&&!p?i.getTrusted(l,t):i.valueOf(t),h&&!y(t)?t:G(t)}catch(t){r(Hs.interr(a,t))}};if(v=m.map((t=>n(t,O))),!c||m.length){const t=function(t){for(let e=0,n=m.length;e<n;e++){if(h&&g(t[e]))return;E[C[e]]=t[e]}return p?i.getTrusted(l,x?E[0]:E.join("")):(l&&E.length>1&&Hs.throwNoconcat(a),E.join(""))};return V((e=>{let n=0;const i=m.length,s=new Array(i);try{for(;n<i;n++)s[n]=v[n](e);return t(s)}catch(t){r(Hs.interr(a,t))}}),{exp:a,expressions:m,$$watchDelegate(e,n){let r;return e.$watchGroup(v,(function(i,s){const o=t(i);n.call(this,o,i!==s?r:o,e),r=o}))}})}}return h.startSymbol=function(){return t},h.endSymbol=function(){return e},h}]}function Bs(){this.$get=["$browser","$q","$$q","$rootScope",function(t,e,n,r){return function(i,s){return function(o,a,c,l){const u=arguments.length>4,h=u?Q(arguments,4):[];let p=0;const d=y(l)&&!l,f=(d?n:e).defer(),{promise:$}=f;function m(){u?o.apply(null,h):o(p)}return c=y(c)?c:0,$.$$intervalId=i((function(){d?t.defer(m):r.$evalAsync(m),f.notify(p++),c>0&&p>=c&&(f.resolve(p),s($.$$intervalId)),d||r.$apply()}),a,f,d),$}}}]}Hs.throwNoconcat=function(t){throw Hs("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)},Hs.interr=function(t,e){throw Hs("interr","Can't interpolate: {0}\n{1}",t,e.toString())};let zs={},Ws="";function Gs(t){try{return decodeURIComponent(t)}catch(e){return t}}const Ks="application/json",Qs={"Content-Type":`${Ks};charset=utf-8`},Js=/^\[|^\{(?!\{)/,Zs={"[":/]$/,"{":/}$/},Ys=/^\)]\}',?\n/,Xs=ht("$http");function to(t){return v(t)?E(t)?t.toISOString():Y(t):t}function eo(){this.$get=function(){return function(t){if(!t)return"";const e=[];return R(t,((t,n)=>{null===t||g(t)||x(t)||(Array.isArray(t)?t.forEach((t=>{e.push(`${rt(n)}=${rt(to(t))}`)})):e.push(`${rt(n)}=${rt(to(t))}`))})),e.join("&")}}}function no(){this.$get=function(){return function(t){if(!t)return"";const e=[];return function t(n,r,i){Array.isArray(n)?N(n,((e,n)=>{t(e,`${r}[${v(e)?n:""}]`)})):v(n)&&!E(n)?R(n,((e,n)=>{t(e,r+(i?"":"[")+n+(i?"":"]"))})):(x(n)&&(n=n()),e.push(`${rt(r)}=${null==n?"":rt(to(n))}`))}(t,"",!0),e.join("&")}}}function ro(t,e){if(w(t)){const r=t.replace(Ys,"").trim();if(r){const i=e("Content-Type"),s=i&&0===i.indexOf(Ks);if(s||function(t){const e=t.match(Js);return e&&Zs[e[0]].test(t)}(r))try{t=w(n=r)?JSON.parse(n):n}catch(e){if(!s)return t;throw Xs("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',t,e)}}}var n;return t}function io(t){const e=Object.create(null);let n;function r(t,n){t&&(e[t]=e[t]?`${e[t]}, ${n}`:n)}return w(t)?t.split("\n").forEach((t=>{n=t.indexOf(":"),r(t.substring(0,n).trim().toLowerCase(),T(t.substring(n+1)))})):v(t)&&N(t,((t,e)=>{r($(e),T(t))})),e}function so(t){let e;return function(n){if(e||(e=io(t)),n){let t=e[$(n)];return void 0===t&&(t=null),t}return e}}function oo(t,e,n,r){return x(r)?r(t,e,n):(Array.isArray(r)&&r.forEach((r=>{t=r(t,e,n)})),t)}function ao(t){return t>=200&&t<300}function co(){const t=this.defaults={transformResponse:[ro],transformRequest:[function(t){return!v(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:Y(t);var e}],headers:{common:{Accept:"application/json, text/plain, */*"},post:st(Qs),put:st(Qs),patch:st(Qs)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"};let e=!1;this.useApplyAsync=function(t){return y(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","$cacheFactory","$rootScope","$q","$injector","$sce",function(i,s,o,a,c,l,u){const h=o("$http");t.paramSerializer=w(t.paramSerializer)?l.get(t.paramSerializer):t.paramSerializer;const p=[];n.forEach((t=>{p.unshift(w(t)?l.get(t):l.invoke(t))}));const d=function(t){const e=[ze].concat(t.map(Ge));return function(t){const n=Ge(t);return e.some(Qe.bind(null,n))}}(r);function f(n){if(!v(n))throw ht("$http")("badreq","Http request configuration must be an object. Received: {0}",n);if(!w(u.valueOf(n.url)))throw ht("$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 o;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=>{r[$(t)]||(r[t]=n[t])})),function(t,e){let n;const r={};return N(t,((t,i)=>{x(t)?(n=t(e),null!=n&&(r[i]=n)):r[i]=t})),r}(r,st(e))}(n),r.method=w(o=r.method)?o.toUpperCase():o,r.paramSerializer=w(r.paramSerializer)?l.get(r.paramSerializer):r.paramSerializer,i.$$incOutstandingRequestCount("$http");const m=[],b=[];let E=c.resolve(r);return N(p,(t=>{(t.request||t.requestError)&&m.unshift(t.request,t.requestError),(t.response||t.responseError)&&b.push(t.response,t.responseError)})),E=C(E,m),E=E.then((function(n){const{headers:r}=n,i=oo(n.data,so(r),void 0,n.transformRequest);g(i)&&N(r,((t,e)=>{"content-type"===$(e)&&delete r[e]}));g(n.withCredentials)&&!g(t.withCredentials)&&(n.withCredentials=t.withCredentials);return function(n,r){const i=c.defer(),{promise:o}=i;let l,p;const $=n.headers;let{url:m}=n;w(m)||(m=u.valueOf(m));m=function(t,e){e.length>0&&(t+=(-1===t.indexOf("?")?"?":"&")+e);return t}(m,n.paramSerializer(n.params)),f.pendingRequests.push(n),o.then(O,O),(n.cache||t.cache)&&!1!==n.cache&&"GET"===n.method&&(l=v(n.cache)?n.cache:v(t.cache)?t.cache:h);l&&(p=l.get(m),y(p)?_(p)?p.then(x,x):Array.isArray(p)?C(p[1],p[0],st(p[2]),p[3],p[4]):C(p,200,{},"OK","complete"):l.put(m,o));if(g(p)){const e=d(n.url)?function(){let t,e,n,r,i;const s=window.document.cookie;if(s!==Ws)for(Ws=s,t=Ws.split("; "),zs={},n=0;n<t.length;n++)e=t[n],r=e.indexOf("="),r>0&&(i=Gs(e.substring(0,r)),g(zs[i])&&(zs[i]=Gs(e.substring(r+1))));return zs}()[n.xsrfCookieName||t.xsrfCookieName]:void 0;e&&($[n.xsrfHeaderName||t.xsrfHeaderName]=e),s(n.method,m,r,E,$,n.timeout,n.withCredentials,n.responseType,b(n.eventHandlers),b(n.uploadEventHandlers))}return o;function b(t){if(t){const n={};return N(t,((t,r)=>{n[r]=function(n){function r(){t(n)}e?a.$applyAsync(r):a.$$phase!==ke.NONE?r():a.$apply(r)}})),n}}function E(t,n,r,i,s){function o(){C(n,t,r,i,s)}l&&(ao(t)?l.put(m,[t,n,io(r),i,s]):l.remove(m)),e?a.$applyAsync(o):(o(),a.$$phase||a.$apply())}function C(t,e,r,s,o){(ao(e=e>=-1?e:0)?i.resolve:i.reject)({data:t,status:e,headers:so(r),config:n,statusText:s,xhrStatus:o})}function x(t){C(t.data,t.status,st(t.headers()),t.statusText,t.xhrStatus)}function O(){const t=f.pendingRequests.indexOf(n);-1!==t&&f.pendingRequests.splice(t,1)}}(n,i).then(O,O)})),E=C(E,b),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 O(t){const e=V({},t);return e.data=oo(t.data,t.headers,t.status,r.transformResponse),ao(t.status)?e:c.reject(e)}}return f.pendingRequests=[],function(...t){t.forEach((t=>{f[t]=function(e,n){return f(V({},n||{},{method:t,url:e}))}}))}("get","delete","head"),function(...t){t.forEach((t=>{f[t]=function(e,n,r){return f(V({},r||{},{method:t,url:e,data:n}))}}))}("post","put","patch"),f.defaults=t,f}]}function lo(){this.$get=["$browser",function(t){return function(t,e){return function(n,r,i,s,o,a,c,l,u,h){r=r||t.url();const p=new XMLHttpRequest;let d=!1;if(p.open(n,r,!0),N(o,((t,e)=>{y(t)&&p.setRequestHeader(e,t)})),p.onload=function(){const t=p.statusText||"";let e=p.status;0===e&&(e=p.response?200:"file"===Ge(r).protocol?404:0),m(s,e,p.response,p.getAllResponseHeaders(),t,"complete")},p.onerror=function(){m(s,-1,null,null,"","error")},p.ontimeout=function(){m(s,-1,null,null,"","timeout")},p.onabort=function(){m(s,-1,null,null,"",d?"timeout":"abort")},N(u,((t,e)=>{p.addEventListener(e,t)})),N(h,((t,e)=>{p.upload.addEventListener(e,t)})),c&&(p.withCredentials=!0),l)try{p.responseType=l}catch(t){if("json"!==l)throw t}if(p.send(g(i)?null:i),a>0)var f=e((()=>{$("timeout")}),a);else _(a)&&a.then((()=>{$(y(a.$$timeoutId)?"timeout":"abort")}));function $(t){d="timeout"===t,p&&p.abort()}function m(e,n,r,i,s,o){y(f)&&t.cancel(f),e(n,r,i,s,o)}}}(t,t.defer)}]}const uo={http:80,https:443,ftp:21},ho=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,po=ht("$location");class fo{constructor(t,e){this.appBase=t,this.appBaseNoFile=e,this.$$absUrl="",this.$$html5=!1,this.$$replace=!1,this.$$protocol=void 0,this.$$host=void 0,this.$$port=void 0,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=ho.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(w(t)||b(t))t=t.toString(),this.$$search=tt(t);else{if(!v(t))throw po("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 N(t,((t,n)=>{Array.isArray(t)?N(t,(t=>{e.push(rt(n,!0)+(!0===t?"":`=${rt(t,!0)}`))})):e.push(rt(n,!0)+(!0===t?"":`=${rt(t,!0)}`))})),e.length?e.join("&"):""}(e),i=n?`#${nt(n)}`:"";return function(t){const e=t.split("/");let n=e.length;for(;n--;)e[n]=nt(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 $o&&this.$$html5))throw po("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}}class $o extends fo{constructor(t,e,n){super(t,e),this.$$html5=!0,this.basePrefix=n||"",yo(t,this)}$$parse(t){const e=bo(this.appBaseNoFile,t);if(!w(e))throw po("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,this.appBaseNoFile);vo(e,this,!0),this.$$path||(this.$$path="/"),this.$$compose()}$$normalizeUrl(t){return this.appBaseNoFile+t.substr(1)}$$parseLinkUrl=function(t,e){if(e&&"#"===e[0])return this.hash(e.slice(1)),!0;let n,r,i;return y(n=bo(this.appBase,t))?(r=n,i=this.basePrefix&&y(n=bo(this.basePrefix,n))?this.appBaseNoFile+(bo("/",n)||n):this.appBase+r):y(n=bo(this.appBaseNoFile,t))?i=this.appBaseNoFile+n:this.appBaseNoFile===`${t}/`&&(i=this.appBaseNoFile),i&&this.$$parse(i),!!i}}class mo extends fo{constructor(t,e,n){super(t,e),this.appBase=t,this.appBaseNoFile=e,this.hashPrefix=n,yo(t,this)}$$parse(t){const e=bo(this.appBase,t)||bo(this.appBaseNoFile,t);let n;g(e)||"#"!==e.charAt(0)?this.$$html5?n=e:(n="",g(e)&&(this.appBase=t,this.replace())):(n=bo(this.hashPrefix,e),g(n)&&(n=e)),vo(n,this,!1),this.$$path=function(t,e,n){const r=/^\/[A-Z]:(\/.*)/;let i;wo(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 Eo(this.appBase)===Eo(t)&&(this.$$parse(t),!0)}}function go(){let t="!";const e={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(e){return y(e)?(t=e,this):t},this.html5Mode=function(t){return k(t)?(e.enabled=t,this):v(t)?(k(t.enabled)&&(e.enabled=t.enabled),k(t.requireBase)&&(e.requireBase=t.requireBase),(k(t.rewriteLinks)||w(t.rewriteLinks))&&(e.rewriteLinks=t.rewriteLinks),this):e},this.$get=["$rootScope","$browser","$rootElement",function(n,r,i){let s,o;const a=r.baseHref(),c=r.url();let l;if(e.enabled){if(!a&&e.requireBase)throw po("nobase","$location in HTML5 mode requires a <base> tag to be present!");l=(u=c).substring(0,u.indexOf("/",u.indexOf("//")+2))+(a||"/"),o=$o}else l=Eo(c),o=mo;var u;const h=function(t){return t.substr(0,Eo(t).lastIndexOf("/")+1)}(l);s=new o(l,h,`#${t}`),s.$$parseLinkUrl(c,c),s.$$state=r.state();const p=/^\s*(javascript|mailto):/i;function d(t,e,n){const i=s.url(),o=s.$$state;try{r.url(t,e,n),s.$$state=r.state()}catch(t){throw s.url(i),s.$$state=o,t}}i.on("click",(t=>{const{rewriteLinks:o}=e;if(!o||t.ctrlKey||t.metaKey||t.shiftKey||2===t.which||2===t.button)return;let a=_t(t.target);for(;"a"!==a[0].nodeName.toLowerCase();)if(a[0]===i[0]||!(a=a.parent())[0])return;if(w(o)&&g(a.attr(o)))return;let c=a[0].href;const l=a.attr("href")||a.attr("xlink:href");v(c)&&"[object SVGAnimatedString]"===c.toString()&&(c=Ge(c.animVal).href),p.test(c)||!c||a.attr("target")||t.isDefaultPrevented()||s.$$parseLinkUrl(c,l)&&(t.preventDefault(),s.absUrl()!==r.url()&&n.$apply())})),s.absUrl()!==c&&r.url(s.absUrl(),!0);let f=!0;return r.onUrlChange(((t,e)=>{wo(t,h)?(n.$evalAsync((()=>{const r=s.absUrl(),i=s.$$state;let o;s.$$parse(t),s.$$state=e,o=n.$broadcast("$locationChangeStart",t,r,e,i).defaultPrevented,s.absUrl()===t&&(o?(s.$$parse(r),s.$$state=i,d(r,!1,i)):(f=!1,$(r,i)))})),n.$$phase===ke.NONE&&n.$digest()):window.location.href=t})),n.$watch((()=>{if(f||s.$$urlUpdatedByLocation){s.$$urlUpdatedByLocation=!1;const i=r.url(),o=s.absUrl(),a=r.state(),c=s.$$replace,l=!((t=i)===(e=o)||Ge(t).href===Ge(e).href)||s.$$html5&&a!==s.$$state;(f||l)&&(f=!1,n.$evalAsync((()=>{const t=s.absUrl(),{defaultPrevented:e}=n.$broadcast("$locationChangeStart",t,i,s.$$state,a);s.absUrl()===t&&(e?(s.$$parse(i),s.$$state=a):(l&&d(t,c,a===s.$$state?null:s.$$state),$(i,a)))})))}var t,e;s.$$replace=!1})),s;function $(t,e){n.$broadcast("$locationChangeSuccess",s.absUrl(),t,s.$$state,e)}}]}function yo(t,e){const n=Ge(t);e.$$protocol=n.protocol,e.$$host=n.hostname,e.$$port=P(n.port)||uo[n.protocol]||null}function vo(t,e,n){if(/^\s*[\\/]{2,}/.test(t))throw po("badpath",'Invalid url "{0}".',t);const r="/"!==t.charAt(0);r&&(t=`/${t}`);const i=Ge(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=tt(i.search),e.$$hash=decodeURIComponent(i.hash),e.$$path&&"/"!==e.$$path.charAt(0)&&(e.$$path=`/${e.$$path}`)}function wo(t,e){return t.slice(0,e.length)===e}function bo(t,e){if(wo(e,t))return e.substr(t.length)}function Eo(t){const e=t.indexOf("#");return-1===e?t:t.substr(0,e)}let Co={debug:void 0,error:void 0,info:void 0,log:void 0,warn:void 0};class xo{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 Co={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)}})()},Co}}function Oo(){this.$get=["$log",t=>new So(t)]}function So(t){const e=this,n={},r=[],i=e.ALL_TASKS_TYPE="$$all$$",s=e.DEFAULT_TASK_TYPE="$$default$$";function o(){const t=r.pop();return t&&t.cb}function a(t){for(let e=r.length-1;e>=0;--e){const n=r[e];if(n.type===t)return r.splice(e,1),n.cb}}e.completeTask=function(e,r){r=r||s;try{e()}finally{!function(t){t=t||s,n[t]&&(n[t]--,n[i]--)}(r);const e=n[r],c=n[i];if(!c||!e){const e=c?a:o;let n;for(;n=e(r);)try{n()}catch(e){t.error(e)}}}},e.incTaskCount=function(t){n[t=t||s]=(n[t]||0)+1,n[i]=(n[i]||0)+1},e.notifyWhenNoPendingTasks=function(t,e){n[e=e||i]?r.push({type:e,cb:t}):t()}}var Ao=ht("$templateRequest");function ko(){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++,w(a)&&!g(n.get(a))||(a=s.getTrustedResourceUrl(a));var l=r.defaults&&r.defaults.transformResponse;return Array.isArray(l)?l=l.filter((function(t){return t!==ro})):l===ro&&(l=null),r.get(a,V({cache:n,transformResponse:l},t)).finally((function(){o.totalPendingRequests--})).then((function(t){return n.put(a,t.data)}),(function(t){c||(t=Ao("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 _o=ht("$timeout");function To(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(t,e,n,r,i){const s={};function o(o,a,c=!0){const l=Q(arguments,3),u=y(c)&&!c,h=(u?r:n).defer(),{promise:p}=h;let d;return d=e.defer((()=>{try{h.resolve(o.apply(null,l))}catch(t){h.reject(t),i(t)}finally{delete s[p.$$timeoutId]}u||t.$apply()}),a,"$timeout"),p.$$timeoutId=d,s[d]=h,p}return o.cancel=function(t){if(!t)return!1;if(!Object.prototype.hasOwnProperty.call(t,"$$timeoutId"))throw _o("badprom","`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.");if(!Object.prototype.hasOwnProperty.call(s,t.$$timeoutId))return!1;const n=t.$$timeoutId,r=s[n];return gs(r.promise),r.reject("canceled"),delete s[n],e.cancel(n)},o}]}function jo(){let t=/^\s*(https?|s?ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationTrustedUrlList=function(e){return y(e)?(t=e,this):t},this.imgSrcSanitizationTrustedUrlList=function(t){return y(t)?(e=t,this):e},this.$get=function(){return function(n,r){const i=r?e:t,s=Ge(n&&n.trim()).href;return""===s||s.match(i)?n:`unsafe:${s}`}}}function No(t){return{link(e,n,r){const i=r.ngAnimateChildren;function s(t){t="on"===t||"true"===t,n.data(Nr,t)}w(i)&&0===i.length?n.data(Nr,!0):(s(t(i)(e)),r.$observe("ngAnimateChildren",s))}}}No.$inject=["$interpolate"];const Ro="$$animationRunner",Vo="$$animatePrepareClasses";function Po(){const t="ng-animate-ref",e=this.drivers=[];function n(t){return t.data(Ro)}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),e.addClass=null),e.removeClass&&(t[0].classList.remove(e.removeClass),e.removeClass=null)};return function(u,h,p){p=Yr(p);const d=["enter","move","leave"].indexOf(h)>=0,f=new s({end(){v()},cancel(){v(!0)}});if(!e.length)return v(),f;let $=ft(u.attr("class"),ft(p.addClass,p.removeClass)),{tempClasses:m}=p;return m&&($+=` ${m}`,p.tempClasses=null),d&&u.data(Vo,`ng-${h}${Tr}`),function(t,e){t.data(Ro,e)}(u,f),c.push({element:u,classes:$,event:h,structural:d,options:p,beforeStart:function(){m=(m?`${m} `:"")+jr,u.className+=` ${m}`;let t=u.data(Vo);t&&(u[0].classList.remove(t),t=null)},close:v}),u.on("$destroy",y),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={};N(e,((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 N(r,(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:_t(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=p.addClass;s=(s?`${s} `:"")+jr;const o=a.cacheKey(r[0],t.event,s,p.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(Vo);continue}const s=i.data(Vo);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 y(){const t=n(u);!t||"leave"===h&&p.$$domOperationFired||t.end()}function v(t){u.off("$destroy",y),function(t){t.removeData(Ro)}(u),l(u,p),Xr(u,p),p.domOperation(),m&&m.split(" ").forEach((t=>u[0].classList.remove(t))),f.complete(!t)}}}]}function Do(){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()}return t=r.queue=[],r.waitUntilQuiet=t=>{null!==e&&(window.cancelAnimationFrame(e),e=null),e=window.requestAnimationFrame((()=>{e=null,t(),n()}))},r}function Mo(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)}))}))}}}Mo.$inject=["$animate"];const Lo="data-ng-animate",Io="$ngAnimatePin";function qo(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","$rootElement","$$animation","$$AnimateRunner","$templateRequest",function(e,n,i,a,c){const l=new Map,u=new Map;let h=null;function p(t){u.delete(t.target)}const d=e.$watch((()=>0===c.totalPendingRequests),(t=>{t&&(d(),e.$$postDigest((()=>{e.$$postDigest((()=>{null===h&&(h=!0)}))})))})),f=Object.create(null),$=t.customFilter(),m=t.classNameFilter(),b=function(){return!0},E=$||b,C=m?function(t,e){const n=[t.getAttribute("class"),e.addClass,e.removeClass].join(" ");return m.test(n)}:b,x=function(t,e){e.addClass&&(t[0].classList.add(e.addClass),e.addClass=null),e.removeClass&&(t[0].classList.remove(e.removeClass),e.removeClass=null)};function O(t,e){return ni(t,e,{})}const S=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}),_t(e).on("$destroy",(()=>{l.get(r)||_.off(t,e,n)}))},off(t,e,n){if(1===arguments.length&&!w(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(q(t),"element","not an element"),Kr(q(e),"parentElement","not an element"),t.data(Io,e)},push:(t,c,p,d)=>((p=p||{}).domOperation=d,function(t,c,p){let d=p,$=Jr(t);const m=ri($),b=m&&m.parentNode;d=Yr(d);const A=new a,_=function(){let t=!1;return function(n){t?n():e.$$postDigest((()=>{t=!0,n()}))}}();Array.isArray(d.addClass)&&(d.addClass=d.addClass.join(" "));d.addClass&&!w(d.addClass)&&(d.addClass=null);Array.isArray(d.removeClass)&&(d.removeClass=d.removeClass.join(" "));d.removeClass&&!w(d.removeClass)&&(d.removeClass=null);d.from&&!v(d.from)&&(d.from=null);d.to&&!v(d.to)&&(d.to=null);if(!(h&&m&&E(m,c,p)&&C(m,d)))return U(),A;const R=["enter","move","leave"].indexOf(c)>=0;let V=document.hidden||u.get(m);const P=!V&&l.get(m)||{},D=!!P.state;V||D&&1===P.state||(V=!function(t,e){const r=document.body,i=ri(n);let s,o=t===r||"HTML"===t.nodeName,a=t===i,c=!1,h=u.get(t),p=qt(t,Io);p&&(e=ri(p));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=qt(e,Nr);y(t)&&(s=t)}if(c&&!1===s)break;if(o||(o=e===r),o&&a)break;e=a||(p=qt(e,Io),!p)?e.parentNode:ri(p)}return(!c||s)&&!0!==h&&a&&o}(m,b));if(V)return document.hidden&&q(A,c,"start",r(d)),U(),document.hidden&&q(A,c,"close",r(d)),A;R&&function(t){const e=t.querySelectorAll(`[${Lo}]`);N(e,(t=>{const e=parseInt(t.getAttribute(Lo),10),n=l.get(t);if(n)switch(e){case 2:n.runner.end();case 1:l.delete(t)}}))}(m);const M={structural:R,element:$,event:c,addClass:d.addClass,removeClass:d.removeClass,close:U,options:d,runner:A};if(D){if(s("skip",M,P))return 2===P.state?(U(),A):(ni($,P,M),P.runner);if(s("cancel",M,P))if(2===P.state)P.runner.end();else{if(!P.structural)return ni($,P,M),P.runner;P.close()}else{if(s("join",M,P)){if(2!==P.state)return function(t,e,n){let r="";e&&(r=Qr(e,kr,!0)),n.addClass&&(r=oi(r,Qr(n.addClass,Sr))),n.removeClass&&(r=oi(r,Qr(n.removeClass,Ar))),r.length&&(n.preparationClasses=r,t[0].className+=` ${r}`)}($,R?c:null,d),c=M.event=P.event,d=ni($,P,M),P.runner;O($,M)}}}else O($,M);let L=M.structural;L||(L="animate"===M.event&&Object.keys(M.options.to||{}).length>0||o(M));if(!L)return U(),T(m),A;const I=(P.counter||0)+1;return M.counter=I,j(m,1,M),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!==I||!s)return n&&(x($,d),Xr($,d)),(n||R&&e.event!==c)&&(d.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),q(A,c,"start",r(d)),a.done((t=>{U(!t);const e=l.get(m);e&&e.counter===I&&T(m),q(A,c,"close",r(d))}))})),A;function q(t,e,n,r){_((()=>{const t=function(t,e,n){const r=[],i=f[n];return i&&i.forEach((i=>{(S.call(i.node,e)||"leave"===n&&S.call(i.node,t))&&r.push(i.callback)})),r}(b,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)}($,d),x($,d),Xr($,d),d.domOperation(),A.complete(!t)}}(t,c,p)),enabled(t,e){const n=arguments.length;if(0===n)e=!!h;else{if(q(t)){const r=ri(t);1===n?e=!u.get(r):(u.has(r)||_t(t).on("$destroy",p),u.set(r,!e))}else e=h=!!t}return e}};return _;function T(t){t.removeAttribute(Lo),l.delete(t)}function j(t,e,n){(n=n||{}).state=e,t.setAttribute(Lo,e);const r=l.get(t),i=r?V(r,n):n;l.set(t,i)}}]}qo.$inject=["$animateProvider"];const Uo="$animId";let Ho=0;const Fo=new Map;function Bo(){return{cacheKey(t,e,n,r){const{parentNode:i}=t,s=[i[Uo]??(i[Uo]=++Ho),e,t.getAttribute("class")];return n&&s.push(n),r&&s.push(r),s.join(" ")},containsCachedAnimationWithoutDuration(t){const e=Fo.get(t);return!!e&&!e.isValid},flush(){Fo.clear()},count:t=>Fo.get(t)?.total??0,get:t=>Fo.get(t)?.value,put(t,e,n){const r=Fo.get(t);r?(r.total++,r.value=e):Fo.set(t,{total:1,value:e,isValid:n})}}}function zo(){this.$get=[Bo]}const Wo="$$animateCss",Go=1e3,Ko=3,Qo=1.5,Jo={transitionDuration:Wr,transitionDelay:zr,transitionProperty:Rr+Lr,animationDuration:Br,animationDelay:Fr,animationIterationCount:Pr+"IterationCount"},Zo={transitionDuration:Wr,transitionDelay:zr,animationDuration:Br,animationDelay:Fr};function Yo(t,e){return[e?Fr:zr,`${t}s`]}function Xo(t,e){const n=Object.create(null),r=window.getComputedStyle(t)||{};return N(e,((t,e)=>{let i=r[t];if(i){const t=i.charAt(0);("-"===t||"+"===t||t>=0)&&(i=function(t){let e=0;return N(t.split(/\s*,\s*/),(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[e]=i}})),n}function ta(t){return 0===t||null!=t}function ea(t,e){let n=Rr,r=`${t}s`;return e?n+=Mr:r+=" linear all",[n,r]}function na(t,e,n){N(n,(n=>{t[n]=y(t[n])?t[n]:e.style.getPropertyValue(n)}))}function ra(){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),e.addClass=null),e.removeClass&&(t[0].classList.remove(e.removeClass),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=Xo(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,Jo),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=Yr(structuredClone(l)));const u={},h=ri(r);if(!h||!h.parentNode||!i.enabled())return W();const p=[],d=function(t){const e={};return t&&(t.to||t.from)&&(e.to=t.to,e.from=t.from),e}(l);let f,$,m,g,y,v,w,b,E,C;const x=[];if(0===l.duration)return W();const O=l.event&&Array.isArray(l.event)?l.event.join(" "):l.event,S=O&&l.structural;let A="",k="";S?A=Qr(O,kr,!0):O&&(A=O),l.addClass&&(k+=Qr(l.addClass,Sr)),l.removeClass&&(k.length&&(k+=" "),k+=Qr(l.removeClass,Ar)),l.applyClassesEarly&&k.length&&s(r,l);let _=[A,k].join(" ").trim();const T=d.to&&Object.keys(d.to).length>0;if(!((l.keyframeStyle||"").length>0)&&!T&&!_)return W();let j,R,V=n.cacheKey(h,O,l.addClass,l.removeClass);if(n.containsCachedAnimationWithoutDuration(V))return _=null,W();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=Qr(e,"-stagger");t.className+=` ${r}`,s=Xo(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,_,V,Zo);if(l.$$skipPreparationClasses||r[0].classList.add(_),l.transitionStyle){const t=[Rr,l.transitionStyle];si(h,t),p.push(t)}if(l.duration>=0){R=h.style[Rr].length>0;const t=ea(l.duration,R);si(h,t),p.push(t)}if(l.keyframeStyle){const t=[Pr,l.keyframeStyle];si(h,t),p.push(t)}const P=j?l.staggerIndex>=0?l.staggerIndex:n.count(V):0,D=0===P;D&&!l.skipBlocking&&ia(h,Hr);let M=c(h,V,!S),L=M.maxDelay;v=Math.max(L,0),b=M.maxDuration;const I={};if(I.hasTransitions=M.transitionDuration>0,I.hasAnimations=M.animationDuration>0,I.hasTransitionAll=I.hasTransitions&&"all"===M.transitionProperty,I.applyTransitionDuration=T&&(I.hasTransitions&&!I.hasTransitionAll||I.hasAnimations&&!I.hasTransitions),I.applyAnimationDuration=l.duration&&I.hasAnimations,I.applyTransitionDelay=ta(l.delay)&&(I.applyTransitionDuration||I.hasTransitions),I.applyAnimationDelay=ta(l.delay)&&I.hasAnimations,I.recalculateTimingStyles=k.length>0,(I.applyTransitionDuration||I.applyAnimationDuration)&&(b=l.duration?parseFloat(l.duration):b,I.applyTransitionDuration&&(I.hasTransitions=!0,M.transitionDuration=b,R=h.style[Rr+Lr].length>0,p.push(ea(b,R))),I.applyAnimationDuration&&(I.hasAnimations=!0,M.animationDuration=b,p.push([Br,`${b}s`]))),0===b&&!I.recalculateTimingStyles)return W();var q,U=Qr(_,_r);null!=l.delay&&("boolean"!=typeof l.delay&&(q=parseFloat(l.delay),v=Math.max(q,0)),I.applyTransitionDelay&&p.push(Yo(q)),I.applyAnimationDelay&&p.push(Yo(q,!0)));return null==l.duration&&M.transitionDuration>0&&(I.recalculateTimingStyles=I.recalculateTimingStyles||D),w=v*Go,E=b*Go,l.skipBlocking||(I.blockTransition=M.transitionDuration>0,I.blockKeyframeAnimation=M.animationDuration>0&&j.animationDelay>0&&0===j.animationDuration),l.from&&(l.cleanupStyles&&na(u,h,Object.keys(l.from)),ti(0,l)),I.blockTransition||I.blockKeyframeAnimation?z(b):l.skipBlocking||ia(h,!1),{$$willAnimate:!0,end:H,start(){if(!f)return y={end:H,cancel:F,resume:null,pause:null},g=new t(y),a(K),g}};function H(){B()}function F(){B(!0)}function B(t){if(f||m&&$)return;f=!0,$=!1,_&&!l.$$skipPreparationClasses&&_.split(" ").forEach((function(t){r[0].classList.remove(t)})),(U=Qr(_,_r))&&U.split(" ").forEach((function(t){r[0].classList.remove(t)})),ii(h,!1),ia(h,!1),N(p,(t=>{h.style[t[0]]=""})),s(r,l),Xr(r,l),Object.keys(u).length&&N(u,((t,e)=>{t?h.style.setProperty(e,t):h.style.removeProperty(e)})),l.onDone&&l.onDone(),x&&x.length&&r.off(x.join(" "),G);const n=r.data(Wo);n&&(e.cancel(n[0].timer),r.removeData(Wo)),g&&g.complete(!t)}function z(t){I.blockTransition&&ia(h,t),I.blockKeyframeAnimation&&ii(h,!!t)}function W(){return g=new t({end:H,cancel:F}),a((()=>{})),B(),{$$willAnimate:!1,start:()=>g,end:H}}function G(t){t.stopPropagation();const e=t.originalEvent||t;if(e.target!==h)return;const n=e.$manualTimeStamp||Date.now(),r=parseFloat(e.elapsedTime.toFixed(Ko));Math.max(n-C,0)>=w&&r>=b&&(m=!0,B())}function K(){if(f)return;if(!h.parentNode)return void B();const t=function(t){if(m)$&&t&&($=!1,B());else if($=!t,M.animationDuration){const t=ii(h,$);$?p.push(t):function(t,e){const n=t.indexOf(e);e>=0&&t.splice(n,1)}(p,t)}},i=P>0&&(M.transitionDuration&&0===j.transitionDuration||M.animationDuration&&0===j.animationDuration)&&Math.max(j.animationDelay,j.transitionDelay);function o(){if(f)return;if(z(!1),N(p,(t=>{const e=t[0],n=t[1];h.style[e]=n})),s(r,l),r[0].classList.add(U),I.recalculateTimingStyles){if(V=n.cacheKey(h,O,l.addClass,l.removeClass),M=c(h,V,!1),L=M.maxDelay,v=Math.max(L,0),b=M.maxDuration,0===b)return void B();I.hasTransitions=M.transitionDuration>0,I.hasAnimations=M.animationDuration>0}if(I.applyAnimationDelay&&(L="boolean"!=typeof l.delay&&ta(l.delay)?parseFloat(l.delay):L,v=Math.max(L,0),M.animationDelay=L,q=Yo(L,!0),p.push(q),h.style[q[0]]=q[1]),w=v*Go,E=b*Go,l.easing){let t;const e=l.easing;I.hasTransitions&&(t=Rr+qr,p.push([t,e]),h.style[t]=e),I.hasAnimations&&(t=Pr+qr,p.push([t,e]),h.style[t]=e)}M.transitionDuration&&x.push(Vr),M.animationDuration&&x.push(Dr),C=Date.now();const t=w+Qo*E,i=C+t,o=r.data(Wo)||[];let d=!0;if(o.length){const t=o[0];d=i>t.expectedEndTime,d?e.cancel(t.timer):o.push(B)}if(d){const n=e(a,t,!1);o[0]={timer:n,expectedEndTime:i},o.push(B),r.data(Wo,o)}x.length&&r.on(x.join(" "),G),l.to&&(l.cleanupStyles&&na(u,h,Object.keys(l.to)),ei(0,l))}function a(){const t=r.data(Wo);if(t){for(let e=1;e<t.length;e++)t[e]();r.removeData(Wo)}}i?e(o,Math.floor(i*P*Go),!1):o(),y.resume=function(){t(!0)},y.pause=function(){t(!1)}}}}]}function ia(t,e){const n=e?`-${e}s`:"";return si(t,[zr,n]),[zr,n]}const sa="ng-animate-shim",oa="ng-anchor",aa="ng-anchor-out",ca="ng-anchor-in";function la(t){t.drivers.push("$$animateCssDriver"),this.$get=["$animateCss","$$AnimateRunner","$rootElement",function(t,e,n){const r=document.body,i=n[0],s=_t((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=_t(ri(n).cloneNode(!0)),a=ua(d(o));let c;n[0].classList.add(sa),i[0].classList.add(sa),o[0].classList.add(oa),s.append(o);const l=p();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 p(){const e=t(o,{addClass:aa,delay:!0,from:h(n)});return e.$$willAnimate?e:null}function d(t){return t.attr("class")||""}function f(){const e=ua(d(i)),n=ha(e,a),r=ha(a,e),s=t(o,{to:h(i),addClass:`${ca} ${n}`,removeClass:`${aa} ${r}`,delay:!0});return s.$$willAnimate?s:null}function $(){o.remove(),n[0].classList.remove(sa),i[0].classList.remove(sa)}}(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()),N(u,(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 ua(t){return t.replace(/\bng-\S+\b/g,"")}function ha(t,e){return w(t)&&(t=t.split(" ")),w(e)&&(e=e.split(" ")),t.filter((t=>-1===e.indexOf(t))).join(" ")}function pa(t){this.$get=["$injector","$$AnimateRunner",function(e,n){const r=function(t,e){e.addClass&&(t[0].classList.add(e.addClass),e.addClass=null),e.removeClass&&(t[0].classList.remove(e.removeClass),e.removeClass=null)};return function(i,s,o,a){let c=!1;3===arguments.length&&v(o)&&(a=o,o=null),a=Yr(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 p,d,f;if(h.length){let t,e;"leave"===s?(e="leave",t="afterLeave"):(e=`before${s.charAt(0).toUpperCase()}${s.substr(1)}`,t=s),"enter"!==s&&"move"!==s&&(p=y(i,s,a,h,e)),d=y(i,s,a,h,t)}if(p||d)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 p&&e.push((e=>{t=p(e)})),e.length?e.push((t=>{$(),t(!0)})):$(),d&&e.push((e=>{t=d(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 N(i,(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(x(a.start)&&(a=a.start()),a instanceof n)a.done(s);else if(x(a))return a;return()=>{}}(a,t,e,r,(t=>{c(!1===t)})),i}))})),o}function y(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&&N(o,(t=>{e.push(t())})),e.length?n.all(e,t):t(),function(t){N(e,(e=>{t?e.cancel():e.end()}))}}}}}]}function da(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(){N(t,(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 fa(t){const e="ng-active",n="ng-inactive";return{require:"ngMessages",restrict:"AE",controller:function(r,i,s){const o=this;let a=0,c=0;this.head=void 0,this.default=void 0,this.getAttachId=function(){return c++};const l=this.messages={};let u,h;function p(t,e){let n=e;const r=[];for(;n&&n!==t;){const t=n.$$ngMessageNode;if(t&&t.length)return l[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))}}this.render=function(a){u=!1,h=a=a||{};const c=$a(i,s.ngMessagesMultiple)||$a(i,s.multiple),l=[],p={};let d=0,f=o.head,$=!1,m=0;for(;null!=f;){m++;const t=f.message;let e=!1;$||N(a,((n,r)=>{if(ma(n)&&!e&&(d++,t.test(r))){if(p[r])return;p[r]=!0,e=!0,t.attach()}})),e?$=!c:l.push(t),f=f.next}N(l,(t=>{t.detach()}));const g=l.length!==m,y=o.default&&!g&&d>0;y?o.default.attach():o.default&&o.default.detach(),g||y?t.setClass(r,e,n):t.setClass(r,n,e)},i.$watchCollection(s.ngMessages||s.for,o.render),this.reRender=function(){u||(u=!0,i.$evalAsync((()=>{u&&h&&o.render(h)})))},this.register=function(t,e,n){if(n)o.default=e;else{const n=a.toString();l[n]={message:e},function(t,e,n){const r=l[n];if(o.head){const n=p(t,e);n?(r.next=n.next,n.next=r):(r.next=o.head,o.head=r)}else o.head=r}(r[0],t,n),t.$$ngMessageNode=n,a++}o.reRender()},this.deregister=function(t,e){if(e)delete o.default;else{const e=t.$$ngMessageNode;delete t.$$ngMessageNode,function(t,e,n){const r=l[n];if(!r)return;const i=p(t,e);i?i.next=r.next:o.head=r.next}(r[0],t,e),delete l[e]}o.reRender()}}}}function $a(t,e){return w(e)&&0===e.length||ma(t.$eval(e))}function ma(t){return w(t)?t.length:!!t}function ga(t,e){return{restrict:"AE",require:"^^ngMessages",link(n,r,i){const s=i.ngMessagesInclude||i.src;t(s).then((t=>{n.$$destroyed||w(t)&&!t.trim()||e(t)(n,(t=>{r.after(t)}))}))}}}la.$inject=["$$animationProvider"],pa.$inject=["$animateProvider"],da.$inject=["$$animationProvider"],fa.$inject=["$animate"],ga.$inject=["$templateRequest","$compile"];const ya=ba(!1),va=ba(!1),wa=ba(!0);function ba(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,p;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,p={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),p.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 Ea={$q:void 0,$injector:void 0};function Ca(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 xa(){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 Oa(){return xa.apply(null,[].slice.call(arguments).reverse())}const Sa=t=>e=>e&&e[t],Aa=Ca(((t,e,n)=>n&&n[t]===e)),ka=t=>Oa.apply(null,t.split(".").map(Sa)),_a=t=>(...e)=>!t.apply(null,e);function Ta(t,e){return(...n)=>t.apply(null,n)||e.apply(null,n)}const ja=t=>e=>e.reduce(((e,n)=>e&&!!t(n)),!0),Na=t=>e=>e.reduce(((e,n)=>e||!!t(n)),!1),Ra=t=>e=>null!=e&&e.constructor===t||e instanceof t,Va=t=>()=>t;function Pa(t){return function(e){for(let n=0;n<t.length;n++)if(t[n][0](e))return t[n][1](e)}}const Da=JSON.parse.bind(JSON),Ma=JSON.stringify.bind(JSON),La=function(t,e,n){if(Array.isArray(t))return t.forEach(e,n);Object.keys(t).forEach((n=>e(t[n],n)))},Ia=hc;function qa(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 Ua(t,e){const n=Object.create(t);return e&&Object.assign(n,e),n}const Ha=Ca((function(t,e){return t.includes(e)}));const Fa=Ca((function(t,e){const n=t.indexOf(e);n>=0&&t.splice(n,1);return t}));const Ba=Ca(((t,e)=>(t.push(e),e)));function za(t,...e){const n=Object.assign({},...e.reverse());return Object.assign(n,Ga(t||{},Object.keys(n)))}const Wa=(t,e)=>Object.assign(t,e);function Ga(t,e){const n={};for(const r in t)-1!==e.indexOf(r)&&(n[r]=t[r]);return n}function Ka(t,e){return Object.keys(t).filter(_a(Ha(e))).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 La(t,(function(t,n){e(t,n)&&i(t,n)})),r}function Ja(t,e){let n;return La(t,(function(t,r){n||e(t,r)&&(n=t)})),n}let Za=Ya;function Ya(t,e,n){return n=n||(Array.isArray(t)?[]:{}),La(t,((t,r)=>n[r]=e(t,r))),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)=>Ha(t,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),!w(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)}function hc(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(ja(Array.isArray)(r))return s=e,(i=t).length===s.length&&ac(i,s).reduce(((t,e)=>t&&hc(e[0],e[1])),!0);var i,s;if(ja(E)(r))return t.getTime()===e.getTime();if(ja(O)(r))return t.toString()===e.toString();if(ja(x)(r))return!0;if([x,Array.isArray,E,O].map(Na).reduce(((t,e)=>t||!!e(r)),!1))return!1;const o={};for(const n in t){if(!hc(t[n],e[n]))return!1;o[n]=!0}for(const t in e)if(!o[t])return!1;return!0}const pc=t=>t.catch((()=>0))&&t,dc=t=>pc(Ea.$q.reject(t)),fc=t=>null===t,$c=Ta(fc,g);function mc(t){if(Array.isArray(t)&&t.length){const e=t.slice(0,-1),n=t.slice(-1);return!(e.filter(_a(w)).length||n.filter(_a(x)).length)}return x(t)}const gc=(yc=v,vc=Oa(Sa("then"),x),(...t)=>yc.apply(null,t)&&vc.apply(null,t));var yc,vc;function wc(t,e){return e.length<=t?e:e.substr(0,t-3)+"..."}function bc(t){return t.replace(/^([A-Z])/,(t=>t.toLowerCase())).replace(/([A-Z])/g,(t=>"-"+t.toLowerCase()))}function Ec(t){const e=Cc(t),n=e.match(/^(function [^ ]+\([^)]*\))/),r=n?n[1]:e,i=t.name||"";return i&&r.match(/function \(/)?"function "+i+r.substr(9):r}function Cc(t){const e=Array.isArray(t)?t.slice(-1)[0]:t;return e&&e.toString()||"undefined"}function xc(t){const e=[],n=Pa([[g,Va("undefined")],[fc,Va("null")],[gc,Va("[Promise]")],[t=>t&&"function"==typeof t.then&&"Rejection"==t.constructor.name,t=>t._transitionRejection.toString()],[t=>v(t)&&!Array.isArray(t)&&t.constructor!==Object&&x(t.toString),t=>t.toString()],[mc,Ec],[Va(!0),t=>t]]);function r(t){if(v(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 Oc(t,e){return w(lc(t))&&w(e)?t.slice(0,-1).concat(lc(t)+e):rc(t,e)}function Sc(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 Ac(t){return b(t)?kc[t]:kc[kc[t]]}var kc;!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"}(kc||(kc={}));const _c=ka("$id"),Tc=ka("router.$id"),jc=t=>`Transition #${_c(t)}-${Tc(t)}`;const Nc=new class{constructor(){this._enabled={},this.approximateDigests=0}_set(t,e){e.length||(e=Object.keys(kc).map((t=>parseInt(t,10))).filter((t=>!isNaN(t))).map((t=>kc[t]))),e.map(Ac).forEach((e=>this._enabled[e]=t))}enable(...t){this._set(!0,t)}disable(...t){this._set(!1,t)}enabled(t){return!!this._enabled[Ac(t)]}traceTransitionStart(t){this.enabled(kc.TRANSITION)&&console.log(`${jc(t)}: Started -> ${xc(t)}`)}traceTransitionIgnored(t){this.enabled(kc.TRANSITION)&&console.log(`${jc(t)}: Ignored <> ${xc(t)}`)}traceHookInvocation(t,e,n){if(!this.enabled(kc.HOOK))return;const r=ka("traceData.hookType")(n)||"internal",i=ka("traceData.context.state.name")(n)||ka("traceData.context")(n)||"unknown",s=Ec(t.registeredHook.callback);console.log(`${jc(e)}: Hook -> ${r} context: ${i}, ${wc(200,s)}`)}traceHookResult(t,e){this.enabled(kc.HOOK)&&console.log(`${jc(e)}: <- Hook returned: ${wc(200,xc(t))}`)}traceResolvePath(t,e,n){this.enabled(kc.RESOLVE)&&console.log(`${jc(n)}: Resolving ${t} (${e})`)}traceResolvableResolved(t,e){this.enabled(kc.RESOLVE)&&console.log(`${jc(e)}: <- Resolved ${t} to: ${wc(200,xc(t.data))}`)}traceError(t,e){this.enabled(kc.TRANSITION)&&console.log(`${jc(e)}: <- Rejected ${xc(e)}, reason: ${t}`)}traceSuccess(t,e){this.enabled(kc.TRANSITION)&&console.log(`${jc(e)}: <- Success ${xc(e)}, final state: ${t.name}`)}traceUIViewEvent(t,e,n=""){this.enabled(kc.UIVIEW)&&console.log(`ui-view: ${function(t,e){for(;e.length<t;)e+=" ";return e}(30,t)} ${Sc(e)}${n}`)}traceUIViewConfigUpdated(t,e){this.enabled(kc.UIVIEW)&&this.traceUIViewEvent("Updating",t,` with ViewConfig from context='${e}'`)}traceUIViewFill(t,e){this.enabled(kc.UIVIEW)&&this.traceUIViewEvent("Fill",t,` with: ${wc(200,e)}`)}traceViewSync(t){if(!this.enabled(kc.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(kc.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(kc.VIEWCONFIG)&&console.log(`VIEWCONFIG: ${t} ${Sc(e)}`)}};function Rc(t,e,n,r){if(Ea.$injector=t,Ea.$q=e,!Object.prototype.hasOwnProperty.call(t,"strictDi"))try{t.invoke((()=>{}))}catch(e){t.strictDi=!!/strict mode/.exec(e&&e.toString())}n.get().map((t=>t.$$state().resolvables)).reduce(ec,[]).filter((t=>"deferred"===t.deps)).forEach((e=>e.deps=Ee(e.resolveFn,t.strictDi))),r.listen()}function Vc(t){t.$watch((function(){Nc.approximateDigests++}))}Rc.$inject=["$injector","$q","$stateRegistry","$urlService"],Vc.$inject=["$rootScope"];let Pc="LAZY",Dc="WAIT";class Mc{constructor(t,e,n,r,i){if(this.resolved=!1,this.promise=void 0,t instanceof Mc)Object.assign(this,t);else if(x(e)){if($c(t))throw new Error("new Resolvable(): token argument is required");if(!x(e))throw new Error("new Resolvable(): resolveFn argument must be a function");this.token=t,this.policy=r,this.resolveFn=e,this.deps=n||[],this.data=i,this.resolved=void 0!==i,this.promise=this.resolved?Ea.$q.when(this.data):void 0}else if(v(t)&&t.token&&(Object.prototype.hasOwnProperty.call(t,"resolveFn")||Object.prototype.hasOwnProperty.call(t,"data"))){const e=t;return new Mc(e.token,e.resolveFn,e.deps,e.policy,e.data)}}getPolicy(t){const e=this.policy||{},n=t&&t.resolvePolicy||{};return{when:e.when||n.when||Pc,async:e.async||n.async||Dc}}resolve(t,e){const n=Ea.$q,r=t.findNode(this),i=r&&r.state,s=this.getPolicy(i).async,o=x(s)?s:t=>t;return this.promise=n.when().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,Nc.traceResolvableResolved(this,e),this.data)))}get(t,e){return this.promise||this.resolve(t,e)}toString(){return`Resolvable(token: ${xc(this.token)}, requires: [${this.deps.map(xc)}])`}clone(){return new Mc(this)}}Mc.fromData=(t,e)=>new Mc(t,(()=>e),null,null,e);class Lc{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.when(t).then((t=>({template:t}))),i=t=>this.$q.when(t).then((t=>({component:t})));switch((t=>y(t.template)?"template":y(t.templateUrl)?"templateUrl":y(t.templateProvider)?"templateProvider":y(t.component)?"component":y(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 x(t)?t(e):t}fromUrl(t,e){return x(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=Ee(t),i=Array.isArray(t)?lc(t):t;return new Mc("",i,r).get(n)}fromComponentProvider(t,e,n){const r=Ee(t),i=Array.isArray(t)?lc(t):t;return new Mc("",i,r).get(n)}makeComponentTemplate(t,e,n,r){r=r||{};const i=t=>{const e=bc(t);return/^(x|data)-/.exec(e)?`x-${e}`:e},s=function(t){const e=Ea.$injector.get(t+"Directive");if(!e||!e.length)throw new Error(`Unable to find component named '${t}'`);return e.map(Ic).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&&Ee(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 Ic=t=>v(t.bindToController)?qc(t.bindToController):qc(t.scope),qc=t=>Object.keys(t||{}).map((e=>[e,/^([=<@&])[?]?(.*)/.exec(t[e])])).filter((t=>y(t)&&Array.isArray(t[1]))).map((t=>({name:t[1][2]||t[0],type:t[1][1]})));function Uc(){let t=!1;this.useAnchorScroll=function(){t=!0},this.$get=["$anchorScroll","$timeout",(e,n)=>t?e:function(t){return n((function(){t[0].scrollIntoView()}),0,!1)}]}function Hc(t){const e=function(e,n,r){return t.is(e,n,r)};return e.$stateful=!0,e}function Fc(t){const e=function(e,n,r){return t.includes(e,n,r)};return e.$stateful=!0,e}function Bc(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 zc(t){const e=t.parent().inheritedData("$ngView"),n=ka("$cfg.path")(e);return n?lc(n).state.name:void 0}function Wc(t,e,n){const r=n.ngState||t.current.name,i=Object.assign(function(t,e){return{relative:zc(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 Gc(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 Kc(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 Qc(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 Jc(t,e,n,r){const i=t;return{restrict:"A",require:["?^ngSrefActive","?^ngSrefActiveEq"],link:(t,s,o,a)=>{const c=Gc(s),l=a[1]||a[0];let u=null;const h={},p=()=>Wc(i,s,h),d=Bc(o.ngSref);function f(){const t=p();u&&u(),l&&(u=l.$$addStateInfo(t.ngState,t.ngStateParams)),null!=t.href&&o.$set(c.attr,t.href)}if(h.ngState=d.state,h.ngStateOpts=o.ngSrefOpts?t.$eval(o.ngSrefOpts):{},d.paramExpr&&(t.$watch(d.paramExpr,(function(t){h.ngStateParams=Object.assign({},t),f()}),!0),h.ngStateParams=Object.assign({},t.$eval(d.paramExpr))),f(),t.$on("$destroy",n.onStatesChanged(f)),t.$on("$destroy",r.onSuccess({},f)),!c.clickable)return;const $=Kc(s,i,e,c,p);Qc(s,t,$,h.ngStateOpts)}}}function Zc(t,e,n,r){return{restrict:"A",require:["?^ngSrefActive","?^ngSrefActiveEq"],link:function(i,s,o,a){const c=Gc(s),l=a[1]||a[0];let u,h=null;const p={},d=()=>Wc(t,s,p),f=["ngState","ngStateParams","ngStateOpts"],$=f.reduce(((t,e)=>(t[e]=()=>{},t)),{});function m(){const t=d();h&&h(),l&&(h=l.$$addStateInfo(t.ngState,t.ngStateParams)),null!=t.href&&o.$set(c.attr,t.href)}f.forEach((t=>{p[t]=o[t]?i.$eval(o[t]):null,o.$observe(t,(e=>{$[t](),$[t]=i.$watch(e,(e=>{p[t]=e,m()}),!0)}))})),m(),i.$on("$destroy",n.onStatesChanged(m)),i.$on("$destroy",r.onSuccess({},m)),c.clickable&&(u=Kc(s,t,e,c,d),Qc(s,i,u,p.ngStateOpts))}}}function Yc(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 p(){d(l)}function d(t){v(t)&&(u=[],La(t,(function(t,e){const n=function(t,e){const n=Bc(t);f(n.state,s.$eval(n.paramExpr),e)};w(t)?n(t,e):Array.isArray(t)&&La(t,(function(t){n(t,e)}))})))}function f(e,n,r){const i={state:t.get(e,zc(o))||{name:e},params:n,activeClass:r};return u.push(i),function(){Fa(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=>!Ha(l,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),d(l),this.$$addStateInfo=function(t,e){if(v(l)&&u.length>0)return;const n=f(t,e,l);return $(),n},s.$on("$destroy",function(){const t=r.onStatesChanged(p),e=i.onStart({},h),n=s.$on("$stateChangeSuccess",$);return function(){t(),e(),n()}}()),e.transition&&h(e.transition),$()}}}Hc.$inject=["$state"],Fc.$inject=["$state"],Jc.$inject=["$state","$timeout","$stateRegistry","$transitions"],Zc.$inject=["$state","$timeout","$stateRegistry","$transitions"],Yc.$inject=["$state","$routerGlobals","$interpolate","$stateRegistry","$transitions"];class Xc{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()}'${xc(this.params())}`}withState(t){return new Xc(this._stateRegistry,t,this._params,this._options)}withParams(t,e=!1){const n=e?t:Object.assign({},this._params,t);return new Xc(this._stateRegistry,this._identifier,n,this._options)}withOptions(t,e=!1){const n=e?t:Object.assign({},this._options,t);return new Xc(this._stateRegistry,this._identifier,this._params,n)}}Xc.isDef=t=>t&&t.state&&(w(t.state)||v(t.state)&&w(t.state.name));class tl{constructor(t){this.pattern=/.*/,this.inherit=!0,Object.assign(this,t),this.name=void 0}is(t){return!0}encode(t){return t}decode(t){return t}equals(t,e){return t==e}$subPattern(){const t=this.pattern.toString();return t.substr(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 el(this,t)}}function el(t,e){function n(t){return Array.isArray(t)?t:y(t)?[t]:[]}function r(t,r){return function(i){if(Array.isArray(i)&&0===i.length)return i;const s=Ya(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})}const nl=t=>0===["value","type","squash","array","dynamic"].filter(Object.prototype.hasOwnProperty.bind(t||{})).length;var rl;function il(t,e,n){const r=!1===n.reloadOnSearch&&e===rl.SEARCH||void 0,i=Ja([n.dynamic,r],y),s=y(i)?{dynamic:i}:{},o=function(t){function e(){return t.value}t=nl(t)?{value:t}:t,e.__cacheable=!0;const n=mc(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"}(rl||(rl={}));class sl{constructor(t,e,n,r,i){const s=il(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===rl.CONFIG?"any":n===rl.PATH?"path":n===rl.SEARCH?"query":"string";return i.type(t)}return t.type instanceof tl?t.type:i.type(t.type)}(s,e,n,t,r.paramTypes);const o=function(){const e={array:n===rl.SEARCH&&"auto"},r=t.match(/\[\]$/)?{array:!0}:{};return Object.assign(e,r,s).array}();e=o?e.$asArray(o,n===rl.SEARCH):e;const a=void 0!==s.value||n===rl.SEARCH,c=y(s.dynamic)?!!s.dynamic:!!e.dynamic,l=y(s.raw)?!!s.raw:!!e.raw,u=function(t,e,n){const r=t.squash;if(!e||!1===r)return!1;if(!y(r)||null==r)return n;if(!0===r||w(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:[];w(r)&&s.push({from:r,to:void 0});const o=Ya(s,Sa("from"));return Qa(i,(t=>-1===o.indexOf(t.from))).concat(s)}(s,o,a,u),p=y(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=p,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(!Ea.$injector)throw new Error("Injectable functions cannot be called at configuration time");const t=Ea.$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===rl.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!(w(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===sl.changed(t,e,n).length}static validates(t,e={}){return t.map((t=>t.validates(e[t.id]))).reduce(Xa,!0)}}class ol{constructor(t){if(t instanceof ol){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 ol(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 Ja(this.paramSchema,Aa("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 sl.changed(n,this.paramValues,t.paramValues)}}ol.clone=t=>t.clone();class al{static makeTargetState(t,e){const n=lc(e).state;return new Xc(t,n,e.map(Sa("paramValues")).reduce(Wa,{}),{})}static buildPath(t){const e=t.params();return t.$state().path.map((t=>new ol(t).applyRawParams(e)))}static buildToPath(t,e){const n=al.buildPath(e);return e.options().inherit?al.inheritParams(t,n,Object.keys(e.params())):n}static applyViewConfigs(t,e,n){e.filter((t=>Ha(n,t.state))).forEach((n=>{const r=Object.values(n.state.views||{}),i=al.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(Sa("id"));return e.map((function(e){let i=Object.assign({},e&&e.paramValues);const s=Ga(i,n);i=Ka(i,n);const o=Ka(function(t,e){const n=Ja(t,Aa("state",e));return Object.assign({},n&&n.paramValues)}(t,e.state)||{},r),a=Object.assign(i,o,s);return new ol(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,al.nonDynamicParams));)i++;var s,o;let a,c,l,u,h;a=t,c=a.slice(0,i),l=a.slice(i);const p=c.map((function(t,n){const r=t.clone();return r.paramValues=e[n].paramValues,r}));return u=e.slice(i),h=p.concat(u),{from:a,to:h,retained:c,retainedWithToParams:p,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&&al.matching(t,e,n).length===t.length}static subPath(t,e){const n=Ja(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)),{})}}let cl={LAZY:"LAZY",EAGER:"EAGER"};const ll=cl,ul=[ll.EAGER,ll.LAZY],hl=[ll.EAGER];class pl{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.state)}subContext(t){return new pl(al.subPath(this._path,(e=>e.state===t)))}addResolvables(t,e){const n=Ja(this._path,Aa("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=(Ha(ul,t)?t:"LAZY")===cl.EAGER?hl:ul;Nc.traceResolvePath(this._path,t,e);const r=(t,e)=>n=>Ha(t,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(_a(r(["NOWAIT"],"async"))),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 Ea.$q.all(i)}injector(){return this._injector||(this._injector=new dl(this))}findNode(t){return Ja(this._path,(e=>Ha(e.resolvables,t)))}getDependencies(t){const e=this.findNode(t),n=(al.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=this.injector().getNative(t);if(g(r))throw new Error("Could not find Dependency Injection token: "+xc(t));return new Mc(t,(()=>r),[],r)}))}}class dl{constructor(t){this.context=t,this.native=this.get("Native Injector")||Ea.$injector}get(t){const e=this.context.getResolvable(t);if(e){if("NOWAIT"===this.context.getPolicy(e).async)return e.get(this.context);if(!e.resolved)throw new Error("Resolvable async .get() not complete:"+xc(e.token));return e.data}return this.getNative(t)}getAsync(t){const e=this.context.getResolvable(t);return e?e.get(this.context):Ea.$q.when(this.native.get(t))}getNative(t){return this.native&&this.native.get(t)}}const fl=(t,e)=>t.reduce(((t,n)=>t||y(e[n])),!1);function $l(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(y(t.views)&&fl(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=>y(t[e]))).join(", ")}`);const i={},s=t.views||{$default:Ga(t,r)};return La(s,(function(r,s){if(s=s||"$default",w(r)&&(r={component:r}),r=Object.assign({},r),fl(e,r)&&fl(n,r))throw new Error(`Cannot combine: ${e.join("|")} with: ${n.join("|")} in stateview: '${s}@${t.name}'`);r.resolveAs=r.resolveAs||"$resolve",r.$type="ng1",r.$context=t,r.$name=s;const o=gl.normalizeUIViewTarget(r.$context,r.$name);r.$ngViewName=o.ngViewName,r.$ngViewContextAnchor=o.ngViewContextAnchor,i[s]=r})),i}let ml=0;class gl{constructor(t,e,n){this.path=t,this.viewDecl=e,this.factory=n,this.component=void 0,this.template=void 0,this.$id=ml++,this.loaded=!1,this.getTemplate=(t,e)=>this.component?this.factory.makeComponentTemplate(t,e,this.component,this.viewDecl.bindings):this.template}load(){const t=Ea.$q,e=new pl(this.path),n=this.path.reduce(((t,e)=>Object.assign(t,e.paramValues)),{}),r={template:t.when(this.factory.fromConfig(this.viewDecl,n,e)),controller:t.when(this.getController(e))};return t.all(r).then((t=>(Nc.traceViewServiceEvent("Loaded",this),this.controller=t.controller,Object.assign(this,t.template),this)))}getController(t){const e=this.viewDecl.controllerProvider;if(!mc(e))return this.viewDecl.controller;const n=Ee(e),r=Array.isArray(e)?lc(e):e;return new Mc("",r,n).get(t)}static normalizeUIViewTarget(t,e=""){const n=e.split("@");let r=n[0]||"$default",i=w(n[1])?n[1]:"^";const s=/^(\^(?:\.\^)*)\.(.*$)/.exec(r);s&&(i=s[1],r=s[2]),"!"===r.charAt(0)&&(r=r.substr(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 yl{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=w(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 vl(t){return t.self.$$state=()=>t,t.self}function wl(t){return t.parent&&t.parent.data&&(t.data=t.self.data=Ua(t.parent.data,t.data)),t.data}const bl=(t,e)=>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=(t=>{if(!w(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)},El=t=>function(e){return!t(e)&&e.url?e:e.parent?e.parent.navigable:null};function Cl(t){return t.parent&&!t.abstract?t.parent.path.concat(t):[t]}function xl(t){const e=t.parent?Object.assign({},t.parent.includes):{};return e[t.name]=!0,e}function Ol(t){const e=t=>t.provide||t.token,n=Pa([[Sa("resolveFn"),t=>new Mc(e(t),t.resolveFn,t.deps,t.policy)],[Sa("useFactory"),t=>new Mc(e(t),t.useFactory,t.deps||t.dependencies,t.policy)],[Sa("useClass"),t=>new Mc(e(t),(()=>new t.useClass),[],t.policy)],[Sa("useValue"),t=>new Mc(e(t),(()=>t.useValue),[],t.policy,t.useValue)],[Sa("useExisting"),t=>new Mc(e(t),(t=>t),[t.useExisting],t.policy)]]),r=Pa([[Oa(Sa("val"),w),t=>new Mc(t.token,(t=>t),[t.val],t.policy)],[Oa(Sa("val"),Array.isArray),t=>new Mc(t.token,lc(t.val),t.val.slice(0,-1),t.policy)],[Oa(Sa("val"),x),t=>new Mc(t.token,t.val,(t=>{const e=Ea.$injector;return t.$inject||e&&Ee(t,e.strictDi)||"deferred"})(t.val),t.policy)]]),i=Pa([[Ra(Mc),t=>t],[t=>!(!t.token||!t.resolveFn),n],[t=>!(!t.provide&&!t.token||!(t.useValue||t.useFactory||t.useExisting||t.useClass)),n],[t=>!!(t&&t.val&&(w(t.val)||Array.isArray(t.val)||x(t.val))),r],[Va(!0),t=>{throw new Error("Invalid resolve value: "+xc(t))}]]),s=t.resolve,o=Array.isArray(s)?s:((t,e)=>Object.keys(t||{}).map((n=>({token:n,val:t[n],deps:void 0,policy:e[n]}))))(s,t.resolvePolicy||{});return o.map(i)}class Sl{constructor(t,e){this.matcher=t,this.$injector=void 0;const n=this,r=()=>t.find(""),i=t=>""===t.name;var s;this.builders={name:[t=>t.name],self:[vl],parent:[function(e){return i(e)?null:t.find(n.parentName(e))||r()}],data:[wl],url:[bl(e,r)],navigable:[El(i)],params:[(s=e.paramFactory,function(t){const e=t.url&&t.url.parameters({inherit:!1})||[],n=Object.values(Za(Ka(t.params||{},e.map(Sa("id"))),((e,n)=>s.fromConfig(n,null,t.self))));return e.concat(n).map((t=>[t.id,t])).reduce(cc,{})})],views:[],path:[Cl],includes:[xl],resolvables:[Ol]}}builder(t,e){const n=this.builders,r=n[t]||[];return w(t)&&!y(e)?r.length>1?r:r[0]:w(t)&&x(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?w(t.parent)?t.parent:t.parent.name:""}name(t){const e=t.name;if(-1!==e.indexOf(".")||!t.parent)return e;const n=w(t.parent)?t.parent:t.parent.name;return n?n+"."+e:e}}class Al{static is(t){return!!/[!,*]+/.exec(t)}static fromString(t){return Al.is(t)?new Al(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)}}class kl{static create(t){const e=kl.isStateClass(t)?new t:Object.setPrototypeOf(Object.assign({},t),kl.prototype);return t.$$state=()=>e,e.self=t,e.__stateObjectCache={nameGlob:Al.fromString(e.name)},e}constructor(t){return kl.create(t||{})}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=za(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)||Ja(Object.values(this.params),Aa("id",t))||e.inherit&&this.parent&&this.parent.parameter(t)}toString(){return this.fqn()}}kl.isStateClass=t=>x(t)&&!0===t.__uiRouterState,kl.isStateDeclaration=t=>x(t.$$state),kl.isState=t=>v(t.__stateObjectCache);class _l{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=this.queue,n=kl.create(t),r=n.name;if(!w(r))throw new Error("State must have a valid name");if(Object.prototype.hasOwnProperty.call(this.states,r)||Ha(e.map(Sa("name")),r))throw new Error(`State '${r}' is already defined`);return e.push(n),this.flush(),n}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 p=s[l];if(s[l]=t.length,h>=0&&p===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 Tl{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 yl(this.states),this.builder=new Sl(this.matcher,t),this.builder.builder("views",$l),this.builder.builder("onExit",this.getStateHookBuilder("onExit")),this.builder.builder("onRetain",this.getStateHookBuilder("onRetain")),this.builder.builder("onEnter",this.getStateHookBuilder("onEnter")),this.stateQueue=new _l(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 pl(t.treeChanges(i)).subContext(n.$$state()),o=Object.assign(jl(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})).navigable=null}onStatesChanged(t){return this.listeners.push(t),function(){Fa(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(Aa("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 jl=t=>t.getTokens().filter(w).map((e=>{const n=t.getResolvable(e);return[e,"NOWAIT"===t.getPolicy(n).async?n.promise:n.data]})).reduce(cc,{});let Nl=["$view","$animate","$ngViewScroll","$interpolate","$q",function(t,e,n,r,i){const s={$cfg:{viewDecl:{$context:t._pluginapi._rootViewContext()}},$ngView:{}},o={count:0,restrict:"ECA",terminal:!0,priority:400,transclude:"element",compile:function(a,c,l){return function(a,c,u){const h=u.onload||"",p=u.autoscroll,d={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,v,w;const b={$type:"ng1",id:o.count++,name:$,fqn:f.$ngView.fqn?f.$ngView.fqn+"."+$:$,config:null,configUpdated:function(t){if(t&&!(t instanceof gl))return;if(e=w,n=t,e===n)return;var e,n;Nc.traceUIViewConfigUpdated(b,t&&t.viewDecl&&t.viewDecl.$context),w=t,C(t)},get creationContext(){const t=ka("$cfg.viewDecl.$context")(f),e=ka("$ngView.creationContext")(f);return t||e}};Nc.traceUIViewEvent("Linking",b),c.data("$ngView",{$ngView:b}),C();const E=t.registerUIView(b);function C(t){const e=a.$new(),r=i.defer(),s=i.defer(),o={$cfg:t,$ngView:b},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),d.enter(t,c,(function(){r.resolve(),v&&v.$emit("$viewContentAnimationEnded"),(y(p)&&!p||a.$eval(p))&&n(t)})),function(){if(m&&(Nc.traceUIViewEvent("Removing (previous) el",m.data("$ngView")),m.remove(),m=null),v&&(Nc.traceUIViewEvent("Destroying scope",b),v.$destroy(),v=null),g){const t=g.data("$ngViewAnim");Nc.traceUIViewEvent("Animate out",t),d.leave(g,(function(){t.$$animLeave.resolve(),m=null})),m=g,g=null}}()}));g=f,v=e,v.$emit("$viewContentLoaded",t||w),v.$eval(h)}a.$on("$destroy",(function(){Nc.traceUIViewEvent("Destroying/Unregistering",b),E()}))}}};return o}];function Rl(t,e,n,r,i){const s=ka("viewDecl.controllerAs"),o=ka("viewDecl.resolveAs");return{restrict:"ECA",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 pl(u.path);c.html(u.getTemplate(c,h)||a),Nc.traceUIViewFill(l.$ngView,c.html());const p=t(c[0].contentDocument||c[0].childNodes),d=u.controller,f=s(u),$=o(u),m=h&&jl(h);if(r[$]=m,d){const t=e(d,Object.assign({},m,{$scope:r,$element:c}));f&&(r[f]=t,r[f][$]=m),c.data("$ngControllerController",t),c.children().data("$ngControllerController",t),Pl(i,n,t,r,u)}if(w(u.component)){const t=bc(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&&_t(t).data(`$${u.component}Controller`)},o=r.$watch(s,(function(t){t&&(Pl(i,n,t,r,u),o())}))}p(r)}}}}Rl.$inject=["$compile","$controller","$transitions","$view","$q"];let Vl=0;function Pl(t,e,n,r,i){!x(n.$onInit)||i.viewDecl.component||i.viewDecl.componentProvider||n.$onInit();const s=lc(i.path).state.self,o={bind:n};if(x(n.uiOnParamsChanged)){const t=new pl(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(x(n.uiCanExit)){const i=Vl++,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.when(n.uiCanExit(e)),r.then((t=>s[i]=!1!==t))),r},u={exiting:s.name};r.$on("$destroy",e.onBefore(u,l,o))}}class Dl{constructor(){this.enqueue=!0,this.typeQueue=[],this.defaultTypes=Ga(Dl.prototype,["hash","string","query","path","int","bool","date","json","any"]);this.types=Ua(Ya(this.defaultTypes,((t,e)=>new tl(Object.assign({name:e},t)))),{})}type(t,e,n){if(!y(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 tl(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],Ea.$injector.invoke(t.def))}}}!function(){const t=t=>{const e=t=>null!=t?t.toString():t,n={encode:e,decode:e,is:Ra(String),pattern:/.*/,equals:(t,e)=>t==e};return Object.assign({},n,t)};Object.assign(Dl.prototype,{string:t({}),path:t({pattern:/[^/]*/}),query:t({}),hash:t({inherit:!1}),int:t({decode:t=>parseInt(t,10),is:function(t){return!$c(t)&&this.decode(t.toString())===t},pattern:/-?\d+/}),bool:t({encode:t=>t?1:0,decode:t=>0!==parseInt(t,10),is:Ra(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:Ma,decode:Da,is:Ra(Object),equals:Ia,pattern:/[^/]*/}),any:t({encode:t=>t,decode:t=>t,is:()=>!0,equals:Ia})})}();class Ml{constructor(){this.paramTypes=new Dl,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=y(t)?t:this._isCaseInsensitive}defaultSquashPolicy(t){if(y(t)&&!0!==t&&!1!==t&&!w(t))throw new Error(`Invalid squash policy: ${t}. Valid policies: false, true, arbitrary-string`);return this._defaultSquashPolicy=y(t)?t:this._defaultSquashPolicy}strictMode(t){return this._isStrictMode=y(t)?t:this._isStrictMode}type(t,e,n){const r=this.paramTypes.type(t,e,n);return y(e)?this:r}}class Ll{constructor(){this._ngViews=[],this._viewConfigs=[],this._viewConfigFactories={},this._listeners=[],this._pluginapi={_rootViewContext:this._rootViewContext.bind(this),_viewConfigFactory:this._viewConfigFactory.bind(this),_registeredUIView:t=>Ja(this._ngViews,(e=>e.id===t)),_registeredUIViews:()=>this._ngViews,_activeViewConfigs:()=>this._viewConfigs,_onSync:t=>(this._listeners.push(t),()=>Fa(this._listeners,t))},this._pluginapi._viewConfigFactory("ng1",function(){let t=null;return(e,n)=>(t=t||Ea.$injector.get("$templateFactory"),[new gl(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){Nc.traceViewServiceEvent("<- Removing",t),Fa(this._viewConfigs,t)}activateViewConfig(t){Nc.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=Ca(((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(Ll.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=>!Ha(i,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))),Nc.traceViewSync(o)}registerUIView(t){Nc.traceViewServiceUIViewEvent("-> Registering",t);const e=this._ngViews;return e.filter((e=>e.fqn===t.fqn&&e.$type===t.$type)).length&&Nc.traceViewServiceUIViewEvent("!!!! duplicate ngView named:",t),e.push(t),this.sync(),()=>{-1!==e.indexOf(t)?(Nc.traceViewServiceUIViewEvent("<- Deregistering",t),Fa(e)(t)):Nc.traceViewServiceUIViewEvent("Tried removing non-registered ngView",t)}}available(){return this._ngViews.map(Sa("fqn"))}active(){return this._ngViews.filter(Sa("$config")).map(Sa("name"))}}function Il(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]}Ll.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(!Ia(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 ql=function(t){const e=new RegExp("("+t+")","g");return t=>t.split(e).filter(Boolean)}("/"),Ul={state:{params:{}},strict:!0,caseInsensitive:!0};class Hl{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===rl.PATH)).concat(void 0)).reduce(ec,[]).filter((t=>""!==t&&y(t)))}static queryParams(t){return t._params.filter((t=>t.location===rl.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(Hl.pathSegmentsAndParams).reduce(ec,[]).reduce(Oc,[]).map((t=>w(t)?ql(t):t)).reduce(ec,[]))(t).map((t=>"/"===t?1:w(t)?2:t instanceof sl?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=za(r,Ul),this.pattern=t;const i=/([:*])([\w\[\]]+)|\{([\w\[\]]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,s=/([:]?)([\w\[\].-]+)|\{([\w\[\].-]+)(?:\:\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,o=[];let a,c=0;const l=e=>{if(!Hl.nameValidator.test(e))throw new Error(`Invalid parameter name '${e}' in pattern '${t}'`);if(Ja(this._params,Aa("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=>Ua(e.type(r?"query":"path"),{pattern:new RegExp(t,this.config.caseInsensitive?"i":void 0)}))(s):null}};let h,p;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;p=t.substring(c);const d=p.indexOf("?");if(d>=0){const t=p.substring(d);if(p=p.substring(0,d),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(p),this._compiled=o.map((t=>Il.apply(null,t))).concat(Il(p))}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 y(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(Sa("_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 p(t){const e=t=>t.split("").reverse().join(""),n=Ya(e(t).split(/-(?!\\)/),e);return Ya(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=p(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(Hl.pathSegmentsAndParams).reduce(ec,[]).map((t=>w(t)?t:i(t))),r=e.map(Hl.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(w(e))return t+e;const{squash:n,encoded:r,param:i}=e;return!0===n?t.match(/\/$/)?t.slice(0,-1):t:w(n)?t+n:!1!==n||null==r?t:Array.isArray(r)?t+Ya(r,Hl.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=Ya(r,encodeURIComponent)),r.map((t=>`${e.id}=${t}`))})).reduce(ec,[]).join("&");return s+(o?`?${o}`:"")+(t["#"]?"#"+t["#"]:"")}}Hl.nameValidator=/^\w+([-.]+\w+)*(?:\[\])?$/;class Fl{constructor(t,e,n){this.urlService=t,this.stateService=e,this.routerGlobals=n}create(t,e){const{isState:n,isStateDeclaration:r}=kl,i=Pa([[w,t=>i(this.urlService.compile(t))],[Ra(Hl),t=>this.fromUrlMatcher(t,e)],[Ta(n,r),t=>this.fromState(t,this.stateService,this.routerGlobals)],[Ra(RegExp),t=>this.fromRegExp(t,e)],[x,t=>new Bl(t,e)]]),s=i(t);if(!s)throw new Error("invalid 'what' in when()");return s}fromUrlMatcher(t,e){let n=e;w(e)&&(e=this.urlService.compile(e)),Ra(Hl)(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 Bl((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=kl.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=w(e)?t=>e.replace(/\$(\$|\d{1,2})/,((e,n)=>t["$"===n?0:Number(n)])):e,r={regexp:t,type:"REGEXP"};return Object.assign(new Bl((e=>t.exec(e.path)),n),r)}}Fl.isUrlRule=t=>t&&["type","match","handler"].every((e=>y(t[e])));class Bl{constructor(t,e){this.match=t,this.type="RAW",this.$id=-1,this.matchPriority=()=>0-this.$id,this.handler=e||(t=>t)}}let zl;function Wl(t){if(!(x(t)||w(t)||Ra(Xc)(t)||Xc.isDef(t)))throw new Error("'handler' must be a string, function, TargetState, or have a state: 'newtarget' property");return x(t)?t:Va(t)}zl=(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?Hl.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 Gl{constructor(t){this._sortFn=zl,this._rules=[],this._id=0,this.urlRuleFactory=t}initial(t){const e=Wl(t);this.rule(this.urlRuleFactory.create(((t,e)=>0===e.globals.transitionHistory.size()&&!!/^\/?$/.exec(t.path)),e))}otherwise(t){const e=Wl(t);this._otherwiseFn=this.urlRuleFactory.create(Va(!0),e),this._sorted=!1}removeRule(t){Fa(this._rules,t)}rule(t){if(!Fl.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 y(n&&n.priority)&&(r.priority=n.priority),this.rule(r),r}}class Kl{constructor(t){this.urlServiceConfig=t}fromConfig(t,e,n){return new sl(t,e,rl.CONFIG,this.urlServiceConfig,n)}fromPath(t,e,n){return new sl(t,e,rl.PATH,this.urlServiceConfig,n)}fromSearch(t,e,n){return new sl(t,e,rl.SEARCH,this.urlServiceConfig,n)}}class Ql{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.interceptDeferred=!1,this.urlRuleFactory=new Fl(this,this.stateService,n),this.rules=new Gl(this.urlRuleFactory),this.config=r,this.paramFactory=new Kl(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)];html5Mode(){let t=this.$locationProvider.html5Mode();return t=v(t)?t.enabled:t,t&&"undefined"!=typeof history}baseHref(){return this._baseHref||(this._baseHref=this.$browser.baseHref()||window.location.pathname)}url(t,e=!1,n){return y(t)&&this.$location.url(t),e&&this.$location.replace(),n&&this.$location.state(n),this.$location.url()}onChange(t){return this._urlListeners.push(t),()=>Fa(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);Pa([[w,t=>this.url(t,!0)],[Xc.isDef,t=>e.go(t.state,t.params,t.options)],[Ra(Xc),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}deferIntercept(t){void 0===t&&(t=!0),this.interceptDeferred=t}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.hashPrefix()+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 Hl(t,n.paramTypes,this.paramFactory,Object.assign(i,e))}isMatcher(t){if(!v(t))return!1;let e=!0;return N(Hl.prototype,((n,r)=>{x(n)&&(e=e&&y(t[r])&&x(t[r]))})),e}}class Jl{constructor(t=[],e=null){this._items=t,this._limit=e,this._evictListeners=[],this.onEvict=Ba(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]}}const Zl={CREATE:0,BEFORE:1,RUN:2,SUCCESS:3,ERROR:4},Yl={TRANSITION:0,STATE:1},Xl=2,tu=3,eu=4,nu=5,ru=6;let iu=0;class su{static superseded(t,e){const n=new su(Xl,"The transition has been superseded by a different transition",t);return e&&e.redirected&&(n.redirected=!0),n}static redirected(t){return su.superseded(t,{redirected:!0})}static invalid(t){return new su(eu,"This transition is invalid",t)}static ignored(t){return new su(nu,"The transition was ignored",t)}static aborted(t){return new su(tu,"The transition has been aborted",t)}static errored(t){return new su(ru,"The transition errored",t)}static normalize(t){return Ra(su)(t)?t:su.errored(t)}constructor(t,e,n){this.$id=iu++,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():xc(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 ou{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];ou.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 au=new ou(!0),cu={current:()=>{},transition:null,traceData:{},bind:null};class lu{static chain(t,e){return t.reduce(((t,e)=>t.then((()=>e.invokeHook()))),e||Ea.$q.when())}static invokeHooks(t,e){for(let n=0;n<t.length;n++){const r=t[n].invokeHook();if(gc(r)){const i=t.slice(n+1);return lu.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===Zl.RUN&&!this.options.transition.isActive(),this.options=za(r,cu),this.type=n.eventType}logError(t){au.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;Nc.traceHookInvocation(this,this.transition,n);const r=()=>t.callback.call(n.bind,this.transition,this.stateContext),i=t=>su.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&&gc(t)?t.catch(i).then(o,s):o(t)}catch(t){return s(su.normalize(t))}finally{t.invokeLimit&&++t.invokeCount>=t.invokeLimit&&t.deregister()}}handleHookResult(t){const e=this.getNotCurrentRejection();if(e)return e;if(gc(t))return t.then((t=>this.handleHookResult(t)));if(Nc.traceHookResult(t,this.transition),!1===t)return su.aborted("Hook aborted transition").toPromise();return Ra(Xc)(t)?su.redirected(t).toPromise():void 0}getNotCurrentRejection(){return this.transition._aborted?su.aborted().toPromise():this.isSuperseded()?su.superseded(this.options.current()).toPromise():void 0}toString(){const{options:t,registeredHook:e}=this;return`${ka("traceData.hookType")(t)||"internal"} context: ${ka("traceData.context.state.name")(t)||ka("traceData.context")(t)||"unknown"}, ${wc(200,Cc(e.callback))}`}}function uu(t,e,n){const r=w(e)?[e]:e;return!!(x(r)?r:function(t){const e=r;for(let n=0;n<e.length;n++){const r=new Al(e[n]);if(r&&r.matches(t.name)||!r&&e[n]===t.name)return!0}return!1})(t,n)}lu.HANDLE_RESULT=t=>e=>t.handleHookResult(e),lu.LOG_REJECTED_RESULT=t=>e=>{gc(e)&&e.catch((e=>t.logError(su.normalize(e))))},lu.LOG_ERROR=t=>e=>t.logError(e),lu.REJECT_ERROR=()=>t=>dc(t),lu.THROW_ERROR=()=>t=>{throw t};class hu{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=>uu(t.state,e,n)));return r.length?r:null}_getDefaultMatchCriteria(){return Za(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===Yl.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 pu(t,e,n){const r=(t._registeredHooks=t._registeredHooks||{})[n.name]=[],i=Fa(r);function s(t,s,o={}){const a=new hu(e,n,s,t,i,o);return r.push(a),a.deregister.bind(a)}return t[n.name]=s,s}class du{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===Yl.STATE?n.state.self:null,a=new lu(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===Zl.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)))}}const fu=Sa("self");class $u{constructor(t,e,n,r){if(this.globals=r,this.transitionService=n,this._deferred=Ea.$q.defer(),this.promise=this._deferred.promise,this._registeredHooks={},this._hookBuilder=new du(this),this.isActive=()=>this.globals.transition===this,this._targetState=e,!e.valid())throw new Error(e.error());this._options=Object.assign({current:Va(this)},e.options()),this.$id=n._transitionCount++;const i=al.buildToPath(t,e);this._treeChanges=al.treeChanges(t,i,this._options.reloadState),this.createTransitionHookRegFns();const s=this._hookBuilder.buildHooksForPhase(Zl.CREATE);lu.invokeHooks(s,(()=>null)),this.applyViewConfigs()}createTransitionHookRegFns(){this.transitionService._pluginapi._getEvents().filter((t=>t.hookPhase!==Zl.CREATE)).forEach((t=>pu(this,this.transitionService,t)))}getHooks(t){return this._registeredHooks[t]}applyViewConfigs(){const t=this._treeChanges.entering.map((t=>t.state));al.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 $u?this.is({to:t.$to().name,from:t.$from().name}):!(t.to&&!uu(this.$to(),t.to,this)||t.from&&!uu(this.$from(),t.from,this))}params(t="to"){return Object.freeze(this._treeChanges[t].map(Sa("paramValues")).reduce(Wa,{}))}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 sl.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=al.subPath(n,(e=>e.state===t||e.state.name===t))),new pl(n).injector()}getResolveTokens(t="to"){return new pl(this._treeChanges[t]).getTokens()}addResolvable(t,e=""){t=Ra(Mc)(t)?t:new Mc(t);const n="string"==typeof e?e:e.name,r=this._treeChanges.to,i=Ja(r,(t=>t.state.name===n));console.assert(i,`targetNode not found ${n}`);new pl(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 Ya(this._treeChanges.entering,Sa("state")).map(fu)}exiting(){return Ya(this._treeChanges.exiting,Sa("state")).map(fu).reverse()}retained(){return Ya(this._treeChanges.retained,Sa("state")).map(fu)}views(t="entering",e){let n=this._treeChanges[t];return n=e?n.filter(Aa("state",e)):n,n.map(Sa("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;var c;return al.matching(a,o,al.nonDynamicParams).filter(_a((c=t.options().reloadState,t=>c&&t.state.includes[c.name]))).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])=>sl.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=al.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=lu.runAllHooks,e=t=>this._hookBuilder.buildHooksForPhase(t),n=e(Zl.BEFORE);return lu.invokeHooks(n,(()=>{const t=this.globals;return t.lastStartedTransitionId=this.$id,t.transition=this,t.transitionHistory.enqueue(this),Nc.traceTransitionStart(this),Ea.$q.when(void 0)})).then((()=>{const t=e(Zl.RUN);return lu.invokeHooks(t,(()=>Ea.$q.when(void 0)))})).then((()=>{Nc.traceSuccess(this.$to(),this),this.success=!0,this._deferred.resolve(this.to()),t(e(Zl.SUCCESS))}),(n=>{Nc.traceError(n,this),this.success=!1,this._deferred.reject(n),this._error=n,t(e(Zl.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 su.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}:${xc(n[t.id])}]`)).join(", "),i=`The following parameter values are not valid for state '${t.name}': ${e}`;return su.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:Ka(t,["#"]);return`Transition#${this.$id}( '${v(t)?t.name:t}'${xc(n(this._treeChanges.from.map(Sa("paramValues")).reduce(Wa,{})))} -> ${this.valid()?"":"(X) "}'${v(e)?e.name:e}'${xc(n(this.params()))} )`}}$u.diToken=$u;const mu=Ha(["$transition$",$u]);function gu(t){const e=Object.values(t.treeChanges()).reduce(ec,[]).reduce(ic,[]),n=t=>mu(t.token)?Mc.fromData(t.token,null):t;e.forEach((t=>{t.resolvables=t.resolvables.map(n)}))}function yu(t){return(e,n)=>(0,n.$$state()[t])(e,n)}const vu=yu("onExit"),wu=yu("onRetain"),bu=yu("onEnter"),Eu=1e3,Cu=t=>new pl(t.treeChanges().to).resolvePath("EAGER",t).then((()=>{})),xu=(t,e)=>new pl(t.treeChanges().to).subContext(e.$$state()).resolvePath("LAZY",t).then((()=>{})),Ou=t=>new pl(t.treeChanges().to).resolvePath("LAZY",t).then((()=>{})),Su=t=>{const e=Ea.$q,n=t.views("entering");if(n.length)return e.all(n.map((t=>e.when(t.load())))).then((()=>{}))},Au=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 ku(t,e,n,r){return t.onBefore({entering:t=>!!t.lazyLoad},(t=>{const i=t.entering().filter((t=>!!t.$$state().lazyLoad)).map((e=>_u(t,e,r)));return Ea.$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 _u(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,Ea.$q.reject(t));i=r._promise=Ea.$q.when(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 Tu{constructor(t,e,n,r,i=!1,s=lu.HANDLE_RESULT,o=lu.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 ju(t){const e=t._ignoredReason();if(!e)return;Nc.traceTransitionIgnored(t);const n=t.globals.transition;return"SameAsCurrent"===e&&n&&n.abort(),su.ignored().toPromise()}function Nu(t){if(!t.valid())throw new Error(t.error().toString())}let Ru={location:!0,relative:null,inherit:!1,notify:!0,reload:!1,supercede:!0,custom:{},current:()=>null,source:"unknown"};class Vu{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=qa(Va(this),{},Va(this),["_definePathType","_defineEvent","_getPathTypes","_getEvents","getHooks"]),this._defineCorePaths(),this._defineCoreEvents(),this._registerCoreTransitionHooks(),t.successfulTransitions.onEvict(gu)}$get=["$state","$urlService","$stateRegistry","$view",(t,e,n,r)=>(this._deregisterHookFns.lazyLoad=ku(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 Xc?e:w(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 x(n)?Ea.$q.when(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 $u(t,e,this,this.globals)}_defineCoreEvents(){const t=Zl,e=lu,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}=Yl;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=lu.HANDLE_RESULT,o=lu.REJECT_ERROR,a=!1){const c=new Tu(t,e,n,r,i,s,o,a);this._eventTypes.push(c),pu(this,this,c)}_getEvents(t){return(y(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(Mc.fromData($u,t),""),t.addResolvable(Mc.fromData("$transition$",t),""),t.addResolvable(Mc.fromData("$stateParams",t.params()),""),t.entering().forEach((e=>{t.addResolvable(Mc.fromData("$state$",e),e)}))})),t.ignored=(t=>t.onBefore({},ju,{priority:-9999}))(this),t.invalid=(t=>t.onBefore({},Nu,{priority:-1e4}))(this),t.onExit=(t=>t.onExit({exiting:t=>!!t.onExit},vu))(this),t.onRetain=(t=>t.onRetain({retained:t=>!!t.onRetain},wu))(this),t.onEnter=(t=>t.onEnter({entering:t=>!!t.onEnter},bu))(this),t.eagerResolve=(t=>t.onStart({},Cu,{priority:Eu}))(this),t.lazyResolve=(t=>t.onEnter({entering:Va(!0)},xu,{priority:Eu}))(this),t.resolveAll=(t=>t.onFinish({},Ou,{priority:Eu}))(this),t.loadViews=(t=>t.onFinish({},Su))(this),t.updateGlobals=(t=>t.onCreate({},Au))(this),t.lazyLoad=ku(this)}}const Pu=ht("$stateProvider");class Du{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 su?new Error(t.toString()):new Error(t)};const n=Object.keys(Du.prototype).filter(_a(Ha(["current","$current","params","transition"])));qa(Va(Du.prototype),this,Va(this),n),au.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 Pu("stateinvalid","'name' required");try{this.stateRegistry.register(t)}catch(t){throw Pu("stateinvalid",t.message)}return this}_handleInvalidTargetState(t,e){const n=al.makeTargetState(this.stateRegistry,t),r=this.globals,i=()=>r.transitionHistory.peekTail(),s=i(),o=new Jl(this.invalidCallbacks.slice()),a=new pl(t).injector(),c=t=>{if(!(t instanceof Xc))return;let e=t;return e=this.target(e.identifier(),e.params(),e.options()),e.valid()?i()!==s?su.superseded().toPromise():this.transitionTo(e.identifier(),e.params(),e.options()):su.invalid(e.error()).toPromise()};return function t(){const r=o.dequeue();return void 0===r?su.invalid(e.error()).toPromise():Ea.$q.when(r(e,n,a)).then(c).then((e=>e||t()))}()}onInvalid(t){return this.invalidCallbacks.push(t),function(){Fa(this.invalidCallbacks)(t)}.bind(this)}reload(t){return this.transitionTo(this.globals.current,this.globals.params,{reload:!y(t)||t,inherit:!1,notify:!1})}go(t,e,n){const r=za(n,{relative:this.$current,inherit:!0},Ru);return this.transitionTo(t,e,r)}target(t,e,n={}){if(v(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 '${w(n.reload)?n.reload:n.reload.name}'`);return new Xc(this.stateRegistry,t,e,n)}getCurrentPath(){const t=this.globals.successfulTransitions.peekTail();return t?t.treeChanges().to:(()=>[new ol(this.stateRegistry.root())])()}transitionTo(t,e={},n={}){n=za(n,Ru);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 su.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 su){const n=this.globals.lastStartedTransitionId<=t.$id;if(e.type===nu)return n&&this.urlService.update(),Ea.$q.when(this.globals.current);const r=e.detail;if(e.type===Xl&&e.redirected&&r instanceof Xc){const e=t.redirect(r);return e.run().catch(o(e))}if(e.type===tu)return n&&this.urlService.update(),Ea.$q.reject(e)}return this.defaultErrorHandler()(e),Ea.$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=za(n,{relative:this.$current});const r=this.stateRegistry.matcher.find(t,n.relative);if(!y(r))return;if(this.$current!==r)return!1;if(!e)return!0;const i=r.parameters({inherit:!0,matchingKeys:e});return sl.equals(i,sl.values(i,e),this.globals.params)}includes(t,e,n){n=za(n,{relative:this.$current});const r=w(t)&&Al.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(!y(i))return;if(!y(s[i.name]))return!1;if(!e)return!0;const o=i.parameters({inherit:!0,matchingKeys:e});return sl.equals(o,sl.values(o,e),this.globals.params)}href(t,e,n){n=za(n,{lossy:!0,inherit:!0,absolute:!1,relative:this.$current}),e=e||{};const r=this.stateRegistry.matcher.find(t,n.relative);if(!y(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=al.makeTargetState(this.stateRegistry,r);return _u(e=e||this.transitionService.create(r,i),n)}}class Mu{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 Lu{constructor(){this.params=new Mu,this.lastStartedTransitionId=-1,this.transitionHistory=new Jl([],1),this.successfulTransitions=new Jl([],1)}$get=[()=>this]}const Iu="ngAriaDisable",qu=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],Uu=function(t,e){if(-1!==e.indexOf(t[0].nodeName))return!0};function Hu(){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,Iu))return;const c=a.$normalize(n);!t[c]||Uu(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 Fu(t){return t.$$watchExpr("ngDisabled","aria-disabled",qu,!1)}function Bu(t){return t.$$watchExpr("ngShow","aria-hidden",[],!0)}function zu(){return{restrict:"A",require:"?ngMessages",link(t,e,n){Object.prototype.hasOwnProperty.call(n,Iu)||e.attr("aria-live")||e.attr("aria-live","assertive")}}}function Wu(t,e){return{restrict:"A",compile(n,r){if(Object.prototype.hasOwnProperty.call(r,Iu))return;const i=e(r.ngClick);return function(e,n,r){Uu(n,qu)||(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!==qu.indexOf(t.target.nodeName)||t.target.isContentEditable||t.preventDefault(),e.$apply((function(){i(e,{$event:t})})))})))}}}}function Gu(t){return t.$$watchExpr("ngRequired","aria-required",qu,!1)}function Ku(t){return t.$$watchExpr("ngChecked","aria-checked",qu,!1)}function Qu(t){return t.$$watchExpr("ngValue","aria-checked",qu,!1)}function Ju(t){return t.$$watchExpr("ngHide","aria-hidden",[],!1)}function Zu(t){return t.$$watchExpr("ngReadonly","aria-readonly",qu,!1)}function Yu(t){function e(e,n,r,i){return t.config(n)&&!r.attr(e)&&(i||!Uu(r,qu))&&("hidden"!==r.attr("type")||"INPUT"!==r[0].nodeName)}function n(t,e){return!e.attr("role")&&e.attr("type")===t&&!Uu(e,qu)}return{restrict:"A",require:"ngModel",priority:200,compile(r,i){if(Object.prototype.hasOwnProperty.call(i,Iu))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 Xu(t){return function(e,n,r){Object.prototype.hasOwnProperty.call(r,Iu)||!t.config("tabindex")||n.attr("tabindex")||Uu(n,qu)||n.attr("tabindex",0)}}Fu.$inject=["$aria"],Bu.$inject=["$aria"],Wu.$inject=["$aria","$parse"],Gu.$inject=["$aria"],Ku.$inject=["$aria"],Qu.$inject=["$aria"],Ju.$inject=["$aria"],Zu.$inject=["$aria"],Yu.$inject=["$aria"],Xu.$inject=["$aria"];const th="0.0.70";function eh(t){console.assert(void 0!==t,"angular is %s",t);const e=t.module("ng",[],["$provide",t=>{t.provider({$$sanitizeUri:jo}),t.provider("$compile",ln).directive({input:rr,textarea:rr,form:yn,script:ar,select:ur,option:hr,ngBind:pr,ngBindHtml:fr,ngBindTemplate:dr,ngClass:mr,ngClassEven:yr,ngClassOdd:gr,ngCloak:vr,ngController:wr,ngDisabled:Fu,ngForm:vn,ngHide:xr,ngIf:fi,ngInclude:$i,ngInit:gi,ngMessages:fa,ngMessage:ya,ngMessageExp:va,ngMessagesInclude:ga,ngMessageDefault:wa,ngNonBindable:yi,ngRef:wi,ngRepeat:bi,ngShow:Cr,ngStyle:Ei,ngSwitch:Ci,ngSwitchWhen:xi,ngSwitchDefault:Oi,ngOptions:ki,ngTransclude:Ti,ngModel:jn,ngList:ji,ngChange:Ni,pattern:Di,ngPattern:Di,required:Pi,ngRequired:Pi,ngMinlength:Li,minlength:Li,ngMaxlength:Mi,maxlength:Mi,ngValue:or,ngModelOptions:An}).directive({input:ir,ngChecked:Ku,ngClick:Wu,ngDblclick:Xu,ngInclude:mi,ngHide:Ju,ngShow:Bu,ngMessages:zu,ngModel:Yu,ngReadonly:Zu,ngRequired:Gu,ngValue:Qu}).directive(Vi).directive(en),t.provider({$aria:Hu,$anchorScroll:Ui,$animate:di,$animateCss:Wi,$$animateQueue:hi,$$AnimateRunner:Yi,$$animateAsyncRun:Gi,$browser:zi,$cacheFactory:ts,$controller:Ae,$exceptionHandler:rs,$filter:hs,$interpolate:Fs,$interval:ws,$$intervalFactory:Bs,$http:co,$httpParamSerializer:eo,$httpParamSerializerJQLike:no,$httpBackend:lo,$location:go,$log:xo,$parse:Vs,$rootScope:qe,$q:ps,$$q:ds,$sce:tn,$sceDelegate:Xe,$$taskTrackerFactory:Oo,$templateCache:es,$templateRequest:ko,$timeout:To})}]).info({version:th});return function(t){t.module("ngAnimate",[]).directive("ngAnimateSwap",Mo).directive("ngAnimateChildren",No).factory("$$rAFScheduler",Do).provider("$$animateQueue",qo).provider("$$animateCache",zo).provider("$$animation",Po).provider("$animateCss",ra).provider("$$animateCssDriver",la).provider("$$animateJs",pa).provider("$$animateJsDriver",da)}(t),function(t){t.module("ng.router",["ng"]).provider("$urlConfig",Ml).provider("$routerGlobals",Lu).provider("$view",Ll).provider("$transitions",Vu).provider("$state",Du).provider("$ngViewScroll",Uc).provider("$templateFactory",Lc).provider("$urlService",Ql).provider("$stateRegistry",Tl).factory("$stateParams",["$routerGlobals",function(t){return t.params}]).value("$trace",Nc).filter("isState",Hc).filter("includedByState",Fc).directive("ngSref",Jc).directive("ngSrefActive",Yc).directive("ngSrefActiveEq",Yc).directive("ngState",Zc).directive("ngView",Nl).directive("ngView",Rl).run(Vc).run(Rc)}(t),e}const nh=ht("ng"),rh=ht("$injector"),ih={};const sh=new class{constructor(){yt.clear(),this.cache=yt,this.version=th,this.element=_t,this.bootsrappedModules=[],this.doBootstrap,eh(this)}errorHandlingConfig(t){return ut(t)}bootstrap(t,e,n){n=n||{strictDi:!1},this.doBootstrap=function(){const r=_t(t);if(r.injector())throw nh("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=we(this.bootsrappedModules,n.strictDi);return i.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){t.$apply((()=>{e.data("$injector",r),n(e)(t)}))}]),i};const r=/^NG_DEFER_BOOTSTRAP!/;if(window&&!r.test(window.name))return this.doBootstrap();window.name=window.name.replace(r,""),this.resumeBootstrap=function(t){return Array.isArray(t)&&t.forEach((t=>e.push(t))),this.doBootstrap()}}injector(t,e){return we(t,e)}resumeBootstrap(t){return N(t,(t=>{this.bootsrappedModules.push(t)})),this.doBootstrap()}init(t){let e,n;const r={};it.forEach((r=>{const i=`${r}app`;t.hasAttribute&&t.hasAttribute(i)&&(e=t,n=t.getAttribute(i))})),it.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=it.length;for(r=0;r<i;++r)if(n=it[r]+e,w(n=t.getAttribute(n)))return n;return null}(e,"strict-di"),this.bootstrap(e,n?[n]:[],r))}module(t,e,n){return W(t,"module"),e&&Object.prototype.hasOwnProperty.call(ih,t)&&(ih[t]=null),function(t,e,n){return t[e]||(t[e]=n())}(ih,t,(()=>{if(!e)throw rh("nomod","Module '{0}' is not available. Possibly misspelled or not loaded",t);return new te(t,e,n)}))}};window.angular=sh,"complete"===document.readyState?sh.init(document):document.addEventListener("DOMContentLoaded",(()=>{sh.init(document)})),t.angular=sh}));