@angular-wave/angular.ts 0.6.3 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/dist/angular-ts.esm.js +2 -2
  2. package/dist/angular-ts.umd.js +2 -2
  3. package/package.json +1 -1
  4. package/src/angular.spec.js +2 -2
  5. package/src/animations/animate-children-directive.js +1 -1
  6. package/src/animations/animate-css-driver.js +2 -2
  7. package/src/animations/animate-css.js +1 -1
  8. package/src/animations/animate-js.js +1 -1
  9. package/src/animations/animate-queue.js +2 -2
  10. package/src/animations/animate.js +2 -2
  11. package/src/animations/animate.spec.js +3 -3
  12. package/src/animations/animation.js +2 -2
  13. package/src/binding.spec.js +1 -1
  14. package/src/core/cache/cache.js +1 -1
  15. package/src/core/compile/attributes.js +3 -3
  16. package/src/core/compile/compile.js +13 -140
  17. package/src/core/compile/compile.md +0 -8
  18. package/src/core/compile/compile.spec.js +35 -639
  19. package/src/core/controller/controller.js +1 -1
  20. package/src/core/di/injector.js +1 -1
  21. package/src/core/di/injector.spec.js +1 -1
  22. package/src/core/di/internal-injector.js +1 -1
  23. package/src/core/di/ng-module.js +1 -1
  24. package/src/core/filter/filter.js +1 -1
  25. package/src/core/interpolate/interpolate.js +1 -1
  26. package/src/core/interval/interval-factory.js +1 -1
  27. package/src/core/interval/interval.js +1 -1
  28. package/src/core/location/location.js +3 -3
  29. package/src/core/on.spec.js +1 -1
  30. package/src/core/parse/interpreter.js +1 -1
  31. package/src/core/prop.spec.js +2 -2
  32. package/src/core/q/q.js +1 -1
  33. package/src/core/root-element.spec.js +1 -1
  34. package/src/core/sanitize/sanitize-uri.js +1 -1
  35. package/src/core/sce/sce.js +2 -2
  36. package/src/core/sce/sce.spec.js +1 -1
  37. package/src/core/scope/scope.js +1 -1
  38. package/src/core/scope/scope.spec.js +1 -1
  39. package/src/core/timeout/timeout.js +1 -1
  40. package/src/core/url-utils/url-utils.js +1 -1
  41. package/src/directive/aria/aria.js +1 -1
  42. package/src/directive/aria/aria.spec.js +1 -1
  43. package/src/directive/attrs/attrs.js +3 -3
  44. package/src/directive/attrs/attrs.spec.js +1 -1
  45. package/src/directive/attrs/boolean.spec.js +1 -1
  46. package/src/directive/attrs/element-style.spec.js +1 -1
  47. package/src/directive/attrs/src.spec.js +1 -1
  48. package/src/directive/bind/bind.js +1 -1
  49. package/src/directive/bind/bind.spec.js +1 -1
  50. package/src/directive/bind/bing-html.spec.js +1 -1
  51. package/src/directive/change/change.spec.js +1 -1
  52. package/src/directive/class/class.js +1 -1
  53. package/src/directive/class/class.spec.js +2 -2
  54. package/src/directive/cloak/cloak.spec.js +1 -1
  55. package/src/directive/controller/controller.spec.js +2 -2
  56. package/src/directive/events/click.spec.js +1 -1
  57. package/src/directive/events/event.spec.js +1 -1
  58. package/src/directive/events/events.js +2 -2
  59. package/src/directive/form/form.js +2 -2
  60. package/src/directive/form/form.spec.js +1 -1
  61. package/src/directive/if/if.js +2 -3
  62. package/src/directive/if/if.md +0 -1
  63. package/src/directive/if/if.spec.js +2 -2
  64. package/src/directive/include/include.js +3 -3
  65. package/src/directive/include/include.spec.js +2 -2
  66. package/src/directive/init/init.spec.js +1 -1
  67. package/src/directive/input/input.js +1 -1
  68. package/src/directive/input/input.spec.js +1 -1
  69. package/src/directive/messages/messages.js +1 -1
  70. package/src/directive/messages/messages.spec.js +3 -3
  71. package/src/directive/model/model.js +6 -6
  72. package/src/directive/model/model.spec.js +2 -2
  73. package/src/directive/model-options/model-options.js +1 -1
  74. package/src/directive/model-options/model-options.spec.js +2 -2
  75. package/src/directive/non-bindable/non-bindable.spec.js +1 -1
  76. package/src/directive/observe/observe.spec.js +1 -1
  77. package/src/directive/options/options.js +6 -2
  78. package/src/directive/options/options.spec.js +2 -2
  79. package/src/directive/ref/href.spec.js +2 -2
  80. package/src/directive/ref/ref.js +1 -1
  81. package/src/directive/repeat/repeat.js +263 -255
  82. package/src/directive/repeat/repeat.md +0 -22
  83. package/src/directive/repeat/repeat.spec.js +2 -115
  84. package/src/directive/script/script.spec.js +1 -1
  85. package/src/directive/select/select.js +2 -2
  86. package/src/directive/select/select.spec.js +2 -2
  87. package/src/directive/show-hide/show-hide.js +1 -3
  88. package/src/directive/show-hide/show-hide.md +0 -2
  89. package/src/directive/show-hide/show-hide.spec.js +1 -1
  90. package/src/directive/style/style.spec.js +1 -1
  91. package/src/directive/switch/switch.js +2 -4
  92. package/src/directive/switch/switch.spec.js +1 -51
  93. package/src/directive/transclude/transclude.js +2 -2
  94. package/src/directive/validators/validators.js +2 -2
  95. package/src/directive/validators/validators.spec.js +1 -1
  96. package/src/filters/filter.js +1 -1
  97. package/src/filters/filter.spec.js +2 -2
  98. package/src/filters/filters.js +1 -1
  99. package/src/filters/filters.spec.js +1 -1
  100. package/src/filters/limit-to.js +1 -1
  101. package/src/filters/limit-to.spec.js +1 -1
  102. package/src/filters/order-by.js +1 -1
  103. package/src/index.js +3 -9
  104. package/src/loader.js +10 -5
  105. package/src/router/common/trace.js +1 -1
  106. package/src/router/directives/state-directives.js +1 -1
  107. package/src/router/directives/state-directives.spec.js +1 -1
  108. package/src/router/directives/view-directive.js +2 -2
  109. package/src/router/directives/view-directive.spec.js +1 -1
  110. package/src/router/hooks/redirect-to.js +1 -1
  111. package/src/router/params/param-type.js +1 -1
  112. package/src/router/params/param-types.js +1 -1
  113. package/src/router/params/param.js +1 -1
  114. package/src/router/resolve/resolvable.js +1 -1
  115. package/src/router/resolve/resolve-context.js +1 -1
  116. package/src/router/state/state-builder.js +1 -1
  117. package/src/router/state/state-matcher.js +1 -1
  118. package/src/router/state/state-object.js +1 -1
  119. package/src/router/state/state-queue-manager.js +1 -1
  120. package/src/router/state/state-registry.js +1 -1
  121. package/src/router/state/state-service.js +1 -1
  122. package/src/router/state/state.spec.js +2 -2
  123. package/src/router/state/target-state.js +1 -1
  124. package/src/router/state/views.js +1 -1
  125. package/src/router/state-provider.js +1 -1
  126. package/src/router/template-factory.js +1 -1
  127. package/src/router/template-factory.spec.js +1 -1
  128. package/src/router/transition/hook-registry.js +1 -1
  129. package/src/router/transition/transition-service.js +1 -1
  130. package/src/router/transition/transition.js +1 -1
  131. package/src/router/url/url-config.js +1 -1
  132. package/src/router/url/url-matcher.js +1 -1
  133. package/src/router/url/url-rule.js +1 -1
  134. package/src/router/url/url-rules.js +1 -1
  135. package/src/router/url/url-service.js +6 -1
  136. package/src/router/url/url-service.spec.js +1 -1
  137. package/src/router/view/view.spec.js +1 -1
  138. package/src/router/view-hook.spec.js +1 -1
  139. package/src/router/view-scroll.spec.js +1 -1
  140. package/src/services/anchor-scroll.js +1 -1
  141. package/src/services/browser.js +2 -2
  142. package/src/services/cookie-reader.js +1 -1
  143. package/src/services/http/http.js +2 -2
  144. package/src/services/http/http.spec.js +1 -1
  145. package/src/services/http-backend/http-backend.js +1 -1
  146. package/src/services/log.js +1 -1
  147. package/src/services/template-request.js +1 -1
  148. package/src/shared/common.js +1 -1
  149. package/src/shared/jqlite/jqlite.js +9 -9
  150. package/src/shared/jqlite/jqlite.spec.js +11 -11
  151. package/src/shared/min-err.spec.js +6 -1
  152. package/src/shared/predicates.js +1 -1
  153. package/src/shared/strings.js +1 -1
  154. package/src/shared/test-utils.js +1 -1
  155. package/src/shared/utils.js +1 -1
  156. package/src/shared/utils.spec.js +1 -1
  157. package/src/types.js +0 -2
  158. package/types/animations/animate-css-driver.d.ts +1 -1
  159. package/types/animations/animate.d.ts +1 -1
  160. package/types/core/cache/cache.d.ts +1 -1
  161. package/types/core/compile/attributes.d.ts +2 -2
  162. package/types/core/compile/compile.d.ts +1 -1
  163. package/types/core/location/location.d.ts +1 -1
  164. package/types/directive/model/model.d.ts +1 -1
  165. package/types/directive/repeat/repeat.d.ts +0 -1
  166. package/types/loader.d.ts +2 -0
  167. package/types/services/browser.d.ts +1 -1
  168. package/types/shared/jqlite/jqlite.d.ts +1 -1
  169. package/types/shared/test-utils.d.ts +1 -1
  170. package/types/types.d.ts +1 -5
@@ -1,2 +1,2 @@
1
- /* Version: 0.6.3 - March 4, 2025 01:51:25 */
2
- const t="ng-valid",e="ng-invalid",n="ng-pristine",r="ng-dirty",i="ng-untouched",s="ng-touched",o="ng-empty",a="ng-not-empty",c=/^((?:x|data)[-])/i,l=/[-]+(.)/g,u={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"},h=ct("ng");let d=0;function p(){return d+=1,d}function f(t){return y(t)?t.toLowerCase():t}function $(t){if(null==t||S(t))return!1;if(Array.isArray(t)||t instanceof Array||y(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 m(t){return void 0===t}function g(t){return void 0!==t}function v(t){return null!==t&&"object"==typeof t}function y(t){return"string"==typeof t}function b(t){return"number"==typeof t}function w(t){return"[object Date]"===toString.call(t)}function E(t){switch(toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function C(t){return"function"==typeof t}function O(t){return"[object RegExp]"===toString.call(t)}function S(t){return t&&t.window===t}function x(t){return t&&t.$evalAsync&&t.$watch}function A(t){return"boolean"==typeof t}function k(t){return t&&C(t.then)}function _(t){return y(t)?t.trim():t}function T(t,e){const n=e;return t.replace(/[A-Z]/g,((t,e)=>(e?n:"")+t.toLowerCase()))}function j(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)&&!C(r))continue;const i=Object.keys(r);for(let e=0,n=i.length;e<n;e++){const n=i[e],s=r[n];t[n]=s}}return function(t,e){e?t.$$hashKey=e:delete t.$$hashKey}(t,r),t}(t,e)}function N(t){return parseInt(t,10)}function V(t){return Number.isNaN(t)}function R(t,e){return j(Object.create(t),e)}function P(t){return function(){return t}}function D(t){return C(t.toString)&&t.toString!==toString}function M(t){return!(!t||!(t.nodeName||t.attr&&t.find))}function L(t){return f(t.nodeName||t[0]&&t[0].nodeName)}function I(t,e){return-1!==Array.prototype.indexOf.call(t,e)}function U(t,e){const n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function q(t,e){return t===e||t!=t&&e!=e}function H(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(w(t))return!!w(e)&&q(t.getTime(),e.getTime());if(O(t))return!!O(e)&&t.toString()===e.toString();if(x(t)||x(e)||S(t)||S(e)||Array.isArray(e)||w(e)||O(e))return!1;for(i in s=Object.create(null),t)if("$"!==i.charAt(0)&&!C(t[i])){if(!H(t[i],e[i]))return!1;s[i]=!0}for(i in e)if(!(i in s)&&"$"!==i.charAt(0)&&g(e[i])&&!C(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(!H(t[i],e[i]))return!1;return!0}}return!1}function F(t,e){if("hasOwnProperty"===t)throw h("badname","hasOwnProperty is not a valid {0} name",e)}function B(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=`${t}`;break;default:t=!D(t)||Array.isArray(t)||w(t)?Y(t):t.toString()}return t}function z(t,e,n){return t.concat(Array.prototype.slice.call(e,n))}function W(t,e){return Array.prototype.slice.call(t,e||0)}function G(t,e){const n=arguments.length>2?W(arguments,2):[];return!C(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,z(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function K(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":x(e)&&(n="$SCOPE"),n}function Y(t,e){if(!m(t))return b(e)||(e=e?2:null),JSON.stringify(t,K,e)}function Q(t,e,n){const r=t.getTimezoneOffset(),i=function(t,e){const n=Date.parse(`Jan 01, 1970 00:00:00 ${t}`)/6e4;return V(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 Z(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=J(r),g(r)&&(i=!g(i)||J(i),Object.hasOwnProperty.call(e,r)?Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i))})),e}function J(t){try{return decodeURIComponent(t)}catch(t){}}function X(t){return tt(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function tt(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 et=["ng-","data-ng-"];function nt(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 rt(t,e="Assertion failed"){if(!t)throw new Error(e)}function it(t,e,n){if(!t)throw h("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function st(t,e,n){return n&&Array.isArray(t)&&(t=t[t.length-1]),it(C(t),e,`not a function, got ${t&&"object"==typeof t?t.constructor.name||"Object":typeof t}`),t}const ot={objectMaxDepth:5,urlErrorParamsEnabled:!0};function at(t){var e;return v(t)&&(g(t.objectMaxDepth)&&(ot.objectMaxDepth=b(e=t.objectMaxDepth)&&e>0?t.objectMaxDepth:NaN),g(t.urlErrorParamsEnabled)&&A(t.urlErrorParamsEnabled)&&(ot.urlErrorParamsEnabled=t.urlErrorParamsEnabled)),ot}function ct(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=W(n,2).map((t=>lt(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}`,at().urlErrorParamsEnabled)for(l=0,c="?";l<a.length;l++,c="&")o+=`${c}p${l}=${encodeURIComponent(a[l])}`;return new Error(o)}}function lt(t){if("function"==typeof t)return t.toString().replace(/ \{[\s\S]*$/,"");if(m(t))return"undefined";if("string"!=typeof t){const e=[];let n=structuredClone(t);return JSON.stringify(n,((t,n)=>{const r=K(t,n);if(v(r)){if(e.indexOf(r)>=0)return"...";e.push(r)}return r}))}return t}function ut(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}:${p()}`,t.$$hashKey):`${n}:${t}`}function ht(t,e){return t||e?t?e?(Array.isArray(t)&&(t=t.join(" ")),Array.isArray(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function dt(t){return t.replace(c,"").replace(l,((t,e,n)=>n?e.toUpperCase():e))}function pt(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 ft="ng",$t=new Map;let mt=1;const gt=/-([a-z])/g,vt=/_([a-z])/g,yt={mouseleave:"mouseout",mouseenter:"mouseover"},bt=ct("jqLite"),wt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Et=/<([\w:-]+)/,Ct={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};Ct.tbody=Ct.tfoot=Ct.colgroup=Ct.caption=Ct.thead,Ct.th=Ct.td;const Ot={};"multiple,selected,checked,disabled,readOnly,required,open".split(",").forEach((t=>{Ot[f(t)]=t}));const St={};function xt(t){if(t instanceof xt)return t;let e=!1;if(y(t)&&(t=t.trim(),e=!0),!(this instanceof xt)){if(e&&"<"!==t.charAt(0))throw bt("nosel","Looking up elements via selectors is not supported by JQLite! See: http://docs.angularjs.org/api/angular.element");return new xt(t)}if(e){Lt(this,function(t){let e=wt.exec(t);if(e)return[document.createElement(e[1])];let n=Rt(t);if(n)return n.childNodes;return[]}(t))}else C(t)?function(t){function e(){document.removeEventListener("DOMContentLoaded",e),t()}"complete"===document.readyState?setTimeout(t):document.addEventListener("DOMContentLoaded",e)}(t):Lt(this,t)}function At(t,e){return e.toUpperCase()}function kt(t){return t.replace(gt,At)}function _t(t){return t.replace(vt,At)}function Tt(t,e){const n=t[ft],r=n&&$t.get(n);r&&(e?delete r.data[e]:r.data={},Dt(t))}function jt(t,e=!1){let n=t[ft],r=n&&$t.get(n);return e&&!r&&(t[ft]=n=++mt,r={events:{},data:{},handle:null},$t.set(n,r)),r}function Nt(t){return!/<|&#?\w+;/.test(t)}function Vt(t){switch(t.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_NODE:case void 0:return!0;default:return!1}}function Rt(t){let e,n,r,i,s=document.createDocumentFragment(),o=[];if(Nt(t))o.push(document.createTextNode(t));else{for(e=s.appendChild(document.createElement("div")),n=(Et.exec(t)||["",""])[1].toLowerCase(),r=Ct[n]||[],i=r.length;--i>-1;)e.appendChild(document.createElement(r[i])),e=e.firstChild;e.innerHTML=t,o=z(o,e.childNodes),e=s.firstChild,e.textContent=""}let a=document.createDocumentFragment();return a.append(...o),a}function Pt(t,e){t&&(!e&&Vt(t)&&Gt([t]),t.querySelectorAll&&Gt(t.querySelectorAll("*")))}function Dt(t){const e=t[ft],{events:n,data:r}=$t.get(e);r&&Object.keys(r).length||n&&Object.keys(n).length||($t.delete(e),t[ft]=void 0)}function Mt(t,e,n){if(Vt(t)){let r;const i=g(n),s=!i&&e&&!v(e),o=!e,a=jt(t,!s),c=a&&a.data;if(i)c[kt(e)]=n;else{if(o)return c;if(s)return c&&c[kt(e)];for(r in e)c[kt(r)]=e[r]}}}function Lt(t,e){if(!e)return;if(e.nodeType)return void(t[t.length++]=e);const n=e.length;if("number"==typeof n&&e.window!==e)for(let r=0;r<n;r++)t[t.length++]=e[r];else t[t.length++]=e}function It(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(g(n=Mt(t,r[e])))return n;t=t.parentNode||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host}}function Ut(t,e=!1){e||Pt(t);const n=t.parentNode;n&&n.removeChild(t)}function qt(t,e){return function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};let i=e[r||n.type];const s=i?i.length:0;if(!s)return;if(m(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||Ht;s>1&&(i=nt(i));for(let e=0;e<s;e++)n.isImmediatePropagationStopped()||o(t,n,i[e])}}function Ht(t,e,n){n.call(t,e)}function Ft(t,e,n){const r=e.relatedTarget;r&&(r===t||t.contains(r))||n.call(t,e)}function Bt(t){const e=xt(t)[0].cloneNode(!0),n=xt(e).empty(),r=xt("<div></div>").append(n[0]).html();try{return n[0].nodeType===Node.TEXT_NODE?f(r):r.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,(function(t,e){return"<"+f(e)}))}catch(t){return f(r)}}function zt(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 xt(r||t)}function Wt(t,e){const n=Ot[e.toLowerCase()];return n&&St[L(t)]&&n}function Gt(t){for(let e=0,n=t.length;e<n;e++){const n=($t.get(t[e][ft])||{}).events;n&&n.$destroy&&xt(t[e]).triggerHandler("$destroy"),Tt(t[e]),xt.prototype.off.call(xt(t[e]))}}"input,select,option,textarea,button,form,details".split(",").forEach((t=>{St[t]=!0})),xt.prototype={toString(){const t=[];for(var e=0;e<this.length;e++)t.push(`${this[e]}`);return`[${t.join(", ")}]`},eq(t){return xt(t>=0?this[t]:this[this.length+t])},length:0},xt.prototype.elements=function(){let t=[];for(let e=0;e<this.length;e++)t.push(this[e]);return t},xt.prototype.empty=function(){for(let t=0;t<this.length;t++){const e=this[t];Pt(e,!0),[Node.ELEMENT_NODE,Node.DOCUMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(e.nodeType)&&e.replaceChildren()}return this},xt.prototype.scope=function(){return Mt(this[0],"$scope")||It(this[0].parentNode||this[0],["$isolateScope","$scope"])},xt.prototype.isolateScope=function(){return Mt(this[0],"$isolateScope")||Mt(this[0],"$isolateScopeNoTemplate")},xt.prototype.controller=function(t){return function(t,e){return It(t,`$${e||"ngController"}Controller`)}(this[0],t)},xt.prototype.injector=function(){return It(this[0],"$injector")},xt.prototype.on=function(t,e){for(let n=0;n<this.length;n++){const r=this[n];if(!Vt(r))return;const i=jt(r,!0);i.handle||(i.handle=qt(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],yt[t]?(a(yt[t],Ft),a(t,void 0,!0)):a(t)}return this},xt.prototype.off=function(t,e){for(let n=0;n<this.length;n++){const r=this[n],i=jt(r),s=i&&i.events,o=i&&i.handle;if(!o)return;if(t){const n=function(t){const n=s[t];g(e)&&Array.isArray(n)&&U(n,e),g(e)&&n&&n.length>0||(r.removeEventListener(t,o),delete s[t])};t.split(" ").forEach((t=>{n(t),yt[t]&&n(yt[t])}))}else for(t in s)"$destroy"!==t&&r.removeEventListener(t,o),delete s[t];Dt(r)}return this},xt.prototype.removeData=function(t){for(let e=0;e<this.length;e++){Tt(this[e],t)}return this},xt.prototype.inheritedData=function(t,e){for(let n=0;n<this.length;n++){let n=It(this[0],t,e);return e?this:n}},xt.prototype.html=function(t){const e=this[0];if(e)return m(t)?e.innerHTML:(Pt(e,!0),e.innerHTML=t,this)},xt.prototype.text=function(t){let e="";for(let n=0;n<this.length;n++){const r=this[n];if(m(t)){const{nodeType:t}=r;e+=t===Node.ELEMENT_NODE||t===Node.TEXT_NODE?r.textContent:""}else r.textContent=t}return m(t)?e:this},xt.prototype.val=function(t){for(let e=0;e<this.length;e++){const n=this[e];if(m(t)){if(n.multiple&&"select"===L(n)){const t=[];return Array.from(n.options).forEach((e=>{e.selected&&t.push(e.value||e.text)})),t}return n.value}return n.value=t,this}},xt.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=f(t),a=Ot[o];if(v(t))for(let e in t)r.setAttribute(e,a?o:t[e]);else{if(!g(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(g(e)||v(t))return this},xt.prototype.data=function(t,e){let n;const r=this.length;if(m(e)){if(v(t)){for(n=0;n<r;n++)Mt(this[n],t);return this}const i=m(e)?Math.min(r,1):r;for(let n=0;n<i;n++){const r=Mt(this[n],t,e);e=e?e+r:r}return e}for(n=0;n<r;n++)Mt(this[n],t,e);return this},xt.prototype.replaceWith=function(t){let e,n=function(t,e){let n;const r=t.parentNode;Pt(t);const i=new xt(e);for(let e=0;e<i.length;e++){const s=i[e];n?r.insertBefore(s,n.nextSibling):r.replaceChild(s,t),n=s}};for(let r=0;r<this.length;r++)Lt(e,n(this[r],t));return g(e)?e:this},xt.prototype.children=function(){let t;for(let n=0;n<this.length;n++)t=xt((e=this[n],Array.from(e.childNodes).filter((t=>t.nodeType===Node.ELEMENT_NODE))));var e;return g(t)?t:this},xt.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 xt(t);for(let t=0;t<i.length;t++){const e=i[t];n.appendChild(e)}}return this},xt.prototype.prepend=function(t){for(let e=0;e<this.length;e++){const n=this[e];if(n.nodeType===Node.ELEMENT_NODE){const e=n.firstChild,r=new xt(t);for(let t=0;t<r.length;t++)n.insertBefore(r[t],e)}}return this},xt.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 xt(t);for(let t=0,n=e.length;t<n;t++){const n=e[t];i.insertBefore(n,r.nextSibling),r=n}}}return this},xt.prototype.remove=function(t=!1){for(let e=0;e<this.length;e++){Ut(this[e],t)}return this},xt.prototype.detach=function(){for(let t=0;t<this.length;t++){Ut(this[t],!0)}return this},xt.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++)m(t)?(t=e(this[n]),g(t)&&(t=xt(t))):Lt(t,e(this[n]));return g(t)?t:this},xt.prototype.find=function(t){let e;for(let n=0,r=this.length;n<r;n++){const r=this[n];m(e)?(e=r.getElementsByTagName?r.getElementsByTagName(t):[],g(e)&&(e=xt(e))):r.getElementsByTagName&&Lt(e,r.getElementsByTagName(t))}return g(e)?e:this},xt.prototype.triggerHandler=function(t,e){let n,r=function(t,e,n){let r,i,s;const o=e.type||e,a=jt(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=j(r,e)),i=nt(l),s=n?[r].concat(n):[r],i.forEach((e=>{r.isImmediatePropagationStopped()||e.apply(t,s)})))};for(let i=0,s=this.length;i<s;i++)m(n)?r(this[i],t,e):Lt(n,r(this[i],t,e));return g(n)?n:this};const Kt="$provide",Yt="$injector",Qt="$compileProvider";class Zt{constructor(t,e,n){rt(y(t),"name required"),rt(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 g(t)?(rt(v(t),"module info value must be an object"),this.infoState=t,this):this.infoState}value(t,e){return this.invokeQueue.push([Kt,"value",[t,e]]),this}constant(t,e){return this.invokeQueue.unshift([Kt,"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&&C(e)&&(e.$$moduleName=t),this.invokeQueue.push([Qt,"component",[t,e]]),this}factory(t,e){return e&&C(e)&&(e.$$moduleName=t),this.invokeQueue.push([Kt,"factory",[t,e]]),this}service(t,e){return e&&C(e)&&(e.$$moduleName=t),this.invokeQueue.push([Kt,"service",[t,e]]),this}provider(t,e){return e&&C(e)&&(e.$$moduleName=t),this.invokeQueue.push([Kt,"provider",[t,e]]),this}decorator(t,e){return e&&C(e)&&(e.$$moduleName=t),this.configBlocks.push([Kt,"decorator",[t,e]]),this}directive(t,e){return e&&C(e)&&(e.$$moduleName=t),this.invokeQueue.push([Qt,"directive",[t,e]]),this}animation(t,e){return e&&C(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$animateProvider","register",[t,e]]),this}filter(t,e){return e&&C(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$filterProvider","register",[t,e]]),this}controller(t,e){return e&&C(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$controllerProvider","register",[t,e]]),this}}const Jt=/^([^(]+?)=>/,Xt=/^[^(]*\(\s*([^)]*)\)/m,te=/,/,ee=/^\s*(_?)(\S+?)\1\s*$/,ne=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,re=ct(Yt),ie="Provider",se=!0;class oe{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]===se)throw re("cdep","Circular dependency found: {0}",`${t} <- ${this.path.join(" <- ")}`);return this.cache[t]}this.path.unshift(t),this.cache[t]=se;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 re("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=function(t){const e=le(t).replace(ne,""),n=e.match(Jt)||e.match(Xt);return n}(t),i[1].split(te).forEach((function(t){t.replace(ee,(function(t,e,n){r.push(n)}))}))}t.$inject=r}}else Array.isArray(t)?(s=t.length-1,st(t[s],"fn"),r=t.slice(0,s)):st(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 re("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(le(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 ae extends oe{constructor(t,e){super(e),this.cache=t}factory(t){throw this.path.push(t),re("unpr","Unknown provider: {0}",this.path.join(" <- "))}}class ce extends oe{constructor(t,e){super(t),this.providerInjector=e,this.modules=this.providerInjector.modules}factory(t){const e=this.providerInjector.get(t+ie);return this.invoke(e.$get,e,void 0,t)}has(t){const e=Object.prototype.hasOwnProperty.call(this.providerInjector.cache,t+ie),n=Object.prototype.hasOwnProperty.call(this.cache,t);return e||n}}function le(t){return Function.prototype.toString.call(t)}const ue=/^([^(]+?)=>/,he=/^[^(]*\(\s*([^)]*)\)/m,de=/,/,pe=/^\s*(_?)(\S+?)\1\s*$/,fe=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,$e=ct(Yt),me="Provider";function ge(t,e=!1){rt(Array.isArray(t),"modules required");const n=new Map,r={$provide:{provider:be(c),factory:be(l),service:be((function(t,e){return l(t,[Yt,t=>t.instantiate(e)])})),value:be((function(t,e){return r[t+me]={$get:()=>e}})),constant:be((function(t,e){F(t,"constant"),i.cache[t]=e,s.cache[t]=e})),decorator:function(t,e){const n=i.get(t+me),r=n.$get;n.$get=function(){const t=o.invoke(r,n);return o.invoke(e,null,{$delegate:t})}}}},i=r.$injector=new ae(r,e),s=new ce(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(F(t,"service"),n=C(e)||Array.isArray(e)?i.instantiate(e):e,!n.$get)throw $e("pget","Provider '{0}' must define $get factory method.",t);return r[t+me]=n,n}function l(t,e){return c(t,{$get:()=>{const n=o.invoke(e,this);if(m(n))throw $e("undef","Provider '{0}' must return a value from $get factory method.",t);return n}})}function u(t){it(m(t)||Array.isArray(t),"modulesToLoad","not an array");let e=[];return t.forEach((t=>{if(!n.get(t)){n.set(t,!0);try{if(y(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 C(t)||Array.isArray(t)?e.push(i.invoke(t)):st(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}`),$e("modulerr","Failed to instantiate module {0} due to:\n{1}",t,e.stack||e.message||e)}}})),e}}function ve(t){const e=function(t){return Function.prototype.toString.call(t)}(t).replace(fe,"");return e.match(ue)||e.match(he)}function ye(t,e,n){let r,i,s;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw $e("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=ve(t),i[1].split(de).forEach((function(t){t.replace(pe,(function(t,e,n){r.push(n)}))}))}t.$inject=r}}else Array.isArray(t)?(s=t.length-1,st(t[s],"fn"),r=t.slice(0,s)):st(t,"fn",!0);return r}function be(t){return function(e,n){if(!v(e))return t(e,n);Object.entries(e).forEach((([e,n])=>{t(e,n)}))}}const we=ct("$controller"),Ee=/^(\S+)(\s+as\s+([\w$]+))?$/;function Ce(t,e){if(y(t)){const e=Ee.exec(t);if(e)return e[3]}}class Oe{constructor(){this.controllers=new Map}has(t){return this.controllers.has(t)}register(t,e){F(t,"controller"),v(t)?Object.entries(t).forEach((([t,e])=>{this.controllers.set(t,e)})):this.controllers.set(t,e)}$get=["$injector",t=>(e,n,r,i)=>{let s,o,a,c=i&&y(i)?i:null;if(r=!0===r,y(e)){if(o=e.match(Ee),!o)throw we("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",e);if(a=o[1],c=c||o[3],!(e=this.controllers.get(a)))throw we("ctrlreg","The controller with the name '{0}' is not registered.",a);st(e,a,!0)}if(r){const r=(Array.isArray(e)?e[e.length-1]:e).prototype;return s=Object.create(r||null),c&&this.addIdentifier(n,c,s,a||e.name),function(){const r=t.invoke(e,s,n,a);return r!==s&&(v(r)||C(r))&&(s=r,c&&this.addIdentifier(n,c,s,a||e.name)),s}.bind(this,{instance:s,identifier:c})}return s=t.instantiate(e,n,a),c&&this.addIdentifier(n,c,s,a||e.name),s}];addIdentifier(t,e,n,r){if(!t||!v(t.$scope))throw ct("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,e);t.$scope[e]=n}}const Se={NONE:0,APPLY:1,DIGEST:2},xe=ct("$rootScope"),Ae=[],ke=[],_e=[];let Te,je,Ne,Ve=0,Re=null,Pe=null;class De{constructor(){this.rootScope=new Me(!0)}$get=["$exceptionHandler","$parse","$browser",(t,e,n)=>(Ne=t,Te=e,je=n,this.rootScope)]}class Me{constructor(t=!1){this.isRoot=t,this.$id=p(),this.$$phase=Se.NONE,this.$parent=null,this.$root=this,this.$$watchers=[],this.$$digestWatchIndex=-1,this.$$nextSibling=null,this.$$prevSibling=null,this.$$childHead=null,this.$$childTail=null,this.$$destroyed=!1,this.$$suspended=!1,this.$$listeners=new Map,this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}$new(t){let e=t?new Me:Object.create(this);return t?e.$root=this.$root:(e.$id=p(),e.$$watchers=[],e.$$nextSibling=null,e.$$childHead=null,e.$$childTail=null,e.$$listeners=new Map,e.$$listenerCount={},e.$$watchersCount=0,e.$$suspended=!1),e.$parent=this,e.$$prevSibling=e.$parent.$$childTail,e.$parent.$$childHead?(e.$parent.$$childTail.$$nextSibling=e,e.$parent.$$childTail=e):(e.$parent.$$childHead=e,e.$parent.$$childTail=e),t&&e.$on("$destroy",(t=>{t.currentScope.$$destroyed=!0})),e}$transcluded(t){let e=Object.create(this);return e.$id=p(),e.$$watchers=[],e.$$nextSibling=null,e.$$childHead=null,e.$$childTail=null,e.$$listeners=new Map,e.$$listenerCount={},e.$$watchersCount=0,e.$$suspended=!1,e.$parent=t||this,e.$$prevSibling=e.$parent.$$childTail,e.$parent.$$childHead?(e.$parent.$$childTail.$$nextSibling=e,e.$parent.$$childTail=e):(e.$parent.$$childHead=e,e.$parent.$$childTail=e),t!==this&&e.$on("$destroy",(t=>{t.currentScope.$$destroyed=!0})),e}$watch(t,e,n){const r=Te(t),i=C(e)?e:()=>{};if(r.$$watchDelegate)return r.$$watchDelegate(this,i,n,r,t);const s={fn:i,last:Le,get:r,exp:t,eq:!!n};return Re=null,0===this.$$watchers.length&&(this.$$digestWatchIndex=-1),this.$$watchers.unshift(s),this.$$digestWatchIndex++,this.incrementWatchersCount(1),()=>{const t=U(this.$$watchers,s);t>=0&&(this.incrementWatchersCount(-1),t<this.$$digestWatchIndex&&this.$$digestWatchIndex--),Re=null}}$watchGroup(t,e){const n=new Array(t.length),r=new Array(t.length),i=[],s=this;let o=!1,a=!0;if(!t.length){let t=!0;return s.$evalAsync((()=>{t&&e(r,r,s)})),function(){t=!1}}if(1===t.length)return this.$watch(t[0],((t,i,s)=>{r[0]=t,n[0]=i,e(r,t===i?r:n,s)}));function c(){o=!1;try{a?(a=!1,e(r,r,s)):e(r,n,s)}finally{for(let e=0;e<t.length;e++)n[e]=r[e]}}return Object.entries(t).forEach((([t,e])=>{const n=s.$watch(e,(e=>{r[t]=e,o||(o=!0,s.$evalAsync(c))}));i.push(n)})),function(){for(;i.length;)i.shift()()}}$watchCollection(t,e){p.$$pure=Te(t).literal,p.$stateful=!p.$$pure;const n=this;let r,i,s;const o=e.length>1;let a=0;const c=Te(t,p),l=[];let u={},h=!0,d=0;function p(t){let e,n,s,o,c;if(r=t,!m(r)){if(v(r))if($(r)){i!==l&&(i=l,d=i.length=0,a++),e=r.length,d!==e&&(a++,i.length=d=e);for(let t=0;t<e;t++)c=i[t],o=r[t],s=c!=c&&o!=o,s||c===o||(a++,i[t]=o)}else{for(n in i!==u&&(i=u={},d=0,a++),e=0,r)Object.hasOwnProperty.call(r,n)&&(e++,o=r[n],c=i[n],n in i?(s=c!=c&&o!=o,s||c===o||(a++,i[n]=o)):(d++,i[n]=o,a++));if(d>e)for(n in a++,i)Object.hasOwnProperty.call(r,n)||(d--,delete i[n])}else i!==r&&(i=r,a++);return a}}return this.$watch(c,(function(){if(h?(h=!1,e(r,r,n)):e(r,s,n),o)if(v(r))if($(r)){s=new Array(r.length);for(let t=0;t<r.length;t++)s[t]=r[t]}else{s={};for(const t in r)Object.hasOwnProperty.call(r,t)&&(s[t]=r[t])}else s=r}))}$digest(){let t,e,n,r,i,s,o,a,c=10;const l=Ae.length?this.$root:this,u=[];let h,d;this.beginPhase(Se.DIGEST),je.$$checkUrlChange(),this.isRoot&&null!==Pe&&(je.cancel(Pe),Ie(),Pe=null),Re=null;do{s=!1,a=l;for(let t=0;t<Ae.length;t++){try{d=Ae[t],n=d.fn,n(d.scope,d.locals)}catch(t){Ne(t)}Re=null}Ae.length=0;do{if(i=!a.$$suspended&&a.$$watchers)for(a.$$digestWatchIndex=i.length;a.$$digestWatchIndex--;)try{const o=i[a.$$digestWatchIndex];if(o)if(r=o.get,(t=r(a))===(e=o.last)||(o.eq?H(t,e):V(t)&&V(e))){if(o===Re){s=!1;break}}else s=!0,Re=o,o.last=o.eq?structuredClone(t):t,n=o.fn,n(t,e===Le?t:e,a),c<5&&(h=4-c,u[h]||(u[h]=[]),u[h].push({msg:C(o.exp)?`fn: ${o.exp.name||o.exp.toString()}`:o.exp,newVal:t,oldVal:e}))}catch(t){Ne(t)}if(!(o=!a.$$suspended&&a.$$watchersCount&&a.$$childHead||a!==l&&a.$$nextSibling))for(;a!==l&&!(o=a.$$nextSibling);)a=a.$parent}while(a=o);if((s||Ae.length)&&!c--)throw this.clearPhase(),xe("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",10,u)}while(s||Ae.length);for(this.clearPhase();Ve<ke.length;)try{ke[Ve++]()}catch(t){Ne(t)}ke.length=Ve=0,je.$$checkUrlChange()}beginPhase(t){if(this.$root.$$phase!==Se.NONE)throw xe("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&&je.$$applicationDestroyed(),this.incrementWatchersCount(-this.$$watchersCount);for(const t in this.$$listenerCount)this.decrementListenerCount(this.$$listenerCount[t],t);this.$parent&&(this.$parent.$$childHead===this&&(this.$parent.$$childHead=this.$$nextSibling),this.$parent.$$childTail===this&&(this.$parent.$$childTail=this.$$prevSibling)),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$applyAsync=()=>{},this.$evalAsync=()=>{},this.$on=this.$watch=this.$watchGroup=function(){return()=>{}},this.$$listeners.clear(),this.$$nextSibling=null,this.$parent=null,this.$$nextSibling=null,this.$$prevSibling=null,this.$$childHead=null,this.$$childTail=null,this.$root=null,this.$$watchers=null}}$eval(t,e){return Te(t)(this,e)}$evalAsync(t,e){let n;return this.$root.$$phase!==Se.NONE||Ae.length||(n=je.defer((()=>{Ae.length&&this.$root.$digest()}),null,"$evalAsync")),Ae.push({scope:this,fn:Te(t),locals:e}),n}$$postDigest(t){ke.push(t)}$apply(t){try{this.beginPhase(Se.APPLY);try{return this.$eval(t)}finally{this.clearPhase()}}catch(t){Ne(t)}finally{this.retry()}}retry(){try{this.$root.$digest()}catch(t){throw Ne(t),t}}clearPhase(){this.$root.$$phase=Se.NONE}$applyAsync(t){const e=this;t&&_e.push((()=>e.$eval(t))),null===Pe&&(Pe=je.defer(Ie,null,"$applyAsync"))}$on(t,e){let n=this.$$listeners.get(t);n||(n=[],this.$$listeners.set(t,n)),n.push(e);let r=this;do{r.$$listenerCount[t]=(r.$$listenerCount[t]??0)+1}while(r=r.$parent);return()=>{const r=n.indexOf(e);-1!==r&&(delete n[r],this.decrementListenerCount(1,t))}}incrementWatchersCount(t){this.$$watchersCount+=t,this.$parent&&this.$parent.incrementWatchersCount(t)}decrementListenerCount(t,e){let n=this;for(;n;n=n.$parent)void 0!==n.$$listenerCount[e]&&(n.$$listenerCount[e]-=t,0===n.$$listenerCount[e]&&delete n.$$listenerCount[e])}$emit(t,...e){const n=[];let r,i=this,s=!1;const o={name:t,targetScope:i,stopPropagation(){s=!0},preventDefault(){o.defaultPrevented=!0},defaultPrevented:!1},a=z([o],[o].concat(e),1);let c,l;do{for(r=i.$$listeners.get(t)||n,o.currentScope=i,c=0,l=r.length;c<l;c++)if(r[c])try{r[c].apply(null,a)}catch(t){Ne(t)}else r.splice(c,1),c--,l--;if(s)break;i=i.$parent}while(i);return o.currentScope=null,o}$broadcast(t,...e){const n=this;let r=n,i=n;const s={name:t,targetScope:n,preventDefault(){s.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[t])return s;const o=z([s],[s].concat(e),1);let a,c,l;for(;r=i;){for(s.currentScope=r,a=r.$$listeners.get(t)||[],c=0,l=a.length;c<l;c++)if(a[c])try{a[c].apply(null,o)}catch(t){Ne(t)}else a.splice(c,1),c--,l--;if(!(i=r.$$listenerCount[t]&&r.$$childHead||r!==n&&r.$$nextSibling))for(;r&&r!==n&&!(i=r.$$nextSibling);)r=r.$parent}return s.currentScope=null,s}}function Le(){}function Ie(){for(;_e.length;)try{_e.shift()()}catch(t){Ne(t)}Pe=null}const Ue=document.createElement("a"),qe=Fe(window.location.href);let He;function Fe(t){if(!y(t))return t;const e=t;Ue.setAttribute("href",e);let{hostname:n}=Ue;return!("[::1]"===Ue.hostname)&&n.indexOf(":")>-1&&(n=`[${n}]`),{href:Ue.href,protocol:Ue.protocol?Ue.protocol.replace(/:$/,""):"",host:Ue.host,search:Ue.search?Ue.search.replace(/^\?/,""):"",hash:Ue.hash?Ue.hash.replace(/^#/,""):"",hostname:n,port:Ue.port,pathname:"/"===Ue.pathname.charAt(0)?Ue.pathname:`/${Ue.pathname}`}}function Be(t){return ze(t,function(){if(document.baseURI)return document.baseURI;He||(He=document.createElement("a"),He.href=".",He=He.cloneNode(!1));return He.href}())}function ze(t,e){return t=Fe(t),e=Fe(e),t.protocol===e.protocol&&t.host===e.host}Ue.href="http://[::1]";const We=ct("$sce"),Ge={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"};function Ke(t){if("self"===t)return t;if(y(t)){if(t.indexOf("***")>-1)throw We("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 We("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function Ye(){this.SCE_CONTEXTS=Ge;let t=["self"],e=[];this.trustedResourceUrlList=function(e){return arguments.length&&(t=e.map((t=>Ke(t)))),t},this.bannedResourceUrlList=function(t){return arguments.length&&(e=t.map((t=>Ke(t)))),e},this.$get=["$injector","$$sanitizeUri",function(n,r){let i=function(){throw We("unsafe","Attempting to use an unsafe value in a safe context.")};function s(t,e){return"self"===t?ze(e,qe)||Be(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[Ge.HTML]=o(a),c[Ge.CSS]=o(a),c[Ge.MEDIA_URL]=o(a),c[Ge.URL]=o(c[Ge.MEDIA_URL]),c[Ge.JS]=o(a),c[Ge.RESOURCE_URL]=o(c[Ge.URL]),{trustAs:function(t,e){const n=Object.prototype.hasOwnProperty.call(c,t)?c[t]:null;if(!n)throw We("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||m(e)||""===e)return e;if("string"!=typeof e)throw We("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new n(e)},getTrusted:function(n,o){if(null===o||m(o)||""===o)return o;const a=Object.prototype.hasOwnProperty.call(c,n)?c[n]:null;if(a&&o instanceof a)return o.$$unwrapTrustedValue();if(C(o.$$unwrapTrustedValue)&&(o=o.$$unwrapTrustedValue()),n===Ge.MEDIA_URL||n===Ge.URL)return r(o.toString(),n===Ge.MEDIA_URL);if(n===Ge.RESOURCE_URL){if(function(n){const r=Fe(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 We("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",o.toString())}if(n===Ge.HTML)return i();throw We("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(t){return t instanceof a?t.$$unwrapTrustedValue():t}}}]}function Qe(){let t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,n){const r=nt(Ge);r.isEnabled=function(){return t},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,t||(r.trustAs=r.getTrusted=function(t,e){return e},r.valueOf=function(t){return t}),r.parseAs=function(t,n){const i=e(n);return i.literal&&i.constant?i:e(n,(e=>r.getTrusted(t,e)))};const i=r.parseAs,{getTrusted:s}=r,{trustAs:o}=r;return Object.entries(Ge).forEach((([t,e])=>{const n=f(t);r[_t(`parse_as_${n}`)]=function(t){return i(e,t)},r[_t(`get_trusted_${n}`)]=function(t){return s(e,t)},r[_t(`trust_as_${n}`)]=function(t){return o(e,t)}})),r}]}const Ze={},Je={blur:!0,focus:!0};function Xe(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===Se.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=dt(`ng-${t}`);Ze[e]=["$parse","$rootScope","$exceptionHandler",(n,r,i)=>Xe(n,r,i,e,t,Je[t])]}));const tn=ct("$compile"),en=/^\w/,nn=document.createElement("div");class rn{constructor(t,e,n,r,i,s){if(this.$rootScope=t,this.$animate=e,this.$exceptionHandler=n,this.$sce=r,s){const t=Object.keys(s);for(let e=0,n=t.length;e<n;e++){const n=t[e];this[n]=s[n]}}else this.$attr={};this.$$element=i}$normalize=dt;$addClass(t){t&&t.length>0&&this.$animate.addClass(this.$$element,t)}$removeClass(t){t&&t.length>0&&this.$animate.removeClass(this.$$element,t)}$updateClass(t,e){const n=sn(t,e);n&&n.length&&this.$animate.addClass(this.$$element,n);const r=sn(e,t);r&&r.length&&this.$animate.removeClass(this.$$element,r)}$set(t,e,n,r){const i=Wt(this.$$element[0],t),s=u[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=T(t,"-")),"img"===this.$$element[0].nodeName.toLowerCase()&&"srcset"===t&&(this[t]=e=this.sanitizeSrcset(e,"$set('srcset', value)")),!1!==n&&(null===e||m(e)?this.$$element[0].removeAttribute(r):en.test(r)?i&&!1===e?this.$$element[0].removeAttribute(r):this.$$element.attr(r,e):this.setSpecialAttr(this.$$element[0],r,e));const{$$observers:a}=this;a&&a[o]&&a[o].forEach((t=>{try{t(e)}catch(t){this.$exceptionHandler(t)}}))}$observe(t,e){const n=this.$$observers||(this.$$observers=Object.create(null)),r=n[t]||(n[t]=[]);return r.push(e),this.$rootScope.$evalAsync((()=>{r.$$inter||!Object.prototype.hasOwnProperty.call(this,t)||m(this[t])||e(this[t])})),function(){U(r,e)}}setSpecialAttr(t,e,n){nn.innerHTML=`<span ${e}>`;const{attributes:r}=nn.firstChild,i=r[0];r.removeNamedItem(i.name),i.value=n,t.attributes.setNamedItem(i)}sanitizeSrcset(t,e){if(!t)return t;if(!y(t))throw tn("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',e,t.toString());for(var n="",r=_(t),i=/\s/.test(r)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,s=r.split(i),o=Math.floor(s.length/2),a=0;a<o;a++){var c=2*a;n+=this.$sce.getTrustedMediaUrl(_(s[c])),n+=" "+_(s[c+1])}var l=_(s[2*a]).split(/\s/);return n+=this.$sce.getTrustedMediaUrl(_(l[0])),2===l.length&&(n+=" "+_(l[1])),n}}function sn(t,e){let n="";const r=t.split(/\s+/),i=e.split(/\s+/);t:for(let t=0;t<r.length;t++){const e=r[t];for(let t=0;t<i.length;t++)if(e===i[t])continue t;n+=(n.length>0?" ":"")+e}return n}let on=10;const an=ct("$compile"),cn=new Object,ln=["ngIf","ngRepeat"];function un(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 l(t,e,n){const r=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,i=Object.create(null);return Object.entries(t).forEach((([t,s])=>{if((s=s.trim())in a)return void(i[t]=a[s]);const o=s.match(r);if(!o)throw an("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",e,t,s,n?"controller bindings definition":"isolate scope definition");i[t]={mode:o[1][0],collection:"*"===o[2],optional:"?"===o[3],attrName:o[4]||t},o[4]&&(a[s]=i[t])})),i}function u(t,e){const n={isolateScope:null,bindToController:null};if(v(t.scope)&&(!0===t.bindToController?(n.bindToController=l(t.scope,e,!0),n.isolateScope={}):n.isolateScope=l(t.scope,e,!1)),v(t.bindToController)&&(n.bindToController=l(t.bindToController,e,!0)),n.bindToController&&!t.controller)throw an("noctrl","Cannot bind to controller without directive '{0}'s controller.",e);return n}this.directive=function e(i,o){return it(i,"name"),F(i,"directive"),y(i)?(!function(t){const e=t.charAt(0);if(!e||e!==f(e))throw an("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw an("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}(i),it(o,"directiveFactory"),Object.prototype.hasOwnProperty.call(n,i)||(n[i]=[],t.factory(i+r,["$injector","$exceptionHandler",function(t,e){const r=[];return n[i].forEach(((n,o)=>{try{let e=t.invoke(n);C(e)?e={compile:P(e)}:!e.compile&&e.link&&(e.compile=P(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)&&Object.entries(e).forEach((([t,n])=>{const r=n.match(s);n.substring(r[0].length)||(e[t]=r[0]+t)})),e}(e),e.restrict=function(t,e){if(t&&(!y(t)||!/[EA]/.test(t)))throw an("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",t,e);return t||"EA"}(e.restrict,i),e.$$moduleName=n.$$moduleName,r.push(e)}catch(t){e(t)}})),r}])),n[i].push(o)):Object.entries(i).forEach((([t,n])=>e(t,n))),this},this.component=function(t,e){if(!y(t))return Object.entries(t).forEach((([t,e])=>this.component(t,e))),this;const n=e.controller||function(){};function r(t){function r(e){return C(e)||Array.isArray(e)?function(n,r){return t.invoke(e,this,{$element:n,$attrs:r})}:e}const i=e.template||e.templateUrl?e.template:"",s={controller:n,controllerAs:Ce(e.controller)||e.controllerAs||"$ctrl",template:r(i),templateUrl:r(e.templateUrl),transclude:e.transclude,scope:{},bindToController:e.bindings||{},restrict:"E",require:e.require};return Object.entries(e).forEach((([t,e])=>{"$"===t.charAt(0)&&(s[t]=e)})),s}return Object.entries(e).forEach((([t,e])=>{"$"===t.charAt(0)&&(r[t]=e,C(n)&&(n[t]=e))})),r.$inject=["$injector"],this.directive(t,r)},this.aHrefSanitizationTrustedUrlList=function(t){return g(t)?(e.aHrefSanitizationTrustedUrlList(t),this):e.aHrefSanitizationTrustedUrlList()},this.imgSrcSanitizationTrustedUrlList=function(t){return g(t)?(e.imgSrcSanitizationTrustedUrlList(t),this):e.imgSrcSanitizationTrustedUrlList()};let h=!1;this.strictComponentBindingsEnabled=function(t){return g(t)?(h=t,this):h};const d=Object.create(null);this.addPropertySecurityContext=function(t,e,n){const r=`${t.toLowerCase()}|${e.toLowerCase()}`;if(r in d&&d[r]!==n)throw an("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",t,e,d[r],n);return d[r]=n,this},function(){function t(t,e){e.forEach((e=>{d[e.toLowerCase()]=t}))}t(Ge.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),t(Ge.CSS,["*|style"]),t(Ge.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),t(Ge.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),t(Ge.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,l,p,f,$,g,b){let w;function O(){try{if(! --on)throw w=void 0,an("infchng","{0} $onChanges() iterations reached. Aborting!\n",on);$.$apply((()=>{for(let t=0,e=w.length;t<e;++t)try{w[t]()}catch(t){a(t)}w=void 0}))}finally{on++}}const S=e.startSymbol(),k=e.endSymbol(),T="{{"===S&&"}}"===k?t=>t:t=>t.replace(/\{\{/g,S).replace(/}}/g,k),N=/^ng(Attr|Prop|On|Observe)([A-Z].*)$/,V=/^(.+)Start$/;return P;function P(t,e,n,r,i){let s=xt(t),o=D(s,e,s,n,r,i),a=null;return function(t,e,n){if(!s)throw an("multilink","This element has already been linked.");it(t,"scope"),i&&i.needsNewScope&&(t=t.$parent.$new()),n=n||{};let r,{transcludeControllers:c,parentBoundTranscludeFn:l,futureParentElement:u}=n;if(l&&l.$$boundTransclude&&(l=l.$$boundTransclude),a||(a=function(t){const e=t&&t[0];if(!e)return"html";return"foreignobject"!==L(e)&&toString.call(e).match(/SVG/)?"svg":"html"}(u)),"html"!==a)r=xt(nt(a,xt("<div></div>").append(s).html()));else if(e){r=new xt(s.elements().map((t=>t.cloneNode(!0))))}else r=s;if(c)for(const t in c)r.data(`$${t}Controller`,c[t].instance);return e&&e(r,t),o&&o(t,r,r,l),e||(s=o=null),r}}function D(t,e,n,r,i,s){const o=[];let c,l;var u;let h,d,p,f;for(let m=0;m<t.length;m++)c=new rn($,b,a,g),l=I(t[m],[],c,0===m?r:void 0,i),d=(u=l.length?z(l,t[m],c,e,n,null,[],[],s):null)&&u.terminal||!(h=t[m].childNodes)||!h.length?null:D(h,u?(u.transcludeOnThisElement||!u.templateOnThisElement)&&u.transclude:e),(u||d)&&(o.push(m,u,d),p=!0,f=f||u),s=null;return p?function(t,n,r,i){let s,a,c,l,u,h,d,p,$;if(f)for($=new Array(n.length),u=0;u<o.length;u+=3)d=o[u],$[d]=n[d];else $=n;for(u=0,h=o.length;u<h;)c=$[o[u++]],s=o[u++],a=o[u++],s?(l=s.scope?t.$new():t,p=s.transcludeOnThisElement?M(t,s.transclude,i):!s.templateOnThisElement&&i?i:!i&&e?M(t,e):null,s(a,l,c,r,p)):a&&a(t,c.childNodes,void 0,i)}:null}function M(t,e,n){function r(r,i,s,o,a){return r||((r=t.$transcluded(a)).$$transcluded=!0),e(r,i,{parentBoundTranscludeFn:n,transcludeControllers:s,futureParentElement:o})}const i=r.$$slots=Object.create(null);for(const r in e.$$slots)e.$$slots[r]?i[r]=M(t,e.$$slots[r],n):i[r]=null;return r}function I(t,n,r,i,s){const{nodeType:o}=t,a=r.$attr;let l;switch(o){case Node.ELEMENT_NODE:l=t.nodeName.toLowerCase(),Q(n,dt(l),"E",i,s);for(var u,h,d,p,f,$=t.attributes,m=0,g=$&&$.length;m<g;m++){let e,o=!1,l=!1,g=!1,v=!1,y=!1,b=!1;h=(u=$[m]).name,p=u.value,(f=(d=dt(h.toLowerCase())).match(N))?(g="Attr"===f[1],v="Prop"===f[1],y="On"===f[1],b="Observe"===f[1],h=h.replace(c,"").toLowerCase().substring(4+f[1].length).replace(/_(.)/g,((t,e)=>e.toUpperCase()))):(e=d.match(V))&&Z(e[1])&&(o=h,l=`${h.substring(0,h.length-5)}end`,h=h.substring(0,h.length-6)),v||y?(r[d]=p,a[d]=u.name,v?st(t,n,d,h):ot(n,d,h)):b?at(n,h,p):(a[d=dt(h.toLowerCase())]=h,!g&&Object.prototype.hasOwnProperty.call(r,d)||(r[d]=p,Wt(t,d)&&(r[d]=!0)),ct(t,n,p,d,g),Q(n,d,"A",i,s,o,l))}"input"===l&&"hidden"===t.getAttribute("type")&&t.setAttribute("autocomplete","off");break;case Node.TEXT_NODE:!function(t,n){const r=e(n,!0);r&&t.push({priority:0,compile:()=>(t,e)=>{t.$watch(r,(t=>{e[0].nodeValue=t}))}})}(n,t.nodeValue)}return n.sort(tt),n}function U(t,e,n){const r=[];let i=0;if(e&&t.hasAttribute&&t.hasAttribute(e))do{if(!t)throw an("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 xt(r)}function F(t,e,n){return function(r,i,s,o,a){return i=U(i[0],e,n),t(r,i,s,o,a)}}function B(t,e,n,r,i,s){let o;return t?P(e,n,r,i,s):function(){return o||(o=P(e,n,r,i,s),e=n=s=null),o.apply(this,arguments)}}function z(t,e,n,r,i,s,o,c,l){l=l||{};let u,h,d,p,y,w=-Number.MAX_VALUE,{newScopeDirective:E}=l,{controllerDirectives:O}=l,{newIsolateScopeDirective:S}=l,{templateDirective:A}=l,{nonTlbTranscludeDirective:k}=l,N=!1,V=!1,{hasElementTranscludeDirective:R}=l,P=n.$$element=xt(e),D=s,M=r,q=!1,H=!1,z=function(t,r,i,s,l){let u,h,d,p,y,w,A,k,_,T;e===i?(_=n,k=n.$$element):(k=xt(i),_=new rn($,b,a,g,k,n)),y=r,S?p=r.$new(!0):E&&(y=r.$parent),l&&(A=function(t,e,n,r){let i;x(t)||(r=n,n=e,e=t,t=void 0);R&&(i=w);n||(n=R?k.parent():k);if(!r)return l(t,e,i,n,N);{const s=l.$$slots[r];if(s)return s(t,e,i,n,N);if(m(s))throw an("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,Bt(k))}},A.$$boundTransclude=l,A.isSlotFilled=function(t){return!!l.$$slots[t]}),O&&(w=function(t,e,n,r,i,s,o){const a=Object.create(null);for(const c in r){const l=r[c],u={$scope:l===o||l.$$isolateScope?i:s,$element:t,$attrs:e,$transclude:n};let{controller:h}=l;"@"===h&&(h=e[l.name]);const d=f(h,u,!0,l.controllerAs);a[l.name]=d,t.data(`$${l.name}Controller`,d.instance)}return a}(k,_,A,O,p,r,S)),S&&(p.$$isolateBindings=S.$$isolateBindings,T=mt(r,_,p,p.$$isolateBindings,S),T.removeWatches&&p.$on("$destroy",T.removeWatches));for(const t in w){const e=O[t],n=w[t],r=e.$$bindings.bindToController;n.instance=n(),k.data(`$${e.name}Controller`,n.instance),n.bindingInfo=mt(y,_,n.instance,r,e)}for(O&&Object.entries(O).forEach((([t,e])=>{const{require:n}=e;e.bindToController&&!Array.isArray(n)&&v(n)&&j(w[t].instance,K(t,n,k,w))})),w&&Object.values(w).forEach((t=>{const e=t.instance;if(C(e.$onChanges))try{e.$onChanges(t.bindingInfo.initialChanges)}catch(t){a(t)}if(C(e.$onInit))try{e.$onInit()}catch(t){a(t)}C(e.$doCheck)&&(y.$watch((()=>{e.$doCheck()})),e.$doCheck()),C(e.$onDestroy)&&y.$on("$destroy",(()=>{e.$onDestroy()}))})),u=0,h=o.length;u<h;u++)d=o[u],ht(d,d.isolateScope?p:r,k,_,d.require&&K(d.directiveName,d.require,k,w),A);var N=r;for(S&&(S.template||null===S.templateUrl)&&(N=p),t&&t(N,i.childNodes,void 0,l),u=c.length-1;u>=0;u--)d=c[u],ht(d,d.isolateScope?p:r,k,_,d.require&&K(d.directiveName,d.require,k,w),A);w&&Object.values(w).forEach((t=>{const e=t.instance;C(e.$postLink)&&e.$postLink()}))};for(let s=0,l=t.length;s<l;s++){u=t[s];const f=u.$$start,$=u.$$end;if(f&&(P=U(e,f,$)),d=void 0,w>u.priority)break;if(y=u.scope,y&&(u.templateUrl||(v(y)?(et("new/isolated scope",S||E,u,P),S=u):et("new/isolated scope",S,u,P)),E=E||u),h=u.name,!q&&(u.replace&&(u.templateUrl||u.template)||u.transclude&&!ln.includes(u.name))){let e;for(let n=s+1;e=t[n++];)if(e.transclude&&!ln.includes(e.name)||e.replace&&(e.templateUrl||e.template)){H=!0;break}q=!0}if(!u.templateUrl&&u.controller&&(O=O||Object.create(null),et(`'${h}' controller`,O[h],u,P),O[h]=u),y=u.transclude,y)if(N=!0,ln.includes(u.name)||(et("transclusion",k,u,P),k=u),"element"===y)R=!0,w=u.priority,d=P,P=n.$$element=xt(document.createComment("")),e=P[0],lt(i,W(d),e),M=B(H,d,r,w,D&&D.name,{nonTlbTranscludeDirective:k});else{const t=Object.create(null);if(v(y)){d=document.createDocumentFragment();const e=Object.create(null),n=Object.create(null);Object.entries(y).forEach((([r,i])=>{const s="?"===i.charAt(0);i=s?i.substring(1):i,e[i]=r,t[r]=null,n[r]=s})),xt(P[0].childNodes).elements().forEach((r=>{const i=e[dt(L(r))];i?(n[i]=!0,t[i]=t[i]||document.createDocumentFragment(),t[i].appendChild(r)):d.appendChild(r)})),Object.entries(n).forEach((([t,e])=>{if(!e)throw an("reqslot","Required transclusion slot `{0}` was not filled.",t)}));for(const e in t)if(t[e]){const n=xt(t[e].childNodes);t[e]=B(H,n,r)}d=xt(d.childNodes)}else d=e.cloneNode(!0).childNodes;P.empty(),M=B(H,d,r,void 0,void 0,{needsNewScope:u.$$isolateScope||u.$$newScope}),M.$$slots=t}if(u.template)if(V=!0,et("template",A,u,P),A=u,y=C(u.template)?u.template(P,n):u.template,y=T(y),u.replace){if(D=u,d=Nt(y)?[]:dn(nt(u.templateNamespace,_(y))),e=d[0],1!==d.length||e.nodeType!==Node.ELEMENT_NODE)throw an("tplrt","Template for directive '{0}' must have exactly one root element. {1}",h,"");lt(i,P,e);const r={$attr:{}},o=I(e,[],r),a=t.splice(s+1,t.length-(s+1));(S||E)&&Y(o,S,E),t=t.concat(o).concat(a),J(n,r),l=t.length}else P.html(y);if(u.templateUrl)V=!0,et("template",A,u,P),A=u,u.replace&&(D=u),z=X(t.splice(s,t.length-s),P,n,i,N&&M,o,c,{controllerDirectives:O,newScopeDirective:E!==u&&E,newIsolateScopeDirective:S,templateDirective:A,nonTlbTranscludeDirective:k}),l=t.length;else if(u.compile)try{p=u.compile(P,n,M);const t=u.$$originalDirective||u;C(p)?Q(null,G(t,p),f,$):p&&Q(G(t,p.pre),G(t,p.post),f,$)}catch(t){a(t,Bt(P))}u.terminal&&(z.terminal=!0,w=Math.max(w,u.priority))}return z.scope=E&&!0===E.scope,z.transcludeOnThisElement=N,z.templateOnThisElement=V,z.transclude=M,l.hasElementTranscludeDirective=R,z;function Q(t,e,n,r){t&&(n&&(t=F(t,n,r)),t.require=u.require,t.directiveName=h,(S===u||u.$$isolateScope)&&(t=ut(t,{isolateScope:!0})),o.push(t)),e&&(n&&(e=F(e,n,r)),e.require=u.require,e.directiveName=h,(S===u||u.$$isolateScope)&&(e=ut(e,{isolateScope:!0})),c.push(e))}}function K(t,e,n,r){let i;if(y(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 an("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]=K(t,e[s],n,r)}else v(e)&&(i={},Object.entries(e).forEach((([e,s])=>{i[e]=K(t,s,n,r)})));return i||null}function Y(t,e,n){for(let r=0,i=t.length;r<i;r++)t[r]=R(t[r],{$$isolateScope:e,$$newScope:n})}function Q(e,i,s,o,a,c,l){if(i===a)return!1;let h=!1;if(Object.prototype.hasOwnProperty.call(n,i))for(let n,a=t.get(i+r),d=0,p=a.length;d<p;d++)if(n=a[d],(m(o)||o>n.priority)&&-1!==n.restrict.indexOf(s)){if(c&&(n=R(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 Z(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 J(t,e){const n=e.$attr,r=t.$attr;Object.entries(t).forEach((([r,i])=>{"$"!==r.charAt(0)&&(e[r]&&e[r]!==i&&(i.length?i+=("style"===r?";":" ")+e[r]:i=e[r]),t.$set(r,i,!0,n[r]))})),Object.entries(e).forEach((([e,i])=>{Object.prototype.hasOwnProperty.call(t,e)||"$"===e.charAt(0)||(t[e]=i,"class"!==e&&"style"!==e&&(r[e]=n[e]))}))}function X(t,e,n,r,i,s,o,c){let u,h,d=[];const p=e[0],f=t.shift(),$=R(f,{templateUrl:null,transclude:null,replace:null,$$originalDirective:f}),m=C(f.templateUrl)?f.templateUrl(e,n):f.templateUrl,{templateNamespace:g}=f;return e.empty(),l(m).then((a=>{let l,y,b,w;if(a=T(a),f.replace){if(b=Nt(a)?[]:dn(nt(g,_(a))),l=b[0],1!==b.length||l.nodeType!==Node.ELEMENT_NODE)throw an("tplrt","Template for directive '{0}' must have exactly one root element. {1}",f.name,m);y={$attr:{}},lt(r,e,l);const i=I(l,[],y);v(f.scope)&&Y(i,!0),t=i.concat(t),J(n,y)}else l=p,e.html(a);for(t.unshift($),u=z(t,l,n,i,e,f,s,o,c),r&&Object.entries(r).forEach((([t,n])=>{n===l&&(r[t]=e[0])})),h=D(e[0].childNodes,i);d.length;){const t=d.shift(),n=d.shift(),i=d.shift(),s=d.shift();let o=e[0];if(!t.$$destroyed){if(n!==p){const t=n.className;c.hasElementTranscludeDirective&&f.replace||(o=l.cloneNode(!0)),lt(i,xt(n),o);try{""!==t&&o.classList.add(...t.trim().split(" "))}catch(t){}}w=u.transcludeOnThisElement?M(t,u.transclude,s):s,u(h,t,o,r,w)}}d=null})).catch((t=>{E(t)&&a(t)})),function(t,e,n,r,i){let s=i;e.$$destroyed||(d?d.push(e,n,r,s):(u.transcludeOnThisElement&&(s=M(e,u.transclude,i)),u(h,e,n,r,s)))}}function tt(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 et(t,e,n,r){function i(t){return t?` (module: ${t})`:""}if(e)throw an("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",e.name,i(e.$$moduleName),n.name,i(n.$$moduleName),t,Bt(r))}function nt(t,e){switch(t=(t||"html").toLowerCase()){case"svg":case"math":var n=document.createElement("div");return n.innerHTML=`<${t}>${e}</${t}>`,n.childNodes[0].childNodes;default:return e}}function rt(t){return function(t,e){if(!t)return t;if(!y(t))throw an("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',e,t.toString());for(var n="",r=_(t),i=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,s=/\s/.test(r)?i:/(,)/,o=r.split(s),a=Math.floor(o.length/2),c=0;c<a;c++){var l=2*c;n+=g.getTrustedMediaUrl(_(o[l])),n+=" "+_(o[l+1])}var u=_(o[2*c]).split(/\s/);n+=g.getTrustedMediaUrl(_(u[0])),2===u.length&&(n+=" "+_(u[1]));return n}(g.valueOf(t),"ng-prop-srcset")}function st(t,e,n,r){if(o.test(r))throw an("nodomevents","Property bindings for HTML DOM event properties are disallowed");const i=L(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=g.getTrusted.bind(g,s)):a=rt,e.push({priority:100,compile:function(t,e){const i=p(e[n]),s=p(e[n],(t=>g.valueOf(t)));return{pre:function(t,e){function n(){const n=i(t);e[0][r]=a(n)}n(),t.$watch(s,n)}}}})}function ot(t,e,n){t.push(Xe(p,$,a,e,n,!1))}function at(t,e,n){t.push(function(t,e){return{restrict:"A",compile:()=>(n,r)=>{const i=r[0];""===e&&(e=t);const s=kt(e);n[s]||(n[s]=i.getAttribute(t));const o=new MutationObserver((e=>{const r=e[0].target.getAttribute(t);n[s]!==r&&(n[s]=r,n.$digest())}));o.observe(i,{attributes:!0,attributeFilter:[t]}),n.$on("$destroy",(()=>{o.disconnect()}))}}}(e,n))}function ct(t,n,r,s,a){const c=L(t),l=function(t,e){return"srcdoc"===e?g.HTML:"src"===e||"ngSrc"===e?-1===["img","video","audio","source","track"].indexOf(t)?g.RESOURCE_URL:g.MEDIA_URL:"xlinkHref"===e?"image"===t?g.MEDIA_URL:"a"===t?g.URL:g.RESOURCE_URL:"form"===t&&"action"===e||"base"===t&&"href"===e||"link"===t&&"href"===e?g.RESOURCE_URL:"a"!==t||"href"!==e&&"ngHref"!==e?void 0:g.URL}(c,s),u=i[s]||a;let h=e(r,!a,l,u);if(h){if("multiple"===s&&"select"===c)throw an("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",Bt(t.outerHTML));if(o.test(s))throw an("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 lt(t,e,n){const r=e[0],i=e.length,s=r.parentNode;let o,a;if(t)for(o=0,a=t.length;o<a;o++)if(t[o]===r){t[o++]=n;for(let e=o,n=e+i-1,r=t.length;e<r;e++,n++)n<r?t[e]=t[n]:delete t[e];t.length-=i-1;break}s&&s.replaceChild(n,r);const c=document.createDocumentFragment();for(o=0;o<i;o++)c.appendChild(e[o]);for($t.has(r[ft])&&(Mt(n,Mt(r)),xt(r).off("$destroy")),Gt(c.querySelectorAll("*")),o=1;o<i;o++)delete e[o];e[0]=n,e.length=1}function ut(t,e){return j((function(){return t.apply(null,arguments)}),t,e)}function ht(t,e,n,r,i,s){try{t(e,n,r,i,s)}catch(t){console.error(t),a(t,Bt(n))}}function pt(t,e){if(h)throw an("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",t,e)}function mt(t,n,r,i,s){const o=[],a={};let c;function l(e,n,i){C(r.$onChanges)&&!q(n,i)&&(w||(t.$$postDigest(O),w=[]),c||(c={},w.push(u)),c[e]&&(i=c[e].previousValue),c[e]=new hn(i,n))}function u(){r.$onChanges(c),c=void 0}return i&&Object.entries(i).forEach((([i,c])=>{const{attrName:u}=c,{optional:h}=c,{mode:d}=c;let f,$,m,g,v;switch(d){case"@":h||Object.hasOwnProperty.call(n,u)||(pt(u,s.name),r[i]=n[u]=void 0),v=n.$observe(u,(t=>{if(y(t)||A(t)){const e=r[i];l(i,t,e),r[i]=t}})),n.$$observers[u].$$scope=t,f=n[u],y(f)?r[i]=e(f)(t):A(f)&&(r[i]=f),a[i]=new hn(cn,r[i]),o.push(v);break;case"=":if(!Object.hasOwnProperty.call(n,u)){if(h)break;pt(u,s.name),n[u]=void 0}if(h&&!n[u])break;$=p(n[u]),g=$.literal?H:q,m=$.assign||function(){throw f=r[i]=$(t),an("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",n[u],u,s.name)},f=r[i]=$(t);var b=function(e){return g(e,r[i])||(g(e,f)?m(t,e=r[i]):r[i]=e),f=e,f};b.$stateful=!0,v=c.collection?t.$watchCollection(n[u],b):t.$watch(p(n[u],b),null,$.literal),o.push(v);break;case"<":if(!Object.hasOwnProperty.call(n,u)){if(h)break;pt(u,s.name),n[u]=void 0}if(h&&!n[u])break;$=p(n[u]);var w=$.literal,E=r[i]=$(t);a[i]=new hn(cn,r[i]),v=t[c.collection?"$watchCollection":"$watch"]($,((t,e)=>{if(e===t){if(e===E||w&&H(e,E))return;e=E}l(i,t,e),r[i]=t})),o.push(v);break;case"&":if(h||Object.hasOwnProperty.call(n,u)||pt(u,s.name),$=Object.prototype.hasOwnProperty.call(n,u)?p(n[u]):()=>{},$.toString()===(()=>{}).toString()&&h)break;r[i]=function(e){return $(t,e)}}})),{initialChanges:a,removeWatches:o.length&&function(){for(let t=0,e=o.length;t<e;++t)o[t]()}}}}]}un.$inject=["$provide","$$sanitizeUriProvider"];class hn{constructor(t,e){this.previousValue=t,this.currentValue=e}isFirstChange(){return this.previousValue===cn}}function dn(t){let e=(t=xt(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 pn={$addControl:()=>{},$getControls:P([]),$$renameControl:function(t,e){t.$name=e},$removeControl:()=>{},$setValidity:function(){},$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=pn,this.$$element=t,this.$$animate=r,bn(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){F(t.$name,"input"),this.$$controls.push(t),t.$name&&(this[t.$name]=t),t.$$parentForm=this},$getControls(){return nt(this.$$controls)},$$renameControl(t,e){const n=t.$name;this[n]===t&&delete this[n],this[e]=t,t.$name=e},$removeControl(t){t.$name&&this[t.$name]===t&&delete this[t.$name],this.$pending&&Object.keys(this.$pending).forEach((e=>{this.$setValidity(e,null,t)})),this.$error&&Object.keys(this.$error).forEach((e=>{this.$setValidity(e,null,t)})),this.$$success&&Object.keys(this.$$success).forEach((e=>{this.$setValidity(e,null,t)})),U(this.$$controls,t),t.$$parentForm=pn},$setValidity:function(t,e,n){},$setDirty(){this.$$animate.removeClass(this.$$element,n),this.$$animate.addClass(this.$$element,r),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine(){this.$$animate.setClass(this.$$element,n,`${r} ${$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!==pn;)t=t.$$parentForm;t.$$setSubmitted()},$$setSubmitted(){this.$$animate.addClass(this.$$element,$n),this.$submitted=!0,this.$$controls.forEach((t=>{t.$$setSubmitted&&t.$$setSubmitted()}))}},function(n){const{clazz:r}=n,{set:i}=n,{unset:s}=n;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(n,r,i){r=r?`-${T(r,"-")}`:"",o(n,t+r,!0===i),o(n,e+r,!1===i)}r.prototype.$setValidity=function(t,e,n){let r;m(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),wn(t[e])&&(t[e]=void 0)}(this,"$pending",t,n),A(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=wn(this.$error),this.$invalid=!this.$valid,a(this,"",this.$valid)),r=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.$$success[t]||null),a(this,t,r),this.$$parentForm.$setValidity(t,r,this)}}({clazz: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&&(U(r,n),0===r.length&&delete t[e])}});const gn=function(e){return["$timeout","$parse",function(r,i){return{name:"form",restrict:e?"EA":"E",require:["form","^^?form"],controller:mn,compile:function(i,o){i[0].classList.add(n,t);const a=o.name?"name":!(!e||!o.ngForm)&&"ngForm";return{pre:function(t,e,n,i){const o=i[0];if(!("action"in n)){const n=function(e){t.$apply((()=>{o.$commitViewValue(),o.$setSubmitted()})),e.preventDefault()};e[0].addEventListener("submit",n),e.on("$destroy",(()=>{r((()=>{e[0].removeEventListener("submit",n)}),0,!1)}))}(i[1]||o.$$parentForm).$addControl(o);let c=a?s(o.$name):()=>{};a&&(c(t,o),n.$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),j(o,pn)}))}}}};function s(t){return""===t?i('this[""]').assign:i(t).assign||(()=>{})}}]},vn=gn(),yn=gn("ngForm");function bn(n){n.$$classCache={},n.$$classCache[e]=!(n.$$classCache[t]=n.$$element[0].classList.contains(t))}function wn(t){if(t)for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}const En=/(\s+|^)default(\s+|$)/;class Cn{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 t=Object.assign({},t),Object.entries(t).forEach((([n,r])=>{"$inherit"===r?"*"===n?e=!0:(t[n]=this.$$options[n],"updateOn"===n&&(t.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===n&&(t.updateOnDefault=!1,t[n]=_(r.replace(En,(()=>(t.updateOnDefault=!0," ")))))}),this),e&&(delete t["*"],An(t,this.$$options)),An(t,Sn.$$options),new On(t)}}const Sn=new On({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1}),xn=function(){return{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:Cn}};function An(t,e){Object.keys(e).forEach((n=>{g(t[n])||(t[n]=e[n])}))}const kn=ct("ngModel");class _n{static $inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"];constructor(t,e,n,r,i,s,o,a,c){var l;this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=c(n.name||"",!1)(t),this.$$parentForm=pn,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,this.$$hasNativeValidators=!1,bn(this),(l=this).$$scope.$watch((t=>{const e=l.$$ngModelGet(t);return e===l.$modelValue||l.$modelValue!=l.$modelValue&&e!=e||l.$$setModelValue(e),e}))}set(t,e){t[e]=!0}unset(t,e){delete t[e]}$setValidity(n,r){let i,s=this;function o(t,e,n){n&&!t.$$classCache[e]?(t.$$animate.addClass(t.$$element,e),t.$$classCache[e]=!0):!n&&t.$$classCache[e]&&(t.$$animate.removeClass(t.$$element,e),t.$$classCache[e]=!1)}function a(n,r,i){r=r?`-${T(r,"-")}`:"",o(n,t+r,!0===i),o(n,e+r,!1===i)}m(r)?function(t,e,n){t[e]||(t[e]={}),s.set(t[e],n)}(this,"$pending",n):function(t,e,n){t[e]&&s.unset(t[e],n),wn(t[e])&&(t[e]=void 0)}(this,"$pending",n),A(r)?r?(delete this.$error[n],this.set(this.$$success,n)):(this.set(this.$error,n),delete this.$$success[n]):(delete this.$error[n],delete this.$$success[n]),this.$pending?(o(this,fn,!0),this.$valid=this.$invalid=void 0,a(this,"",null)):(o(this,fn,!1),this.$valid=wn(this.$error),this.$invalid=!this.$valid,a(this,"",this.$valid)),i=this.$pending&&this.$pending[n]?void 0:!this.$error[n]&&(!!this.$$success[n]||null),a(this,n,i),this.$$parentForm.$setValidity(n,i,this)}$$initGetterSetters(){if(this.$options.getOption("getterSetter")){const t=this.$$parse(`${this.$$attr.ngModel}()`),e=this.$$parse(`${this.$$attr.ngModel}($$$p)`);this.$$ngModelGet=function(e){let n=this.$$parsedNgModel(e);return C(n)&&(n=t(e)),n},this.$$ngModelSet=function(t,n){C(this.$$parsedNgModel(t))?e(t,{$$$p:n}):this.$$parsedNgModelAssign(t,n)}}else if(!this.$$parsedNgModel.assign)throw kn("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,Bt(this.$$element))}$render(){}$isEmpty(t){return m(t)||""===t||null===t||t!=t}$$updateEmptyClasses(t){this.$isEmpty(t)?pt(this.$$element[0])?(this.$$animate.removeClass(this.$$element,a),this.$$animate.addClass(this.$$element,o)):(this.$$element[0].classList.remove(a),this.$$element[0].classList.add(o)):pt(this.$$element[0])?(this.$$animate.removeClass(this.$$element,o),this.$$animate.addClass(this.$$element,a)):(this.$$element[0].classList.remove(o),this.$$element[0].classList.add(a))}$setPristine(){this.$dirty=!1,this.$pristine=!0,pt(this.$$element[0])?(this.$$animate.removeClass(this.$$element,o),this.$$animate.addClass(this.$$element,n)):(this.$$element[0].classList.remove(o),this.$$element[0].classList.add(n))}$setDirty(){this.$dirty=!0,this.$pristine=!1,pt(this.$$element[0])?(this.$$animate.removeClass(this.$$element,n),this.$$animate.addClass(this.$$element,r)):(this.$$element[0].classList.remove(n),this.$$element[0].classList.add(r)),this.$$parentForm.$setDirty()}$setUntouched(){this.$touched=!1,this.$untouched=!0,pt(this.$$element[0])?this.$$animate.setClass(this.$$element,i,s):(this.$$element[0].classList.remove(s),this.$$element[0].classList.add(i))}$setTouched(){this.$touched=!0,this.$untouched=!1,pt(this.$$element[0])?this.$$animate.setClass(this.$$element,s,i):(this.$$element[0].classList.remove(i),this.$$element[0].classList.add(s))}$rollbackViewValue(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()}$validate(){if(V(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(!m(i.$$parserValid))return i.$$parserValid||(Object.keys(i.$validators).forEach((t=>{s(t,null)})),Object.keys(i.$asyncValidators).forEach((t=>{s(t,null)}))),s(t,i.$$parserValid),i.$$parserValid;s(t,null);return!0}()?o(!1):function(){let n=!0;if(Object.entries(i.$validators).forEach((([r,i])=>{const o=Boolean(i(t,e));n=n&&o,s(r,o)})),!n)return Object.keys(i.$asyncValidators).forEach((t=>{s(t,null)})),!1;return!0}()?function(){const n=[];let r=!0;Object.entries(i.$asyncValidators).forEach((([i,o])=>{const a=o(t,e);if(!k(a))throw kn("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);s(i,void 0),n.push(a.then((()=>{s(i,!0)}),(()=>{r=!1,s(i,!1)})))})),n.length?i.$q.all(n).then((()=>{o(r)}),(()=>{})):o(!0)}():o(!1)}$commitViewValue(){this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==this.$viewValue||""===this.$viewValue&&this.$$hasNativeValidators)&&(void 0===this.$$lastCommittedViewValue&&Number.isNaN(this.$viewValue)||(this.$$updateEmptyClasses(this.$viewValue),this.$$lastCommittedViewValue=this.$viewValue,this.$pristine&&this.$setDirty(),this.$$parseAndValidate()))}$$parseAndValidate(){let t=this.$$lastCommittedViewValue;const e=this;if(this.$$parserValid=!m(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),m(t)){this.$$parserValid=!1;break}V(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));const n=this.$modelValue,r=this.$options.getOption("allowInvalid");function i(){e.$modelValue!==n&&e.$$writeModelToScope()}this.$$rawModelValue=t,r&&(this.$modelValue=t,i()),this.$$runValidators(t,this.$$lastCommittedViewValue,(n=>{r||(e.$modelValue=n?t:void 0,i())}))}$$writeModelToScope(){this.$$ngModelSet(this.$$scope,this.$modelValue),Object.values(this.$viewChangeListeners).forEach((t=>{try{t()}catch(t){this.$$exceptionHandler(t)}}),this)}$setViewValue(t,e){this.$viewValue=t,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(e)}$$debounceViewValueCommit(t){let e=this.$options.getOption("debounce");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!==Se.NONE?this.$commitViewValue():this.$$scope.$apply((()=>{n.$commitViewValue()}))}$overrideModelOptions(t){this.$options=this.$options.createChild(t),this.$$setUpdateOnEvents()}$processModelValue(){const t=this.$$format();this.$viewValue!==t&&(this.$$updateEmptyClasses(t),this.$viewValue=this.$$lastCommittedViewValue=t,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,(()=>{})))}$$format(){const t=this.$formatters;let e=t.length,n=this.$modelValue;for(;e--;)n=t[e](n);return n}$$setModelValue(t){this.$modelValue=this.$$rawModelValue=t,this.$$parserValid=void 0,this.$processModelValue()}$$setUpdateOnEvents(){this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler),this.$$updateEvents=this.$options.getOption("updateOn"),this.$$updateEvents&&this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)}$$updateEventHandler(t){this.$$debounceViewValueCommit(t&&t.type)}}function Tn(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:_n,priority:1,compile:r=>(r[0].classList.add(n,i,t),{pre:(t,e,n,r)=>{const i=r[0],s=r[1]||i.$$parentForm,o=r[2];o&&(i.$options=o.$options),i.$$initGetterSetters(),s.$addControl(i),n.$observe("name",(t=>{i.$name!==t&&i.$$parentForm.$$renameControl(i,t)})),t.$on("$destroy",(()=>{i.$$parentForm.$removeControl(i)}))},post:(t,n,r,i)=>{const s=i[0];function o(){s.$setTouched()}s.$$setUpdateOnEvents(),n.on("blur",(()=>{s.$touched||(e.$$phase!==Se.NONE?t.$evalAsync(o):t.$apply(o))}))}})}}Tn.$inject=["$rootScope"];const 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)$/,Nn=/^[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])?)*$/,Rn=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Pn=/^(\d{4,})-(\d{2})-(\d{2})$/,Dn=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Mn=/^(\d{4,})-W(\d\d)$/,Ln=/^(\d{4,})-(\d\d)$/,In=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Un="validity",qn="keydown wheel mousedown",Hn=new Map;"date,datetime-local,month,time,week".split(",").forEach((t=>{Hn.set(t,!0)}));const Fn={text:function(t,e,n,r,i){zn(t,e,n,r,i),Bn(r)},date:Kn("date",Pn,Wn(Pn,["yyyy","MM","dd"])),"datetime-local":Kn("datetimelocal",Dn,Wn(Dn,["yyyy","MM","dd","HH","mm","ss","sss"])),time:Kn("time",In,Wn(In,["HH","mm","ss","sss"])),week:Kn("week",Mn,(function(t,e){if(w(t))return t;if(y(t)){Mn.lastIndex=0;const n=Mn.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:Kn("month",Ln,Wn(Ln,["yyyy","MM"])),number:function(t,e,n,r,i,s,o){let a;if(Yn(t,e,n,r,"number"),Qn(r),zn(t,e,n,r,i),g(n.min)||n.ngMin){let e=n.min||o(n.ngMin)(t);a=Zn(e),r.$validators.min=function(t,e){return r.$isEmpty(e)||m(a)||e>=a},n.$observe("min",(t=>{t!==e&&(a=Zn(t),e=t,r.$validate())}))}if(g(n.max)||n.ngMax){let e=n.max||o(n.ngMax)(t),i=Zn(e);r.$validators.max=function(t,e){return r.$isEmpty(e)||m(i)||e<=i},n.$observe("max",(t=>{t!==e&&(i=Zn(t),e=t,r.$validate())}))}if(g(n.step)||n.ngStep){let e=n.step||o(n.ngStep)(t),i=Zn(e);r.$validators.step=function(t,e){return r.$isEmpty(e)||m(i)||tr(e,a||0,i)},n.$observe("step",(t=>{t!==e&&(i=Zn(t),e=t,r.$validate())}))}},url:function(t,e,n,r,i){zn(t,e,n,r,i),Bn(r),r.$validators.url=function(t,e){const n=t||e;return r.$isEmpty(n)||Nn.test(n)}},email:function(t,e,n,r,i){zn(t,e,n,r,i),Bn(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"!==_(n.ngTrim);m(n.name)&&e.attr("name",p());e.on("change",(function(t){let s;e[0].checked&&(s=n.value,i&&(s=_(s)),r.$setViewValue(s,t&&t.type))})),r.$render=function(){let{value:t}=n;i&&(t=_(t)),e[0].checked=t===r.$viewValue},n.$observe("value",r.$render)},range:function(t,e,n,r,i){Yn(t,e,n,r,"range"),Qn(r),zn(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=g(n.min),h=g(n.max),d=g(n.step),p=r.$render;r.$render=s&&g(l.rangeUnderflow)&&g(l.rangeOverflow)?function(){p(),r.$setViewValue(e.val())}:p,u&&(o=Zn(n.min),r.$validators.min=s?function(){return!0}:function(t,e){return r.$isEmpty(e)||m(o)||e>=o},f("min",(function(t){if(o=Zn(t),V(r.$modelValue))return;if(s){let t=e.val();o>t&&(t=o,e.val(t)),r.$setViewValue(t)}else r.$validate()})));h&&(a=Zn(n.max),r.$validators.max=s?function(){return!0}:function(t,e){return r.$isEmpty(e)||m(a)||e<=a},f("max",(function(t){if(a=Zn(t),V(r.$modelValue))return;if(s){let t=e.val();a<t&&(e.val(a),t=a<o?o:a),r.$setViewValue(t)}else r.$validate()})));d&&(c=Zn(n.step),r.$validators.step=s?function(){return!l.stepMismatch}:function(t,e){return r.$isEmpty(e)||m(c)||tr(e,o||0,c)},f("step",(function(t){if(c=Zn(t),V(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=er(o,t,"ngTrueValue",n.ngTrueValue,!0),c=er(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=>H(t,a))),r.$parsers.push((t=>t?a:c))},hidden:()=>{},button:()=>{},submit:()=>{},reset:()=>{},file:()=>{}};function Bn(t){t.$formatters.push((e=>t.$isEmpty(e)?e:e.toString()))}function zn(t,e,n,r,i){const s=e[0].type.toLowerCase();let o,a=!1;e.on("compositionstart",(()=>{a=!0})),e.on("compositionend",(()=>{a=!1,c()}));let c=function(t){if(o&&(i.cancel(o),o=null),a)return;let c=e.val();const l=t&&t.type;"password"===s||n.ngTrim&&"false"===n.ngTrim||(c=_(c)),(r.$viewValue!==c||""===c&&r.$$hasNativeValidators)&&r.$setViewValue(c,l)};["input","change","paste","drop","cut"].forEach((t=>{e.on(t,c)})),Hn[s]&&r.$$hasNativeValidators&&s===n.type&&e.on(qn,(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 Wn(t,e){return function(n,r){let i,s;if(w(n))return n;if(y(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},Object.entries(i).forEach((([t,n])=>{t<e.length&&(s[e[t]]=+n)}));const t=new Date(s.yyyy,s.MM-1,s.dd,s.HH,s.mm,s.ss||0,1e3*s.sss||0);return s.yyyy<100&&t.setFullYear(s.yyyy),t}}return NaN}}const Gn=/\b\d{4}-(0[1-9]|1[0-2])\b/;function Kn(t,e,n){return function(r,i,s,o,a,c,l){if(Yn(r,i,s,o,t),zn(0,i,s,o,a),o.$parsers.push((n=>o.$isEmpty(n)?null:e.test(n)?["month","week","datetimelocal","time","date"].includes(t)?n:d(n,undefined):void(o.$$parserName=t))),o.$formatters.push((function(e){if(e&&!y(e))throw kn("datefmt","Expected `{0}` to be a String",e);if("month"===t){if(null==e)return"";if(!Gn.test(e))throw kn("datefmt","Expected month `{0}` to be a 'YYYY-DD'",e)}if("week"===t){if(null==e)return"";if(!Mn.test(e))throw kn("datefmt","Expected week `{0}` to be a 'yyyy-Www'",e)}if("datetimelocal"===t){if(null==e)return"";if(!Dn.test(e))throw kn("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})),g(s.min)||s.ngMin){let e=s.min||l(s.ngMin)(r),i=h(e);o.$validators.min=function(e){return"month"===t?m(i)||n(e)>=n(i):!u(e)||m(i)||n(e)>=i},s.$observe("min",(t=>{t!==e&&(i=h(t),e=t,o.$validate())}))}if(g(s.max)||s.ngMax){let e=s.max||l(s.ngMax)(r),i=h(e);o.$validators.max=function(e){return"month"===t?m(i)||n(e)<=n(i):!u(e)||m(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 g(t)&&!w(t)?d(t)||void 0:t}function d(t,e){const r=o.$options.getOption("timezone");let i=n(t,e);return!Number.isNaN(i)&&r&&(i=Q(i,r)),i}}}function Yn(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 Qn(t){t.$parsers.push((e=>t.$isEmpty(e)?null:Rn.test(e)?parseFloat(e):void(t.$$parserName="number"))),t.$formatters.push((e=>{if(!t.$isEmpty(e)){if(!b(e))throw kn("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e}))}function Zn(t){return g(t)&&!b(t)&&(t=parseFloat(t)),V(t)?void 0:t}function Jn(t){return(0|t)===t}function Xn(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 tr(t,e,n){let r=Number(t);const i=!Jn(r),s=!Jn(e),o=!Jn(n);if(i||s||o){const t=i?Xn(r):0,a=s?Xn(e):0,c=o?Xn(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 er(t,e,n,r,i){let s;if(g(r)){if(s=t(r),!s.constant)throw kn("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return s(e)}return i}function nr(t,e,n){return{restrict:"E",require:["?ngModel"],link:{pre(r,i,s,o){o[0]&&(Fn[f(s.type)]||Fn.text)(r,i,s,o[0],t,e,n)}}}}function rr(){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"===f(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)}}}}}nr.$inject=["$browser","$filter","$parse"];const ir=/^(true|false|\d+)$/;function sr(){function t(t,e,n){const r=g(n)?n:null;t[0].value=r,e.$set("value",n)}return{restrict:"A",priority:100,compile:(e,n)=>ir.test(n.ngValue)?function(e,n,r){t(n,r,e.$eval(r.ngValue))}:function(e,n,r){e.$watch(r.ngValue,(e=>{t(n,r,e)}))}}}function or(t){return{restrict:"E",terminal:!0,compile(e,n){"text/ng-template"===n.type&&t.set(n.id,e[0].text)}}}function ar(t,e){t[0].selected=e,t.attr("selected",e)}function cr(t,e){const n=this,r=new Map;n.selectValueMap={},n.ngModelCtrl={},n.multiple=!1,n.unknownOption=xt(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),ar(n.unknownOption,!0),t.val(r)},n.updateUnknownOption=function(e){const r=n.generateUnknownOptionValue(e);n.unknownOption.val(r),ar(n.unknownOption,!0),t.val(r)},n.generateUnknownOptionValue=function(t){return`? ${ut(t)} ?`},n.removeUnknownOption=function(){n.unknownOption.parent()&&n.unknownOption.remove()},n.selectEmptyOption=function(){n.emptyOption&&(t.val(""),ar(n.emptyOption,!0))},n.unselectEmptyOption=function(){n.hasEmptyOption&&ar(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&&ar(xt(r),!1),n.hasOption(e)){n.removeUnknownOption();const r=ut(e);t.val(r in n.selectValueMap?r:e);ar(xt(t[0].options[t[0].selectedIndex]),!0)}else n.selectUnknownOrEmptyOption(e)},n.addOption=function(t,e){if(e[0].nodeType===Node.COMMENT_NODE)return;F(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;g(l)&&(n.removeOption(c),delete n.selectValueMap[l],r=!0),l=ut(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;g(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 lr(){return{restrict:"E",require:["select","?ngModel"],controller:cr,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&&(I(t,e.value)||I(t,i.selectValueMap[e.value]));n!==e.selected&&ar(xt(e),n)}))};let r=NaN;t.$watch((()=>{r!==s.$viewValue||H(n,s.$viewValue)||(n=nt(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 ur(t){return{restrict:"E",priority:100,compile(e,n){let r,i;return g(n.ngValue)||(g(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 hr(){return{restrict:"EA",link:(t,e,n)=>{t.$watch(n.ngBind,(t=>{e[0].textContent=B(t)}))}}}function dr(){return{restrict:"EA",link:(t,e,n)=>{n.$observe("ngBindTemplate",(t=>{e[0].textContent=m(t)?"":t}))}}}or.$inject=["$templateCache"],cr.$inject=["$element","$scope"],ur.$inject=["$interpolate"];const pr=["$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 fr(t,e){let n;return t=`ngClass${t}`,["$parse",o=>({restrict:"EA",link(a,c,l){let u,h=c.data("$classCounts"),d=!0;function p(t,e){const n=[];return t&&t.forEach((t=>{(e>0||h[t])&&(h[t]=(h[t]||0)+e,h[t]===+(e>0)&&n.push(t))})),n.join(" ")}h||(h=Object.create(null),c.data("$classCounts",h)),"ngClass"!==t&&(n||(n=o("$index",(function(t){return 1&t}))),a.$watch(n,(function(t){t===e?(n=p(i(n=u),1),pt(c[0])?l.$addClass(n):a.$$postDigest((()=>{""!==n&&c[0].classList.add(...n.trim().split(" "))}))):function(t){t=p(i(t),-1),pt(c[0])?l.$removeClass(t):a.$$postDigest((()=>{""!==t&&c[0].classList.remove(...t.trim().split(" "))}))}(u);var n;d=t}))),a.$watch(o(l[t],s),(function(t){d===e&&function(t,e){const n=i(t),s=i(e),o=r(n,s),u=r(s,n),h=p(o,-1),d=p(u,1);pt(c[0])?(l.$addClass(d),l.$removeClass(h)):a.$$postDigest((()=>{""!==d&&c[0].classList.add(...d.trim().split(" ")),""!==h&&c[0].classList.remove(...h.trim().split(" "))}))}(u,t);u=t}))}})];function r(t,e){if(!t||!t.length)return[];if(!e||!e.length)return t;const n=[];t:for(let r=0;r<t.length;r++){const i=t[r];for(let t=0;t<e.length;t++)if(i===e[t])continue t;n.push(i)}return n}function i(t){return t&&t.split(" ")}function s(t){if(!t)return t;let e=t;return Array.isArray(t)?e=t.map(s).join(" "):v(t)?e=Object.keys(t).filter((e=>t[e])).join(" "):y(t)||(e=`${t}`),e}}const $r=fr("",!0),mr=fr("Odd",0),gr=fr("Even",1);function vr(){return{restrict:"EA",compile(t,e){e.$set("ngCloak",void 0),t[0].classList.remove("ng-cloak")}}}function yr(){return{restrict:"A",scope:!0,controller:"@",priority:500}}const br="ng-hide",wr="ng-hide-animate";function Er(t){return{restrict:"A",multiElement:!0,link(e,n,r){e.$watch(r.ngShow,(r=>{pt(n[0])?t[r?"removeClass":"addClass"](n,br,{tempClasses:wr}):e.$$postDigest((()=>{r?n.elements().forEach((t=>t.classList.remove(br))):n.elements().forEach((t=>t.classList.add(br)))}))}))}}}function Cr(t){return{restrict:"A",multiElement:!0,link(e,n,r){e.$watch(r.ngHide,(r=>{pt(n[0])?t[r?"addClass":"removeClass"](n,br,{tempClasses:wr}):e.$$postDigest((()=>{r?n.elements().forEach((t=>t.classList.add(br))):n.elements().forEach((t=>t.classList.remove(br)))}))}))}}}Er.$inject=["$animate"],Cr.$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",xr="-remove",Ar="ng-",kr="-active",_r="-prepare",Tr="ng-animate",jr="$$ngAnimateChildren";let Nr,Vr,Rr,Pr;void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend?(Nr="WebkitTransition",Vr="webkitTransitionEnd transitionend"):(Nr="transition",Vr="transitionend"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend?(Rr="WebkitAnimation",Pr="webkitAnimationEnd animationend"):(Rr="animation",Pr="animationend");const Dr="Duration",Mr=Or.Property,Lr="Delay",Ir="TimingFunction",Ur="PlayState",qr=9999,Hr=Rr+Lr,Fr=Rr+Dr,Br=Nr+Lr,zr=Nr+Dr,Wr=ct("ng");function Gr(t,e,n){if(!t)throw Wr("areq","Argument '{0}' is {1}",e||"?",n);return t}function Kr(t,e,n){let r="";return(t=Array.isArray(t)?t:t&&y(t)&&t.length?t.split(/\s+/):[]).forEach(((t,i)=>{t&&t.length>0&&(r+=i>0?" ":"",r+=n?e+t:t+e)})),r}function Yr(t){if(t instanceof xt)switch(t.length){case 0:return t;case 1:if(t[0].nodeType===Node.ELEMENT_NODE)return t;break;default:return xt(Qr(t))}if(t.nodeType===Node.ELEMENT_NODE)return xt(t)}function Qr(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 Zr(t){if(!(t=t||{}).$$prepared){let e=t.domOperation||(()=>{});t.domOperation=function(){t.$$domOperationFired=!0,e(),e=()=>{}},t.$$prepared=!0}return t}function Jr(t,e){Xr(t,e),ti(t,e)}function Xr(t,e){e.from&&(e.from=null)}function ti(t,e){e.to&&(e.to=null)}function ei(t,e,n){const r=e.options||{},i=n.options||{},s=`${r.addClass||""} ${i.addClass||""}`,o=`${r.removeClass||""} ${i.removeClass||""}`,a=function(t,e,n){const r=1,i=-1,s={};t=a(t),e=a(e),Object.keys(e).forEach((t=>{s[t]=r})),n=a(n),Object.keys(n).forEach((t=>{s[t]=s[t]===r?null:i}));const o={addClass:"",removeClass:""};function a(t){y(t)&&(t=t.trim().split(" "));const e={};return t&&t.forEach((t=>{t.length&&(e[t]=!0)})),e}return Object.entries(s).forEach((([e,n])=>{var s,a;n===r?(s="addClass",a=!t[e]||t[e+xr]):n===i&&(s="removeClass",a=t[e]||t[e+Sr]),a&&(o[s].length&&(o[s]+=" "),o[s]+=e)})),o}(t.attr("class"),s,o);i.preparationClasses&&(r.preparationClasses=si(i.preparationClasses,r.preparationClasses),delete i.preparationClasses);const c=r.domOperation!==(()=>{})?r.domOperation:null;return j(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 ni(t){return t instanceof xt?t[0]:t}function ri(t,e){const n=e?"paused":"",r=Rr+Ur;return ii(t,[r,n]),[r,n]}function ii(t,e){const n=e[0],r=e[1];t.style[n]=r}function si(t,e){return t?e?`${t} ${e}`:t:e}const oi=ct("$animate");function ai(t,e){return t||e?t?e?(Array.isArray(t)&&(t=t.join(" ")),Array.isArray(e)&&(e=e.join(" ")),`${t} ${e}`):t:e:""}function ci(t){return v(t)?t:{}}function li(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 ui(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 oi("notcsel","Expecting class selector starting with '.' got '{0}'.",n);const i=`${n}-animation`;e.$$registeredAnimations[n.substring(1)]=i,t.factory(i,r)},this.customFilter=function(t){return 1===arguments.length&&(r=C(t)?t:null),r},this.classNameFilter=function(t){if(1===arguments.length&&(n=t instanceof RegExp?t:null,n)){if(new RegExp(`[(\\s|\\/)]${Tr}[(\\s|\\/)]`).test(n.toString()))throw n=null,oi("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',Tr)}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&&xt(n),r=r&&xt(r),li(e,n=n||r.parent(),r),t.push(e,"enter",ci(i))),move:(e,n,r,i)=>(n=n&&xt(n),r=r&&xt(r),li(e,n=n||r.parent(),r),t.push(e,"move",ci(i))),leave:(e,n)=>t.push(e,"leave",ci(n),(()=>{e.remove()})),addClass:(e,n,r)=>((r=ci(r)).addClass=ai(r.addClass,n),t.push(e,"addClass",r)),removeClass:(e,n,r)=>((r=ci(r)).removeClass=ai(r.removeClass,n),t.push(e,"removeClass",r)),setClass:(e,n,r,i)=>((i=ci(i)).addClass=ai(i.addClass,n),i.removeClass=ai(i.removeClass,r),t.push(e,"setClass",i)),animate:(e,n,r,i,s)=>((s=ci(s)).from=s.from?j(s.from,n):n,s.to=s.to?j(s.to,r):r,i=i||"ng-inline-animate",s.tempClasses=ai(s.tempClasses,i),t.push(e,"animate",s))}}]}function hi(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},pt(e[0])?t.enter(e,n.parent(),n):li(e,n.parent(),n)})):(c&&(c.remove(),c=null),a&&(a.$destroy(),a=null),o&&(c=zt(o.clone),pt(c[0])?t.leave(c).done((t=>{!1!==t&&(c=null)})):c.remove(),o=null))}))}}}ui.$inject=["$provide"],hi.$inject=["$animate"];const di=["$templateRequest","$anchorScroll","$animate",(t,e,n)=>({restrict:"EA",priority:400,terminal:!0,transclude:"element",controller:()=>{},compile(r,i){const s=i.ngInclude||i.src,o=i.onload||"",a=i.autoscroll;return(r,i,c,l,u)=>{function h(){!g(a)||a&&!r.$eval(a)||e()}let d,p,f,$=0;const m=()=>{p&&(p.remove(),p=null),d&&(d.$destroy(),d=null),f&&(pt(f[0])?n.leave(f).done((t=>{!1!==t&&(p=null)})):f.remove(),p=f,f=null)};r.$watch(s,(e=>{const s=function(t){!1!==t&&h()},a=++$;e?(t(e,!0).then((t=>{if(r.$$destroyed)return;if(a!==$)return;const c=r.$new();l.template=t;const p=u(c,(t=>{m(),pt(t[0])?n.enter(t,null,i).done(s):(li(t,null,i),h())}));d=c,f=p,d.$emit("$includeContentLoaded",e),r.$eval(o)}),(()=>{r.$$destroyed||a===$&&(m(),r.$emit("$includeContentError",e))})),r.$emit("$includeContentRequested",e)):(m(),l.template=null)}))}}})],pi=["$compile",t=>({restrict:"EA",priority:-400,require:"ngInclude",link(e,n,r,i){if(toString.call(n[0]).match(/SVG/))return n.empty(),void t(Rt(i.template).childNodes)(e,(t=>{n.append(t)}),{futureParentElement:n});n.html(i.template),t(n[0].childNodes)(e)}})];function fi(){return{priority:450,compile:()=>({pre(t,e,n){t.$eval(n.ngInit)}})}}function $i(){return{restrict:"EA",terminal:!0,priority:1e3}}const mi=ct("ngRef"),gi=["$parse",t=>({priority:-1,restrict:"A",compile(e,n){const r=dt(L(e)),i=t(n.ngRef),s=i.assign||function(){throw mi("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 mi("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)}))}}})],vi=["$parse","$animate",(t,e)=>{const n="$$NG_REMOVED",r=ct("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 ut(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 d=h.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!d)throw r("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",h);const p=d[1],f=d[2],m=d[3],g=d[4];if(d=p.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/),!d)throw r("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",p);const v=d[3]||d[1],y=d[2];if(m&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(m)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(m)))throw r("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",m);let b;if(g){var w={$id:ut};const e=t(g);b=function(t,n,r,i){return y&&(w[y]=n),w[v]=r,w.$index=i,e(t,w)}}return function(t,l,u,d,p){let g=Object.create(null);t.$watchCollection(f,(u=>{var d,f,E,C,O,S,x,A,k,_,T,j,N=l[0],V=Object.create(null);if(m&&(t[m]=u),$(u))k=u,A=b||a;else for(var R in A=b||c,k=[],u)Object.hasOwnProperty.call(u,R)&&"$"!==R.charAt(0)&&k.push(R);for(C=k.length,T=new Array(C),d=0;d<C;d++)if(O=u===k?d:k[d],S=u[O],x=A(t,O,S,d),g[x])_=g[x],delete g[x],V[x]=_,T[d]=_;else{if(V[x])throw Object.values(T).forEach((t=>{t&&t.scope&&(g[t.id]=t)})),r("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",h,x,S);T[d]={id:x,scope:void 0,clone:void 0},V[x]=!0}for(var P in w&&(w[v]=void 0),g){if(j=zt((_=g[P]).clone),e.leave(j),j[0].parentNode)for(d=0,f=j.length;d<f;d++)j[d][n]=!0;_.scope.$destroy()}for(d=0;d<C;d++)if(O=u===k?d:k[d],S=u[O],(_=T[d]).scope){E=N;do{E=E.nextSibling}while(E&&E[n]);s(_)!==E&&e.move(zt(_.clone),null,N),N=o(_),i(_.scope,d,v,S,y,O,C)}else p(((t,n)=>{_.scope=n;const r=document.createComment("");t[t.length++]=r,e.enter(t,null,N),N=r,_.clone=t,V[_.id]=_,i(_.scope,d,v,S,y,O,C)}));g=V}))}}}}];function yi(){return{restrict:"EA",link:(t,e,n)=>{t.$watchCollection(n.ngStyle,((t,n)=>{if(n){const t=Object.keys(n);for(let n=0,r=t.length;n<r;n++)e[0].style[t[n]]=""}if(t){const n=Object.entries(t);for(let t=0,r=n.length;t<r;t++){const[r,i]=n[t];e[0].style[r]=i}}}))}}}function bi(t){return{require:"ngSwitch",controller:["$scope",class{constructor(){this.cases={}}}],link(e,n,r,i){const s=r.ngSwitch||r.on;let o=[];const a=[],c=[],l=[],u=function(t,e){return function(n){!1!==n&&t.splice(e,1)}};e.$watch(s,(e=>{let n,r;for(;c.length;)t.cancel(c.pop());for(n=0,r=l.length;n<r;++n){const e=zt(a[n].clone);if(l[n].$destroy(),pt(e[0])){(c[n]=t.leave(e)).done(u(c,n))}else e.remove()}a.length=0,l.length=0,(o=i.cases[`!${e}`]||i.cases["?"])&&Object.values(o).forEach((e=>{e.transclude(((n,r)=>{l.push(r);const i=e.element;n[n.length++]=document.createComment("");const s={clone:n};a.push(s),pt(n[0])?t.enter(n,i.parent(),i):li(n,i.parent(),i)}))}))}))}}}function wi(){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 Ei(){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})}}}bi.$inject=["$animate"];const Ci=ct("ngOptions"),Oi=/^\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]+?))?$/,Si=["$compile","$parse",function(t,e){const n=document.createElement("option"),r=document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,e,n,r){r[0].registerOption=()=>{}},post:function(i,s,o,a){const c=a[0],l=a[1],{multiple:u}=o;for(let t=0,e=s.children(),n=e.length;t<n;t++)if(""===e[t].value){c.hasEmptyOption=!0,c.emptyOption=e.eq(t);break}s.empty();const h=!!c.emptyOption;let d;xt(n.cloneNode(!1)).val("?");const p=function(t,n,r){const i=t.match(Oi);if(!i)throw Ci("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,Bt(n));const s=i[5]||i[7],o=i[6],a=/ as /.test(i[0])&&i[1],c=i[9],l=e(i[2]?i[1]:s),u=a&&e(a)||l,h=c&&e(c),d=c?function(t,e){return h(r,e)}:function(t){return ut(t)},p=function(t,e){return d(t,b(t,e))},f=e(i[2]||i[1]),m=e(i[3]||""),g=e(i[4]||""),v=e(i[8]),y={};let b=o?function(t,e){return y[o]=e,y[s]=t,y}:function(t){return y[s]=t,y};function w(t,e,n,r,i){this.selectValue=t,this.viewValue=e,this.label=n,this.group=r,this.disabled=i}function E(t){let e;if(!o&&$(t))e=t;else{e=[];for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&"$"!==n.charAt(0)&&e.push(n)}return e}return{trackBy:c,getTrackByValue:p,getWatchables:e(v,(t=>{const e=[],n=E(t=t||[]),s=n.length;for(let o=0;o<s;o++){const s=t===n?o:n[o],a=t[s],c=b(a,s),l=d(a,c);if(e.push(l),i[2]||i[1]){const t=f(r,c);e.push(t)}if(i[4]){const t=g(r,c);e.push(t)}}return e})),getOptions(){const t=[],e={},n=v(r)||[],i=E(n),s=i.length;for(let o=0;o<s;o++){const s=n===i?o:i[o],a=n[s],c=b(a,s),l=u(r,c),h=d(l,c),p=new w(h,l,f(r,c),m(r,c),g(r,c));t.push(p),e[h]=p}return{items:t,selectValueMap:e,getOptionFromViewValue:t=>e[p(t)],getViewValueFromOption:t=>c?structuredClone(t.viewValue):t.viewValue}}}}(o.ngOptions,s,i),f=document.createDocumentFragment();function m(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 v(t){const e=d.getOptionFromViewValue(t),n=e&&e.element;return n&&!n.selected&&(n.selected=!0),e}c.generateUnknownOptionValue=()=>"?",u?(c.writeValue=function(t){if(!d)return;const e=t&&t.map(v)||[];d.items.forEach((t=>{t.element.selected&&!I(e,t)&&(t.element.selected=!1)}))},c.readValue=function(){const t=s.val()||[],e=[];return t.forEach((t=>{const n=d.selectValueMap[t];n&&!n.disabled&&e.push(d.getViewValueFromOption(n))})),e},p.trackBy&&i.$watchCollection((()=>{if(Array.isArray(l.$viewValue))return l.$viewValue.map((t=>p.getTrackByValue(t)))}),(()=>{l.$render()}))):(c.writeValue=function(t){if(!d)return;const e=s[0].options[s[0].selectedIndex],n=d.getOptionFromViewValue(t);e&&e.removeAttribute("selected"),n?(s[0].value!==n.selectValue&&(c.removeUnknownOption(),s[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):c.selectUnknownOrEmptyOption(t)},c.readValue=function(){const t=d.selectValueMap[s.val()];return t&&!t.disabled?(c.unselectEmptyOption(),c.removeUnknownOption(),d.getViewValueFromOption(t)):null},p.trackBy&&i.$watch((()=>p.getTrackByValue(l.$viewValue)),(()=>{l.$render()}))),h&&(t(c.emptyOption)(i),s.prepend(c.emptyOption),c.emptyOption[0].nodeType===Node.COMMENT_NODE&&(c.hasEmptyOption=!1,c.registerOption=function(t,e){""===e.val()&&(c.hasEmptyOption=!0,c.emptyOption=e,l.$render(),e.on("$destroy",(()=>{const t=c.$isEmptyOptionSelected();c.hasEmptyOption=!1,c.emptyOption=void 0,t&&l.$render()})))})),i.$watchCollection(p.getWatchables,(function(){const t=d&&c.readValue();if(d)for(let t=d.items.length-1;t>=0;t--){const e=d.items[t];g(e.group)?Ut(e.element.parentNode):Ut(e.element)}d=p.getOptions();const e={};if(d.items.forEach((t=>{let n;g(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),m(t,n)):m(t,f)})),s[0].appendChild(f),l.$render(),!l.$isEmpty(t)){const e=c.readValue();(p.trackBy||u?H(t,e):t===e)||(l.$setViewValue(e),l.$render())}}))}}}}],xi=ct("ngTransclude"),Ai=["$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 xi("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",Bt(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 ki(){return{restrict:"A",require:"ngModel",link(t,e,n,r){r.$viewChangeListeners.push((()=>t.$eval(n.ngChange)))}}}const _i=/^\/(.+)\/([a-z]*)$/,Ti={};Object.entries(Ot).forEach((([t,e])=>{if("multiple"===e)return;function n(e,n,i){e.$watch(i[r],(e=>{i.$set(t,!!e)}))}let r=dt(`ng-${t}`),i=n;"checked"===e&&(i=function(t,e,i){i.ngModel!==i[r]&&n(t,0,i)}),Ti[r]=function(){return{restrict:"A",priority:100,link:i}}})),Object.entries(u).forEach((([t])=>{Ti[t]=function(){return{priority:100,link(e,n,r){if("ngPattern"===t&&"/"===r.ngPattern.charAt(0)){const t=r.ngPattern.match(_i);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=dt(`ng-${t}`);Ti[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 ji=["$parse",t=>({restrict:"A",require:"?ngModel",link:(e,n,r,i)=>{if(!i)return;let s=Object.prototype.hasOwnProperty.call(r,"required")||t(r.ngRequired)(e);r.ngRequired||(r.required=!0),i.$validators.required=(t,e)=>!s||!i.$isEmpty(e),r.$observe("required",(t=>{s!==t&&(s=t,i.$validate())}))}})],Ni=["$parse",t=>({restrict:"A",require:"?ngModel",compile:(e,n)=>{var r,i;return n.ngPattern&&(r=n.ngPattern,i="/"===n.ngPattern.charAt(0)&&_i.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=Pi(o,r,e);n.$observe("pattern",(function(t){var n=a;a=Pi(t,r,e),(n&&n.toString())!==(a&&a.toString())&&s.$validate()})),s.$validators.pattern=function(t,e){return s.$isEmpty(e)||m(a)||a.test(e)}}}}})],Vi=["$parse",t=>({restrict:"A",require:"?ngModel",link:(e,n,r,i)=>{if(!i)return;let s=r.maxlength||t(r.ngMaxlength)(e),o=Di(s);r.$observe("maxlength",(t=>{s!==t&&(o=Di(t),s=t,i.$validate())})),i.$validators.maxlength=function(t,e){return o<0||i.$isEmpty(e)||e.length<=o}}})],Ri=["$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=Di(s)||-1;r.$observe("minlength",(t=>{s!==t&&(o=Di(t)||-1,s=t,i.$validate())})),i.$validators.minlength=function(t,e){return i.$isEmpty(e)||e.length>=o}}}}];function Pi(t,e,n){if(t){if(y(t)&&(t=new RegExp(`^${t}$`)),!t.test)throw ct("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",e,t,Bt(n));return t}}function Di(t){const e=N(t);return V(e)?-1:e}class Mi{constructor(){this.autoScrollingEnabled=!0}disableAutoScrolling(){this.autoScrollingEnabled=!1}$get=["$location","$rootScope",function(t,e){function n(t){if(t){t.scrollIntoView();const e=function(){let t=r.yOffset;if(C(t))t=t();else if(M(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 r=function(e){let r;(e=y(e)?e:b(e)?e.toString():t.hash())?(r=document.getElementById(e))||(r=function(t){let e=null;return Array.prototype.some.call(t,(t=>{if("a"===L(t))return e=t,!0})),e}(document.getElementsByName(e)))?n(r):"top"===e&&n(null):n(null)};return this.autoScrollingEnabled&&e.$watch((()=>t.hash()),((t,n)=>{if(t===n&&""===t)return;const i=()=>e.$evalAsync(r);"complete"===document.readyState?window.setTimeout((()=>i())):window.addEventListener("load",(()=>i()))})),r}]}function Li(t){return t.replace(/#$/,"")}class Ii{constructor(t){this.taskTracker=t,this.pendingDeferIds={},this.urlChangeListeners=[],this.urlChangeInit=!1,this.cachedState=null,this.lastHistoryState=null,this.lastBrowserUrl=window.location.href,this.baseElement=xt(Array.from(document.getElementsByTagName("base"))),this.$$completeOutstandingRequest=this.taskTracker.completeTask.bind(t),this.$$incOutstandingRequestCount=this.taskTracker.incTaskCount.bind(t),this.notifyWhenNoOutstandingRequests=this.taskTracker.notifyWhenNoPendingTasks.bind(t),this.cacheState()}url(t,e){return void 0===e&&(e=null),t?(t=Fe(t).href,this.lastBrowserUrl===t&&this.lastHistoryState===e||(this.lastBrowserUrl=t,this.lastHistoryState=e,history.pushState(e,"",t),this.cacheState()),this):Li(window.location.href)}state(){return this.cachedState}cacheStateAndFireUrlChange(){this.fireStateOrUrlChange()}cacheState(){const t=history.state??null;H(t,this.lastCachedState)||(this.cachedState=t,this.lastCachedState=t,this.lastHistoryState=t)}fireStateOrUrlChange(){const t=this.lastHistoryState;this.cacheState(),this.lastBrowserUrl===this.url()&&t===this.cachedState||(this.lastBrowserUrl=this.url(),this.lastHistoryState=this.cachedState,this.urlChangeListeners.forEach((t=>{t(Li(window.location.href),this.cachedState)})))}onUrlChange(t){return this.urlChangeInit||(window.addEventListener("popstate",this.cacheStateAndFireUrlChange.bind(this)),window.addEventListener("hashchange",this.cacheStateAndFireUrlChange.bind(this)),this.urlChangeInit=!0),this.urlChangeListeners.push(t),t}$$applicationDestroyed(){window.removeEventListener("popstate",this.cacheStateAndFireUrlChange.bind(this)),window.removeEventListener("hashchange",this.cacheStateAndFireUrlChange.bind(this))}$$checkUrlChange(){this.fireStateOrUrlChange()}baseHref(){const t=this.baseElement.attr("href");return t?t.replace(/^(https?:)?\/\/[^/]*/,""):""}defer(t,e=0,n=this.taskTracker.DEFAULT_TASK_TYPE){let r;return this.taskTracker.incTaskCount(n),r=window.setTimeout((()=>{delete this.pendingDeferIds[r],this.taskTracker.completeTask(t,n)}),e),this.pendingDeferIds[r]=n,r}cancel(t){if(Object.prototype.hasOwnProperty.call(this.pendingDeferIds,t)){const e=this.pendingDeferIds[t];return delete this.pendingDeferIds[t],window.clearTimeout(t),this.taskTracker.completeTask((()=>{}),e),!0}return!1}}class Ui{$get=["$$taskTrackerFactory",t=>new Ii(t)]}function qi(){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 Hi,Fi,Bi,zi;function Wi(){this.$get=["$q","$$animateAsyncRun","$timeout",function(t,e,n){return Hi=t,Fi=e,Bi=n,Gi}]}class Gi{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=Fi();this._doneCallbacks=[],this._tick=t=>{document.hidden?(t=>{Bi(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=Hi(((e,n)=>{t.done((t=>{!1===t?n():e()}))}))}return this.promise}then(t,e){return this.getPromise().then(t,e)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}pause(){this.host.pause&&this.host.pause()}resume(){this.host.resume&&this.host.resume()}end(){this.host.end&&this.host.end(),this._resolve(!0)}cancel(){this.host.cancel&&this.host.cancel(),this._resolve(!1)}complete(t){0===this._state&&(this._state=1,this._tick((()=>{this._resolve(t)})))}_resolve(t){2!==this._state&&(this._doneCallbacks.forEach((e=>{e(t)})),this._doneCallbacks.length=0,this._state=2)}}class Ki{$get=()=>new Map}const Yi=(t,e)=>{zi.error(t,e)};function Qi(){this.$get=["$log",function(t){return zi=t,Yi}]}function Zi(){return function(t,e,n,r){if(!$(t)){if(null==t)return t;throw ct("filter")("notarray","Expected array but received: {0}",t)}let i;r=r||"$";let s=!1;switch(Xi(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=H:C(e)||(e=function(t,e){return!m(t)&&(null===t||null===e?t===e:!(v(e)||v(t)&&!D(t))&&(t=`${t}`.toLowerCase(),e=`${e}`.toLowerCase(),-1!==t.indexOf(e)))});return s=function(s){return i&&!v(s)?Ji(s,t[n],e,n,!1):Ji(s,t,e,n,r)},s}(e,n,r,s);break;default:return t}return Array.prototype.filter.call(t,i)}}function Ji(t,e,n,r,i,s){const o=Xi(t),a=Xi(e);if("string"===a&&"!"===e.charAt(0))return!Ji(t,e.substring(1),n,r,i);if(Array.isArray(t))return t.some((t=>Ji(t,e,n,r,i)));switch(o){case"object":if(i){for(let i in t)if(i.charAt&&"$"!==i.charAt(0)&&Ji(t[i],e,n,r,!0))return!0;return!s&&Ji(t,e,n,r,!1)}if("object"===a){for(let i in e){const s=e[i];if(C(s)||m(s))continue;const o=i===r;if(!Ji(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 Xi(t){return null===t?"null":typeof t}function ts(){return function(t,e){return m(e)&&(e=2),Y(t,e)}}function es(){return function(t,e,n){return V(e=Math.abs(Number(e))===1/0?Number(e):N(e))?t:(b(t)&&(t=t.toString()),$(t)?(n=(n=!n||isNaN(n)?0:N(n))<0?Math.max(0,t.length+n):n,e>=0?ns(t,n,n+e):0===n?ns(t,e,t.length):ns(t,Math.max(0,n+e),n)):t)}}function ns(t,e,n){return y(t)?t.slice(e,n):[].slice.call(t,e,n)}function rs(t){return function(r,i,s,o){if(null==r)return r;if(!$(r))throw ct("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(C(e))r=e;else if(y(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=C(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(C(t.valueOf)&&e(t=t.valueOf()))return t;if(D(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 is(t){const e=function(e,n,r){return t.is(e,n,r)};return e.$stateful=!0,e}function ss(t){const e=function(e,n,r){return t.includes(e,n,r)};return e.$stateful=!0,e}function os(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",Zi),n("json",ts),n("limitTo",es),n("orderBy",rs),n("isState",is),n("includedByState",ss)}rs.$inject=["$parse"],is.$inject=["$state"],ss.$inject=["$state"],os.$inject=["$provide"];class as{constructor(){this.errorOn=!0}$get=["$rootScope","$exceptionHandler",function(t,e){return function(t,e,n){const r=ct("$q");let i=0;const s=[];class o{constructor(){this.promise=new a,this.resolve=t=>h(this.promise,t),this.reject=t=>p(this.promise,t)}}class a{constructor(){this.$$state={status:0,pending:void 0,processScheduled:!1,pur:!1}}then(t,e){if(m(t)&&m(e))return this;const n=new a;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push({result:n,onFulfilled:t,onRejected:e}),this.$$state.status>0&&u(this.$$state),n}catch(t){return this.then(null,t)}finally(t){return this.then((e=>g(e,y,t)),(e=>g(e,$,t)))}}function c(e){e.processScheduled=!1;try{for(let t=0,n=e.pending.length;t<n;++t){e.pur=!0;const n=e.pending[t].result;let r;r=1===e.status?e.pending[t].onFulfilled:e.pending[t].onRejected;try{C(r)?h(n,r(e.value)):1===e.status?h(n,e.value):p(n,e.value)}catch(t){p(n,t)}}}finally{--i,n&&0===i&&t(l),e.pending=void 0}}function l(){for(;!i&&s.length;){const t=s.shift();if(!cs(t)){t.pur=!0;const n=`Possibly unhandled rejection: ${lt(t.value)}`;E(t.value)?e(t.value,n):e(n)}}}function u(e){!n||e.pending||2!==e.status||cs(e)||(0===i&&0===s.length&&t(l),s.push(e)),!e.processScheduled&&e.pending&&(e.processScheduled=!0,++i,t((()=>{c(e)})))}function h(t,e){t.$$state.status||(e===t?f(t,r("qcycle","Expected promise to be resolved with value other than itself '{0}'",e)):d(t,e))}function d(t,e){let n,r=!1;try{(v(e)||C(e))&&(n=e.then),C(n)?(t.$$state.status=-1,n.call(e,i,s)):(t.$$state.value=e,t.$$state.status=1,u(t.$$state))}catch(t){s(t)}function i(e){r||(r=!0,d(t,e))}function s(e){r||(r=!0,f(t,e))}}function p(t,e){t.$$state.status||f(t,e)}function f(t,e){t.$$state.value=e,t.$$state.status=2,u(t.$$state)}function $(t){const e=new a;return p(e,t),e}function g(t,e,n){let r=null;try{C(n)&&(r=n())}catch(t){return $(t)}return k(r)?r.then((()=>e(t)),$):e(t)}function y(t,e,n){const r=new a;return h(r,t),r.then(e,n)}function b(t){const e=new a;let n=0;const r=Array.isArray(t)?[]:{};return Object.entries(t).forEach((([t,i])=>{n++,y(i).then((i=>{r[t]=i,--n||h(e,r)}),(t=>{p(e,t)}))})),0===n&&h(e,r),e}function w(t){const e=new o;return t.forEach((t=>{y(t).then(e.resolve,e.reject)})),e.promise}function O(t){if(!C(t))throw r("norslvr","Expected resolverFn, got '{0}'",t);const e=new a;return t((t=>h(e,t)),(t=>p(e,t))),e}return O.defer=()=>new o,O.reject=$,O.resolve=y,O.all=b,O.race=w,O}((e=>{t.$evalAsync(e)}),e,this.errorOn)}];errorOnUnhandledRejections(t){return g(t)?(this.errorOn=t,this):this.errorOn}}function cs(t){return!!t.pur}function ls(t){t.$$state&&(t.$$state.pur=!0)}const us=ct("$interval"),hs=new Map;function ds(){this.$get=["$$intervalFactory",function(t){function e(t){window.clearInterval(t),hs.delete(t)}const n=t((function(t,e,n){const r=window.setInterval(t,e);return hs.set(r,n),r}),e);return n.cancel=function(t){if(!t)return!1;if(!Object.prototype.hasOwnProperty.call(t,"$$intervalId"))throw us("badprom","`$interval.cancel()` called with a promise that was not generated by `$interval()`.");if(!hs.has(t.$$intervalId))return!1;const n=t.$$intervalId,r=hs.get(n);return ls(r.promise),r.reject("canceled"),e(n),!0},n}]}const ps=1,fs=2;class $s{constructor(t){this.$filter=t}compile(t){let e,n,r=ms(t,this.$filter);(e=function(t){if(1===t.body.length&&gs(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=g(s)?+s:0,e?{value:s}:s}}"unary-"(t,e){return function(n,r,i){let s=t(n,r,i);return s=g(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=(g(o)?o:0)-(g(a)?a:0);return n?{value:c}:c}}"binary*"(t,e,n){return function(r,i,s){const o=t(r,i,s)*e(r,i,s);return n?{value:o}:o}}"binary/"(t,e,n){return function(r,i,s){const o=t(r,i,s)/e(r,i,s);return n?{value:o}:o}}"binary%"(t,e,n){return function(r,i,s){const o=t(r,i,s)%e(r,i,s);return n?{value:o}:o}}"binary==="(t,e,n){return function(r,i,s){const o=t(r,i,s)===e(r,i,s);return n?{value:o}:o}}"binary!=="(t,e,n){return function(r,i,s){const o=t(r,i,s)!==e(r,i,s);return n?{value:o}:o}}"binary=="(t,e,n){return function(r,i,s){const o=t(r,i,s)==e(r,i,s);return n?{value:o}:o}}"binary!="(t,e,n){return function(r,i,s){const o=t(r,i,s)!=e(r,i,s);return n?{value:o}:o}}"binary<"(t,e,n){return function(r,i,s){const o=t(r,i,s)<e(r,i,s);return n?{value:o}:o}}"binary>"(t,e,n){return function(r,i,s){const o=t(r,i,s)>e(r,i,s);return n?{value:o}:o}}"binary<="(t,e,n){return function(r,i,s){const o=t(r,i,s)<=e(r,i,s);return n?{value:o}:o}}"binary>="(t,e,n){return function(r,i,s){const o=t(r,i,s)>=e(r,i,s);return n?{value:o}:o}}"binary&&"(t,e,n){return function(r,i,s){const o=t(r,i,s)&&e(r,i,s);return n?{value:o}:o}}"binary||"(t,e,n){return function(r,i,s){const o=t(r,i,s)||e(r,i,s);return n?{value:o}:o}}"ternary?:"(t,e,n,r){return function(i,s,o){const a=t(i,s,o)?e(i,s,o):n(i,s,o);return r?{value:a}:a}}value(t,e){return function(){return e?{context:void 0,name:void 0,value:t}:t}}identifier(t,e,n){return function(r,i){const s=i&&t in i?i:r;n&&1!==n&&s&&null==s[t]&&(s[t]={});const o=s?s[t]:void 0;return e?{context:s,name:t,value:o}:o}}computedMember(t,e,n,r){return function(i,s,o){const a=t(i,s,o);let c,l;return null!=a&&(c=e(i,s,o),c=function(t){return`${t}`}(c),r&&1!==r&&a&&!a[c]&&(a[c]={}),l=a[c]),n?{context:a,name:c,value:l}:l}}nonComputedMember(t,e,n,r){return function(i,s,o){const a=t(i,s,o);r&&1!==r&&a&&null==a[e]&&(a[e]={});const c=null!=a?a[e]:void 0;return n?{context:a,name:e,value:c}:c}}}function ms(t,e,n){let r,i,s,o,a,c,l,u,h,d,p,f=t;const $=f.isPure=function(t,e){switch(t.type){case Or.MemberExpression:if(t.computed)return!1;break;case Or.UnaryExpression:return ps;case Or.BinaryExpression:return"+"!==t.operator&&ps;case Or.CallExpression:return!1}return void 0===e?fs:e}(t,n);switch(t.type){case Or.Program:return r=!0,f.body.forEach((t=>{let n=ms(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=ms(f.argument,e,$);return f.constant=m.constant,f.toWatch=m.toWatch,f;case Or.BinaryExpression:return o=ms(f.left,e,$),a=ms(f.right,e,$),f.constant=o.constant&&a.constant,f.toWatch=o.toWatch.concat(a.toWatch),f;case Or.LogicalExpression:return o=ms(f.left,e,$),a=ms(f.right,e,$),f.constant=o.constant&&a.constant,f.toWatch=f.constant?[]:[t],f;case Or.ConditionalExpression:return c=ms(t.test,e,$),l=ms(t.alternate,e,$),u=ms(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=ms(t.object,e,$),t.computed&&(d=ms(t.property,e,$)),f.constant=h.constant&&(!f.computed||d.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=ms(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=ms(t.left,e,$),a=ms(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=ms(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=ms(t.value,e,$),r=r&&m.constant,i.push.apply(i,m.toWatch),t.computed&&(p=ms(t.key,e,!1),r=r&&p.constant,i.push.apply(i,p.toWatch))})),f.constant=r,f.toWatch=i,f;case Or.ThisExpression:case Or.LocalsExpression:return f.constant=!1,f.toWatch=[],f}}function gs(t){return t.type===Or.Identifier||t.type===Or.MemberExpression}const vs=ct("$parse"),ys={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},bs=new Set("+ - * / % === !== == != < > <= >= && || ! = |".split(" "));class ws{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=bs.has(t),i=bs.has(e),s=bs.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=g(e)?`s ${e}-${this.index} [${this.text.substring(e,n)}]`:` ${n}`;throw vs("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():ys[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 Es=ct("$parse"),Cs=new Map(Object.entries({true:!0,false:!1,null:null,undefined:void 0}));class Os{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(!gs(t))throw Es("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]):Cs.has(this.peek().text)?t={type:Or.Literal,value:Cs.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 Es("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 Es("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 Es("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 Ss{constructor(t,e){this.ast=new Os(t),this.astCompiler=new $s(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 xs(){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:C(e)&&e,isIdentifierContinue:C(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 ws(i);o=new Ss(c,r).parse(e),t[a]=ks(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===fs?function(e){return t(e)}:t})))),ks(r)}}]}function As(t,e,n,r){const i=t.$watch((()=>(i(),r(t))),e,n);return i}function ks(t){return t.constant?t.$$watchDelegate=As:t.oneTime?t.$$watchDelegate=Ts:t.inputs&&(t.$$watchDelegate=_s),t}function _s(t,e,n,r){let i,s=r.inputs;if(1===s.length){let o=js,a=s[0];return t.$watch((t=>{const e=a(t);return js(e,o,a.isPure)||(i=r(t,void 0,void 0,[e]),o=e&&Vs(e)),i}),e,n)}{const o=[],a=[];for(let t=0,e=s.length;t<e;t++)o[t]=js,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=!js(r,o[n],s[n].isPure)))&&(a[n]=r,o[n]=r&&Vs(r))}return e&&(i=r(t,void 0,void 0,a)),i}),e,n)}}function Ts(t,e,n,r){const i=r.literal?Ns:g;let s,o;const a=r.$$intercepted||r,c=r.$$interceptor||(t=>t),l=r.inputs&&!a.inputs;function u(){i(o)&&s()}function h(t,e,n,r){return o=l&&r?r[0]:a(t,e,n,r),i(o)&&t.$$postDigest(u),c(o)}return h.literal=r.literal,h.constant=r.constant,h.inputs=r.inputs,h.oneTime=void 0,ks(h),s=t.$watch(h,e,n),s}function js(t,e,n){return null==t||null==e?t===e:!("object"==typeof t&&"object"==typeof(t=Vs(t))&&!n)&&(t===e||t!=t&&e!=e)}function Ns(t){let e=!0;return Object.values(t).forEach((t=>{g(t)||(e=!1)})),e}function Vs(t){return C(t.valueOf)?t.valueOf():{}.constructor.prototype.valueOf.call(t)}const Rs=ct("$interpolate");function Ps(t,e){throw Rs("interr","Can't interpolate: {0}\n{1}",t,e.toString())}class Ds{constructor(){this.start="{{",this.end="}}"}startSymbol(t){return t?(this.start=t,this):this.start}endSymbol(t){return t?(this.end=t,this):this.end}$get=["$parse","$sce",function(t,e){const n=this,r=n.start.length,i=n.end.length,s=new RegExp(this.start.replace(/./g,a),"g"),o=new RegExp(n.end.replace(/./g,a),"g");function a(t){return`\\\\\\${t}`}function c(t){return t.replace(s,n.start).replace(o,n.end)}function l(s,o,a,l){const u=a===e.URL||a===e.MEDIA_URL;if(!s.length||-1===s.indexOf(n.start)){if(o)return;let t=c(s);u&&(t=e.getTrusted(a,t));const n=P(t);return n.exp=s,n.expressions=[],n.$$watchDelegate=As,n}let h,d;l=!!l;let p=0;const f=[];let $;const v=s.length;let y;const b=[],w=[];let E;for(;p<v;){if(-1===(h=s.indexOf(n.start,p))||-1===(d=s.indexOf(n.end,h+r))){p!==v&&b.push(c(s.substring(p)));break}p!==h&&b.push(c(s.substring(p,h))),y=s.substring(h+r,d),f.push(y),p=d+i,w.push(b.length),b.push("")}E=1===b.length&&1===w.length;const C=u&&E?void 0:function(t){try{return t=a&&!u?e.getTrusted(a,t):e.valueOf(t),l&&!g(t)?t:B(t)}catch(t){Ps(s,t)}};if($=f.map((e=>t(e,C))),!o||f.length){const t=function(t){for(let e=0,n=f.length;e<n;e++){if(l&&m(t[e]))return;b[w[e]]=t[e]}return u?e.getTrusted(a,E?b[0]:b.join("")):(a&&b.length>1&&function(t){throw Rs("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required. See http://docs.angularjs.org/api/ng.$sce",t)}(s),b.join(""))};return j((e=>{let n=0;const r=f.length,i=new Array(r);try{for(;n<r;n++)i[n]=$[n](e);return t(i)}catch(t){Ps(s,t)}}),{exp:s,expressions:f,$$watchDelegate(e,n){let r;return e.$watchGroup($,((i,s)=>{const o=t(i);n.call(this,o,i!==s?r:o,e),r=o}))}})}}return l.startSymbol=function(){return n.start},l.endSymbol=function(){return n.end},l}]}function Ms(){this.$get=["$q","$rootScope",function(t,e){return function(n,r){return function(i,s,o){const a=arguments.length>4,c=a?W(arguments,4):[];let l=0;const u=t.defer(),{promise:h}=u;function d(){a?i.apply(null,c):i(l)}return o=g(o)?o:0,h.$$intervalId=n((function(){e.$evalAsync(d),l++,o>0&&l>=o&&(u.resolve(l),r(h.$$intervalId)),e.$apply()}),s,u),h}}}]}let Ls={},Is="";function Us(t){try{return decodeURIComponent(t)}catch(e){return t}}const qs="application/json",Hs={"Content-Type":`${qs};charset=utf-8`},Fs=/^\[|^\{(?!\{)/,Bs={"[":/]$/,"{":/}$/},zs=/^\)]\}',?\n/,Ws=ct("$http");function Gs(t){return v(t)?w(t)?t.toISOString():Y(t):t}function Ks(){this.$get=function(){return function(t){if(!t)return"";const e=[];return Object.keys(t).sort().forEach((n=>{const r=t[n];null===r||m(r)||C(r)||(Array.isArray(r)?r.forEach((t=>{e.push(`${tt(n)}=${tt(Gs(t))}`)})):e.push(`${tt(n)}=${tt(Gs(r))}`))})),e.join("&")}}}function Ys(t,e){if(y(t)){const r=t.replace(zs,"").trim();if(r){const i=e("Content-Type"),s=i&&0===i.indexOf(qs);if(s||function(t){const e=t.match(Fs);return e&&Bs[e[0]].test(t)}(r))try{t=y(n=r)?JSON.parse(n):n}catch(e){if(!s)return t;throw Ws("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',t,e)}}}var n;return t}function Qs(t){const e=Object.create(null);let n;function r(t,n){t&&(e[t]=e[t]?`${e[t]}, ${n}`:n)}return y(t)?t.split("\n").forEach((t=>{n=t.indexOf(":"),r(t.substring(0,n).trim().toLowerCase(),_(t.substring(n+1)))})):v(t)&&Object.entries(t).forEach((([t,e])=>{r(f(t),_(e))})),e}function Zs(t){let e;return function(n){if(e||(e=Qs(t)),n){let t=e[f(n)];return void 0===t&&(t=null),t}return e}}function Js(t,e,n,r){return C(r)?r(t,e,n):(Array.isArray(r)&&r.forEach((r=>{t=r(t,e,n)})),t)}function Xs(t){return t>=200&&t<300}function to(){const t=this.defaults={transformResponse:[Ys],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:nt(Hs),put:nt(Hs),patch:nt(Hs)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"};let e=!1;this.useApplyAsync=function(t){return g(t)?(e=!!t,this):e};const n=this.interceptors=[],r=this.xsrfTrustedOrigins=[];Object.defineProperty(this,"xsrfWhitelistedOrigins",{get(){return this.xsrfTrustedOrigins},set(t){this.xsrfTrustedOrigins=t}}),this.$get=["$browser","$httpBackend","$rootScope","$q","$injector","$sce",function(i,s,o,a,c,l){const u=new Map;t.paramSerializer=y(t.paramSerializer)?c.get(t.paramSerializer):t.paramSerializer;const h=[];n.forEach((t=>{h.unshift(y(t)?c.get(t):c.invoke(t))}));const d=function(t){const e=[qe].concat(t.map(Fe));return function(t){const n=Fe(t);return e.some(ze.bind(null,n))}}(r);function p(n){if(!v(n))throw ct("$http")("badreq","Http request configuration must be an object. Received: {0}",n);if(!y(l.valueOf(n.url)))throw ct("$http")("badreq","Http request configuration url must be a string or a $sce trusted object. Received: {0}",n.url);const r=j({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},n);var $;r.headers=function(e){let n=t.headers,r=j({},e.headers);return n=j({},n.common,n[f(e.method)]),Object.keys(n).forEach((t=>{const e=f(t);Object.keys(r).some((t=>f(t)===e))||(r[t]=n[t])})),function(t,e){let n;const r={};return Object.entries(t).forEach((([t,i])=>{C(i)?(n=i(e),null!=n&&(r[t]=n)):r[t]=i})),r}(r,nt(e))}(n),r.method=y($=r.method)?$.toUpperCase():$,r.paramSerializer=y(r.paramSerializer)?c.get(r.paramSerializer):r.paramSerializer,i.$$incOutstandingRequestCount("$http");const b=[],w=[];let E=a.resolve(r);return h.forEach((t=>{(t.request||t.requestError)&&b.unshift(t.request,t.requestError),(t.response||t.responseError)&&w.push(t.response,t.responseError)})),E=O(E,b),E=E.then((function(n){const{headers:r}=n,i=Js(n.data,Zs(r),void 0,n.transformRequest);m(i)&&Object.keys(r).forEach((t=>{"content-type"===f(t)&&delete r[t]}));m(n.withCredentials)&&!m(t.withCredentials)&&(n.withCredentials=t.withCredentials);return function(n,r){const i=a.defer(),{promise:c}=i;let h,f;const $=n.headers;let{url:b}=n;y(b)||(b=l.valueOf(b));b=function(t,e){e.length>0&&(t+=(-1===t.indexOf("?")?"?":"&")+e);return t}(b,n.paramSerializer(n.params)),p.pendingRequests.push(n),c.then(S,S),(n.cache||t.cache)&&!1!==n.cache&&"GET"===n.method&&(h=v(n.cache)?n.cache:v(t.cache)?t.cache:u);h&&(f=h.get(b),g(f)?k(f)?f.then(O,O):Array.isArray(f)?C(f[1],f[0],nt(f[2]),f[3],f[4]):C(f,200,{},"OK","complete"):h.set(b,c));if(m(f)){const e=d(n.url)?function(){let t,e,n,r,i;const s=document.cookie;if(s!==Is)for(Is=s,t=Is.split("; "),Ls={},n=0;n<t.length;n++)e=t[n],r=e.indexOf("="),r>0&&(i=Us(e.substring(0,r)),m(Ls[i])&&(Ls[i]=Us(e.substring(r+1))));return Ls}()[n.xsrfCookieName||t.xsrfCookieName]:void 0;e&&($[n.xsrfHeaderName||t.xsrfHeaderName]=e),s(n.method,b,r,E,$,n.timeout,n.withCredentials,n.responseType,w(n.eventHandlers),w(n.uploadEventHandlers))}return c;function w(t){if(t){const n={};return Object.entries(t).forEach((([t,r])=>{n[t]=function(t){function n(){r(t)}e?o.$applyAsync(n):o.$$phase!==Se.NONE?n():o.$apply(n)}})),n}}function E(t,n,r,i,s){function a(){C(n,t,r,i,s)}h&&(Xs(t)?h.set(b,[t,n,Qs(r),i,s]):h.delete(b)),e?o.$applyAsync(a):(a(),o.$$phase||o.$apply())}function C(t,e,r,s,o){(Xs(e=e>=-1?e:0)?i.resolve:i.reject)({data:t,status:e,headers:Zs(r),config:n,statusText:s,xhrStatus:o})}function O(t){C(t.data,t.status,nt(t.headers()),t.statusText,t.xhrStatus)}function S(){const t=p.pendingRequests.indexOf(n);-1!==t&&p.pendingRequests.splice(t,1)}}(n,i).then(S,S)})),E=O(E,w),E=E.finally((function(){i.$$completeOutstandingRequest((()=>{}),"$http")})),E;function O(t,e){for(let n=0,r=e.length;n<r;){const r=e[n++],i=e[n++];t=t.then(r,i)}return e.length=0,t}function S(t){const e=j({},t);return e.data=Js(t.data,t.headers,t.status,r.transformResponse),Xs(t.status)?e:a.reject(e)}}return p.pendingRequests=[],function(...t){t.forEach((t=>{p[t]=function(e,n){return p(j({},n||{},{method:t,url:e}))}}))}("get","delete","head"),function(...t){t.forEach((t=>{p[t]=function(e,n,r){return p(j({},r||{},{method:t,url:e,data:n}))}}))}("post","put","patch"),p.defaults=t,p}]}function eo(){this.$get=["$browser",function(t){return function(t){return function(e,n,r,i,s,o,a,c,l,u){n=n||t.url();const h=new XMLHttpRequest;let d=!1;if(h.open(e,n,!0),s&&Object.entries(s).forEach((([t,e])=>{g(e)&&h.setRequestHeader(t,e)})),h.onload=function(){const t=h.statusText||"";let e=h.status;0===e&&(e=h.response?200:"file"===Fe(n).protocol?404:0),$(i,e,h.response,h.getAllResponseHeaders(),t,"complete")},h.onerror=function(){$(i,-1,null,null,"","error")},h.ontimeout=function(){$(i,-1,null,null,"","timeout")},h.onabort=function(){$(i,-1,null,null,"",d?"timeout":"abort")},l&&l&&Object.entries(l).forEach((([t,e])=>{h.addEventListener(t,e)})),u&&Object.entries(u).forEach((([t,e])=>{h.upload.addEventListener(t,e)})),a&&(h.withCredentials=!0),c)try{h.responseType=c}catch(t){if("json"!==c)throw t}if(h.send(m(r)?null:r),o>0)var p=t.defer((()=>{f("timeout")}),o);else k(o)&&o.then((()=>{f(g(o.$$timeoutId)?"timeout":"abort")}));function f(t){d="timeout"===t,h&&h.abort()}function $(e,n,r,i,s,o){g(p)&&t.cancel(p),e(n,r,i,s,o)}}}(t)}]}const no={http:80,https:443,ftp:21},ro=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,io=ct("$location");class so{constructor(t,e){const n=Fe(t);this.appBase=t,this.appBaseNoFile=e,this.$$absUrl="",this.$$html5=!1,this.$$replace=!1,this.$$protocol=n.protocol,this.$$host=n.hostname,this.$$port=N(n.port)||no[n.protocol]||null,this.$$path=void 0,this.$$hash=void 0,this.$$urlUpdatedByLocation=!1}absUrl(){return this.$$absUrl}url(t){if(m(t))return this.$$url;const e=ro.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(m(t))return this.$$path;let e=null!==t?t.toString():"";return this.$$path="/"===e.charAt(0)?e:`/${e}`,this.$$compose(),this}hash(t){return m(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(y(t)||b(t))t=t.toString(),this.$$search=Z(t);else{if(!v(t))throw io("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:m(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this}$$compose(){this.$$url=function(t,e,n){const r=function(t){const e=[];return t&&Object.entries(t).forEach((([t,n])=>{Array.isArray(n)?n.forEach((n=>{e.push(tt(t,!0)+(!0===n?"":`=${tt(n,!0)}`))})):e.push(tt(t,!0)+(!0===n?"":`=${tt(n,!0)}`))})),e.length?e.join("&"):""}(e),i=n?`#${X(n)}`:"";return function(t){const e=t.split("/");let n=e.length;for(;n--;)e[n]=X(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 oo&&this.$$html5))throw io("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=m(t)?null:t,this.$$urlUpdatedByLocation=!0,this}$$parseLinkUrl(t,e){throw new Error(`Method not implemented ${t} ${e}`)}$$parse(t){throw new Error(`Method not implemented ${t}`)}}class oo extends so{constructor(t,e,n){super(t,e),this.$$html5=!0,this.basePrefix=n||""}$$parse(t){const e=ho(this.appBaseNoFile,t);if(!y(e))throw io("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,this.appBaseNoFile);lo(e,this,!0),this.$$path||(this.$$path="/"),this.$$compose()}$$normalizeUrl(t){return this.appBaseNoFile+t.substring(1)}$$parseLinkUrl(t,e){if(e&&"#"===e[0])return this.hash(e.slice(1)),!0;let n,r,i;return g(n=ho(this.appBase,t))?(r=n,i=this.basePrefix&&g(n=ho(this.basePrefix,n))?this.appBaseNoFile+(ho("/",n)||n):this.appBase+r):g(n=ho(this.appBaseNoFile,t))?i=this.appBaseNoFile+n:this.appBaseNoFile===`${t}/`&&(i=this.appBaseNoFile),i&&this.$$parse(i),!!i}}class ao extends so{constructor(t,e,n){super(t,e),this.hashPrefix=n}$$parse(t){const e=ho(this.appBase,t)||ho(this.appBaseNoFile,t);let n;m(e)||"#"!==e.charAt(0)?this.$$html5?n=e:(n="",m(e)&&(this.appBase=t,this.replace())):(n=ho(this.hashPrefix,e),m(n)&&(n=e)),lo(n,this,!1),this.$$path=function(t,e,n){const r=/^\/[A-Z]:(\/.*)/;let i;uo(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 po(this.appBase)===po(t)&&(this.$$parse(t),!0)}}class co{constructor(){this.hashPrefixConf="!",this.html5ModeConf={enabled:!1,requireBase:!0,rewriteLinks:!0}}setHashPrefix(t){this.hashPrefixConf=t}getHashPrefix(){return this.hashPrefixConf}setHtml5Mode(t){if(A(t)&&(this.html5ModeConf.enabled=t),v(t)){const e=t;g(e.enabled)&&A(e.enabled)&&(this.html5ModeConf.enabled=e.enabled),g(e.requireBase)&&A(e.requireBase)&&(this.html5ModeConf.requireBase=e.requireBase),g(e.rewriteLinks)&&(A(e.rewriteLinks)||y(e.rewriteLinks))&&(this.html5ModeConf.rewriteLinks=e.rewriteLinks)}}getHtml5Mode(){return this.html5ModeConf}$get=["$rootScope","$browser","$rootElement",(t,e,n)=>{let r,i;const s=e.baseHref(),o=e.url();let a;if(this.getHtml5Mode().enabled){if(!s&&this.getHtml5Mode().requireBase)throw io("nobase","$location in HTML5 mode requires a <base> tag to be present!");a=(c=o).substring(0,c.indexOf("/",c.indexOf("//")+2))+(s||"/"),i=oo}else a=po(o),i=ao;var c;const l=function(t){return t.substring(0,po(t).lastIndexOf("/")+1)}(a);r=new i(a,l,`#${this.getHashPrefix()}`),r.$$parseLinkUrl(o,o),r.$$state=e.state();const u=/^\s*(javascript|mailto):/i;function h(t,n){const i=r.url(),s=r.$$state;try{e.url(t,n),r.$$state=e.state()}catch(t){throw r.url(i),r.$$state=s,t}}n.on("click",(i=>{const s=this.getHtml5Mode().rewriteLinks;if(!s||i.ctrlKey||i.metaKey||i.shiftKey||2===i.which||2===i.button)return;let o=xt(i.target);for(;"a"!==o[0].nodeName.toLowerCase();)if(o[0]===n[0]||!(o=o.parent())[0])return;if(y(s)&&m(o.attr(s)))return;let a=o[0].href;const c=o.attr("href")||o.attr("xlink:href");v(a)&&"[object SVGAnimatedString]"===a.toString()&&(a=Fe(a.animVal).href),u.test(a)||!a||o.attr("target")||i.isDefaultPrevented()||r.$$parseLinkUrl(a,c)&&(i.preventDefault(),r.absUrl()!==e.url()&&t.$apply())})),r.absUrl()!==o&&e.url(r.absUrl(),!0);let d=!0;return e.onUrlChange(((e,n)=>{uo(e,l)?(t.$evalAsync((()=>{const i=r.absUrl(),s=r.$$state;let o;r.$$parse(e),r.$$state=n,o=t.$broadcast("$locationChangeStart",e,i,n,s).defaultPrevented,r.absUrl()===e&&(o?(r.$$parse(i),r.$$state=s,h(i,s)):(d=!1,p(i,s)))})),t.$$phase===Se.NONE&&t.$digest()):window.location.href=e})),t.$watch((()=>{if(d||r.$$urlUpdatedByLocation){r.$$urlUpdatedByLocation=!1;const s=e.url(),o=r.absUrl(),a=e.state(),c=!((n=s)===(i=o)||Fe(n).href===Fe(i).href)||r.$$html5&&a!==r.$$state;(d||c)&&(d=!1,t.$evalAsync((()=>{const e=r.absUrl(),{defaultPrevented:n}=t.$broadcast("$locationChangeStart",e,s,r.$$state,a);r.absUrl()===e&&(n?(r.$$parse(s),r.$$state=a):(c&&h(e,a===r.$$state?null:r.$$state),p(s,a)))})))}var n,i;r.$$replace=!1})),r;function p(e,n){t.$broadcast("$locationChangeSuccess",r.absUrl(),e,r.$$state,n)}}]}function lo(t,e,n){if(/^\s*[\\/]{2,}/.test(t))throw io("badpath",'Invalid url "{0}".',t);const r="/"!==t.charAt(0);r&&(t=`/${t}`);const i=Fe(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=Z(i.search),e.$$hash=decodeURIComponent(i.hash),e.$$path&&"/"!==e.$$path.charAt(0)&&(e.$$path=`/${e.$$path}`)}function uo(t,e){return t.slice(0,e.length)===e}function ho(t,e){if(uo(e,t))return e.substring(t.length)}function po(t){const e=t.indexOf("#");return-1===e?t:t.substring(0,e)}let fo={debug:void 0,error:void 0,info:void 0,log:void 0,warn:void 0};class $o{constructor(){this.debug=!0}debugEnabled(t){return void 0!==t?(this.debug=t,this):this.debug}formatError(t){return E(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 fo={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)}})()},fo}}class mo{$get=["$log",t=>new go(t)]}class go{constructor(t){this.log=t,this.taskCounts={},this.taskCallbacks=[],this.ALL_TASKS_TYPE="$$all$$",this.DEFAULT_TASK_TYPE="$$default$$"}completeTask(t,e=this.DEFAULT_TASK_TYPE){try{t()}finally{this.taskCounts[e]&&(this.taskCounts[e]--,this.taskCounts[this.ALL_TASKS_TYPE]--);const t=this.taskCounts[e],n=this.taskCounts[this.ALL_TASKS_TYPE];if(!n||!t){const t=n?()=>this.getLastCallbackForType(e):this.getLastCallback.bind(this);let r;for(;r=t();)try{r()}catch(t){this.log.error(t)}}}}incTaskCount(t=this.DEFAULT_TASK_TYPE){this.taskCounts[t]=(this.taskCounts[t]||0)+1,this.taskCounts[this.ALL_TASKS_TYPE]=(this.taskCounts[this.ALL_TASKS_TYPE]||0)+1}notifyWhenNoPendingTasks(t,e=this.ALL_TASKS_TYPE){this.taskCounts[e]?this.taskCallbacks.push({type:e,cb:t}):t()}getLastCallback(){const t=this.taskCallbacks.pop();return t?t.cb:void 0}getLastCallbackForType(t){for(let e=this.taskCallbacks.length-1;e>=0;--e){const n=this.taskCallbacks[e];if(n.type===t)return this.taskCallbacks.splice(e,1),n.cb}}}var vo=ct("$templateRequest");function yo(){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++,y(a)&&n.has(a)||(a=s.getTrustedResourceUrl(a));var l=r.defaults&&r.defaults.transformResponse;return Array.isArray(l)?l=l.filter((function(t){return t!==Ys})):l===Ys&&(l=null),r.get(a,j({cache:n,transformResponse:l},t)).finally((function(){o.totalPendingRequests--})).then((function(t){return n.set(a,t.data),t.data}),(function(t){c||(t=vo("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 bo=ct("$timeout");class wo{$get=["$rootScope","$browser","$q","$exceptionHandler",(t,e,n,r)=>{const i={};function s(s,o,a=!0){const c=W(arguments,3),l=g(a)&&!a,u=n.defer(),{promise:h}=u;let d;return d=e.defer((()=>{try{u.resolve(s.apply(null,c))}catch(t){u.reject(t),r(t)}finally{delete i[h.$$timeoutId]}l||t.$apply()}),o,"$timeout"),h.$$timeoutId=d,i[d]=u,h}return s.cancel=function(t){if(!t)return!1;if(!Object.prototype.hasOwnProperty.call(t,"$$timeoutId"))throw bo("badprom","`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.");if(!Object.prototype.hasOwnProperty.call(i,t.$$timeoutId))return!1;const n=t.$$timeoutId,r=i[n];return ls(r.promise),r.reject("canceled"),delete i[n],e.cancel(n)},s}]}function Eo(){let t=/^\s*(https?|s?ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationTrustedUrlList=function(e){return g(e)?(t=e,this):t},this.imgSrcSanitizationTrustedUrlList=function(t){return g(t)?(e=t,this):e},this.$get=function(){return function(n,r){const i=r?e:t,s=Fe(n&&n.trim()).href;return""===s||s.match(i)?n:`unsafe:${s}`}}}const Co="ng-active",Oo="ng-inactive";class So{constructor(t,e,n,r){this.$element=t,this.$scope=e,this.$attrs=n,this.$animate=r,this.latestKey=0,this.nextAttachId=0,this.messages={},this.renderLater=!1,this.cachedCollection=null,this.head=void 0,this.default=void 0,this.$scope.$watchCollection(this.$attrs.ngMessages||this.$attrs.for,this.render.bind(this))}getAttachId(){return this.nextAttachId++}render(t={}){this.renderLater=!1,this.cachedCollection=t;const e=Ao(this.$scope,this.$attrs.ngMessagesMultiple)||Ao(this.$scope,this.$attrs.multiple),n=[],r={};let i=0,s=this.head,o=!1,a=0;for(;null!=s;){a++;const c=s.message;let l=!1;o||Object.entries(t).forEach((([t,e])=>{if(ko(e)&&!l&&(i++,c.test(t))){if(r[t])return;r[t]=!0,l=!0,c.attach()}})),l?o=!e:n.push(c),s=s.next}n.forEach((t=>{t.detach()}));const c=n.length!==a,l=this.default&&!c&&i>0;l?this.default.attach():this.default&&this.default.detach(),c||l?this.$animate.setClass(this.$element,Co,Oo):this.$animate.setClass(this.$element,Oo,Co)}reRender(){this.renderLater||(this.renderLater=!0,this.$scope.$evalAsync((()=>{this.renderLater&&this.cachedCollection&&this.render(this.cachedCollection)})))}register(t,e,n){if(n)this.default=e;else{const n=this.latestKey.toString();this.messages[n]={message:e},this.insertMessageNode(this.$element[0],t,n),t.$$ngMessageNode=n,this.latestKey++}this.reRender()}deregister(t,e){if(e)delete this.default;else{const e=t.$$ngMessageNode;delete t.$$ngMessageNode,this.removeMessageNode(this.$element[0],t,e),delete this.messages[e]}this.reRender()}findPreviousMessage(t,e){let n=e;const r=[];for(;n&&n!==t;){const t=n.$$ngMessageNode;if(t&&t.length)return this.messages[t];n.childNodes.length&&-1===r.indexOf(n)?(r.push(n),n=n.childNodes[n.childNodes.length-1]):n.previousSibling?n=n.previousSibling:(n=n.parentNode,r.push(n))}}insertMessageNode(t,e,n){const r=this.messages[n];if(this.head){const n=this.findPreviousMessage(t,e);n?(r.next=n.next,n.next=r):(r.next=this.head,this.head=r)}else this.head=r}removeMessageNode(t,e,n){const r=this.messages[n];if(!r)return;const i=this.findPreviousMessage(t,e);i?i.next=r.next:this.head=r.next}}function xo(t){return{require:"ngMessages",restrict:"AE",controller:(e,n,r)=>new So(e,n,r,t)}}function Ao(t,e){return y(e)&&0===e.length||ko(t.$eval(e))}function ko(t){return y(t)?t.length:!!t}function _o(t,e){return{restrict:"AE",require:"^^ngMessages",link(n,r,i){const s=i.ngMessagesInclude||i.src;t(s).then((t=>{n.$$destroyed||y(t)&&!t.trim()||e(t)(n,(t=>{r.after(t)}))}))}}}xo.$inject=["$animate"],_o.$inject=["$templateRequest","$compile"];const To=Vo(!1),jo=Vo(!1),No=Vo(!0);function Vo(t){function e(e){return{restrict:"AE",transclude:"element",priority:1,terminal:!0,require:"^^ngMessages",link(n,r,i,s,o){let a,c,l,u,h,d;if(!t){a=r[0],l=i.ngMessage||i.when,u=i.ngMessageExp||i.whenExp;const t=function(t){c=t?Array.isArray(t)?t:t.split(/[\s,]+/):null,s.reRender()};u?(t(n.$eval(u)),n.$watchCollection(u,t)):t(l)}s.register(a,d={test:t=>function(t,e){if(t)return Array.isArray(t)?t.indexOf(e)>=0:Object.prototype.hasOwnProperty.call(t,e)}(c,t),attach(){h||o(((n,i)=>{e.enter(n,null,r),h=n;const o=h.$$attachId=s.getAttachId();h.on("$destroy",(()=>{h&&h.$$attachId===o&&(s.deregister(a,t),d.detach()),i.$destroy()}))}))},detach(){if(h){const t=h;h=null,e.leave(t)}}},t),n.$on("$destroy",(()=>{s.deregister(a,t)}))}}}return e.$inject=["$animate"],e}const Ro="ngAriaDisable",Po=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],Do=function(t,e){if(-1!==e.indexOf(t[0].nodeName))return!0};function Mo(){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,Ro))return;const c=a.$normalize(n);!t[c]||Do(o,r)||a[c]||s.$watch(a[e],(t=>{t=i?!t:!!t,o.attr(n,t)}))}}this.config=function(e){t=j(t,e)},this.$get=function(){return{config:e=>t[e],$$watchExpr:e}}}function Lo(t){return t.$$watchExpr("ngDisabled","aria-disabled",Po,!1)}function Io(t){return t.$$watchExpr("ngShow","aria-hidden",[],!0)}function Uo(){return{restrict:"A",require:"?ngMessages",link(t,e,n){Object.prototype.hasOwnProperty.call(n,Ro)||e.attr("aria-live")||e.attr("aria-live","assertive")}}}function qo(t,e){return{restrict:"A",compile(n,r){if(Object.prototype.hasOwnProperty.call(r,Ro))return;const i=e(r.ngClick);return function(e,n,r){Do(n,Po)||(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!==Po.indexOf(t.target.nodeName)||t.target.isContentEditable||t.preventDefault(),e.$apply((function(){i(e,{$event:t})})))})))}}}}function Ho(t){return t.$$watchExpr("ngRequired","aria-required",Po,!1)}function Fo(t){return t.$$watchExpr("ngChecked","aria-checked",Po,!1)}function Bo(t){return t.$$watchExpr("ngValue","aria-checked",Po,!1)}function zo(t){return t.$$watchExpr("ngHide","aria-hidden",[],!1)}function Wo(t){return t.$$watchExpr("ngReadonly","aria-readonly",Po,!1)}function Go(t){function e(e,n,r,i){return t.config(n)&&!r.attr(e)&&(i||!Do(r,Po))&&("hidden"!==r.attr("type")||"INPUT"!==r[0].nodeName)}function n(t,e){return!e.attr("role")&&e.attr("type")===t&&!Do(e,Po)}return{restrict:"A",require:"ngModel",priority:200,compile(r,i){if(Object.prototype.hasOwnProperty.call(i,Ro))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 Ko(t){return function(e,n,r){Object.prototype.hasOwnProperty.call(r,Ro)||!t.config("tabindex")||n.attr("tabindex")||Do(n,Po)||n.attr("tabindex",0)}}Lo.$inject=["$aria"],Io.$inject=["$aria"],qo.$inject=["$aria","$parse"],Ho.$inject=["$aria"],Fo.$inject=["$aria"],Bo.$inject=["$aria"],zo.$inject=["$aria"],Wo.$inject=["$aria"],Go.$inject=["$aria"],Ko.$inject=["$aria"];const Yo="$$animateCss",Qo=1e3,Zo=3,Jo=1.5,Xo={transitionDuration:zr,transitionDelay:Br,transitionProperty:Nr+Mr,animationDuration:Fr,animationDelay:Hr,animationIterationCount:Rr+"IterationCount"},ta={transitionDuration:zr,transitionDelay:Br,animationDuration:Fr,animationDelay:Hr};function ea(t,e){return[e?Hr:Br,`${t}s`]}function na(t,e){const n=Object.create(null),r=window.getComputedStyle(t)||{};return Object.entries(e).forEach((([t,e])=>{let i=r[e];if(i){const e=i.charAt(0);("-"===e||"+"===e||e>=0)&&(i=function(t){let e=0;return t.split(/\s*,\s*/).forEach((t=>{"s"===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t=parseFloat(t)||0,e=e?Math.max(t,e):t})),e}(i)),0===i&&(i=null),n[t]=i}})),n}function ra(t){return 0===t||null!=t}function ia(t,e){let n=Nr,r=`${t}s`;return e?n+=Dr:r+=" linear all",[n,r]}function sa(t,e,n){n.forEach((n=>{t[n]=g(t[n])?t[n]:e.style.getPropertyValue(n)}))}function oa(){this.$get=["$$AnimateRunner","$timeout","$$animateCache","$$rAFScheduler","$$animateQueue",function(t,e,n,r,i){const s=function(t,e){e.addClass&&(t[0].classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t[0].classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};const o=[];function a(t){o.push(t),r.waitUntilQuiet((()=>{n.flush();const t=document.body.offsetWidth+1;for(let e=0;e<o.length;e++)o[e](t);o.length=0}))}function c(t,e,r){const i=function(t,e,r,i){let s=n.get(e);s||(s=na(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,Xo),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=Zr(structuredClone(l)));const u={},h=ni(r);if(!h||!h.parentNode||!i.enabled())return z();const d=[],p=function(t){const e={};return t&&(t.to||t.from)&&(e.to=t.to,e.from=t.from),e}(l);let f,$,m,g,v,y,b,w,E,C;const O=[];if(0===l.duration)return z();const S=l.event&&Array.isArray(l.event)?l.event.join(" "):l.event,x=S&&l.structural;let A="",k="";x?A=Kr(S,Ar,!0):S&&(A=S),l.addClass&&(k+=Kr(l.addClass,Sr)),l.removeClass&&(k.length&&(k+=" "),k+=Kr(l.removeClass,xr)),l.applyClassesEarly&&k.length&&s(r,l);let _=[A,k].join(" ").trim();const T=p.to&&Object.keys(p.to).length>0;if(!((l.keyframeStyle||"").length>0)&&!T&&!_)return z();let j,N,V=n.cacheKey(h,S,l.addClass,l.removeClass);if(n.containsCachedAnimationWithoutDuration(V))return _=null,z();if(l.stagger>0){const t=parseFloat(l.stagger);j={transitionDelay:t,animationDelay:t,transitionDuration:0,animationDuration:0}}else j=function(t,e,r,i){let s;const o=`stagger-${r}`;if(n.count(r)>0&&(s=n.get(o),!s)){const r=Kr(e,"-stagger");t.className+=` ${r}`,s=na(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,ta);if(l.$$skipPreparationClasses||r[0].classList.add(..._.split(" ").filter((t=>""!==t))),l.transitionStyle){const t=[Nr,l.transitionStyle];ii(h,t),d.push(t)}if(l.duration>=0){N=h.style[Nr].length>0;const t=ia(l.duration,N);ii(h,t),d.push(t)}if(l.keyframeStyle){const t=[Rr,l.keyframeStyle];ii(h,t),d.push(t)}const R=j?l.staggerIndex>=0?l.staggerIndex:n.count(V):0,P=0===R;P&&!l.skipBlocking&&aa(h,qr);let D=c(h,V,!x),M=D.maxDelay;y=Math.max(M,0),w=D.maxDuration;const L={};if(L.hasTransitions=D.transitionDuration>0,L.hasAnimations=D.animationDuration>0,L.hasTransitionAll=L.hasTransitions&&"all"===D.transitionProperty,L.applyTransitionDuration=T&&(L.hasTransitions&&!L.hasTransitionAll||L.hasAnimations&&!L.hasTransitions),L.applyAnimationDuration=l.duration&&L.hasAnimations,L.applyTransitionDelay=ra(l.delay)&&(L.applyTransitionDuration||L.hasTransitions),L.applyAnimationDelay=ra(l.delay)&&L.hasAnimations,L.recalculateTimingStyles=k.length>0,(L.applyTransitionDuration||L.applyAnimationDuration)&&(w=l.duration?parseFloat(l.duration):w,L.applyTransitionDuration&&(L.hasTransitions=!0,D.transitionDuration=w,N=h.style[Nr+Mr].length>0,d.push(ia(w,N))),L.applyAnimationDuration&&(L.hasAnimations=!0,D.animationDuration=w,d.push([Fr,`${w}s`]))),0===w&&!L.recalculateTimingStyles)return z();var I,U=Kr(_,kr);null!=l.delay&&("boolean"!=typeof l.delay&&(I=parseFloat(l.delay),y=Math.max(I,0)),L.applyTransitionDelay&&d.push(ea(I)),L.applyAnimationDelay&&d.push(ea(I,!0)));return null==l.duration&&D.transitionDuration>0&&(L.recalculateTimingStyles=L.recalculateTimingStyles||P),b=y*Qo,E=w*Qo,l.skipBlocking||(L.blockTransition=D.transitionDuration>0,L.blockKeyframeAnimation=D.animationDuration>0&&j.animationDelay>0&&0===j.animationDuration),l.from&&(l.cleanupStyles&&sa(u,h,Object.keys(l.from)),Xr(0,l)),L.blockTransition||L.blockKeyframeAnimation?B(w):l.skipBlocking||aa(h,!1),{$$willAnimate:!0,end:q,start(){if(!f)return v={end:q,cancel:H,resume:null,pause:null},g=new t(v),a(G),g}};function q(){F()}function H(){F(!0)}function F(t){if(f||m&&$)return;f=!0,$=!1,_&&!l.$$skipPreparationClasses&&r[0].classList.remove(..._.split(" ")),(U=Kr(_,kr))&&r[0].classList.remove(...U.split(" ")),ri(h,!1),aa(h,!1),d.forEach((t=>{h.style[t[0]]=""})),s(r,l),Jr(r,l),Object.keys(u).length&&Object.entries(u).forEach((([t,e])=>{e?h.style.setProperty(t,e):h.style.removeProperty(t)})),l.onDone&&l.onDone(),O.length&&r.off(O.join(" "),W);const n=r.data(Yo);n&&(e.cancel(n[0].timer),r.removeData(Yo)),g&&g.complete(!t)}function B(t){L.blockTransition&&aa(h,t),L.blockKeyframeAnimation&&ri(h,!!t)}function z(){return g=new t({end:q,cancel:H}),a((()=>{})),F(),{$$willAnimate:!1,start:()=>g,end:q}}function W(t){t.stopPropagation();const e=t.originalEvent||t;if(e.target!==h)return;const n=e.$manualTimeStamp||Date.now(),r=parseFloat(e.elapsedTime.toFixed(Zo));Math.max(n-C,0)>=b&&r>=w&&(m=!0,F())}function G(){if(f)return;if(!h.parentNode)return void F();const t=function(t){if(m)$&&t&&($=!1,F());else if($=!t,D.animationDuration){const t=ri(h,$);$?d.push(t):function(t,e){const n=t.indexOf(e);e>=0&&t.splice(n,1)}(d,t)}},i=R>0&&(D.transitionDuration&&0===j.transitionDuration||D.animationDuration&&0===j.animationDuration)&&Math.max(j.animationDelay,j.transitionDelay);function o(){if(f)return;if(B(!1),d.forEach((t=>{const e=t[0],n=t[1];h.style[e]=n})),s(r,l),r[0].classList.add(...U.split(" ").filter((t=>""!==t))),L.recalculateTimingStyles){if(V=n.cacheKey(h,S,l.addClass,l.removeClass),D=c(h,V,!1),M=D.maxDelay,y=Math.max(M,0),w=D.maxDuration,0===w)return void F();L.hasTransitions=D.transitionDuration>0,L.hasAnimations=D.animationDuration>0}if(L.applyAnimationDelay&&(M="boolean"!=typeof l.delay&&ra(l.delay)?parseFloat(l.delay):M,y=Math.max(M,0),D.animationDelay=M,I=ea(M,!0),d.push(I),h.style[I[0]]=I[1]),b=y*Qo,E=w*Qo,l.easing){let t;const e=l.easing;L.hasTransitions&&(t=Nr+Ir,d.push([t,e]),h.style[t]=e),L.hasAnimations&&(t=Rr+Ir,d.push([t,e]),h.style[t]=e)}D.transitionDuration&&O.push(Vr),D.animationDuration&&O.push(Pr),C=Date.now();const t=b+Jo*E,i=C+t,o=r.data(Yo)||[];let p=!0;if(o.length){const t=o[0];p=i>t.expectedEndTime,p?e.cancel(t.timer):o.push(F)}if(p){const n=e(a,t,!1);o[0]={timer:n,expectedEndTime:i},o.push(F),r.data(Yo,o)}O.length&&r.on(O.join(" "),W),l.to&&(l.cleanupStyles&&sa(u,h,Object.keys(l.to)),ti(0,l))}function a(){const t=r.data(Yo);if(t){for(let e=1;e<t.length;e++)t[e]();r.removeData(Yo)}}i?e(o,Math.floor(i*R*Qo),!1):o(),v.resume=function(){t(!0)},v.pause=function(){t(!1)}}}}]}function aa(t,e){const n=e?`-${e}s`:"";return ii(t,[Br,n]),[Br,n]}const ca="data-ng-animate",la="$ngAnimatePin";function ua(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!(m(n)&&m(r)||m(s)&&m(o))&&(i(n,o)||i(r,s))})),this.$get=["$rootScope","$injector","$$animation","$$AnimateRunner","$templateRequest",function(e,n,i,a,c){const l=new Map,u=new Map;let h=null;function d(t){u.delete(t.target)}e.$templateRequest=c;const p=e.$watch("$templateRequest.totalPendingRequests",(t=>{0===t&&(p(),e.$templateRequest=void 0,e.$$postDigest((()=>{e.$$postDigest((()=>{null===h&&(h=!0)}))})))})),f=Object.create(null),$=t.customFilter(),b=t.classNameFilter(),w=function(){return!0},E=$||w,C=b?function(t,e){const n=[t.getAttribute("class"),e.addClass,e.removeClass].join(" ");return b.test(n)}:w,O=function(t,e){e.addClass&&(t[0].classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t[0].classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};function S(t,e){return ei(t,e,{})}const x=window.Node.prototype.contains||function(t){return this===t||!!(16&this.compareDocumentPosition(t))};function A(t,e,n){const r=Qr(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=Qr(e);f[t]=f[t]||[],f[t].push({node:r,callback:n}),xt(e).on("$destroy",(()=>{l.get(r)||_.off(t,e,n)}))},off(t,e,n){if(1===arguments.length&&!y(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){Gr(M(t),"element","not an element"),Gr(M(e),"parentElement","not an element"),t.data(la,e)},push:(t,c,d,p)=>((d=d||{}).domOperation=p,function(t,c,d){let p=d,$=Yr(t);const b=ni($),w=b&&b.parentNode;p=Zr(p);const A=new a,_=function(){let t=!1;return function(n){t?n():e.$$postDigest((()=>{t=!0,n()}))}}();Array.isArray(p.addClass)&&(p.addClass=p.addClass.join(" "));p.addClass&&!y(p.addClass)&&(p.addClass=null);Array.isArray(p.removeClass)&&(p.removeClass=p.removeClass.join(" "));p.removeClass&&!y(p.removeClass)&&(p.removeClass=null);p.from&&!v(p.from)&&(p.from=null);p.to&&!v(p.to)&&(p.to=null);if(!(h&&b&&E(b,c,d)&&C(b,p)))return U(),A;const j=["enter","move","leave"].indexOf(c)>=0;let V=document.hidden||u.get(b);const R=!V&&l.get(b)||{},P=!!R.state;V||P&&1===R.state||(V=!function(t,e){const r=document.body,i=ni(n.get("$rootElement"));let s,o=t===r||"HTML"===t.nodeName,a=t===i,c=!1,h=u.get(t),d=Mt(t,la);d&&(e=ni(d));for(;e&&(a||(a=e===i),e.nodeType===Node.ELEMENT_NODE);){const t=l.get(e)||{};if(!c){const n=u.get(e);if(!0===n&&!1!==h){h=!0;break}!1===n&&(h=!1),c=t.structural}if(m(s)||!0===s){const t=Mt(e,jr);g(t)&&(s=t)}if(c&&!1===s)break;if(o||(o=e===r),o&&a)break;e=a||(d=Mt(e,la),!d)?e.parentNode:ni(d)}return(!c||s)&&!0!==h&&a&&o}(b,w));if(V)return document.hidden&&I(A,c,"start",r(p)),U(),document.hidden&&I(A,c,"close",r(p)),A;j&&function(t){const e=t.querySelectorAll(`[${ca}]`);e.forEach((t=>{const e=parseInt(t.getAttribute(ca),10),n=l.get(t);if(n)switch(e){case 2:n.runner.end();case 1:l.delete(t)}}))}(b);const D={structural:j,element:$,event:c,addClass:p.addClass,removeClass:p.removeClass,close:U,options:p,runner:A};if(P){if(s("skip",D,R))return 2===R.state?(U(),A):(ei($,R,D),R.runner);if(s("cancel",D,R))if(2===R.state)R.runner.end();else{if(!R.structural)return ei($,R,D),R.runner;R.close()}else{if(s("join",D,R)){if(2!==R.state)return function(t,e,n){let r="";e&&(r=Kr(e,Ar,!0)),n.addClass&&(r=si(r,Kr(n.addClass,Sr))),n.removeClass&&(r=si(r,Kr(n.removeClass,xr))),r.length&&(n.preparationClasses=r,t[0].className+=` ${r}`)}($,j?c:null,p),c=D.event=R.event,p=ei($,R,D),R.runner;S($,D)}}}else S($,D);let M=D.structural;M||(M="animate"===D.event&&Object.keys(D.options.to||{}).length>0||o(D));if(!M)return U(),T(b),A;const L=(R.counter||0)+1;return D.counter=L,N(b,1,D),e.$$postDigest((()=>{$=Yr(t);let e=l.get(b);const n=!e;e=e||{};const s=($.parent()||[]).length>0&&("animate"===e.event||e.structural||o(e));if(n||e.counter!==L||!s)return n&&(O($,p),Jr($,p)),(n||j&&e.event!==c)&&(p.domOperation(),A.end()),void(s||T(b));c=!e.structural&&o(e,!0)?"setClass":e.event,N(b,2);const a=i($,c,e.options);A.setHost(a),I(A,c,"start",r(p)),a.done((t=>{U(!t);const e=l.get(b);e&&e.counter===L&&T(b),I(A,c,"close",r(p))}))})),A;function I(t,e,n,r){_((()=>{const t=function(t,e,n){const r=[],i=f[n];return i&&i.forEach((i=>{(x.call(i.node,e)||"leave"===n&&x.call(i.node,t))&&r.push(i.callback)})),r}(w,b,e);t.length?(t.forEach((t=>{t($,n,r)})),k(n,b)):k(n,b)})),t.progress(e,n,r)}function U(t){!function(t,e){e.preparationClasses&&(e.preparationClasses.split(" ").forEach((e=>t[0].classList.remove(e))),e.preparationClasses=null),e.activeClasses&&(e.activeClasses.split(" ").forEach((e=>t[0].classList.remove(e))),e.activeClasses=null)}($,p),O($,p),Jr($,p),p.domOperation(),A.complete(!t)}}(t,c,d)),enabled(t,e){const n=arguments.length;if(0===n)e=!!h;else{if(M(t)){const r=ni(t);1===n?e=!u.get(r):(u.has(r)||xt(t).on("$destroy",d),u.set(r,!e))}else e=h=!!t}return e}};return _;function T(t){t.removeAttribute(ca),l.delete(t)}function N(t,e,n){(n=n||{}).state=e,t.setAttribute(ca,e);const r=l.get(t),i=r?j(r,n):n;l.set(t,i)}}]}function ha(t){this.$get=["$injector","$$AnimateRunner",function(e,n){const r=function(t,e){e.addClass&&(t[0].classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t[0].classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};return function(i,s,o,a){let c=!1;3===arguments.length&&v(o)&&(a=o,o=null),a=Zr(a),o||(o=i.attr("class")||"",a.addClass&&(o+=` ${a.addClass}`),a.removeClass&&(o+=` ${a.removeClass}`));const l=a.addClass,u=a.removeClass,h=function(n){n=Array.isArray(n)?n:n.split(" ");const r=[],i={};for(let s=0;s<n.length;s++){const o=n[s],a=t.$$registeredAnimations[o];a&&!i[o]&&(r.push(e.get(a)),i[o]=!0)}return r}(o);let d,p,f;if(h.length){let t,e;"leave"===s?(e="leave",t="afterLeave"):(e=`before${s.charAt(0).toUpperCase()}${s.substring(1)}`,t=s),"enter"!==s&&"move"!==s&&(d=y(i,s,a,h,e)),p=y(i,s,a,h,t)}if(d||p)return{$$willAnimate:!0,end:()=>(f?f.end():(m(),f=new n,f.complete(!0)),f),start(){if(f)return f;let t;f=new n;const e=[];return d&&e.push((e=>{t=d(e)})),e.length?e.push((t=>{$(),t(!0)})):$(),p&&e.push((e=>{t=p(e)})),f.setHost({end(){i()},cancel(){i(!0)}}),n.chain(e,r),f;function r(t){m(),f.complete(t)}function i(e){c||((t||(()=>{}))(e),r(e))}}};function $(){a.domOperation(),r(i,a)}function m(){c=!0,$(),Jr(i,a)}function g(t,e,r,i,s){const o=[];return i.forEach((i=>{const a=i[s];a&&o.push((()=>{let i,s,o=!1;const c=function(t){o||(o=!0,(s||(()=>{}))(t),i.complete(!t))};return i=new n({end(){c()},cancel(){c(!0)}}),s=function(t,e,r,i,s){let o;switch(r){case"animate":o=[e,i.from,i.to,s];break;case"setClass":o=[e,l,u,s];break;case"addClass":o=[e,l,s];break;case"removeClass":o=[e,u,s];break;default:o=[e,s]}o.push(i);let a=t.apply(t,o);if(a)if(C(a.start)&&(a=a.start()),a instanceof n)a.done(s);else if(C(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&&o.forEach((t=>{e.push(t())})),e.length?n.all(e,t):t(),function(t){e.forEach((e=>{t?e.cancel():e.end()}))}}}}}]}ua.$inject=["$animateProvider"],ha.$inject=["$animateProvider"];const da="$$animationRunner",pa="$$animatePrepareClasses";function fa(){const t="ng-animate-ref",e=this.drivers=[];function n(t){return t.data(da)}this.$get=["$rootScope","$injector","$$AnimateRunner","$$rAFScheduler","$$animateCache",function(r,i,s,o,a){const c=[],l=function(t,e){e.addClass&&(t[0].classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t[0].classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};return function(u,h,d){d=Zr(d);const p=["enter","move","leave"].indexOf(h)>=0,f=new s({end(){y()},cancel(){y(!0)}});if(!e.length)return y(),f;let $=ht(u.attr("class"),ht(d.addClass,d.removeClass)),{tempClasses:m}=d;return m&&($+=` ${m}`,d.tempClasses=null),p&&u.data(pa,`ng-${h}${_r}`),function(t,e){t.data(da,e)}(u,f),c.push({element:u,classes:$,event:h,structural:p,options:d,beforeStart:function(){m=(m?`${m} `:"")+Tr,u.className+=` ${m}`;let t=u.data(pa);t&&(u[0].classList.remove(t),t=null)},close:y}),u.on("$destroy",v),c.length>1||r.$$postDigest((()=>{const r=[];c.forEach((t=>{n(t.element)?r.push(t):t.close()})),c.length=0;const s=function(e){const n=[],r={};e.forEach(((e,i)=>{const{element:s}=e,o=ni(s),{event:a}=e,c=["enter","move"].indexOf(a)>=0,l=e.structural?function(e){const n=`[${t}]`,r=e.hasAttribute(t)?[e]:e.querySelectorAll(n),i=[];return r.forEach((e=>{const n=e.getAttribute(t);n&&n.length&&i.push(e)})),i}(o):[];if(l.length){const e=c?"to":"from";l.forEach((n=>{const s=n.getAttribute(t);r[s]=r[s]||{},r[s][e]={animationID:i,element:xt(n)}}))}else n.push(e)}));const i={},s={};return Object.values(r).forEach((t=>{const{from:r}=t,{to:o}=t;if(!r||!o){const t=r?r.animationID:o.animationID,s=t.toString();return void(i[s]||(i[s]=!0,n.push(e[t])))}const a=e[r.animationID],c=e[o.animationID],l=r.animationID.toString();if(!s[l]){const t=s[l]={structural:!0,beforeStart(){a.beforeStart(),c.beforeStart()},close(){a.close(),c.close()},classes:g(a.classes,c.classes),from:a,to:c,anchors:[]};t.classes.length?n.push(t):(n.push(a),n.push(c))}s[l].anchors.push({out:r.element,in:o.element})})),n}(r),l=[];s.forEach((t=>{const r=t.from?t.from.element:t.element;let s=d.addClass;s=(s?`${s} `:"")+Tr;const o=a.cacheKey(r[0],t.event,s,d.removeClass);l.push({element:r,domNode:ni(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(pa);continue}const s=i.data(pa);s&&i[0].classList.add(s)}}o(u)})),f;function g(t,e){t=t.split(" "),e=e.split(" ");const n=[];for(let r=0;r<t.length;r++){const i=t[r];if("ng-"!==i.substring(0,3))for(let t=0;t<e.length;t++)if(i===e[t]){n.push(i);break}}return n.join(" ")}function v(){const t=n(u);!t||"leave"===h&&d.$$domOperationFired||t.end()}function y(t){u.off("$destroy",v),function(t){t.removeData(da)}(u),l(u,d),Jr(u,d),d.domOperation(),m&&m.split(" ").forEach((t=>u[0].classList.remove(t))),f.complete(!t)}}}]}function $a(){let t=[],e=null;function n(){if(!t.length)return;t.shift().forEach((t=>t())),e||window.requestAnimationFrame((()=>{e=null,n()}))}function r(e){t=t.concat(e),n()}t=r.queue=[],r.waitUntilQuiet=t=>{null!==e&&(window.cancelAnimationFrame(e),e=null),e=window.requestAnimationFrame((()=>{e=null,t(),n()}))},this.$get=function(){return r}}const ma="$animId";let ga=0;const va=new Map;function ya(){return{cacheKey(t,e,n,r){const{parentNode:i}=t,s=[i[ma]??(i[ma]=++ga),e,t.getAttribute("class")];return n&&s.push(n),r&&s.push(r),s.join(" ")},containsCachedAnimationWithoutDuration(t){const e=va.get(t);return!!e&&!e.isValid},flush(){va.clear()},count:t=>va.get(t)?.total??0,get:t=>va.get(t)?.value,put(t,e,n){const r=va.get(t);r?(r.total++,r.value=e):va.set(t,{total:1,value:e,isValid:n})}}}function ba(){this.$get=[ya]}const wa="ng-animate-shim",Ea="ng-anchor",Ca="ng-anchor-out",Oa="ng-anchor-in";function Sa(t){t.drivers.push("$$animateCssDriver"),this.$get=["$animateCss","$$AnimateRunner","$rootElement",function(t,e,n){const r=document.body,i=n[0],s=xt((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=xt(ni(n).cloneNode(!0)),a=xa(p(o));let c;n[0].classList.add(wa),i[0].classList.add(wa),o[0].classList.add(Ea),s.append(o);const l=d();if(!l&&(c=f(),!c))return $();const u=l||c;return{start(){let t,n=u.start();return n.done((()=>{if(n=null,!c&&(c=f(),c))return n=c.start(),n.done((()=>{n=null,$(),t.complete()})),n;$(),t.complete()})),t=new e({end:r,cancel:r}),t;function r(){n&&n.end()}}};function h(t){const e={},n=ni(t).getBoundingClientRect();return["width","height","top","left"].forEach((t=>{let i=n[t];switch(t){case"top":i+=r.scrollTop;break;case"left":i+=r.scrollLeft}e[t]=`${Math.floor(i)}px`})),e}function d(){const e=t(o,{addClass:Ca,delay:!0,from:h(n)});return e.$$willAnimate?e:null}function p(t){return t.attr("class")||""}function f(){const e=xa(p(i)),n=Aa(e,a),r=Aa(a,e),s=t(o,{to:h(i),addClass:`${Oa} ${n}`,removeClass:`${Ca} ${r}`,delay:!0});return s.$$willAnimate?s:null}function $(){o.remove(),n[0].classList.remove(wa),i[0].classList.remove(wa)}}(n.out,n.in);i&&u.push(i)})),!c&&!l&&0===u.length)return;return{start(){const t=[];c&&t.push(c.start()),l&&t.push(l.start()),u.forEach((e=>{t.push(e.start())}));const n=new e({end:r,cancel:r});return e.all(t,(t=>{n.complete(t)})),n;function r(){t.forEach((t=>{t.end()}))}}}}(n.from,n.to,n.anchors):a(n)};function a(e){const n=e.options||{};e.structural&&(n.event=e.event,n.structural=!0,n.applyClassesEarly=!0,"leave"===e.event&&(n.onDone=n.domOperation)),n.preparationClasses&&(n.event=si(n.event,n.preparationClasses));const r=t(e.element,n);return r.$$willAnimate?r:null}}]}function xa(t){return t.replace(/\bng-\S+\b/g,"")}function Aa(t,e){return y(t)&&(t=t.split(" ")),y(e)&&(e=e.split(" ")),t.filter((t=>-1===e.indexOf(t))).join(" ")}function ka(t){t.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(t,e){return function(t){if(t.from&&t.to){const r=n(t.from),i=n(t.to);if(!r&&!i)return;return{start(){const t=[];r&&t.push(r.start()),i&&t.push(i.start()),e.all(t,(function(t){n.complete(t)}));const n=new e({end:s(),cancel:s()});return n;function s(){return function(){t.forEach((t=>{t.end()}))}}}}}return n(t)};function n(e){const{element:n}=e,{event:r}=e,{options:i}=e,{classes:s}=e;return t(n,r,s,i)}}]}function _a(t){return{restrict:"A",transclude:"element",terminal:!0,priority:550,link(e,n,r,i,s){let o,a;e.$watchCollection(r.ngAnimateSwap||r.for,(e=>{o&&t.leave(o),a&&(a.$destroy(),a=null),e&&s(((e,r)=>{o=e,a=r,t.enter(e,null,n)}))}))}}}function Ta(t){return{link(e,n,r){const i=r.ngAnimateChildren;function s(t){t="on"===t||"true"===t,n.data(jr,t)}y(i)&&0===i.length?n.data(jr,!0):(s(t(i)(e)),r.$observe("ngAnimateChildren",s))}}}function ja(t){return function e(){if(arguments.length>=t.length)return t.apply(this,arguments);const n=Array.prototype.slice.call(arguments);return e.bind(this,...n)}}function Na(){const t=arguments,e=t.length-1;return function(){let n=e,r=t[e].apply(this,arguments);for(;n--;)r=t[n].call(this,r);return r}}function Va(){return Na.apply(null,[].slice.call(arguments).reverse())}Sa.$inject=["$$animationProvider"],ka.$inject=["$$animationProvider"],_a.$inject=["$animate"],Ta.$inject=["$interpolate"];const Ra=ja(((t,e,n)=>n&&n[t]===e)),Pa=t=>Va.apply(null,t.split(".").map((t=>e=>e&&e[t])));const Da=t=>e=>e.reduce(((e,n)=>e&&!!t(n)),!0),Ma=t=>e=>null!=e&&e.constructor===t||e instanceof t,La=t=>()=>t;function Ia(t){return function(e){for(let n=0;n<t.length;n++)if(t[n][0](e))return t[n][1](e)}}const Ua={$q:void 0,$injector:void 0};function qa(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(Da(Array.isArray)(r))return s=e,(i=t).length===s.length&&oc(i,s).reduce(((t,e)=>t&&qa(e[0],e[1])),!0);var i,s;if(Da(w)(r))return t.getTime()===e.getTime();if(Da(O)(r))return t.toString()===e.toString();if(Da(C)(r))return!0;if([C,Array.isArray,w,O].some((t=>!!t(r))))return!1;const o={};for(const n in t){if(!qa(t[n],e[n]))return!1;o[n]=!0}for(const t in e)if(!o[t])return!1;return!0}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=ja((function(t,e){const n=t.indexOf(e);n>=0&&t.splice(n,1);return t}));const za=ja(((t,e)=>(t.push(e),e)));function Wa(t,...e){const n=Object.assign({},...e.reverse());return Object.assign(n,Ga(t||{},Object.keys(n)))}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((t=>!e.includes(t))).reduce(((e,n)=>(e[n]=t[n],e)),{})}function Ya(t,e){const n=Array.isArray(t),r=n?[]:{},i=n?t=>r.push(t):(t,e)=>r[e]=t;return Object.entries(t).forEach((([t,n])=>{e(n,t)&&i(n,t)})),r}function Qa(t,e){let n;return Object.entries(t).forEach((([t,r])=>{n||e(r,t)&&(n=r)})),n}function Za(t,e,n){return n=n||(Array.isArray(t)?[]:{}),Object.entries(t).forEach((([t,r])=>n[t]=e(r,t))),n}const Ja=(t,e)=>t&&e,Xa=(t,e)=>t||e,tc=(t,e)=>t.concat(e),ec=(t,e)=>Array.isArray(e)?t.concat(e.reduce(ec,[])):nc(t,e);function nc(t,e){return t.push(e),t}const rc=(t,e)=>t.includes(e)?t:nc(t,e),ic=t=>t.reduce(tc,[]),sc=function(t,e="assert failure"){return n=>{const r=t(n);if(!r)throw new Error(e);return r}};function oc(...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 ac(t,e){let n,r;if(Array.isArray(e)&&([n,r]=e),!y(n))throw new Error("invalid parameters to applyPairs");return t[n]=r,t}function cc(t){return t.length&&t[t.length-1]||void 0}function lc(t,e){return e&&Object.keys(e).forEach((t=>delete e[t])),e||(e={}),Object.assign(e,t)}const uc=t=>t.catch((()=>0))&&t,hc=t=>uc(Ua.$q.reject(t)),dc=t=>null===t;function pc(t){return null===t&&void 0===t}function fc(t){if(Array.isArray(t)&&t.length){const e=t.slice(0,-1),n=t.slice(-1);return!(e.filter((t=>!y(t))).length||n.filter((t=>!C(t))).length)}return C(t)}function $c(t){return null!==t&&"object"==typeof t&&"function"==typeof t.then}class mc{constructor(t){this.pattern=/.*/,this.inherit=!0,Object.assign(this,t),this.name=void 0}is(t){return!!t}encode(t){return t}decode(t){return t}equals(t,e){return t==e}$subPattern(){const t=this.pattern.toString();return t.substring(1,t.length-2)}toString(){return`{ParamType:${this.name}}`}$normalize(t){return this.is(t)?t:this.decode(t)}$asArray(t,e){if(!t)return this;if("auto"===t&&!e)throw new Error("'auto' array mode is for query parameters only");return new gc(this,t)}}function gc(t,e){function n(t){return Array.isArray(t)?t:g(t)?[t]:[]}function r(t,r){return function(i){if(Array.isArray(i)&&0===i.length)return i;const s=Za(n(i),t);return!0===r?0===Ya(s,(t=>!t)).length:function(t){switch(t.length){case 0:return;case 1:return"auto"===e?t[0]:t;default:return t}}(s)}}function i(t){return function(e,r){const i=n(e),s=n(r);if(i.length!==s.length)return!1;for(let e=0;e<i.length;e++)if(!t(i[e],s[e]))return!1;return!0}}["encode","decode","equals","$normalize"].forEach((e=>{const n=t[e].bind(t),s="equals"===e?i:r;this[e]=s(n)})),Object.assign(this,{dynamic:t.dynamic,name:t.name,pattern:t.pattern,inherit:t.inherit,raw:t.raw,is:r(t.is.bind(t),!0),$arrayMode:e})}class vc{constructor(){this.enqueue=!0,this.typeQueue=[],this.defaultTypes=Ga(vc.prototype,["hash","string","query","path","int","bool","date","json","any"]);this.types=Fa(Za(this.defaultTypes,((t,e)=>new mc(Object.assign({name:e},t)))),{})}type(t,e,n){if(!g(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 mc(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],Ua.$injector.invoke(t.def))}}}!function(){const t=t=>{const e=t=>null!=t?t.toString():t,n={encode:e,decode:e,is:Ma(String),pattern:/.*/,equals:(t,e)=>t==e};return Object.assign({},n,t)};Object.assign(vc.prototype,{string:t({}),path:t({pattern:/[^/]*/}),query:t({}),hash:t({inherit:!1}),int:t({decode:t=>parseInt(t,10),is:function(t){return!pc(t)&&this.decode(t.toString())===t},pattern:/-?\d+/}),bool:t({encode:t=>t?1:0,decode:t=>0!==parseInt(t,10),is:Ma(Boolean),pattern:/0|1/}),date:t({encode:function(t){return this.is(t)?[t.getFullYear(),("0"+(t.getMonth()+1)).slice(-2),("0"+t.getDate()).slice(-2)].join("-"):void 0},decode:function(t){if(this.is(t))return t;const e=this.capture.exec(t);return e?new Date(e[1],e[2]-1,e[3]):void 0},is:t=>t instanceof Date&&!isNaN(t.valueOf()),equals:(t,e)=>["getFullYear","getMonth","getDate"].reduce(((n,r)=>n&&t[r]()===e[r]()),!0),pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,capture:/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/}),json:t({encode:JSON.stringify,decode:JSON.parse,is:Ma(Object),equals:qa,pattern:/[^/]*/}),any:t({encode:t=>t,decode:t=>t,is:()=>!0,equals:qa})})}();class yc{constructor(){this.paramTypes=new vc,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=g(t)?t:this._isCaseInsensitive}defaultSquashPolicy(t){if(g(t)&&!0!==t&&!1!==t&&!y(t))throw new Error(`Invalid squash policy: ${t}. Valid policies: false, true, arbitrary-string`);return this._defaultSquashPolicy=g(t)?t:this._defaultSquashPolicy}strictMode(t){return this._isStrictMode=g(t)?t:this._isStrictMode}type(t,e,n){const r=this.paramTypes.type(t,e,n);return g(e)?this:r}}class bc{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 wc{constructor(t=[],e=null){this._items=t,this._limit=e,this._evictListeners=[],this.onEvict=za(this._evictListeners)}enqueue(t){const e=this._items;return e.push(t),this._limit&&e.length>this._limit&&this.evict(),t}evict(){const t=this._items.shift();return this._evictListeners.forEach((e=>e(t))),t}dequeue(){if(this.size())return this._items.splice(0,1)[0]}clear(){const t=this._items;return this._items=[],t}size(){return this._items.length}remove(t){const e=this._items.indexOf(t);return e>-1&&this._items.splice(e,1)[0]}peekTail(){return this._items[this._items.length-1]}peekHead(){if(this.size())return this._items[0]}}class Ec{constructor(){this.params=new bc,this.lastStartedTransitionId=-1,this.transitionHistory=new wc([],1),this.successfulTransitions=new wc([],1)}$get=[()=>this]}function Cc(t,e){return e.length<=t?e:e.substring(0,t-3)+"..."}function Oc(t){return t.replace(/^([A-Z])/,(t=>t.toLowerCase())).replace(/([A-Z])/g,(t=>"-"+t.toLowerCase()))}function Sc(t){const e=xc(t),n=e.match(/^(function [^ ]+\([^)]*\))/),r=n?n[1]:e,i=t.name||"";return i&&r.match(/function \(/)?"function "+i+r.substring(9):r}function xc(t){const e=Array.isArray(t)?t.slice(-1)[0]:t;return e&&e.toString()||"undefined"}function Ac(t){const e=[],n=Ia([[m,La("undefined")],[dc,La("null")],[$c,La("[Promise]")],[t=>t&&"function"==typeof t.then&&"Rejection"==t.constructor.name,t=>t._transitionRejection.toString()],[t=>v(t)&&!Array.isArray(t)&&t.constructor!==Object&&C(t.toString),t=>t.toString()],[fc,Sc],[La(!0),t=>t]]);function r(t){if(v(t)){if(-1!==e.indexOf(t))return"[circular ref]";e.push(t)}return n(t)}return m(t)?r(t):JSON.stringify(t,((t,e)=>r(e))).replace(/\\"/g,'"')}function kc(t,e){return y(cc(t))&&y(e)?t.slice(0,-1).concat(cc(t)+e):nc(t,e)}function _c(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 Tc(t){return b(t)?jc[t]:jc[jc[t]]}var jc;!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"}(jc||(jc={}));const Nc=Pa("$id"),Vc=Pa("router.$id"),Rc=t=>`Transition #${Nc(t)}-${Vc(t)}`;const Pc=new class{constructor(){this._enabled={},this.approximateDigests=0}_set(t,e){e.length||(e=Object.keys(jc).map((t=>parseInt(t,10))).filter((t=>!isNaN(t))).map((t=>jc[t]))),e.map(Tc).forEach((e=>this._enabled[e]=t))}enable(...t){this._set(!0,t)}disable(...t){this._set(!1,t)}enabled(t){return!!this._enabled[Tc(t)]}traceTransitionStart(t){this.enabled(jc.TRANSITION)&&console.log(`${Rc(t)}: Started -> ${Ac(t)}`)}traceTransitionIgnored(t){this.enabled(jc.TRANSITION)&&console.log(`${Rc(t)}: Ignored <> ${Ac(t)}`)}traceHookInvocation(t,e,n){if(!this.enabled(jc.HOOK))return;const r=Pa("traceData.hookType")(n)||"internal",i=Pa("traceData.context.state.name")(n)||Pa("traceData.context")(n)||"unknown",s=Sc(t.registeredHook.callback);console.log(`${Rc(e)}: Hook -> ${r} context: ${i}, ${Cc(200,s)}`)}traceHookResult(t,e){this.enabled(jc.HOOK)&&console.log(`${Rc(e)}: <- Hook returned: ${Cc(200,Ac(t))}`)}traceResolvePath(t,e,n){this.enabled(jc.RESOLVE)&&console.log(`${Rc(n)}: Resolving ${t} (${e})`)}traceResolvableResolved(t,e){this.enabled(jc.RESOLVE)&&console.log(`${Rc(e)}: <- Resolved ${t} to: ${Cc(200,Ac(t.data))}`)}traceError(t,e){this.enabled(jc.TRANSITION)&&console.log(`${Rc(e)}: <- Rejected ${Ac(e)}, reason: ${t}`)}traceSuccess(t,e){this.enabled(jc.TRANSITION)&&console.log(`${Rc(e)}: <- Success ${Ac(e)}, final state: ${t.name}`)}traceUIViewEvent(t,e,n=""){this.enabled(jc.UIVIEW)&&console.log(`ui-view: ${function(t,e){for(;e.length<t;)e+=" ";return e}(30,t)} ${_c(e)}${n}`)}traceUIViewConfigUpdated(t,e){this.enabled(jc.UIVIEW)&&this.traceUIViewEvent("Updating",t,` with ViewConfig from context='${e}'`)}traceUIViewFill(t,e){this.enabled(jc.UIVIEW)&&this.traceUIViewEvent("Fill",t,` with: ${Cc(200,e)}`)}traceViewSync(t){if(!this.enabled(jc.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(jc.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(jc.VIEWCONFIG)&&console.log(`VIEWCONFIG: ${t} ${_c(e)}`)}};let Dc="LAZY",Mc="WAIT";class Lc{constructor(t,e,n,r,i){this.resolved=!1,this.promise=void 0,t instanceof Lc?Object.assign(this,t):C(e)?(rt(!pc(t),"token argument is required"),this.token=t,this.policy=r,this.resolveFn=e,this.deps=n||[],this.data=i,this.resolved=void 0!==i,this.promise=this.resolved?Ua.$q.resolve(this.data):void 0):v(t)&&t.token&&(Object.prototype.hasOwnProperty.call(t,"resolveFn")||Object.prototype.hasOwnProperty.call(t,"data"))&&(this.token=t.token,this.resolveFn=t.resolveFn,this.deps=t.deps,this.policy=t.policy,this.data=t.data)}getPolicy(t){const e=this.policy||{},n=t&&t.resolvePolicy||{};return{when:e.when||n.when||Dc,async:e.async||n.async||Mc}}resolve(t,e){const n=Ua.$q,r=t.findNode(this),i=r&&r.state,s=this.getPolicy(i).async,o=C(s)?s:t=>t;return this.promise=n.resolve().then((()=>n.all(t.getDependencies(this).map((n=>n.get(t,e)))))).then((t=>this.resolveFn.apply(null,t))).then(o).then((t=>(this.data=t,this.resolved=!0,this.resolveFn=null,Pc.traceResolvableResolved(this,e),this.data)))}get(t,e){return this.promise||this.resolve(t,e)}toString(){return`Resolvable(token: ${Ac(this.token)}, requires: [${this.deps.map(Ac)}])`}clone(){return new Lc(this)}}Lc.fromData=(t,e)=>new Lc(t,(()=>e),null,null,e);class Ic{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()}'${Ac(this.params())}`}withState(t){return new Ic(this._stateRegistry,t,this._params,this._options)}withParams(t,e=!1){const n=e?t:Object.assign({},this._params,t);return new Ic(this._stateRegistry,this._identifier,n,this._options)}withOptions(t,e=!1){const n=e?t:Object.assign({},this._options,t);return new Ic(this._stateRegistry,this._identifier,this._params,n)}}Ic.isDef=t=>t&&t.state&&(y(t.state)||v(t.state)&&y(t.state.name));const Uc=t=>0===["value","type","squash","array","dynamic"].filter(Object.prototype.hasOwnProperty.bind(t||{})).length;var qc;function Hc(t,e,n){const r=!1===n.reloadOnSearch&&e===qc.SEARCH||void 0,i=Qa([n.dynamic,r],g),s=g(i)?{dynamic:i}:{},o=function(t){function e(){return t.value}t=Uc(t)?{value:t}:t,e.__cacheable=!0;const n=fc(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"}(qc||(qc={}));class Fc{constructor(t,e,n,r,i){const s=Hc(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===qc.CONFIG?"any":n===qc.PATH?"path":n===qc.SEARCH?"query":"string";return i.type(t)}return t.type instanceof mc?t.type:i.type(t.type)}(s,e,n,t,r.paramTypes);const o=function(){const e={array:n===qc.SEARCH&&"auto"},r=t.match(/\[\]$/)?{array:!0}:{};return Object.assign(e,r,s).array}();e=o?e.$asArray(o,n===qc.SEARCH):e;const a=void 0!==s.value||n===qc.SEARCH,c=g(s.dynamic)?!!s.dynamic:!!e.dynamic,l=g(s.raw)?!!s.raw:!!e.raw,u=function(t,e,n){const r=t.squash;if(!e||!1===r)return!1;if(!g(r)||null==r)return n;if(!0===r||y(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:[];y(r)&&s.push({from:r,to:void 0});const o=Za(s,(t=>t.from));return Ya(i,(t=>-1===o.indexOf(t.from))).concat(s)}(s,o,a,u),d=g(s.inherit)?!!s.inherit:!!e.inherit;this.isOptional=a,this.type=e,this.location=n,this.id=t,this.dynamic=c,this.raw=l,this.squash=u,this.replace=h,this.inherit=d,this.array=o,this.config=s}isDefaultValue(t){return this.isOptional&&this.type.equals(this.value(),t)}value(t){return t=(t=>{for(const e of this.replace)if(e.from===t)return e.to;return t})(t),m(t)?(()=>{if(this._defaultValueCache)return this._defaultValueCache.defaultValue;if(!Ua.$injector)throw new Error("Injectable functions cannot be called at configuration time");const t=Ua.$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===qc.SEARCH}validates(t){if((m(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!(y(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===Fc.changed(t,e,n).length}static validates(t,e={}){return t.map((t=>t.validates(e[t.id]))).reduce(Ja,!0)}}class Bc{constructor(t){if(t instanceof Bc){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 Bc(this)}applyRawParams(t){return this.paramValues=this.paramSchema.reduce(((e,n)=>{return ac(e,[(r=n).id,r.value(t[r.id])]);var r}),{}),this}parameter(t){return Qa(this.paramSchema,Ra("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 Fc.changed(n,this.paramValues,t.paramValues)}}class zc{static buildPath(t){const e=t.params();return t.$state().path.map((t=>new Bc(t).applyRawParams(e)))}static buildToPath(t,e){const n=zc.buildPath(e);return e.options().inherit?zc.inheritParams(t,n,Object.keys(e.params())):n}static applyViewConfigs(t,e,n){e.filter((t=>n.includes(t.state))).forEach((n=>{const r=Object.values(n.state.views||{}),i=zc.subPath(e,(t=>t===n)),s=r.map((e=>t.createViewConfig(i,e)));n.views=s.reduce(tc,[])}))}static inheritParams(t,e,n=[]){const r=t.map((t=>t.paramSchema)).reduce(tc,[]).filter((t=>!t.inherit)).map((t=>t.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=Qa(t,Ra("state",e));return Object.assign({},n&&n.paramValues)}(t,e.state)||{},r),a=Object.assign(i,o,s);return new Bc(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,zc.nonDynamicParams));)i++;var s,o;let a,c,l,u,h;a=t,c=a.slice(0,i),l=a.slice(i);const d=c.map((function(t,n){const r=t.clone();return r.paramValues=e[n].paramValues,r}));return u=e.slice(i),h=d.concat(u),{from:a,to:h,retained:c,retainedWithToParams:d,exiting:l,entering:u}}static matching(t,e,n){let r=!1;return oc(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&&zc.matching(t,e,n).length===t.length}static subPath(t,e){const n=Qa(t,e),r=t.indexOf(n);return-1===r?void 0:t.slice(0,r+1)}static nonDynamicParams(t){return t.state.parameters({inherit:!1}).filter((t=>!t.dynamic))}static paramValues(t){return t.reduce(((t,e)=>Object.assign(t,e.paramValues)),{})}}function Wc(t,e){return new Ic(t,e.at(-1).state,e.map((t=>t.paramValues)).reduce(((t,e)=>({...t,...e})),{}),{})}const Gc={LAZY:"LAZY",EAGER:"EAGER"},Kc=[Gc.EAGER,Gc.LAZY],Yc=[Gc.EAGER];class Qc{constructor(t){this._path=t}getTokens(){return this._path.reduce(((t,e)=>t.concat(e.resolvables.map((t=>t.token)))),[]).reduce(rc,[])}getResolvable(t){return cc(this._path.map((t=>t.resolvables)).reduce(tc,[]).filter((e=>e.token===t)))}getPolicy(t){const e=this.findNode(t);return t.getPolicy(e)}subContext(t){return new Qc(zc.subPath(this._path,(e=>e.state===t)))}addResolvables(t,e){const n=Qa(this._path,Ra("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=(Kc.includes(t)?t:"LAZY")===Gc.EAGER?Yc:Kc;Pc.traceResolvePath(this._path,t,e);const r=(t,e)=>n=>t.includes(this.getPolicy(n)[e]),i=this._path.reduce(((t,i)=>{const s=i.resolvables.filter(r(n,"when")),o=s.filter(r(["NOWAIT"],"async")),a=s.filter((t=>!r(["NOWAIT"],"async")(t))),c=this.subContext(i.state),l=t=>t.get(c,e).then((e=>({token:t.token,value:e})));return o.forEach(l),t.concat(a.map(l))}),[]);return Ua.$q.all(i)}injector(){return this._injector||(this._injector=new Zc)}findNode(t){return Qa(this._path,(e=>e.resolvables.includes(t)))}getDependencies(t){const e=this.findNode(t),n=(zc.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 cc(e);const r=Ua.$injector.get(t);if(m(r))throw new Error("Could not find Dependency Injection token: "+Ac(t));return new Lc(t,(()=>r),[],r)}))}}class Zc{constructor(){this.native=Ua.$injector}get(t){return Ua.$injector.get(t)}getAsync(t){return Ua.$q.resolve(Ua.$injector.get(t))}getNative(t){return Ua.$injector.get(t)}}const Jc=(t,e)=>t.reduce(((t,n)=>t||g(e[n])),!1);function Xc(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(g(t.views)&&Jc(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=>g(t[e]))).join(", ")}`);const i={},s=t.views||{$default:Ga(t,r)};return Object.entries(s).forEach((([r,s])=>{if(r=r||"$default",y(s)&&(s={component:s}),s=Object.assign({},s),Jc(e,s)&&Jc(n,s))throw new Error(`Cannot combine: ${e.join("|")} with: ${n.join("|")} in stateview: '${r}@${t.name}'`);s.resolveAs=s.resolveAs||"$resolve",s.$type="ng1",s.$context=t,s.$name=r;const o=el.normalizeUIViewTarget(s.$context,s.$name);s.$ngViewName=o.ngViewName,s.$ngViewContextAnchor=o.ngViewContextAnchor,i[r]=s})),i}let tl=0;class el{constructor(t,e,n){this.path=t,this.viewDecl=e,this.factory=n,this.component=void 0,this.template=void 0,this.$id=tl++,this.loaded=!1,this.getTemplate=(t,e)=>this.component?this.factory.makeComponentTemplate(t,e,this.component,this.viewDecl.bindings):this.template}load(){const t=Ua.$q,e=new Qc(this.path),n=this.path.reduce(((t,e)=>Object.assign(t,e.paramValues)),{}),r={template:t.resolve(this.factory.fromConfig(this.viewDecl,n,e)),controller:t.resolve(this.getController(e))};return t.all(r).then((t=>(Pc.traceViewServiceEvent("Loaded",this),this.controller=t.controller,Object.assign(this,t.template),this)))}getController(t){const e=this.viewDecl.controllerProvider;if(!fc(e))return this.viewDecl.controller;const n=ye(e),r=Array.isArray(e)?cc(e):e;return new Lc("",r,n).get(t)}static normalizeUIViewTarget(t,e=""){const n=e.split("@");let r=n[0]||"$default",i=y(n[1])?n[1]:"^";const s=/^(\^(?:\.\^)*)\.(.*$)/.exec(r);s&&(i=s[1],r=s[2]),"!"===r.charAt(0)&&(r=r.substring(1),i="");if(/^(\^(?:\.\^)*)$/.exec(i)){const e=i.split(".").reduce((t=>t.parent),t);i=e.name}else"."===i&&(i=t.name);return{ngViewName:r,ngViewContextAnchor:i}}}class nl{constructor(){this._ngViews=[],this._viewConfigs=[],this._viewConfigFactories={},this._listeners=[],this._pluginapi={_rootViewContext:this._rootViewContext.bind(this),_viewConfigFactory:this._viewConfigFactory.bind(this),_registeredUIView:t=>Qa(this._ngViews,(e=>e.id===t)),_registeredUIViews:()=>this._ngViews,_activeViewConfigs:()=>this._viewConfigs,_onSync:t=>(this._listeners.push(t),()=>Ba(this._listeners,t))},this._pluginapi._viewConfigFactory("ng1",function(){let t=null;return(e,n)=>(t=t||Ua.$injector.get("$templateFactory"),[new el(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){Pc.traceViewServiceEvent("<- Removing",t),Ba(this._viewConfigs,t)}activateViewConfig(t){Pc.traceViewServiceEvent("-> Registering",t),this._viewConfigs.push(t)}sync(){const t=this._ngViews.map((t=>[t.fqn,t])).reduce(ac,{});function e(t){let e=t.viewDecl.$context,n=0;for(;++n&&e.parent;)e=e.parent;return n}const n=ja(((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(nl.matches(t,r));return i.length>1&&i.sort(n(e,-1)),{ngView:r,viewConfig:i[0]}})),i=r.map((t=>t.viewConfig)),s=this._viewConfigs.filter((t=>!i.includes(t))).map((t=>({ngView:void 0,viewConfig:t})));r.forEach((t=>{-1!==this._ngViews.indexOf(t.ngView)&&t.ngView.configUpdated(t.viewConfig)}));const o=r.concat(s);this._listeners.forEach((t=>t(o))),Pc.traceViewSync(o)}registerUIView(t){Pc.traceViewServiceUIViewEvent("-> Registering",t);const e=this._ngViews;return e.filter((e=>e.fqn===t.fqn&&e.$type===t.$type)).length&&Pc.traceViewServiceUIViewEvent("!!!! duplicate ngView named:",t),e.push(t),this.sync(),()=>{-1!==e.indexOf(t)?(Pc.traceViewServiceUIViewEvent("<- Deregistering",t),Ba(e)(t)):Pc.traceViewServiceUIViewEvent("Tried removing non-registered ngView",t)}}available(){return this._ngViews.map((t=>t.fqn))}active(){return this._ngViews.filter((t=>t.$config)).map((t=>t.name))}}nl.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(!qa(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 rl={CREATE:0,BEFORE:1,RUN:2,SUCCESS:3,ERROR:4},il={TRANSITION:0,STATE:1},sl=2,ol=3,al=4,cl=5,ll=6;let ul=0;class hl{static superseded(t,e){const n=new hl(sl,"The transition has been superseded by a different transition",t);return e&&e.redirected&&(n.redirected=!0),n}static redirected(t){return hl.superseded(t,{redirected:!0})}static invalid(t){return new hl(al,"This transition is invalid",t)}static ignored(t){return new hl(cl,"The transition was ignored",t)}static aborted(t){return new hl(ol,"The transition has been aborted",t)}static errored(t){return new hl(ll,"The transition errored",t)}static normalize(t){return Ma(hl)(t)?t:hl.errored(t)}constructor(t,e,n){this.$id=ul++,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():Ac(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(hc(this),{_transitionRejection:this})}}class dl{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];dl.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 pl=new dl(!0),fl={current:()=>{},transition:null,traceData:{},bind:null};class $l{static chain(t,e){return t.reduce(((t,e)=>t.then((()=>e.invokeHook()))),e||Ua.$q.resolve())}static invokeHooks(t,e){for(let n=0;n<t.length;n++){const r=t[n].invokeHook();if($c(r)){const i=t.slice(n+1);return $l.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===rl.RUN&&!this.options.transition.isActive(),this.options=Wa(r,fl),this.type=n.eventType}logError(t){pl.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;Pc.traceHookInvocation(this,this.transition,n);const r=()=>t.callback.call(n.bind,this.transition,this.stateContext),i=t=>hl.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&&$c(t)?t.catch(i).then(o,s):o(t)}catch(t){return s(hl.normalize(t))}finally{t.invokeLimit&&++t.invokeCount>=t.invokeLimit&&t.deregister()}}handleHookResult(t){const e=this.getNotCurrentRejection();return e||($c(t)?t.then((t=>this.handleHookResult(t))):(Pc.traceHookResult(t,this.transition),!1===t?hl.aborted("Hook aborted transition").toPromise():t instanceof Ic?hl.redirected(t).toPromise():void 0))}getNotCurrentRejection(){return this.transition._aborted?hl.aborted().toPromise():this.isSuperseded()?hl.superseded(this.options.current()).toPromise():void 0}toString(){const{options:t,registeredHook:e}=this;return`${Pa("traceData.hookType")(t)||"internal"} context: ${Pa("traceData.context.state.name")(t)||Pa("traceData.context")(t)||"unknown"}, ${Cc(200,xc(e.callback))}`}}$l.HANDLE_RESULT=t=>e=>t.handleHookResult(e),$l.LOG_REJECTED_RESULT=t=>e=>{$c(e)&&e.catch((e=>t.logError(hl.normalize(e))))},$l.LOG_ERROR=t=>e=>t.logError(e),$l.REJECT_ERROR=()=>t=>hc(t),$l.THROW_ERROR=()=>t=>{throw t};class ml{static is(t){return!!/[!,*]+/.exec(t)}static fromString(t){return ml.is(t)?new ml(t):null}constructor(t){this.text=t,this.glob=t.split(".");const e=this.text.split(".").map((t=>"**"===t?"(?:|(?:\\.[^.]*)*)":"*"===t?"\\.[^.]*":"\\."+t)).join("");this.regexp=new RegExp("^"+e+"$")}matches(t){return this.regexp.test("."+t)}}function gl(t,e,n){const r=y(e)?[e]:e;return!!(C(r)?r:function(t){const e=r;for(let n=0;n<e.length;n++){const r=new ml(e[n]);if(r&&r.matches(t.name)||!r&&e[n]===t.name)return!0}return!1})(t,n)}class vl{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=>gl(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===il.STATE,o=t[i.name]||[],a=s?o:[cc(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 yl(t,e,n){const r=(t._registeredHooks=t._registeredHooks||{})[n.name]=[],i=Ba(r);function s(t,s,o={}){const a=new vl(e,n,s,t,i,o);return r.push(a),a.deregister.bind(a)}return t[n.name]=s,s}class bl{constructor(t){this.transition=t}buildHooksForPhase(t){return this.transition.transitionService._pluginapi._getEvents(t).map((t=>this.buildHooks(t))).reduce(tc,[]).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===il.STATE?n.state.self:null,a=new $l(e,o,r,s);return{hook:r,node:n,transitionHook:a}})))).reduce(tc,[]).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===rl.CREATE,i=this.transition.transitionService;return(r?[i]:[this.transition,i]).map((e=>e.getHooks(t.name))).filter(sc(Array.isArray,`broken event named: ${t.name}`)).reduce(tc,[]).filter((t=>t.matches(e,n)))}}class wl{constructor(t,e,n,r){if(this.globals=r,this.transitionService=n,this._deferred=Ua.$q.defer(),this.promise=this._deferred.promise,this._registeredHooks={},this._hookBuilder=new bl(this),this.isActive=()=>this.globals.transition===this,this._targetState=e,!e.valid())throw new Error(e.error());this._options=Object.assign({current:La(this)},e.options()),this.$id=n._transitionCount++;const i=zc.buildToPath(t,e);this._treeChanges=zc.treeChanges(t,i,this._options.reloadState),this.createTransitionHookRegFns();const s=this._hookBuilder.buildHooksForPhase(rl.CREATE);$l.invokeHooks(s,(()=>null)),this.applyViewConfigs()}createTransitionHookRegFns(){this.transitionService._pluginapi._getEvents().filter((t=>t.hookPhase!==rl.CREATE)).forEach((t=>yl(this,this.transitionService,t)))}getHooks(t){return this._registeredHooks[t]}applyViewConfigs(){const t=this._treeChanges.entering.map((t=>t.state));zc.applyViewConfigs(this.transitionService.$view,this._treeChanges.to,t)}$from(){return cc(this._treeChanges.from).state}$to(){return cc(this._treeChanges.to).state}from(){return this.$from().self}to(){return this.$to().self}targetState(){return this._targetState}is(t){return t instanceof wl?this.is({to:t.$to().name,from:t.$from().name}):!(t.to&&!gl(this.$to(),t.to,this)||t.from&&!gl(this.$from(),t.from,this))}params(t="to"){return Object.freeze(this._treeChanges[t].map((t=>t.paramValues)).reduce(((t,e)=>({...t,...e})),{}))}paramsChanged(){const t=this.params("from"),e=this.params("to"),n=[].concat(this._treeChanges.to).concat(this._treeChanges.from).map((t=>t.paramSchema)).reduce(ec,[]).reduce(rc,[]);return Fc.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=zc.subPath(n,(e=>e.state===t||e.state.name===t))),new Qc(n).injector()}getResolveTokens(t="to"){return new Qc(this._treeChanges[t]).getTokens()}addResolvable(t,e){t=Ma(Lc)(t)?t:new Lc(t);const n="string"==typeof e?e:e.name,r=this._treeChanges.to,i=Qa(r,(t=>t.state.name===n));rt(!!i,`targetNode not found ${n}`);new Qc(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 Za(this._treeChanges.entering,(t=>t.state)).map((t=>t.self))}exiting(){return Za(this._treeChanges.exiting,(t=>t.state)).map((t=>t.self)).reverse()}retained(){return Za(this._treeChanges.retained,(t=>t.state)).map((t=>t.self))}views(t="entering",e){let n=this._treeChanges[t];return n=e?n.filter(Ra("state",e)):n,n.map((t=>t.views)).reduce(tc,[])}treeChanges(t){return t?this._treeChanges[t]:this._treeChanges}redirect(t){let e=1,n=this;for(;null!=(n=n.redirectedFrom());)if(++e>20)throw new Error("Too many consecutive Transition redirects (20+)");const r={redirectedFrom:this,source:"redirect"};"url"===this.options().source&&!1!==t.options().location&&(r.location="replace");const i=Object.assign({},this.options(),t.options(),r);t=t.withOptions(i,!0);const s=this.transitionService.create(this._treeChanges.from,t),o=this._treeChanges.entering,a=s._treeChanges.entering;return zc.matching(a,o,zc.nonDynamicParams).filter((e=>{return!(n=t.options().reloadState,t=>n&&t.state.includes[n.name])(e);var n})).forEach(((t,e)=>{t.resolvables=o[e].resolvables})),s}_changedParams(){const t=this._treeChanges;if(this._options.reload)return;if(t.exiting.length||t.entering.length)return;if(t.to.length!==t.from.length)return;if(oc(t.to,t.from).map((t=>t[0].state!==t[1].state)).reduce(Xa,!1))return;const e=t.to.map((t=>t.paramSchema)),[n,r]=[t.to,t.from].map((t=>t.map((t=>t.paramValues))));return oc(e,n,r).map((([t,e,n])=>Fc.changed(t,e,n))).reduce(tc,[])}dynamic(){const t=this._changedParams();return!!t&&t.map((t=>t.dynamic)).reduce(Xa,!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=zc.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=$l.runAllHooks,e=t=>this._hookBuilder.buildHooksForPhase(t),n=e(rl.BEFORE);return $l.invokeHooks(n,(()=>{const t=this.globals;return t.lastStartedTransitionId=this.$id,t.transition=this,t.transitionHistory.enqueue(this),Pc.traceTransitionStart(this),Ua.$q.resolve(void 0)})).then((()=>{const t=e(rl.RUN);return $l.invokeHooks(t,(()=>Ua.$q.resolve(void 0)))})).then((()=>{Pc.traceSuccess(this.$to(),this),this.success=!0,this._deferred.resolve(this.to()),t(e(rl.SUCCESS))}),(n=>{Pc.traceError(n,this),this.success=!1,this._deferred.reject(n),this._error=n,t(e(rl.ERROR))})),this.promise}valid(){return!this.error()||void 0!==this.success}abort(){m(this.success)&&(this._aborted=!0)}error(){const t=this.$to();if(t.self.abstract)return hl.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}:${Ac(n[t.id])}]`)).join(", "),i=`The following parameter values are not valid for state '${t.name}': ${e}`;return hl.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}'${Ac(n(this._treeChanges.from.map((t=>t.paramValues)).reduce(((t,e)=>({...t,...e})),{})))} -> ${this.valid()?"":"(X) "}'${v(e)?e.name:e}'${Ac(n(this.params()))} )`}}wl.diToken=wl;const El=["$transition$",wl];function Cl(t){const e=Object.values(t.treeChanges()).reduce(tc,[]).reduce(rc,[]),n=t=>El.includes(t.token)?Lc.fromData(t.token,null):t;e.forEach((t=>{t.resolvables=t.resolvables.map(n)}))}function Ol(t){return(e,n)=>(0,n.$$state()[t])(e,n)}const Sl=Ol("onExit"),xl=Ol("onRetain"),Al=Ol("onEnter"),kl=1e3,_l=t=>new Qc(t.treeChanges().to).resolvePath("EAGER",t).then((()=>{})),Tl=(t,e)=>new Qc(t.treeChanges().to).subContext(e.$$state()).resolvePath("LAZY",t).then((()=>{})),jl=t=>new Qc(t.treeChanges().to).resolvePath("LAZY",t).then((()=>{})),Nl=t=>{const e=Ua.$q,n=t.views("entering");if(n.length)return e.all(n.map((t=>e.resolve(t.load())))).then((()=>{}))},Vl=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,lc(t.params(),e.params)}),{priority:1e4}),t.promise.then(n,n)};function Rl(t,e,n,r){return t.onBefore({entering:t=>!!t.lazyLoad},(t=>{const i=t.entering().filter((t=>!!t.$$state().lazyLoad)).map((e=>Pl(t,e,r)));return Ua.$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 Pl(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,Ua.$q.reject(t));i=r._promise=Ua.$q.resolve(r(t,e)).then((function(t){t&&Array.isArray(t.states)&&t.states.forEach((t=>n.register(t)));return t})).then(s,o)}return i}class Dl{constructor(t,e,n,r,i=!1,s=$l.HANDLE_RESULT,o=$l.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 Ml(t){const e=t._ignoredReason();if(!e)return;Pc.traceTransitionIgnored(t);const n=t.globals.transition;return"SameAsCurrent"===e&&n&&n.abort(),hl.ignored().toPromise()}function Ll(t){if(!t.valid())throw new Error(t.error().toString())}let Il={location:!0,relative:null,inherit:!1,notify:!0,reload:!1,supercede:!0,custom:{},current:()=>null,source:"unknown"};class Ul{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(La(this),{},La(this),["_definePathType","_defineEvent","_getPathTypes","_getEvents","getHooks"]),this._defineCorePaths(),this._defineCoreEvents(),this._registerCoreTransitionHooks(),t.successfulTransitions.onEvict(Cl)}$get=["$state","$urlService","$stateRegistry","$view",(t,e,n,r)=>(this._deregisterHookFns.lazyLoad=Rl(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 Ic?e:y(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 C(n)?Ua.$q.resolve(n(t)).then(i):i(n)}))})(this,t),this._deregisterHookFns.activateViews=((t,e)=>{t.onSuccess({},(t=>{const n=t.views("entering"),r=t.views("exiting");(n.length||r.length)&&(r.forEach((t=>e.deactivateViewConfig(t))),n.forEach((t=>e.activateViewConfig(t))),e.sync())}))})(this,r),this)];create(t,e){return new wl(t,e,this,this.globals)}_defineCoreEvents(){const t=rl,e=$l,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}=il;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=$l.HANDLE_RESULT,o=$l.REJECT_ERROR,a=!1){const c=new Dl(t,e,n,r,i,s,o,a);this._eventTypes.push(c),yl(this,this,c)}_getEvents(t){return(g(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(Lc.fromData(wl,t),""),t.addResolvable(Lc.fromData("$transition$",t),""),t.addResolvable(Lc.fromData("$stateParams",t.params()),""),t.entering().forEach((e=>{t.addResolvable(Lc.fromData("$state$",e),e)}))})),t.ignored=(t=>t.onBefore({},Ml,{priority:-9999}))(this),t.invalid=(t=>t.onBefore({},Ll,{priority:-1e4}))(this),t.onExit=(t=>t.onExit({exiting:t=>!!t.onExit},Sl))(this),t.onRetain=(t=>t.onRetain({retained:t=>!!t.onRetain},xl))(this),t.onEnter=(t=>t.onEnter({entering:t=>!!t.onEnter},Al))(this),t.eagerResolve=(t=>t.onStart({},_l,{priority:kl}))(this),t.lazyResolve=(t=>t.onEnter({entering:La(!0)},Tl,{priority:kl}))(this),t.resolveAll=(t=>t.onFinish({},jl,{priority:kl}))(this),t.loadViews=(t=>t.onFinish({},Nl))(this),t.updateGlobals=(t=>t.onCreate({},Vl))(this),t.lazyLoad=Rl(this)}}const ql=ct("$stateProvider");class Hl{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 hl?new Error(t.toString()):new Error(t)};const n=["current","$current","params","transition"],r=Object.keys(Hl.prototype).filter((t=>!n.includes(t)));Ha(La(Hl.prototype),this,La(this),r),pl.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 ql("stateinvalid","'name' required");try{this.stateRegistry.register(t)}catch(t){throw ql("stateinvalid",t.message)}return this}_handleInvalidTargetState(t,e){const n=Wc(this.stateRegistry,t),r=this.globals,i=()=>r.transitionHistory.peekTail(),s=i(),o=new wc(this.invalidCallbacks.slice()),a=new Qc(t).injector(),c=t=>{if(!(t instanceof Ic))return;let e=t;return e=this.target(e.identifier(),e.params(),e.options()),e.valid()?i()!==s?hl.superseded().toPromise():this.transitionTo(e.identifier(),e.params(),e.options()):hl.invalid(e.error()).toPromise()};return function t(){const r=o.dequeue();return void 0===r?hl.invalid(e.error()).toPromise():Ua.$q.resolve(r(e,n,a)).then(c).then((e=>e||t()))}()}onInvalid(t){return this.invalidCallbacks.push(t),function(){Ba(this.invalidCallbacks)(t)}.bind(this)}reload(t){return this.transitionTo(this.globals.current,this.globals.params,{reload:!g(t)||t,inherit:!1,notify:!1})}go(t,e,n){const r=Wa(n,{relative:this.$current,inherit:!0},Il);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 '${y(n.reload)?n.reload:n.reload.name}'`);return new Ic(this.stateRegistry,t,e,n)}getCurrentPath(){const t=this.globals.successfulTransitions.peekTail();return t?t.treeChanges().to:(()=>[new Bc(this.stateRegistry.root())])()}transitionTo(t,e={},n={}){n=Wa(n,Il);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 hc(i.error());if(!1===n.supercede&&r())return hl.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 hl){const n=this.globals.lastStartedTransitionId<=t.$id;if(e.type===cl)return n&&this.urlService.update(),Ua.$q.resolve(this.globals.current);const r=e.detail;if(e.type===sl&&e.redirected&&r instanceof Ic){const e=t.redirect(r);return e.run().catch(o(e))}if(e.type===ol)return n&&this.urlService.update(),Ua.$q.reject(e)}return this.defaultErrorHandler()(e),Ua.$q.reject(e)},a=this.transitionService.create(s,i),c=a.run().catch(o(a));return uc(c),Object.assign(c,{transition:a})}is(t,e,n){n=Wa(n,{relative:this.$current});const r=this.stateRegistry.matcher.find(t,n.relative);if(!g(r))return;if(this.$current!==r)return!1;if(!e)return!0;const i=r.parameters({inherit:!0,matchingKeys:e});return Fc.equals(i,Fc.values(i,e),this.globals.params)}includes(t,e,n){n=Wa(n,{relative:this.$current});const r=y(t)&&ml.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(!g(i))return;if(!g(s[i.name]))return!1;if(!e)return!0;const o=i.parameters({inherit:!0,matchingKeys:e});return Fc.equals(o,Fc.values(o,e),this.globals.params)}href(t,e,n){n=Wa(n,{lossy:!0,inherit:!0,absolute:!1,relative:this.$current}),e=e||{};const r=this.stateRegistry.matcher.find(t,n.relative);if(!g(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=Wc(this.stateRegistry,r);return Pl(e=e||this.transitionService.create(r,i),n)}}class Fl{constructor(){this.enabled=!1}useAnchorScroll(){this.enabled=!0}$get=["$anchorScroll","$timeout",(t,e)=>this.enabled?t:function(t){return e((()=>{t[0].scrollIntoView()}),0,!1)}]}class Bl{constructor(){this._useHttp=!1}$get=["$http","$templateCache","$templateRequest","$q","$injector",(t,e,n,r,i)=>(this.$templateRequest=n,this.$http=t,this.$templateCache=e,this.$q=r,this.$injector=i,this)];useHttpService(t){this._useHttp=t}fromConfig(t,e,n){const r=t=>this.$q.resolve(t).then((t=>({template:t}))),i=t=>this.$q.resolve(t).then((t=>({component:t})));switch((t=>g(t.template)?"template":g(t.templateUrl)?"templateUrl":g(t.templateProvider)?"templateProvider":g(t.component)?"component":g(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 C(t)?t(e):t}fromUrl(t,e){return C(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=ye(t),i=Array.isArray(t)?cc(t):t;return new Lc("",i,r).get(n)}fromComponentProvider(t,e,n){const r=ye(t),i=Array.isArray(t)?cc(t):t;return new Lc("",i,r).get(n)}makeComponentTemplate(t,e,n,r){r=r||{};const i=t=>{const e=Oc(t);return/^(x|data)-/.exec(e)?`x-${e}`:e},s=function(t){const e=Ua.$injector.get(t+"Directive");if(!e||!e.length)throw new Error(`Unable to find component named '${t}'`);return e.map(zl).reduce(tc,[])}(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&&ye(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 zl=t=>v(t.bindToController)?Wl(t.bindToController):Wl(t.scope),Wl=t=>Object.keys(t||{}).map((e=>[e,/^([=<@&])[?]?(.*)/.exec(t[e])])).filter((t=>g(t)&&Array.isArray(t[1]))).map((t=>({name:t[1][2]||t[0],type:t[1][1]})));function Gl(t,e){let n=["",""],r=t.replace(/[\\[\]^$*+?.()|{}]/g,"\\$&");if(!e)return r;switch(e.squash){case!1:n=["(",")"+(e.isOptional?"?":"")];break;case!0:r=r.replace(/\/$/,""),n=["(?:/(",")|/)?"];break;default:n=[`(${e.squash}|`,")?"]}return r+n[0]+e.type.pattern.source+n[1]}const Kl=function(t){const e=new RegExp("("+t+")","g");return t=>t.split(e).filter(Boolean)}("/"),Yl={state:{params:{}},strict:!0,caseInsensitive:!0};class Ql{static encodeDashes(t){return encodeURIComponent(t).replace(/-/g,(t=>`%5C%${t.charCodeAt(0).toString(16).toUpperCase()}`))}static pathSegmentsAndParams(t){return oc(t._segments,t._params.filter((t=>t.location===qc.PATH)).concat(void 0)).reduce(tc,[]).filter((t=>""!==t&&g(t)))}static queryParams(t){return t._params.filter((t=>t.location===qc.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(Ql.pathSegmentsAndParams).reduce(tc,[]).reduce(kc,[]).map((t=>y(t)?Kl(t):t)).reduce(tc,[]))(t).map((t=>"/"===t?1:y(t)?2:t instanceof Fc?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=oc(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=Wa(r,Yl),this.pattern=t;const i=/([:*])([\w[\]]+)|\{([\w[\]]+)(?::\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,s=/([:]?)([\w[\].-]+)|\{([\w[\].-]+)(?::\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,o=[];let a,c=0;const l=e=>{if(!Ql.nameValidator.test(e))throw new Error(`Invalid parameter name '${e}' in pattern '${t}'`);if(Qa(this._params,Ra("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,d;for(;(a=i.exec(t))&&(h=u(a,!1),!(h.segment.indexOf("?")>=0));)l(h.id),this._params.push(n.fromPath(h.id,h.type,r.state)),this._segments.push(h.segment),o.push([h.segment,cc(this._params)]),c=i.lastIndex;d=t.substring(c);const p=d.indexOf("?");if(p>=0){const t=d.substring(p);if(d=d.substring(0,p),t.length>0)for(c=0;a=s.exec(t);)h=u(a,!0),l(h.id),this._params.push(n.fromSearch(h.id,h.type,r.state)),c=i.lastIndex}this._segments.push(d),this._compiled=o.map((t=>Gl.apply(null,t))).concat(Gl(d))}append(t){return this._children.push(t),t._cache={path:this._cache.path.concat(t),parent:this,pattern:null},t}isRoot(){return this._cache.path[0]===this}toString(){return this.pattern}_getDecodedParamValue(t,e){return g(t)&&(t=e.type.decode(t)),e.value(t)}exec(t,e={},n){const r=(i=this._cache,s="pattern",o=()=>new RegExp(["^",ic(this._cache.path.map((t=>t._compiled))).join(""),!1===this.config.strict?"/?":"","$"].join(""),this.config.caseInsensitive?"i":void 0),i[s]=i[s]||o()).exec(t);var i,s,o;if(!r)return null;const a=this.parameters(),c=a.filter((t=>!t.isSearch())),l=a.filter((t=>t.isSearch())),u=this._cache.path.map((t=>t._segments.length-1)).reduce(((t,e)=>t+e)),h={};if(u!==r.length-1)throw new Error(`Unbalanced capture group in route '${this.pattern}'`);function d(t){const e=t=>t.split("").reverse().join(""),n=Za(e(t).split(/-(?!\\)/),e);return Za(n,(t=>t.replace(/\\-/g,"-"))).reverse()}for(let t=0;t<u;t++){const e=c[t];let n=r[t+1];for(let t=0;t<e.replace.length;t++)e.replace[t].from===n&&(n=e.replace[t].to);n&&!0===e.array&&(n=d(n)),h[e.id]=this._getDecodedParamValue(n,e)}return l.forEach((t=>{let n=e[t.id];for(let e=0;e<t.replace.length;e++)t.replace[e].from===n&&(n=t.replace[e].to);h[t.id]=this._getDecodedParamValue(n,t)})),n&&(h["#"]=n),h}parameters(t={}){return!1===t.inherit?this._params:ic(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(Ja,!0)}format(t={}){const e=this._cache.path,n=e.map(Ql.pathSegmentsAndParams).reduce(tc,[]).map((t=>y(t)?t:i(t))),r=e.map(Ql.queryParams).reduce(tc,[]).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(y(e))return t+e;const{squash:n,encoded:r,param:i}=e;return!0===n?t.match(/\/$/)?t.slice(0,-1):t:y(n)?t+n:!1!==n||null==r?t:Array.isArray(r)?t+Za(r,Ql.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=Za(r,encodeURIComponent)),r.map((t=>`${e.id}=${t}`))})).reduce(tc,[]).join("&");return s+(o?`?${o}`:"")+(t["#"]?"#"+t["#"]:"")}}Ql.nameValidator=/^\w+([-.]+\w+)*(?:\[\])?$/;class Zl{name=void 0;navigable=void 0;parent=void 0;params=void 0;url=void 0;constructor(t){Object.assign(this,t),this.$$state=()=>this,this.self=t;const e=this.name?ml.fromString(this.name):null;this.__stateObjectCache={nameGlob:e}}is(t){return this===t||this.self===t||this.fqn()===t}fqn(){if(!(this.parent&&this.parent instanceof this.constructor))return this.name;const t=this.parent.fqn();return t?t+"."+this.name:this.name}root(){return this.parent&&this.parent.root()||this}parameters(t){return((t=Wa(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)||Qa(Object.values(this.params),Ra("id",t))||e.inherit&&this.parent&&this.parent.parameter(t)}toString(){return this.fqn()}}Zl.isStateDeclaration=t=>C(t.$$state),Zl.isState=t=>v(t.__stateObjectCache);class Jl{constructor(t,e,n){this.urlService=t,this.stateService=e,this.routerGlobals=n}create(t,e){const{isState:n,isStateDeclaration:r}=Zl,i=Ia([[y,t=>i(this.urlService.compile(t))],[Ma(Ql),t=>this.fromUrlMatcher(t,e)],[(s=n,o=r,(...t)=>s.apply(null,t)||o.apply(null,t)),t=>this.fromState(t,this.stateService,this.routerGlobals)],[Ma(RegExp),t=>this.fromRegExp(t,e)],[C,t=>new Xl(t,e)]]);var s,o;const a=i(t);if(!a)throw new Error("invalid 'what' in when()");return a}fromUrlMatcher(t,e){let n=e;y(e)&&(e=this.urlService.compile(e)),Ma(Ql)(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 Xl((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=Zl.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=y(e)?t=>e.replace(/\$(\$|\d{1,2})/,((e,n)=>t["$"===n?0:Number(n)])):e,r={regexp:t,type:"REGEXP"};return Object.assign(new Xl((e=>t.exec(e.path)),n),r)}}Jl.isUrlRule=t=>t&&["type","match","handler"].every((e=>g(t[e])));class Xl{constructor(t,e){this.match=t,this.type="RAW",this.$id=-1,this._group=void 0,this.handler=e||(t=>t)}matchPriority(t){return rt(m(t)),0-this.$id}}let tu;function eu(t){if(!(C(t)||y(t)||Ma(Ic)(t)||Ic.isDef(t)))throw new Error("'handler' must be a string, function, TargetState, or have a state: 'newtarget' property");return C(t)?t:La(t)}tu=(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?Ql.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 nu{constructor(t){this._sortFn=tu,this._rules=[],this._id=0,this.urlRuleFactory=t}initial(t){const e=eu(t);this.rule(this.urlRuleFactory.create(((t,e)=>0===e.globals.transitionHistory.size()&&!!/^\/?$/.exec(t.path)),e))}otherwise(t){const e=eu(t);this._otherwiseFn=this.urlRuleFactory.create(La(!0),e),this._sorted=!1}removeRule(t){Ba(this._rules,t)}rule(t){if(!Jl.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 g(n&&n.priority)&&(r.priority=n.priority),this.rule(r),r}}class ru{constructor(t){this.urlServiceConfig=t}fromConfig(t,e,n){return new Fc(t,e,qc.CONFIG,this.urlServiceConfig,n)}fromPath(t,e,n){return new Fc(t,e,qc.PATH,this.urlServiceConfig,n)}fromSearch(t,e,n){return new Fc(t,e,qc.SEARCH,this.urlServiceConfig,n)}}class iu{static $inject=["$locationProvider","$stateProvider","$routerGlobalsProvider","$urlConfigProvider"];constructor(t,e,n,r){this.stateService=e,this.stateService.urlService=this,this.$locationProvider=t,this.$location=void 0,this.$browser=void 0,this.urlRuleFactory=new Jl(this,this.stateService,n),this.rules=new nu(this.urlRuleFactory),this.config=r,this.paramFactory=new ru(this.config),this.path=()=>this.$location.path(),this.search=()=>this.$location.search(),this.hash=()=>this.$location.hash(),this._urlListeners=[]}$get=["$location","$browser","$rootScope",(t,e,n)=>(this.$location=t,this.$browser=e,n.$on("$locationChangeSuccess",(t=>this._urlListeners.forEach((e=>e(t))))),this.listen(),this)];html5Mode(){return this.$locationProvider.getHtml5Mode().enabled&&"undefined"!=typeof history}baseHref(){return this._baseHref||(this._baseHref=this.$browser.baseHref()||window.location.pathname)}url(t,e=!1,n){return g(t)&&this.$location.url(t),e&&this.$location.replace(),n&&this.$location.state(n),this.$location.url()}onChange(t){return this._urlListeners.push(t),()=>Ba(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);Ia([[y,t=>this.url(t,!0)],[Ic.isDef,t=>e.go(t.state,t.params,t.options)],[Ma(Ic),t=>e.go(t.state(),t.params(),t.options())]])(r&&r.rule.handler(r.match,n))}listen(t){if(!1!==t)return this._stopListeningFn=this._stopListeningFn||this.onChange((t=>this.sync(t)));this._stopListeningFn&&this._stopListeningFn(),delete this._stopListeningFn}match(t){t=Object.assign({path:"",search:{},hash:""},t);const e=this.rules.rules(),n=e=>{const n=e.match(t);return n&&{match:n,rule:e,weight:e.matchPriority(n)}};let r;for(let t=0;t<e.length&&(!r||r.rule._group===e[t]._group);t++){const i=n(e[t]);r=!r||i&&i.weight>r.weight?i:r}return r}update(t){t?this.location=this.url():this.url()!==this.location&&this.url(this.location,!0)}push(t,e,n){const r=n&&!!n.replace;this.url(t.format(e||{}),r)}href(t,e,n){let r=t.format(e);if(null==r)return null;n=n||{absolute:!1};const i=this.html5Mode();if(i||null===r||(r="#"+this.$locationProvider.getHashPrefix()+r),r=function(t,e,n,r){return"/"===r?t:e?(t=>t.replace(/\/[^/]*$/,""))(r)+t:n?r.slice(1)+t:t}(r,i,n.absolute,this.baseHref()),!n.absolute||!r)return r;const s=!i&&r?"/":"",o=this.$location.port(),a=80===o||443===o?"":":"+o;return[this.$location.protocol(),"://",this.$location.host(),a,s,r].join("")}compile(t,e){const n=this.config,r=e&&!e.state&&e.params;e=r?Object.assign({state:{params:r}},e):e;const i={strict:n._isStrictMode,caseInsensitive:n._isCaseInsensitive};return new Ql(t,n.paramTypes,this.paramFactory,Object.assign(i,e))}isMatcher(t){if(!v(t))return!1;let e=!0;return Object.entries(Ql.prototype).forEach((([n,r])=>{C(r)&&(e=e&&g(t[n])&&C(t[n]))})),e}}class su{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=y(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 ou(t){return t.self.$$state=()=>t,t.self}function au(t){return t.parent&&t.parent.data&&(t.data=t.self.data=Fa(t.parent.data,t.data)),t.data}function cu(t,e){return function(n){let r=n.self;if(r&&r.url&&r.name&&r.name.match(/\.\*\*$/)){const t={};lc(r,t),t.url+="{remainder:any}",r=t}const i=n.parent,s=function(t){if(!y(t))return!1;const e="^"===t.charAt(0);return{val:e?t.substring(1):t,root:e}}(r.url),o=s?t.compile(s.val,{state:r}):r.url;if(!o)return null;if(!t.isMatcher(o))throw new Error(`Invalid url '${o}' in state '${n}'`);return s&&s.root?o:(i&&i.navigable||e()).url.append(o)}}function lu(t){return function(e){return!t(e)&&e.url?e:e.parent?e.parent.navigable:null}}function uu(t){return t.parent&&!t.abstract?t.parent.path.concat(t):[t]}function hu(t){const e=t.parent?Object.assign({},t.parent.includes):{};return e[t.name]=!0,e}function du(t){const e=Ia([[t=>t.resolveFn,t=>new Lc($u(t),t.resolveFn,t.deps,t.policy)],[t=>t.useFactory,t=>new Lc($u(t),t.useFactory,t.deps||t.dependencies,t.policy)],[t=>t.useClass,t=>new Lc($u(t),(()=>new t.useClass),[],t.policy)],[t=>t.useValue,t=>new Lc($u(t),(()=>t.useValue),[],t.policy,t.useValue)],[t=>t.useExisting,t=>new Lc($u(t),(t=>t),[t.useExisting],t.policy)]]),n=Ia([[Va((t=>t.val),y),t=>new Lc(t.token,(t=>t),[t.val],t.policy)],[Va((t=>t.val),Array.isArray),t=>new Lc(t.token,cc(t.val),t.val.slice(0,-1),t.policy)],[Va((t=>t.val),C),t=>new Lc(t.token,t.val,(t=>{const e=Ua.$injector;return t.$inject||e&&ye(t,e.strictDi)||"deferred"})(t.val),t.policy)]]),r=Ia([[Ma(Lc),t=>t],[t=>!(!t.token||!t.resolveFn),e],[t=>!!(t&&t.val&&(y(t.val)||Array.isArray(t.val)||C(t.val))),n],[La(!0),t=>{throw new Error("Invalid resolve value: "+Ac(t))}]]),i=t.resolve,s=Array.isArray(i)?i:((t,e)=>Object.keys(t||{}).map((n=>({token:n,val:t[n],deps:void 0,policy:e[n]}))))(i,t.resolvePolicy||{});return s.map(r)}class pu{constructor(t,e){this.matcher=t,this.$injector=void 0;const n=this,r=()=>t.find("");var i;this.builders={name:[t=>t.name],self:[ou],parent:[function(e){return fu(e)?null:t.find(n.parentName(e))||r()}],data:[au],url:[cu(e,r)],navigable:[lu(fu)],params:[(i=e.paramFactory,function(t){const e=t.url&&t.url.parameters({inherit:!1})||[],n=Object.values(Za(Ka(t.params||{},e.map((t=>t.id))),((e,n)=>i.fromConfig(n,null,t.self))));return e.concat(n).map((t=>[t.id,t])).reduce(ac,{})})],views:[],path:[uu],includes:[hu],resolvables:[du]}}builder(t,e){const n=this.builders,r=n[t]||[];return y(t)&&!g(e)?r.length>1?r:r[0]:y(t)&&C(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?y(t.parent)?t.parent:t.parent.name:""}name(t){const e=t.name;if(-1!==e.indexOf(".")||!t.parent)return e;const n=y(t.parent)?t.parent:t.parent.name;return n?n+"."+e:e}}function fu(t){return""===t.name}function $u(t){return t.provide||t.token}class mu{constructor(t,e,n,r,i){this.stateRegistry=t,this.urlServiceRules=e,this.states=n,this.builder=r,this.listeners=i,this.queue=[]}register(t){const e=new Zl(t);if(!y(name))throw new Error("State must have a valid name");if(Object.prototype.hasOwnProperty.call(this.states,e.name)||this.queue.map((t=>t.name)).includes(e.name))throw new Error(`State '${e.name}' is already defined`);return this.queue.push(e),this.flush(),e}flush(){const{queue:t,states:e,builder:n}=this,r=[],i=[],s={},o=t=>Object.prototype.hasOwnProperty.call(this.states,t)&&this.states[t],a=()=>{r.length&&this.listeners.forEach((t=>t("registered",r.map((t=>t.self)))))};for(;t.length>0;){const c=t.shift(),l=c.name,u=n.build(c),h=i.indexOf(c);if(u){const t=o(l);if(t&&t.name===l)throw new Error(`State '${l}' is already defined`);const n=o(l+".**");n&&this.stateRegistry.deregister(n),e[l]=c,this.attachRoute(c),h>=0&&i.splice(h,1),r.push(c);continue}const d=s[l];if(s[l]=t.length,h>=0&&d===t.length)return t.push(c),a(),e;h<0&&i.push(c),t.push(c)}return a(),e}attachRoute(t){if(t.abstract||!t.url)return;const e=this.urlServiceRules;e.rule(e.urlRuleFactory.create(t))}}class gu{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 su(this.states),this.builder=new pu(this.matcher,t),this.builder.builder("views",Xc),this.builder.builder("onExit",this.getStateHookBuilder("onExit")),this.builder.builder("onRetain",this.getStateHookBuilder("onRetain")),this.builder.builder("onEnter",this.getStateHookBuilder("onEnter")),this.stateQueue=new mu(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 Qc(t.treeChanges(i)).subContext(n.$$state()),o=Object.assign(vu(s),{$state$:n,$transition$:t});return e.$injector.invoke(r,this,o)}:void 0}}registerRoot(){this._root=this.stateQueue.register({name:"",url:"^",views:null,params:{"#":{value:null,type:"hash",dynamic:!0}},abstract:!0}),this._root.navigable=null}onStatesChanged(t){return this.listeners.push(t),function(){Ba(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(Ra("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 vu=t=>t.getTokens().filter(y).map((e=>{const n=t.getResolvable(e);return[e,"NOWAIT"===t.getPolicy(n).async?n.promise:n.data]})).reduce(ac,{});function yu(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 bu(t){const e=t.parent().inheritedData("$ngView"),n=Pa("$cfg.path")(e);return n?cc(n).state.name:void 0}function wu(t,e,n){const r=n.ngState||t.current.name,i=Object.assign(function(t,e){return{relative:bu(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 Eu(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 Cu(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 Ou(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 Su(t,e,n,r){const i=t;return{restrict:"A",require:["?^ngSrefActive","?^ngSrefActiveEq"],link:(t,s,o,a)=>{const c=Eu(s),l=a[1]||a[0];let u=null;const h={},d=()=>wu(i,s,h),p=yu(o.ngSref);function f(){const t=d();u&&u(),l&&(u=l.$$addStateInfo(t.ngState,t.ngStateParams)),null!=t.href&&o.$set(c.attr,t.href)}if(h.ngState=p.state,h.ngStateOpts=o.ngSrefOpts?t.$eval(o.ngSrefOpts):{},p.paramExpr&&(t.$watch(p.paramExpr,(function(t){h.ngStateParams=Object.assign({},t),f()}),!0),h.ngStateParams=Object.assign({},t.$eval(p.paramExpr))),f(),t.$on("$destroy",n.onStatesChanged(f)),t.$on("$destroy",r.onSuccess({},f)),!c.clickable)return;const $=Cu(s,i,e,c,d);Ou(s,t,$,h.ngStateOpts)}}}function xu(t,e,n,r){return{restrict:"A",require:["?^ngSrefActive","?^ngSrefActiveEq"],link:function(i,s,o,a){const c=Eu(s),l=a[1]||a[0];let u,h=null;const d={},p=()=>wu(t,s,d),f=["ngState","ngStateParams","ngStateOpts"],$=f.reduce(((t,e)=>(t[e]=()=>{},t)),{});function m(){const t=p();h&&h(),l&&(h=l.$$addStateInfo(t.ngState,t.ngStateParams)),null!=t.href&&o.$set(c.attr,t.href)}f.forEach((t=>{d[t]=o[t]?i.$eval(o[t]):null,o.$observe(t,(e=>{$[t](),$[t]=i.$watch(e,(e=>{d[t]=e,m()}),!0)}))})),m(),i.$on("$destroy",n.onStatesChanged(m)),i.$on("$destroy",r.onSuccess({},m)),c.clickable&&(u=Cu(s,t,e,c,p),Ou(s,i,u,d.ngStateOpts))}}}function Au(t,e,n,r,i){return{restrict:"A",controller:function(s,o,a){let c,l,u=[];c=n(a.ngSrefActiveEq||"",!1)(s);try{l=s.$eval(a.ngSrefActive)}catch(t){}function h(t){t.promise.then($,(()=>{}))}function d(){p(l)}function p(t){v(t)&&(u=[],Object.entries(t).forEach((([t,e])=>{const n=function(t,e){const n=yu(t);f(n.state,s.$eval(n.paramExpr),e)};y(e)?n(e,t):Array.isArray(e)&&e.forEach((e=>{n(e,t)}))})))}function f(e,n,r){const i={state:t.get(e,bu(o))||{name:e},params:n,activeClass:r};return u.push(i),function(){Ba(u)(i)}}function $(){const e=t=>t.split(/\s/).filter(Boolean),n=t=>t.map((t=>t.activeClass)).map(e).reduce(tc,[]),r=n(u).concat(e(c)).reduce(rc,[]),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(rc,[]),h=r.filter((t=>!l.includes(t)));s.$evalAsync((()=>{l.forEach((t=>o[0].classList.add(t))),h.forEach((t=>o[0].classList.remove(t)))}))}l=l||n(a.ngSrefActive||"",!1)(s),p(l),this.$$addStateInfo=function(t,e){if(v(l)&&u.length>0)return;const n=f(t,e,l);return $(),n},s.$on("$destroy",function(){const t=r.onStatesChanged(d),e=i.onStart({},h),n=s.$on("$stateChangeSuccess",$);return function(){t(),e(),n()}}()),e.transition&&h(e.transition),$()}}}Su.$inject=["$state","$timeout","$stateRegistry","$transitions"],xu.$inject=["$state","$timeout","$stateRegistry","$transitions"],Au.$inject=["$state","$routerGlobals","$interpolate","$stateRegistry","$transitions"];let ku=["$view","$animate","$ngViewScroll","$interpolate","$q",function(t,e,n,r,i){const s={$cfg:{viewDecl:{$context:t._pluginapi._rootViewContext()}},$ngView:{}},o={count:0,restrict:"EA",terminal:!0,priority:400,transclude:"element",compile:function(a,c,l){return function(a,c,u){const h=u.onload||"",d=u.autoscroll,p={enter:function(t,n,r){e.enter(t,null,n).then(r)},leave:function(t,n){e.leave(t).then(n)}},f=c.inheritedData("$ngView")||s,$=r(u.ngView||u.name||"")(a)||"$default";let m,v,y,b;const w={$type:"ng1",id:o.count++,name:$,fqn:f.$ngView.fqn?f.$ngView.fqn+"."+$:$,config:null,configUpdated:function(t){if(t&&!(t instanceof el))return;if(e=b,n=t,e===n)return;var e,n;Pc.traceUIViewConfigUpdated(w,t&&t.viewDecl&&t.viewDecl.$context),b=t,C(t)},get creationContext(){const t=Pa("$cfg.viewDecl.$context")(f),e=Pa("$ngView.creationContext")(f);return t||e}};Pc.traceUIViewEvent("Linking",w),c.data("$ngView",{$ngView:w}),C();const E=t.registerUIView(w);function C(t){const e=a.$new(),r=i.defer(),s=i.defer(),o={$cfg:t,$ngView:w},u={$animEnter:r.promise,$animLeave:s.promise,$$animLeave:s};e.$emit("$viewContentLoading",$);const f=l(e,(function(t){t.data("$ngViewAnim",u),t.data("$ngView",o),p.enter(t,c,(function(){r.resolve(),y&&y.$emit("$viewContentAnimationEnded"),(g(d)&&!d||a.$eval(d))&&n(t)})),function(){if(m&&(Pc.traceUIViewEvent("Removing (previous) el",m.data("$ngView")),m.remove(),m=null),y&&(Pc.traceUIViewEvent("Destroying scope",w),y.$destroy(),y=null),v){const t=v.data("$ngViewAnim");Pc.traceUIViewEvent("Animate out",t),p.leave(v,(function(){t.$$animLeave.resolve(),m=null})),m=v,v=null}}()}));v=f,y=e,y.$emit("$viewContentLoaded",t||b),y.$eval(h)}a.$on("$destroy",(function(){Pc.traceUIViewEvent("Destroying/Unregistering",w),E()}))}}};return o}];function _u(t,e,n,r,i){const s=Pa("viewDecl.controllerAs"),o=Pa("viewDecl.resolveAs");return{restrict:"EA",priority:-400,compile:function(r){const a=r.html();return r.empty(),function(r,c){const l=c.data("$ngView");if(!l)return c.html(a),void t(c[0].contentDocument||c[0].childNodes)(r);const u=l.$cfg||{viewDecl:{},getTemplate:()=>{}},h=u.path&&new Qc(u.path);c.html(u.getTemplate(c,h)||a),Pc.traceUIViewFill(l.$ngView,c.html());const d=t(c[0].contentDocument||c[0].childNodes),p=u.controller,f=s(u),$=o(u),m=h&&vu(h);if(r[$]=m,p){const t=e(p,Object.assign({},m,{$scope:r,$element:c}));f&&(r[f]=t,r[f][$]=m),c.data("$ngControllerController",t),c.children().data("$ngControllerController",t),ju(i,n,t,r,u)}if(y(u.component)){const t=Oc(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&&xt(t).data(`$${u.component}Controller`)},o=r.$watch(s,(function(t){t&&(ju(i,n,t,r,u),o())}))}d(r)}}}}_u.$inject=["$compile","$controller","$transitions","$view","$q"];let Tu=0;function ju(t,e,n,r,i){!C(n.$onInit)||i.viewDecl.component||i.viewDecl.componentProvider||n.$onInit();const s=cc(i.path).state.self,o={bind:n};if(C(n.uiOnParamsChanged)){const t=new Qc(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(tc,[]),c=e.treeChanges("from").map(o).reduce(tc,[]),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=Ya(r,((e,n)=>-1!==t.indexOf(n)));n.uiOnParamsChanged(i,e)}};r.$on("$destroy",e.onSuccess({},a,o))}if(C(n.uiCanExit)){const i=Tu++,a="_uiCanExitIds",c=t=>!!t&&(t[a]&&!0===t[a][i]||c(t.redirectedFrom())),l=e=>{let r;const s=e[a]=e[a]||{};return c(e)||(r=t.resolve(n.uiCanExit(e)),r.then((t=>s[i]=!1!==t))),r},u={exiting:s.name};r.$on("$destroy",e.onBefore(u,l,o))}}function Nu(){return{restrict:"EA",link:(t,e,n)=>{const r=e[0],i=n.ngChannel,s=pl.subscribe(i,(t=>{r.innerHTML=t}));t.$on("$destroy",(()=>{pl.unsubscribeByKey(s)}))}}}function Vu(t){return{restrict:"A",link(e,n,r){const i=r.ngSetter;if(!i)return void console.warn("ngSetter: Model expression is not provided.");const s=t(i).assign;if(!s)return void console.warn("ngSetter: Invalid model expression.");const o=t=>{s(e,t),e.$digest()},a=new MutationObserver((t=>{let e=!1;for(const n of t)if("childList"===n.type||"characterData"===n.type){e=!0;break}e&&o(n[0].innerHTML)}));n&&n[0]?(a.observe(n[0],{childList:!0,subtree:!0,characterData:!0}),e.$on("$destroy",(()=>a.disconnect())),o(n.html())):console.warn("ngSetter: Element is not a valid DOM node.")}}}Vu.$inject=["$parse"];const Ru="0.6.3";const Pu=ct("ng"),Du=ct("$injector"),Mu={};const Lu=new class{constructor(){$t.clear(),this.cache=$t,this.version=Ru,this.element=xt,this.bootsrappedModules=[],this.doBootstrap,function(t){t.module("ng",[],["$provide",t=>{t.provider({$$sanitizeUri:Eo}),t.provider("$compile",un).directive({input:nr,textarea:nr,form:vn,script:or,select:lr,option:ur,ngBind:hr,ngBindHtml:pr,ngBindTemplate:dr,ngClass:$r,ngClassEven:gr,ngClassOdd:mr,ngCloak:vr,ngController:yr,ngDisabled:Lo,ngForm:yn,ngHide:Cr,ngIf:hi,ngInclude:di,ngInit:fi,ngMessages:xo,ngMessage:To,ngMessageExp:jo,ngMessagesInclude:_o,ngMessageDefault:No,ngNonBindable:$i,ngRef:gi,ngRepeat:vi,ngSetter:Vu,ngShow:Er,ngStyle:yi,ngSwitch:bi,ngSwitchWhen:wi,ngSwitchDefault:Ei,ngOptions:Si,ngTransclude:Ai,ngModel:Tn,ngChange:ki,pattern:Ni,ngPattern:Ni,required:ji,ngRequired:ji,ngMinlength:Ri,minlength:Ri,ngMaxlength:Vi,maxlength:Vi,ngValue:sr,ngModelOptions:xn}).directive({input:rr,ngAnimateSwap:_a,ngAnimateChildren:Ta,ngChecked:Fo,ngClick:qo,ngDblclick:Ko,ngInclude:pi,ngHide:zo,ngShow:Io,ngMessages:Uo,ngModel:Go,ngReadonly:Wo,ngRequired:Ho,ngValue:Bo,ngSref:Su,ngSrefActive:Au,ngSrefActiveEq:Au,ngState:xu,ngView:ku,ngChannel:Nu}).directive({ngView:_u}).directive(Ti).directive(Ze),t.provider({$aria:Mo,$anchorScroll:Mi,$animate:ui,$$animation:fa,$animateCss:oa,$$animateCssDriver:Sa,$$animateJs:ha,$$animateJsDriver:ka,$$animateCache:ba,$$animateQueue:ua,$$AnimateRunner:Wi,$$animateAsyncRun:qi,$browser:Ui,$controller:Oe,$exceptionHandler:Qi,$filter:os,$interpolate:Ds,$interval:ds,$$intervalFactory:Ms,$http:to,$httpParamSerializer:Ks,$httpBackend:eo,$location:co,$log:$o,$parse:xs,$$rAFScheduler:$a,$rootScope:De,$routerGlobals:Ec,$q:as,$sce:Qe,$sceDelegate:Ye,$$taskTrackerFactory:mo,$templateCache:Ki,$templateRequest:yo,$timeout:wo,$urlConfig:yc,$view:nl,$transitions:Ul,$state:Hl,$ngViewScroll:Fl,$templateFactory:Bl,$urlService:iu,$stateRegistry:gu})}]).factory("$stateParams",["$routerGlobals",function(t){return t.params}]).value("$trace",Pc).info({version:Ru})}(this)}errorHandlingConfig(t){return at(t)}bootstrap(t,e,n){n=n||{strictDi:!1};const r=xt(t);if(r.injector())throw Pu("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=ge(this.bootsrappedModules,n.strictDi);return i.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){if(Ua.$injector=r,Ua.$q=r.get("$q"),t.$apply((()=>{e.data("$injector",r),n(e)(t)})),!Object.prototype.hasOwnProperty.call(r,"strictDi"))try{r.invoke((()=>{}))}catch(t){r.strictDi=!!/strict mode/.exec(t&&t.toString())}r.get("$stateRegistry").get().map((t=>t.$$state().resolvables)).reduce(tc,[]).filter((t=>"deferred"===t.deps)).forEach((t=>t.deps=ye(t.resolveFn,r.strictDi)))}]),i}injector(t,e){return ge(t,e)}resumeBootstrap(t){return t.forEach((t=>{this.bootsrappedModules.push(t)})),this.doBootstrap()}init(t){let e,n;const r={};et.forEach((r=>{const i=`${r}app`;t.hasAttribute&&t.hasAttribute(i)&&(e=t,n=t.getAttribute(i))})),et.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=et.length;for(r=0;r<i;++r)if(n=et[r]+e,y(n=t.getAttribute(n)))return n;return null}(e,"strict-di"),this.bootstrap(e,n?[n]:[],r))}module(t,e,n){return F(t,"module"),e&&Object.prototype.hasOwnProperty.call(Mu,t)&&(Mu[t]=null),function(t,e,n){return t[e]||(t[e]=n())}(Mu,t,(()=>{if(!e)throw Du("nomod","Module '{0}' is not available. Possibly misspelled or not loaded",t);return new Zt(t,e,n)}))}};window.angular=Lu,"complete"===document.readyState?Lu.init(document):document.addEventListener("DOMContentLoaded",(()=>{Lu.init(document)}));export{Lu as angular};
1
+ /* Version: 0.6.4 - March 9, 2025 15:39:45 */
2
+ const t="ng-valid",e="ng-invalid",n="ng-pristine",r="ng-dirty",i="ng-untouched",s="ng-touched",o="ng-empty",a="ng-not-empty",c=/^((?:x|data)[-])/i,l=/[-]+(.)/g,u={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"},h=ct("ng");let d=0;function p(){return d+=1,d}function f(t){return y(t)?t.toLowerCase():t}function $(t){if(null==t||S(t))return!1;if(Array.isArray(t)||t instanceof Array||y(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 m(t){return void 0===t}function g(t){return void 0!==t}function v(t){return null!==t&&"object"==typeof t}function y(t){return"string"==typeof t}function b(t){return"number"==typeof t}function w(t){return"[object Date]"===toString.call(t)}function E(t){switch(toString.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return t instanceof Error}}function C(t){return"function"==typeof t}function O(t){return"[object RegExp]"===toString.call(t)}function S(t){return t&&t.window===t}function x(t){return t&&t.$evalAsync&&t.$watch}function A(t){return"boolean"==typeof t}function k(t){return t&&C(t.then)}function _(t){return y(t)?t.trim():t}function T(t,e){const n=e;return t.replace(/[A-Z]/g,((t,e)=>(e?n:"")+t.toLowerCase()))}function j(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)&&!C(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 V(t){return parseInt(t,10)}function N(t){return Number.isNaN(t)}function R(t,e){return j(Object.create(t),e)}function P(t){return function(){return t}}function D(t){return C(t.toString)&&t.toString!==toString}function M(t){return!(!t||!(t.nodeName||t.attr&&t.find))}function L(t){return f(t.nodeName||t[0]&&t[0].nodeName)}function I(t,e){return-1!==Array.prototype.indexOf.call(t,e)}function U(t,e){const n=t.indexOf(e);return n>=0&&t.splice(n,1),n}function q(t,e){return t===e||t!=t&&e!=e}function H(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(w(t))return!!w(e)&&q(t.getTime(),e.getTime());if(O(t))return!!O(e)&&t.toString()===e.toString();if(x(t)||x(e)||S(t)||S(e)||Array.isArray(e)||w(e)||O(e))return!1;for(i in s=Object.create(null),t)if("$"!==i.charAt(0)&&!C(t[i])){if(!H(t[i],e[i]))return!1;s[i]=!0}for(i in e)if(!(i in s)&&"$"!==i.charAt(0)&&g(e[i])&&!C(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(!H(t[i],e[i]))return!1;return!0}}return!1}function F(t,e){if("hasOwnProperty"===t)throw h("badname","hasOwnProperty is not a valid {0} name",e)}function B(t){if(null==t)return"";switch(typeof t){case"string":break;case"number":t=`${t}`;break;default:t=!D(t)||Array.isArray(t)||w(t)?Y(t):t.toString()}return t}function z(t,e,n){return t.concat(Array.prototype.slice.call(e,n))}function W(t,e){return Array.prototype.slice.call(t,e||0)}function G(t,e){const n=arguments.length>2?W(arguments,2):[];return!C(e)||e instanceof RegExp?e:n.length?function(){return arguments.length?e.apply(t,z(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}function K(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":x(e)&&(n="$SCOPE"),n}function Y(t,e){if(!m(t))return b(e)||(e=e?2:null),JSON.stringify(t,K,e)}function Q(t,e,n){const r=t.getTimezoneOffset(),i=function(t,e){const n=Date.parse(`Jan 01, 1970 00:00:00 ${t}`)/6e4;return N(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 Z(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=J(r),g(r)&&(i=!g(i)||J(i),Object.hasOwnProperty.call(e,r)?Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]:e[r]=i))})),e}function J(t){try{return decodeURIComponent(t)}catch(t){}}function X(t){return tt(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function tt(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 et=["ng-","data-ng-"];function nt(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 rt(t,e="Assertion failed"){if(!t)throw new Error(e)}function it(t,e,n){if(!t)throw h("areq","Argument '{0}' is {1}",e||"?",n||"required");return t}function st(t,e,n){return n&&Array.isArray(t)&&(t=t[t.length-1]),it(C(t),e,`not a function, got ${t&&"object"==typeof t?t.constructor.name||"Object":typeof t}`),t}const ot={objectMaxDepth:5,urlErrorParamsEnabled:!0};function at(t){var e;return v(t)&&(g(t.objectMaxDepth)&&(ot.objectMaxDepth=b(e=t.objectMaxDepth)&&e>0?t.objectMaxDepth:NaN),g(t.urlErrorParamsEnabled)&&A(t.urlErrorParamsEnabled)&&(ot.urlErrorParamsEnabled=t.urlErrorParamsEnabled)),ot}function ct(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=W(n,2).map((t=>lt(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}`,at().urlErrorParamsEnabled)for(l=0,c="?";l<a.length;l++,c="&")o+=`${c}p${l}=${encodeURIComponent(a[l])}`;return new Error(o)}}function lt(t){if("function"==typeof t)return t.toString().replace(/ \{[\s\S]*$/,"");if(m(t))return"undefined";if("string"!=typeof t){const e=[];let n=structuredClone(t);return JSON.stringify(n,((t,n)=>{const r=K(t,n);if(v(r)){if(e.indexOf(r)>=0)return"...";e.push(r)}return r}))}return t}function ut(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}:${p()}`,t.$$hashKey):`${n}:${t}`}function ht(t,e){return t||e?t?e?(Array.isArray(t)&&(t=t.join(" ")),Array.isArray(e)&&(e=e.join(" ")),t+" "+e):t:e:""}function dt(t){return t.replace(c,"").replace(l,((t,e,n)=>n?e.toUpperCase():e))}function pt(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 ft="ng",$t=new Map;let mt=1;const gt=/-([a-z])/g,vt=/_([a-z])/g,yt={mouseleave:"mouseout",mouseenter:"mouseover"},bt=ct("jqLite"),wt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Et=/<([\w:-]+)/,Ct={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};Ct.tbody=Ct.tfoot=Ct.colgroup=Ct.caption=Ct.thead,Ct.th=Ct.td;const Ot={};"multiple,selected,checked,disabled,readOnly,required,open".split(",").forEach((t=>{Ot[f(t)]=t}));const St={};function xt(t){if(t instanceof xt)return t;let e=!1;if(y(t)&&(t=t.trim(),e=!0),!(this instanceof xt)){if(e&&"<"!==t.charAt(0))throw bt("nosel","Looking up elements via selectors is not supported by JQLite! See: http://docs.angularjs.org/api/angular.element");return new xt(t)}if(e){Lt(this,function(t){let e=wt.exec(t);if(e)return[document.createElement(e[1])];let n=Rt(t);if(n)return n.childNodes;return[]}(t))}else C(t)?function(t){function e(){document.removeEventListener("DOMContentLoaded",e),t()}"complete"===document.readyState?setTimeout(t):document.addEventListener("DOMContentLoaded",e)}(t):Lt(this,t)}function At(t,e){return e.toUpperCase()}function kt(t){return t.replace(gt,At)}function _t(t){return t.replace(vt,At)}function Tt(t,e){const n=t[ft],r=n&&$t.get(n);r&&(e?delete r.data[e]:r.data={},Dt(t))}function jt(t,e=!1){let n=t[ft],r=n&&$t.get(n);return e&&!r&&(t[ft]=n=++mt,r={events:{},data:{},handle:null},$t.set(n,r)),r}function Vt(t){return!/<|&#?\w+;/.test(t)}function Nt(t){switch(t.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_NODE:case void 0:return!0;default:return!1}}function Rt(t){let e,n,r,i,s=document.createDocumentFragment(),o=[];if(Vt(t))o.push(document.createTextNode(t));else{for(e=s.appendChild(document.createElement("div")),n=(Et.exec(t)||["",""])[1].toLowerCase(),r=Ct[n]||[],i=r.length;--i>-1;)e.appendChild(document.createElement(r[i])),e=e.firstChild;e.innerHTML=t,o=z(o,e.childNodes),e=s.firstChild,e.textContent=""}let a=document.createDocumentFragment();return a.append(...o),a}function Pt(t,e){t&&(!e&&Nt(t)&&Gt([t]),t.querySelectorAll&&Gt(t.querySelectorAll("*")))}function Dt(t){const e=t[ft],{events:n,data:r}=$t.get(e);r&&Object.keys(r).length||n&&Object.keys(n).length||($t.delete(e),t[ft]=void 0)}function Mt(t,e,n){if(Nt(t)){let r;const i=g(n),s=!i&&e&&!v(e),o=!e,a=jt(t,!s),c=a&&a.data;if(i)c[kt(e)]=n;else{if(o)return c;if(s)return c&&c[kt(e)];for(r in e)c[kt(r)]=e[r]}}}function Lt(t,e){if(!e)return;if(e.nodeType)return void(t[t.length++]=e);const n=e.length;if("number"==typeof n&&e.window!==e)for(let r=0;r<n;r++)t[t.length++]=e[r];else t[t.length++]=e}function It(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(g(n=Mt(t,r[e])))return n;t=t.parentNode||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&t.host}}function Ut(t,e=!1){e||Pt(t);const n=t.parentNode;n&&n.removeChild(t)}function qt(t,e){return function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};let i=e[r||n.type];const s=i?i.length:0;if(!s)return;if(m(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||Ht;s>1&&(i=nt(i));for(let e=0;e<s;e++)n.isImmediatePropagationStopped()||o(t,n,i[e])}}function Ht(t,e,n){n.call(t,e)}function Ft(t,e,n){const r=e.relatedTarget;r&&(r===t||t.contains(r))||n.call(t,e)}function Bt(t){const e=xt(t)[0].cloneNode(!0),n=xt(e).empty(),r=xt("<div></div>").append(n[0]).html();try{return n[0].nodeType===Node.TEXT_NODE?f(r):r.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,(function(t,e){return"<"+f(e)}))}catch(t){return f(r)}}function zt(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 xt(r||t)}function Wt(t,e){const n=Ot[e.toLowerCase()];return n&&St[L(t)]&&n}function Gt(t){for(let e=0,n=t.length;e<n;e++){const n=($t.get(t[e][ft])||{}).events;n&&n.$destroy&&xt(t[e]).triggerHandler("$destroy"),Tt(t[e]),xt.prototype.off.call(xt(t[e]))}}"input,select,option,textarea,button,form,details".split(",").forEach((t=>{St[t]=!0})),xt.prototype={toString(){const t=[];for(var e=0;e<this.length;e++)t.push(`${this[e]}`);return`[${t.join(", ")}]`},eq(t){return xt(t>=0?this[t]:this[this.length+t])},length:0},xt.prototype.elements=function(){let t=[];for(let e=0;e<this.length;e++)t.push(this[e]);return t},xt.prototype.empty=function(){for(let t=0;t<this.length;t++){const e=this[t];Pt(e,!0),[Node.ELEMENT_NODE,Node.DOCUMENT_NODE,Node.DOCUMENT_FRAGMENT_NODE].includes(e.nodeType)&&e.replaceChildren()}return this},xt.prototype.scope=function(){return Mt(this[0],"$scope")||It(this[0].parentNode||this[0],["$isolateScope","$scope"])},xt.prototype.isolateScope=function(){return Mt(this[0],"$isolateScope")||Mt(this[0],"$isolateScopeNoTemplate")},xt.prototype.controller=function(t){return function(t,e){return It(t,`$${e||"ngController"}Controller`)}(this[0],t)},xt.prototype.injector=function(){return It(this[0],"$injector")},xt.prototype.on=function(t,e){for(let n=0;n<this.length;n++){const r=this[n];if(!Nt(r))return;const i=jt(r,!0);i.handle||(i.handle=qt(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],yt[t]?(a(yt[t],Ft),a(t,void 0,!0)):a(t)}return this},xt.prototype.off=function(t,e){for(let n=0;n<this.length;n++){const r=this[n],i=jt(r),s=i&&i.events,o=i&&i.handle;if(!o)return;if(t){const n=function(t){const n=s[t];g(e)&&Array.isArray(n)&&U(n,e),g(e)&&n&&n.length>0||(r.removeEventListener(t,o),delete s[t])};t.split(" ").forEach((t=>{n(t),yt[t]&&n(yt[t])}))}else for(t in s)"$destroy"!==t&&r.removeEventListener(t,o),delete s[t];Dt(r)}return this},xt.prototype.removeData=function(t){for(let e=0;e<this.length;e++){Tt(this[e],t)}return this},xt.prototype.inheritedData=function(t,e){for(let n=0;n<this.length;n++){let n=It(this[0],t,e);return e?this:n}},xt.prototype.html=function(t){const e=this[0];if(e)return m(t)?e.innerHTML:(Pt(e,!0),e.innerHTML=t,this)},xt.prototype.text=function(t){let e="";for(let n=0;n<this.length;n++){const r=this[n];if(m(t)){const{nodeType:t}=r;e+=t===Node.ELEMENT_NODE||t===Node.TEXT_NODE?r.textContent:""}else r.textContent=t}return m(t)?e:this},xt.prototype.val=function(t){for(let e=0;e<this.length;e++){const n=this[e];if(m(t)){if(n.multiple&&"select"===L(n)){const t=[];return Array.from(n.options).forEach((e=>{e.selected&&t.push(e.value||e.text)})),t}return n.value}return n.value=t,this}},xt.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=f(t),a=Ot[o];if(v(t))for(let e in t)r.setAttribute(e,a?o:t[e]);else{if(!g(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(g(e)||v(t))return this},xt.prototype.data=function(t,e){let n;const r=this.length;if(m(e)){if(v(t)){for(n=0;n<r;n++)Mt(this[n],t);return this}const i=m(e)?Math.min(r,1):r;for(let n=0;n<i;n++){const r=Mt(this[n],t,e);e=e?e+r:r}return e}for(n=0;n<r;n++)Mt(this[n],t,e);return this},xt.prototype.replaceWith=function(t){let e,n=function(t,e){let n;const r=t.parentNode;Pt(t);const i=new xt(e);for(let e=0;e<i.length;e++){const s=i[e];n?r.insertBefore(s,n.nextSibling):r.replaceChild(s,t),n=s}};for(let r=0;r<this.length;r++)Lt(e,n(this[r],t));return g(e)?e:this},xt.prototype.children=function(){let t;for(let n=0;n<this.length;n++)t=xt((e=this[n],Array.from(e.childNodes).filter((t=>t.nodeType===Node.ELEMENT_NODE))));var e;return g(t)?t:this},xt.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 xt(t);for(let t=0;t<i.length;t++){const e=i[t];n.appendChild(e)}}return this},xt.prototype.prepend=function(t){for(let e=0;e<this.length;e++){const n=this[e];if(n.nodeType===Node.ELEMENT_NODE){const e=n.firstChild,r=new xt(t);for(let t=0;t<r.length;t++)n.insertBefore(r[t],e)}}return this},xt.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 xt(t);for(let t=0,n=e.length;t<n;t++){const n=e[t];i.insertBefore(n,r.nextSibling),r=n}}}return this},xt.prototype.remove=function(t=!1){for(let e=0;e<this.length;e++){Ut(this[e],t)}return this},xt.prototype.detach=function(){for(let t=0;t<this.length;t++){Ut(this[t],!0)}return this},xt.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++)m(t)?(t=e(this[n]),g(t)&&(t=xt(t))):Lt(t,e(this[n]));return g(t)?t:this},xt.prototype.find=function(t){let e;for(let n=0,r=this.length;n<r;n++){const r=this[n];m(e)?(e=r.getElementsByTagName?r.getElementsByTagName(t):[],g(e)&&(e=xt(e))):r.getElementsByTagName&&Lt(e,r.getElementsByTagName(t))}return g(e)?e:this},xt.prototype.triggerHandler=function(t,e){let n,r=function(t,e,n){let r,i,s;const o=e.type||e,a=jt(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=j(r,e)),i=nt(l),s=n?[r].concat(n):[r],i.forEach((e=>{r.isImmediatePropagationStopped()||e.apply(t,s)})))};for(let i=0,s=this.length;i<s;i++)m(n)?r(this[i],t,e):Lt(n,r(this[i],t,e));return g(n)?n:this};const Kt="$provide",Yt="$injector",Qt="$compileProvider";class Zt{constructor(t,e,n){rt(y(t),"name required"),rt(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 g(t)?(rt(v(t),"module info value must be an object"),this.infoState=t,this):this.infoState}value(t,e){return this.invokeQueue.push([Kt,"value",[t,e]]),this}constant(t,e){return this.invokeQueue.unshift([Kt,"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&&C(e)&&(e.$$moduleName=t),this.invokeQueue.push([Qt,"component",[t,e]]),this}factory(t,e){return e&&C(e)&&(e.$$moduleName=t),this.invokeQueue.push([Kt,"factory",[t,e]]),this}service(t,e){return e&&C(e)&&(e.$$moduleName=t),this.invokeQueue.push([Kt,"service",[t,e]]),this}provider(t,e){return e&&C(e)&&(e.$$moduleName=t),this.invokeQueue.push([Kt,"provider",[t,e]]),this}decorator(t,e){return e&&C(e)&&(e.$$moduleName=t),this.configBlocks.push([Kt,"decorator",[t,e]]),this}directive(t,e){return e&&C(e)&&(e.$$moduleName=t),this.invokeQueue.push([Qt,"directive",[t,e]]),this}animation(t,e){return e&&C(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$animateProvider","register",[t,e]]),this}filter(t,e){return e&&C(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$filterProvider","register",[t,e]]),this}controller(t,e){return e&&C(e)&&(e.$$moduleName=t),this.invokeQueue.push(["$controllerProvider","register",[t,e]]),this}}const Jt=/^([^(]+?)=>/,Xt=/^[^(]*\(\s*([^)]*)\)/m,te=/,/,ee=/^\s*(_?)(\S+?)\1\s*$/,ne=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,re=ct(Yt),ie="Provider",se=!0;class oe{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]===se)throw re("cdep","Circular dependency found: {0}",`${t} <- ${this.path.join(" <- ")}`);return this.cache[t]}this.path.unshift(t),this.cache[t]=se;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 re("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=function(t){const e=le(t).replace(ne,""),n=e.match(Jt)||e.match(Xt);return n}(t),i[1].split(te).forEach((function(t){t.replace(ee,(function(t,e,n){r.push(n)}))}))}t.$inject=r}}else Array.isArray(t)?(s=t.length-1,st(t[s],"fn"),r=t.slice(0,s)):st(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 re("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(le(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 ae extends oe{constructor(t,e){super(e),this.cache=t}factory(t){throw this.path.push(t),re("unpr","Unknown provider: {0}",this.path.join(" <- "))}}class ce extends oe{constructor(t,e){super(t),this.providerInjector=e,this.modules=this.providerInjector.modules}factory(t){const e=this.providerInjector.get(t+ie);return this.invoke(e.$get,e,void 0,t)}has(t){const e=Object.prototype.hasOwnProperty.call(this.providerInjector.cache,t+ie),n=Object.prototype.hasOwnProperty.call(this.cache,t);return e||n}}function le(t){return Function.prototype.toString.call(t)}const ue=/^([^(]+?)=>/,he=/^[^(]*\(\s*([^)]*)\)/m,de=/,/,pe=/^\s*(_?)(\S+?)\1\s*$/,fe=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,$e=ct(Yt),me="Provider";function ge(t,e=!1){rt(Array.isArray(t),"modules required");const n=new Map,r={$provide:{provider:be(c),factory:be(l),service:be((function(t,e){return l(t,[Yt,t=>t.instantiate(e)])})),value:be((function(t,e){return r[t+me]={$get:()=>e}})),constant:be((function(t,e){F(t,"constant"),i.cache[t]=e,s.cache[t]=e})),decorator:function(t,e){const n=i.get(t+me),r=n.$get;n.$get=function(){const t=o.invoke(r,n);return o.invoke(e,null,{$delegate:t})}}}},i=r.$injector=new ae(r,e),s=new ce(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(F(t,"service"),n=C(e)||Array.isArray(e)?i.instantiate(e):e,!n.$get)throw $e("pget","Provider '{0}' must define $get factory method.",t);return r[t+me]=n,n}function l(t,e){return c(t,{$get:()=>{const n=o.invoke(e,this);if(m(n))throw $e("undef","Provider '{0}' must return a value from $get factory method.",t);return n}})}function u(t){it(m(t)||Array.isArray(t),"modulesToLoad","not an array");let e=[];return t.forEach((t=>{if(!n.get(t)){n.set(t,!0);try{if(y(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 C(t)||Array.isArray(t)?e.push(i.invoke(t)):st(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}`),$e("modulerr","Failed to instantiate module {0} due to:\n{1}",t,e.stack||e.message||e)}}})),e}}function ve(t){const e=function(t){return Function.prototype.toString.call(t)}(t).replace(fe,"");return e.match(ue)||e.match(he)}function ye(t,e,n){let r,i,s;if("function"==typeof t){if(!(r=t.$inject)){if(r=[],t.length){if(e)throw $e("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=ve(t),i[1].split(de).forEach((function(t){t.replace(pe,(function(t,e,n){r.push(n)}))}))}t.$inject=r}}else Array.isArray(t)?(s=t.length-1,st(t[s],"fn"),r=t.slice(0,s)):st(t,"fn",!0);return r}function be(t){return function(e,n){if(!v(e))return t(e,n);Object.entries(e).forEach((([e,n])=>{t(e,n)}))}}const we=ct("$controller"),Ee=/^(\S+)(\s+as\s+([\w$]+))?$/;function Ce(t,e){if(y(t)){const e=Ee.exec(t);if(e)return e[3]}}class Oe{constructor(){this.controllers=new Map}has(t){return this.controllers.has(t)}register(t,e){F(t,"controller"),v(t)?Object.entries(t).forEach((([t,e])=>{this.controllers.set(t,e)})):this.controllers.set(t,e)}$get=["$injector",t=>(e,n,r,i)=>{let s,o,a,c=i&&y(i)?i:null;if(r=!0===r,y(e)){if(o=e.match(Ee),!o)throw we("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",e);if(a=o[1],c=c||o[3],!(e=this.controllers.get(a)))throw we("ctrlreg","The controller with the name '{0}' is not registered.",a);st(e,a,!0)}if(r){const r=(Array.isArray(e)?e[e.length-1]:e).prototype;return s=Object.create(r||null),c&&this.addIdentifier(n,c,s,a||e.name),function(){const r=t.invoke(e,s,n,a);return r!==s&&(v(r)||C(r))&&(s=r,c&&this.addIdentifier(n,c,s,a||e.name)),s}.bind(this,{instance:s,identifier:c})}return s=t.instantiate(e,n,a),c&&this.addIdentifier(n,c,s,a||e.name),s}];addIdentifier(t,e,n,r){if(!t||!v(t.$scope))throw ct("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",r,e);t.$scope[e]=n}}const Se={NONE:0,APPLY:1,DIGEST:2},xe=ct("$rootScope"),Ae=[],ke=[],_e=[];let Te,je,Ve,Ne=0,Re=null,Pe=null;class De{constructor(){this.rootScope=new Me(!0)}$get=["$exceptionHandler","$parse","$browser",(t,e,n)=>(Ve=t,Te=e,je=n,this.rootScope)]}class Me{constructor(t=!1){this.isRoot=t,this.$id=p(),this.$$phase=Se.NONE,this.$parent=null,this.$root=this,this.$$watchers=[],this.$$digestWatchIndex=-1,this.$$nextSibling=null,this.$$prevSibling=null,this.$$childHead=null,this.$$childTail=null,this.$$destroyed=!1,this.$$suspended=!1,this.$$listeners=new Map,this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}$new(t){let e=t?new Me:Object.create(this);return t?e.$root=this.$root:(e.$id=p(),e.$$watchers=[],e.$$nextSibling=null,e.$$childHead=null,e.$$childTail=null,e.$$listeners=new Map,e.$$listenerCount={},e.$$watchersCount=0,e.$$suspended=!1),e.$parent=this,e.$$prevSibling=e.$parent.$$childTail,e.$parent.$$childHead?(e.$parent.$$childTail.$$nextSibling=e,e.$parent.$$childTail=e):(e.$parent.$$childHead=e,e.$parent.$$childTail=e),t&&e.$on("$destroy",(t=>{t.currentScope.$$destroyed=!0})),e}$transcluded(t){let e=Object.create(this);return e.$id=p(),e.$$watchers=[],e.$$nextSibling=null,e.$$childHead=null,e.$$childTail=null,e.$$listeners=new Map,e.$$listenerCount={},e.$$watchersCount=0,e.$$suspended=!1,e.$parent=t||this,e.$$prevSibling=e.$parent.$$childTail,e.$parent.$$childHead?(e.$parent.$$childTail.$$nextSibling=e,e.$parent.$$childTail=e):(e.$parent.$$childHead=e,e.$parent.$$childTail=e),t!==this&&e.$on("$destroy",(t=>{t.currentScope.$$destroyed=!0})),e}$watch(t,e,n){const r=Te(t),i=C(e)?e:()=>{};if(r.$$watchDelegate)return r.$$watchDelegate(this,i,n,r,t);const s={fn:i,last:Le,get:r,exp:t,eq:!!n};return Re=null,0===this.$$watchers.length&&(this.$$digestWatchIndex=-1),this.$$watchers.unshift(s),this.$$digestWatchIndex++,this.incrementWatchersCount(1),()=>{const t=U(this.$$watchers,s);t>=0&&(this.incrementWatchersCount(-1),t<this.$$digestWatchIndex&&this.$$digestWatchIndex--),Re=null}}$watchGroup(t,e){const n=new Array(t.length),r=new Array(t.length),i=[],s=this;let o=!1,a=!0;if(!t.length){let t=!0;return s.$evalAsync((()=>{t&&e(r,r,s)})),function(){t=!1}}if(1===t.length)return this.$watch(t[0],((t,i,s)=>{r[0]=t,n[0]=i,e(r,t===i?r:n,s)}));function c(){o=!1;try{a?(a=!1,e(r,r,s)):e(r,n,s)}finally{for(let e=0;e<t.length;e++)n[e]=r[e]}}return Object.entries(t).forEach((([t,e])=>{const n=s.$watch(e,(e=>{r[t]=e,o||(o=!0,s.$evalAsync(c))}));i.push(n)})),function(){for(;i.length;)i.shift()()}}$watchCollection(t,e){p.$$pure=Te(t).literal,p.$stateful=!p.$$pure;const n=this;let r,i,s;const o=e.length>1;let a=0;const c=Te(t,p),l=[];let u={},h=!0,d=0;function p(t){let e,n,s,o,c;if(r=t,!m(r)){if(v(r))if($(r)){i!==l&&(i=l,d=i.length=0,a++),e=r.length,d!==e&&(a++,i.length=d=e);for(let t=0;t<e;t++)c=i[t],o=r[t],s=c!=c&&o!=o,s||c===o||(a++,i[t]=o)}else{for(n in i!==u&&(i=u={},d=0,a++),e=0,r)Object.hasOwnProperty.call(r,n)&&(e++,o=r[n],c=i[n],n in i?(s=c!=c&&o!=o,s||c===o||(a++,i[n]=o)):(d++,i[n]=o,a++));if(d>e)for(n in a++,i)Object.hasOwnProperty.call(r,n)||(d--,delete i[n])}else i!==r&&(i=r,a++);return a}}return this.$watch(c,(function(){if(h?(h=!1,e(r,r,n)):e(r,s,n),o)if(v(r))if($(r)){s=new Array(r.length);for(let t=0;t<r.length;t++)s[t]=r[t]}else{s={};for(const t in r)Object.hasOwnProperty.call(r,t)&&(s[t]=r[t])}else s=r}))}$digest(){let t,e,n,r,i,s,o,a,c=10;const l=Ae.length?this.$root:this,u=[];let h,d;this.beginPhase(Se.DIGEST),je.$$checkUrlChange(),this.isRoot&&null!==Pe&&(je.cancel(Pe),Ie(),Pe=null),Re=null;do{s=!1,a=l;for(let t=0;t<Ae.length;t++){try{d=Ae[t],n=d.fn,n(d.scope,d.locals)}catch(t){Ve(t)}Re=null}Ae.length=0;do{if(i=!a.$$suspended&&a.$$watchers)for(a.$$digestWatchIndex=i.length;a.$$digestWatchIndex--;)try{const o=i[a.$$digestWatchIndex];if(o)if(r=o.get,(t=r(a))===(e=o.last)||(o.eq?H(t,e):N(t)&&N(e))){if(o===Re){s=!1;break}}else s=!0,Re=o,o.last=o.eq?structuredClone(t):t,n=o.fn,n(t,e===Le?t:e,a),c<5&&(h=4-c,u[h]||(u[h]=[]),u[h].push({msg:C(o.exp)?`fn: ${o.exp.name||o.exp.toString()}`:o.exp,newVal:t,oldVal:e}))}catch(t){Ve(t)}if(!(o=!a.$$suspended&&a.$$watchersCount&&a.$$childHead||a!==l&&a.$$nextSibling))for(;a!==l&&!(o=a.$$nextSibling);)a=a.$parent}while(a=o);if((s||Ae.length)&&!c--)throw this.clearPhase(),xe("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",10,u)}while(s||Ae.length);for(this.clearPhase();Ne<ke.length;)try{ke[Ne++]()}catch(t){Ve(t)}ke.length=Ne=0,je.$$checkUrlChange()}beginPhase(t){if(this.$root.$$phase!==Se.NONE)throw xe("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&&je.$$applicationDestroyed(),this.incrementWatchersCount(-this.$$watchersCount);for(const t in this.$$listenerCount)this.decrementListenerCount(this.$$listenerCount[t],t);this.$parent&&(this.$parent.$$childHead===this&&(this.$parent.$$childHead=this.$$nextSibling),this.$parent.$$childTail===this&&(this.$parent.$$childTail=this.$$prevSibling)),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$applyAsync=()=>{},this.$evalAsync=()=>{},this.$on=this.$watch=this.$watchGroup=function(){return()=>{}},this.$$listeners.clear(),this.$$nextSibling=null,this.$parent=null,this.$$nextSibling=null,this.$$prevSibling=null,this.$$childHead=null,this.$$childTail=null,this.$root=null,this.$$watchers=null}}$eval(t,e){return Te(t)(this,e)}$evalAsync(t,e){let n;return this.$root.$$phase!==Se.NONE||Ae.length||(n=je.defer((()=>{Ae.length&&this.$root.$digest()}),null,"$evalAsync")),Ae.push({scope:this,fn:Te(t),locals:e}),n}$$postDigest(t){ke.push(t)}$apply(t){try{this.beginPhase(Se.APPLY);try{return this.$eval(t)}finally{this.clearPhase()}}catch(t){Ve(t)}finally{this.retry()}}retry(){try{this.$root.$digest()}catch(t){throw Ve(t),t}}clearPhase(){this.$root.$$phase=Se.NONE}$applyAsync(t){const e=this;t&&_e.push((()=>e.$eval(t))),null===Pe&&(Pe=je.defer(Ie,null,"$applyAsync"))}$on(t,e){let n=this.$$listeners.get(t);n||(n=[],this.$$listeners.set(t,n)),n.push(e);let r=this;do{r.$$listenerCount[t]=(r.$$listenerCount[t]??0)+1}while(r=r.$parent);return()=>{const r=n.indexOf(e);-1!==r&&(delete n[r],this.decrementListenerCount(1,t))}}incrementWatchersCount(t){this.$$watchersCount+=t,this.$parent&&this.$parent.incrementWatchersCount(t)}decrementListenerCount(t,e){let n=this;for(;n;n=n.$parent)void 0!==n.$$listenerCount[e]&&(n.$$listenerCount[e]-=t,0===n.$$listenerCount[e]&&delete n.$$listenerCount[e])}$emit(t,...e){const n=[];let r,i=this,s=!1;const o={name:t,targetScope:i,stopPropagation(){s=!0},preventDefault(){o.defaultPrevented=!0},defaultPrevented:!1},a=z([o],[o].concat(e),1);let c,l;do{for(r=i.$$listeners.get(t)||n,o.currentScope=i,c=0,l=r.length;c<l;c++)if(r[c])try{r[c].apply(null,a)}catch(t){Ve(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=z([s],[s].concat(e),1);let a,c,l;for(;r=i;){for(s.currentScope=r,a=r.$$listeners.get(t)||[],c=0,l=a.length;c<l;c++)if(a[c])try{a[c].apply(null,o)}catch(t){Ve(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 Le(){}function Ie(){for(;_e.length;)try{_e.shift()()}catch(t){Ve(t)}Pe=null}const Ue=document.createElement("a"),qe=Fe(window.location.href);let He;function Fe(t){if(!y(t))return t;const e=t;Ue.setAttribute("href",e);let{hostname:n}=Ue;return!("[::1]"===Ue.hostname)&&n.indexOf(":")>-1&&(n=`[${n}]`),{href:Ue.href,protocol:Ue.protocol?Ue.protocol.replace(/:$/,""):"",host:Ue.host,search:Ue.search?Ue.search.replace(/^\?/,""):"",hash:Ue.hash?Ue.hash.replace(/^#/,""):"",hostname:n,port:Ue.port,pathname:"/"===Ue.pathname.charAt(0)?Ue.pathname:`/${Ue.pathname}`}}function Be(t){return ze(t,function(){if(document.baseURI)return document.baseURI;He||(He=document.createElement("a"),He.href=".",He=He.cloneNode(!1));return He.href}())}function ze(t,e){return t=Fe(t),e=Fe(e),t.protocol===e.protocol&&t.host===e.host}Ue.href="http://[::1]";const We=ct("$sce"),Ge={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"};function Ke(t){if("self"===t)return t;if(y(t)){if(t.indexOf("***")>-1)throw We("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 We("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function Ye(){this.SCE_CONTEXTS=Ge;let t=["self"],e=[];this.trustedResourceUrlList=function(e){return arguments.length&&(t=e.map((t=>Ke(t)))),t},this.bannedResourceUrlList=function(t){return arguments.length&&(e=t.map((t=>Ke(t)))),e},this.$get=["$injector","$$sanitizeUri",function(n,r){let i=function(){throw We("unsafe","Attempting to use an unsafe value in a safe context.")};function s(t,e){return"self"===t?ze(e,qe)||Be(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[Ge.HTML]=o(a),c[Ge.CSS]=o(a),c[Ge.MEDIA_URL]=o(a),c[Ge.URL]=o(c[Ge.MEDIA_URL]),c[Ge.JS]=o(a),c[Ge.RESOURCE_URL]=o(c[Ge.URL]),{trustAs:function(t,e){const n=Object.prototype.hasOwnProperty.call(c,t)?c[t]:null;if(!n)throw We("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e);if(null===e||m(e)||""===e)return e;if("string"!=typeof e)throw We("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t);return new n(e)},getTrusted:function(n,o){if(null===o||m(o)||""===o)return o;const a=Object.prototype.hasOwnProperty.call(c,n)?c[n]:null;if(a&&o instanceof a)return o.$$unwrapTrustedValue();if(C(o.$$unwrapTrustedValue)&&(o=o.$$unwrapTrustedValue()),n===Ge.MEDIA_URL||n===Ge.URL)return r(o.toString(),n===Ge.MEDIA_URL);if(n===Ge.RESOURCE_URL){if(function(n){const r=Fe(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 We("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",o.toString())}if(n===Ge.HTML)return i();throw We("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(t){return t instanceof a?t.$$unwrapTrustedValue():t}}}]}function Qe(){let t=!0;this.enabled=function(e){return arguments.length&&(t=!!e),t},this.$get=["$parse","$sceDelegate",function(e,n){const r=nt(Ge);r.isEnabled=function(){return t},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,t||(r.trustAs=r.getTrusted=function(t,e){return e},r.valueOf=function(t){return t}),r.parseAs=function(t,n){const i=e(n);return i.literal&&i.constant?i:e(n,(e=>r.getTrusted(t,e)))};const i=r.parseAs,{getTrusted:s}=r,{trustAs:o}=r;return Object.entries(Ge).forEach((([t,e])=>{const n=f(t);r[_t(`parse_as_${n}`)]=function(t){return i(e,t)},r[_t(`get_trusted_${n}`)]=function(t){return s(e,t)},r[_t(`trust_as_${n}`)]=function(t){return o(e,t)}})),r}]}const Ze={},Je={blur:!0,focus:!0};function Xe(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===Se.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=dt(`ng-${t}`);Ze[e]=["$parse","$rootScope","$exceptionHandler",(n,r,i)=>Xe(n,r,i,e,t,Je[t])]}));const tn=ct("$compile"),en=/^\w/,nn=document.createElement("div");class rn{constructor(t,e,n,r,i,s){if(this.$rootScope=t,this.$animate=e,this.$exceptionHandler=n,this.$sce=r,s){const t=Object.keys(s);for(let e=0,n=t.length;e<n;e++){const n=t[e];this[n]=s[n]}}else this.$attr={};this.$$element=i}$normalize=dt;$addClass(t){t&&t.length>0&&this.$animate.addClass(this.$$element,t)}$removeClass(t){t&&t.length>0&&this.$animate.removeClass(this.$$element,t)}$updateClass(t,e){const n=sn(t,e);n&&n.length&&this.$animate.addClass(this.$$element,n);const r=sn(e,t);r&&r.length&&this.$animate.removeClass(this.$$element,r)}$set(t,e,n,r){const i=Wt(this.$$element[0],t),s=u[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=T(t,"-")),"img"===this.$$element[0].nodeName.toLowerCase()&&"srcset"===t&&(this[t]=e=this.sanitizeSrcset(e,"$set('srcset', value)")),!1!==n&&(null===e||m(e)?this.$$element[0].removeAttribute(r):en.test(r)?i&&!1===e?this.$$element[0].removeAttribute(r):this.$$element.attr(r,e):this.setSpecialAttr(this.$$element[0],r,e));const{$$observers:a}=this;a&&a[o]&&a[o].forEach((t=>{try{t(e)}catch(t){this.$exceptionHandler(t)}}))}$observe(t,e){const n=this.$$observers||(this.$$observers=Object.create(null)),r=n[t]||(n[t]=[]);return r.push(e),this.$rootScope.$evalAsync((()=>{r.$$inter||!Object.prototype.hasOwnProperty.call(this,t)||m(this[t])||e(this[t])})),function(){U(r,e)}}setSpecialAttr(t,e,n){nn.innerHTML=`<span ${e}>`;const{attributes:r}=nn.firstChild,i=r[0];r.removeNamedItem(i.name),i.value=n,t.attributes.setNamedItem(i)}sanitizeSrcset(t,e){if(!t)return t;if(!y(t))throw tn("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',e,t.toString());for(var n="",r=_(t),i=/\s/.test(r)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,s=r.split(i),o=Math.floor(s.length/2),a=0;a<o;a++){var c=2*a;n+=this.$sce.getTrustedMediaUrl(_(s[c])),n+=" "+_(s[c+1])}var l=_(s[2*a]).split(/\s/);return n+=this.$sce.getTrustedMediaUrl(_(l[0])),2===l.length&&(n+=" "+_(l[1])),n}}function sn(t,e){let n="";const r=t.split(/\s+/),i=e.split(/\s+/);t:for(let t=0;t<r.length;t++){const e=r[t];for(let t=0;t<i.length;t++)if(e===i[t])continue t;n+=(n.length>0?" ":"")+e}return n}let on=10;const an=ct("$compile"),cn=new Object,ln=["ngIf","ngRepeat"];function un(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 l(t,e,n){const r=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,i=Object.create(null);return Object.entries(t).forEach((([t,s])=>{if((s=s.trim())in a)return void(i[t]=a[s]);const o=s.match(r);if(!o)throw an("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",e,t,s,n?"controller bindings definition":"isolate scope definition");i[t]={mode:o[1][0],collection:"*"===o[2],optional:"?"===o[3],attrName:o[4]||t},o[4]&&(a[s]=i[t])})),i}function u(t,e){const n={isolateScope:null,bindToController:null};if(v(t.scope)&&(!0===t.bindToController?(n.bindToController=l(t.scope,e,!0),n.isolateScope={}):n.isolateScope=l(t.scope,e,!1)),v(t.bindToController)&&(n.bindToController=l(t.bindToController,e,!0)),n.bindToController&&!t.controller)throw an("noctrl","Cannot bind to controller without directive '{0}'s controller.",e);return n}this.directive=function e(i,o){return it(i,"name"),F(i,"directive"),y(i)?(!function(t){const e=t.charAt(0);if(!e||e!==f(e))throw an("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",t);if(t!==t.trim())throw an("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",t)}(i),it(o,"directiveFactory"),Object.prototype.hasOwnProperty.call(n,i)||(n[i]=[],t.factory(i+r,["$injector","$exceptionHandler",function(t,e){const r=[];return n[i].forEach(((n,o)=>{try{let e=t.invoke(n);C(e)?e={compile:P(e)}:!e.compile&&e.link&&(e.compile=P(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)&&Object.entries(e).forEach((([t,n])=>{const r=n.match(s);n.substring(r[0].length)||(e[t]=r[0]+t)})),e}(e),e.restrict=function(t,e){if(t&&(!y(t)||!/[EA]/.test(t)))throw an("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",t,e);return t||"EA"}(e.restrict,i),e.$$moduleName=n.$$moduleName,r.push(e)}catch(t){e(t)}})),r}])),n[i].push(o)):Object.entries(i).forEach((([t,n])=>e(t,n))),this},this.component=function(t,e){if(!y(t))return Object.entries(t).forEach((([t,e])=>this.component(t,e))),this;const n=e.controller||function(){};function r(t){function r(e){return C(e)||Array.isArray(e)?function(n,r){return t.invoke(e,this,{$element:n,$attrs:r})}:e}const i=e.template||e.templateUrl?e.template:"",s={controller:n,controllerAs:Ce(e.controller)||e.controllerAs||"$ctrl",template:r(i),templateUrl:r(e.templateUrl),transclude:e.transclude,scope:{},bindToController:e.bindings||{},restrict:"E",require:e.require};return Object.entries(e).forEach((([t,e])=>{"$"===t.charAt(0)&&(s[t]=e)})),s}return Object.entries(e).forEach((([t,e])=>{"$"===t.charAt(0)&&(r[t]=e,C(n)&&(n[t]=e))})),r.$inject=["$injector"],this.directive(t,r)},this.aHrefSanitizationTrustedUrlList=function(t){return g(t)?(e.aHrefSanitizationTrustedUrlList(t),this):e.aHrefSanitizationTrustedUrlList()},this.imgSrcSanitizationTrustedUrlList=function(t){return g(t)?(e.imgSrcSanitizationTrustedUrlList(t),this):e.imgSrcSanitizationTrustedUrlList()};let h=!1;this.strictComponentBindingsEnabled=function(t){return g(t)?(h=t,this):h};const d=Object.create(null);this.addPropertySecurityContext=function(t,e,n){const r=`${t.toLowerCase()}|${e.toLowerCase()}`;if(r in d&&d[r]!==n)throw an("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",t,e,d[r],n);return d[r]=n,this},function(){function t(t,e){e.forEach((e=>{d[e.toLowerCase()]=t}))}t(Ge.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),t(Ge.CSS,["*|style"]),t(Ge.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),t(Ge.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),t(Ge.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,l,p,f,$,g,b){let w;function O(){try{if(! --on)throw w=void 0,an("infchng","{0} $onChanges() iterations reached. Aborting!\n",on);$.$apply((()=>{for(let t=0,e=w.length;t<e;++t)try{w[t]()}catch(t){a(t)}w=void 0}))}finally{on++}}const S=e.startSymbol(),k=e.endSymbol(),T="{{"===S&&"}}"===k?t=>t:t=>t.replace(/\{\{/g,S).replace(/}}/g,k),V=/^ng(Attr|Prop|On|Observe)([A-Z].*)$/;return N;function N(t,e,n,r,i){let s=xt(t),o=P(s,e,s,n,r,i),a=null;return function(t,e,n){if(!s)throw an("multilink","This element has already been linked.");it(t,"scope"),i&&i.needsNewScope&&(t=t.$parent.$new()),n=n||{};let r,{transcludeControllers:c,parentBoundTranscludeFn:l,futureParentElement:u}=n;if(l&&l.$$boundTransclude&&(l=l.$$boundTransclude),a||(a=function(t){const e=t&&t[0];if(!e)return"html";return"foreignobject"!==L(e)&&toString.call(e).match(/SVG/)?"svg":"html"}(u)),"html"!==a)r=xt(J(a,xt("<div></div>").append(s).html()));else if(e){r=new xt(s.elements().map((t=>t.cloneNode(!0))))}else r=s;if(c)for(const t in c)r.data(`$${t}Controller`,c[t].instance);return e&&e(r,t),o&&o(t,r,r,l),e||(s=o=null),r}}function P(t,e,n,r,i,s){const o=[];let c,l;var u;let h,d,p,f;for(let m=0;m<t.length;m++)c=new rn($,b,a,g),l=M(t[m],[],c,0===m?r:void 0,i),d=(u=l.length?U(l,t[m],c,e,n,null,[],[],s):null)&&u.terminal||!(h=t[m].childNodes)||!h.length?null:P(h,u?(u.transcludeOnThisElement||!u.templateOnThisElement)&&u.transclude:e),(u||d)&&(o.push(m,u,d),p=!0,f=f||u),s=null;return p?function(t,n,r,i){let s,a,c,l,u,h,d,p,$;if(f)for($=new Array(n.length),u=0;u<o.length;u+=3)d=o[u],$[d]=n[d];else $=n;for(u=0,h=o.length;u<h;)c=$[o[u++]],s=o[u++],a=o[u++],s?(l=s.scope?t.$new():t,p=s.transcludeOnThisElement?D(t,s.transclude,i):!s.templateOnThisElement&&i?i:!i&&e?D(t,e):null,s(a,l,c,r,p)):a&&a(t,c.childNodes,void 0,i)}:null}function D(t,e,n){function r(r,i,s,o,a){return r||((r=t.$transcluded(a)).$$transcluded=!0),e(r,i,{parentBoundTranscludeFn:n,transcludeControllers:s,futureParentElement:o})}const i=r.$$slots=Object.create(null);for(const r in e.$$slots)e.$$slots[r]?i[r]=D(t,e.$$slots[r],n):i[r]=null;return r}function M(t,n,r,i,s){const{nodeType:o}=t,a=r.$attr;let l;switch(o){case Node.ELEMENT_NODE:l=t.nodeName.toLowerCase(),z(n,dt(l),"E",i,s);for(var u,h,d,p,f,$=t.attributes,m=0,g=$&&$.length;m<g;m++){let e=!1,o=!1,l=!1,g=!1;h=(u=$[m]).name,p=u.value,(f=(d=dt(h.toLowerCase())).match(V))&&(e="Attr"===f[1],o="Prop"===f[1],l="On"===f[1],g="Observe"===f[1],h=h.replace(c,"").toLowerCase().substring(4+f[1].length).replace(/_(.)/g,((t,e)=>e.toUpperCase()))),o||l?(r[d]=p,a[d]=u.name,o?tt(t,n,d,h):et(n,d,h)):g?nt(n,h,p):(a[d=dt(h.toLowerCase())]=h,!e&&Object.prototype.hasOwnProperty.call(r,d)||(r[d]=p,Wt(t,d)&&(r[d]=!0)),rt(t,n,p,d,e),z(n,d,"A",i,s))}"input"===l&&"hidden"===t.getAttribute("type")&&t.setAttribute("autocomplete","off");break;case Node.TEXT_NODE:!function(t,n){const r=e(n,!0);r&&t.push({priority:0,compile:()=>(t,e)=>{t.$watch(r,(t=>{e[0].nodeValue=t}))}})}(n,t.nodeValue)}return n.sort(Q),n}function I(t,e,n,r,i,s){let o;return t?N(e,n,r,i,s):function(){return o||(o=N(e,n,r,i,s),e=n=s=null),o.apply(this,arguments)}}function U(t,e,n,r,i,s,o,c,l){l=l||{};let u,h,d,p,y,w=-Number.MAX_VALUE,{newScopeDirective:E}=l,{controllerDirectives:O}=l,{newIsolateScopeDirective:S}=l,{templateDirective:A}=l,{nonTlbTranscludeDirective:k}=l,V=!1,N=!1,{hasElementTranscludeDirective:R}=l,P=n.$$element=xt(e),D=s,U=r,q=!1,H=!1,z=function(t,r,i,s,l){let u,h,d,p,y,w,A,k,_,T;e===i?(_=n,k=n.$$element):(k=xt(i),_=new rn($,b,a,g,k,n)),y=r,S?p=r.$new(!0):E&&(y=r.$parent),l&&(A=function(t,e,n,r){let i;x(t)||(r=n,n=e,e=t,t=void 0);R&&(i=w);n||(n=R?k.parent():k);if(!r)return l(t,e,i,n,V);{const s=l.$$slots[r];if(s)return s(t,e,i,n,V);if(m(s))throw an("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,Bt(k))}},A.$$boundTransclude=l,A.isSlotFilled=function(t){return!!l.$$slots[t]}),O&&(w=function(t,e,n,r,i,s,o){const a=Object.create(null);for(const c in r){const l=r[c],u={$scope:l===o||l.$$isolateScope?i:s,$element:t,$attrs:e,$transclude:n};let{controller:h}=l;"@"===h&&(h=e[l.name]);const d=f(h,u,!0,l.controllerAs);a[l.name]=d,t.data(`$${l.name}Controller`,d.instance)}return a}(k,_,A,O,p,r,S)),S&&(p.$$isolateBindings=S.$$isolateBindings,T=lt(r,_,p,p.$$isolateBindings,S),T.removeWatches&&p.$on("$destroy",T.removeWatches));for(const t in w){const e=O[t],n=w[t],r=e.$$bindings.bindToController;n.instance=n(),k.data(`$${e.name}Controller`,n.instance),n.bindingInfo=lt(y,_,n.instance,r,e)}for(O&&Object.entries(O).forEach((([t,e])=>{const{require:n}=e;e.bindToController&&!Array.isArray(n)&&v(n)&&j(w[t].instance,F(t,n,k,w))})),w&&Object.values(w).forEach((t=>{const e=t.instance;if(C(e.$onChanges))try{e.$onChanges(t.bindingInfo.initialChanges)}catch(t){a(t)}if(C(e.$onInit))try{e.$onInit()}catch(t){a(t)}C(e.$doCheck)&&(y.$watch((()=>{e.$doCheck()})),e.$doCheck()),C(e.$onDestroy)&&y.$on("$destroy",(()=>{e.$onDestroy()}))})),u=0,h=o.length;u<h;u++)d=o[u],at(d,d.isolateScope?p:r,k,_,d.require&&F(d.directiveName,d.require,k,w),A);var V=r;for(S&&(S.template||null===S.templateUrl)&&(V=p),t&&t(V,i.childNodes,void 0,l),u=c.length-1;u>=0;u--)d=c[u],at(d,d.isolateScope?p:r,k,_,d.require&&F(d.directiveName,d.require,k,w),A);w&&Object.values(w).forEach((t=>{const e=t.instance;C(e.$postLink)&&e.$postLink()}))};for(let s=0,l=t.length;s<l&&(u=t[s],d=void 0,!(w>u.priority));s++){if(y=u.scope,y&&(u.templateUrl||(v(y)?(Z("new/isolated scope",S||E,u,P),S=u):Z("new/isolated scope",S,u,P)),E=E||u),h=u.name,!q&&(u.replace&&(u.templateUrl||u.template)||u.transclude&&!ln.includes(u.name))){let e;for(let n=s+1;e=t[n++];)if(e.transclude&&!ln.includes(e.name)||e.replace&&(e.templateUrl||e.template)){H=!0;break}q=!0}if(!u.templateUrl&&u.controller&&(O=O||Object.create(null),Z(`'${h}' controller`,O[h],u,P),O[h]=u),y=u.transclude,y)if(V=!0,ln.includes(u.name)||(Z("transclusion",k,u,P),k=u),"element"===y)R=!0,w=u.priority,d=P,P=n.$$element=xt(document.createComment("")),e=P[0],st(i,W(d),e),U=I(H,d,r,w,D&&D.name,{nonTlbTranscludeDirective:k});else{const t=Object.create(null);if(v(y)){d=document.createDocumentFragment();const e=Object.create(null),n=Object.create(null);Object.entries(y).forEach((([r,i])=>{const s="?"===i.charAt(0);i=s?i.substring(1):i,e[i]=r,t[r]=null,n[r]=s})),xt(P[0].childNodes).elements().forEach((r=>{const i=e[dt(L(r))];i?(n[i]=!0,t[i]=t[i]||document.createDocumentFragment(),t[i].appendChild(r)):d.appendChild(r)})),Object.entries(n).forEach((([t,e])=>{if(!e)throw an("reqslot","Required transclusion slot `{0}` was not filled.",t)}));for(const e in t)if(t[e]){const n=xt(t[e].childNodes);t[e]=I(H,n,r)}d=xt(d.childNodes)}else d=e.cloneNode(!0).childNodes;P.empty(),U=I(H,d,r,void 0,void 0,{needsNewScope:u.$$isolateScope||u.$$newScope}),U.$$slots=t}if(u.template)if(N=!0,Z("template",A,u,P),A=u,y=C(u.template)?u.template(P,n):u.template,y=T(y),u.replace){if(D=u,d=Vt(y)?[]:dn(J(u.templateNamespace,_(y))),e=d[0],1!==d.length||e.nodeType!==Node.ELEMENT_NODE)throw an("tplrt","Template for directive '{0}' must have exactly one root element. {1}",h,"");st(i,P,e);const r={$attr:{}},o=M(e,[],r),a=t.splice(s+1,t.length-(s+1));(S||E)&&B(o,S,E),t=t.concat(o).concat(a),K(n,r),l=t.length}else P.html(y);if(u.templateUrl)N=!0,Z("template",A,u,P),A=u,u.replace&&(D=u),z=Y(t.splice(s,t.length-s),P,n,i,V&&U,o,c,{controllerDirectives:O,newScopeDirective:E!==u&&E,newIsolateScopeDirective:S,templateDirective:A,nonTlbTranscludeDirective:k}),l=t.length;else if(u.compile)try{p=u.compile(P,n,U);const t=u.$$originalDirective||u;C(p)?Q(null,G(t,p)):p&&Q(G(t,p.pre),G(t,p.post))}catch(t){a(t,Bt(P))}u.terminal&&(z.terminal=!0,w=Math.max(w,u.priority))}return z.scope=E&&!0===E.scope,z.transcludeOnThisElement=V,z.templateOnThisElement=N,z.transclude=U,l.hasElementTranscludeDirective=R,z;function Q(t,e){t&&(t.require=u.require,t.directiveName=h,(S===u||u.$$isolateScope)&&(t=ot(t,{isolateScope:!0})),o.push(t)),e&&(e.require=u.require,e.directiveName=h,(S===u||u.$$isolateScope)&&(e=ot(e,{isolateScope:!0})),c.push(e))}}function F(t,e,n,r){let i;if(y(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 an("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]=F(t,e[s],n,r)}else v(e)&&(i={},Object.entries(e).forEach((([e,s])=>{i[e]=F(t,s,n,r)})));return i||null}function B(t,e,n){for(let r=0,i=t.length;r<i;r++)t[r]=R(t[r],{$$isolateScope:e,$$newScope:n})}function z(e,i,s,o,a){if(i===a)return!1;let c=!1;if(Object.prototype.hasOwnProperty.call(n,i))for(let n,a=t.get(i+r),l=0,h=a.length;l<h;l++)if(n=a[l],(m(o)||o>n.priority)&&-1!==n.restrict.indexOf(s)){if(!n.$$bindings){const t=n.$$bindings=u(n,n.name);v(t.isolateScope)&&(n.$$isolateBindings=t.isolateScope)}e.push(n),c=n}return c}function K(t,e){const n=e.$attr,r=t.$attr;Object.entries(t).forEach((([r,i])=>{"$"!==r.charAt(0)&&(e[r]&&e[r]!==i&&(i.length?i+=("style"===r?";":" ")+e[r]:i=e[r]),t.$set(r,i,!0,n[r]))})),Object.entries(e).forEach((([e,i])=>{Object.prototype.hasOwnProperty.call(t,e)||"$"===e.charAt(0)||(t[e]=i,"class"!==e&&"style"!==e&&(r[e]=n[e]))}))}function Y(t,e,n,r,i,s,o,c){let u,h,d=[];const p=e[0],f=t.shift(),$=R(f,{templateUrl:null,transclude:null,replace:null,$$originalDirective:f}),m=C(f.templateUrl)?f.templateUrl(e,n):f.templateUrl,{templateNamespace:g}=f;return e.empty(),l(m).then((a=>{let l,y,b,w;if(a=T(a),f.replace){if(b=Vt(a)?[]:dn(J(g,_(a))),l=b[0],1!==b.length||l.nodeType!==Node.ELEMENT_NODE)throw an("tplrt","Template for directive '{0}' must have exactly one root element. {1}",f.name,m);y={$attr:{}},st(r,e,l);const i=M(l,[],y);v(f.scope)&&B(i,!0),t=i.concat(t),K(n,y)}else l=p,e.html(a);for(t.unshift($),u=U(t,l,n,i,e,f,s,o,c),r&&Object.entries(r).forEach((([t,n])=>{n===l&&(r[t]=e[0])})),h=P(e[0].childNodes,i);d.length;){const t=d.shift(),n=d.shift(),i=d.shift(),s=d.shift();let o=e[0];if(!t.$$destroyed){if(n!==p){const t=n.className;c.hasElementTranscludeDirective&&f.replace||(o=l.cloneNode(!0)),st(i,xt(n),o);try{""!==t&&o.classList.add(...t.trim().split(" "))}catch(t){}}w=u.transcludeOnThisElement?D(t,u.transclude,s):s,u(h,t,o,r,w)}}d=null})).catch((t=>{E(t)&&a(t)})),function(t,e,n,r,i){let s=i;e.$$destroyed||(d?d.push(e,n,r,s):(u.transcludeOnThisElement&&(s=D(e,u.transclude,i)),u(h,e,n,r,s)))}}function Q(t,e){const n=e.priority-t.priority;return 0!==n?n:t.name!==e.name?t.name<e.name?-1:1:t.index-e.index}function Z(t,e,n,r){function i(t){return t?` (module: ${t})`:""}if(e)throw an("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",e.name,i(e.$$moduleName),n.name,i(n.$$moduleName),t,Bt(r))}function J(t,e){switch(t=(t||"html").toLowerCase()){case"svg":case"math":var n=document.createElement("div");return n.innerHTML=`<${t}>${e}</${t}>`,n.childNodes[0].childNodes;default:return e}}function X(t){return function(t,e){if(!t)return t;if(!y(t))throw an("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',e,t.toString());for(var n="",r=_(t),i=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,s=/\s/.test(r)?i:/(,)/,o=r.split(s),a=Math.floor(o.length/2),c=0;c<a;c++){var l=2*c;n+=g.getTrustedMediaUrl(_(o[l])),n+=" "+_(o[l+1])}var u=_(o[2*c]).split(/\s/);n+=g.getTrustedMediaUrl(_(u[0])),2===u.length&&(n+=" "+_(u[1]));return n}(g.valueOf(t),"ng-prop-srcset")}function tt(t,e,n,r){if(o.test(r))throw an("nodomevents","Property bindings for HTML DOM event properties are disallowed");const i=L(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=g.getTrusted.bind(g,s)):a=X,e.push({priority:100,compile:function(t,e){const i=p(e[n]),s=p(e[n],(t=>g.valueOf(t)));return{pre:function(t,e){function n(){const n=i(t);e[0][r]=a(n)}n(),t.$watch(s,n)}}}})}function et(t,e,n){t.push(Xe(p,$,a,e,n,!1))}function nt(t,e,n){t.push(function(t,e){return{restrict:"A",compile:()=>(n,r)=>{const i=r[0];""===e&&(e=t);const s=kt(e);n[s]||(n[s]=i.getAttribute(t));const o=new MutationObserver((e=>{const r=e[0].target.getAttribute(t);n[s]!==r&&(n[s]=r,n.$digest())}));o.observe(i,{attributes:!0,attributeFilter:[t]}),n.$on("$destroy",(()=>{o.disconnect()}))}}}(e,n))}function rt(t,n,r,s,a){const c=L(t),l=function(t,e){return"srcdoc"===e?g.HTML:"src"===e||"ngSrc"===e?-1===["img","video","audio","source","track"].indexOf(t)?g.RESOURCE_URL:g.MEDIA_URL:"xlinkHref"===e?"image"===t?g.MEDIA_URL:"a"===t?g.URL:g.RESOURCE_URL:"form"===t&&"action"===e||"base"===t&&"href"===e||"link"===t&&"href"===e?g.RESOURCE_URL:"a"!==t||"href"!==e&&"ngHref"!==e?void 0:g.URL}(c,s),u=i[s]||a;let h=e(r,!a,l,u);if(h){if("multiple"===s&&"select"===c)throw an("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",Bt(t.outerHTML));if(o.test(s))throw an("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 st(t,e,n){const r=e[0],i=e.length,s=r.parentNode;let o,a;if(t)for(o=0,a=t.length;o<a;o++)if(t[o]===r){t[o++]=n;for(let e=o,n=e+i-1,r=t.length;e<r;e++,n++)n<r?t[e]=t[n]:delete t[e];t.length-=i-1;break}s&&s.replaceChild(n,r);const c=document.createDocumentFragment();for(o=0;o<i;o++)c.appendChild(e[o]);for($t.has(r[ft])&&(Mt(n,Mt(r)),xt(r).off("$destroy")),Gt(c.querySelectorAll("*")),o=1;o<i;o++)delete e[o];e[0]=n,e.length=1}function ot(t,e){return j((function(){return t.apply(null,arguments)}),t,e)}function at(t,e,n,r,i,s){try{t(e,n,r,i,s)}catch(t){console.error(t),a(t,Bt(n))}}function ct(t,e){if(h)throw an("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",t,e)}function lt(t,n,r,i,s){const o=[],a={};let c;function l(e,n,i){C(r.$onChanges)&&!q(n,i)&&(w||(t.$$postDigest(O),w=[]),c||(c={},w.push(u)),c[e]&&(i=c[e].previousValue),c[e]=new hn(i,n))}function u(){r.$onChanges(c),c=void 0}return i&&Object.entries(i).forEach((([i,c])=>{const{attrName:u}=c,{optional:h}=c,{mode:d}=c;let f,$,m,g,v;switch(d){case"@":h||Object.hasOwnProperty.call(n,u)||(ct(u,s.name),r[i]=n[u]=void 0),v=n.$observe(u,(t=>{if(y(t)||A(t)){const e=r[i];l(i,t,e),r[i]=t}})),n.$$observers[u].$$scope=t,f=n[u],y(f)?r[i]=e(f)(t):A(f)&&(r[i]=f),a[i]=new hn(cn,r[i]),o.push(v);break;case"=":if(!Object.hasOwnProperty.call(n,u)){if(h)break;ct(u,s.name),n[u]=void 0}if(h&&!n[u])break;$=p(n[u]),g=$.literal?H:q,m=$.assign||function(){throw f=r[i]=$(t),an("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",n[u],u,s.name)},f=r[i]=$(t);var b=function(e){return g(e,r[i])||(g(e,f)?m(t,e=r[i]):r[i]=e),f=e,f};b.$stateful=!0,v=c.collection?t.$watchCollection(n[u],b):t.$watch(p(n[u],b),null,$.literal),o.push(v);break;case"<":if(!Object.hasOwnProperty.call(n,u)){if(h)break;ct(u,s.name),n[u]=void 0}if(h&&!n[u])break;$=p(n[u]);var w=$.literal,E=r[i]=$(t);a[i]=new hn(cn,r[i]),v=t[c.collection?"$watchCollection":"$watch"]($,((t,e)=>{if(e===t){if(e===E||w&&H(e,E))return;e=E}l(i,t,e),r[i]=t})),o.push(v);break;case"&":if(h||Object.hasOwnProperty.call(n,u)||ct(u,s.name),$=Object.prototype.hasOwnProperty.call(n,u)?p(n[u]):()=>{},$.toString()===(()=>{}).toString()&&h)break;r[i]=function(e){return $(t,e)}}})),{initialChanges:a,removeWatches:o.length&&function(){for(let t=0,e=o.length;t<e;++t)o[t]()}}}}]}un.$inject=["$provide","$$sanitizeUriProvider"];class hn{constructor(t,e){this.previousValue=t,this.currentValue=e}isFirstChange(){return this.previousValue===cn}}function dn(t){let e=(t=xt(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 pn={$addControl:()=>{},$getControls:P([]),$$renameControl:function(t,e){t.$name=e},$removeControl:()=>{},$setValidity:function(){},$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=pn,this.$$element=t,this.$$animate=r,bn(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){F(t.$name,"input"),this.$$controls.push(t),t.$name&&(this[t.$name]=t),t.$$parentForm=this},$getControls(){return nt(this.$$controls)},$$renameControl(t,e){const n=t.$name;this[n]===t&&delete this[n],this[e]=t,t.$name=e},$removeControl(t){t.$name&&this[t.$name]===t&&delete this[t.$name],this.$pending&&Object.keys(this.$pending).forEach((e=>{this.$setValidity(e,null,t)})),this.$error&&Object.keys(this.$error).forEach((e=>{this.$setValidity(e,null,t)})),this.$$success&&Object.keys(this.$$success).forEach((e=>{this.$setValidity(e,null,t)})),U(this.$$controls,t),t.$$parentForm=pn},$setValidity:function(t,e,n){},$setDirty(){this.$$animate.removeClass(this.$$element,n),this.$$animate.addClass(this.$$element,r),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine(){this.$$animate.setClass(this.$$element,n,`${r} ${$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!==pn;)t=t.$$parentForm;t.$$setSubmitted()},$$setSubmitted(){this.$$animate.addClass(this.$$element,$n),this.$submitted=!0,this.$$controls.forEach((t=>{t.$$setSubmitted&&t.$$setSubmitted()}))}},function(n){const{clazz:r}=n,{set:i}=n,{unset:s}=n;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(n,r,i){r=r?`-${T(r,"-")}`:"",o(n,t+r,!0===i),o(n,e+r,!1===i)}r.prototype.$setValidity=function(t,e,n){let r;m(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),wn(t[e])&&(t[e]=void 0)}(this,"$pending",t,n),A(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=wn(this.$error),this.$invalid=!this.$valid,a(this,"",this.$valid)),r=this.$pending&&this.$pending[t]?void 0:!this.$error[t]&&(!!this.$$success[t]||null),a(this,t,r),this.$$parentForm.$setValidity(t,r,this)}}({clazz: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&&(U(r,n),0===r.length&&delete t[e])}});const gn=function(e){return["$timeout","$parse",function(r,i){return{name:"form",restrict:e?"EA":"E",require:["form","^^?form"],controller:mn,compile:function(i,o){i[0].classList.add(n,t);const a=o.name?"name":!(!e||!o.ngForm)&&"ngForm";return{pre:function(t,e,n,i){const o=i[0];if(!("action"in n)){const n=function(e){t.$apply((()=>{o.$commitViewValue(),o.$setSubmitted()})),e.preventDefault()};e[0].addEventListener("submit",n),e.on("$destroy",(()=>{r((()=>{e[0].removeEventListener("submit",n)}),0,!1)}))}(i[1]||o.$$parentForm).$addControl(o);let c=a?s(o.$name):()=>{};a&&(c(t,o),n.$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),j(o,pn)}))}}}};function s(t){return""===t?i('this[""]').assign:i(t).assign||(()=>{})}}]},vn=gn(),yn=gn("ngForm");function bn(n){n.$$classCache={},n.$$classCache[e]=!(n.$$classCache[t]=n.$$element[0].classList.contains(t))}function wn(t){if(t)for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}const En=/(\s+|^)default(\s+|$)/;class Cn{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 t=Object.assign({},t),Object.entries(t).forEach((([n,r])=>{"$inherit"===r?"*"===n?e=!0:(t[n]=this.$$options[n],"updateOn"===n&&(t.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===n&&(t.updateOnDefault=!1,t[n]=_(r.replace(En,(()=>(t.updateOnDefault=!0," ")))))}),this),e&&(delete t["*"],An(t,this.$$options)),An(t,Sn.$$options),new On(t)}}const Sn=new On({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1}),xn=function(){return{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:Cn}};function An(t,e){Object.keys(e).forEach((n=>{g(t[n])||(t[n]=e[n])}))}const kn=ct("ngModel");class _n{static $inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"];constructor(t,e,n,r,i,s,o,a,c){var l;this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=c(n.name||"",!1)(t),this.$$parentForm=pn,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,this.$$hasNativeValidators=!1,bn(this),(l=this).$$scope.$watch((t=>{const e=l.$$ngModelGet(t);return e===l.$modelValue||l.$modelValue!=l.$modelValue&&e!=e||l.$$setModelValue(e),e}))}set(t,e){t[e]=!0}unset(t,e){delete t[e]}$setValidity(n,r){let i,s=this;function o(t,e,n){n&&!t.$$classCache[e]?(t.$$animate.addClass(t.$$element,e),t.$$classCache[e]=!0):!n&&t.$$classCache[e]&&(t.$$animate.removeClass(t.$$element,e),t.$$classCache[e]=!1)}function a(n,r,i){r=r?`-${T(r,"-")}`:"",o(n,t+r,!0===i),o(n,e+r,!1===i)}m(r)?function(t,e,n){t[e]||(t[e]={}),s.set(t[e],n)}(this,"$pending",n):function(t,e,n){t[e]&&s.unset(t[e],n),wn(t[e])&&(t[e]=void 0)}(this,"$pending",n),A(r)?r?(delete this.$error[n],this.set(this.$$success,n)):(this.set(this.$error,n),delete this.$$success[n]):(delete this.$error[n],delete this.$$success[n]),this.$pending?(o(this,fn,!0),this.$valid=this.$invalid=void 0,a(this,"",null)):(o(this,fn,!1),this.$valid=wn(this.$error),this.$invalid=!this.$valid,a(this,"",this.$valid)),i=this.$pending&&this.$pending[n]?void 0:!this.$error[n]&&(!!this.$$success[n]||null),a(this,n,i),this.$$parentForm.$setValidity(n,i,this)}$$initGetterSetters(){if(this.$options.getOption("getterSetter")){const t=this.$$parse(`${this.$$attr.ngModel}()`),e=this.$$parse(`${this.$$attr.ngModel}($$$p)`);this.$$ngModelGet=function(e){let n=this.$$parsedNgModel(e);return C(n)&&(n=t(e)),n},this.$$ngModelSet=function(t,n){C(this.$$parsedNgModel(t))?e(t,{$$$p:n}):this.$$parsedNgModelAssign(t,n)}}else if(!this.$$parsedNgModel.assign)throw kn("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,Bt(this.$$element))}$render(){}$isEmpty(t){return m(t)||""===t||null===t||t!=t}$$updateEmptyClasses(t){this.$isEmpty(t)?pt(this.$$element[0])?(this.$$animate.removeClass(this.$$element,a),this.$$animate.addClass(this.$$element,o)):(this.$$element[0].classList.remove(a),this.$$element[0].classList.add(o)):pt(this.$$element[0])?(this.$$animate.removeClass(this.$$element,o),this.$$animate.addClass(this.$$element,a)):(this.$$element[0].classList.remove(o),this.$$element[0].classList.add(a))}$setPristine(){this.$dirty=!1,this.$pristine=!0,pt(this.$$element[0])?(this.$$animate.removeClass(this.$$element,o),this.$$animate.addClass(this.$$element,n)):(this.$$element[0].classList.remove(o),this.$$element[0].classList.add(n))}$setDirty(){this.$dirty=!0,this.$pristine=!1,pt(this.$$element[0])?(this.$$animate.removeClass(this.$$element,n),this.$$animate.addClass(this.$$element,r)):(this.$$element[0].classList.remove(n),this.$$element[0].classList.add(r)),this.$$parentForm.$setDirty()}$setUntouched(){this.$touched=!1,this.$untouched=!0,pt(this.$$element[0])?this.$$animate.setClass(this.$$element,i,s):(this.$$element[0].classList.remove(s),this.$$element[0].classList.add(i))}$setTouched(){this.$touched=!0,this.$untouched=!1,pt(this.$$element[0])?this.$$animate.setClass(this.$$element,s,i):(this.$$element[0].classList.remove(i),this.$$element[0].classList.add(s))}$rollbackViewValue(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()}$validate(){if(N(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(!m(i.$$parserValid))return i.$$parserValid||(Object.keys(i.$validators).forEach((t=>{s(t,null)})),Object.keys(i.$asyncValidators).forEach((t=>{s(t,null)}))),s(t,i.$$parserValid),i.$$parserValid;s(t,null);return!0}()?o(!1):function(){let n=!0;if(Object.entries(i.$validators).forEach((([r,i])=>{const o=Boolean(i(t,e));n=n&&o,s(r,o)})),!n)return Object.keys(i.$asyncValidators).forEach((t=>{s(t,null)})),!1;return!0}()?function(){const n=[];let r=!0;Object.entries(i.$asyncValidators).forEach((([i,o])=>{const a=o(t,e);if(!k(a))throw kn("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",a);s(i,void 0),n.push(a.then((()=>{s(i,!0)}),(()=>{r=!1,s(i,!1)})))})),n.length?i.$q.all(n).then((()=>{o(r)}),(()=>{})):o(!0)}():o(!1)}$commitViewValue(){this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==this.$viewValue||""===this.$viewValue&&this.$$hasNativeValidators)&&(void 0===this.$$lastCommittedViewValue&&Number.isNaN(this.$viewValue)||(this.$$updateEmptyClasses(this.$viewValue),this.$$lastCommittedViewValue=this.$viewValue,this.$pristine&&this.$setDirty(),this.$$parseAndValidate()))}$$parseAndValidate(){let t=this.$$lastCommittedViewValue;const e=this;if(this.$$parserValid=!m(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),m(t)){this.$$parserValid=!1;break}N(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));const n=this.$modelValue,r=this.$options.getOption("allowInvalid");function i(){e.$modelValue!==n&&e.$$writeModelToScope()}this.$$rawModelValue=t,r&&(this.$modelValue=t,i()),this.$$runValidators(t,this.$$lastCommittedViewValue,(n=>{r||(e.$modelValue=n?t:void 0,i())}))}$$writeModelToScope(){this.$$ngModelSet(this.$$scope,this.$modelValue),Object.values(this.$viewChangeListeners).forEach((t=>{try{t()}catch(t){this.$$exceptionHandler(t)}}),this)}$setViewValue(t,e){this.$viewValue=t,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(e)}$$debounceViewValueCommit(t){let e=this.$options.getOption("debounce");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!==Se.NONE?this.$commitViewValue():this.$$scope.$apply((()=>{n.$commitViewValue()}))}$overrideModelOptions(t){this.$options=this.$options.createChild(t),this.$$setUpdateOnEvents()}$processModelValue(){const t=this.$$format();this.$viewValue!==t&&(this.$$updateEmptyClasses(t),this.$viewValue=this.$$lastCommittedViewValue=t,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,(()=>{})))}$$format(){const t=this.$formatters;let e=t.length,n=this.$modelValue;for(;e--;)n=t[e](n);return n}$$setModelValue(t){this.$modelValue=this.$$rawModelValue=t,this.$$parserValid=void 0,this.$processModelValue()}$$setUpdateOnEvents(){this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler),this.$$updateEvents=this.$options.getOption("updateOn"),this.$$updateEvents&&this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)}$$updateEventHandler(t){this.$$debounceViewValueCommit(t&&t.type)}}function Tn(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:_n,priority:1,compile:r=>(r[0].classList.add(n,i,t),{pre:(t,e,n,r)=>{const i=r[0],s=r[1]||i.$$parentForm,o=r[2];o&&(i.$options=o.$options),i.$$initGetterSetters(),s.$addControl(i),n.$observe("name",(t=>{i.$name!==t&&i.$$parentForm.$$renameControl(i,t)})),t.$on("$destroy",(()=>{i.$$parentForm.$removeControl(i)}))},post:(t,n,r,i)=>{const s=i[0];function o(){s.$setTouched()}s.$$setUpdateOnEvents(),n.on("blur",(()=>{s.$touched||(e.$$phase!==Se.NONE?t.$evalAsync(o):t.$apply(o))}))}})}}Tn.$inject=["$rootScope"];const 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)$/,Vn=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Nn=/^(?=.{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])?)*$/,Rn=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Pn=/^(\d{4,})-(\d{2})-(\d{2})$/,Dn=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Mn=/^(\d{4,})-W(\d\d)$/,Ln=/^(\d{4,})-(\d\d)$/,In=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Un="validity",qn="keydown wheel mousedown",Hn=new Map;"date,datetime-local,month,time,week".split(",").forEach((t=>{Hn.set(t,!0)}));const Fn={text:function(t,e,n,r,i){zn(t,e,n,r,i),Bn(r)},date:Kn("date",Pn,Wn(Pn,["yyyy","MM","dd"])),"datetime-local":Kn("datetimelocal",Dn,Wn(Dn,["yyyy","MM","dd","HH","mm","ss","sss"])),time:Kn("time",In,Wn(In,["HH","mm","ss","sss"])),week:Kn("week",Mn,(function(t,e){if(w(t))return t;if(y(t)){Mn.lastIndex=0;const n=Mn.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:Kn("month",Ln,Wn(Ln,["yyyy","MM"])),number:function(t,e,n,r,i,s,o){let a;if(Yn(t,e,n,r,"number"),Qn(r),zn(t,e,n,r,i),g(n.min)||n.ngMin){let e=n.min||o(n.ngMin)(t);a=Zn(e),r.$validators.min=function(t,e){return r.$isEmpty(e)||m(a)||e>=a},n.$observe("min",(t=>{t!==e&&(a=Zn(t),e=t,r.$validate())}))}if(g(n.max)||n.ngMax){let e=n.max||o(n.ngMax)(t),i=Zn(e);r.$validators.max=function(t,e){return r.$isEmpty(e)||m(i)||e<=i},n.$observe("max",(t=>{t!==e&&(i=Zn(t),e=t,r.$validate())}))}if(g(n.step)||n.ngStep){let e=n.step||o(n.ngStep)(t),i=Zn(e);r.$validators.step=function(t,e){return r.$isEmpty(e)||m(i)||tr(e,a||0,i)},n.$observe("step",(t=>{t!==e&&(i=Zn(t),e=t,r.$validate())}))}},url:function(t,e,n,r,i){zn(t,e,n,r,i),Bn(r),r.$validators.url=function(t,e){const n=t||e;return r.$isEmpty(n)||Vn.test(n)}},email:function(t,e,n,r,i){zn(t,e,n,r,i),Bn(r),r.$validators.email=function(t,e){const n=t||e;return r.$isEmpty(n)||Nn.test(n)}},radio:function(t,e,n,r){const i=!n.ngTrim||"false"!==_(n.ngTrim);m(n.name)&&e.attr("name",p());e.on("change",(function(t){let s;e[0].checked&&(s=n.value,i&&(s=_(s)),r.$setViewValue(s,t&&t.type))})),r.$render=function(){let{value:t}=n;i&&(t=_(t)),e[0].checked=t===r.$viewValue},n.$observe("value",r.$render)},range:function(t,e,n,r,i){Yn(t,e,n,r,"range"),Qn(r),zn(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=g(n.min),h=g(n.max),d=g(n.step),p=r.$render;r.$render=s&&g(l.rangeUnderflow)&&g(l.rangeOverflow)?function(){p(),r.$setViewValue(e.val())}:p,u&&(o=Zn(n.min),r.$validators.min=s?function(){return!0}:function(t,e){return r.$isEmpty(e)||m(o)||e>=o},f("min",(function(t){if(o=Zn(t),N(r.$modelValue))return;if(s){let t=e.val();o>t&&(t=o,e.val(t)),r.$setViewValue(t)}else r.$validate()})));h&&(a=Zn(n.max),r.$validators.max=s?function(){return!0}:function(t,e){return r.$isEmpty(e)||m(a)||e<=a},f("max",(function(t){if(a=Zn(t),N(r.$modelValue))return;if(s){let t=e.val();a<t&&(e.val(a),t=a<o?o:a),r.$setViewValue(t)}else r.$validate()})));d&&(c=Zn(n.step),r.$validators.step=s?function(){return!l.stepMismatch}:function(t,e){return r.$isEmpty(e)||m(c)||tr(e,o||0,c)},f("step",(function(t){if(c=Zn(t),N(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=er(o,t,"ngTrueValue",n.ngTrueValue,!0),c=er(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=>H(t,a))),r.$parsers.push((t=>t?a:c))},hidden:()=>{},button:()=>{},submit:()=>{},reset:()=>{},file:()=>{}};function Bn(t){t.$formatters.push((e=>t.$isEmpty(e)?e:e.toString()))}function zn(t,e,n,r,i){const s=e[0].type.toLowerCase();let o,a=!1;e.on("compositionstart",(()=>{a=!0})),e.on("compositionend",(()=>{a=!1,c()}));let c=function(t){if(o&&(i.cancel(o),o=null),a)return;let c=e.val();const l=t&&t.type;"password"===s||n.ngTrim&&"false"===n.ngTrim||(c=_(c)),(r.$viewValue!==c||""===c&&r.$$hasNativeValidators)&&r.$setViewValue(c,l)};["input","change","paste","drop","cut"].forEach((t=>{e.on(t,c)})),Hn[s]&&r.$$hasNativeValidators&&s===n.type&&e.on(qn,(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 Wn(t,e){return function(n,r){let i,s;if(w(n))return n;if(y(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},Object.entries(i).forEach((([t,n])=>{t<e.length&&(s[e[t]]=+n)}));const t=new Date(s.yyyy,s.MM-1,s.dd,s.HH,s.mm,s.ss||0,1e3*s.sss||0);return s.yyyy<100&&t.setFullYear(s.yyyy),t}}return NaN}}const Gn=/\b\d{4}-(0[1-9]|1[0-2])\b/;function Kn(t,e,n){return function(r,i,s,o,a,c,l){if(Yn(r,i,s,o,t),zn(0,i,s,o,a),o.$parsers.push((n=>o.$isEmpty(n)?null:e.test(n)?["month","week","datetimelocal","time","date"].includes(t)?n:d(n,undefined):void(o.$$parserName=t))),o.$formatters.push((function(e){if(e&&!y(e))throw kn("datefmt","Expected `{0}` to be a String",e);if("month"===t){if(null==e)return"";if(!Gn.test(e))throw kn("datefmt","Expected month `{0}` to be a 'YYYY-DD'",e)}if("week"===t){if(null==e)return"";if(!Mn.test(e))throw kn("datefmt","Expected week `{0}` to be a 'yyyy-Www'",e)}if("datetimelocal"===t){if(null==e)return"";if(!Dn.test(e))throw kn("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})),g(s.min)||s.ngMin){let e=s.min||l(s.ngMin)(r),i=h(e);o.$validators.min=function(e){return"month"===t?m(i)||n(e)>=n(i):!u(e)||m(i)||n(e)>=i},s.$observe("min",(t=>{t!==e&&(i=h(t),e=t,o.$validate())}))}if(g(s.max)||s.ngMax){let e=s.max||l(s.ngMax)(r),i=h(e);o.$validators.max=function(e){return"month"===t?m(i)||n(e)<=n(i):!u(e)||m(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 g(t)&&!w(t)?d(t)||void 0:t}function d(t,e){const r=o.$options.getOption("timezone");let i=n(t,e);return!Number.isNaN(i)&&r&&(i=Q(i,r)),i}}}function Yn(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 Qn(t){t.$parsers.push((e=>t.$isEmpty(e)?null:Rn.test(e)?parseFloat(e):void(t.$$parserName="number"))),t.$formatters.push((e=>{if(!t.$isEmpty(e)){if(!b(e))throw kn("numfmt","Expected `{0}` to be a number",e);e=e.toString()}return e}))}function Zn(t){return g(t)&&!b(t)&&(t=parseFloat(t)),N(t)?void 0:t}function Jn(t){return(0|t)===t}function Xn(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 tr(t,e,n){let r=Number(t);const i=!Jn(r),s=!Jn(e),o=!Jn(n);if(i||s||o){const t=i?Xn(r):0,a=s?Xn(e):0,c=o?Xn(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 er(t,e,n,r,i){let s;if(g(r)){if(s=t(r),!s.constant)throw kn("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return s(e)}return i}function nr(t,e,n){return{restrict:"E",require:["?ngModel"],link:{pre(r,i,s,o){o[0]&&(Fn[f(s.type)]||Fn.text)(r,i,s,o[0],t,e,n)}}}}function rr(){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"===f(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)}}}}}nr.$inject=["$browser","$filter","$parse"];const ir=/^(true|false|\d+)$/;function sr(){function t(t,e,n){const r=g(n)?n:null;t[0].value=r,e.$set("value",n)}return{restrict:"A",priority:100,compile:(e,n)=>ir.test(n.ngValue)?function(e,n,r){t(n,r,e.$eval(r.ngValue))}:function(e,n,r){e.$watch(r.ngValue,(e=>{t(n,r,e)}))}}}function or(t){return{restrict:"E",terminal:!0,compile(e,n){"text/ng-template"===n.type&&t.set(n.id,e[0].text)}}}function ar(t,e){t[0].selected=e,t.attr("selected",e)}function cr(t,e){const n=this,r=new Map;n.selectValueMap={},n.ngModelCtrl={},n.multiple=!1,n.unknownOption=xt(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),ar(n.unknownOption,!0),t.val(r)},n.updateUnknownOption=function(e){const r=n.generateUnknownOptionValue(e);n.unknownOption.val(r),ar(n.unknownOption,!0),t.val(r)},n.generateUnknownOptionValue=function(t){return`? ${ut(t)} ?`},n.removeUnknownOption=function(){n.unknownOption.parent()&&n.unknownOption.remove()},n.selectEmptyOption=function(){n.emptyOption&&(t.val(""),ar(n.emptyOption,!0))},n.unselectEmptyOption=function(){n.hasEmptyOption&&ar(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&&ar(xt(r),!1),n.hasOption(e)){n.removeUnknownOption();const r=ut(e);t.val(r in n.selectValueMap?r:e);ar(xt(t[0].options[t[0].selectedIndex]),!0)}else n.selectUnknownOrEmptyOption(e)},n.addOption=function(t,e){if(e[0].nodeType===Node.COMMENT_NODE)return;F(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;g(l)&&(n.removeOption(c),delete n.selectValueMap[l],r=!0),l=ut(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;g(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 lr(){return{restrict:"E",require:["select","?ngModel"],controller:cr,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&&(I(t,e.value)||I(t,i.selectValueMap[e.value]));n!==e.selected&&ar(xt(e),n)}))};let r=NaN;t.$watch((()=>{r!==s.$viewValue||H(n,s.$viewValue)||(n=nt(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 ur(t){return{restrict:"E",priority:100,compile(e,n){let r,i;return g(n.ngValue)||(g(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 hr(){return{restrict:"EA",link:(t,e,n)=>{t.$watch(n.ngBind,(t=>{e[0].textContent=B(t)}))}}}function dr(){return{restrict:"EA",link:(t,e,n)=>{n.$observe("ngBindTemplate",(t=>{e[0].textContent=m(t)?"":t}))}}}or.$inject=["$templateCache"],cr.$inject=["$element","$scope"],ur.$inject=["$interpolate"];const pr=["$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 fr(t,e){let n;return t=`ngClass${t}`,["$parse",o=>({restrict:"EA",link(a,c,l){let u,h=c.data("$classCounts"),d=!0;function p(t,e){const n=[];return t&&t.forEach((t=>{(e>0||h[t])&&(h[t]=(h[t]||0)+e,h[t]===+(e>0)&&n.push(t))})),n.join(" ")}h||(h=Object.create(null),c.data("$classCounts",h)),"ngClass"!==t&&(n||(n=o("$index",(function(t){return 1&t}))),a.$watch(n,(function(t){t===e?(n=p(i(n=u),1),pt(c[0])?l.$addClass(n):a.$$postDigest((()=>{""!==n&&c[0].classList.add(...n.trim().split(" "))}))):function(t){t=p(i(t),-1),pt(c[0])?l.$removeClass(t):a.$$postDigest((()=>{""!==t&&c[0].classList.remove(...t.trim().split(" "))}))}(u);var n;d=t}))),a.$watch(o(l[t],s),(function(t){d===e&&function(t,e){const n=i(t),s=i(e),o=r(n,s),u=r(s,n),h=p(o,-1),d=p(u,1);pt(c[0])?(l.$addClass(d),l.$removeClass(h)):a.$$postDigest((()=>{""!==d&&c[0].classList.add(...d.trim().split(" ")),""!==h&&c[0].classList.remove(...h.trim().split(" "))}))}(u,t);u=t}))}})];function r(t,e){if(!t||!t.length)return[];if(!e||!e.length)return t;const n=[];t:for(let r=0;r<t.length;r++){const i=t[r];for(let t=0;t<e.length;t++)if(i===e[t])continue t;n.push(i)}return n}function i(t){return t&&t.split(" ")}function s(t){if(!t)return t;let e=t;return Array.isArray(t)?e=t.map(s).join(" "):v(t)?e=Object.keys(t).filter((e=>t[e])).join(" "):y(t)||(e=`${t}`),e}}const $r=fr("",!0),mr=fr("Odd",0),gr=fr("Even",1);function vr(){return{restrict:"EA",compile(t,e){e.$set("ngCloak",void 0),t[0].classList.remove("ng-cloak")}}}function yr(){return{restrict:"A",scope:!0,controller:"@",priority:500}}const br="ng-hide",wr="ng-hide-animate";function Er(t){return{restrict:"A",link(e,n,r){e.$watch(r.ngShow,(r=>{pt(n[0])?t[r?"removeClass":"addClass"](n,br,{tempClasses:wr}):e.$$postDigest((()=>{r?n.elements().forEach((t=>t.classList.remove(br))):n.elements().forEach((t=>t.classList.add(br)))}))}))}}}function Cr(t){return{restrict:"A",link(e,n,r){e.$watch(r.ngHide,(r=>{pt(n[0])?t[r?"addClass":"removeClass"](n,br,{tempClasses:wr}):e.$$postDigest((()=>{r?n.elements().forEach((t=>t.classList.add(br))):n.elements().forEach((t=>t.classList.remove(br)))}))}))}}}Er.$inject=["$animate"],Cr.$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",xr="-remove",Ar="ng-",kr="-active",_r="-prepare",Tr="ng-animate",jr="$$ngAnimateChildren";let Vr,Nr,Rr,Pr;void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend?(Vr="WebkitTransition",Nr="webkitTransitionEnd transitionend"):(Vr="transition",Nr="transitionend"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend?(Rr="WebkitAnimation",Pr="webkitAnimationEnd animationend"):(Rr="animation",Pr="animationend");const Dr="Duration",Mr=Or.Property,Lr="Delay",Ir="TimingFunction",Ur="PlayState",qr=9999,Hr=Rr+Lr,Fr=Rr+Dr,Br=Vr+Lr,zr=Vr+Dr,Wr=ct("ng");function Gr(t,e,n){if(!t)throw Wr("areq","Argument '{0}' is {1}",e||"?",n);return t}function Kr(t,e,n){let r="";return(t=Array.isArray(t)?t:t&&y(t)&&t.length?t.split(/\s+/):[]).forEach(((t,i)=>{t&&t.length>0&&(r+=i>0?" ":"",r+=n?e+t:t+e)})),r}function Yr(t){if(t instanceof xt)switch(t.length){case 0:return t;case 1:if(t[0].nodeType===Node.ELEMENT_NODE)return t;break;default:return xt(Qr(t))}if(t.nodeType===Node.ELEMENT_NODE)return xt(t)}function Qr(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 Zr(t){if(!(t=t||{}).$$prepared){let e=t.domOperation||(()=>{});t.domOperation=function(){t.$$domOperationFired=!0,e(),e=()=>{}},t.$$prepared=!0}return t}function Jr(t,e){Xr(t,e),ti(t,e)}function Xr(t,e){e.from&&(e.from=null)}function ti(t,e){e.to&&(e.to=null)}function ei(t,e,n){const r=e.options||{},i=n.options||{},s=`${r.addClass||""} ${i.addClass||""}`,o=`${r.removeClass||""} ${i.removeClass||""}`,a=function(t,e,n){const r=1,i=-1,s={};t=a(t),e=a(e),Object.keys(e).forEach((t=>{s[t]=r})),n=a(n),Object.keys(n).forEach((t=>{s[t]=s[t]===r?null:i}));const o={addClass:"",removeClass:""};function a(t){y(t)&&(t=t.trim().split(" "));const e={};return t&&t.forEach((t=>{t.length&&(e[t]=!0)})),e}return Object.entries(s).forEach((([e,n])=>{var s,a;n===r?(s="addClass",a=!t[e]||t[e+xr]):n===i&&(s="removeClass",a=t[e]||t[e+Sr]),a&&(o[s].length&&(o[s]+=" "),o[s]+=e)})),o}(t.attr("class"),s,o);i.preparationClasses&&(r.preparationClasses=si(i.preparationClasses,r.preparationClasses),delete i.preparationClasses);const c=r.domOperation!==(()=>{})?r.domOperation:null;return j(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 ni(t){return t instanceof xt?t[0]:t}function ri(t,e){const n=e?"paused":"",r=Rr+Ur;return ii(t,[r,n]),[r,n]}function ii(t,e){const n=e[0],r=e[1];t.style[n]=r}function si(t,e){return t?e?`${t} ${e}`:t:e}const oi=ct("$animate");function ai(t,e){return t||e?t?e?(Array.isArray(t)&&(t=t.join(" ")),Array.isArray(e)&&(e=e.join(" ")),`${t} ${e}`):t:e:""}function ci(t){return v(t)?t:{}}function li(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 ui(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 oi("notcsel","Expecting class selector starting with '.' got '{0}'.",n);const i=`${n}-animation`;e.$$registeredAnimations[n.substring(1)]=i,t.factory(i,r)},this.customFilter=function(t){return 1===arguments.length&&(r=C(t)?t:null),r},this.classNameFilter=function(t){if(1===arguments.length&&(n=t instanceof RegExp?t:null,n)){if(new RegExp(`[(\\s|\\/)]${Tr}[(\\s|\\/)]`).test(n.toString()))throw n=null,oi("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',Tr)}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&&xt(n),r=r&&xt(r),li(e,n=n||r.parent(),r),t.push(e,"enter",ci(i))),move:(e,n,r,i)=>(n=n&&xt(n),r=r&&xt(r),li(e,n=n||r.parent(),r),t.push(e,"move",ci(i))),leave:(e,n)=>t.push(e,"leave",ci(n),(()=>{e.remove()})),addClass:(e,n,r)=>((r=ci(r)).addClass=ai(r.addClass,n),t.push(e,"addClass",r)),removeClass:(e,n,r)=>((r=ci(r)).removeClass=ai(r.removeClass,n),t.push(e,"removeClass",r)),setClass:(e,n,r,i)=>((i=ci(i)).addClass=ai(i.addClass,n),i.removeClass=ai(i.removeClass,r),t.push(e,"setClass",i)),animate:(e,n,r,i,s)=>((s=ci(s)).from=s.from?j(s.from,n):n,s.to=s.to?j(s.to,r):r,i=i||"ng-inline-animate",s.tempClasses=ai(s.tempClasses,i),t.push(e,"animate",s))}}]}function hi(t){return{transclude:"element",priority:600,terminal:!0,restrict:"A",link(e,n,r,i,s){let o,a,c;e.$watch(r.ngIf,(e=>{e?a||s(((e,r)=>{a=r,e[e.length++]=document.createComment(""),o={clone:e},pt(e[0])?t.enter(e,n.parent(),n):li(e,n.parent(),n)})):(c&&(c.remove(),c=null),a&&(a.$destroy(),a=null),o&&(c=zt(o.clone),pt(c[0])?t.leave(c).done((t=>{!1!==t&&(c=null)})):c.remove(),o=null))}))}}}ui.$inject=["$provide"],hi.$inject=["$animate"];const di=["$templateRequest","$anchorScroll","$animate",(t,e,n)=>({restrict:"EA",priority:400,terminal:!0,transclude:"element",controller:()=>{},compile(r,i){const s=i.ngInclude||i.src,o=i.onload||"",a=i.autoscroll;return(r,i,c,l,u)=>{function h(){!g(a)||a&&!r.$eval(a)||e()}let d,p,f,$=0;const m=()=>{p&&(p.remove(),p=null),d&&(d.$destroy(),d=null),f&&(pt(f[0])?n.leave(f).done((t=>{!1!==t&&(p=null)})):f.remove(),p=f,f=null)};r.$watch(s,(e=>{const s=function(t){!1!==t&&h()},a=++$;e?(t(e,!0).then((t=>{if(r.$$destroyed)return;if(a!==$)return;const c=r.$new();l.template=t;const p=u(c,(t=>{m(),pt(t[0])?n.enter(t,null,i).done(s):(li(t,null,i),h())}));d=c,f=p,d.$emit("$includeContentLoaded",e),r.$eval(o)}),(()=>{r.$$destroyed||a===$&&(m(),r.$emit("$includeContentError",e))})),r.$emit("$includeContentRequested",e)):(m(),l.template=null)}))}}})],pi=["$compile",t=>({restrict:"EA",priority:-400,require:"ngInclude",link(e,n,r,i){if(toString.call(n[0]).match(/SVG/))return n.empty(),void t(Rt(i.template).childNodes)(e,(t=>{n.append(t)}),{futureParentElement:n});n.html(i.template),t(n[0].childNodes)(e)}})];function fi(){return{priority:450,compile:()=>({pre(t,e,n){t.$eval(n.ngInit)}})}}function $i(){return{restrict:"EA",terminal:!0,priority:1e3}}const mi=ct("ngRef"),gi=["$parse",t=>({priority:-1,restrict:"A",compile(e,n){const r=dt(L(e)),i=t(n.ngRef),s=i.assign||function(){throw mi("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 mi("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',o.ngRefRead,n.ngRef)}else a=e.data(`$${r}Controller`);a=a||e,s(t,a),e.on("$destroy",(()=>{i(t)===a&&s(t,null)}))}}})];function vi(t,e){const n="$$NG_REMOVED",r=ct("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 ut(n)},c=function(t,e){return e};return{restrict:"A",transclude:"element",priority:1e3,terminal:!0,compile:function(l,u){const h=u.ngRepeat;let d=h.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!d)throw r("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",h);const p=d[1],f=d[2],m=d[3],g=d[4];if(d=p.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/),!d)throw r("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",p);const v=d[3]||d[1],y=d[2];if(m&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(m)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(m)))throw r("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",m);let b;if(g){var w={$id:ut};const e=t(g);b=function(t,n,r,i){return y&&(w[y]=n),w[v]=r,w.$index=i,e(t,w)}}return function(t,l,u,d,p){let g=Object.create(null);t.$watchCollection(f,(u=>{var d,f,E,C,O,S,x,A,k,_,T,j,V=l[0],N=Object.create(null);if(m&&(t[m]=u),$(u))k=u,A=b||a;else for(var R in A=b||c,k=[],u)Object.hasOwnProperty.call(u,R)&&"$"!==R.charAt(0)&&k.push(R);for(C=k.length,T=new Array(C),d=0;d<C;d++)if(O=u===k?d:k[d],S=u[O],x=A(t,O,S,d),g[x])_=g[x],delete g[x],N[x]=_,T[d]=_;else{if(N[x])throw Object.values(T).forEach((t=>{t&&t.scope&&(g[t.id]=t)})),r("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",h,x,S);T[d]={id:x,scope:void 0,clone:void 0},N[x]=!0}for(var P in w&&(w[v]=void 0),g){if(j=zt((_=g[P]).clone),e.leave(j),j[0].parentNode)for(d=0,f=j.length;d<f;d++)j[d][n]=!0;_.scope.$destroy()}for(d=0;d<C;d++)if(O=u===k?d:k[d],S=u[O],(_=T[d]).scope){E=V;do{E=E.nextSibling}while(E&&E[n]);s(_)!==E&&e.move(zt(_.clone),null,V),V=o(_),i(_.scope,d,v,S,y,O,C)}else p(((t,n)=>{_.scope=n;const r=document.createComment("");t[t.length++]=r,pt(t[0])?e.enter(t,null,V):li(t,xt(V).parent(),xt(V)),V=r,_.clone=t,N[_.id]=_,i(_.scope,d,v,S,y,O,C)}));g=N}))}}}}function yi(){return{restrict:"EA",link:(t,e,n)=>{t.$watchCollection(n.ngStyle,((t,n)=>{if(n){const t=Object.keys(n);for(let n=0,r=t.length;n<r;n++)e[0].style[t[n]]=""}if(t){const n=Object.entries(t);for(let t=0,r=n.length;t<r;t++){const[r,i]=n[t];e[0].style[r]=i}}}))}}}function bi(t){return{require:"ngSwitch",controller:["$scope",class{constructor(){this.cases={}}}],link(e,n,r,i){const s=r.ngSwitch||r.on;let o=[];const a=[],c=[],l=[],u=function(t,e){return function(n){!1!==n&&t.splice(e,1)}};e.$watch(s,(e=>{let n,r;for(;c.length;)t.cancel(c.pop());for(n=0,r=l.length;n<r;++n){const e=zt(a[n].clone);if(l[n].$destroy(),pt(e[0])){(c[n]=t.leave(e)).done(u(c,n))}else e.remove()}a.length=0,l.length=0,(o=i.cases[`!${e}`]||i.cases["?"])&&Object.values(o).forEach((e=>{e.transclude(((n,r)=>{l.push(r);const i=e.element;n[n.length++]=document.createComment("");const s={clone:n};a.push(s),pt(n[0])?t.enter(n,i.parent(),i):li(n,i.parent(),i)}))}))}))}}}function wi(){return{transclude:"element",priority:1200,restrict:"EA",require:"^ngSwitch",link(t,e,n,r,i){const s=n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter(((t,e,n)=>n[e-1]!==t));s.forEach((t=>{r.cases[`!${t}`]=r.cases[`!${t}`]||[],r.cases[`!${t}`].push({transclude:i,element:e})}))}}}function Ei(){return{restrict:"EA",transclude:"element",priority:1200,require:"^ngSwitch",link(t,e,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:e})}}}vi.$inject=["$parse","$animate"],bi.$inject=["$animate"];const Ci=ct("ngOptions"),Oi=/^\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]+?))?$/,Si=["$compile","$parse",function(t,e){const n=document.createElement("option"),r=document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(t,e,n,r){r[0].registerOption=()=>{}},post:function(i,s,o,a){const c=a[0],l=a[1],{multiple:u}=o;for(let t=0,e=s.children(),n=e.length;t<n;t++)if(""===e[t].value){c.hasEmptyOption=!0,c.emptyOption=e.eq(t);break}s.empty();const h=!!c.emptyOption;let d;xt(n.cloneNode(!1)).val("?");const p=function(t,n,r){const i=t.match(Oi);if(!i)throw Ci("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",t,Bt(n));const s=i[5]||i[7],o=i[6],a=/ as /.test(i[0])&&i[1],c=i[9],l=e(i[2]?i[1]:s),u=a&&e(a)||l,h=c&&e(c),d=c?function(t,e){return h(r,e)}:function(t){return ut(t)},p=function(t,e){return d(t,b(t,e))},f=e(i[2]||i[1]),m=e(i[3]||""),g=e(i[4]||""),v=e(i[8]),y={};let b=o?function(t,e){return y[o]=e,y[s]=t,y}:function(t){return y[s]=t,y};function w(t,e,n,r,i){this.selectValue=t,this.viewValue=e,this.label=n,this.group=r,this.disabled=i}function E(t){let e;if(!o&&$(t))e=t;else{e=[];for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&"$"!==n.charAt(0)&&e.push(n)}return e}return{trackBy:c,getTrackByValue:p,getWatchables:e(v,(t=>{const e=[],n=E(t=t||[]),s=n.length;for(let o=0;o<s;o++){const s=t===n?o:n[o],a=t[s],c=b(a,s),l=d(a,c);if(e.push(l),i[2]||i[1]){const t=f(r,c);e.push(t)}if(i[4]){const t=g(r,c);e.push(t)}}return e})),getOptions(){const t=[],e={},n=v(r)||[],i=E(n),s=i.length;for(let o=0;o<s;o++){const s=n===i?o:i[o],a=n[s],c=b(a,s),l=u(r,c),h=d(l,c),p=new w(h,l,f(r,c),m(r,c),g(r,c));t.push(p),e[h]=p}return{items:t,selectValueMap:e,getOptionFromViewValue:t=>e[p(t)],getViewValueFromOption:t=>c?structuredClone(t.viewValue):t.viewValue}}}}(o.ngOptions,s,i),f=document.createDocumentFragment();function m(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 v(t){const e=d.getOptionFromViewValue(t),n=e&&e.element;return n&&!n.selected&&(n.selected=!0),e}c.generateUnknownOptionValue=()=>"?",u?(c.writeValue=function(t){if(!d)return;const e=t&&t.map(v)||[];d.items.forEach((t=>{t.element.selected&&!I(e,t)&&(t.element.selected=!1)}))},c.readValue=function(){const t=s.val()||[],e=[];return t.forEach((t=>{const n=d.selectValueMap[t];n&&!n.disabled&&e.push(d.getViewValueFromOption(n))})),e},p.trackBy&&i.$watchCollection((()=>{if(Array.isArray(l.$viewValue))return l.$viewValue.map((t=>p.getTrackByValue(t)))}),(()=>{l.$render()}))):(c.writeValue=function(t){if(!d)return;const e=s[0].options[s[0].selectedIndex],n=d.getOptionFromViewValue(t);e&&e.removeAttribute("selected"),n?(s[0].value!==n.selectValue&&(c.removeUnknownOption(),s[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):c.selectUnknownOrEmptyOption(t)},c.readValue=function(){const t=d.selectValueMap[s.val()];return t&&!t.disabled?(c.unselectEmptyOption(),c.removeUnknownOption(),d.getViewValueFromOption(t)):null},p.trackBy&&i.$watch((()=>p.getTrackByValue(l.$viewValue)),(()=>{l.$render()}))),h&&(t(c.emptyOption)(i),s.prepend(c.emptyOption),c.emptyOption[0].nodeType===Node.COMMENT_NODE&&(c.hasEmptyOption=!1,c.registerOption=function(t,e){""===e.val()&&(c.hasEmptyOption=!0,c.emptyOption=e,l.$render(),e.on("$destroy",(()=>{const t=c.$isEmptyOptionSelected();c.hasEmptyOption=!1,c.emptyOption=void 0,t&&l.$render()})))})),i.$watchCollection(p.getWatchables,(function(){const t=d&&c.readValue();if(d)for(let t=d.items.length-1;t>=0;t--){const e=d.items[t];g(e.group)?Ut(e.element.parentNode):Ut(e.element)}d=p.getOptions();const e={};if(d.items.forEach((t=>{let n;g(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),m(t,n)):m(t,f)})),s[0].appendChild(f),l.$render(),!l.$isEmpty(t)){const e=c.readValue();(p.trackBy||u?H(t,e):t===e)||(l.$setViewValue(e),l.$render())}}))}}}}],xi=ct("ngTransclude"),Ai=["$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 xi("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",Bt(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 ki(){return{restrict:"A",require:"ngModel",link(t,e,n,r){r.$viewChangeListeners.push((()=>t.$eval(n.ngChange)))}}}const _i=/^\/(.+)\/([a-z]*)$/,Ti={};Object.entries(Ot).forEach((([t,e])=>{if("multiple"===e)return;function n(e,n,i){e.$watch(i[r],(e=>{i.$set(t,!!e)}))}let r=dt(`ng-${t}`),i=n;"checked"===e&&(i=function(t,e,i){i.ngModel!==i[r]&&n(t,0,i)}),Ti[r]=function(){return{restrict:"A",priority:100,link:i}}})),Object.entries(u).forEach((([t])=>{Ti[t]=function(){return{priority:100,link(e,n,r){if("ngPattern"===t&&"/"===r.ngPattern.charAt(0)){const t=r.ngPattern.match(_i);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=dt(`ng-${t}`);Ti[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 ji=["$parse",t=>({restrict:"A",require:"?ngModel",link:(e,n,r,i)=>{if(!i)return;let s=Object.prototype.hasOwnProperty.call(r,"required")||t(r.ngRequired)(e);r.ngRequired||(r.required=!0),i.$validators.required=(t,e)=>!s||!i.$isEmpty(e),r.$observe("required",(t=>{s!==t&&(s=t,i.$validate())}))}})],Vi=["$parse",t=>({restrict:"A",require:"?ngModel",compile:(e,n)=>{var r,i;return n.ngPattern&&(r=n.ngPattern,i="/"===n.ngPattern.charAt(0)&&_i.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=Pi(o,r,e);n.$observe("pattern",(function(t){var n=a;a=Pi(t,r,e),(n&&n.toString())!==(a&&a.toString())&&s.$validate()})),s.$validators.pattern=function(t,e){return s.$isEmpty(e)||m(a)||a.test(e)}}}}})],Ni=["$parse",t=>({restrict:"A",require:"?ngModel",link:(e,n,r,i)=>{if(!i)return;let s=r.maxlength||t(r.ngMaxlength)(e),o=Di(s);r.$observe("maxlength",(t=>{s!==t&&(o=Di(t),s=t,i.$validate())})),i.$validators.maxlength=function(t,e){return o<0||i.$isEmpty(e)||e.length<=o}}})],Ri=["$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=Di(s)||-1;r.$observe("minlength",(t=>{s!==t&&(o=Di(t)||-1,s=t,i.$validate())})),i.$validators.minlength=function(t,e){return i.$isEmpty(e)||e.length>=o}}}}];function Pi(t,e,n){if(t){if(y(t)&&(t=new RegExp(`^${t}$`)),!t.test)throw ct("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",e,t,Bt(n));return t}}function Di(t){const e=V(t);return N(e)?-1:e}class Mi{constructor(){this.autoScrollingEnabled=!0}disableAutoScrolling(){this.autoScrollingEnabled=!1}$get=["$location","$rootScope",function(t,e){function n(t){if(t){t.scrollIntoView();const e=function(){let t=r.yOffset;if(C(t))t=t();else if(M(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 r=function(e){let r;(e=y(e)?e:b(e)?e.toString():t.hash())?(r=document.getElementById(e))||(r=function(t){let e=null;return Array.prototype.some.call(t,(t=>{if("a"===L(t))return e=t,!0})),e}(document.getElementsByName(e)))?n(r):"top"===e&&n(null):n(null)};return this.autoScrollingEnabled&&e.$watch((()=>t.hash()),((t,n)=>{if(t===n&&""===t)return;const i=()=>e.$evalAsync(r);"complete"===document.readyState?window.setTimeout((()=>i())):window.addEventListener("load",(()=>i()))})),r}]}function Li(t){return t.replace(/#$/,"")}class Ii{constructor(t){this.taskTracker=t,this.pendingDeferIds={},this.urlChangeListeners=[],this.urlChangeInit=!1,this.cachedState=null,this.lastHistoryState=null,this.lastBrowserUrl=window.location.href,this.baseElement=xt(Array.from(document.getElementsByTagName("base"))),this.$$completeOutstandingRequest=this.taskTracker.completeTask.bind(t),this.$$incOutstandingRequestCount=this.taskTracker.incTaskCount.bind(t),this.notifyWhenNoOutstandingRequests=this.taskTracker.notifyWhenNoPendingTasks.bind(t),this.cacheState()}url(t,e){return void 0===e&&(e=null),t?(t=Fe(t).href,this.lastBrowserUrl===t&&this.lastHistoryState===e||(this.lastBrowserUrl=t,this.lastHistoryState=e,history.pushState(e,"",t),this.cacheState()),this):Li(window.location.href)}state(){return this.cachedState}cacheStateAndFireUrlChange(){this.fireStateOrUrlChange()}cacheState(){const t=history.state??null;H(t,this.lastCachedState)||(this.cachedState=t,this.lastCachedState=t,this.lastHistoryState=t)}fireStateOrUrlChange(){const t=this.lastHistoryState;this.cacheState(),this.lastBrowserUrl===this.url()&&t===this.cachedState||(this.lastBrowserUrl=this.url(),this.lastHistoryState=this.cachedState,this.urlChangeListeners.forEach((t=>{t(Li(window.location.href),this.cachedState)})))}onUrlChange(t){return this.urlChangeInit||(window.addEventListener("popstate",this.cacheStateAndFireUrlChange.bind(this)),window.addEventListener("hashchange",this.cacheStateAndFireUrlChange.bind(this)),this.urlChangeInit=!0),this.urlChangeListeners.push(t),t}$$applicationDestroyed(){window.removeEventListener("popstate",this.cacheStateAndFireUrlChange.bind(this)),window.removeEventListener("hashchange",this.cacheStateAndFireUrlChange.bind(this))}$$checkUrlChange(){this.fireStateOrUrlChange()}baseHref(){const t=this.baseElement.attr("href");return t?t.replace(/^(https?:)?\/\/[^/]*/,""):""}defer(t,e=0,n=this.taskTracker.DEFAULT_TASK_TYPE){let r;return this.taskTracker.incTaskCount(n),r=window.setTimeout((()=>{delete this.pendingDeferIds[r],this.taskTracker.completeTask(t,n)}),e),this.pendingDeferIds[r]=n,r}cancel(t){if(Object.prototype.hasOwnProperty.call(this.pendingDeferIds,t)){const e=this.pendingDeferIds[t];return delete this.pendingDeferIds[t],window.clearTimeout(t),this.taskTracker.completeTask((()=>{}),e),!0}return!1}}class Ui{$get=["$$taskTrackerFactory",t=>new Ii(t)]}function qi(){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 Hi,Fi,Bi,zi;function Wi(){this.$get=["$q","$$animateAsyncRun","$timeout",function(t,e,n){return Hi=t,Fi=e,Bi=n,Gi}]}class Gi{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=Fi();this._doneCallbacks=[],this._tick=t=>{document.hidden?(t=>{Bi(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=Hi(((e,n)=>{t.done((t=>{!1===t?n():e()}))}))}return this.promise}then(t,e){return this.getPromise().then(t,e)}catch(t){return this.getPromise().catch(t)}finally(t){return this.getPromise().finally(t)}pause(){this.host.pause&&this.host.pause()}resume(){this.host.resume&&this.host.resume()}end(){this.host.end&&this.host.end(),this._resolve(!0)}cancel(){this.host.cancel&&this.host.cancel(),this._resolve(!1)}complete(t){0===this._state&&(this._state=1,this._tick((()=>{this._resolve(t)})))}_resolve(t){2!==this._state&&(this._doneCallbacks.forEach((e=>{e(t)})),this._doneCallbacks.length=0,this._state=2)}}class Ki{$get=()=>new Map}const Yi=(t,e)=>{zi.error(t,e)};function Qi(){this.$get=["$log",function(t){return zi=t,Yi}]}function Zi(){return function(t,e,n,r){if(!$(t)){if(null==t)return t;throw ct("filter")("notarray","Expected array but received: {0}",t)}let i;r=r||"$";let s=!1;switch(Xi(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=H:C(e)||(e=function(t,e){return!m(t)&&(null===t||null===e?t===e:!(v(e)||v(t)&&!D(t))&&(t=`${t}`.toLowerCase(),e=`${e}`.toLowerCase(),-1!==t.indexOf(e)))});return s=function(s){return i&&!v(s)?Ji(s,t[n],e,n,!1):Ji(s,t,e,n,r)},s}(e,n,r,s);break;default:return t}return Array.prototype.filter.call(t,i)}}function Ji(t,e,n,r,i,s){const o=Xi(t),a=Xi(e);if("string"===a&&"!"===e.charAt(0))return!Ji(t,e.substring(1),n,r,i);if(Array.isArray(t))return t.some((t=>Ji(t,e,n,r,i)));switch(o){case"object":if(i){for(let i in t)if(i.charAt&&"$"!==i.charAt(0)&&Ji(t[i],e,n,r,!0))return!0;return!s&&Ji(t,e,n,r,!1)}if("object"===a){for(let i in e){const s=e[i];if(C(s)||m(s))continue;const o=i===r;if(!Ji(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 Xi(t){return null===t?"null":typeof t}function ts(){return function(t,e){return m(e)&&(e=2),Y(t,e)}}function es(){return function(t,e,n){return N(e=Math.abs(Number(e))===1/0?Number(e):V(e))?t:(b(t)&&(t=t.toString()),$(t)?(n=(n=!n||isNaN(n)?0:V(n))<0?Math.max(0,t.length+n):n,e>=0?ns(t,n,n+e):0===n?ns(t,e,t.length):ns(t,Math.max(0,n+e),n)):t)}}function ns(t,e,n){return y(t)?t.slice(e,n):[].slice.call(t,e,n)}function rs(t){return function(r,i,s,o){if(null==r)return r;if(!$(r))throw ct("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(C(e))r=e;else if(y(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=C(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(C(t.valueOf)&&e(t=t.valueOf()))return t;if(D(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 is(t){const e=function(e,n,r){return t.is(e,n,r)};return e.$stateful=!0,e}function ss(t){const e=function(e,n,r){return t.includes(e,n,r)};return e.$stateful=!0,e}function os(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",Zi),n("json",ts),n("limitTo",es),n("orderBy",rs),n("isState",is),n("includedByState",ss)}rs.$inject=["$parse"],is.$inject=["$state"],ss.$inject=["$state"],os.$inject=["$provide"];class as{constructor(){this.errorOn=!0}$get=["$rootScope","$exceptionHandler",function(t,e){return function(t,e,n){const r=ct("$q");let i=0;const s=[];class o{constructor(){this.promise=new a,this.resolve=t=>h(this.promise,t),this.reject=t=>p(this.promise,t)}}class a{constructor(){this.$$state={status:0,pending:void 0,processScheduled:!1,pur:!1}}then(t,e){if(m(t)&&m(e))return this;const n=new a;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push({result:n,onFulfilled:t,onRejected:e}),this.$$state.status>0&&u(this.$$state),n}catch(t){return this.then(null,t)}finally(t){return this.then((e=>g(e,y,t)),(e=>g(e,$,t)))}}function c(e){e.processScheduled=!1;try{for(let t=0,n=e.pending.length;t<n;++t){e.pur=!0;const n=e.pending[t].result;let r;r=1===e.status?e.pending[t].onFulfilled:e.pending[t].onRejected;try{C(r)?h(n,r(e.value)):1===e.status?h(n,e.value):p(n,e.value)}catch(t){p(n,t)}}}finally{--i,n&&0===i&&t(l),e.pending=void 0}}function l(){for(;!i&&s.length;){const t=s.shift();if(!cs(t)){t.pur=!0;const n=`Possibly unhandled rejection: ${lt(t.value)}`;E(t.value)?e(t.value,n):e(n)}}}function u(e){!n||e.pending||2!==e.status||cs(e)||(0===i&&0===s.length&&t(l),s.push(e)),!e.processScheduled&&e.pending&&(e.processScheduled=!0,++i,t((()=>{c(e)})))}function h(t,e){t.$$state.status||(e===t?f(t,r("qcycle","Expected promise to be resolved with value other than itself '{0}'",e)):d(t,e))}function d(t,e){let n,r=!1;try{(v(e)||C(e))&&(n=e.then),C(n)?(t.$$state.status=-1,n.call(e,i,s)):(t.$$state.value=e,t.$$state.status=1,u(t.$$state))}catch(t){s(t)}function i(e){r||(r=!0,d(t,e))}function s(e){r||(r=!0,f(t,e))}}function p(t,e){t.$$state.status||f(t,e)}function f(t,e){t.$$state.value=e,t.$$state.status=2,u(t.$$state)}function $(t){const e=new a;return p(e,t),e}function g(t,e,n){let r=null;try{C(n)&&(r=n())}catch(t){return $(t)}return k(r)?r.then((()=>e(t)),$):e(t)}function y(t,e,n){const r=new a;return h(r,t),r.then(e,n)}function b(t){const e=new a;let n=0;const r=Array.isArray(t)?[]:{};return Object.entries(t).forEach((([t,i])=>{n++,y(i).then((i=>{r[t]=i,--n||h(e,r)}),(t=>{p(e,t)}))})),0===n&&h(e,r),e}function w(t){const e=new o;return t.forEach((t=>{y(t).then(e.resolve,e.reject)})),e.promise}function O(t){if(!C(t))throw r("norslvr","Expected resolverFn, got '{0}'",t);const e=new a;return t((t=>h(e,t)),(t=>p(e,t))),e}return O.defer=()=>new o,O.reject=$,O.resolve=y,O.all=b,O.race=w,O}((e=>{t.$evalAsync(e)}),e,this.errorOn)}];errorOnUnhandledRejections(t){return g(t)?(this.errorOn=t,this):this.errorOn}}function cs(t){return!!t.pur}function ls(t){t.$$state&&(t.$$state.pur=!0)}const us=ct("$interval"),hs=new Map;function ds(){this.$get=["$$intervalFactory",function(t){function e(t){window.clearInterval(t),hs.delete(t)}const n=t((function(t,e,n){const r=window.setInterval(t,e);return hs.set(r,n),r}),e);return n.cancel=function(t){if(!t)return!1;if(!Object.prototype.hasOwnProperty.call(t,"$$intervalId"))throw us("badprom","`$interval.cancel()` called with a promise that was not generated by `$interval()`.");if(!hs.has(t.$$intervalId))return!1;const n=t.$$intervalId,r=hs.get(n);return ls(r.promise),r.reject("canceled"),e(n),!0},n}]}const ps=1,fs=2;class $s{constructor(t){this.$filter=t}compile(t){let e,n,r=ms(t,this.$filter);(e=function(t){if(1===t.body.length&&gs(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=g(s)?+s:0,e?{value:s}:s}}"unary-"(t,e){return function(n,r,i){let s=t(n,r,i);return s=g(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=(g(o)?o:0)-(g(a)?a:0);return n?{value:c}:c}}"binary*"(t,e,n){return function(r,i,s){const o=t(r,i,s)*e(r,i,s);return n?{value:o}:o}}"binary/"(t,e,n){return function(r,i,s){const o=t(r,i,s)/e(r,i,s);return n?{value:o}:o}}"binary%"(t,e,n){return function(r,i,s){const o=t(r,i,s)%e(r,i,s);return n?{value:o}:o}}"binary==="(t,e,n){return function(r,i,s){const o=t(r,i,s)===e(r,i,s);return n?{value:o}:o}}"binary!=="(t,e,n){return function(r,i,s){const o=t(r,i,s)!==e(r,i,s);return n?{value:o}:o}}"binary=="(t,e,n){return function(r,i,s){const o=t(r,i,s)==e(r,i,s);return n?{value:o}:o}}"binary!="(t,e,n){return function(r,i,s){const o=t(r,i,s)!=e(r,i,s);return n?{value:o}:o}}"binary<"(t,e,n){return function(r,i,s){const o=t(r,i,s)<e(r,i,s);return n?{value:o}:o}}"binary>"(t,e,n){return function(r,i,s){const o=t(r,i,s)>e(r,i,s);return n?{value:o}:o}}"binary<="(t,e,n){return function(r,i,s){const o=t(r,i,s)<=e(r,i,s);return n?{value:o}:o}}"binary>="(t,e,n){return function(r,i,s){const o=t(r,i,s)>=e(r,i,s);return n?{value:o}:o}}"binary&&"(t,e,n){return function(r,i,s){const o=t(r,i,s)&&e(r,i,s);return n?{value:o}:o}}"binary||"(t,e,n){return function(r,i,s){const o=t(r,i,s)||e(r,i,s);return n?{value:o}:o}}"ternary?:"(t,e,n,r){return function(i,s,o){const a=t(i,s,o)?e(i,s,o):n(i,s,o);return r?{value:a}:a}}value(t,e){return function(){return e?{context:void 0,name:void 0,value:t}:t}}identifier(t,e,n){return function(r,i){const s=i&&t in i?i:r;n&&1!==n&&s&&null==s[t]&&(s[t]={});const o=s?s[t]:void 0;return e?{context:s,name:t,value:o}:o}}computedMember(t,e,n,r){return function(i,s,o){const a=t(i,s,o);let c,l;return null!=a&&(c=e(i,s,o),c=function(t){return`${t}`}(c),r&&1!==r&&a&&!a[c]&&(a[c]={}),l=a[c]),n?{context:a,name:c,value:l}:l}}nonComputedMember(t,e,n,r){return function(i,s,o){const a=t(i,s,o);r&&1!==r&&a&&null==a[e]&&(a[e]={});const c=null!=a?a[e]:void 0;return n?{context:a,name:e,value:c}:c}}}function ms(t,e,n){let r,i,s,o,a,c,l,u,h,d,p,f=t;const $=f.isPure=function(t,e){switch(t.type){case Or.MemberExpression:if(t.computed)return!1;break;case Or.UnaryExpression:return ps;case Or.BinaryExpression:return"+"!==t.operator&&ps;case Or.CallExpression:return!1}return void 0===e?fs:e}(t,n);switch(t.type){case Or.Program:return r=!0,f.body.forEach((t=>{let n=ms(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=ms(f.argument,e,$);return f.constant=m.constant,f.toWatch=m.toWatch,f;case Or.BinaryExpression:return o=ms(f.left,e,$),a=ms(f.right,e,$),f.constant=o.constant&&a.constant,f.toWatch=o.toWatch.concat(a.toWatch),f;case Or.LogicalExpression:return o=ms(f.left,e,$),a=ms(f.right,e,$),f.constant=o.constant&&a.constant,f.toWatch=f.constant?[]:[t],f;case Or.ConditionalExpression:return c=ms(t.test,e,$),l=ms(t.alternate,e,$),u=ms(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=ms(t.object,e,$),t.computed&&(d=ms(t.property,e,$)),f.constant=h.constant&&(!f.computed||d.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=ms(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=ms(t.left,e,$),a=ms(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=ms(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=ms(t.value,e,$),r=r&&m.constant,i.push.apply(i,m.toWatch),t.computed&&(p=ms(t.key,e,!1),r=r&&p.constant,i.push.apply(i,p.toWatch))})),f.constant=r,f.toWatch=i,f;case Or.ThisExpression:case Or.LocalsExpression:return f.constant=!1,f.toWatch=[],f}}function gs(t){return t.type===Or.Identifier||t.type===Or.MemberExpression}const vs=ct("$parse"),ys={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},bs=new Set("+ - * / % === !== == != < > <= >= && || ! = |".split(" "));class ws{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=bs.has(t),i=bs.has(e),s=bs.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=g(e)?`s ${e}-${this.index} [${this.text.substring(e,n)}]`:` ${n}`;throw vs("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():ys[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 Es=ct("$parse"),Cs=new Map(Object.entries({true:!0,false:!1,null:null,undefined:void 0}));class Os{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(!gs(t))throw Es("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]):Cs.has(this.peek().text)?t={type:Or.Literal,value:Cs.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 Es("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 Es("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 Es("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 Ss{constructor(t,e){this.ast=new Os(t),this.astCompiler=new $s(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 xs(){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:C(e)&&e,isIdentifierContinue:C(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 ws(i);o=new Ss(c,r).parse(e),t[a]=ks(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===fs?function(e){return t(e)}:t})))),ks(r)}}]}function As(t,e,n,r){const i=t.$watch((()=>(i(),r(t))),e,n);return i}function ks(t){return t.constant?t.$$watchDelegate=As:t.oneTime?t.$$watchDelegate=Ts:t.inputs&&(t.$$watchDelegate=_s),t}function _s(t,e,n,r){let i,s=r.inputs;if(1===s.length){let o=js,a=s[0];return t.$watch((t=>{const e=a(t);return js(e,o,a.isPure)||(i=r(t,void 0,void 0,[e]),o=e&&Ns(e)),i}),e,n)}{const o=[],a=[];for(let t=0,e=s.length;t<e;t++)o[t]=js,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=!js(r,o[n],s[n].isPure)))&&(a[n]=r,o[n]=r&&Ns(r))}return e&&(i=r(t,void 0,void 0,a)),i}),e,n)}}function Ts(t,e,n,r){const i=r.literal?Vs:g;let s,o;const a=r.$$intercepted||r,c=r.$$interceptor||(t=>t),l=r.inputs&&!a.inputs;function u(){i(o)&&s()}function h(t,e,n,r){return o=l&&r?r[0]:a(t,e,n,r),i(o)&&t.$$postDigest(u),c(o)}return h.literal=r.literal,h.constant=r.constant,h.inputs=r.inputs,h.oneTime=void 0,ks(h),s=t.$watch(h,e,n),s}function js(t,e,n){return null==t||null==e?t===e:!("object"==typeof t&&"object"==typeof(t=Ns(t))&&!n)&&(t===e||t!=t&&e!=e)}function Vs(t){let e=!0;return Object.values(t).forEach((t=>{g(t)||(e=!1)})),e}function Ns(t){return C(t.valueOf)?t.valueOf():{}.constructor.prototype.valueOf.call(t)}const Rs=ct("$interpolate");function Ps(t,e){throw Rs("interr","Can't interpolate: {0}\n{1}",t,e.toString())}class Ds{constructor(){this.start="{{",this.end="}}"}startSymbol(t){return t?(this.start=t,this):this.start}endSymbol(t){return t?(this.end=t,this):this.end}$get=["$parse","$sce",function(t,e){const n=this,r=n.start.length,i=n.end.length,s=new RegExp(this.start.replace(/./g,a),"g"),o=new RegExp(n.end.replace(/./g,a),"g");function a(t){return`\\\\\\${t}`}function c(t){return t.replace(s,n.start).replace(o,n.end)}function l(s,o,a,l){const u=a===e.URL||a===e.MEDIA_URL;if(!s.length||-1===s.indexOf(n.start)){if(o)return;let t=c(s);u&&(t=e.getTrusted(a,t));const n=P(t);return n.exp=s,n.expressions=[],n.$$watchDelegate=As,n}let h,d;l=!!l;let p=0;const f=[];let $;const v=s.length;let y;const b=[],w=[];let E;for(;p<v;){if(-1===(h=s.indexOf(n.start,p))||-1===(d=s.indexOf(n.end,h+r))){p!==v&&b.push(c(s.substring(p)));break}p!==h&&b.push(c(s.substring(p,h))),y=s.substring(h+r,d),f.push(y),p=d+i,w.push(b.length),b.push("")}E=1===b.length&&1===w.length;const C=u&&E?void 0:function(t){try{return t=a&&!u?e.getTrusted(a,t):e.valueOf(t),l&&!g(t)?t:B(t)}catch(t){Ps(s,t)}};if($=f.map((e=>t(e,C))),!o||f.length){const t=function(t){for(let e=0,n=f.length;e<n;e++){if(l&&m(t[e]))return;b[w[e]]=t[e]}return u?e.getTrusted(a,E?b[0]:b.join("")):(a&&b.length>1&&function(t){throw Rs("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required. See http://docs.angularjs.org/api/ng.$sce",t)}(s),b.join(""))};return j((e=>{let n=0;const r=f.length,i=new Array(r);try{for(;n<r;n++)i[n]=$[n](e);return t(i)}catch(t){Ps(s,t)}}),{exp:s,expressions:f,$$watchDelegate(e,n){let r;return e.$watchGroup($,((i,s)=>{const o=t(i);n.call(this,o,i!==s?r:o,e),r=o}))}})}}return l.startSymbol=function(){return n.start},l.endSymbol=function(){return n.end},l}]}function Ms(){this.$get=["$q","$rootScope",function(t,e){return function(n,r){return function(i,s,o){const a=arguments.length>4,c=a?W(arguments,4):[];let l=0;const u=t.defer(),{promise:h}=u;function d(){a?i.apply(null,c):i(l)}return o=g(o)?o:0,h.$$intervalId=n((function(){e.$evalAsync(d),l++,o>0&&l>=o&&(u.resolve(l),r(h.$$intervalId)),e.$apply()}),s,u),h}}}]}let Ls={},Is="";function Us(t){try{return decodeURIComponent(t)}catch(e){return t}}const qs="application/json",Hs={"Content-Type":`${qs};charset=utf-8`},Fs=/^\[|^\{(?!\{)/,Bs={"[":/]$/,"{":/}$/},zs=/^\)]\}',?\n/,Ws=ct("$http");function Gs(t){return v(t)?w(t)?t.toISOString():Y(t):t}function Ks(){this.$get=function(){return function(t){if(!t)return"";const e=[];return Object.keys(t).sort().forEach((n=>{const r=t[n];null===r||m(r)||C(r)||(Array.isArray(r)?r.forEach((t=>{e.push(`${tt(n)}=${tt(Gs(t))}`)})):e.push(`${tt(n)}=${tt(Gs(r))}`))})),e.join("&")}}}function Ys(t,e){if(y(t)){const r=t.replace(zs,"").trim();if(r){const i=e("Content-Type"),s=i&&0===i.indexOf(qs);if(s||function(t){const e=t.match(Fs);return e&&Bs[e[0]].test(t)}(r))try{t=y(n=r)?JSON.parse(n):n}catch(e){if(!s)return t;throw Ws("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',t,e)}}}var n;return t}function Qs(t){const e=Object.create(null);let n;function r(t,n){t&&(e[t]=e[t]?`${e[t]}, ${n}`:n)}return y(t)?t.split("\n").forEach((t=>{n=t.indexOf(":"),r(t.substring(0,n).trim().toLowerCase(),_(t.substring(n+1)))})):v(t)&&Object.entries(t).forEach((([t,e])=>{r(f(t),_(e))})),e}function Zs(t){let e;return function(n){if(e||(e=Qs(t)),n){let t=e[f(n)];return void 0===t&&(t=null),t}return e}}function Js(t,e,n,r){return C(r)?r(t,e,n):(Array.isArray(r)&&r.forEach((r=>{t=r(t,e,n)})),t)}function Xs(t){return t>=200&&t<300}function to(){const t=this.defaults={transformResponse:[Ys],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:nt(Hs),put:nt(Hs),patch:nt(Hs)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer"};let e=!1;this.useApplyAsync=function(t){return g(t)?(e=!!t,this):e};const n=this.interceptors=[],r=this.xsrfTrustedOrigins=[];Object.defineProperty(this,"xsrfWhitelistedOrigins",{get(){return this.xsrfTrustedOrigins},set(t){this.xsrfTrustedOrigins=t}}),this.$get=["$browser","$httpBackend","$rootScope","$q","$injector","$sce",function(i,s,o,a,c,l){const u=new Map;t.paramSerializer=y(t.paramSerializer)?c.get(t.paramSerializer):t.paramSerializer;const h=[];n.forEach((t=>{h.unshift(y(t)?c.get(t):c.invoke(t))}));const d=function(t){const e=[qe].concat(t.map(Fe));return function(t){const n=Fe(t);return e.some(ze.bind(null,n))}}(r);function p(n){if(!v(n))throw ct("$http")("badreq","Http request configuration must be an object. Received: {0}",n);if(!y(l.valueOf(n.url)))throw ct("$http")("badreq","Http request configuration url must be a string or a $sce trusted object. Received: {0}",n.url);const r=j({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse,paramSerializer:t.paramSerializer},n);var $;r.headers=function(e){let n=t.headers,r=j({},e.headers);return n=j({},n.common,n[f(e.method)]),Object.keys(n).forEach((t=>{const e=f(t);Object.keys(r).some((t=>f(t)===e))||(r[t]=n[t])})),function(t,e){let n;const r={};return Object.entries(t).forEach((([t,i])=>{C(i)?(n=i(e),null!=n&&(r[t]=n)):r[t]=i})),r}(r,nt(e))}(n),r.method=y($=r.method)?$.toUpperCase():$,r.paramSerializer=y(r.paramSerializer)?c.get(r.paramSerializer):r.paramSerializer,i.$$incOutstandingRequestCount("$http");const b=[],w=[];let E=a.resolve(r);return h.forEach((t=>{(t.request||t.requestError)&&b.unshift(t.request,t.requestError),(t.response||t.responseError)&&w.push(t.response,t.responseError)})),E=O(E,b),E=E.then((function(n){const{headers:r}=n,i=Js(n.data,Zs(r),void 0,n.transformRequest);m(i)&&Object.keys(r).forEach((t=>{"content-type"===f(t)&&delete r[t]}));m(n.withCredentials)&&!m(t.withCredentials)&&(n.withCredentials=t.withCredentials);return function(n,r){const i=a.defer(),{promise:c}=i;let h,f;const $=n.headers;let{url:b}=n;y(b)||(b=l.valueOf(b));b=function(t,e){e.length>0&&(t+=(-1===t.indexOf("?")?"?":"&")+e);return t}(b,n.paramSerializer(n.params)),p.pendingRequests.push(n),c.then(S,S),(n.cache||t.cache)&&!1!==n.cache&&"GET"===n.method&&(h=v(n.cache)?n.cache:v(t.cache)?t.cache:u);h&&(f=h.get(b),g(f)?k(f)?f.then(O,O):Array.isArray(f)?C(f[1],f[0],nt(f[2]),f[3],f[4]):C(f,200,{},"OK","complete"):h.set(b,c));if(m(f)){const e=d(n.url)?function(){let t,e,n,r,i;const s=document.cookie;if(s!==Is)for(Is=s,t=Is.split("; "),Ls={},n=0;n<t.length;n++)e=t[n],r=e.indexOf("="),r>0&&(i=Us(e.substring(0,r)),m(Ls[i])&&(Ls[i]=Us(e.substring(r+1))));return Ls}()[n.xsrfCookieName||t.xsrfCookieName]:void 0;e&&($[n.xsrfHeaderName||t.xsrfHeaderName]=e),s(n.method,b,r,E,$,n.timeout,n.withCredentials,n.responseType,w(n.eventHandlers),w(n.uploadEventHandlers))}return c;function w(t){if(t){const n={};return Object.entries(t).forEach((([t,r])=>{n[t]=function(t){function n(){r(t)}e?o.$applyAsync(n):o.$$phase!==Se.NONE?n():o.$apply(n)}})),n}}function E(t,n,r,i,s){function a(){C(n,t,r,i,s)}h&&(Xs(t)?h.set(b,[t,n,Qs(r),i,s]):h.delete(b)),e?o.$applyAsync(a):(a(),o.$$phase||o.$apply())}function C(t,e,r,s,o){(Xs(e=e>=-1?e:0)?i.resolve:i.reject)({data:t,status:e,headers:Zs(r),config:n,statusText:s,xhrStatus:o})}function O(t){C(t.data,t.status,nt(t.headers()),t.statusText,t.xhrStatus)}function S(){const t=p.pendingRequests.indexOf(n);-1!==t&&p.pendingRequests.splice(t,1)}}(n,i).then(S,S)})),E=O(E,w),E=E.finally((function(){i.$$completeOutstandingRequest((()=>{}),"$http")})),E;function O(t,e){for(let n=0,r=e.length;n<r;){const r=e[n++],i=e[n++];t=t.then(r,i)}return e.length=0,t}function S(t){const e=j({},t);return e.data=Js(t.data,t.headers,t.status,r.transformResponse),Xs(t.status)?e:a.reject(e)}}return p.pendingRequests=[],function(...t){t.forEach((t=>{p[t]=function(e,n){return p(j({},n||{},{method:t,url:e}))}}))}("get","delete","head"),function(...t){t.forEach((t=>{p[t]=function(e,n,r){return p(j({},r||{},{method:t,url:e,data:n}))}}))}("post","put","patch"),p.defaults=t,p}]}function eo(){this.$get=["$browser",function(t){return function(t){return function(e,n,r,i,s,o,a,c,l,u){n=n||t.url();const h=new XMLHttpRequest;let d=!1;if(h.open(e,n,!0),s&&Object.entries(s).forEach((([t,e])=>{g(e)&&h.setRequestHeader(t,e)})),h.onload=function(){const t=h.statusText||"";let e=h.status;0===e&&(e=h.response?200:"file"===Fe(n).protocol?404:0),$(i,e,h.response,h.getAllResponseHeaders(),t,"complete")},h.onerror=function(){$(i,-1,null,null,"","error")},h.ontimeout=function(){$(i,-1,null,null,"","timeout")},h.onabort=function(){$(i,-1,null,null,"",d?"timeout":"abort")},l&&l&&Object.entries(l).forEach((([t,e])=>{h.addEventListener(t,e)})),u&&Object.entries(u).forEach((([t,e])=>{h.upload.addEventListener(t,e)})),a&&(h.withCredentials=!0),c)try{h.responseType=c}catch(t){if("json"!==c)throw t}if(h.send(m(r)?null:r),o>0)var p=t.defer((()=>{f("timeout")}),o);else k(o)&&o.then((()=>{f(g(o.$$timeoutId)?"timeout":"abort")}));function f(t){d="timeout"===t,h&&h.abort()}function $(e,n,r,i,s,o){g(p)&&t.cancel(p),e(n,r,i,s,o)}}}(t)}]}const no={http:80,https:443,ftp:21},ro=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,io=ct("$location");class so{constructor(t,e){const n=Fe(t);this.appBase=t,this.appBaseNoFile=e,this.$$absUrl="",this.$$html5=!1,this.$$replace=!1,this.$$protocol=n.protocol,this.$$host=n.hostname,this.$$port=V(n.port)||no[n.protocol]||null,this.$$path=void 0,this.$$hash=void 0,this.$$urlUpdatedByLocation=!1}absUrl(){return this.$$absUrl}url(t){if(m(t))return this.$$url;const e=ro.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(m(t))return this.$$path;let e=null!==t?t.toString():"";return this.$$path="/"===e.charAt(0)?e:`/${e}`,this.$$compose(),this}hash(t){return m(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(y(t)||b(t))t=t.toString(),this.$$search=Z(t);else{if(!v(t))throw io("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:m(e)||null===e?delete this.$$search[t]:this.$$search[t]=e}return this.$$compose(),this}$$compose(){this.$$url=function(t,e,n){const r=function(t){const e=[];return t&&Object.entries(t).forEach((([t,n])=>{Array.isArray(n)?n.forEach((n=>{e.push(tt(t,!0)+(!0===n?"":`=${tt(n,!0)}`))})):e.push(tt(t,!0)+(!0===n?"":`=${tt(n,!0)}`))})),e.length?e.join("&"):""}(e),i=n?`#${X(n)}`:"";return function(t){const e=t.split("/");let n=e.length;for(;n--;)e[n]=X(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 oo&&this.$$html5))throw io("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=m(t)?null:t,this.$$urlUpdatedByLocation=!0,this}$$parseLinkUrl(t,e){throw new Error(`Method not implemented ${t} ${e}`)}$$parse(t){throw new Error(`Method not implemented ${t}`)}}class oo extends so{constructor(t,e,n){super(t,e),this.$$html5=!0,this.basePrefix=n||""}$$parse(t){const e=ho(this.appBaseNoFile,t);if(!y(e))throw io("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',t,this.appBaseNoFile);lo(e,this,!0),this.$$path||(this.$$path="/"),this.$$compose()}$$normalizeUrl(t){return this.appBaseNoFile+t.substring(1)}$$parseLinkUrl(t,e){if(e&&"#"===e[0])return this.hash(e.slice(1)),!0;let n,r,i;return g(n=ho(this.appBase,t))?(r=n,i=this.basePrefix&&g(n=ho(this.basePrefix,n))?this.appBaseNoFile+(ho("/",n)||n):this.appBase+r):g(n=ho(this.appBaseNoFile,t))?i=this.appBaseNoFile+n:this.appBaseNoFile===`${t}/`&&(i=this.appBaseNoFile),i&&this.$$parse(i),!!i}}class ao extends so{constructor(t,e,n){super(t,e),this.hashPrefix=n}$$parse(t){const e=ho(this.appBase,t)||ho(this.appBaseNoFile,t);let n;m(e)||"#"!==e.charAt(0)?this.$$html5?n=e:(n="",m(e)&&(this.appBase=t,this.replace())):(n=ho(this.hashPrefix,e),m(n)&&(n=e)),lo(n,this,!1),this.$$path=function(t,e,n){const r=/^\/[A-Z]:(\/.*)/;let i;uo(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 po(this.appBase)===po(t)&&(this.$$parse(t),!0)}}class co{constructor(){this.hashPrefixConf="!",this.html5ModeConf={enabled:!1,requireBase:!0,rewriteLinks:!0}}setHashPrefix(t){this.hashPrefixConf=t}getHashPrefix(){return this.hashPrefixConf}setHtml5Mode(t){if(A(t)&&(this.html5ModeConf.enabled=t),v(t)){const e=t;g(e.enabled)&&A(e.enabled)&&(this.html5ModeConf.enabled=e.enabled),g(e.requireBase)&&A(e.requireBase)&&(this.html5ModeConf.requireBase=e.requireBase),g(e.rewriteLinks)&&(A(e.rewriteLinks)||y(e.rewriteLinks))&&(this.html5ModeConf.rewriteLinks=e.rewriteLinks)}}getHtml5Mode(){return this.html5ModeConf}$get=["$rootScope","$browser","$rootElement",(t,e,n)=>{let r,i;const s=e.baseHref(),o=e.url();let a;if(this.getHtml5Mode().enabled){if(!s&&this.getHtml5Mode().requireBase)throw io("nobase","$location in HTML5 mode requires a <base> tag to be present!");a=(c=o).substring(0,c.indexOf("/",c.indexOf("//")+2))+(s||"/"),i=oo}else a=po(o),i=ao;var c;const l=function(t){return t.substring(0,po(t).lastIndexOf("/")+1)}(a);r=new i(a,l,`#${this.getHashPrefix()}`),r.$$parseLinkUrl(o,o),r.$$state=e.state();const u=/^\s*(javascript|mailto):/i;function h(t,n){const i=r.url(),s=r.$$state;try{e.url(t,n),r.$$state=e.state()}catch(t){throw r.url(i),r.$$state=s,t}}n.on("click",(i=>{const s=this.getHtml5Mode().rewriteLinks;if(!s||i.ctrlKey||i.metaKey||i.shiftKey||2===i.which||2===i.button)return;let o=xt(i.target);for(;"a"!==o[0].nodeName.toLowerCase();)if(o[0]===n[0]||!(o=o.parent())[0])return;if(y(s)&&m(o.attr(s)))return;let a=o[0].href;const c=o.attr("href")||o.attr("xlink:href");v(a)&&"[object SVGAnimatedString]"===a.toString()&&(a=Fe(a.animVal).href),u.test(a)||!a||o.attr("target")||i.isDefaultPrevented()||r.$$parseLinkUrl(a,c)&&(i.preventDefault(),r.absUrl()!==e.url()&&t.$apply())})),r.absUrl()!==o&&e.url(r.absUrl(),!0);let d=!0;return e.onUrlChange(((e,n)=>{uo(e,l)?(t.$evalAsync((()=>{const i=r.absUrl(),s=r.$$state;let o;r.$$parse(e),r.$$state=n,o=t.$broadcast("$locationChangeStart",e,i,n,s).defaultPrevented,r.absUrl()===e&&(o?(r.$$parse(i),r.$$state=s,h(i,s)):(d=!1,p(i,s)))})),t.$$phase===Se.NONE&&t.$digest()):window.location.href=e})),t.$watch((()=>{if(d||r.$$urlUpdatedByLocation){r.$$urlUpdatedByLocation=!1;const s=e.url(),o=r.absUrl(),a=e.state(),c=!((n=s)===(i=o)||Fe(n).href===Fe(i).href)||r.$$html5&&a!==r.$$state;(d||c)&&(d=!1,t.$evalAsync((()=>{const e=r.absUrl(),{defaultPrevented:n}=t.$broadcast("$locationChangeStart",e,s,r.$$state,a);r.absUrl()===e&&(n?(r.$$parse(s),r.$$state=a):(c&&h(e,a===r.$$state?null:r.$$state),p(s,a)))})))}var n,i;r.$$replace=!1})),r;function p(e,n){t.$broadcast("$locationChangeSuccess",r.absUrl(),e,r.$$state,n)}}]}function lo(t,e,n){if(/^\s*[\\/]{2,}/.test(t))throw io("badpath",'Invalid url "{0}".',t);const r="/"!==t.charAt(0);r&&(t=`/${t}`);const i=Fe(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=Z(i.search),e.$$hash=decodeURIComponent(i.hash),e.$$path&&"/"!==e.$$path.charAt(0)&&(e.$$path=`/${e.$$path}`)}function uo(t,e){return t.slice(0,e.length)===e}function ho(t,e){if(uo(e,t))return e.substring(t.length)}function po(t){const e=t.indexOf("#");return-1===e?t:t.substring(0,e)}let fo={debug:void 0,error:void 0,info:void 0,log:void 0,warn:void 0};class $o{constructor(){this.debug=!0}debugEnabled(t){return void 0!==t?(this.debug=t,this):this.debug}formatError(t){return E(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 fo={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)}})()},fo}}class mo{$get=["$log",t=>new go(t)]}class go{constructor(t){this.log=t,this.taskCounts={},this.taskCallbacks=[],this.ALL_TASKS_TYPE="$$all$$",this.DEFAULT_TASK_TYPE="$$default$$"}completeTask(t,e=this.DEFAULT_TASK_TYPE){try{t()}finally{this.taskCounts[e]&&(this.taskCounts[e]--,this.taskCounts[this.ALL_TASKS_TYPE]--);const t=this.taskCounts[e],n=this.taskCounts[this.ALL_TASKS_TYPE];if(!n||!t){const t=n?()=>this.getLastCallbackForType(e):this.getLastCallback.bind(this);let r;for(;r=t();)try{r()}catch(t){this.log.error(t)}}}}incTaskCount(t=this.DEFAULT_TASK_TYPE){this.taskCounts[t]=(this.taskCounts[t]||0)+1,this.taskCounts[this.ALL_TASKS_TYPE]=(this.taskCounts[this.ALL_TASKS_TYPE]||0)+1}notifyWhenNoPendingTasks(t,e=this.ALL_TASKS_TYPE){this.taskCounts[e]?this.taskCallbacks.push({type:e,cb:t}):t()}getLastCallback(){const t=this.taskCallbacks.pop();return t?t.cb:void 0}getLastCallbackForType(t){for(let e=this.taskCallbacks.length-1;e>=0;--e){const n=this.taskCallbacks[e];if(n.type===t)return this.taskCallbacks.splice(e,1),n.cb}}}var vo=ct("$templateRequest");function yo(){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++,y(a)&&n.has(a)||(a=s.getTrustedResourceUrl(a));var l=r.defaults&&r.defaults.transformResponse;return Array.isArray(l)?l=l.filter((function(t){return t!==Ys})):l===Ys&&(l=null),r.get(a,j({cache:n,transformResponse:l},t)).finally((function(){o.totalPendingRequests--})).then((function(t){return n.set(a,t.data),t.data}),(function(t){c||(t=vo("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 bo=ct("$timeout");class wo{$get=["$rootScope","$browser","$q","$exceptionHandler",(t,e,n,r)=>{const i={};function s(s,o,a=!0){const c=W(arguments,3),l=g(a)&&!a,u=n.defer(),{promise:h}=u;let d;return d=e.defer((()=>{try{u.resolve(s.apply(null,c))}catch(t){u.reject(t),r(t)}finally{delete i[h.$$timeoutId]}l||t.$apply()}),o,"$timeout"),h.$$timeoutId=d,i[d]=u,h}return s.cancel=function(t){if(!t)return!1;if(!Object.prototype.hasOwnProperty.call(t,"$$timeoutId"))throw bo("badprom","`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.");if(!Object.prototype.hasOwnProperty.call(i,t.$$timeoutId))return!1;const n=t.$$timeoutId,r=i[n];return ls(r.promise),r.reject("canceled"),delete i[n],e.cancel(n)},s}]}function Eo(){let t=/^\s*(https?|s?ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationTrustedUrlList=function(e){return g(e)?(t=e,this):t},this.imgSrcSanitizationTrustedUrlList=function(t){return g(t)?(e=t,this):e},this.$get=function(){return function(n,r){const i=r?e:t,s=Fe(n&&n.trim()).href;return""===s||s.match(i)?n:`unsafe:${s}`}}}const Co="ng-active",Oo="ng-inactive";class So{constructor(t,e,n,r){this.$element=t,this.$scope=e,this.$attrs=n,this.$animate=r,this.latestKey=0,this.nextAttachId=0,this.messages={},this.renderLater=!1,this.cachedCollection=null,this.head=void 0,this.default=void 0,this.$scope.$watchCollection(this.$attrs.ngMessages||this.$attrs.for,this.render.bind(this))}getAttachId(){return this.nextAttachId++}render(t={}){this.renderLater=!1,this.cachedCollection=t;const e=Ao(this.$scope,this.$attrs.ngMessagesMultiple)||Ao(this.$scope,this.$attrs.multiple),n=[],r={};let i=0,s=this.head,o=!1,a=0;for(;null!=s;){a++;const c=s.message;let l=!1;o||Object.entries(t).forEach((([t,e])=>{if(ko(e)&&!l&&(i++,c.test(t))){if(r[t])return;r[t]=!0,l=!0,c.attach()}})),l?o=!e:n.push(c),s=s.next}n.forEach((t=>{t.detach()}));const c=n.length!==a,l=this.default&&!c&&i>0;l?this.default.attach():this.default&&this.default.detach(),c||l?this.$animate.setClass(this.$element,Co,Oo):this.$animate.setClass(this.$element,Oo,Co)}reRender(){this.renderLater||(this.renderLater=!0,this.$scope.$evalAsync((()=>{this.renderLater&&this.cachedCollection&&this.render(this.cachedCollection)})))}register(t,e,n){if(n)this.default=e;else{const n=this.latestKey.toString();this.messages[n]={message:e},this.insertMessageNode(this.$element[0],t,n),t.$$ngMessageNode=n,this.latestKey++}this.reRender()}deregister(t,e){if(e)delete this.default;else{const e=t.$$ngMessageNode;delete t.$$ngMessageNode,this.removeMessageNode(this.$element[0],t,e),delete this.messages[e]}this.reRender()}findPreviousMessage(t,e){let n=e;const r=[];for(;n&&n!==t;){const t=n.$$ngMessageNode;if(t&&t.length)return this.messages[t];n.childNodes.length&&-1===r.indexOf(n)?(r.push(n),n=n.childNodes[n.childNodes.length-1]):n.previousSibling?n=n.previousSibling:(n=n.parentNode,r.push(n))}}insertMessageNode(t,e,n){const r=this.messages[n];if(this.head){const n=this.findPreviousMessage(t,e);n?(r.next=n.next,n.next=r):(r.next=this.head,this.head=r)}else this.head=r}removeMessageNode(t,e,n){const r=this.messages[n];if(!r)return;const i=this.findPreviousMessage(t,e);i?i.next=r.next:this.head=r.next}}function xo(t){return{require:"ngMessages",restrict:"AE",controller:(e,n,r)=>new So(e,n,r,t)}}function Ao(t,e){return y(e)&&0===e.length||ko(t.$eval(e))}function ko(t){return y(t)?t.length:!!t}function _o(t,e){return{restrict:"AE",require:"^^ngMessages",link(n,r,i){const s=i.ngMessagesInclude||i.src;t(s).then((t=>{n.$$destroyed||y(t)&&!t.trim()||e(t)(n,(t=>{r.after(t)}))}))}}}xo.$inject=["$animate"],_o.$inject=["$templateRequest","$compile"];const To=No(!1),jo=No(!1),Vo=No(!0);function No(t){function e(e){return{restrict:"AE",transclude:"element",priority:1,terminal:!0,require:"^^ngMessages",link(n,r,i,s,o){let a,c,l,u,h,d;if(!t){a=r[0],l=i.ngMessage||i.when,u=i.ngMessageExp||i.whenExp;const t=function(t){c=t?Array.isArray(t)?t:t.split(/[\s,]+/):null,s.reRender()};u?(t(n.$eval(u)),n.$watchCollection(u,t)):t(l)}s.register(a,d={test:t=>function(t,e){if(t)return Array.isArray(t)?t.indexOf(e)>=0:Object.prototype.hasOwnProperty.call(t,e)}(c,t),attach(){h||o(((n,i)=>{e.enter(n,null,r),h=n;const o=h.$$attachId=s.getAttachId();h.on("$destroy",(()=>{h&&h.$$attachId===o&&(s.deregister(a,t),d.detach()),i.$destroy()}))}))},detach(){if(h){const t=h;h=null,e.leave(t)}}},t),n.$on("$destroy",(()=>{s.deregister(a,t)}))}}}return e.$inject=["$animate"],e}const Ro="ngAriaDisable",Po=["BUTTON","A","INPUT","TEXTAREA","SELECT","DETAILS","SUMMARY"],Do=function(t,e){if(-1!==e.indexOf(t[0].nodeName))return!0};function Mo(){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,Ro))return;const c=a.$normalize(n);!t[c]||Do(o,r)||a[c]||s.$watch(a[e],(t=>{t=i?!t:!!t,o.attr(n,t)}))}}this.config=function(e){t=j(t,e)},this.$get=function(){return{config:e=>t[e],$$watchExpr:e}}}function Lo(t){return t.$$watchExpr("ngDisabled","aria-disabled",Po,!1)}function Io(t){return t.$$watchExpr("ngShow","aria-hidden",[],!0)}function Uo(){return{restrict:"A",require:"?ngMessages",link(t,e,n){Object.prototype.hasOwnProperty.call(n,Ro)||e.attr("aria-live")||e.attr("aria-live","assertive")}}}function qo(t,e){return{restrict:"A",compile(n,r){if(Object.prototype.hasOwnProperty.call(r,Ro))return;const i=e(r.ngClick);return function(e,n,r){Do(n,Po)||(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!==Po.indexOf(t.target.nodeName)||t.target.isContentEditable||t.preventDefault(),e.$apply((function(){i(e,{$event:t})})))})))}}}}function Ho(t){return t.$$watchExpr("ngRequired","aria-required",Po,!1)}function Fo(t){return t.$$watchExpr("ngChecked","aria-checked",Po,!1)}function Bo(t){return t.$$watchExpr("ngValue","aria-checked",Po,!1)}function zo(t){return t.$$watchExpr("ngHide","aria-hidden",[],!1)}function Wo(t){return t.$$watchExpr("ngReadonly","aria-readonly",Po,!1)}function Go(t){function e(e,n,r,i){return t.config(n)&&!r.attr(e)&&(i||!Do(r,Po))&&("hidden"!==r.attr("type")||"INPUT"!==r[0].nodeName)}function n(t,e){return!e.attr("role")&&e.attr("type")===t&&!Do(e,Po)}return{restrict:"A",require:"ngModel",priority:200,compile(r,i){if(Object.prototype.hasOwnProperty.call(i,Ro))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 Ko(t){return function(e,n,r){Object.prototype.hasOwnProperty.call(r,Ro)||!t.config("tabindex")||n.attr("tabindex")||Do(n,Po)||n.attr("tabindex",0)}}Lo.$inject=["$aria"],Io.$inject=["$aria"],qo.$inject=["$aria","$parse"],Ho.$inject=["$aria"],Fo.$inject=["$aria"],Bo.$inject=["$aria"],zo.$inject=["$aria"],Wo.$inject=["$aria"],Go.$inject=["$aria"],Ko.$inject=["$aria"];const Yo="$$animateCss",Qo=1e3,Zo=3,Jo=1.5,Xo={transitionDuration:zr,transitionDelay:Br,transitionProperty:Vr+Mr,animationDuration:Fr,animationDelay:Hr,animationIterationCount:Rr+"IterationCount"},ta={transitionDuration:zr,transitionDelay:Br,animationDuration:Fr,animationDelay:Hr};function ea(t,e){return[e?Hr:Br,`${t}s`]}function na(t,e){const n=Object.create(null),r=window.getComputedStyle(t)||{};return Object.entries(e).forEach((([t,e])=>{let i=r[e];if(i){const e=i.charAt(0);("-"===e||"+"===e||e>=0)&&(i=function(t){let e=0;return t.split(/\s*,\s*/).forEach((t=>{"s"===t.charAt(t.length-1)&&(t=t.substring(0,t.length-1)),t=parseFloat(t)||0,e=e?Math.max(t,e):t})),e}(i)),0===i&&(i=null),n[t]=i}})),n}function ra(t){return 0===t||null!=t}function ia(t,e){let n=Vr,r=`${t}s`;return e?n+=Dr:r+=" linear all",[n,r]}function sa(t,e,n){n.forEach((n=>{t[n]=g(t[n])?t[n]:e.style.getPropertyValue(n)}))}function oa(){this.$get=["$$AnimateRunner","$timeout","$$animateCache","$$rAFScheduler","$$animateQueue",function(t,e,n,r,i){const s=function(t,e){e.addClass&&(t[0].classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t[0].classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};const o=[];function a(t){o.push(t),r.waitUntilQuiet((()=>{n.flush();const t=document.body.offsetWidth+1;for(let e=0;e<o.length;e++)o[e](t);o.length=0}))}function c(t,e,r){const i=function(t,e,r,i){let s=n.get(e);s||(s=na(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,Xo),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=Zr(structuredClone(l)));const u={},h=ni(r);if(!h||!h.parentNode||!i.enabled())return z();const d=[],p=function(t){const e={};return t&&(t.to||t.from)&&(e.to=t.to,e.from=t.from),e}(l);let f,$,m,g,v,y,b,w,E,C;const O=[];if(0===l.duration)return z();const S=l.event&&Array.isArray(l.event)?l.event.join(" "):l.event,x=S&&l.structural;let A="",k="";x?A=Kr(S,Ar,!0):S&&(A=S),l.addClass&&(k+=Kr(l.addClass,Sr)),l.removeClass&&(k.length&&(k+=" "),k+=Kr(l.removeClass,xr)),l.applyClassesEarly&&k.length&&s(r,l);let _=[A,k].join(" ").trim();const T=p.to&&Object.keys(p.to).length>0;if(!((l.keyframeStyle||"").length>0)&&!T&&!_)return z();let j,V,N=n.cacheKey(h,S,l.addClass,l.removeClass);if(n.containsCachedAnimationWithoutDuration(N))return _=null,z();if(l.stagger>0){const t=parseFloat(l.stagger);j={transitionDelay:t,animationDelay:t,transitionDuration:0,animationDuration:0}}else j=function(t,e,r,i){let s;const o=`stagger-${r}`;if(n.count(r)>0&&(s=n.get(o),!s)){const r=Kr(e,"-stagger");t.className+=` ${r}`,s=na(t,i),s.animationDuration=Math.max(s.animationDuration,0),s.transitionDuration=Math.max(s.transitionDuration,0),t.classList.remove(r),n.put(o,s,!0)}return s||{}}(h,_,N,ta);if(l.$$skipPreparationClasses||r[0].classList.add(..._.split(" ").filter((t=>""!==t))),l.transitionStyle){const t=[Vr,l.transitionStyle];ii(h,t),d.push(t)}if(l.duration>=0){V=h.style[Vr].length>0;const t=ia(l.duration,V);ii(h,t),d.push(t)}if(l.keyframeStyle){const t=[Rr,l.keyframeStyle];ii(h,t),d.push(t)}const R=j?l.staggerIndex>=0?l.staggerIndex:n.count(N):0,P=0===R;P&&!l.skipBlocking&&aa(h,qr);let D=c(h,N,!x),M=D.maxDelay;y=Math.max(M,0),w=D.maxDuration;const L={};if(L.hasTransitions=D.transitionDuration>0,L.hasAnimations=D.animationDuration>0,L.hasTransitionAll=L.hasTransitions&&"all"===D.transitionProperty,L.applyTransitionDuration=T&&(L.hasTransitions&&!L.hasTransitionAll||L.hasAnimations&&!L.hasTransitions),L.applyAnimationDuration=l.duration&&L.hasAnimations,L.applyTransitionDelay=ra(l.delay)&&(L.applyTransitionDuration||L.hasTransitions),L.applyAnimationDelay=ra(l.delay)&&L.hasAnimations,L.recalculateTimingStyles=k.length>0,(L.applyTransitionDuration||L.applyAnimationDuration)&&(w=l.duration?parseFloat(l.duration):w,L.applyTransitionDuration&&(L.hasTransitions=!0,D.transitionDuration=w,V=h.style[Vr+Mr].length>0,d.push(ia(w,V))),L.applyAnimationDuration&&(L.hasAnimations=!0,D.animationDuration=w,d.push([Fr,`${w}s`]))),0===w&&!L.recalculateTimingStyles)return z();var I,U=Kr(_,kr);null!=l.delay&&("boolean"!=typeof l.delay&&(I=parseFloat(l.delay),y=Math.max(I,0)),L.applyTransitionDelay&&d.push(ea(I)),L.applyAnimationDelay&&d.push(ea(I,!0)));return null==l.duration&&D.transitionDuration>0&&(L.recalculateTimingStyles=L.recalculateTimingStyles||P),b=y*Qo,E=w*Qo,l.skipBlocking||(L.blockTransition=D.transitionDuration>0,L.blockKeyframeAnimation=D.animationDuration>0&&j.animationDelay>0&&0===j.animationDuration),l.from&&(l.cleanupStyles&&sa(u,h,Object.keys(l.from)),Xr(0,l)),L.blockTransition||L.blockKeyframeAnimation?B(w):l.skipBlocking||aa(h,!1),{$$willAnimate:!0,end:q,start(){if(!f)return v={end:q,cancel:H,resume:null,pause:null},g=new t(v),a(G),g}};function q(){F()}function H(){F(!0)}function F(t){if(f||m&&$)return;f=!0,$=!1,_&&!l.$$skipPreparationClasses&&r[0].classList.remove(..._.split(" ")),(U=Kr(_,kr))&&r[0].classList.remove(...U.split(" ")),ri(h,!1),aa(h,!1),d.forEach((t=>{h.style[t[0]]=""})),s(r,l),Jr(r,l),Object.keys(u).length&&Object.entries(u).forEach((([t,e])=>{e?h.style.setProperty(t,e):h.style.removeProperty(t)})),l.onDone&&l.onDone(),O.length&&r.off(O.join(" "),W);const n=r.data(Yo);n&&(e.cancel(n[0].timer),r.removeData(Yo)),g&&g.complete(!t)}function B(t){L.blockTransition&&aa(h,t),L.blockKeyframeAnimation&&ri(h,!!t)}function z(){return g=new t({end:q,cancel:H}),a((()=>{})),F(),{$$willAnimate:!1,start:()=>g,end:q}}function W(t){t.stopPropagation();const e=t.originalEvent||t;if(e.target!==h)return;const n=e.$manualTimeStamp||Date.now(),r=parseFloat(e.elapsedTime.toFixed(Zo));Math.max(n-C,0)>=b&&r>=w&&(m=!0,F())}function G(){if(f)return;if(!h.parentNode)return void F();const t=function(t){if(m)$&&t&&($=!1,F());else if($=!t,D.animationDuration){const t=ri(h,$);$?d.push(t):function(t,e){const n=t.indexOf(e);e>=0&&t.splice(n,1)}(d,t)}},i=R>0&&(D.transitionDuration&&0===j.transitionDuration||D.animationDuration&&0===j.animationDuration)&&Math.max(j.animationDelay,j.transitionDelay);function o(){if(f)return;if(B(!1),d.forEach((t=>{const e=t[0],n=t[1];h.style[e]=n})),s(r,l),r[0].classList.add(...U.split(" ").filter((t=>""!==t))),L.recalculateTimingStyles){if(N=n.cacheKey(h,S,l.addClass,l.removeClass),D=c(h,N,!1),M=D.maxDelay,y=Math.max(M,0),w=D.maxDuration,0===w)return void F();L.hasTransitions=D.transitionDuration>0,L.hasAnimations=D.animationDuration>0}if(L.applyAnimationDelay&&(M="boolean"!=typeof l.delay&&ra(l.delay)?parseFloat(l.delay):M,y=Math.max(M,0),D.animationDelay=M,I=ea(M,!0),d.push(I),h.style[I[0]]=I[1]),b=y*Qo,E=w*Qo,l.easing){let t;const e=l.easing;L.hasTransitions&&(t=Vr+Ir,d.push([t,e]),h.style[t]=e),L.hasAnimations&&(t=Rr+Ir,d.push([t,e]),h.style[t]=e)}D.transitionDuration&&O.push(Nr),D.animationDuration&&O.push(Pr),C=Date.now();const t=b+Jo*E,i=C+t,o=r.data(Yo)||[];let p=!0;if(o.length){const t=o[0];p=i>t.expectedEndTime,p?e.cancel(t.timer):o.push(F)}if(p){const n=e(a,t,!1);o[0]={timer:n,expectedEndTime:i},o.push(F),r.data(Yo,o)}O.length&&r.on(O.join(" "),W),l.to&&(l.cleanupStyles&&sa(u,h,Object.keys(l.to)),ti(0,l))}function a(){const t=r.data(Yo);if(t){for(let e=1;e<t.length;e++)t[e]();r.removeData(Yo)}}i?e(o,Math.floor(i*R*Qo),!1):o(),v.resume=function(){t(!0)},v.pause=function(){t(!1)}}}}]}function aa(t,e){const n=e?`-${e}s`:"";return ii(t,[Br,n]),[Br,n]}const ca="data-ng-animate",la="$ngAnimatePin";function ua(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!(m(n)&&m(r)||m(s)&&m(o))&&(i(n,o)||i(r,s))})),this.$get=["$rootScope","$injector","$$animation","$$AnimateRunner","$templateRequest",function(e,n,i,a,c){const l=new Map,u=new Map;let h=null;function d(t){u.delete(t.target)}e.$templateRequest=c;const p=e.$watch("$templateRequest.totalPendingRequests",(t=>{0===t&&(p(),e.$templateRequest=void 0,e.$$postDigest((()=>{e.$$postDigest((()=>{null===h&&(h=!0)}))})))})),f=Object.create(null),$=t.customFilter(),b=t.classNameFilter(),w=function(){return!0},E=$||w,C=b?function(t,e){const n=[t.getAttribute("class"),e.addClass,e.removeClass].join(" ");return b.test(n)}:w,O=function(t,e){e.addClass&&(t[0].classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t[0].classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};function S(t,e){return ei(t,e,{})}const x=window.Node.prototype.contains||function(t){return this===t||!!(16&this.compareDocumentPosition(t))};function A(t,e,n){const r=Qr(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=Qr(e);f[t]=f[t]||[],f[t].push({node:r,callback:n}),xt(e).on("$destroy",(()=>{l.get(r)||_.off(t,e,n)}))},off(t,e,n){if(1===arguments.length&&!y(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){Gr(M(t),"element","not an element"),Gr(M(e),"parentElement","not an element"),t.data(la,e)},push:(t,c,d,p)=>((d=d||{}).domOperation=p,function(t,c,d){let p=d,$=Yr(t);const b=ni($),w=b&&b.parentNode;p=Zr(p);const A=new a,_=function(){let t=!1;return function(n){t?n():e.$$postDigest((()=>{t=!0,n()}))}}();Array.isArray(p.addClass)&&(p.addClass=p.addClass.join(" "));p.addClass&&!y(p.addClass)&&(p.addClass=null);Array.isArray(p.removeClass)&&(p.removeClass=p.removeClass.join(" "));p.removeClass&&!y(p.removeClass)&&(p.removeClass=null);p.from&&!v(p.from)&&(p.from=null);p.to&&!v(p.to)&&(p.to=null);if(!(h&&b&&E(b,c,d)&&C(b,p)))return U(),A;const j=["enter","move","leave"].indexOf(c)>=0;let N=document.hidden||u.get(b);const R=!N&&l.get(b)||{},P=!!R.state;N||P&&1===R.state||(N=!function(t,e){const r=document.body,i=ni(n.get("$rootElement"));let s,o=t===r||"HTML"===t.nodeName,a=t===i,c=!1,h=u.get(t),d=Mt(t,la);d&&(e=ni(d));for(;e&&(a||(a=e===i),e.nodeType===Node.ELEMENT_NODE);){const t=l.get(e)||{};if(!c){const n=u.get(e);if(!0===n&&!1!==h){h=!0;break}!1===n&&(h=!1),c=t.structural}if(m(s)||!0===s){const t=Mt(e,jr);g(t)&&(s=t)}if(c&&!1===s)break;if(o||(o=e===r),o&&a)break;e=a||(d=Mt(e,la),!d)?e.parentNode:ni(d)}return(!c||s)&&!0!==h&&a&&o}(b,w));if(N)return document.hidden&&I(A,c,"start",r(p)),U(),document.hidden&&I(A,c,"close",r(p)),A;j&&function(t){const e=t.querySelectorAll(`[${ca}]`);e.forEach((t=>{const e=parseInt(t.getAttribute(ca),10),n=l.get(t);if(n)switch(e){case 2:n.runner.end();case 1:l.delete(t)}}))}(b);const D={structural:j,element:$,event:c,addClass:p.addClass,removeClass:p.removeClass,close:U,options:p,runner:A};if(P){if(s("skip",D,R))return 2===R.state?(U(),A):(ei($,R,D),R.runner);if(s("cancel",D,R))if(2===R.state)R.runner.end();else{if(!R.structural)return ei($,R,D),R.runner;R.close()}else{if(s("join",D,R)){if(2!==R.state)return function(t,e,n){let r="";e&&(r=Kr(e,Ar,!0)),n.addClass&&(r=si(r,Kr(n.addClass,Sr))),n.removeClass&&(r=si(r,Kr(n.removeClass,xr))),r.length&&(n.preparationClasses=r,t[0].className+=` ${r}`)}($,j?c:null,p),c=D.event=R.event,p=ei($,R,D),R.runner;S($,D)}}}else S($,D);let M=D.structural;M||(M="animate"===D.event&&Object.keys(D.options.to||{}).length>0||o(D));if(!M)return U(),T(b),A;const L=(R.counter||0)+1;return D.counter=L,V(b,1,D),e.$$postDigest((()=>{$=Yr(t);let e=l.get(b);const n=!e;e=e||{};const s=($.parent()||[]).length>0&&("animate"===e.event||e.structural||o(e));if(n||e.counter!==L||!s)return n&&(O($,p),Jr($,p)),(n||j&&e.event!==c)&&(p.domOperation(),A.end()),void(s||T(b));c=!e.structural&&o(e,!0)?"setClass":e.event,V(b,2);const a=i($,c,e.options);A.setHost(a),I(A,c,"start",r(p)),a.done((t=>{U(!t);const e=l.get(b);e&&e.counter===L&&T(b),I(A,c,"close",r(p))}))})),A;function I(t,e,n,r){_((()=>{const t=function(t,e,n){const r=[],i=f[n];return i&&i.forEach((i=>{(x.call(i.node,e)||"leave"===n&&x.call(i.node,t))&&r.push(i.callback)})),r}(w,b,e);t.length?(t.forEach((t=>{t($,n,r)})),k(n,b)):k(n,b)})),t.progress(e,n,r)}function U(t){!function(t,e){e.preparationClasses&&(e.preparationClasses.split(" ").forEach((e=>t[0].classList.remove(e))),e.preparationClasses=null),e.activeClasses&&(e.activeClasses.split(" ").forEach((e=>t[0].classList.remove(e))),e.activeClasses=null)}($,p),O($,p),Jr($,p),p.domOperation(),A.complete(!t)}}(t,c,d)),enabled(t,e){const n=arguments.length;if(0===n)e=!!h;else{if(M(t)){const r=ni(t);1===n?e=!u.get(r):(u.has(r)||xt(t).on("$destroy",d),u.set(r,!e))}else e=h=!!t}return e}};return _;function T(t){t.removeAttribute(ca),l.delete(t)}function V(t,e,n){(n=n||{}).state=e,t.setAttribute(ca,e);const r=l.get(t),i=r?j(r,n):n;l.set(t,i)}}]}function ha(t){this.$get=["$injector","$$AnimateRunner",function(e,n){const r=function(t,e){e.addClass&&(t[0].classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t[0].classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};return function(i,s,o,a){let c=!1;3===arguments.length&&v(o)&&(a=o,o=null),a=Zr(a),o||(o=i.attr("class")||"",a.addClass&&(o+=` ${a.addClass}`),a.removeClass&&(o+=` ${a.removeClass}`));const l=a.addClass,u=a.removeClass,h=function(n){n=Array.isArray(n)?n:n.split(" ");const r=[],i={};for(let s=0;s<n.length;s++){const o=n[s],a=t.$$registeredAnimations[o];a&&!i[o]&&(r.push(e.get(a)),i[o]=!0)}return r}(o);let d,p,f;if(h.length){let t,e;"leave"===s?(e="leave",t="afterLeave"):(e=`before${s.charAt(0).toUpperCase()}${s.substring(1)}`,t=s),"enter"!==s&&"move"!==s&&(d=y(i,s,a,h,e)),p=y(i,s,a,h,t)}if(d||p)return{$$willAnimate:!0,end:()=>(f?f.end():(m(),f=new n,f.complete(!0)),f),start(){if(f)return f;let t;f=new n;const e=[];return d&&e.push((e=>{t=d(e)})),e.length?e.push((t=>{$(),t(!0)})):$(),p&&e.push((e=>{t=p(e)})),f.setHost({end(){i()},cancel(){i(!0)}}),n.chain(e,r),f;function r(t){m(),f.complete(t)}function i(e){c||((t||(()=>{}))(e),r(e))}}};function $(){a.domOperation(),r(i,a)}function m(){c=!0,$(),Jr(i,a)}function g(t,e,r,i,s){const o=[];return i.forEach((i=>{const a=i[s];a&&o.push((()=>{let i,s,o=!1;const c=function(t){o||(o=!0,(s||(()=>{}))(t),i.complete(!t))};return i=new n({end(){c()},cancel(){c(!0)}}),s=function(t,e,r,i,s){let o;switch(r){case"animate":o=[e,i.from,i.to,s];break;case"setClass":o=[e,l,u,s];break;case"addClass":o=[e,l,s];break;case"removeClass":o=[e,u,s];break;default:o=[e,s]}o.push(i);let a=t.apply(t,o);if(a)if(C(a.start)&&(a=a.start()),a instanceof n)a.done(s);else if(C(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&&o.forEach((t=>{e.push(t())})),e.length?n.all(e,t):t(),function(t){e.forEach((e=>{t?e.cancel():e.end()}))}}}}}]}ua.$inject=["$animateProvider"],ha.$inject=["$animateProvider"];const da="$$animationRunner",pa="$$animatePrepareClasses";function fa(){const t="ng-animate-ref",e=this.drivers=[];function n(t){return t.data(da)}this.$get=["$rootScope","$injector","$$AnimateRunner","$$rAFScheduler","$$animateCache",function(r,i,s,o,a){const c=[],l=function(t,e){e.addClass&&(t[0].classList.add(...e.addClass.trim().split(" ")),e.addClass=null),e.removeClass&&(t[0].classList.remove(...e.removeClass.trim().split(" ")),e.removeClass=null)};return function(u,h,d){d=Zr(d);const p=["enter","move","leave"].indexOf(h)>=0,f=new s({end(){y()},cancel(){y(!0)}});if(!e.length)return y(),f;let $=ht(u.attr("class"),ht(d.addClass,d.removeClass)),{tempClasses:m}=d;return m&&($+=` ${m}`,d.tempClasses=null),p&&u.data(pa,`ng-${h}${_r}`),function(t,e){t.data(da,e)}(u,f),c.push({element:u,classes:$,event:h,structural:p,options:d,beforeStart:function(){m=(m?`${m} `:"")+Tr,u.className+=` ${m}`;let t=u.data(pa);t&&(u[0].classList.remove(t),t=null)},close:y}),u.on("$destroy",v),c.length>1||r.$$postDigest((()=>{const r=[];c.forEach((t=>{n(t.element)?r.push(t):t.close()})),c.length=0;const s=function(e){const n=[],r={};e.forEach(((e,i)=>{const{element:s}=e,o=ni(s),{event:a}=e,c=["enter","move"].indexOf(a)>=0,l=e.structural?function(e){const n=`[${t}]`,r=e.hasAttribute(t)?[e]:e.querySelectorAll(n),i=[];return r.forEach((e=>{const n=e.getAttribute(t);n&&n.length&&i.push(e)})),i}(o):[];if(l.length){const e=c?"to":"from";l.forEach((n=>{const s=n.getAttribute(t);r[s]=r[s]||{},r[s][e]={animationID:i,element:xt(n)}}))}else n.push(e)}));const i={},s={};return Object.values(r).forEach((t=>{const{from:r}=t,{to:o}=t;if(!r||!o){const t=r?r.animationID:o.animationID,s=t.toString();return void(i[s]||(i[s]=!0,n.push(e[t])))}const a=e[r.animationID],c=e[o.animationID],l=r.animationID.toString();if(!s[l]){const t=s[l]={structural:!0,beforeStart(){a.beforeStart(),c.beforeStart()},close(){a.close(),c.close()},classes:g(a.classes,c.classes),from:a,to:c,anchors:[]};t.classes.length?n.push(t):(n.push(a),n.push(c))}s[l].anchors.push({out:r.element,in:o.element})})),n}(r),l=[];s.forEach((t=>{const r=t.from?t.from.element:t.element;let s=d.addClass;s=(s?`${s} `:"")+Tr;const o=a.cacheKey(r[0],t.event,s,d.removeClass);l.push({element:r,domNode:ni(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(pa);continue}const s=i.data(pa);s&&i[0].classList.add(s)}}o(u)})),f;function g(t,e){t=t.split(" "),e=e.split(" ");const n=[];for(let r=0;r<t.length;r++){const i=t[r];if("ng-"!==i.substring(0,3))for(let t=0;t<e.length;t++)if(i===e[t]){n.push(i);break}}return n.join(" ")}function v(){const t=n(u);!t||"leave"===h&&d.$$domOperationFired||t.end()}function y(t){u.off("$destroy",v),function(t){t.removeData(da)}(u),l(u,d),Jr(u,d),d.domOperation(),m&&m.split(" ").forEach((t=>u[0].classList.remove(t))),f.complete(!t)}}}]}function $a(){let t=[],e=null;function n(){if(!t.length)return;t.shift().forEach((t=>t())),e||window.requestAnimationFrame((()=>{e=null,n()}))}function r(e){t=t.concat(e),n()}t=r.queue=[],r.waitUntilQuiet=t=>{null!==e&&(window.cancelAnimationFrame(e),e=null),e=window.requestAnimationFrame((()=>{e=null,t(),n()}))},this.$get=function(){return r}}const ma="$animId";let ga=0;const va=new Map;function ya(){return{cacheKey(t,e,n,r){const{parentNode:i}=t,s=[i[ma]??(i[ma]=++ga),e,t.getAttribute("class")];return n&&s.push(n),r&&s.push(r),s.join(" ")},containsCachedAnimationWithoutDuration(t){const e=va.get(t);return!!e&&!e.isValid},flush(){va.clear()},count:t=>va.get(t)?.total??0,get:t=>va.get(t)?.value,put(t,e,n){const r=va.get(t);r?(r.total++,r.value=e):va.set(t,{total:1,value:e,isValid:n})}}}function ba(){this.$get=[ya]}const wa="ng-animate-shim",Ea="ng-anchor",Ca="ng-anchor-out",Oa="ng-anchor-in";function Sa(t){t.drivers.push("$$animateCssDriver"),this.$get=["$animateCss","$$AnimateRunner","$rootElement",function(t,e,n){const r=document.body,i=n[0],s=xt((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=xt(ni(n).cloneNode(!0)),a=xa(p(o));let c;n[0].classList.add(wa),i[0].classList.add(wa),o[0].classList.add(Ea),s.append(o);const l=d();if(!l&&(c=f(),!c))return $();const u=l||c;return{start(){let t,n=u.start();return n.done((()=>{if(n=null,!c&&(c=f(),c))return n=c.start(),n.done((()=>{n=null,$(),t.complete()})),n;$(),t.complete()})),t=new e({end:r,cancel:r}),t;function r(){n&&n.end()}}};function h(t){const e={},n=ni(t).getBoundingClientRect();return["width","height","top","left"].forEach((t=>{let i=n[t];switch(t){case"top":i+=r.scrollTop;break;case"left":i+=r.scrollLeft}e[t]=`${Math.floor(i)}px`})),e}function d(){const e=t(o,{addClass:Ca,delay:!0,from:h(n)});return e.$$willAnimate?e:null}function p(t){return t.attr("class")||""}function f(){const e=xa(p(i)),n=Aa(e,a),r=Aa(a,e),s=t(o,{to:h(i),addClass:`${Oa} ${n}`,removeClass:`${Ca} ${r}`,delay:!0});return s.$$willAnimate?s:null}function $(){o.remove(),n[0].classList.remove(wa),i[0].classList.remove(wa)}}(n.out,n.in);i&&u.push(i)})),!c&&!l&&0===u.length)return;return{start(){const t=[];c&&t.push(c.start()),l&&t.push(l.start()),u.forEach((e=>{t.push(e.start())}));const n=new e({end:r,cancel:r});return e.all(t,(t=>{n.complete(t)})),n;function r(){t.forEach((t=>{t.end()}))}}}}(n.from,n.to,n.anchors):a(n)};function a(e){const n=e.options||{};e.structural&&(n.event=e.event,n.structural=!0,n.applyClassesEarly=!0,"leave"===e.event&&(n.onDone=n.domOperation)),n.preparationClasses&&(n.event=si(n.event,n.preparationClasses));const r=t(e.element,n);return r.$$willAnimate?r:null}}]}function xa(t){return t.replace(/\bng-\S+\b/g,"")}function Aa(t,e){return y(t)&&(t=t.split(" ")),y(e)&&(e=e.split(" ")),t.filter((t=>-1===e.indexOf(t))).join(" ")}function ka(t){t.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(t,e){return function(t){if(t.from&&t.to){const r=n(t.from),i=n(t.to);if(!r&&!i)return;return{start(){const t=[];r&&t.push(r.start()),i&&t.push(i.start()),e.all(t,(function(t){n.complete(t)}));const n=new e({end:s(),cancel:s()});return n;function s(){return function(){t.forEach((t=>{t.end()}))}}}}}return n(t)};function n(e){const{element:n}=e,{event:r}=e,{options:i}=e,{classes:s}=e;return t(n,r,s,i)}}]}function _a(t){return{restrict:"A",transclude:"element",terminal:!0,priority:550,link(e,n,r,i,s){let o,a;e.$watchCollection(r.ngAnimateSwap||r.for,(e=>{o&&t.leave(o),a&&(a.$destroy(),a=null),e&&s(((e,r)=>{o=e,a=r,t.enter(e,null,n)}))}))}}}function Ta(t){return{link(e,n,r){const i=r.ngAnimateChildren;function s(t){t="on"===t||"true"===t,n.data(jr,t)}y(i)&&0===i.length?n.data(jr,!0):(s(t(i)(e)),r.$observe("ngAnimateChildren",s))}}}function ja(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 Va(){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 Na(){return Va.apply(null,[].slice.call(arguments).reverse())}Sa.$inject=["$$animationProvider"],ka.$inject=["$$animationProvider"],_a.$inject=["$animate"],Ta.$inject=["$interpolate"];const Ra=ja(((t,e,n)=>n&&n[t]===e)),Pa=t=>Na.apply(null,t.split(".").map((t=>e=>e&&e[t])));const Da=t=>e=>e.reduce(((e,n)=>e&&!!t(n)),!0),Ma=t=>e=>null!=e&&e.constructor===t||e instanceof t,La=t=>()=>t;function Ia(t){return function(e){for(let n=0;n<t.length;n++)if(t[n][0](e))return t[n][1](e)}}const Ua={$q:void 0,$injector:void 0};function qa(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(Da(Array.isArray)(r))return s=e,(i=t).length===s.length&&oc(i,s).reduce(((t,e)=>t&&qa(e[0],e[1])),!0);var i,s;if(Da(w)(r))return t.getTime()===e.getTime();if(Da(O)(r))return t.toString()===e.toString();if(Da(C)(r))return!0;if([C,Array.isArray,w,O].some((t=>!!t(r))))return!1;const o={};for(const n in t){if(!qa(t[n],e[n]))return!1;o[n]=!0}for(const t in e)if(!o[t])return!1;return!0}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=ja((function(t,e){const n=t.indexOf(e);n>=0&&t.splice(n,1);return t}));const za=ja(((t,e)=>(t.push(e),e)));function Wa(t,...e){const n=Object.assign({},...e.reverse());return Object.assign(n,Ga(t||{},Object.keys(n)))}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((t=>!e.includes(t))).reduce(((e,n)=>(e[n]=t[n],e)),{})}function Ya(t,e){const n=Array.isArray(t),r=n?[]:{},i=n?t=>r.push(t):(t,e)=>r[e]=t;return Object.entries(t).forEach((([t,n])=>{e(n,t)&&i(n,t)})),r}function Qa(t,e){let n;return Object.entries(t).forEach((([t,r])=>{n||e(r,t)&&(n=r)})),n}function Za(t,e,n){return n=n||(Array.isArray(t)?[]:{}),Object.entries(t).forEach((([t,r])=>n[t]=e(r,t))),n}const Ja=(t,e)=>t&&e,Xa=(t,e)=>t||e,tc=(t,e)=>t.concat(e),ec=(t,e)=>Array.isArray(e)?t.concat(e.reduce(ec,[])):nc(t,e);function nc(t,e){return t.push(e),t}const rc=(t,e)=>t.includes(e)?t:nc(t,e),ic=t=>t.reduce(tc,[]),sc=function(t,e="assert failure"){return n=>{const r=t(n);if(!r)throw new Error(e);return r}};function oc(...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 ac(t,e){let n,r;if(Array.isArray(e)&&([n,r]=e),!y(n))throw new Error("invalid parameters to applyPairs");return t[n]=r,t}function cc(t){return t.length&&t[t.length-1]||void 0}function lc(t,e){return e&&Object.keys(e).forEach((t=>delete e[t])),e||(e={}),Object.assign(e,t)}const uc=t=>t.catch((()=>0))&&t,hc=t=>uc(Ua.$q.reject(t)),dc=t=>null===t;function pc(t){return null===t&&void 0===t}function fc(t){if(Array.isArray(t)&&t.length){const e=t.slice(0,-1),n=t.slice(-1);return!(e.filter((t=>!y(t))).length||n.filter((t=>!C(t))).length)}return C(t)}function $c(t){return null!==t&&"object"==typeof t&&"function"==typeof t.then}class mc{constructor(t){this.pattern=/.*/,this.inherit=!0,Object.assign(this,t),this.name=void 0}is(t){return!!t}encode(t){return t}decode(t){return t}equals(t,e){return t==e}$subPattern(){const t=this.pattern.toString();return t.substring(1,t.length-2)}toString(){return`{ParamType:${this.name}}`}$normalize(t){return this.is(t)?t:this.decode(t)}$asArray(t,e){if(!t)return this;if("auto"===t&&!e)throw new Error("'auto' array mode is for query parameters only");return new gc(this,t)}}function gc(t,e){function n(t){return Array.isArray(t)?t:g(t)?[t]:[]}function r(t,r){return function(i){if(Array.isArray(i)&&0===i.length)return i;const s=Za(n(i),t);return!0===r?0===Ya(s,(t=>!t)).length:function(t){switch(t.length){case 0:return;case 1:return"auto"===e?t[0]:t;default:return t}}(s)}}function i(t){return function(e,r){const i=n(e),s=n(r);if(i.length!==s.length)return!1;for(let e=0;e<i.length;e++)if(!t(i[e],s[e]))return!1;return!0}}["encode","decode","equals","$normalize"].forEach((e=>{const n=t[e].bind(t),s="equals"===e?i:r;this[e]=s(n)})),Object.assign(this,{dynamic:t.dynamic,name:t.name,pattern:t.pattern,inherit:t.inherit,raw:t.raw,is:r(t.is.bind(t),!0),$arrayMode:e})}class vc{constructor(){this.enqueue=!0,this.typeQueue=[],this.defaultTypes=Ga(vc.prototype,["hash","string","query","path","int","bool","date","json","any"]);this.types=Fa(Za(this.defaultTypes,((t,e)=>new mc(Object.assign({name:e},t)))),{})}type(t,e,n){if(!g(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 mc(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],Ua.$injector.invoke(t.def))}}}!function(){const t=t=>{const e=t=>null!=t?t.toString():t,n={encode:e,decode:e,is:Ma(String),pattern:/.*/,equals:(t,e)=>t==e};return Object.assign({},n,t)};Object.assign(vc.prototype,{string:t({}),path:t({pattern:/[^/]*/}),query:t({}),hash:t({inherit:!1}),int:t({decode:t=>parseInt(t,10),is:function(t){return!pc(t)&&this.decode(t.toString())===t},pattern:/-?\d+/}),bool:t({encode:t=>t?1:0,decode:t=>0!==parseInt(t,10),is:Ma(Boolean),pattern:/0|1/}),date:t({encode:function(t){return this.is(t)?[t.getFullYear(),("0"+(t.getMonth()+1)).slice(-2),("0"+t.getDate()).slice(-2)].join("-"):void 0},decode:function(t){if(this.is(t))return t;const e=this.capture.exec(t);return e?new Date(e[1],e[2]-1,e[3]):void 0},is:t=>t instanceof Date&&!isNaN(t.valueOf()),equals:(t,e)=>["getFullYear","getMonth","getDate"].reduce(((n,r)=>n&&t[r]()===e[r]()),!0),pattern:/[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2][0-9]|3[0-1])/,capture:/([0-9]{4})-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])/}),json:t({encode:JSON.stringify,decode:JSON.parse,is:Ma(Object),equals:qa,pattern:/[^/]*/}),any:t({encode:t=>t,decode:t=>t,is:()=>!0,equals:qa})})}();class yc{constructor(){this.paramTypes=new vc,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=g(t)?t:this._isCaseInsensitive}defaultSquashPolicy(t){if(g(t)&&!0!==t&&!1!==t&&!y(t))throw new Error(`Invalid squash policy: ${t}. Valid policies: false, true, arbitrary-string`);return this._defaultSquashPolicy=g(t)?t:this._defaultSquashPolicy}strictMode(t){return this._isStrictMode=g(t)?t:this._isStrictMode}type(t,e,n){const r=this.paramTypes.type(t,e,n);return g(e)?this:r}}class bc{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 wc{constructor(t=[],e=null){this._items=t,this._limit=e,this._evictListeners=[],this.onEvict=za(this._evictListeners)}enqueue(t){const e=this._items;return e.push(t),this._limit&&e.length>this._limit&&this.evict(),t}evict(){const t=this._items.shift();return this._evictListeners.forEach((e=>e(t))),t}dequeue(){if(this.size())return this._items.splice(0,1)[0]}clear(){const t=this._items;return this._items=[],t}size(){return this._items.length}remove(t){const e=this._items.indexOf(t);return e>-1&&this._items.splice(e,1)[0]}peekTail(){return this._items[this._items.length-1]}peekHead(){if(this.size())return this._items[0]}}class Ec{constructor(){this.params=new bc,this.lastStartedTransitionId=-1,this.transitionHistory=new wc([],1),this.successfulTransitions=new wc([],1)}$get=[()=>this]}function Cc(t,e){return e.length<=t?e:e.substring(0,t-3)+"..."}function Oc(t){return t.replace(/^([A-Z])/,(t=>t.toLowerCase())).replace(/([A-Z])/g,(t=>"-"+t.toLowerCase()))}function Sc(t){const e=xc(t),n=e.match(/^(function [^ ]+\([^)]*\))/),r=n?n[1]:e,i=t.name||"";return i&&r.match(/function \(/)?"function "+i+r.substring(9):r}function xc(t){const e=Array.isArray(t)?t.slice(-1)[0]:t;return e&&e.toString()||"undefined"}function Ac(t){const e=[],n=Ia([[m,La("undefined")],[dc,La("null")],[$c,La("[Promise]")],[t=>t&&"function"==typeof t.then&&"Rejection"==t.constructor.name,t=>t._transitionRejection.toString()],[t=>v(t)&&!Array.isArray(t)&&t.constructor!==Object&&C(t.toString),t=>t.toString()],[fc,Sc],[La(!0),t=>t]]);function r(t){if(v(t)){if(-1!==e.indexOf(t))return"[circular ref]";e.push(t)}return n(t)}return m(t)?r(t):JSON.stringify(t,((t,e)=>r(e))).replace(/\\"/g,'"')}function kc(t,e){return y(cc(t))&&y(e)?t.slice(0,-1).concat(cc(t)+e):nc(t,e)}function _c(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 Tc(t){return b(t)?jc[t]:jc[jc[t]]}var jc;!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"}(jc||(jc={}));const Vc=Pa("$id"),Nc=Pa("router.$id"),Rc=t=>`Transition #${Vc(t)}-${Nc(t)}`;const Pc=new class{constructor(){this._enabled={},this.approximateDigests=0}_set(t,e){e.length||(e=Object.keys(jc).map((t=>parseInt(t,10))).filter((t=>!isNaN(t))).map((t=>jc[t]))),e.map(Tc).forEach((e=>this._enabled[e]=t))}enable(...t){this._set(!0,t)}disable(...t){this._set(!1,t)}enabled(t){return!!this._enabled[Tc(t)]}traceTransitionStart(t){this.enabled(jc.TRANSITION)&&console.log(`${Rc(t)}: Started -> ${Ac(t)}`)}traceTransitionIgnored(t){this.enabled(jc.TRANSITION)&&console.log(`${Rc(t)}: Ignored <> ${Ac(t)}`)}traceHookInvocation(t,e,n){if(!this.enabled(jc.HOOK))return;const r=Pa("traceData.hookType")(n)||"internal",i=Pa("traceData.context.state.name")(n)||Pa("traceData.context")(n)||"unknown",s=Sc(t.registeredHook.callback);console.log(`${Rc(e)}: Hook -> ${r} context: ${i}, ${Cc(200,s)}`)}traceHookResult(t,e){this.enabled(jc.HOOK)&&console.log(`${Rc(e)}: <- Hook returned: ${Cc(200,Ac(t))}`)}traceResolvePath(t,e,n){this.enabled(jc.RESOLVE)&&console.log(`${Rc(n)}: Resolving ${t} (${e})`)}traceResolvableResolved(t,e){this.enabled(jc.RESOLVE)&&console.log(`${Rc(e)}: <- Resolved ${t} to: ${Cc(200,Ac(t.data))}`)}traceError(t,e){this.enabled(jc.TRANSITION)&&console.log(`${Rc(e)}: <- Rejected ${Ac(e)}, reason: ${t}`)}traceSuccess(t,e){this.enabled(jc.TRANSITION)&&console.log(`${Rc(e)}: <- Success ${Ac(e)}, final state: ${t.name}`)}traceUIViewEvent(t,e,n=""){this.enabled(jc.UIVIEW)&&console.log(`ui-view: ${function(t,e){for(;e.length<t;)e+=" ";return e}(30,t)} ${_c(e)}${n}`)}traceUIViewConfigUpdated(t,e){this.enabled(jc.UIVIEW)&&this.traceUIViewEvent("Updating",t,` with ViewConfig from context='${e}'`)}traceUIViewFill(t,e){this.enabled(jc.UIVIEW)&&this.traceUIViewEvent("Fill",t,` with: ${Cc(200,e)}`)}traceViewSync(t){if(!this.enabled(jc.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(jc.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(jc.VIEWCONFIG)&&console.log(`VIEWCONFIG: ${t} ${_c(e)}`)}};let Dc="LAZY",Mc="WAIT";class Lc{constructor(t,e,n,r,i){this.resolved=!1,this.promise=void 0,t instanceof Lc?Object.assign(this,t):C(e)?(rt(!pc(t),"token argument is required"),this.token=t,this.policy=r,this.resolveFn=e,this.deps=n||[],this.data=i,this.resolved=void 0!==i,this.promise=this.resolved?Ua.$q.resolve(this.data):void 0):v(t)&&t.token&&(Object.prototype.hasOwnProperty.call(t,"resolveFn")||Object.prototype.hasOwnProperty.call(t,"data"))&&(this.token=t.token,this.resolveFn=t.resolveFn,this.deps=t.deps,this.policy=t.policy,this.data=t.data)}getPolicy(t){const e=this.policy||{},n=t&&t.resolvePolicy||{};return{when:e.when||n.when||Dc,async:e.async||n.async||Mc}}resolve(t,e){const n=Ua.$q,r=t.findNode(this),i=r&&r.state,s=this.getPolicy(i).async,o=C(s)?s:t=>t;return this.promise=n.resolve().then((()=>n.all(t.getDependencies(this).map((n=>n.get(t,e)))))).then((t=>this.resolveFn.apply(null,t))).then(o).then((t=>(this.data=t,this.resolved=!0,this.resolveFn=null,Pc.traceResolvableResolved(this,e),this.data)))}get(t,e){return this.promise||this.resolve(t,e)}toString(){return`Resolvable(token: ${Ac(this.token)}, requires: [${this.deps.map(Ac)}])`}clone(){return new Lc(this)}}Lc.fromData=(t,e)=>new Lc(t,(()=>e),null,null,e);class Ic{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()}'${Ac(this.params())}`}withState(t){return new Ic(this._stateRegistry,t,this._params,this._options)}withParams(t,e=!1){const n=e?t:Object.assign({},this._params,t);return new Ic(this._stateRegistry,this._identifier,n,this._options)}withOptions(t,e=!1){const n=e?t:Object.assign({},this._options,t);return new Ic(this._stateRegistry,this._identifier,this._params,n)}}Ic.isDef=t=>t&&t.state&&(y(t.state)||v(t.state)&&y(t.state.name));const Uc=t=>0===["value","type","squash","array","dynamic"].filter(Object.prototype.hasOwnProperty.bind(t||{})).length;var qc;function Hc(t,e,n){const r=!1===n.reloadOnSearch&&e===qc.SEARCH||void 0,i=Qa([n.dynamic,r],g),s=g(i)?{dynamic:i}:{},o=function(t){function e(){return t.value}t=Uc(t)?{value:t}:t,e.__cacheable=!0;const n=fc(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"}(qc||(qc={}));class Fc{constructor(t,e,n,r,i){const s=Hc(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===qc.CONFIG?"any":n===qc.PATH?"path":n===qc.SEARCH?"query":"string";return i.type(t)}return t.type instanceof mc?t.type:i.type(t.type)}(s,e,n,t,r.paramTypes);const o=function(){const e={array:n===qc.SEARCH&&"auto"},r=t.match(/\[\]$/)?{array:!0}:{};return Object.assign(e,r,s).array}();e=o?e.$asArray(o,n===qc.SEARCH):e;const a=void 0!==s.value||n===qc.SEARCH,c=g(s.dynamic)?!!s.dynamic:!!e.dynamic,l=g(s.raw)?!!s.raw:!!e.raw,u=function(t,e,n){const r=t.squash;if(!e||!1===r)return!1;if(!g(r)||null==r)return n;if(!0===r||y(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:[];y(r)&&s.push({from:r,to:void 0});const o=Za(s,(t=>t.from));return Ya(i,(t=>-1===o.indexOf(t.from))).concat(s)}(s,o,a,u),d=g(s.inherit)?!!s.inherit:!!e.inherit;this.isOptional=a,this.type=e,this.location=n,this.id=t,this.dynamic=c,this.raw=l,this.squash=u,this.replace=h,this.inherit=d,this.array=o,this.config=s}isDefaultValue(t){return this.isOptional&&this.type.equals(this.value(),t)}value(t){return t=(t=>{for(const e of this.replace)if(e.from===t)return e.to;return t})(t),m(t)?(()=>{if(this._defaultValueCache)return this._defaultValueCache.defaultValue;if(!Ua.$injector)throw new Error("Injectable functions cannot be called at configuration time");const t=Ua.$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===qc.SEARCH}validates(t){if((m(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!(y(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===Fc.changed(t,e,n).length}static validates(t,e={}){return t.map((t=>t.validates(e[t.id]))).reduce(Ja,!0)}}class Bc{constructor(t){if(t instanceof Bc){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 Bc(this)}applyRawParams(t){return this.paramValues=this.paramSchema.reduce(((e,n)=>{return ac(e,[(r=n).id,r.value(t[r.id])]);var r}),{}),this}parameter(t){return Qa(this.paramSchema,Ra("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 Fc.changed(n,this.paramValues,t.paramValues)}}class zc{static buildPath(t){const e=t.params();return t.$state().path.map((t=>new Bc(t).applyRawParams(e)))}static buildToPath(t,e){const n=zc.buildPath(e);return e.options().inherit?zc.inheritParams(t,n,Object.keys(e.params())):n}static applyViewConfigs(t,e,n){e.filter((t=>n.includes(t.state))).forEach((n=>{const r=Object.values(n.state.views||{}),i=zc.subPath(e,(t=>t===n)),s=r.map((e=>t.createViewConfig(i,e)));n.views=s.reduce(tc,[])}))}static inheritParams(t,e,n=[]){const r=t.map((t=>t.paramSchema)).reduce(tc,[]).filter((t=>!t.inherit)).map((t=>t.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=Qa(t,Ra("state",e));return Object.assign({},n&&n.paramValues)}(t,e.state)||{},r),a=Object.assign(i,o,s);return new Bc(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,zc.nonDynamicParams));)i++;var s,o;let a,c,l,u,h;a=t,c=a.slice(0,i),l=a.slice(i);const d=c.map((function(t,n){const r=t.clone();return r.paramValues=e[n].paramValues,r}));return u=e.slice(i),h=d.concat(u),{from:a,to:h,retained:c,retainedWithToParams:d,exiting:l,entering:u}}static matching(t,e,n){let r=!1;return oc(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&&zc.matching(t,e,n).length===t.length}static subPath(t,e){const n=Qa(t,e),r=t.indexOf(n);return-1===r?void 0:t.slice(0,r+1)}static nonDynamicParams(t){return t.state.parameters({inherit:!1}).filter((t=>!t.dynamic))}static paramValues(t){return t.reduce(((t,e)=>Object.assign(t,e.paramValues)),{})}}function Wc(t,e){return new Ic(t,e.at(-1).state,e.map((t=>t.paramValues)).reduce(((t,e)=>({...t,...e})),{}),{})}const Gc={LAZY:"LAZY",EAGER:"EAGER"},Kc=[Gc.EAGER,Gc.LAZY],Yc=[Gc.EAGER];class Qc{constructor(t){this._path=t}getTokens(){return this._path.reduce(((t,e)=>t.concat(e.resolvables.map((t=>t.token)))),[]).reduce(rc,[])}getResolvable(t){return cc(this._path.map((t=>t.resolvables)).reduce(tc,[]).filter((e=>e.token===t)))}getPolicy(t){const e=this.findNode(t);return t.getPolicy(e)}subContext(t){return new Qc(zc.subPath(this._path,(e=>e.state===t)))}addResolvables(t,e){const n=Qa(this._path,Ra("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=(Kc.includes(t)?t:"LAZY")===Gc.EAGER?Yc:Kc;Pc.traceResolvePath(this._path,t,e);const r=(t,e)=>n=>t.includes(this.getPolicy(n)[e]),i=this._path.reduce(((t,i)=>{const s=i.resolvables.filter(r(n,"when")),o=s.filter(r(["NOWAIT"],"async")),a=s.filter((t=>!r(["NOWAIT"],"async")(t))),c=this.subContext(i.state),l=t=>t.get(c,e).then((e=>({token:t.token,value:e})));return o.forEach(l),t.concat(a.map(l))}),[]);return Ua.$q.all(i)}injector(){return this._injector||(this._injector=new Zc)}findNode(t){return Qa(this._path,(e=>e.resolvables.includes(t)))}getDependencies(t){const e=this.findNode(t),n=(zc.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 cc(e);const r=Ua.$injector.get(t);if(m(r))throw new Error("Could not find Dependency Injection token: "+Ac(t));return new Lc(t,(()=>r),[],r)}))}}class Zc{constructor(){this.native=Ua.$injector}get(t){return Ua.$injector.get(t)}getAsync(t){return Ua.$q.resolve(Ua.$injector.get(t))}getNative(t){return Ua.$injector.get(t)}}const Jc=(t,e)=>t.reduce(((t,n)=>t||g(e[n])),!1);function Xc(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(g(t.views)&&Jc(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=>g(t[e]))).join(", ")}`);const i={},s=t.views||{$default:Ga(t,r)};return Object.entries(s).forEach((([r,s])=>{if(r=r||"$default",y(s)&&(s={component:s}),s=Object.assign({},s),Jc(e,s)&&Jc(n,s))throw new Error(`Cannot combine: ${e.join("|")} with: ${n.join("|")} in stateview: '${r}@${t.name}'`);s.resolveAs=s.resolveAs||"$resolve",s.$type="ng1",s.$context=t,s.$name=r;const o=el.normalizeUIViewTarget(s.$context,s.$name);s.$ngViewName=o.ngViewName,s.$ngViewContextAnchor=o.ngViewContextAnchor,i[r]=s})),i}let tl=0;class el{constructor(t,e,n){this.path=t,this.viewDecl=e,this.factory=n,this.component=void 0,this.template=void 0,this.$id=tl++,this.loaded=!1,this.getTemplate=(t,e)=>this.component?this.factory.makeComponentTemplate(t,e,this.component,this.viewDecl.bindings):this.template}load(){const t=Ua.$q,e=new Qc(this.path),n=this.path.reduce(((t,e)=>Object.assign(t,e.paramValues)),{}),r={template:t.resolve(this.factory.fromConfig(this.viewDecl,n,e)),controller:t.resolve(this.getController(e))};return t.all(r).then((t=>(Pc.traceViewServiceEvent("Loaded",this),this.controller=t.controller,Object.assign(this,t.template),this)))}getController(t){const e=this.viewDecl.controllerProvider;if(!fc(e))return this.viewDecl.controller;const n=ye(e),r=Array.isArray(e)?cc(e):e;return new Lc("",r,n).get(t)}static normalizeUIViewTarget(t,e=""){const n=e.split("@");let r=n[0]||"$default",i=y(n[1])?n[1]:"^";const s=/^(\^(?:\.\^)*)\.(.*$)/.exec(r);s&&(i=s[1],r=s[2]),"!"===r.charAt(0)&&(r=r.substring(1),i="");if(/^(\^(?:\.\^)*)$/.exec(i)){const e=i.split(".").reduce((t=>t.parent),t);i=e.name}else"."===i&&(i=t.name);return{ngViewName:r,ngViewContextAnchor:i}}}class nl{constructor(){this._ngViews=[],this._viewConfigs=[],this._viewConfigFactories={},this._listeners=[],this._pluginapi={_rootViewContext:this._rootViewContext.bind(this),_viewConfigFactory:this._viewConfigFactory.bind(this),_registeredUIView:t=>Qa(this._ngViews,(e=>e.id===t)),_registeredUIViews:()=>this._ngViews,_activeViewConfigs:()=>this._viewConfigs,_onSync:t=>(this._listeners.push(t),()=>Ba(this._listeners,t))},this._pluginapi._viewConfigFactory("ng1",function(){let t=null;return(e,n)=>(t=t||Ua.$injector.get("$templateFactory"),[new el(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){Pc.traceViewServiceEvent("<- Removing",t),Ba(this._viewConfigs,t)}activateViewConfig(t){Pc.traceViewServiceEvent("-> Registering",t),this._viewConfigs.push(t)}sync(){const t=this._ngViews.map((t=>[t.fqn,t])).reduce(ac,{});function e(t){let e=t.viewDecl.$context,n=0;for(;++n&&e.parent;)e=e.parent;return n}const n=ja(((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(nl.matches(t,r));return i.length>1&&i.sort(n(e,-1)),{ngView:r,viewConfig:i[0]}})),i=r.map((t=>t.viewConfig)),s=this._viewConfigs.filter((t=>!i.includes(t))).map((t=>({ngView:void 0,viewConfig:t})));r.forEach((t=>{-1!==this._ngViews.indexOf(t.ngView)&&t.ngView.configUpdated(t.viewConfig)}));const o=r.concat(s);this._listeners.forEach((t=>t(o))),Pc.traceViewSync(o)}registerUIView(t){Pc.traceViewServiceUIViewEvent("-> Registering",t);const e=this._ngViews;return e.filter((e=>e.fqn===t.fqn&&e.$type===t.$type)).length&&Pc.traceViewServiceUIViewEvent("!!!! duplicate ngView named:",t),e.push(t),this.sync(),()=>{-1!==e.indexOf(t)?(Pc.traceViewServiceUIViewEvent("<- Deregistering",t),Ba(e)(t)):Pc.traceViewServiceUIViewEvent("Tried removing non-registered ngView",t)}}available(){return this._ngViews.map((t=>t.fqn))}active(){return this._ngViews.filter((t=>t.$config)).map((t=>t.name))}}nl.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(!qa(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 rl={CREATE:0,BEFORE:1,RUN:2,SUCCESS:3,ERROR:4},il={TRANSITION:0,STATE:1},sl=2,ol=3,al=4,cl=5,ll=6;let ul=0;class hl{static superseded(t,e){const n=new hl(sl,"The transition has been superseded by a different transition",t);return e&&e.redirected&&(n.redirected=!0),n}static redirected(t){return hl.superseded(t,{redirected:!0})}static invalid(t){return new hl(al,"This transition is invalid",t)}static ignored(t){return new hl(cl,"The transition was ignored",t)}static aborted(t){return new hl(ol,"The transition has been aborted",t)}static errored(t){return new hl(ll,"The transition errored",t)}static normalize(t){return Ma(hl)(t)?t:hl.errored(t)}constructor(t,e,n){this.$id=ul++,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():Ac(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(hc(this),{_transitionRejection:this})}}class dl{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];dl.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 pl=new dl(!0),fl={current:()=>{},transition:null,traceData:{},bind:null};class $l{static chain(t,e){return t.reduce(((t,e)=>t.then((()=>e.invokeHook()))),e||Ua.$q.resolve())}static invokeHooks(t,e){for(let n=0;n<t.length;n++){const r=t[n].invokeHook();if($c(r)){const i=t.slice(n+1);return $l.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===rl.RUN&&!this.options.transition.isActive(),this.options=Wa(r,fl),this.type=n.eventType}logError(t){pl.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;Pc.traceHookInvocation(this,this.transition,n);const r=()=>t.callback.call(n.bind,this.transition,this.stateContext),i=t=>hl.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&&$c(t)?t.catch(i).then(o,s):o(t)}catch(t){return s(hl.normalize(t))}finally{t.invokeLimit&&++t.invokeCount>=t.invokeLimit&&t.deregister()}}handleHookResult(t){const e=this.getNotCurrentRejection();return e||($c(t)?t.then((t=>this.handleHookResult(t))):(Pc.traceHookResult(t,this.transition),!1===t?hl.aborted("Hook aborted transition").toPromise():t instanceof Ic?hl.redirected(t).toPromise():void 0))}getNotCurrentRejection(){return this.transition._aborted?hl.aborted().toPromise():this.isSuperseded()?hl.superseded(this.options.current()).toPromise():void 0}toString(){const{options:t,registeredHook:e}=this;return`${Pa("traceData.hookType")(t)||"internal"} context: ${Pa("traceData.context.state.name")(t)||Pa("traceData.context")(t)||"unknown"}, ${Cc(200,xc(e.callback))}`}}$l.HANDLE_RESULT=t=>e=>t.handleHookResult(e),$l.LOG_REJECTED_RESULT=t=>e=>{$c(e)&&e.catch((e=>t.logError(hl.normalize(e))))},$l.LOG_ERROR=t=>e=>t.logError(e),$l.REJECT_ERROR=()=>t=>hc(t),$l.THROW_ERROR=()=>t=>{throw t};class ml{static is(t){return!!/[!,*]+/.exec(t)}static fromString(t){return ml.is(t)?new ml(t):null}constructor(t){this.text=t,this.glob=t.split(".");const e=this.text.split(".").map((t=>"**"===t?"(?:|(?:\\.[^.]*)*)":"*"===t?"\\.[^.]*":"\\."+t)).join("");this.regexp=new RegExp("^"+e+"$")}matches(t){return this.regexp.test("."+t)}}function gl(t,e,n){const r=y(e)?[e]:e;return!!(C(r)?r:function(t){const e=r;for(let n=0;n<e.length;n++){const r=new ml(e[n]);if(r&&r.matches(t.name)||!r&&e[n]===t.name)return!0}return!1})(t,n)}class vl{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=>gl(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===il.STATE,o=t[i.name]||[],a=s?o:[cc(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 yl(t,e,n){const r=(t._registeredHooks=t._registeredHooks||{})[n.name]=[],i=Ba(r);function s(t,s,o={}){const a=new vl(e,n,s,t,i,o);return r.push(a),a.deregister.bind(a)}return t[n.name]=s,s}class bl{constructor(t){this.transition=t}buildHooksForPhase(t){return this.transition.transitionService._pluginapi._getEvents(t).map((t=>this.buildHooks(t))).reduce(tc,[]).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===il.STATE?n.state.self:null,a=new $l(e,o,r,s);return{hook:r,node:n,transitionHook:a}})))).reduce(tc,[]).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===rl.CREATE,i=this.transition.transitionService;return(r?[i]:[this.transition,i]).map((e=>e.getHooks(t.name))).filter(sc(Array.isArray,`broken event named: ${t.name}`)).reduce(tc,[]).filter((t=>t.matches(e,n)))}}class wl{constructor(t,e,n,r){if(this.globals=r,this.transitionService=n,this._deferred=Ua.$q.defer(),this.promise=this._deferred.promise,this._registeredHooks={},this._hookBuilder=new bl(this),this.isActive=()=>this.globals.transition===this,this._targetState=e,!e.valid())throw new Error(e.error());this._options=Object.assign({current:La(this)},e.options()),this.$id=n._transitionCount++;const i=zc.buildToPath(t,e);this._treeChanges=zc.treeChanges(t,i,this._options.reloadState),this.createTransitionHookRegFns();const s=this._hookBuilder.buildHooksForPhase(rl.CREATE);$l.invokeHooks(s,(()=>null)),this.applyViewConfigs()}createTransitionHookRegFns(){this.transitionService._pluginapi._getEvents().filter((t=>t.hookPhase!==rl.CREATE)).forEach((t=>yl(this,this.transitionService,t)))}getHooks(t){return this._registeredHooks[t]}applyViewConfigs(){const t=this._treeChanges.entering.map((t=>t.state));zc.applyViewConfigs(this.transitionService.$view,this._treeChanges.to,t)}$from(){return cc(this._treeChanges.from).state}$to(){return cc(this._treeChanges.to).state}from(){return this.$from().self}to(){return this.$to().self}targetState(){return this._targetState}is(t){return t instanceof wl?this.is({to:t.$to().name,from:t.$from().name}):!(t.to&&!gl(this.$to(),t.to,this)||t.from&&!gl(this.$from(),t.from,this))}params(t="to"){return Object.freeze(this._treeChanges[t].map((t=>t.paramValues)).reduce(((t,e)=>({...t,...e})),{}))}paramsChanged(){const t=this.params("from"),e=this.params("to"),n=[].concat(this._treeChanges.to).concat(this._treeChanges.from).map((t=>t.paramSchema)).reduce(ec,[]).reduce(rc,[]);return Fc.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=zc.subPath(n,(e=>e.state===t||e.state.name===t))),new Qc(n).injector()}getResolveTokens(t="to"){return new Qc(this._treeChanges[t]).getTokens()}addResolvable(t,e){t=Ma(Lc)(t)?t:new Lc(t);const n="string"==typeof e?e:e.name,r=this._treeChanges.to,i=Qa(r,(t=>t.state.name===n));rt(!!i,`targetNode not found ${n}`);new Qc(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 Za(this._treeChanges.entering,(t=>t.state)).map((t=>t.self))}exiting(){return Za(this._treeChanges.exiting,(t=>t.state)).map((t=>t.self)).reverse()}retained(){return Za(this._treeChanges.retained,(t=>t.state)).map((t=>t.self))}views(t="entering",e){let n=this._treeChanges[t];return n=e?n.filter(Ra("state",e)):n,n.map((t=>t.views)).reduce(tc,[])}treeChanges(t){return t?this._treeChanges[t]:this._treeChanges}redirect(t){let e=1,n=this;for(;null!=(n=n.redirectedFrom());)if(++e>20)throw new Error("Too many consecutive Transition redirects (20+)");const r={redirectedFrom:this,source:"redirect"};"url"===this.options().source&&!1!==t.options().location&&(r.location="replace");const i=Object.assign({},this.options(),t.options(),r);t=t.withOptions(i,!0);const s=this.transitionService.create(this._treeChanges.from,t),o=this._treeChanges.entering,a=s._treeChanges.entering;return zc.matching(a,o,zc.nonDynamicParams).filter((e=>{return!(n=t.options().reloadState,t=>n&&t.state.includes[n.name])(e);var n})).forEach(((t,e)=>{t.resolvables=o[e].resolvables})),s}_changedParams(){const t=this._treeChanges;if(this._options.reload)return;if(t.exiting.length||t.entering.length)return;if(t.to.length!==t.from.length)return;if(oc(t.to,t.from).map((t=>t[0].state!==t[1].state)).reduce(Xa,!1))return;const e=t.to.map((t=>t.paramSchema)),[n,r]=[t.to,t.from].map((t=>t.map((t=>t.paramValues))));return oc(e,n,r).map((([t,e,n])=>Fc.changed(t,e,n))).reduce(tc,[])}dynamic(){const t=this._changedParams();return!!t&&t.map((t=>t.dynamic)).reduce(Xa,!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=zc.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=$l.runAllHooks,e=t=>this._hookBuilder.buildHooksForPhase(t),n=e(rl.BEFORE);return $l.invokeHooks(n,(()=>{const t=this.globals;return t.lastStartedTransitionId=this.$id,t.transition=this,t.transitionHistory.enqueue(this),Pc.traceTransitionStart(this),Ua.$q.resolve(void 0)})).then((()=>{const t=e(rl.RUN);return $l.invokeHooks(t,(()=>Ua.$q.resolve(void 0)))})).then((()=>{Pc.traceSuccess(this.$to(),this),this.success=!0,this._deferred.resolve(this.to()),t(e(rl.SUCCESS))}),(n=>{Pc.traceError(n,this),this.success=!1,this._deferred.reject(n),this._error=n,t(e(rl.ERROR))})),this.promise}valid(){return!this.error()||void 0!==this.success}abort(){m(this.success)&&(this._aborted=!0)}error(){const t=this.$to();if(t.self.abstract)return hl.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}:${Ac(n[t.id])}]`)).join(", "),i=`The following parameter values are not valid for state '${t.name}': ${e}`;return hl.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}'${Ac(n(this._treeChanges.from.map((t=>t.paramValues)).reduce(((t,e)=>({...t,...e})),{})))} -> ${this.valid()?"":"(X) "}'${v(e)?e.name:e}'${Ac(n(this.params()))} )`}}wl.diToken=wl;const El=["$transition$",wl];function Cl(t){const e=Object.values(t.treeChanges()).reduce(tc,[]).reduce(rc,[]),n=t=>El.includes(t.token)?Lc.fromData(t.token,null):t;e.forEach((t=>{t.resolvables=t.resolvables.map(n)}))}function Ol(t){return(e,n)=>(0,n.$$state()[t])(e,n)}const Sl=Ol("onExit"),xl=Ol("onRetain"),Al=Ol("onEnter"),kl=1e3,_l=t=>new Qc(t.treeChanges().to).resolvePath("EAGER",t).then((()=>{})),Tl=(t,e)=>new Qc(t.treeChanges().to).subContext(e.$$state()).resolvePath("LAZY",t).then((()=>{})),jl=t=>new Qc(t.treeChanges().to).resolvePath("LAZY",t).then((()=>{})),Vl=t=>{const e=Ua.$q,n=t.views("entering");if(n.length)return e.all(n.map((t=>e.resolve(t.load())))).then((()=>{}))},Nl=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,lc(t.params(),e.params)}),{priority:1e4}),t.promise.then(n,n)};function Rl(t,e,n,r){return t.onBefore({entering:t=>!!t.lazyLoad},(t=>{const i=t.entering().filter((t=>!!t.$$state().lazyLoad)).map((e=>Pl(t,e,r)));return Ua.$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 Pl(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,Ua.$q.reject(t));i=r._promise=Ua.$q.resolve(r(t,e)).then((function(t){t&&Array.isArray(t.states)&&t.states.forEach((t=>n.register(t)));return t})).then(s,o)}return i}class Dl{constructor(t,e,n,r,i=!1,s=$l.HANDLE_RESULT,o=$l.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 Ml(t){const e=t._ignoredReason();if(!e)return;Pc.traceTransitionIgnored(t);const n=t.globals.transition;return"SameAsCurrent"===e&&n&&n.abort(),hl.ignored().toPromise()}function Ll(t){if(!t.valid())throw new Error(t.error().toString())}let Il={location:!0,relative:null,inherit:!1,notify:!0,reload:!1,supercede:!0,custom:{},current:()=>null,source:"unknown"};class Ul{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(La(this),{},La(this),["_definePathType","_defineEvent","_getPathTypes","_getEvents","getHooks"]),this._defineCorePaths(),this._defineCoreEvents(),this._registerCoreTransitionHooks(),t.successfulTransitions.onEvict(Cl)}$get=["$state","$urlService","$stateRegistry","$view",(t,e,n,r)=>(this._deregisterHookFns.lazyLoad=Rl(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 Ic?e:y(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 C(n)?Ua.$q.resolve(n(t)).then(i):i(n)}))})(this,t),this._deregisterHookFns.activateViews=((t,e)=>{t.onSuccess({},(t=>{const n=t.views("entering"),r=t.views("exiting");(n.length||r.length)&&(r.forEach((t=>e.deactivateViewConfig(t))),n.forEach((t=>e.activateViewConfig(t))),e.sync())}))})(this,r),this)];create(t,e){return new wl(t,e,this,this.globals)}_defineCoreEvents(){const t=rl,e=$l,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}=il;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=$l.HANDLE_RESULT,o=$l.REJECT_ERROR,a=!1){const c=new Dl(t,e,n,r,i,s,o,a);this._eventTypes.push(c),yl(this,this,c)}_getEvents(t){return(g(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(Lc.fromData(wl,t),""),t.addResolvable(Lc.fromData("$transition$",t),""),t.addResolvable(Lc.fromData("$stateParams",t.params()),""),t.entering().forEach((e=>{t.addResolvable(Lc.fromData("$state$",e),e)}))})),t.ignored=(t=>t.onBefore({},Ml,{priority:-9999}))(this),t.invalid=(t=>t.onBefore({},Ll,{priority:-1e4}))(this),t.onExit=(t=>t.onExit({exiting:t=>!!t.onExit},Sl))(this),t.onRetain=(t=>t.onRetain({retained:t=>!!t.onRetain},xl))(this),t.onEnter=(t=>t.onEnter({entering:t=>!!t.onEnter},Al))(this),t.eagerResolve=(t=>t.onStart({},_l,{priority:kl}))(this),t.lazyResolve=(t=>t.onEnter({entering:La(!0)},Tl,{priority:kl}))(this),t.resolveAll=(t=>t.onFinish({},jl,{priority:kl}))(this),t.loadViews=(t=>t.onFinish({},Vl))(this),t.updateGlobals=(t=>t.onCreate({},Nl))(this),t.lazyLoad=Rl(this)}}const ql=ct("$stateProvider");class Hl{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 hl?new Error(t.toString()):new Error(t)};const n=["current","$current","params","transition"],r=Object.keys(Hl.prototype).filter((t=>!n.includes(t)));Ha(La(Hl.prototype),this,La(this),r),pl.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 ql("stateinvalid","'name' required");try{this.stateRegistry.register(t)}catch(t){throw ql("stateinvalid",t.message)}return this}_handleInvalidTargetState(t,e){const n=Wc(this.stateRegistry,t),r=this.globals,i=()=>r.transitionHistory.peekTail(),s=i(),o=new wc(this.invalidCallbacks.slice()),a=new Qc(t).injector(),c=t=>{if(!(t instanceof Ic))return;let e=t;return e=this.target(e.identifier(),e.params(),e.options()),e.valid()?i()!==s?hl.superseded().toPromise():this.transitionTo(e.identifier(),e.params(),e.options()):hl.invalid(e.error()).toPromise()};return function t(){const r=o.dequeue();return void 0===r?hl.invalid(e.error()).toPromise():Ua.$q.resolve(r(e,n,a)).then(c).then((e=>e||t()))}()}onInvalid(t){return this.invalidCallbacks.push(t),function(){Ba(this.invalidCallbacks)(t)}.bind(this)}reload(t){return this.transitionTo(this.globals.current,this.globals.params,{reload:!g(t)||t,inherit:!1,notify:!1})}go(t,e,n){const r=Wa(n,{relative:this.$current,inherit:!0},Il);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 '${y(n.reload)?n.reload:n.reload.name}'`);return new Ic(this.stateRegistry,t,e,n)}getCurrentPath(){const t=this.globals.successfulTransitions.peekTail();return t?t.treeChanges().to:(()=>[new Bc(this.stateRegistry.root())])()}transitionTo(t,e={},n={}){n=Wa(n,Il);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 hc(i.error());if(!1===n.supercede&&r())return hl.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 hl){const n=this.globals.lastStartedTransitionId<=t.$id;if(e.type===cl)return n&&this.urlService.update(),Ua.$q.resolve(this.globals.current);const r=e.detail;if(e.type===sl&&e.redirected&&r instanceof Ic){const e=t.redirect(r);return e.run().catch(o(e))}if(e.type===ol)return n&&this.urlService.update(),Ua.$q.reject(e)}return this.defaultErrorHandler()(e),Ua.$q.reject(e)},a=this.transitionService.create(s,i),c=a.run().catch(o(a));return uc(c),Object.assign(c,{transition:a})}is(t,e,n){n=Wa(n,{relative:this.$current});const r=this.stateRegistry.matcher.find(t,n.relative);if(!g(r))return;if(this.$current!==r)return!1;if(!e)return!0;const i=r.parameters({inherit:!0,matchingKeys:e});return Fc.equals(i,Fc.values(i,e),this.globals.params)}includes(t,e,n){n=Wa(n,{relative:this.$current});const r=y(t)&&ml.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(!g(i))return;if(!g(s[i.name]))return!1;if(!e)return!0;const o=i.parameters({inherit:!0,matchingKeys:e});return Fc.equals(o,Fc.values(o,e),this.globals.params)}href(t,e,n){n=Wa(n,{lossy:!0,inherit:!0,absolute:!1,relative:this.$current}),e=e||{};const r=this.stateRegistry.matcher.find(t,n.relative);if(!g(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=Wc(this.stateRegistry,r);return Pl(e=e||this.transitionService.create(r,i),n)}}class Fl{constructor(){this.enabled=!1}useAnchorScroll(){this.enabled=!0}$get=["$anchorScroll","$timeout",(t,e)=>this.enabled?t:function(t){return e((()=>{t[0].scrollIntoView()}),0,!1)}]}class Bl{constructor(){this._useHttp=!1}$get=["$http","$templateCache","$templateRequest","$q","$injector",(t,e,n,r,i)=>(this.$templateRequest=n,this.$http=t,this.$templateCache=e,this.$q=r,this.$injector=i,this)];useHttpService(t){this._useHttp=t}fromConfig(t,e,n){const r=t=>this.$q.resolve(t).then((t=>({template:t}))),i=t=>this.$q.resolve(t).then((t=>({component:t})));switch((t=>g(t.template)?"template":g(t.templateUrl)?"templateUrl":g(t.templateProvider)?"templateProvider":g(t.component)?"component":g(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 C(t)?t(e):t}fromUrl(t,e){return C(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=ye(t),i=Array.isArray(t)?cc(t):t;return new Lc("",i,r).get(n)}fromComponentProvider(t,e,n){const r=ye(t),i=Array.isArray(t)?cc(t):t;return new Lc("",i,r).get(n)}makeComponentTemplate(t,e,n,r){r=r||{};const i=t=>{const e=Oc(t);return/^(x|data)-/.exec(e)?`x-${e}`:e},s=function(t){const e=Ua.$injector.get(t+"Directive");if(!e||!e.length)throw new Error(`Unable to find component named '${t}'`);return e.map(zl).reduce(tc,[])}(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&&ye(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 zl=t=>v(t.bindToController)?Wl(t.bindToController):Wl(t.scope),Wl=t=>Object.keys(t||{}).map((e=>[e,/^([=<@&])[?]?(.*)/.exec(t[e])])).filter((t=>g(t)&&Array.isArray(t[1]))).map((t=>({name:t[1][2]||t[0],type:t[1][1]})));function Gl(t,e){let n=["",""],r=t.replace(/[\\[\]^$*+?.()|{}]/g,"\\$&");if(!e)return r;switch(e.squash){case!1:n=["(",")"+(e.isOptional?"?":"")];break;case!0:r=r.replace(/\/$/,""),n=["(?:/(",")|/)?"];break;default:n=[`(${e.squash}|`,")?"]}return r+n[0]+e.type.pattern.source+n[1]}const Kl=function(t){const e=new RegExp("("+t+")","g");return t=>t.split(e).filter(Boolean)}("/"),Yl={state:{params:{}},strict:!0,caseInsensitive:!0};class Ql{static encodeDashes(t){return encodeURIComponent(t).replace(/-/g,(t=>`%5C%${t.charCodeAt(0).toString(16).toUpperCase()}`))}static pathSegmentsAndParams(t){return oc(t._segments,t._params.filter((t=>t.location===qc.PATH)).concat(void 0)).reduce(tc,[]).filter((t=>""!==t&&g(t)))}static queryParams(t){return t._params.filter((t=>t.location===qc.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(Ql.pathSegmentsAndParams).reduce(tc,[]).reduce(kc,[]).map((t=>y(t)?Kl(t):t)).reduce(tc,[]))(t).map((t=>"/"===t?1:y(t)?2:t instanceof Fc?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=oc(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=Wa(r,Yl),this.pattern=t;const i=/([:*])([\w[\]]+)|\{([\w[\]]+)(?::\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,s=/([:]?)([\w[\].-]+)|\{([\w[\].-]+)(?::\s*((?:[^{}\\]+|\\.|\{(?:[^{}\\]+|\\.)*\})+))?\}/g,o=[];let a,c=0;const l=e=>{if(!Ql.nameValidator.test(e))throw new Error(`Invalid parameter name '${e}' in pattern '${t}'`);if(Qa(this._params,Ra("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,d;for(;(a=i.exec(t))&&(h=u(a,!1),!(h.segment.indexOf("?")>=0));)l(h.id),this._params.push(n.fromPath(h.id,h.type,r.state)),this._segments.push(h.segment),o.push([h.segment,cc(this._params)]),c=i.lastIndex;d=t.substring(c);const p=d.indexOf("?");if(p>=0){const t=d.substring(p);if(d=d.substring(0,p),t.length>0)for(c=0;a=s.exec(t);)h=u(a,!0),l(h.id),this._params.push(n.fromSearch(h.id,h.type,r.state)),c=i.lastIndex}this._segments.push(d),this._compiled=o.map((t=>Gl.apply(null,t))).concat(Gl(d))}append(t){return this._children.push(t),t._cache={path:this._cache.path.concat(t),parent:this,pattern:null},t}isRoot(){return this._cache.path[0]===this}toString(){return this.pattern}_getDecodedParamValue(t,e){return g(t)&&(t=e.type.decode(t)),e.value(t)}exec(t,e={},n){const r=(i=this._cache,s="pattern",o=()=>new RegExp(["^",ic(this._cache.path.map((t=>t._compiled))).join(""),!1===this.config.strict?"/?":"","$"].join(""),this.config.caseInsensitive?"i":void 0),i[s]=i[s]||o()).exec(t);var i,s,o;if(!r)return null;const a=this.parameters(),c=a.filter((t=>!t.isSearch())),l=a.filter((t=>t.isSearch())),u=this._cache.path.map((t=>t._segments.length-1)).reduce(((t,e)=>t+e)),h={};if(u!==r.length-1)throw new Error(`Unbalanced capture group in route '${this.pattern}'`);function d(t){const e=t=>t.split("").reverse().join(""),n=Za(e(t).split(/-(?!\\)/),e);return Za(n,(t=>t.replace(/\\-/g,"-"))).reverse()}for(let t=0;t<u;t++){const e=c[t];let n=r[t+1];for(let t=0;t<e.replace.length;t++)e.replace[t].from===n&&(n=e.replace[t].to);n&&!0===e.array&&(n=d(n)),h[e.id]=this._getDecodedParamValue(n,e)}return l.forEach((t=>{let n=e[t.id];for(let e=0;e<t.replace.length;e++)t.replace[e].from===n&&(n=t.replace[e].to);h[t.id]=this._getDecodedParamValue(n,t)})),n&&(h["#"]=n),h}parameters(t={}){return!1===t.inherit?this._params:ic(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(Ja,!0)}format(t={}){const e=this._cache.path,n=e.map(Ql.pathSegmentsAndParams).reduce(tc,[]).map((t=>y(t)?t:i(t))),r=e.map(Ql.queryParams).reduce(tc,[]).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(y(e))return t+e;const{squash:n,encoded:r,param:i}=e;return!0===n?t.match(/\/$/)?t.slice(0,-1):t:y(n)?t+n:!1!==n||null==r?t:Array.isArray(r)?t+Za(r,Ql.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=Za(r,encodeURIComponent)),r.map((t=>`${e.id}=${t}`))})).reduce(tc,[]).join("&");return s+(o?`?${o}`:"")+(t["#"]?"#"+t["#"]:"")}}Ql.nameValidator=/^\w+([-.]+\w+)*(?:\[\])?$/;class Zl{name=void 0;navigable=void 0;parent=void 0;params=void 0;url=void 0;constructor(t){Object.assign(this,t),this.$$state=()=>this,this.self=t;const e=this.name?ml.fromString(this.name):null;this.__stateObjectCache={nameGlob:e}}is(t){return this===t||this.self===t||this.fqn()===t}fqn(){if(!(this.parent&&this.parent instanceof this.constructor))return this.name;const t=this.parent.fqn();return t?t+"."+this.name:this.name}root(){return this.parent&&this.parent.root()||this}parameters(t){return((t=Wa(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)||Qa(Object.values(this.params),Ra("id",t))||e.inherit&&this.parent&&this.parent.parameter(t)}toString(){return this.fqn()}}Zl.isStateDeclaration=t=>C(t.$$state),Zl.isState=t=>v(t.__stateObjectCache);class Jl{constructor(t,e,n){this.urlService=t,this.stateService=e,this.routerGlobals=n}create(t,e){const{isState:n,isStateDeclaration:r}=Zl,i=Ia([[y,t=>i(this.urlService.compile(t))],[Ma(Ql),t=>this.fromUrlMatcher(t,e)],[(s=n,o=r,(...t)=>s.apply(null,t)||o.apply(null,t)),t=>this.fromState(t,this.stateService,this.routerGlobals)],[Ma(RegExp),t=>this.fromRegExp(t,e)],[C,t=>new Xl(t,e)]]);var s,o;const a=i(t);if(!a)throw new Error("invalid 'what' in when()");return a}fromUrlMatcher(t,e){let n=e;y(e)&&(e=this.urlService.compile(e)),Ma(Ql)(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 Xl((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=Zl.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=y(e)?t=>e.replace(/\$(\$|\d{1,2})/,((e,n)=>t["$"===n?0:Number(n)])):e,r={regexp:t,type:"REGEXP"};return Object.assign(new Xl((e=>t.exec(e.path)),n),r)}}Jl.isUrlRule=t=>t&&["type","match","handler"].every((e=>g(t[e])));class Xl{constructor(t,e){this.match=t,this.type="RAW",this.$id=-1,this._group=void 0,this.handler=e||(t=>t)}matchPriority(t){return rt(m(t)),0-this.$id}}let tu;function eu(t){if(!(C(t)||y(t)||Ma(Ic)(t)||Ic.isDef(t)))throw new Error("'handler' must be a string, function, TargetState, or have a state: 'newtarget' property");return C(t)?t:La(t)}tu=(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?Ql.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 nu{constructor(t){this._sortFn=tu,this._rules=[],this._id=0,this.urlRuleFactory=t}initial(t){const e=eu(t);this.rule(this.urlRuleFactory.create(((t,e)=>0===e.globals.transitionHistory.size()&&!!/^\/?$/.exec(t.path)),e))}otherwise(t){const e=eu(t);this._otherwiseFn=this.urlRuleFactory.create(La(!0),e),this._sorted=!1}removeRule(t){Ba(this._rules,t)}rule(t){if(!Jl.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 g(n&&n.priority)&&(r.priority=n.priority),this.rule(r),r}}class ru{constructor(t){this.urlServiceConfig=t}fromConfig(t,e,n){return new Fc(t,e,qc.CONFIG,this.urlServiceConfig,n)}fromPath(t,e,n){return new Fc(t,e,qc.PATH,this.urlServiceConfig,n)}fromSearch(t,e,n){return new Fc(t,e,qc.SEARCH,this.urlServiceConfig,n)}}class iu{static $inject=["$locationProvider","$stateProvider","$routerGlobalsProvider","$urlConfigProvider"];constructor(t,e,n,r){this.stateService=e,this.stateService.urlService=this,this.$locationProvider=t,this.$location=void 0,this.$browser=void 0,this.urlRuleFactory=new Jl(this,this.stateService,n),this.rules=new nu(this.urlRuleFactory),this.config=r,this.paramFactory=new ru(this.config),this.path=()=>this.$location.path(),this.search=()=>this.$location.search(),this.hash=()=>this.$location.hash(),this._urlListeners=[]}$get=["$location","$browser","$rootScope",(t,e,n)=>(this.$location=t,this.$browser=e,n.$on("$locationChangeSuccess",(t=>this._urlListeners.forEach((e=>e(t))))),this.listen(),this)];html5Mode(){return this.$locationProvider.getHtml5Mode().enabled&&"undefined"!=typeof history}baseHref(){return this._baseHref||(this._baseHref=this.$browser.baseHref()||window.location.pathname)}url(t,e=!1,n){return g(t)&&this.$location.url(t),e&&this.$location.replace(),n&&this.$location.state(n),this.$location.url()}onChange(t){return this._urlListeners.push(t),()=>Ba(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);Ia([[y,t=>this.url(t,!0)],[Ic.isDef,t=>e.go(t.state,t.params,t.options)],[Ma(Ic),t=>e.go(t.state(),t.params(),t.options())]])(r&&r.rule.handler(r.match,n))}listen(t){if(!1!==t)return this._stopListeningFn=this._stopListeningFn||this.onChange((t=>this.sync(t)));this._stopListeningFn&&this._stopListeningFn(),delete this._stopListeningFn}match(t){t=Object.assign({path:"",search:{},hash:""},t);const e=this.rules.rules(),n=e=>{const n=e.match(t);return n&&{match:n,rule:e,weight:e.matchPriority(n)}};let r;for(let t=0;t<e.length&&(!r||r.rule._group===e[t]._group);t++){const i=n(e[t]);r=!r||i&&i.weight>r.weight?i:r}return r}update(t){t?this.location=this.url():this.url()!==this.location&&this.url(this.location,!0)}push(t,e,n){const r=n&&!!n.replace;this.url(t.format(e||{}),r)}href(t,e,n){let r=t.format(e);if(null==r)return null;n=n||{absolute:!1};const i=this.html5Mode();if(i||null===r||(r="#"+this.$locationProvider.getHashPrefix()+r),r=function(t,e,n,r){return"/"===r?t:e?(t=>t.replace(/\/[^/]*$/,""))(r)+t:n?r.slice(1)+t:t}(r,i,n.absolute,this.baseHref()),!n.absolute||!r)return r;const s=!i&&r?"/":"",o=this.$location.port(),a=80===o||443===o?"":":"+o;return[this.$location.protocol(),"://",this.$location.host(),a,s,r].join("")}compile(t,e){const n=this.config,r=e&&!e.state&&e.params;e=r?Object.assign({state:{params:r}},e):e;const i={strict:n._isStrictMode,caseInsensitive:n._isCaseInsensitive};return new Ql(t,n.paramTypes,this.paramFactory,Object.assign(i,e))}isMatcher(t){if(!v(t))return!1;let e=!0;return Object.entries(Ql.prototype).forEach((([n,r])=>{C(r)&&(e=e&&g(t[n])&&C(t[n]))})),e}}class su{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=y(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 ou(t){return t.self.$$state=()=>t,t.self}function au(t){return t.parent&&t.parent.data&&(t.data=t.self.data=Fa(t.parent.data,t.data)),t.data}function cu(t,e){return function(n){let r=n.self;if(r&&r.url&&r.name&&r.name.match(/\.\*\*$/)){const t={};lc(r,t),t.url+="{remainder:any}",r=t}const i=n.parent,s=function(t){if(!y(t))return!1;const e="^"===t.charAt(0);return{val:e?t.substring(1):t,root:e}}(r.url),o=s?t.compile(s.val,{state:r}):r.url;if(!o)return null;if(!t.isMatcher(o))throw new Error(`Invalid url '${o}' in state '${n}'`);return s&&s.root?o:(i&&i.navigable||e()).url.append(o)}}function lu(t){return function(e){return!t(e)&&e.url?e:e.parent?e.parent.navigable:null}}function uu(t){return t.parent&&!t.abstract?t.parent.path.concat(t):[t]}function hu(t){const e=t.parent?Object.assign({},t.parent.includes):{};return e[t.name]=!0,e}function du(t){const e=Ia([[t=>t.resolveFn,t=>new Lc($u(t),t.resolveFn,t.deps,t.policy)],[t=>t.useFactory,t=>new Lc($u(t),t.useFactory,t.deps||t.dependencies,t.policy)],[t=>t.useClass,t=>new Lc($u(t),(()=>new t.useClass),[],t.policy)],[t=>t.useValue,t=>new Lc($u(t),(()=>t.useValue),[],t.policy,t.useValue)],[t=>t.useExisting,t=>new Lc($u(t),(t=>t),[t.useExisting],t.policy)]]),n=Ia([[Na((t=>t.val),y),t=>new Lc(t.token,(t=>t),[t.val],t.policy)],[Na((t=>t.val),Array.isArray),t=>new Lc(t.token,cc(t.val),t.val.slice(0,-1),t.policy)],[Na((t=>t.val),C),t=>new Lc(t.token,t.val,(t=>{const e=Ua.$injector;return t.$inject||e&&ye(t,e.strictDi)||"deferred"})(t.val),t.policy)]]),r=Ia([[Ma(Lc),t=>t],[t=>!(!t.token||!t.resolveFn),e],[t=>!!(t&&t.val&&(y(t.val)||Array.isArray(t.val)||C(t.val))),n],[La(!0),t=>{throw new Error("Invalid resolve value: "+Ac(t))}]]),i=t.resolve,s=Array.isArray(i)?i:((t,e)=>Object.keys(t||{}).map((n=>({token:n,val:t[n],deps:void 0,policy:e[n]}))))(i,t.resolvePolicy||{});return s.map(r)}class pu{constructor(t,e){this.matcher=t,this.$injector=void 0;const n=this,r=()=>t.find("");var i;this.builders={name:[t=>t.name],self:[ou],parent:[function(e){return fu(e)?null:t.find(n.parentName(e))||r()}],data:[au],url:[cu(e,r)],navigable:[lu(fu)],params:[(i=e.paramFactory,function(t){const e=t.url&&t.url.parameters({inherit:!1})||[],n=Object.values(Za(Ka(t.params||{},e.map((t=>t.id))),((e,n)=>i.fromConfig(n,null,t.self))));return e.concat(n).map((t=>[t.id,t])).reduce(ac,{})})],views:[],path:[uu],includes:[hu],resolvables:[du]}}builder(t,e){const n=this.builders,r=n[t]||[];return y(t)&&!g(e)?r.length>1?r:r[0]:y(t)&&C(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?y(t.parent)?t.parent:t.parent.name:""}name(t){const e=t.name;if(-1!==e.indexOf(".")||!t.parent)return e;const n=y(t.parent)?t.parent:t.parent.name;return n?n+"."+e:e}}function fu(t){return""===t.name}function $u(t){return t.provide||t.token}class mu{constructor(t,e,n,r,i){this.stateRegistry=t,this.urlServiceRules=e,this.states=n,this.builder=r,this.listeners=i,this.queue=[]}register(t){const e=new Zl(t);if(!y(name))throw new Error("State must have a valid name");if(Object.prototype.hasOwnProperty.call(this.states,e.name)||this.queue.map((t=>t.name)).includes(e.name))throw new Error(`State '${e.name}' is already defined`);return this.queue.push(e),this.flush(),e}flush(){const{queue:t,states:e,builder:n}=this,r=[],i=[],s={},o=t=>Object.prototype.hasOwnProperty.call(this.states,t)&&this.states[t],a=()=>{r.length&&this.listeners.forEach((t=>t("registered",r.map((t=>t.self)))))};for(;t.length>0;){const c=t.shift(),l=c.name,u=n.build(c),h=i.indexOf(c);if(u){const t=o(l);if(t&&t.name===l)throw new Error(`State '${l}' is already defined`);const n=o(l+".**");n&&this.stateRegistry.deregister(n),e[l]=c,this.attachRoute(c),h>=0&&i.splice(h,1),r.push(c);continue}const d=s[l];if(s[l]=t.length,h>=0&&d===t.length)return t.push(c),a(),e;h<0&&i.push(c),t.push(c)}return a(),e}attachRoute(t){if(t.abstract||!t.url)return;const e=this.urlServiceRules;e.rule(e.urlRuleFactory.create(t))}}class gu{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 su(this.states),this.builder=new pu(this.matcher,t),this.builder.builder("views",Xc),this.builder.builder("onExit",this.getStateHookBuilder("onExit")),this.builder.builder("onRetain",this.getStateHookBuilder("onRetain")),this.builder.builder("onEnter",this.getStateHookBuilder("onEnter")),this.stateQueue=new mu(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 Qc(t.treeChanges(i)).subContext(n.$$state()),o=Object.assign(vu(s),{$state$:n,$transition$:t});return e.$injector.invoke(r,this,o)}:void 0}}registerRoot(){this._root=this.stateQueue.register({name:"",url:"^",views:null,params:{"#":{value:null,type:"hash",dynamic:!0}},abstract:!0}),this._root.navigable=null}onStatesChanged(t){return this.listeners.push(t),function(){Ba(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(Ra("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 vu=t=>t.getTokens().filter(y).map((e=>{const n=t.getResolvable(e);return[e,"NOWAIT"===t.getPolicy(n).async?n.promise:n.data]})).reduce(ac,{});function yu(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 bu(t){const e=t.parent().inheritedData("$ngView"),n=Pa("$cfg.path")(e);return n?cc(n).state.name:void 0}function wu(t,e,n){const r=n.ngState||t.current.name,i=Object.assign(function(t,e){return{relative:bu(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 Eu(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 Cu(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 Ou(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 Su(t,e,n,r){const i=t;return{restrict:"A",require:["?^ngSrefActive","?^ngSrefActiveEq"],link:(t,s,o,a)=>{const c=Eu(s),l=a[1]||a[0];let u=null;const h={},d=()=>wu(i,s,h),p=yu(o.ngSref);function f(){const t=d();u&&u(),l&&(u=l.$$addStateInfo(t.ngState,t.ngStateParams)),null!=t.href&&o.$set(c.attr,t.href)}if(h.ngState=p.state,h.ngStateOpts=o.ngSrefOpts?t.$eval(o.ngSrefOpts):{},p.paramExpr&&(t.$watch(p.paramExpr,(function(t){h.ngStateParams=Object.assign({},t),f()}),!0),h.ngStateParams=Object.assign({},t.$eval(p.paramExpr))),f(),t.$on("$destroy",n.onStatesChanged(f)),t.$on("$destroy",r.onSuccess({},f)),!c.clickable)return;const $=Cu(s,i,e,c,d);Ou(s,t,$,h.ngStateOpts)}}}function xu(t,e,n,r){return{restrict:"A",require:["?^ngSrefActive","?^ngSrefActiveEq"],link:function(i,s,o,a){const c=Eu(s),l=a[1]||a[0];let u,h=null;const d={},p=()=>wu(t,s,d),f=["ngState","ngStateParams","ngStateOpts"],$=f.reduce(((t,e)=>(t[e]=()=>{},t)),{});function m(){const t=p();h&&h(),l&&(h=l.$$addStateInfo(t.ngState,t.ngStateParams)),null!=t.href&&o.$set(c.attr,t.href)}f.forEach((t=>{d[t]=o[t]?i.$eval(o[t]):null,o.$observe(t,(e=>{$[t](),$[t]=i.$watch(e,(e=>{d[t]=e,m()}),!0)}))})),m(),i.$on("$destroy",n.onStatesChanged(m)),i.$on("$destroy",r.onSuccess({},m)),c.clickable&&(u=Cu(s,t,e,c,p),Ou(s,i,u,d.ngStateOpts))}}}function Au(t,e,n,r,i){return{restrict:"A",controller:function(s,o,a){let c,l,u=[];c=n(a.ngSrefActiveEq||"",!1)(s);try{l=s.$eval(a.ngSrefActive)}catch(t){}function h(t){t.promise.then($,(()=>{}))}function d(){p(l)}function p(t){v(t)&&(u=[],Object.entries(t).forEach((([t,e])=>{const n=function(t,e){const n=yu(t);f(n.state,s.$eval(n.paramExpr),e)};y(e)?n(e,t):Array.isArray(e)&&e.forEach((e=>{n(e,t)}))})))}function f(e,n,r){const i={state:t.get(e,bu(o))||{name:e},params:n,activeClass:r};return u.push(i),function(){Ba(u)(i)}}function $(){const e=t=>t.split(/\s/).filter(Boolean),n=t=>t.map((t=>t.activeClass)).map(e).reduce(tc,[]),r=n(u).concat(e(c)).reduce(rc,[]),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(rc,[]),h=r.filter((t=>!l.includes(t)));s.$evalAsync((()=>{l.forEach((t=>o[0].classList.add(t))),h.forEach((t=>o[0].classList.remove(t)))}))}l=l||n(a.ngSrefActive||"",!1)(s),p(l),this.$$addStateInfo=function(t,e){if(v(l)&&u.length>0)return;const n=f(t,e,l);return $(),n},s.$on("$destroy",function(){const t=r.onStatesChanged(d),e=i.onStart({},h),n=s.$on("$stateChangeSuccess",$);return function(){t(),e(),n()}}()),e.transition&&h(e.transition),$()}}}Su.$inject=["$state","$timeout","$stateRegistry","$transitions"],xu.$inject=["$state","$timeout","$stateRegistry","$transitions"],Au.$inject=["$state","$routerGlobals","$interpolate","$stateRegistry","$transitions"];let ku=["$view","$animate","$ngViewScroll","$interpolate","$q",function(t,e,n,r,i){const s={$cfg:{viewDecl:{$context:t._pluginapi._rootViewContext()}},$ngView:{}},o={count:0,restrict:"EA",terminal:!0,priority:400,transclude:"element",compile:function(a,c,l){return function(a,c,u){const h=u.onload||"",d=u.autoscroll,p={enter:function(t,n,r){e.enter(t,null,n).then(r)},leave:function(t,n){e.leave(t).then(n)}},f=c.inheritedData("$ngView")||s,$=r(u.ngView||u.name||"")(a)||"$default";let m,v,y,b;const w={$type:"ng1",id:o.count++,name:$,fqn:f.$ngView.fqn?f.$ngView.fqn+"."+$:$,config:null,configUpdated:function(t){if(t&&!(t instanceof el))return;if(e=b,n=t,e===n)return;var e,n;Pc.traceUIViewConfigUpdated(w,t&&t.viewDecl&&t.viewDecl.$context),b=t,C(t)},get creationContext(){const t=Pa("$cfg.viewDecl.$context")(f),e=Pa("$ngView.creationContext")(f);return t||e}};Pc.traceUIViewEvent("Linking",w),c.data("$ngView",{$ngView:w}),C();const E=t.registerUIView(w);function C(t){const e=a.$new(),r=i.defer(),s=i.defer(),o={$cfg:t,$ngView:w},u={$animEnter:r.promise,$animLeave:s.promise,$$animLeave:s};e.$emit("$viewContentLoading",$);const f=l(e,(function(t){t.data("$ngViewAnim",u),t.data("$ngView",o),p.enter(t,c,(function(){r.resolve(),y&&y.$emit("$viewContentAnimationEnded"),(g(d)&&!d||a.$eval(d))&&n(t)})),function(){if(m&&(Pc.traceUIViewEvent("Removing (previous) el",m.data("$ngView")),m.remove(),m=null),y&&(Pc.traceUIViewEvent("Destroying scope",w),y.$destroy(),y=null),v){const t=v.data("$ngViewAnim");Pc.traceUIViewEvent("Animate out",t),p.leave(v,(function(){t.$$animLeave.resolve(),m=null})),m=v,v=null}}()}));v=f,y=e,y.$emit("$viewContentLoaded",t||b),y.$eval(h)}a.$on("$destroy",(function(){Pc.traceUIViewEvent("Destroying/Unregistering",w),E()}))}}};return o}];function _u(t,e,n,r,i){const s=Pa("viewDecl.controllerAs"),o=Pa("viewDecl.resolveAs");return{restrict:"EA",priority:-400,compile:function(r){const a=r.html();return r.empty(),function(r,c){const l=c.data("$ngView");if(!l)return c.html(a),void t(c[0].contentDocument||c[0].childNodes)(r);const u=l.$cfg||{viewDecl:{},getTemplate:()=>{}},h=u.path&&new Qc(u.path);c.html(u.getTemplate(c,h)||a),Pc.traceUIViewFill(l.$ngView,c.html());const d=t(c[0].contentDocument||c[0].childNodes),p=u.controller,f=s(u),$=o(u),m=h&&vu(h);if(r[$]=m,p){const t=e(p,Object.assign({},m,{$scope:r,$element:c}));f&&(r[f]=t,r[f][$]=m),c.data("$ngControllerController",t),c.children().data("$ngControllerController",t),ju(i,n,t,r,u)}if(y(u.component)){const t=Oc(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&&xt(t).data(`$${u.component}Controller`)},o=r.$watch(s,(function(t){t&&(ju(i,n,t,r,u),o())}))}d(r)}}}}_u.$inject=["$compile","$controller","$transitions","$view","$q"];let Tu=0;function ju(t,e,n,r,i){!C(n.$onInit)||i.viewDecl.component||i.viewDecl.componentProvider||n.$onInit();const s=cc(i.path).state.self,o={bind:n};if(C(n.uiOnParamsChanged)){const t=new Qc(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(tc,[]),c=e.treeChanges("from").map(o).reduce(tc,[]),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=Ya(r,((e,n)=>-1!==t.indexOf(n)));n.uiOnParamsChanged(i,e)}};r.$on("$destroy",e.onSuccess({},a,o))}if(C(n.uiCanExit)){const i=Tu++,a="_uiCanExitIds",c=t=>!!t&&(t[a]&&!0===t[a][i]||c(t.redirectedFrom())),l=e=>{let r;const s=e[a]=e[a]||{};return c(e)||(r=t.resolve(n.uiCanExit(e)),r.then((t=>s[i]=!1!==t))),r},u={exiting:s.name};r.$on("$destroy",e.onBefore(u,l,o))}}function Vu(){return{restrict:"EA",link:(t,e,n)=>{const r=e[0],i=n.ngChannel,s=pl.subscribe(i,(t=>{r.innerHTML=t}));t.$on("$destroy",(()=>{pl.unsubscribeByKey(s)}))}}}function Nu(t){return{restrict:"A",link(e,n,r){const i=r.ngSetter;if(!i)return void console.warn("ngSetter: Model expression is not provided.");const s=t(i).assign;if(!s)return void console.warn("ngSetter: Invalid model expression.");const o=t=>{s(e,t),e.$digest()},a=new MutationObserver((t=>{let e=!1;for(const n of t)if("childList"===n.type||"characterData"===n.type){e=!0;break}e&&o(n[0].innerHTML)}));n&&n[0]?(a.observe(n[0],{childList:!0,subtree:!0,characterData:!0}),e.$on("$destroy",(()=>a.disconnect())),o(n.html())):console.warn("ngSetter: Element is not a valid DOM node.")}}}Nu.$inject=["$parse"];const Ru="0.6.4";const Pu=ct("ng"),Du=ct("$injector"),Mu={};const Lu=new class{constructor(){$t.clear(),this.cache=$t,this.eventBus=pl,this.version=Ru,this.element=xt,this.bootsrappedModules=[],this.doBootstrap,window.angular=this,function(t){t.module("ng",[],["$provide",t=>{t.provider({$$sanitizeUri:Eo}),t.provider("$compile",un).directive({input:nr,textarea:nr,form:vn,script:or,select:lr,option:ur,ngBind:hr,ngBindHtml:pr,ngBindTemplate:dr,ngClass:$r,ngClassEven:gr,ngClassOdd:mr,ngCloak:vr,ngController:yr,ngDisabled:Lo,ngForm:yn,ngHide:Cr,ngIf:hi,ngInclude:di,ngInit:fi,ngMessages:xo,ngMessage:To,ngMessageExp:jo,ngMessagesInclude:_o,ngMessageDefault:Vo,ngNonBindable:$i,ngRef:gi,ngRepeat:vi,ngSetter:Nu,ngShow:Er,ngStyle:yi,ngSwitch:bi,ngSwitchWhen:wi,ngSwitchDefault:Ei,ngOptions:Si,ngTransclude:Ai,ngModel:Tn,ngChange:ki,pattern:Vi,ngPattern:Vi,required:ji,ngRequired:ji,ngMinlength:Ri,minlength:Ri,ngMaxlength:Ni,maxlength:Ni,ngValue:sr,ngModelOptions:xn}).directive({input:rr,ngAnimateSwap:_a,ngAnimateChildren:Ta,ngChecked:Fo,ngClick:qo,ngDblclick:Ko,ngInclude:pi,ngHide:zo,ngShow:Io,ngMessages:Uo,ngModel:Go,ngReadonly:Wo,ngRequired:Ho,ngValue:Bo,ngSref:Su,ngSrefActive:Au,ngSrefActiveEq:Au,ngState:xu,ngView:ku,ngChannel:Vu}).directive({ngView:_u}).directive(Ti).directive(Ze),t.provider({$aria:Mo,$anchorScroll:Mi,$animate:ui,$$animation:fa,$animateCss:oa,$$animateCssDriver:Sa,$$animateJs:ha,$$animateJsDriver:ka,$$animateCache:ba,$$animateQueue:ua,$$AnimateRunner:Wi,$$animateAsyncRun:qi,$browser:Ui,$controller:Oe,$exceptionHandler:Qi,$filter:os,$interpolate:Ds,$interval:ds,$$intervalFactory:Ms,$http:to,$httpParamSerializer:Ks,$httpBackend:eo,$location:co,$log:$o,$parse:xs,$$rAFScheduler:$a,$rootScope:De,$routerGlobals:Ec,$q:as,$sce:Qe,$sceDelegate:Ye,$$taskTrackerFactory:mo,$templateCache:Ki,$templateRequest:yo,$timeout:wo,$urlConfig:yc,$view:nl,$transitions:Ul,$state:Hl,$ngViewScroll:Fl,$templateFactory:Bl,$urlService:iu,$stateRegistry:gu})}]).factory("$stateParams",["$routerGlobals",function(t){return t.params}]).value("$trace",Pc).info({version:Ru})}(this)}errorHandlingConfig(t){return at(t)}bootstrap(t,e,n){n=n||{strictDi:!1};const r=xt(t);if(r.injector())throw Pu("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=ge(this.bootsrappedModules,n.strictDi);return i.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,r){if(Ua.$injector=r,Ua.$q=r.get("$q"),t.$apply((()=>{e.data("$injector",r),n(e)(t)})),!Object.prototype.hasOwnProperty.call(r,"strictDi"))try{r.invoke((()=>{}))}catch(t){r.strictDi=!!/strict mode/.exec(t&&t.toString())}r.get("$stateRegistry").get().map((t=>t.$$state().resolvables)).reduce(tc,[]).filter((t=>"deferred"===t.deps)).forEach((t=>t.deps=ye(t.resolveFn,r.strictDi)))}]),i}injector(t,e){return ge(t,e)}resumeBootstrap(t){return t.forEach((t=>{this.bootsrappedModules.push(t)})),this.doBootstrap()}init(t){let e,n;const r={};et.forEach((r=>{const i=`${r}app`;t.hasAttribute&&t.hasAttribute(i)&&(e=t,n=t.getAttribute(i))})),et.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=et.length;for(r=0;r<i;++r)if(n=et[r]+e,y(n=t.getAttribute(n)))return n;return null}(e,"strict-di"),this.bootstrap(e,n?[n]:[],r))}module(t,e,n){return F(t,"module"),e&&Object.prototype.hasOwnProperty.call(Mu,t)&&(Mu[t]=null),function(t,e,n){return t[e]||(t[e]=n())}(Mu,t,(()=>{if(!e)throw Du("nomod","Module '{0}' is not available. Possibly misspelled or not loaded",t);return new Zt(t,e,n)}))}};document.addEventListener("DOMContentLoaded",(()=>Lu.init(document)),{once:!0});export{Lu as angular};