1const e=Object.freeze(Object.defineProperty({__proto__:null,get default(){return xw}},Symbol.toStringTag,{value:"Module"}));!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}(),window.EmberENV={...window.EmberENV||{},EXTEND_PROTOTYPES:!1,FEATURES:{},_APPLICATION_TEMPLATE_WRAPPER:!1,_DEFAULT_ASYNC_OBSERVERS:!0,_JQUERY_INTEGRATION:!1,_NO_IMPLICIT_ROUTE_MODEL:!0,_TEMPLATE_ONLY_GLIMMER_COMPONENTS:!0};const t=Symbol("OWNER");function n(e){return function(e){return e[t]}(e)}function r(e,n){!function(e,n){e[t]=n}(e,n)}const i=n,s=Object.freeze(Object.defineProperty({__proto__:null,getOwner:i,setOwner:r},Symbol.toStringTag,{value:"Module"})),o="object"==typeof self&&null!==self&&self.Object===Object&&"undefined"!=typeof Window&&self.constructor===Window&&"object"==typeof document&&null!==document&&self.document===document&&"object"==typeof location&&null!==location&&self.location===location&&"object"==typeof history&&null!==history&&self.history===history&&"object"==typeof navigator&&null!==navigator&&self.navigator===navigator&&"string"==typeof navigator.userAgent,a=o?self:null,l=o?self.location:null,u=o?self.history:null,c=o?self.navigator.userAgent:"Lynx (textmode)",h=!(!o||"object"!=typeof chrome||"object"==typeof opera),d=!!o&&/Firefox|FxiOS/.test(c),p=Object.freeze(Object.defineProperty({__proto__:null,hasDOM:o,history:u,isChrome:h,isFirefox:d,location:l,userAgent:c,window:a},Symbol.toStringTag,{value:"Module"}));function f(e){return e&&e.Object===Object?e:void 0}const m=f((g="object"==typeof global&&global)&&void 0===g.nodeType?g:void 0)||f("object"==typeof self&&self)||f("object"==typeof window&&window)||"undefined"!=typeof mainContext&&mainContext||new Function("return this")();var g;const y=function(e,t){return void 0===t?{imports:e,exports:e,lookup:e}:{imports:t.imports||e,exports:t.exports||e,lookup:t.lookup||e}}(m,m.Ember),v={ENABLE_OPTIONAL_FEATURES:!1,EXTEND_PROTOTYPES:{Array:!1},LOG_STACKTRACE_ON_DEPRECATION:!0,LOG_VERSION:!0,RAISE_ON_DEPRECATION:!1,STRUCTURED_PROFILE:!1,_DEBUG_RENDER_TREE:!1,_ALL_DEPRECATIONS_ENABLED:!1,_OVERRIDE_DEPRECATION_VERSION:null,_DEFAULT_ASYNC_OBSERVERS:!1,_RERENDER_LOOP_LIMIT:1e3,EMBER_LOAD_HOOKS:{},FEATURES:{}};(e=>{if("object"!=typeof e||null===e)return;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||"EXTEND_PROTOTYPES"===r||"EMBER_LOAD_HOOKS"===r)continue;let t=v[r];v[r]=!0===t?!1!==e[r]:!1===t?!0===e[r]:e[r]}let{EMBER_LOAD_HOOKS:t}=e;if("object"==typeof t&&null!==t)for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r))continue;let e=t[r];Array.isArray(e)&&(v.EMBER_LOAD_HOOKS[r]=e.filter(e=>"function"==typeof e))}let{FEATURES:n}=e;if("object"==typeof n&&null!==n)for(let r in n)Object.prototype.hasOwnProperty.call(n,r)&&(v.FEATURES[r]=!0===n[r])})(m.EmberENV);const{toString:b}=Object.prototype,{toString:_}=Function.prototype,{isArray:w}=Array,{keys:k}=Object,{stringify:j}=JSON,x=100,S=/^[\w$]+$/;function E(e){return"number"==typeof e&&2===arguments.length?this:T(e,0)}function T(e,t,n){let r=!1;switch(typeof e){case"undefined":return"undefined";case"object":if(null===e)return"null";if(w(e)){r=!0;break}if(e.toString===b||void 0===e.toString)break;return e.toString();case"function":return e.toString===_?e.name?`[Function:${e.name}]`:"[Function]":e.toString();case"string":return j(e);default:return e.toString()}if(void 0===n)n=new WeakSet;else if(n.has(e))return"[Circular]";return n.add(e),r?function(e,t,n){if(t>4)return"[Array]";let r="[";for(let i=0;i<e.length;i++){if(r+=0===i?" ":", ",i>=x){r+=`... ${e.length-x} more items`;break}r+=T(e[i],t,n)}return r+=" ]",r}(e,t+1,n):function(e,t,n){if(t>4)return"[Object]";let r="{",i=k(e);for(let s=0;s<i.length;s++){if(r+=0===s?" ":", ",s>=x){r+=`... ${i.length-x} more keys`;break}let o=i[s];r+=`${O(String(o))}: ${T(e[o],t,n)}`}return r+=" }",r}(e,t+1,n)}function O(e){return S.test(e)?e:j(e)}function R(e){let t=Object.create(null);t[e]=1;for(let n in t)if(n===e)return n;return e}function A(e){return null!==e&&("object"==typeof e||"function"==typeof e)}let C=0;function N(){return++C}const I=new WeakMap,M=new Map,P=R(`__ember${Date.now()}`);function D(e){let t;if(A(e))t=I.get(e),void 0===t&&(t=`ember${N()}`,I.set(e,t));else if(t=M.get(e),void 0===t){let n=typeof e;t="string"===n?`st${N()}`:"number"===n?`nu${N()}`:"symbol"===n?`sy${N()}`:`(${e})`,M.set(e,t)}return t}const L=void 0,z=/\.(_super|call\(this|apply\(this)/,F=Function.prototype.toString,B=F.call(function(){return this}).indexOf("return this")>-1?function(e){return z.test(F.call(e))}:function(){return!0},U=new WeakMap,q=Object.freeze(function(){});function $(e){let t=U.get(e);return void 0===t&&(t=B(e),U.set(e,t)),t}U.set(q,!1);const V=new WeakMap,H=new WeakSet;function W(e,t){return $(e)?!H.has(t)&&$(t)?Q(e,Q(t,q)):Q(e,t):e}function Q(e,t){function n(){let n=this._super;this._super=t;let r=e.apply(this,arguments);return this._super=n,r}H.add(n);let r=V.get(e);return void 0!==r&&V.set(n,r),n}function G(e,t){let n=e;do{let e=Object.getOwnPropertyDescriptor(n,t);if(void 0!==e)return e;n=Object.getPrototypeOf(n)}while(null!==n);return null}function K(e){let t=Object.create(e);return t._dict=null,delete t._dict,t}
1const Y={get onerror(){}};function J(e){return R(`__${e}${P+Math.floor(Math.random()*Date.now()).toString()}__`)}const X=Symbol;let Z,ee,te,ne,re,ie,se,oe,ae=()=>{},le=new WeakMap;function ue(e,t){return null===e?t:Array.isArray(e)?(e.push(t),e):[e,t]}function ce(e,t){Array.isArray(e)?e.forEach(t):null!==e&&t(e)}function he(e){let t=le.get(e);return void 0===t&&(t={parents:null,children:null,eagerDestructors:null,destructors:null,state:0},le.set(e,t)),t}function de(e,t){let n=he(e),r=he(t);return n.children=ue(n.children,t),r.parents=ue(r.parents,e),t}function pe(e,t,n=!1){let r=he(e),i=n?"eagerDestructors":"destructors";return r[i]=ue(r[i],t),t}function fe(e){let t=he(e);if(t.state>=1)return;let{parents:n,children:r,eagerDestructors:i,destructors:s}=t;t.state=1,ce(r,fe),ce(i,t=>{t(e)}),ce(s,t=>{Z(e,t)}),ee(()=>{ce(n,t=>{!function(e,t){let n=he(t);0===n.state&&(n.children=function(e,t){if(Array.isArray(e)&&e.length>1){let n=e.indexOf(t);return e.splice(n,1),e}return null}(n.children,e))}(e,t)}),t.state=2})}function me(e){let t=le.get(e);return void 0!==t&&null!==t.children}function ge(e){let t=le.get(e);return void 0!==t&&t.state>=1}function ye(e){let t=le.get(e);return void 0!==t&&t.state>=2}const ve=Object.prototype,be=X("undefined");var _e=function(e){return e[e.ADD=0]="ADD",e[e.ONCE=1]="ONCE",e[e.REMOVE=2]="REMOVE",e}(_e||{});let we=1;class ke{_descriptors;_mixins;_isInit;_lazyChains;_values;_revisions;source;proto;_parent;_listeners;_listenersVersion=1;_inheritedEnd=-1;_flattenedVersion=0;constructor(e){this._parent=void 0,this._descriptors=void 0,this._mixins=void 0,this._lazyChains=void 0,this._values=void 0,this._revisions=void 0,this._isInit=!1,this.source=e,this.proto=void 0===e.constructor?void 0:e.constructor.prototype,this._listeners=void 0}get parent(){let e=this._parent;if(void 0===e){let t=je(this.source);this._parent=e=null===t||t===ve?null:Ee(t)}return e}setInitializing(){this._isInit=!0}unsetInitializing(){this._isInit=!1}isInitializing(){return this._isInit}isPrototypeMeta(e){return this.proto===this.source&&this.source===e}_getOrCreateOwnMap(e){return this[e]||(this[e]=Object.create(null))}_getOrCreateOwnSet(e){return this[e]||(this[e]=new Set)}_findInheritedMap(e,t){let n=this;for(;null!==n;){let r=n[e];if(void 0!==r){let e=r.get(t);if(void 0!==e)return e}n=n.parent}}_hasInInheritedSet(e,t){let n=this;for(;null!==n;){let r=n[e];if(void 0!==r&&r.has(t))return!0;n=n.parent}return!1}valueFor(e){let t=this._values;return void 0!==t?t[e]:void 0}setValueFor(e,t){this._getOrCreateOwnMap("_values")[e]=t}revisionFor(e){let t=this._revisions;return void 0!==t?t[e]:void 0}setRevisionFor(e,t){this._getOrCreateOwnMap("_revisions")[e]=t}writableLazyChainsFor(e){let t=this._getOrCreateOwnMap("_lazyChains"),n=t[e];return void 0===n&&(n=t[e]=[]),n}readableLazyChainsFor(e){let t=this._lazyChains;if(void 0!==t)return t[e]}addMixin(e){this._getOrCreateOwnSet("_mixins").add(e)}hasMixin(e){return this._hasInInheritedSet("_mixins",e)}forEachMixins(e){let t,n=this;for(;null!==n;){let r=n._mixins;void 0!==r&&(t=void 0===t?new Set:t,r.forEach(n=>{t.has(n)||(t.add(n),e(n))})),n=n.parent}}writeDescriptors(e,t){(this._descriptors||(this._descriptors=new Map)).set(e,t)}peekDescriptors(e){let t=this._findInheritedMap("_descriptors",e);return t===be?void 0:t}removeDescriptors(e){this.writeDescriptors(e,be)}forEachDescriptors(e){let t,n=this;for(;null!==n;){let r=n._descriptors;void 0!==r&&(t=void 0===t?new Set:t,r.forEach((n,r)=>{t.has(r)||(t.add(r),n!==be&&e(r,n))})),n=n.parent}}addToListeners(e,t,n,r,i){this.pushListener(e,t,n,r?_e.ONCE:_e.ADD,i)}removeFromListeners(e,t,n){this.pushListener(e,t,n,_e.REMOVE)}pushListener(e,t,n,r,i=!1){let s=this.writableListeners(),o=Te(s,e,t,n);if(-1!==o&&o<this._inheritedEnd&&(s.splice(o,1),this._inheritedEnd--,o=-1),-1===o)s.push({event:e,target:t,method:n,kind:r,sync:i});else{let e=s[o];r===_e.REMOVE&&e.kind!==_e.REMOVE?s.splice(o,1):(e.kind=r,e.sync=i)}}writableListeners(){return this._flattenedVersion!==we||this.source!==this.proto&&-1!==this._inheritedEnd||we++,-1===this._inheritedEnd&&(this._inheritedEnd=0,this._listeners=[]),this._listeners}flattenedListeners(){if(this._flattenedVersion<we){let e=this.parent;if(null!==e){let t=e.flattenedListeners();if(void 0!==t)if(void 0===this._listeners)this._listeners=t;else{let e=this._listeners;this._inheritedEnd>0&&(e.splice(0,this._inheritedEnd),this._inheritedEnd=0);for(let n of t)-1===Te(e,n.event,n.target,n.method)&&(e.unshift(n),this._inheritedEnd++)}}this._flattenedVersion=we}return this._listeners}matchingListeners(e){let t,n=this.flattenedListeners();if(void 0!==n)for(let r of n)r.event!==e||r.kind!==_e.ADD&&r.kind!==_e.ONCE||(void 0===t&&(t=[]),t.push(r.target,r.method,r.kind===_e.ONCE));return t}observerEvents(){let e,t=this.flattenedListeners();if(void 0!==t)for(let n of t)n.kind!==_e.ADD&&n.kind!==_e.ONCE||-1===n.event.indexOf(":change")||(void 0===e&&(e=[]),e.push(n));return e}}const je=Object.getPrototypeOf,xe=new WeakMap;function Se(e){let t=xe.get(e);if(void 0!==t)return t;let n=je(e);for(;null!==n;){if(t=xe.get(n),void 0!==t)return t.proto!==n&&(t.proto=n),t;n=je(n)}return null}const Ee=function(e){let t=Se(e);if(null!==t&&t.source===e)return t;let n=new ke(e);return function(e,t){xe.set(e,t)}(e,n),n};function Te(e,t,n,r){for(let i=e.length-1;i>=0;i--){let s=e[i];if(s.event===t&&s.target===n&&s.method===r)return i}return-1}let Oe=1;const Re=Symbol("TAG_COMPUTE");function Ae(e){return e[Re]()}function Ce(e,t){return t>=e[Re]()}Reflect.set(globalThis,"COMPUTE_SYMBOL",Re);const Ne=Symbol("TAG_TYPE");class Ie{static combine(e){switch(e.length){case 0:return ze;case 1:return e[0];default:{let t=new Ie(2);return t.subtag=e,t}}}constructor(e){this.revision=1,this.lastChecked=1,this.lastValue=1,this.isUpdating=!1,this.subtag=null,this.subtagBufferCache=null,this[Ne]=e}[Re](){let{lastChecked:e}=this;if(this.isUpdating)this.lastChecked=++Oe;else if(e!==Oe){this.isUpdating=!0,this.lastChecked=Oe;try{let{subtag:e,revision:t}=this;if(null!==e)if(Array.isArray(e))for(const n of e){let e=n[Re]();t=Math.max(e,t)}else{let n=e[Re]();n===this.subtagBufferCache?t=Math.max(t,this.lastValue):(this.subtagBufferCache=null,t=Math.max(t,n))}this.lastValue=t}finally{this.isUpdating=!1}}return this.lastValue}static updateTag(e,t){let n=e,r=t;r===ze?n.subtag=null:(n.subtagBufferCache=r[Re](),n.subtag=r)}static dirtyTag(e,t){e.revision=++Oe,ae()}}const Me=Ie.dirtyTag,Pe=Ie.updateTag;function De(){return new Ie(0)}function Le(){return new Ie(1)}const ze=new Ie(3),Fe=new class{[Re](){return Oe}constructor(){this[Ne]=101}},Be=Ie.combine;let Ue=Le(),qe=Le(),$e=Le();Ae(Ue),Me(Ue),Ae(Ue),Pe(Ue,Be([qe,$e])),Ae(Ue),Me(qe),Ae(Ue),Me($e),Ae(Ue),Pe(Ue,$e),Ae(Ue),Me($e),Ae(Ue);class Ve{add(e){e!==ze&&(this.tags.add(e),this.last=e)}combine(){let{tags:e}=this;
1return 0===e.size?ze:1===e.size?this.last:Be(Array.from(this.tags))}constructor(){this.tags=new Set,this.last=null}}let He=null;const We=[];function Qe(){We.push(He),He=new Ve}function Ge(){let e=He;return He=We.pop()||null,function(e){if(null==e)throw new Error("Expected value to be present");return e}(e).combine()}function Ke(){We.push(He),He=null}function Ye(){He=We.pop()||null}function Je(){return null!==He}function Xe(e){null!==He&&He.add(e)}const Ze=Symbol("FN"),et=Symbol("LAST_VALUE"),tt=Symbol("TAG"),nt=Symbol("SNAPSHOT");function rt(e){return{[Ze]:e,[et]:void 0,[tt]:void 0,[nt]:-1}}function it(e){let t=e[Ze],n=e[tt],r=e[nt];if(void 0!==n&&Ce(n,r))Xe(n);else{Qe();try{e[et]=t()}finally{n=Ge(),e[tt]=n,e[nt]=Ae(n),Xe(n)}}return e[et]}function st(e){let t;Qe();try{e()}finally{t=Ge()}return t}function ot(e){Ke();try{return e()}finally{Ye()}}const at=new Set([Symbol.iterator,"concat","entries","every","filter","find","findIndex","flat","flatMap","forEach","includes","indexOf","join","keys","lastIndexOf","map","reduce","reduceRight","slice","some","values"]),lt=new Set(["fill","push","unshift"]);function ut(e){if("symbol"==typeof e)return null;const t=Number(e);return isNaN(t)?null:t%1==0?t:null}class ct{#e;constructor(e,t){this.#t=Le(),this.#n=new Map,this.#e=t;const n=e.slice(),r=this,i=new Map;let s=!1;return new Proxy(n,{get(e,t){const n=ut(t);if(null!==n)return r.#r(n),Xe(r.#t),e[n];if("length"===t)return s?s=!1:Xe(r.#t),e[t];if(lt.has(t)&&(s=!0),at.has(t)){let n=i.get(t);return void 0===n&&(n=(...n)=>(Xe(r.#t),e[t](...n)),i.set(t,n)),n}return e[t]},set(e,t,n){if(r.#e.equals(e[t],n))return!0;e[t]=n;const i=ut(t);return null!==i?(r.#i(i),r.#s()):"length"===t&&r.#s(),!0},getPrototypeOf:()=>ct.prototype})}#t;#n;#r(e){let t=this.#n.get(e);void 0===t&&(t=Le(),this.#n.set(e,t)),Xe(t)}#i(e){const t=this.#n.get(e);t&&Me(t)}#s(){Me(this.#t),this.#n.clear()}}Object.setPrototypeOf(ct.prototype,Array.prototype);class ht{#e;#t;#n;#o;#a(e){const t=this.#n;let n=t.get(e);return void 0===n&&(n=Le(),t.set(e,n)),n}#i(e){const t=this.#n.get(e);t&&Me(t)}constructor(e,t){this.#t=Le(),this.#n=new Map,this.#o=e instanceof Map?new Map(e.entries()):new Map(e),this.#e=t}get(e){return Xe(this.#a(e)),this.#o.get(e)}has(e){return Xe(this.#a(e)),this.#o.has(e)}entries(){return Xe(this.#t),this.#o.entries()}keys(){return Xe(this.#t),this.#o.keys()}values(){return Xe(this.#t),this.#o.values()}forEach(e){Xe(this.#t),this.#o.forEach(e)}get size(){return Xe(this.#t),this.#o.size}[Symbol.iterator](){let e=this.keys(),t=this;return{next(){let n=e.next(),r=n.value;return n.done?{value:[void 0,void 0],done:!0}:{value:[r,t.get(r)],done:!1}}}}get[Symbol.toStringTag](){return this.#o[Symbol.toStringTag]}set(e,t){let n=this.#o.get(e);return n&&this.#e.equals(n,t)||(this.#i(e),n||Me(this.#t),this.#o.set(e,t)),this}delete(e){return!this.#o.has(e)||(this.#i(e),Me(this.#t),this.#n.delete(e),this.#o.delete(e))}clear(){0!==this.#o.size&&(this.#n.forEach(e=>Me(e)),this.#n.clear(),Me(this.#t),this.#o.clear())}}Object.setPrototypeOf(ht.prototype,Map.prototype);class dt{#e;#t;#n;#o;#a(e){const t=this.#n;let n=t.get(e);return void 0===n&&(n=Le(),t.set(e,n)),n}#i(e){const t=this.#n.get(e);t&&Me(t)}constructor(e,t){this.#t=Le(),this.#n=new Map,this.#o=new Set(e),this.#e=t}has(e){return Xe(this.#a(e)),this.#o.has(e)}entries(){return Xe(this.#t),this.#o.entries()}keys(){return Xe(this.#t),this.#o.keys()}values(){return Xe(this.#t),this.#o.values()}union(e){return Xe(this.#t),this.#o.union(e)}intersection(e){return Xe(this.#t),this.#o.intersection(e)}difference(e){return Xe(this.#t),this.#o.difference(e)}symmetricDifference(e){return Xe(this.#t),this.#o.symmetricDifference(e)}isSubsetOf(e){return Xe(this.#t),this.#o.isSubsetOf(e)}isSupersetOf(e){return Xe(this.#t),this.#o.isSupersetOf(e)}isDisjointFrom(e){return Xe(this.#t),this.#o.isDisjointFrom(e)}forEach(e){Xe(this.#t),this.#o.forEach(e)}get size(){return Xe(this.#t),this.#o.size}[Symbol.iterator](){return Xe(this.#t),this.#o[Symbol.iterator]()}get[Symbol.toStringTag](){return this.#o[Symbol.toStringTag]}
1add(e){if(this.#o.has(e)){if(this.#e.equals(e,e))return this}else Me(this.#t);return this.#i(e),this.#o.add(e),this}delete(e){return!this.#o.has(e)||(this.#i(e),Me(this.#t),this.#n.delete(e),this.#o.delete(e))}clear(){0!==this.#o.size&&(this.#n.forEach(e=>Me(e)),Me(this.#t),this.#n.clear(),this.#o.clear())}}Object.setPrototypeOf(dt.prototype,Set.prototype);class pt{#e;#n;#o;#a(e){let t=this.#n.get(e);return void 0===t&&(t=Le(),this.#n.set(e,t)),t}#i(e){const t=this.#n.get(e);t&&Me(t)}constructor(e,t){this.#n=new WeakMap,this.#o=e instanceof WeakMap?e:new WeakMap(e),this.#e=t}get(e){return Xe(this.#a(e)),this.#o.get(e)}has(e){return Xe(this.#a(e)),this.#o.has(e)}set(e,t){let n=this.#o.get(e);return n&&this.#e.equals(n,t)||(this.#i(e),this.#o.set(e,t)),this}delete(e){return!this.#o.has(e)||(this.#i(e),this.#n.delete(e),this.#o.delete(e))}get[Symbol.toStringTag](){return this.#o[Symbol.toStringTag]}}Object.setPrototypeOf(pt.prototype,WeakMap.prototype);class ft{#e;#n;#o;#a(e){let t=this.#n.get(e);return void 0===t&&(t=Le(),this.#n.set(e,t)),t}#i(e){const t=this.#n.get(e);t&&Me(t)}constructor(e,t){this.#n=new WeakMap,this.#e=t,this.#o=new WeakSet(e)}has(e){return Xe(this.#a(e)),this.#o.has(e)}add(e){return this.#o.has(e)&&this.#e.equals(e,e)||(this.#o.add(e),this.#i(e)),this}delete(e){return!this.#o.has(e)||(this.#i(e),this.#n.delete(e),this.#o.delete(e))}get[Symbol.toStringTag](){return this.#o[Symbol.toStringTag]}}Object.setPrototypeOf(ft.prototype,WeakSet.prototype);const mt=new WeakMap;function gt(e,t){let n=mt.get(e);if(void 0===n)return;let r=n.get(t);void 0!==r&&Me(r,!0)}function yt(e){let t=mt.get(e);return void 0===t&&(t=new Map,mt.set(e,t)),t}function vt(e,t,n){let r=void 0===n?yt(e):n,i=r.get(t);return void 0===i&&(i=Le(),r.set(t,i)),i}const bt=Symbol("GLIMMER_VALIDATOR_REGISTRATION");if(Reflect.has(globalThis,bt))throw new Error("The `@glimmer/validator` library has been included twice in this application. It could be different versions of the package, or the same version included twice by mistake. `@glimmer/validator` depends on having a single copy of the package in use at any time in an application, even if they are the same version. You must dedupe your build to remove the duplicate packages in order to prevent this error.");Reflect.set(globalThis,bt,!0);const _t=Object.freeze([]);function wt(){return _t}const kt=wt();function*jt(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function*xt(e){let t=0;for(const n of e)yield[t++,n]}function St(){return Object.create(null)}function Et(e){return null!=e}function Tt(e){return"function"==typeof e||"object"==typeof e&&null!==e}class Ot{constructor(e=[]){this.current=null,this.stack=e}get size(){return this.stack.length}push(e){this.current=e,this.stack.push(e)}pop(){let e=this.stack.pop();return this.current=(0===(t=this.stack).length?void 0:t[t.length-1])??null,void 0===e?null:e;var t}nth(e){let t=this.stack.length;return t<e?null:this.stack[t-e]}isEmpty(){return 0===this.stack.length}snapshot(){return[...this.stack]}toArray(){return this.stack}}function Rt(e){let t=e.firstChild;for(;t;){let n=t.nextSibling;e.removeChild(t),t=n}}const At=Object.assign,Ct=Symbol("REFERENCE");class Nt{constructor(e){this.tag=null,this.lastRevision=1,this.children=null,this.compute=null,this.update=null,this[Ct]=e}}function It(e){const t=new Nt(2);return t.tag=ze,t.lastValue=e,t}const Mt=It(void 0),Pt=It(null),Dt=It(!0),Lt=It(!1);function zt(e){const t=new Nt(0);return t.lastValue=e,t.tag=ze,t}function Ft(e){const t=new Nt(2);return t.lastValue=e,t.tag=ze,t}function Bt(e,t=null){const n=new Nt(1);return n.compute=e,n.update=t,n}function Ut(e){return e.tag===ze}function qt(e){return null!==e.update}function $t(e){const t=e;let{tag:n}=t;if(n===ze)return t.lastValue;const{lastRevision:r}=t;let i;if(null!==n&&Ce(n,r))i=t.lastValue;else{const{compute:e}=t,r=st(()=>{i=t.lastValue=e()});n=t.tag=r,t.lastRevision=Ae(r)}return Xe(n),i}function Vt(e,t){(0,e.update)(t)}function Ht(e,t){const n=e,r=n[Ct];let i,s=n.children;if(null===s)s=n.children=new Map;else{const e=s.get(t);if(e)return e}if(2===r){const e=$t(n);i=Et(e)?Ft(e[t]):Mt}else i=Bt(()=>{const e=$t(n);if(Et(e))return re(e,t)},e=>{const r=$t(n);if(Et(r))return ie(r,t,e)});return s.set(t,i),i}function Wt(e,t){let n=e;for(const r of t)n=Ht(n,r);return n}const Qt={},Gt=(e,t)=>t,Kt=(e,t)=>
1String(t),Yt=e=>null===e?Qt:e;class Jt{get weakMap(){return void 0===this._weakMap&&(this._weakMap=new WeakMap),this._weakMap}get primitiveMap(){return void 0===this._primitiveMap&&(this._primitiveMap=new Map),this._primitiveMap}set(e,t){Tt(e)?this.weakMap.set(e,t):this.primitiveMap.set(e,t)}get(e){return Tt(e)?this.weakMap.get(e):this.primitiveMap.get(e)}}const Xt=new Jt;function Zt(e){let t=new Jt;return(n,r)=>{let i=e(n,r),s=t.get(i)||0;return t.set(i,s+1),0===s?i:function(e,t){let n=Xt.get(e);void 0===n&&(n=[],Xt.set(e,n));let r=n[t];return void 0===r&&(r={value:e,count:t},n[t]=r),r}(i,s)}}function en(e){let t=e,n=De();return Bt(()=>(Xe(n),t),e=>{t!==e&&(t=e,Me(n))})}class tn{constructor(e,t){this.inner=e,this.keyFor=t}isEmpty(){return this.inner.isEmpty()}next(){let e=this.inner.next();return null!==e&&(e.key=this.keyFor(e.value,e.memo)),e}}let nn=class{constructor(e,t){this.iterator=e,this.keyFor=t,this.pos=0,0===e.length?this.current={kind:"empty"}:this.current={kind:"first",value:e[this.pos]}}isEmpty(){return"empty"===this.current.kind}next(){let e,t=this.current;if("first"===t.kind)this.current={kind:"progress"},e=t.value;else{if(this.pos>=this.iterator.length-1)return null;e=this.iterator[++this.pos]}let{keyFor:n}=this;return{key:n(e,this.pos),value:e,memo:this.pos}}};const rn={Empty:0,dynamicLayout:1,dynamicTag:2,prepareArgs:4,createArgs:8,attributeHook:16,elementHook:32,dynamicScope:64,createCaller:128,updateHook:256,createInstance:512,wrapped:1024,willDestroy:2048,hasSubOwner:4096},sn=1024,on=new WeakMap;function an(e,t){on.set(e,t)}function ln(e){if("symbol"==typeof e)return null;const t=Number(e);return isNaN(t)?null:t%1==0?t:null}class un{constructor(e){this.named=e}get(e,t){const n=this.named[t];if(void 0!==n)return $t(n)}has(e,t){return t in this.named}ownKeys(){return Object.keys(this.named)}isExtensible(){return!1}getOwnPropertyDescriptor(e,t){return{enumerable:!0,configurable:!0}}}class cn{constructor(e){this.positional=e}get(e,t){let{positional:n}=this;if("length"===t)return n.length;const r=ln(t);return null!==r&&r<n.length?$t(n[r]):e[t]}isExtensible(){return!1}has(e,t){const n=ln(t);return null!==n&&n<this.positional.length}}const hn=e=>{const{named:t,positional:n}=e,r=new un(t),i=new cn(n),s=Object.create(null),o=new Proxy(s,r),a=new Proxy([],i);return an(o,(e,n)=>function(e,t){return st(()=>{t in e&&$t(e[t])})}(t,n)),an(a,(e,t)=>function(e,t){return st(()=>{"[]"===t&&e.forEach($t);const n=ln(t);null!==n&&n<e.length&&$t(e[n])})}(n,t)),{named:o,positional:a}},dn=rn.Empty;function pn(e){return dn|fn(e,"dynamicLayout")|fn(e,"dynamicTag")|fn(e,"prepareArgs")|fn(e,"createArgs")|fn(e,"attributeHook")|fn(e,"elementHook")|fn(e,"dynamicScope")|fn(e,"createCaller")|fn(e,"updateHook")|fn(e,"createInstance")|fn(e,"wrapped")|fn(e,"willDestroy")|fn(e,"hasSubOwner")}function fn(e,t){return e[t]?rn[t]:dn}function mn(e,t,n){return!!(t&n)}function gn(e,t){return!!(e&t)}function yn(e,t={}){return{hasValue:Boolean(t.hasValue),hasDestroyable:Boolean(t.hasDestroyable),hasScheduledEffect:Boolean(t.hasScheduledEffect)}}function vn(e){return e.capabilities.hasDestroyable}class bn{constructor(e){this.factory=e,this.helperManagerDelegates=new WeakMap,this.undefinedDelegate=null}getDelegateForOwner(e){let t=this.helperManagerDelegates.get(e);if(void 0===t){let{factory:n}=this;t=n(e),this.helperManagerDelegates.set(e,t)}return t}getDelegateFor(e){if(void 0===e){let{undefinedDelegate:e}=this;if(null===e){let{factory:t}=this;this.undefinedDelegate=e=t(void 0)}return e}return this.getDelegateForOwner(e)}getHelper(e){return(t,n)=>{let r=this.getDelegateFor(n);const i=hn(t),s=r.createHelper(e,i);if(function(e){return e.capabilities.hasValue}(r)){let e=Bt(()=>r.getValue(s),null);return vn(r)&&de(e,r.getDestroyable(s)),e}if(vn(r)){let e=zt(void 0);return de(e,r.getDestroyable(s)),e}return Mt}}}class _n{createHelper(e,t){return{fn:e,args:t}}getValue({fn:e,args:t}){return Object.keys(t.named).length>0?e(...t.positional,t.named):e(...t.positional)}getDebugName(e){return e.name?`(helper function ${e.name})`:"(anonymous helper function)"}constructor(){this.capabilities={hasValue:!0,hasDestroyable:!1,hasScheduledEffect:!1}}}const wn=new WeakMap,kn=new WeakMap,jn=new WeakMap,xn=Object.getPrototypeOf;function Sn(e,t,n){return e.set(n,t),n}function En(e,t){let n=t;for(;null!==n;){const t=e.get(n);if(void 0!==t)return t;n=xn(n)}}function Tn(e,t){return Sn(kn,e,t)}function On(e){const t=En(kn,e);return void 0===t?null:t}function Rn(e,t){return Sn(jn,e,t)}const An=new bn(()=>new _n);function Cn(e){let t=En(jn,e);return void 0===t&&"function"==typeof e&&(t=An),t||null}function Nn(e,t){return Sn(wn,e,t)}function In(e){const t=En(wn,e);return void 0===t?null:t}function Mn(e){return void 0!==En(wn,e)}const Pn={dynamicLayout:!1,dynamicTag:!1,prepareArgs:!1,createArgs:!0,attributeHook:!1,elementHook:!1,createCaller:!1,dynamicScope:!0,updateHook:!0,createInstance:!0,wrapped:!1,willDestroy:!1,hasSubOwner:!1};function Dn(e){return e.capabilities.asyncLifeCycleCallbacks}function Ln(e){return e.capabilities.updateHook}class zn{constructor(e,t,n){this.component=e,this.delegate=t,this.args=n}}function Fn(e,t={}){return{disableAutoTracking:Boolean(t.disableAutoTracking)}}class Bn{constructor(e){this.factory=e,this.componentManagerDelegates=new WeakMap}
1getDelegateFor(e){let{componentManagerDelegates:t}=this,n=t.get(e);if(void 0===n){let{factory:r}=this;n=r(e),t.set(e,n)}return n}create(e,t,n,r){let i,s=this.getDelegateFor(e),o=hn(r),a=s.createModifier(n,o);return i={tag:Le(),element:t,delegate:s,args:o,modifier:a},pe(i,()=>s.destroyModifier(a,o)),i}getDebugName(e){return"function"==typeof e?e.name||e.toString():"<unknown>"}getDebugInstance({modifier:e}){return e}getTag({tag:e}){return e}install({element:e,args:t,modifier:n,delegate:r}){let{capabilities:i}=r;i.disableAutoTracking?ot(()=>r.installModifier(n,e,t)):r.installModifier(n,e,t)}update({args:e,modifier:t,delegate:n}){let{capabilities:r}=n;r.disableAutoTracking?ot(()=>n.updateModifier(t,e)):n.updateModifier(t,e)}getDestroyable(e){return e}}function Un(e,t){return Rn(new bn(e),t)}const qn=new WeakMap,$n=Reflect.getPrototypeOf;function Vn(e,t){return qn.set(t,e),t}function Hn(e){let t=e;for(;null!==t;){let e=qn.get(t);if(void 0!==e)return e;t=$n(t)}}const Wn=new WeakSet;function Qn(e){return!!A(e)&&Wn.has(e)}function Gn(e){A(e)&&Wn.add(e)}const Kn=new WeakSet;function Yn(e){return Kn.has(e)}let Jn=class{size=0;misses=0;hits=0;constructor(e,t,n=new Map){this.limit=e,this.func=t,this.store=n}get(e){return this.store.has(e)?(this.hits++,this.store.get(e)):(this.misses++,this.set(e,this.func(e)))}set(e,t){return this.limit>this.size&&(this.size++,this.store.set(e,t)),t}purge(){this.store.clear(),this.size=0,this.hits=0,this.misses=0}};const Xn="6.11.0";function Zn(e,t){return Array.isArray(e)?e[t]:e.objectAt(t)}const er=X("SELF_TAG");function tr(e,t,n=!1,r){let i=function(e){return on.get(e)}(e);return void 0!==i?i(e,t,n):vt(e,t,r)}function nr(e){return A(e)?vt(e,er):ze}const rr=new WeakSet;function ir(e,t,n){let r=e.readableLazyChainsFor(t);if(void 0!==r){if(A(n))for(let[e,t]of r)Pe(e,or(n,t,yt(n),Se(n)));r.length=0}}function sr(e,t,n,r){let i=[];for(let s of t)ar(i,e,s,n,r);return Be(i)}function or(e,t,n,r){return Be(ar([],e,t,n,r))}function ar(e,t,n,r,i){let s,o,a=t,l=r,u=i,c=n.length,h=-1;for(;;){let t=h+1;if(h=n.indexOf(".",t),-1===h&&(h=c),s=n.slice(t,h),"@each"===s&&h!==c){t=h+1,h=n.indexOf(".",t);let r=a.length;if("number"!=typeof r||!Array.isArray(a)&&!("objectAt"in a))break;if(0===r){e.push(tr(a,"[]"));break}s=-1===h?n.slice(t):n.slice(t,h);for(let t=0;t<r;t++){let n=Zn(a,t);n&&(e.push(tr(n,s,!0)),u=Se(n),o=null!==u?u.peekDescriptors(s):void 0,void 0!==o&&"string"==typeof o.altKey&&n[s])}e.push(tr(a,"[]",!0,l));break}let r=tr(a,s,!0,l);if(o=null!==u?u.peekDescriptors(s):void 0,e.push(r),h===c){rr.has(o)&&a[s];break}if(void 0===o)a=s in a||"function"!=typeof a.unknownProperty?a[s]:a.unknownProperty(s);else if(rr.has(o))a=a[s];else{let t=u.source===a?u:Ee(a),i=t.revisionFor(s);if(void 0===i||!Ce(r,i)){let r=t.writableLazyChainsFor(s),i=n.substring(h+1),o=Le();r.push([o,i]),e.push(o);break}a=t.valueFor(s)}if(!A(a))break;l=yt(a),u=Se(a)}return e}function lr(e){let[t,n,r]=e;return 3===e.length&&("function"==typeof t||"object"==typeof t&&null!==t)&&"string"==typeof n&&("object"==typeof r&&null!==r||void 0===r)}function ur(e){let t=function(){return e};return vr(t),t}class cr{enumerable=!0;configurable=!0;_dependentKeys=void 0;_meta=void 0;setup(e,t,n,r){r.writeDescriptors(t,this)}teardown(e,t,n){n.removeDescriptors(t)}}function hr(e,t){let n=function(n){return t.set(this,e,n)};return dr.add(n),n}const dr=new WeakSet;function pr(e,t){let n=function(t,n,r,i){let s=3===arguments.length?Ee(t):i;var o,a;return e.setup(t,n,r,s),{enumerable:e.enumerable,configurable:e.configurable,get:(o=n,a=e,function(){return a.get(this,o)}),set:hr(n,e)}};return vr(n,e),Object.setPrototypeOf(n,t.prototype),n}const fr=new WeakMap;function mr(e,t,n){let r=void 0===n?Se(e):n;if(null!==r)return r.peekDescriptors(t)}function gr(e){return fr.get(e)}function yr(e){return"function"==typeof e&&fr.has(e)}function vr(e,t=!0){fr.set(e,t)}const br=/\.@each$/;function _r(e,t){let n=e.indexOf("{");n<0?t(e.replace(br,".[]")):wr("",e,n,t)}function wr(e,t,n,r){let i,s,o=t.indexOf("}"),a=0,l=t.substring(n+1,o).split(","),u=t.substring(o+1);for(e+=t.substring(0,n),s=l.length;a<s;)i=u.indexOf("{"),i<0?r((e+l[a++]+u).replace(br,".[]")):wr(e+l[a++],u,i,r)}function kr(e){return e+":change"}function jr(e,t,n,r,i,s=!0){r||"function"!=typeof n||(r=n,n=null),Ee(e).addToListeners(t,n,r,!0===i,s)}function xr(e,t,n,r){let i,s;"object"==typeof n?(i=n,s=r):(i=null,s=n),Ee(e).removeFromListeners(t,i,s)}function Sr(e,t,n,r,i){if(void 0===r){let n=void 0===i?Se(e):i;r=null!==n?n.matchingListeners(t):void 0}if(void 0===r||0===r.length)return!1;for(let s=r.length-3;s>=0;s-=3){let i=r[s],o=r[s+1],a=r[s+2];if(!o)continue;a&&xr(e,t,i,o),i||(i=e);let l=typeof o;"string"!==l&&"symbol"!==l||(o=i[o]),o.apply(i,n)}return!0}function Er(e,t){let n=Se(e);if(null===n)return!1;let r=n.matchingListeners(t);return void 0!==r&&r.length>0}const Tr=!v._DEFAULT_ASYNC_OBSERVERS,Or=new Map,Rr=new Map;function Ar(e,t,n,r,i=Tr){let s=kr(t);jr(e,s,n,r,!1,i);let o=Se(e);null!==o&&(o.isPrototypeMeta(e)||o.isInitializing())||Nr(e,s,i)}function Cr(e,t,n,r,i=Tr){let s=kr(t),o=Se(e);null!==o&&(o.isPrototypeMeta(e)||o.isInitializing())||Pr(e,s,i),xr(e,s,n,r)}function Nr(e,t,n=!1){let r=function(e,t){let n=!0===t?Or:Rr;return n.has(e)||(n.set(e,new Map),pe(e,()=>function(e){Or.size>0&&Or.delete(e),Rr.size>0&&Rr.delete(e)}
1(e),!0)),n.get(e)}(e,n);if(r.has(t))r.get(t).count++;else{let n=t.substring(0,t.lastIndexOf(":")),i=or(e,n,yt(e),Se(e));r.set(t,{count:1,path:n,tag:i,lastRevision:Ae(i),suspended:!1})}}let Ir=!1,Mr=[];function Pr(e,t,n=!1){if(!0===Ir)return void Mr.push([e,t,n]);let r=!0===n?Or:Rr,i=r.get(e);if(void 0!==i){let n=i.get(t);n.count--,0===n.count&&(i.delete(t),0===i.size&&r.delete(e))}}function Dr(e){Rr.has(e)&&Rr.get(e).forEach(t=>{t.tag=or(e,t.path,yt(e),Se(e)),t.lastRevision=Ae(t.tag)}),Or.has(e)&&Or.get(e).forEach(t=>{t.tag=or(e,t.path,yt(e),Se(e)),t.lastRevision=Ae(t.tag)})}let Lr=0;function zr(e){let t=Ae(Fe);Lr!==t&&(Lr=t,Rr.forEach((t,n)=>{let r=Se(n);t.forEach((t,i)=>{if(!Ce(t.tag,t.lastRevision)){let s=()=>{try{Sr(n,i,[n,t.path],void 0,r)}finally{t.tag=or(n,t.path,yt(n),Se(n)),t.lastRevision=Ae(t.tag)}};e?e("actions",s):s()}})}))}function Fr(){Or.forEach((e,t)=>{let n=Se(t);e.forEach((e,r)=>{if(!e.suspended&&!Ce(e.tag,e.lastRevision))try{e.suspended=!0,Sr(t,r,[t,e.path],void 0,n)}finally{e.tag=or(t,e.path,yt(t),Se(t)),e.lastRevision=Ae(e.tag),e.suspended=!1}})})}function Br(e,t,n){let r=Or.get(e);if(!r)return;let i=r.get(kr(t));i&&(i.suspended=n)}const Ur=Symbol("PROPERTY_DID_CHANGE");let qr=0;function $r(e,t,n,r){let i=void 0===n?Se(e):n;null!==i&&(i.isInitializing()||i.isPrototypeMeta(e))||(function(e,t){gt(e,t),gt(e,er)}(e,t),qr<=0&&Fr(),Ur in e&&(4===arguments.length?e[Ur](t,r):e[Ur](t)))}function Vr(){qr++,Ir=!0}function Hr(){qr--,qr<=0&&(Fr(),function(){Ir=!1;for(let[e,t,n]of Mr)Pr(e,t,n);Mr=[]}())}function Wr(){}class Qr extends cr{_readOnly=!1;_hasConfig=!1;_getter=void 0;_setter=void 0;constructor(e){super();let t=e[e.length-1];if("function"==typeof t||null!==t&&"object"==typeof t){this._hasConfig=!0;let t=e.pop();if("function"==typeof t)this._getter=t;else{const e=t;this._getter=e.get||Wr,this._setter=e.set}}e.length>0&&this._property(...e)}setup(e,t,n,r){if(super.setup(e,t,n,r),!1===this._hasConfig){let{get:e,set:t}=n;void 0!==e&&(this._getter=e),void 0!==t&&(this._setter=function(n,r){let i=t.call(this,r);return void 0!==e&&void 0===i?e.call(this):i})}}_property(...e){let t=[];function n(e){t.push(e)}for(let r of e)_r(r,n);this._dependentKeys=t}get(e,t){let n,r=Ee(e),i=yt(e),s=vt(e,t,i),o=r.revisionFor(t);if(void 0!==o&&Ce(s,o))n=r.valueFor(t);else{let{_getter:o,_dependentKeys:a}=this;ot(()=>{n=o.call(e,t)}),void 0!==a&&Pe(s,sr(e,a,i,r)),r.setValueFor(t,n),r.setRevisionFor(t,Ae(s)),ir(r,t,n)}return Xe(s),Array.isArray(n)&&Xe(vt(n,"[]")),n}set(e,t,n){this._readOnly&&this._throwReadOnlyError(e,t);let r,i=Ee(e);i.isInitializing()&&void 0!==this._dependentKeys&&this._dependentKeys.length>0&&"function"==typeof e[Ur]&&e.isComponent&&Ar(e,t,()=>{e[Ur](t)},void 0,!0);try{Vr(),r=this._set(e,t,n,i),ir(i,t,r);let s=yt(e),o=vt(e,t,s),{_dependentKeys:a}=this;void 0!==a&&Pe(o,sr(e,a,s,i)),i.setRevisionFor(t,Ae(o))}finally{Hr()}return r}_throwReadOnlyError(e,t){throw new Error(`Cannot set read-only property "${t}" on object: ${E(e)}`)}_set(e,t,n,r){let i,s=void 0!==r.revisionFor(t),o=r.valueFor(t),{_setter:a}=this;Br(e,t,!0);try{i=a.call(e,t,n,o)}finally{Br(e,t,!1)}return s&&o===i||(r.setValueFor(t,i),$r(e,t,r,n)),i}teardown(e,t,n){void 0!==n.revisionFor(t)&&(n.setRevisionFor(t,void 0),n.setValueFor(t,void 0)),super.teardown(e,t,n)}}class Gr extends Function{readOnly(){return gr(this)._readOnly=!0,this}meta(e){let t=gr(this);return 0===arguments.length?t._meta||{}:(t._meta=e,this)}get _getter(){return gr(this)._getter}set enumerable(e){gr(this).enumerable=e}}function Kr(...e){return lr(e)?pr(new Qr([]),Gr)(e[0],e[1],e[2]):pr(new Qr(e),Gr)}function Yr(e,t,n,r){let i=Ee(e),s=mr(e,t,i),o=void 0!==s;o&&s.teardown(e,t,i),yr(n)?Jr(e,t,n,i):null==n?Xr(e,t,r,o,!0):Object.defineProperty(e,t,n),i.isPrototypeMeta(e)||Dr(e)}function Jr(e,t,n,r){let i;return i=n(e,t,void 0,r),Object.defineProperty(e,t,i),n}function Xr(e,t,n,r,i=!0){return!0===r||!1===i?Object.defineProperty(e,t,{configurable:!0,enumerable:i,writable:!0,value:n}):e[t]=n,n}const Zr=new Jn(1e3,e=>e.indexOf("."));function ei(e){return"string"==typeof e&&-1!==Zr.get(e)}function ti(e){return"object"==typeof e&&null!==e&&"function"==typeof e.unknownProperty}function ni(e,t){return ei(t)?ii(e,t):ri(e,t)}function ri(e,t){if(null==e)return;let n;return"object"==typeof e||"function"==typeof e?(n=e[t],void 0===n&&"object"==typeof e&&!(t in e)&&ti(e)&&(n=e.unknownProperty(t)),Je()&&(Xe(vt(e,t)),(Array.isArray(n)||Yn(n))&&Xe(vt(n,"[]")))):n=e[t],n}function ii(e,t,n){let r="string"==typeof t?t.split("."):t;for(let i of r){if(null==e||e.isDestroyed)return;if(n&&("__proto__"===i||"constructor"===i))return;e=ri(e,i)}return e}ri("foo","a"),ri("foo",1),ri({},"a"),ri({},1),ri({unknownProperty(){}},"a"),ri({unknownProperty(){}},1),ni({},"foo"),ni({},"foo.bar");let si={};Gn(si),st(()=>ri({},"a")),st(()=>ri({},1)),st(()=>ri({a:[]},"a")),st(()=>ri({a:si},"a"));const oi=new class{_registry;_coreLibIndex;constructor(){this._registry=[],this._coreLibIndex=0}_getLibraryByName(e){let t=this._registry;for(let n of t)if(n.name===e)return n}register(e,t,n){let r=this._registry.length;this._getLibraryByName(e)||(n&&(r=this._coreLibIndex++),this._registry.splice(r,0,{name:e,version:t}))}registerCoreLibrary(e,t){this.register(e,t,!0)}deRegister(e){let t,n=this._getLibraryByName(e);
1n&&(t=this._registry.indexOf(n),this._registry.splice(t,1))}};function ai(e,...t){let r,i;lr(t)?r=t:"string"==typeof t[0]&&(i=t[0]);let s=Kr({get:function(t){return(n(this)||this.container).lookup(`${e}:${i||t}`)},set(e,t){Yr(this,e,null,t)}});return r?s(r[0],r[1],r[2]):s}function li(...e){if(!lr(e)){let t=e[0],n=t?t.initializer:void 0,r=t?t.value:void 0,i=function(e,t){return ui([e,t,{initializer:n||(()=>r)}])};return vr(i),i}return ui(e)}function ui([e,t,n]){let{getter:r,setter:i}=function(e,t){let n=new WeakMap,r="function"==typeof t;return{getter:function(i){let s;return Xe(vt(i,e)),r&&!n.has(i)?(s=t.call(i),n.set(i,s)):s=n.get(i),s},setter:function(t,r){gt(t,e),n.set(t,r)}}}(t,n?n.initializer:void 0);function s(){let e=r(this);return(Array.isArray(e)||Yn(e))&&Xe(vt(e,"[]")),e}function o(e){i(this,e),gt(this,er)}let a={enumerable:!0,configurable:!0,isTracked:!0,get:s,set:o};return dr.add(o),Ee(e).writeDescriptors(t,new ci(s,o)),a}oi.registerCoreLibrary("Ember",Xn);class ci{constructor(e,t){this._get=e,this._set=t,rr.add(this)}get(e){return this._get.call(e)}set(e,t,n){this._set.call(e,n)}}const hi=setTimeout,di=()=>{};function pi(e){if("function"==typeof Promise){const t=Promise.resolve();return()=>t.then(e)}if("function"==typeof MutationObserver){let t=0,n=new MutationObserver(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),()=>(t=++t%2,r.data=""+t,t)}return()=>hi(e,0)}function fi(e){let t=di;return{setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),now:()=>Date.now(),next:pi(e),clearNext:t}}const mi=/\d+/;function gi(e){let t=typeof e;return"number"===t&&e==e||"string"===t&&mi.test(e)}function yi(e){return e.onError||e.onErrorTarget&&e.onErrorTarget[e.onErrorMethod]}function vi(e,t,n){let r=-1;for(let i=0,s=n.length;i<s;i+=4)if(n[i]===e&&n[i+1]===t){r=i;break}return r}function bi(e,t,n){let r=-1;for(let i=2,s=n.length;i<s;i+=6)if(n[i]===e&&n[i+1]===t){r=i-2;break}return r}function _i(e,t,n=0){let r=[];for(let i=0;i<e.length;i+=t){let t=e[i+3+n],s={target:e[i+0+n],method:e[i+1+n],args:e[i+2+n],stack:void 0!==t&&"stack"in t?t.stack:""};r.push(s)}return r}function wi(e,t){let n,r,i=0,s=t.length-6;for(;i<s;)r=(s-i)/6,n=i+r-r%6,e>=t[n]?i=n+6:s=n;return e>=t[i]?i+6:i}class ki{constructor(e,t={},n={}){this._queueBeingFlushed=[],this.targetQueues=new Map,this.index=0,this._queue=[],this.name=e,this.options=t,this.globalOptions=n}stackFor(e){if(e<this._queue.length){let t=this._queue[3*e+4];return t?t.stack:null}}flush(e){let t,n,r,i,s,{before:o,after:a}=this.options;this.targetQueues.clear(),0===this._queueBeingFlushed.length&&(this._queueBeingFlushed=this._queue,this._queue=[]),void 0!==o&&o();let l=this._queueBeingFlushed;if(l.length>0){let e=yi(this.globalOptions);s=e?this.invokeWithOnError:this.invoke;for(let o=this.index;o<l.length;o+=4)if(this.index+=4,n=l[o+1],null!==n&&(t=l[o],r=l[o+2],i=l[o+3],s(t,n,r,e,i)),this.index!==this._queueBeingFlushed.length&&this.globalOptions.mustYield&&this.globalOptions.mustYield())return 1}void 0!==a&&a(),this._queueBeingFlushed.length=0,this.index=0,!1!==e&&this._queue.length>0&&this.flush(!0)}hasWork(){return this._queueBeingFlushed.length>0||this._queue.length>0}cancel({target:e,method:t}){let n=this._queue,r=this.targetQueues.get(e);void 0!==r&&r.delete(t);let i=vi(e,t,n);return i>-1?(n[i+1]=null,!0):(n=this._queueBeingFlushed,i=vi(e,t,n),i>-1&&(n[i+1]=null,!0))}push(e,t,n,r){return this._queue.push(e,t,n,r),{queue:this,target:e,method:t}}pushUnique(e,t,n,r){let i=this.targetQueues.get(e);void 0===i&&(i=new Map,this.targetQueues.set(e,i));let s=i.get(t);if(void 0===s){let s=this._queue.push(e,t,n,r)-4;i.set(t,s)}else{let e=this._queue;e[s+2]=n,e[s+3]=r}return{queue:this,target:e,method:t}}_getDebugInfo(e){if(e)return _i(this._queue,4)}invoke(e,t,n){void 0===n?t.call(e):t.apply(e,n)}invokeWithOnError(e,t,n,r,i){try{void 0===n?t.call(e):t.apply(e,n)}catch(s){r(s,i)}}}class ji{constructor(e=[],t){this.queues={},this.queueNameIndex=0,this.queueNames=e,e.reduce(function(e,n){return e[n]=new ki(n,t[n],t),e},this.queues)}schedule(e,t,n,r,i,s){let o=this.queues[e];if(void 0===o)throw new Error(`You attempted to schedule an action in a queue (${e}) that doesn't exist`);if(null==n)throw new Error(`You attempted to schedule an action in a queue (${e}) for a method that doesn't exist`);return this.queueNameIndex=0,i?o.pushUnique(t,n,r,s):o.push(t,n,r,s)}flush(e=!1){let t,n,r=this.queueNames.length;for(;this.queueNameIndex<r;)if(n=this.queueNames[this.queueNameIndex],t=this.queues[n],!1===t.hasWork()){if(this.queueNameIndex++,e&&this.queueNameIndex<r)return 1}else if(1===t.flush(!1))return 1}_getDebugInfo(e){if(e){let t,n,r={},i=this.queueNames.length,s=0;for(;s<i;)n=this.queueNames[s],t=this.queues[n],r[n]=t._getDebugInfo(e),s++;return r}}}function xi(e){let t=e(),n=t.next();for(;!1===n.done;)n.value(),n=t.next()}const Si=function(){},Ei=Object.freeze([]);function Ti(){let e,t,n,r=arguments.length;if(0===r);else if(1===r)n=null,t=arguments[0];else{let i=2,s=arguments[0],o=arguments[1],a=typeof o;if("function"===a?(n=s,t=o):null!==s&&"string"===a&&o in s?(n=s,t=n[o]):"function"==typeof s&&(i=1,n=null,t=s),r>i){let t=r-i;
1e=new Array(t);for(let n=0;n<t;n++)e[n]=arguments[n+i]}}return[n,t,e]}function Oi(){let e,t,n,r,i;return 2===arguments.length?(t=arguments[0],i=arguments[1],e=null):([e,t,r]=Ti(...arguments),void 0===r?i=0:(i=r.pop(),gi(i)||(n=!0===i,i=r.pop()))),i=parseInt(i,10),[e,t,r,i,n]}let Ri=0,Ai=0,Ci=0,Ni=0,Ii=0,Mi=0,Pi=0,Di=0,Li=0,zi=0,Fi=0,Bi=0,Ui=0,qi=0,$i=0,Vi=0,Hi=0,Wi=0,Qi=0,Gi=0,Ki=0;class Yi{constructor(e,t){this.DEBUG=!1,this.currentInstance=null,this.instanceStack=[],this._eventCallbacks={end:[],begin:[]},this._timerTimeoutId=null,this._timers=[],this._autorun=!1,this._autorunStack=null,this.queueNames=e,this.options=t||{},"string"==typeof this.options.defaultQueue?this._defaultQueue=this.options.defaultQueue:this._defaultQueue=this.queueNames[0],this._onBegin=this.options.onBegin||Si,this._onEnd=this.options.onEnd||Si,this._boundRunExpiredTimers=this._runExpiredTimers.bind(this),this._boundAutorunEnd=()=>{Qi++,!1!==this._autorun&&(this._autorun=!1,this._autorunStack=null,this._end(!0))};let n=this.options._buildPlatform||fi;this._platform=n(this._boundAutorunEnd)}get counters(){return{begin:Ai,end:Ci,events:{begin:Ni,end:0},autoruns:{created:Wi,completed:Qi},run:Ii,join:Mi,defer:Pi,schedule:Di,scheduleIterable:Li,deferOnce:zi,scheduleOnce:Fi,setTimeout:Bi,later:Ui,throttle:qi,debounce:$i,cancelTimers:Vi,cancel:Hi,loops:{total:Gi,nested:Ki}}}get defaultQueue(){return this._defaultQueue}begin(){Ai++;let e,t=this.options,n=this.currentInstance;return!1!==this._autorun?(e=n,this._cancelAutorun()):(null!==n&&(Ki++,this.instanceStack.push(n)),Gi++,e=this.currentInstance=new ji(this.queueNames,t),Ni++,this._trigger("begin",e,n)),this._onBegin(e,n),e}end(){Ci++,this._end(!1)}on(e,t){if("function"!=typeof t)throw new TypeError("Callback must be a function");let n=this._eventCallbacks[e];if(void 0===n)throw new TypeError(`Cannot on() event ${e} because it does not exist`);n.push(t)}off(e,t){let n=this._eventCallbacks[e];if(!e||void 0===n)throw new TypeError(`Cannot off() event ${e} because it does not exist`);let r=!1;if(t)for(let i=0;i<n.length;i++)n[i]===t&&(r=!0,n.splice(i,1),i--);if(!r)throw new TypeError("Cannot off() callback that does not exist")}run(){Ii++;let[e,t,n]=Ti(...arguments);return this._run(e,t,n)}join(){Mi++;let[e,t,n]=Ti(...arguments);return this._join(e,t,n)}defer(e,t,n,...r){return Pi++,this.schedule(e,t,n,...r)}schedule(e,...t){Di++;let[n,r,i]=Ti(...t),s=this.DEBUG?new Error:void 0;return this._ensureInstance().schedule(e,n,r,i,!1,s)}scheduleIterable(e,t){Li++;let n=this.DEBUG?new Error:void 0;return this._ensureInstance().schedule(e,null,xi,[t],!1,n)}deferOnce(e,t,n,...r){return zi++,this.scheduleOnce(e,t,n,...r)}scheduleOnce(e,...t){Fi++;let[n,r,i]=Ti(...t),s=this.DEBUG?new Error:void 0;return this._ensureInstance().schedule(e,n,r,i,!0,s)}setTimeout(){return Bi++,this.later(...arguments)}later(){Ui++;let[e,t,n,r]=function(){let[e,t,n]=Ti(...arguments),r=0,i=void 0!==n?n.length:0;return i>0&&gi(n[i-1])&&(r=parseInt(n.pop(),10)),[e,t,n,r]}(...arguments);return this._later(e,t,n,r)}throttle(){qi++;let e,[t,n,r,i,s=!0]=Oi(...arguments),o=bi(t,n,this._timers);if(-1===o)e=this._later(t,n,s?Ei:r,i),s&&this._join(t,n,r);else{e=this._timers[o+1];let t=o+4;this._timers[t]!==Ei&&(this._timers[t]=r)}return e}debounce(){$i++;let e,[t,n,r,i,s=!1]=Oi(...arguments),o=this._timers,a=bi(t,n,o);if(-1===a)e=this._later(t,n,s?Ei:r,i),s&&this._join(t,n,r);else{let s=this._platform.now()+i,l=a+4;o[l]===Ei&&(r=Ei),e=o[a+1];let u=wi(s,o);if(a+6===u)o[a]=s,o[l]=r;else{let i=this._timers[a+5];this._timers.splice(u,0,s,e,t,n,r,i),this._timers.splice(a,6)}0===a&&this._reinstallTimerTimeout()}return e}cancelTimers(){Vi++,this._clearTimerTimeout(),this._timers=[],this._cancelAutorun()}hasTimers(){return this._timers.length>0||this._autorun}cancel(e){if(Hi++,null==e)return!1;let t=typeof e;return"number"===t?this._cancelLaterTimer(e):!("object"!==t||!e.queue||!e.method)&&e.queue.cancel(e)}ensureInstance(){this._ensureInstance()}getDebugInfo(){if(this.DEBUG)return{autorun:this._autorunStack,counters:this.counters,timers:_i(this._timers,6,2),instanceStack:[this.currentInstance,...this.instanceStack].map(e=>e&&e._getDebugInfo(this.DEBUG))}}_end(e){let t=this.currentInstance,n=null;if(null===t)throw new Error("end called without begin");let r,i=!1;try{r=t.flush(e)}finally{if(!i)if(i=!0,1===r){const e=this.queueNames[t.queueNameIndex];this._scheduleAutorun(e)}else this.currentInstance=null,this.instanceStack.length>0&&(n=this.instanceStack.pop(),this.currentInstance=n),this._trigger("end",t,n),this._onEnd(t,n)}}
1_join(e,t,n){return null===this.currentInstance?this._run(e,t,n):void 0===e&&void 0===n?t():t.apply(e,n)}_run(e,t,n){let r=yi(this.options);if(this.begin(),r)try{return t.apply(e,n)}catch(i){r(i)}finally{this.end()}else try{return t.apply(e,n)}finally{this.end()}}_cancelAutorun(){this._autorun&&(this._platform.clearNext(),this._autorun=!1,this._autorunStack=null)}_later(e,t,n,r){let i=this.DEBUG?new Error:void 0,s=this._platform.now()+r,o=Ri++;if(0===this._timers.length)this._timers.push(s,o,e,t,n,i),this._installTimerTimeout();else{let r=wi(s,this._timers);this._timers.splice(r,0,s,o,e,t,n,i),this._reinstallTimerTimeout()}return o}_cancelLaterTimer(e){for(let t=1;t<this._timers.length;t+=6)if(this._timers[t]===e)return this._timers.splice(t-1,6),1===t&&this._reinstallTimerTimeout(),!0;return!1}_trigger(e,t,n){let r=this._eventCallbacks[e];if(void 0!==r)for(let i=0;i<r.length;i++)r[i](t,n)}_runExpiredTimers(){this._timerTimeoutId=null,this._timers.length>0&&(this.begin(),this._scheduleExpiredTimers(),this.end())}_scheduleExpiredTimers(){let e=this._timers,t=0,n=e.length,r=this._defaultQueue,i=this._platform.now();for(;t<n&&!(e[t]>i);t+=6){let n=e[t+4];if(n!==Ei){let i=e[t+2],s=e[t+3],o=e[t+5];this.currentInstance.schedule(r,i,s,n,!1,o)}}e.splice(0,t),this._installTimerTimeout()}_reinstallTimerTimeout(){this._clearTimerTimeout(),this._installTimerTimeout()}_clearTimerTimeout(){null!==this._timerTimeoutId&&(this._platform.clearTimeout(this._timerTimeoutId),this._timerTimeoutId=null)}_installTimerTimeout(){if(0===this._timers.length)return;let e=this._timers[0],t=this._platform.now(),n=Math.max(0,e-t);this._timerTimeoutId=this._platform.setTimeout(this._boundRunExpiredTimers,n)}_ensureInstance(){let e=this.currentInstance;return null===e&&(this._autorunStack=this.DEBUG?new Error:void 0,e=this.begin(),this._scheduleAutorun(this.queueNames[0])),e}_scheduleAutorun(e){Wi++;const t=this._platform.next,n=this.options.flush;n?n(e,t):t(),this._autorun=!0}}Yi.Queue=ki,Yi.buildPlatform=fi,Yi.buildNext=pi;let Ji=null;const Xi=`${Math.random()}${Date.now()}`.replace(".",""),Zi=new Yi(["actions","routerTransitions","render","afterRender","destroy",Xi],{defaultQueue:"actions",onBegin:function(e){Ji=e},onEnd:function(e,t){Ji=t,zr(ns)},onErrorTarget:Y,onErrorMethod:"onerror",flush:function(e,t){"render"!==e&&e!==Xi||zr(ns),t()}});function es(...e){return Zi.run(...e)}function ts(e,t,...n){return Zi.join(e,t,...n)}function ns(...e){return Zi.schedule(...e)}function rs(...e){return Zi.scheduleOnce("actions",...e)}function is(...e){return Zi.scheduleOnce(...e)}const ss=v.EMBER_LOAD_HOOKS||{},os={};let as=os;class ls{static _leakTracking;owner;registry;cache;factoryManagerCache;validationCache;isDestroyed;isDestroying;constructor(e,t={}){this.registry=e,this.owner=t.owner||null,this.cache=K(t.cache||null),this.factoryManagerCache=K(t.factoryManagerCache||null),this.isDestroyed=!1,this.isDestroying=!1}lookup(e,t){if(this.isDestroyed)throw new Error(`Cannot call \`.lookup('${e}')\` after the owner has been destroyed`);return function(e,t,n={}){let r=t;if(!0===n.singleton||void 0===n.singleton&&us(e,t)){let t=e.cache[r];if(void 0!==t)return t}return function(e,t,n,r){let i=hs(e,t,n);if(void 0!==i){if(function(e,t,{instantiate:n,singleton:r}){return!1!==r&&!1!==n&&(!0===r||us(e,t))&&cs(e,t)}(e,n,r)){let n=e.cache[t]=i.create();return e.isDestroying&&"function"==typeof n.destroy&&n.destroy(),n}if(function(e,t,{instantiate:n,singleton:r}){return!1!==n&&(!1===r||!us(e,t))&&cs(e,t)}(e,n,r))return i.create();if(function(e,t,{instantiate:n,singleton:r}){return!1!==r&&!n&&us(e,t)&&!cs(e,t)}(e,n,r)||function(e,t,{instantiate:n,singleton:r}){return!(!1!==n||!1!==r&&us(e,t)||cs(e,t))}(e,n,r))return i.class;throw new Error("Could not create factory")}}(e,r,t,n)}(this,this.registry.normalize(e),t)}destroy(){this.isDestroying=!0,ds(this)}finalizeDestroy(){ps(this),this.isDestroyed=!0}reset(e){this.isDestroyed||(void 0===e?(ds(this),ps(this)):function(e,t){let n=e.cache[t];delete e.factoryManagerCache[t],n&&(delete e.cache[t],n.destroy&&n.destroy())}(this,this.registry.normalize(e)))}ownerInjection(){let e={};return r(e,this.owner),e}factoryFor(e){if(this.isDestroyed)throw new Error(`Cannot call \`.factoryFor('${e}')\` after the owner has been destroyed`);return hs(this,this.registry.normalize(e),e)}}function us(e,t){return!1!==e.registry.getOption(t,"singleton")}function cs(e,t){return!1!==e.registry.getOption(t,"instantiate")}function hs(e,t,n){let r=e.factoryManagerCache[t];if(void 0!==r)return r;let i=e.registry.resolve(t);if(void 0===i)return;let s=new ys(e,i,n,t);return e.factoryManagerCache[t]=s,s}function ds(e){let t=e.cache,n=Object.keys(t);for(let r of n){let e=t[r];e.destroy&&e.destroy()}}function ps(e){e.cache=K(null),e.factoryManagerCache=K(null)}const fs=Symbol("INIT_FACTORY");function ms(e){return e[fs]}function gs(e,t){e[fs]=t}class ys{container;owner;class;fullName;normalizedName;madeToString;injections;constructor(e,t,n,r){this.container=e,this.owner=e.owner,this.class=t,this.fullName=n,this.normalizedName=r,this.madeToString=void 0,this.injections=void 0}toString(){return void 0===this.madeToString&&(this.madeToString=this.container.registry.makeToString(this.class,this.fullName)),this.madeToString}
1create(e){let{container:t}=this;if(t.isDestroyed)throw new Error(`Cannot create new instances after the owner has been destroyed (you attempted to create ${this.fullName})`);let n=e?{...e}:{};return r(n,t.owner),gs(n,this),this.class.create(n)}}const vs=/^[^:]+:[^:]+$/;class bs{_failSet;resolver;fallback;registrations;_normalizeCache;_options;_resolveCache;_typeOptions;constructor(e={}){this.fallback=e.fallback||null,this.resolver=e.resolver||null,this.registrations=K(e.registrations||null),this._normalizeCache=K(null),this._resolveCache=K(null),this._failSet=new Set,this._options=K(null),this._typeOptions=K(null)}container(e){return new ls(this,e)}register(e,t,n={}){let r=this.normalize(e);this._failSet.delete(r),this.registrations[r]=t,this._options[r]=n}unregister(e){let t=this.normalize(e);delete this.registrations[t],delete this._resolveCache[t],delete this._options[t],this._failSet.delete(t)}resolve(e){let t=function(e,t){let n,r=t,i=e._resolveCache[r];return void 0!==i?i:e._failSet.has(r)?void 0:(e.resolver&&(n=e.resolver.resolve(r)),void 0===n&&(n=e.registrations[r]),void 0===n?e._failSet.add(r):e._resolveCache[r]=n,n)}(this,this.normalize(e));return void 0===t&&null!==this.fallback&&(t=this.fallback.resolve(e)),t}describe(e){return null!==this.resolver&&this.resolver.lookupDescription?this.resolver.lookupDescription(e):null!==this.fallback?this.fallback.describe(e):e}normalizeFullName(e){return null!==this.resolver&&this.resolver.normalize?this.resolver.normalize(e):null!==this.fallback?this.fallback.normalizeFullName(e):e}normalize(e){return this._normalizeCache[e]||(this._normalizeCache[e]=this.normalizeFullName(e))}makeToString(e,t){return null!==this.resolver&&this.resolver.makeToString?this.resolver.makeToString(e,t):null!==this.fallback?this.fallback.makeToString(e,t):"string"==typeof e?e:e.name??"(unknown class)"}has(e){return!!this.isValidFullName(e)&&function(e,t){return void 0!==e.resolve(t)}(this,this.normalize(e))}optionsForType(e,t){this._typeOptions[e]=t}getOptionsForType(e){let t=this._typeOptions[e];return void 0===t&&null!==this.fallback&&(t=this.fallback.getOptionsForType(e)),t}options(e,t){let n=this.normalize(e);this._options[n]=t}getOptions(e){let t=this.normalize(e),n=this._options[t];return void 0===n&&null!==this.fallback&&(n=this.fallback.getOptions(e)),n}getOption(e,t){let n=this._options[e];if(void 0!==n&&void 0!==n[t])return n[t];let r=e.split(":")[0];return n=this._typeOptions[r],n&&void 0!==n[t]?n[t]:null!==this.fallback?this.fallback.getOption(e,t):void 0}knownForType(e){let t,n,r=K(null),i=Object.keys(this.registrations);for(let s of i)s.split(":")[0]===e&&(r[s]=!0);return null!==this.fallback&&(t=this.fallback.knownForType(e)),null!==this.resolver&&this.resolver.knownForType&&(n=this.resolver.knownForType(e)),Object.assign({},t,r,n)}isValidFullName(e){return vs.test(e)}}const _s=K(null),ws=`${Math.random()}${Date.now()}`.replace(".","");function ks([e]){let t=_s[e];if(t)return t;let[n,r]=e.split(":");return _s[e]=R(`${n}:${r}-${ws}`)}const js=new WeakMap;function xs(e,t){A(e)&&js.set(e,t)}function Ss(e){return js.get(e)}const Es=Object.prototype.hasOwnProperty,Ts={_set:0,_unprocessedNamespaces:!1,get unprocessedNamespaces(){return this._unprocessedNamespaces},set unprocessedNamespaces(e){this._set++,this._unprocessedNamespaces=e}};let Os=!1;const Rs=[],As=Object.create(null);function Cs(){if(!Ts.unprocessedNamespaces)return;let e=y.lookup,t=Object.keys(e);for(let n of t){if(!Ls(n.charCodeAt(0)))continue;let t=zs(e,n);t&&xs(t,n)}}function Ns(e){return Ms(),As[e]}function Is(e){Ps([e.toString()],e,new Set)}function Ms(){let e=Ts.unprocessedNamespaces;if(e&&(Cs(),Ts.unprocessedNamespaces=!1),e||Os){let e=Rs;for(let t of e)Is(t);Os=!1}}function Ps(e,t,n){let r=e.length,i=e.join(".");As[i]=t,xs(t,i);for(let s in t){if(!Es.call(t,s))continue;let i=t[s];if(e[r]=s,i&&void 0===Ss(i))xs(i,e.join("."));else if(i&&Ds(i)){if(n.has(i))continue;n.add(i),Ps(e,i,n)}}e.length=r}function Ds(e){return null!=e&&"object"==typeof e&&e.isNamespace}function Ls(e){return e>=65&&e<=90}function zs(e,t){try{let n=e[t];return(null!==n&&"object"==typeof n||"function"==typeof n)&&n.isNamespace&&n}catch(n){}}const Fs=Array.prototype.concat;function Bs(e,t,n,r){let i=n[e]||r[e];return t[e]&&(i=i?Fs.call(i,t[e]):t[e]),i}function Us(e,t,n,r){if(!0===n)return t;let i=n._getter;if(void 0===i)return t;let s=r[e],o="function"==typeof s?gr(s):s;if(void 0===o||!0===o)return t;let a=o._getter;if(void 0===a)return t;let l,u=W(i,a),c=n._setter,h=o._setter;if(l=void 0!==h?void 0!==c?W(c,h):h:c,u!==i||l!==c){let e=n._dependentKeys||[],t=new Qr([...e,{get:u,set:l}]);return t._readOnly=n._readOnly,t._meta=n._meta,t.enumerable=n.enumerable,pr(t,Qr)}return t}function qs(e,t,n,r){if(void 0!==r[e])return t;let i=n[e];return"function"==typeof i?W(t,i):t}function $s(e){return e?Array.isArray(e)?e:[e]:[]}function Vs(e,t,n){return $s(n[e]).concat($s(t))}function Hs(e,t,n){let r=n[e];if(!r)return t;let i=Object.assign({},r),s=!1,o=Object.keys(t);for(let a of o){let e=t[a];"function"==typeof e?(s=!0,i[a]=qs(a,e,r,{})):i[a]=e}return s&&(i._super=q),i}function Ws(e,t,n,r,i,s,o){let a;for(let l=0;l<e.length;l++)if(a=e[l],Ys.has(a)){if(t.hasMixin(a))continue;t.addMixin(a);let{properties:e,mixins:l}=a;void 0!==e?Qs(t,e,n,r,i,s,o):void 0!==l&&(Ws(l,t,n,r,i,s,o),a instanceof Js&&void 0!==a._without&&a._without.forEach(e
1=>{let t=s.indexOf(e);-1!==t&&s.splice(t,1)}))}else Qs(t,a,n,r,i,s,o)}function Qs(e,t,n,r,i,s,o){let a=Bs("concatenatedProperties",t,r,i),l=Bs("mergedProperties",t,r,i),u=Object.keys(t);for(let c of u){let u=t[c];if(void 0===u)continue;if(-1===s.indexOf(c)){s.push(c);let t=e.peekDescriptors(c);if(void 0===t){if(!yr(u)){let e=r[c]=i[c];"function"==typeof e&&Gs(i,c,e,!1)}}else n[c]=t,o.push(c),t.teardown(i,c,e)}let h="function"==typeof u;if(h){let e=gr(u);if(void 0!==e){n[c]=Us(c,u,e,n),r[c]=void 0;continue}}a&&a.indexOf(c)>=0||"concatenatedProperties"===c||"mergedProperties"===c?u=Vs(c,u,r):l&&l.indexOf(c)>-1?u=Hs(c,u,r):h&&(u=qs(c,u,r,n)),r[c]=u,n[c]=void 0}}function Gs(e,t,n,r){let i=function(e){return V.get(e)}(n);if(void 0===i)return;let{observers:s,listeners:o}=i;if(void 0!==s){let n=r?Ar:Cr;for(let r of s.paths)n(e,r,null,t,s.sync)}if(void 0!==o){let n=r?jr:xr;for(let r of o)n(e,r,null,t)}}function Ks(e,t,n=!1){let r=Object.create(null),i=Object.create(null),s=Ee(e),o=[],a=[];e._super=q,Ws(t,s,r,i,e,o,a);for(let l of o){let t=i[l],o=r[l];void 0!==t?("function"==typeof t&&Gs(e,l,t,!0),Xr(e,l,t,-1!==a.indexOf(l),!n)):void 0!==o&&Jr(e,l,o,s)}return s.isPrototypeMeta(e)||Dr(e),e}const Ys=new WeakSet;class Js{mixins;properties;ownerConstructor;_without;constructor(e,t){Ys.add(this),this.properties=function(e){if(void 0!==e)for(let t of Object.keys(e)){let n=Object.getOwnPropertyDescriptor(e,t);void 0===n.get&&void 0===n.set||Object.defineProperty(e,t,{value:ur(n)})}return e}(t),this.mixins=Xs(e),this.ownerConstructor=void 0,this._without=void 0}static create(...e){return Os=!0,new this(e,void 0)}static mixins(e){let t=Se(e),n=[];return null===t||t.forEachMixins(e=>{e.properties||n.push(e)}),n}reopen(...e){if(0===e.length)return this;if(this.properties){let e=new Js(void 0,this.properties);this.properties=void 0,this.mixins=[e]}else this.mixins||(this.mixins=[]);return this.mixins=this.mixins.concat(Xs(e)),this}apply(e,t=!1){return Ks(e,[this],t)}applyPartial(e){return Ks(e,[this])}detect(e){if("object"!=typeof e||null===e)return!1;if(Ys.has(e))return Zs(e,this);let t=Se(e);return null!==t&&t.hasMixin(this)}without(...e){let t=new Js([this]);return t._without=e,t}keys(){return eo(this)}toString(){return"(unknown mixin)"}}function Xs(e){let t,n=e&&e.length||0;if(n>0){t=new Array(n);for(let r=0;r<n;r++){let n=e[r];Ys.has(n)?t[r]=n:t[r]=new Js(void 0,n)}}return t}function Zs(e,t,n=new Set){if(n.has(e))return!1;if(n.add(e),e===t)return!0;let r=e.mixins;
1return!!r&&r.some(e=>Zs(e,t,n))}function eo(e,t=new Set,n=new Set){if(!n.has(e)){if(n.add(e),e.properties){let n=Object.keys(e.properties);for(let e of n)t.add(e)}else e.mixins&&e.mixins.forEach(e=>eo(e,t,n));return t}}const to=Js.create({__registry__:null,resolveRegistration(e){return this.__registry__.resolve(e)},register:no("register"),unregister:no("unregister"),hasRegistration:no("has"),registeredOption:no("getOption"),registerOptions:no("options"),registeredOptions:no("getOptions"),registerOptionsForType:no("optionsForType"),registeredOptionsForType:no("getOptionsForType")});function no(e){return function(...t){return this.__registry__[e](...t)}}const ro=Js.create({__container__:null,ownerInjection(){return this.__container__.ownerInjection()},lookup(e,t){return this.__container__.lookup(e,t)},destroy(){let e=this.__container__;e&&ts(()=>{e.destroy(),ns("destroy",e,"finalizeDestroy")}),this._super()},factoryFor(e){return this.__container__.factoryFor(e)}}),io=Js.create({compare:null}),so=Js.create({mergedProperties:["actions"],send(e,...t){if(this.actions&&this.actions[e]&&!0!==this.actions[e].apply(this,t))return;let n=ni(this,"target");n&&n.send(...arguments)}});function oo(e,t,n,r){return e.isDestroyed?n:ei(t)?function(e,t,n,r){let i=t.split("."),s=i.pop(),o=ii(e,i,!0);if(null!=o)return oo(o,s,n);if(!r)throw new Error(`Property set failed: object in path "${i.join(".")}" could not be found.`)}(e,t,n,r):ao(e,t,n)}function ao(e,t,n){let r,i=G(e,t);return null!==i&&dr.has(i.set)?(e[t]=n,n):(r=e[t],void 0!==r||"object"!=typeof e||t in e||"function"!=typeof e.setUnknownProperty?(e[t]=n,r!==n&&$r(e,t)):e.setUnknownProperty(t,n),n)}function lo(e){let t=ni(e,"content");return Pe(nr(e),nr(t)),t}function uo(e,t,n){let r=yt(e),i=vt(e,t,r);if(t in e)return i;{let s=[i,vt(e,"content",r)],o=lo(e);return A(o)&&s.push(tr(o,t,n)),Be(s)}}Js.create({content:null,init(){this._super(...arguments),Gn(this),nr(this),an(this,uo)},willDestroy(){this.set("content",null),this._super(...arguments)},isTruthy:Kr("content",function(){return Boolean(ni(this,"content"))}),unknownProperty(e){let t=lo(this);return t?ni(t,e):void 0},setUnknownProperty(e,t){let n=Ee(this);return n.isInitializing()||n.isPrototypeMeta(this)?(Yr(this,e,null,t),t):oo(lo(this),e,t)}});const co=Js.create(),ho=Js.create(co),po=Js.create({target:null,action:null,actionContext:null,actionContextObject:Kr("actionContext",function(){let e=ni(this,"actionContext");if("string"==typeof e){let t=ni(this,e);return void 0===t&&(t=ni(y.lookup,e)),t}return e}),triggerAction(e={}){let{action:t,target:n,actionContext:r}=e;t=t||ni(this,"action"),n=n||function(e){let t=ni(e,"target");if(t){if("string"==typeof t){let n=ni(e,t);return void 0===n&&(n=ni(y.lookup,t)),n}return t}return e._target?e._target:null}(this),void 0===r&&(r=ni(this,"actionContextObject")||this);let i=Array.isArray(r)?r:[r];if(n&&t){let e;if(e=null!=(s=n)&&"object"==typeof s&&"function"==typeof s.send?n.send(t,...i):n[t](...i),!1!==e)return!0}var s;return!1}});function fo(e){let t=e._promiseCallbacks;return t||(t=e._promiseCallbacks={}),t}const mo={mixin(e){return e.on=this.on,e.off=this.off,e.trigger=this.trigger,e._promiseCallbacks=void 0,e},on(e,t){if("function"!=typeof t)throw new TypeError("Callback must be a function");let n=fo(this),r=n[e];r||(r=n[e]=[]),-1===r.indexOf(t)&&r.push(t)},off(e,t){let n=fo(this);if(!t)return void(n[e]=[]);let r=n[e],i=r.indexOf(t);-1!==i&&r.splice(i,1)},trigger(e,t,n){let r=fo(this)[e];if(r){let e;for(let i=0;i<r.length;i++)e=r[i],e(t,n)}}},go={instrument:!1};function yo(e,t){if(2!==arguments.length)return go[e];go[e]=t}mo.mixin(go);const vo=[];function bo(e,t,n){1===vo.push({name:e,payload:{key:t._guidKey,id:t._id,eventName:e,detail:t._result,childId:n&&n._id,label:t._label,timeStamp:Date.now(),error:go["instrument-with-stack"]?new Error(t._label):null}})&&setTimeout(()=>{for(let e=0;e<vo.length;e++){let t=vo[e],n=t.payload;n.guid=n.key+n.id,n.childGuid=n.key+n.childId,n.error&&(n.stack=n.error.stack),go.trigger(t.name,t.payload)}vo.length=0},50)}function _o(e,t){if(e&&"object"==typeof e&&e.constructor===this)return e;let n=new this(wo,t);return Eo(n,e),n}function wo(){}const ko=void 0,jo=1,xo=2;function So(e,t,n){t.constructor===e.constructor&&n===Io&&e.constructor.resolve===_o?function(e,t){t._state===jo?Oo(e,t._result):t._state===xo?(t._onError=null,Ro(e,t._result)):Ao(t,void 0,n=>{t===n?Oo(e,n):Eo(e,n)},t=>Ro(e,t))}(e,t):"function"==typeof n?function(e,t,n){go.async(e=>{let r=!1,i=function(n,i){try{n.call(i,n=>{r||(r=!0,t===n?Oo(e,n):Eo(e,n))},t=>{r||(r=!0,Ro(e,t))})}catch(s){return s}}(n,t,e._label);!r&&i&&(r=!0,Ro(e,i))},e)}(e,t,n):Oo(e,t)}function Eo(e,t){if(e===t)Oo(e,t);else if(function(e){let t=typeof e;return null!==e&&("object"===t||"function"===t)}(t)){let r;try{r=t.then}catch(n){return void Ro(e,n)}So(e,t,r)}else Oo(e,t)}function To(e){e._onError&&e._onError(e._result),Co(e)}function Oo(e,t){e._state===ko&&(e._result=t,e._state=jo,0===e._subscribers.length?go.instrument&&bo("fulfilled",e):go.async(Co,e))}function Ro(e,t){e._state===ko&&(e._state=xo,e._result=t,go.async(To,e))}function Ao(e,t,n,r){let i=e._subscribers,s=i.length;e._onError=null,i[s]=t,i[s+jo]=n,i[s+xo]=r,0===s&&e._state&&go.async(Co,e)}function Co(e){let t=e._subscribers,n=e._state;
1if(go.instrument&&bo(n===jo?"fulfilled":"rejected",e),0===t.length)return;let r,i,s=e._result;for(let o=0;o<t.length;o+=3)r=t[o],i=t[o+n],r?No(n,r,i,s):i(s);e._subscribers.length=0}function No(e,t,n,r){let i,s,o="function"==typeof n,a=!0;if(o)try{i=n(r)}catch(l){a=!1,s=l}else i=r;t._state!==ko||(i===t?Ro(t,new TypeError("A promises callback cannot return that same promise.")):!1===a?Ro(t,s):o?Eo(t,i):e===jo?Oo(t,i):e===xo&&Ro(t,i))}function Io(e,t,n){let r=this,i=r._state;if(i===jo&&!e||i===xo&&!t)return go.instrument&&bo("chained",r,r),r;r._onError=null;let s=new r.constructor(wo,n),o=r._result;if(go.instrument&&bo("chained",r,s),i===ko)Ao(r,s,e,t);else{let n=i===jo?e:t;go.async(()=>No(i,s,n,o))}return s}class Mo{constructor(e,t,n,r){this._instanceConstructor=e,this.promise=new e(wo,r),this._abortOnReject=n,this._isUsingOwnPromise=e===zo,this._isUsingOwnResolve=e.resolve===_o,this._init(...arguments)}_init(e,t){let n=t.length||0;this.length=n,this._remaining=n,this._result=new Array(n),this._enumerate(t)}_enumerate(e){let t=this.length,n=this.promise;for(let r=0;n._state===ko&&r<t;r++)this._eachEntry(e[r],r,!0);this._checkFullfillment()}_checkFullfillment(){if(0===this._remaining){let e=this._result;Oo(this.promise,e),this._result=null}}_settleMaybeThenable(e,t,n){let r=this._instanceConstructor;if(this._isUsingOwnResolve){let s,o,a=!0;try{s=e.then}catch(i){a=!1,o=i}if(s===Io&&e._state!==ko)e._onError=null,this._settledAt(e._state,t,e._result,n);else if("function"!=typeof s)this._settledAt(jo,t,e,n);else if(this._isUsingOwnPromise){let i=new r(wo);!1===a?Ro(i,o):(So(i,e,s),this._willSettleAt(i,t,n))}else this._willSettleAt(new r(t=>t(e)),t,n)}else this._willSettleAt(r.resolve(e),t,n)}_eachEntry(e,t,n){null!==e&&"object"==typeof e?this._settleMaybeThenable(e,t,n):this._setResultAt(jo,t,e,n)}_settledAt(e,t,n,r){let i=this.promise;i._state===ko&&(this._abortOnReject&&e===xo?Ro(i,n):(this._setResultAt(e,t,n,r),this._checkFullfillment()))}_setResultAt(e,t,n,r){this._remaining--,this._result[t]=n}_willSettleAt(e,t,n){Ao(e,void 0,e=>this._settledAt(jo,t,e,n),e=>this._settledAt(xo,t,e,n))}}function Po(e,t,n){this._remaining--,this._result[t]=e===jo?{state:"fulfilled",value:n}:{state:"rejected",reason:n}}const Do="rsvp_"+Date.now()+"-";let Lo=0,zo=class e{constructor(t,n){this._id=Lo++,this._label=n,this._state=void 0,this._result=void 0,this._subscribers=[],go.instrument&&bo("created",this),wo!==t&&("function"!=typeof t&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof e?function(e,t){let n=!1;try{t(t=>{n||(n=!0,Eo(e,t))},t=>{n||(n=!0,Ro(e,t))})}catch(r){Ro(e,r)}}(this,t):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object c
1onstructor cannot be called as a function.")}())}_onError(e){go.after(()=>{this._onError&&go.trigger("error",e,this._label)})}catch(e,t){return this.then(void 0,e,t)}finally(e,t){let n=this,r=n.constructor;return"function"==typeof e?n.then(t=>r.resolve(e()).then(()=>t),t=>r.resolve(e()).then(()=>{throw t})):n.then(e,e)}};function Fo(e,t){return{then:(n,r)=>e.call(t,n,r)}}function Bo(e,t){let n=function(){let n=arguments.length,r=new Array(n+1),i=!1;for(let e=0;e<n;++e){let t=arguments[e];if(!i){if(null!==t&&"object"==typeof t)if(t.constructor===zo)i=!0;else try{i=t.then}catch(o){let e=new zo(wo);return Ro(e,o),e}else i=!1;i&&!0!==i&&(t=Fo(i,t))}r[e]=t}let s=new zo(wo);return r[n]=function(e,n){e?Ro(s,e):void 0===t?Eo(s,n):!0===t?Eo(s,function(e){let t=e.length,n=new Array(t-1);for(let r=1;r<t;r++)n[r-1]=e[r];return n}(arguments)):Array.isArray(t)?Eo(s,function(e,t){let n={},r=e.length,i=new Array(r);for(let s=0;s<r;s++)i[s]=e[s];for(let s=0;s<t.length;s++)n[t[s]]=i[s+1];return n}(arguments,t)):Eo(s,n)},i?function(e,t,n,r){return zo.all(t).then(t=>Uo(e,t,n,r))}(s,r,e,this):Uo(s,r,e,this)};return n.__proto__=e,n}function Uo(e,t,n,r){try{n.apply(r,t)}catch(i){Ro(e,i)}return e}function qo(e,t){return zo.all(e,t)}zo.cast=_o,zo.all=function(e,t){return Array.isArray(e)?new Mo(this,e,!0,t).promise:this.reject(new TypeError("Promise.all must be called with an array"),t)},zo.race=function(e,t){let n=this,r=new n(wo,t);if(!Array.isArray(e))return Ro(r,new TypeError("Promise.race must be called with an array")),r;for(let i=0;r._state===ko&&i<e.length;i++)Ao(n.resolve(e[i]),void 0,e=>Eo(r,e),e=>Ro(r,e));return r},zo.resolve=_o,zo.reject=function(e,t){let n=new this(wo,t);return Ro(n,e),n},zo.prototype._guidKey=Do,zo.prototype.then=Io;class $o extends Mo{constructor(e,t,n){super(e,t,!1,n)}}function Vo(e,t){return Array.isArray(e)?new $o(zo,e,t).promise:zo.reject(new TypeError("Promise.allSettled must be called with an array"),t)}function Ho(e,t){return zo.race(e,t)}$o.prototype._setResultAt=Po;class Wo extends Mo{constructor(e,t,n=!0,r){super(e,t,n,r)}_init(e,t){this._result={},this._enumerate(t)}_enumerate(e){let t,n,r=Object.keys(e),i=r.length,s=this.promise;this._remaining=i;for(let o=0;s._state===ko&&o<i;o++)t=r[o],n=e[t],this._eachEntry(n,t,!0);this._checkFullfillment()}}function Qo(e,t){return zo.resolve(e,t).then(function(e){if(null===e||"object"!=typeof e)throw new TypeError("Promise.hash must be called with an object");return new Wo(zo,e,t).promise})}class Go extends Wo{constructor(e,t,n){super(e,t,!1,n)}}function Ko(e,t){return zo.resolve(e,t).then(function(e){if(null===e||"object"!=typeof e)throw new TypeError("hashSettled must be called with an object");return new Go(zo,e,!1,t).promise})}function Yo(e){throw setTimeout(()=>{throw e}),e}function Jo(e){let t={resolve:void 0,reject:void 0};return t.promise=new zo((e,n)=>{t.resolve=e,t.reject=n},e),t}Go.prototype._setResultAt=Po;class Xo extends Mo{constructor(e,t,n,r){super(e,t,!0,r,n)}_init(e,t,n,r,i){let s=t.length||0;this.length=s,this._remaining=s,this._result=new Array(s),this._mapFn=i,this._enumerate(t)}_setResultAt(e,t,n,r){if(r)try{this._eachEntry(this._mapFn(n,t),t,!1)}catch(i){this._settledAt(xo,t,i,!1)}else this._remaining--,this._result[t]=n}}function Zo(e,t,n){return"function"!=typeof t?zo.reject(new TypeError("map expects a function as a second argument"),n):zo.resolve(e,n).then(function(e){if(!Array.isArray(e))throw new TypeError("map must be called with an array");return new Xo(zo,e,t,n).promise})}function ea(e,t){return zo.resolve(e,t)}function ta(e,t){return zo.reject(e,t)}const na={};class ra extends Xo{_checkFullfillment(){if(0===this._remaining&&null!==this._result){let e=this._result.filter(e=>e!==na);Oo(this.promise,e),this._result=null}}_setResultAt(e,t,n,r){if(r){this._result[t]=n;let e,r=!0;try{e=this._mapFn(n,t)}catch(i){r=!1,this._settledAt(xo,t,i,!1)}r&&this._eachEntry(e,t,!1)}else this._remaining--,n||(this._result[t]=na)}}function ia(e,t,n){return"function"!=typeof t?zo.reject(new TypeError("filter expects function as a second argument"),n):zo.resolve(e,n).then(function(e){if(!Array.isArray(e))throw new TypeError("filter must be called with an array");return new ra(zo,e,t,n).promise})}let sa,oa=0;function aa(e,t){fa[oa]=e,fa[oa+1]=t,oa+=2,2===oa&&ga()}const la="undefined"!=typeof window?window:void 0,ua=la||{},ca=ua.MutationObserver||ua.WebKitMutationObserver,ha="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),da="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function pa(){return()=>setTimeout(ma,1)}const fa=new Array(1e3);function ma(){for(let e=0;e<oa;e+=2)(0,fa[e])(fa[e+1]),fa[e]=void 0,fa[e+1]=void 0;oa=0}let ga;ga=ha?function(){let e=process.nextTick,t=process.versions.node.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/);return Array.isArray(t)&&"0"===t[1]&&"10"===t[2]&&(e=setImmediate),()=>e(ma)}():ca?function(){let e=0,t=new ca(ma),n=document.createTextNode("");return t.observe(n,{characterData:!0}
1),()=>n.data=e=++e%2}():da?function(){let e=new MessageChannel;return e.port1.onmessage=ma,()=>e.port2.postMessage(0)}():void 0===la&&"function"==typeof window.require?function(){try{const e=Function("return this")().require("vertx");return sa=e.runOnLoop||e.runOnContext,void 0!==sa?function(){sa(ma)}:pa()}catch(e){return pa()}}():pa(),go.async=aa,go.after=e=>setTimeout(e,0);const ya=ea,va=(e,t)=>go.async(e,t);function ba(){go.on(...arguments)}function _a(){go.off(...arguments)}if("undefined"!=typeof window&&"object"==typeof window.__PROMISE_INSTRUMENTATION__){let Sw=window.__PROMISE_INSTRUMENTATION__;yo("instrument",!0);for(let Ew in Sw)Sw.hasOwnProperty(Ew)&&ba(Ew,Sw[Ew])}const wa={asap:aa,cast:ya,Promise:zo,EventTarget:mo,all:qo,allSettled:Vo,race:Ho,hash:Qo,hashSettled:Ko,rethrow:Yo,defer:Jo,denodeify:Bo,configure:yo,on:ba,off:_a,resolve:ea,reject:ta,map:Zo,async:va,filter:ia},ka=Object.freeze(Object.defineProperty({__proto__:null,EventTarget:mo,Promise:zo,all:qo,allSettled:Vo,asap:aa,async:va,cast:ya,configure:yo,default:wa,defer:Jo,denodeify:Bo,filter:ia,hash:Qo,hashSettled:Ko,map:Zo,off:_a,on:ba,race:Ho,reject:ta,resolve:ea,rethrow:Yo},Symbol.toStringTag,{value:"Module"}));function ja(e,t){let n,r={},i=1;for(2===arguments.length&&Array.isArray(t)?(i=0,n=arguments[1]):n=Array.from(arguments);i<n.length;i++){let t=n[i];r[t]=ni(e,t)}return r}function xa(e,t){return null===t||"object"!=typeof t||function(){Vr();try{(()=>{let n=Object.keys(t);for(let r of n)oo(e,r,t[r])})()}finally{Hr()}}(),t}yo("async",(e,t)=>{Zi.schedule("actions",null,e,t)}),yo("after",e=>{Zi.schedule(Xi,null,e)}),ba("error",function(e){let t=function(e){if(!e)return;let t=e;return t.errorThrown?function(e){let t=e.errorThrown;return"string"==typeof t&&(t=new Error(t)),Object.defineProperty(t,"__reason_with_error_thrown__",{value:e,enumerable:!1}),t}(t):"UnrecognizedURLError"!==e.name&&"TransitionAborted"!==e.name?e:void 0}(e);if(t)throw t});const{isArray:Sa}=Array;function Ea(e){return null==e?[]:Sa(e)?e:[e]}function Ta(e){return"object"==typeof e&&null!==e&&"function"==typeof e.setUnknownProperty}const Oa=Js.prototype.reopen,Ra=new WeakSet,Aa=new WeakMap,Ca=new Set;function Na(e){Ca.has(e)||e.destroy()}function Ia(e,t){let n=Ee(e);if(void 0!==t){let r=e.concatenatedProperties,i=e.mergedProperties,s=Object.keys(t);for(let o of s){let s=t[o],a=mr(e,o,n),l=void 0!==a;if(!l){if(void 0!==r&&r.length>0&&r.includes(o)){let t=e[o];s=t?Ea(t).concat(s):Ea(s)}if(void 0!==i&&i.length>0&&i.includes(o)){let t=e[o];s=Object.assign({},t,s)}}l?a.set(e,o,s):Ta(e)&&!(o in e)?e.setUnknownProperty(o,s):e[o]=s}}e.init(t),n.unsetInitializing();let r=n.observerEvents();if(void 0!==r)for(let i=0;i<r.length;i++)Nr(e,r[i].event,r[i].sync);Sr(e,"init",void 0,void 0,n)}class Ma{[t];constructor(e){let n;this[t]=e,this.constructor.proto(),n=this;const r=n;pe(n,Na,!0),pe(n,()=>r.willDestroy()),Ee(n).setInitializing()}reopen(...e){return Ks(this,e),this}init(e){}get isDestroyed(){return ye(this)}set isDestroyed(e){}get isDestroying(){return ge(this)}set isDestroying(e){}destroy(){Ca.add(this);try{fe(this)}finally{Ca.delete(this)}return this}willDestroy(){}toString(){let e="object"==typeof this&&null!==this&&"function"==typeof this.toStringExtension?`:${this.toStringExtension()}`:"";return`<${ms(this)||"(unknown)"}:${D(this)}${e}>`}static extend(...e){let t=class extends(this){};return Oa.apply(t.PrototypeMixin,e),t}static create(...e){let t,r=e[0];return void 0!==r?(t=new this(n(r)),gs(t,ms(r))):t=new this,e.length<=1?Ia(t,r):Ia(t,Pa.apply(this,e)),t}static reopen(...e){return this.willReopen(),Oa.apply(this.PrototypeMixin,e),this}static willReopen(){let e=this.prototype;Ra.has(e)&&(Ra.delete(e),Aa.has(this)&&Aa.set(this,Js.create(this.PrototypeMixin)))}static reopenClass(...e){return Ks(this,e),this}static detect(e){if("function"!=typeof e)return!1;for(;e;){if(e===this)return!0;e=e.superclass}return!1}static detectInstance(e){return e instanceof this}static metaForProperty(e){return mr(this.proto(),e)._meta||{}}static eachComputedProperty(e,t=this){this.proto();let n={};Ee(this.prototype).forEachDescriptors((r,i)=>{if(i.enumerable){let s=i._meta||n;e.call(t,r,s)}})}static get PrototypeMixin(){let e=Aa.get(this);return void 0===e&&(e=Js.create(),e.ownerConstructor=this,Aa.set(this,e)),e}static get superclass(){let e=Object.getPrototypeOf(this);return e!==Function.prototype?e:void 0}static proto(){let e=this.prototype;if(!Ra.has(e)){Ra.add(e);let t=this.superclass;t&&t.proto(),Aa.has(this)&&this.PrototypeMixin.apply(e)}return e}static toString(){return`<${ms(this)||"(unknown)"}:constructor>`}static isClass=!0;static isMethod=!1;static _onLookup;static _lazyInjections}function Pa(...e){let t={};for(let n of e){let e=Object.keys(n);for(let r=0,i=e.length;r<i;r++){let i=e[r],s=n[i];t[i]=s}}return t}const Da=Js.create({get(e){return ni(this,e)},getProperties(...e){return ja(this,...e)},set(e,t){return oo(this,e,t)},setProperties(e){return xa(this,e)},beginPropertyChanges(){return Vr(),this},endPropertyChanges(){return Hr(),this},notifyPropertyChange(e){return $r(this,e),this},addObserver(e,t,n,r){return Ar(this,e,t,n,r),this},removeObserver(e,t,n,r){return Cr(this,e,t,n,r),this},hasObserverFor(e){return Er(this,`${e}:change`)},incrementProperty(e,t=1){return oo(this,e,(parseFloat(ni(this,e))||0)+t)},decrementProperty(e,t=1){return oo(this,e,(ni(this,e)||0)-t)},toggleProperty(e){return oo(this,e,!ni(this,e))},cacheFor(e){let t=Se(this);return null!==t?t.valueFor(e):void 0}});class La extends(Ma.extend(Da)){get _debugContainerKey(){let e=ms(this);return void 0!==e&&e.fullName}}const za=new WeakMap;
1function Fa(e,t,n){var r;if(null!=(r=e)&&void 0!==r.constructor&&"function"==typeof r.constructor.proto&&e.constructor.proto(),!Object.prototype.hasOwnProperty.call(e,"actions")){let t=e.actions;e.actions=t?Object.assign({},t):{}}return e.actions[t]=n,{get(){let e=za.get(this);void 0===e&&(e=new Map,za.set(this,e));let t=e.get(n);return void 0===t&&(t=n.bind(this),e.set(n,t)),t}}}function Ba(...e){let t;if(!lr(e)){t=e[0];let n=function(e,n){return Fa(e,n,t)};return vr(n),n}let[n,r,i]=e;return t=i?.value,Fa(n,r,t)}function Ua(e){return""!==e.tagName&&e.elementId?e.elementId:D(e)}vr(Ba);const qa=new WeakMap,$a=new WeakMap;function Va(e){return qa.get(e)||null}function Ha(e){return $a.get(e)||null}const Wa=new WeakMap;function Qa(e,t){let n=Wa.get(e);void 0===n&&(n=function(e){let t=new Set;return Wa.set(e,t),t}(e)),n.add(Ua(t))}const Ga="ember-application";class Ka extends La{events={touchstart:"touchStart",touchmove:"touchMove",touchend:"touchEnd",touchcancel:"touchCancel",keydown:"keyDown",keyup:"keyUp",keypress:"keyPress",mousedown:"mouseDown",mouseup:"mouseUp",contextmenu:"contextMenu",click:"click",dblclick:"doubleClick",focusin:"focusIn",focusout:"focusOut",submit:"submit",input:"input",change:"change",dragstart:"dragStart",drag:"drag",dragenter:"dragEnter",dragleave:"dragLeave",dragover:"dragOver",drop:"drop",dragend:"dragEnd"};rootElement="body";_eventHandlers=Object.create(null);_didSetup=!1;finalEventNameMapping=null;_sanitizedRootElement=null;lazyEvents=new Map;_reverseEventNameMapping=null;setup(e,t){let n=this.finalEventNameMapping={...ni(this,"events"),...e};this._reverseEventNameMapping=Object.keys(n).reduce((e,t)=>{let r=n[t];return r?{...e,[r]:t}:e},{});let r=this.lazyEvents;null!=t&&oo(this,"rootElement",t);let i=ni(this,"rootElement"),s="string"!=typeof i?i:document.querySelector(i);s.classList.add(Ga),this._sanitizedRootElement=s;for(let o in n)Object.prototype.hasOwnProperty.call(n,o)&&r.set(o,n[o]??null);this._didSetup=!0}setupHandlerForBrowserEvent(e){this.setupHandler(this._sanitizedRootElement,e,this.finalEventNameMapping[e]??null)}setupHandlerForEmberEvent(e){let t=this._reverseEventNameMapping?.[e];t&&this.setupHandler(this._sanitizedRootElement,t,e)}setupHandler(e,t,n){if(null===n||!this.lazyEvents.has(t))return;let r=(e,t)=>{let r=Va(e),i=!0;return r&&(i=r.handleEvent(n,t)),i},i=this._eventHandlers[t]=e=>{let t=e.target;do{if(Va(t)){if(!1===r(t,e)){e.preventDefault(),e.stopPropagation();break}if(!0===e.cancelBubble)break}t=t.parentNode}while(t instanceof Element)};e.addEventListener(t,i),this.lazyEvents.delete(t)}destroy(){if(!1===this._didSetup)return;let e=this._sanitizedRootElement;if(e){for(let t in this._eventHandlers)e.removeEventListener(t,this._eventHandlers[t]);return e.classList.remove(Ga),this._super(...arguments)}}toString(){return"(EventDispatcher)"}}const Ya=Js.create({on(e,t,n){return jr(this,e,t,n),this},one(e,t,n){return jr(this,e,t,n,!0),this},trigger(e,...t){Sr(this,e,t)},off(e,t,n){return xr(this,e,t,n),this},has(e){return Er(this,e)}});let Ja=class extends La{},Xa=[],Za={};const el=(()=>{let e="undefined"!=typeof window&&window.performance||{},t=e.now||e.mozNow||e.webkitNow||e.msNow||e.oNow;return t?t.bind(e):Date.now})();function tl(e,t,n){return n()}function nl(){}function rl(e,t,n){if(0===Xa.length)return nl;let r=Za[e];if(r||(r=function(e){let t=[];for(let n of Xa)n.regex.test(e)&&t.push(n.object);return Za[e]=t,t}(e)),0===r.length)return nl;let i,s=t(n),o=v.STRUCTURED_PROFILE;o&&(i=`${e}: ${s.object}`,console.time(i));let a=[],l=el();for(let c of r)a.push(c.before(e,l,s));const u=r;return function(){let t=el();for(let n=0;n<u.length;n++){let r=u[n];"function"==typeof r.after&&r.after(e,t,s,a[n])}o&&console.timeEnd(i)}}const il=Object.freeze({appendChild(){throw new Error("You can't use appendChild outside of the rendering process")},handleEvent:()=>!0,rerender(){},destroy(){}}),sl=Object.freeze({...il}),ol=Object.freeze({...il,rerender(e){e.renderer.rerender()},destroy(e){e.renderer.remove(e)},handleEvent:(e,t,n)=>!e.has(t)||tl(0,0,()=>ts(e,e.trigger,t,n))}),al=Object.freeze({...ol,enter(e){e.renderer.register(e)}}),ll=Object.freeze({...il,appendChild(){throw new Error("You can't call appendChild on a view being destroyed")},rerender(){throw new Error("You can't call rerender on a view being destroyed")}}),ul=Object.freeze({preRender:sl,inDOM:al,hasElement:ol,destroying:ll});var cl=Object.defineProperty;((e,t)=>
1{for(var n in t)cl(e,n,{get:t[n],enumerable:!0})})({},{c:()=>yl,f:()=>dl,g:()=>pl,i:()=>gl,m:()=>fl,n:()=>ml,p:()=>vl});var hl=new WeakMap;function dl(e,t,n,r){return pl(e.prototype,t,n,r)}function pl(e,t,n,r){let i={configurable:!0,enumerable:!0,writable:!0,initializer:null};r&&(i.initializer=r);for(let s of n)i=s(e,t,i)||i;void 0===i.initializer?Object.defineProperty(e,t,i):function(e,t,n){let r=hl.get(e);r||(r=new Map,hl.set(e,r)),r.set(t,n)}(e,t,i)}function fl({prototype:e},t,n){return ml(e,t,n)}function ml(e,t,n){let r={...Object.getOwnPropertyDescriptor(e,t)};for(let i of n)r=i(e,t,r)||r;void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(e):void 0,r.initializer=void 0),Object.defineProperty(e,t,r)}function gl(e,t){let n=function(e,t){let n=e.prototype;for(;n;){let e=hl.get(n)?.get(t);if(e)return e;n=n.prototype}}(e.constructor,t);n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(e):void 0})}function yl(e,t){return t.reduce((e,t)=>t(e)||e,e)}function vl(e,t){for(let[n,r,i]of t)"field"===n?bl(e,r,i):ml(e,r,i);return e}function bl(e,t,n){let r={configurable:!0,enumerable:!0,writable:!0,initializer:()=>Object.getOwnPropertyDescriptor(e,t)?.value};for(let i of n)r=i(e,t,r)||r;r.initializer&&(r.value=r.initializer.call(e),delete r.initializer),Object.defineProperty(e,t,r)}class _l extends(Ja.extend(Ya,so)){isView=!0;_superTrigger;_superHas;init(e){super.init(e),this._superTrigger=this.trigger,this.trigger=this._trigger,this._superHas=this.has,this.has=this._has,this.parentView??=null,this._state="preRender",this._currentState=this._states.preRender}static{pl(this.prototype,"renderer",[ai("renderer","-dom")])}#l=void gl(this,"renderer");instrumentDetails(e){return e.object=this.toString(),e.containerKey=this._debugContainerKey,e.view=this,e}_trigger(e,...t){this._superTrigger(e,...t);let n=this[e];if("function"==typeof n)return n.apply(this,t)}_has(e){return"function"==typeof this[e]||this._superHas(e)}static isViewFactory=!0}_l.prototype._states=ul;const wl=Js.create({send(e,...t){let n=this.actions&&this.actions[e];if(n&&!0!==n.apply(this,t))return;let r=ni(this,"target");r&&r.send(...arguments)}}),kl=Object.freeze([]);function jl(e,t,n,r=kl){var i;null!=(i=e)&&"function"==typeof i.replace?e.replace(t,n,r):Sl(e,t,n,r)}const xl=6e4;function Sl(e,t,n,r){if(function(e,t,n,r){void 0===t?(t=0,n=r=-1):(void 0===n&&(n=-1),void 0===r&&(r=-1)),Sr(e,"@array:before",[e,t,n,r])}(e,t,n,r.length),r.length<=xl)e.splice(t,n,...r);else{e.splice(t,n);for(let n=0;n<r.length;n+=xl){let i=r.slice(n,n+xl);e.splice(t+n,0,...i)}}!function(e,t,n,r,i=!0){void 0===t?(t=0,n=r=-1):(void 0===n&&(n=-1),void 0===r&&(r=-1));let s=Se(e);if(i&&((r<0||n<0||r-n!==0)&&$r(e,"length",s),$r(e,"[]",s)),Sr(e,"@array:change",[e,t,n,r]),null!==s){let i=-1===n?0:n,o=e.length-((-1===r?0:r)-i),a=t<0?o+t:t;void 0!==s.revisionFor("firstObject")&&0===a&&$r(e,"firstObject",s),void 0!==s.revisionFor("lastObject")&&o-1<a+i&&$r(e,"lastObject",s)}}(e,t,n,r.length)}const El={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object AsyncFunction]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object","[object FileList]":"filelist"},{toString:Tl}=Object.prototype;function Ol(e){if(null===e)return"null";if(void 0===e)return"undefined";let t=El[Tl.call(e)]||"object";return"function"===t?Ma.detect(e)&&(t="class"):"object"===t&&(e instanceof Error?t="error":e instanceof Ma?t="instance":e instanceof Date&&(t="date")),t}const Rl={undefined:0,null:1,boolean:2,number:3,string:4,array:5,object:6,instance:7,function:8,class:9,date:10,regexp:11,filelist:12,error:13};function Al(e,t){return Math.sign(e-t)}function Cl(e,t){if(e===t)return 0;let n=Ol(e),r=Ol(t);if("instance"===n&&Nl(e)&&e.constructor.compare)return e.constructor.compare(e,t);if("instance"===r&&Nl(t)&&t.constructor.compare)return-1*t.constructor.compare(t,e);let i=Al(Rl[n],Rl[r]);if(0!==i)return i;switch(n){case"boolean":return Al(Number(e),Number(t));case"number":return Al(e,t);case"string":return Al(e.localeCompare(t),0);case"array":{let n=e.length,r=t.length,i=Math.min(n,r);for(let s=0;s<i;s++){let n=Cl(e[s],t[s]);if(0!==n)return n}return Al(n,r)}case"instance":return Nl(e)&&e.compare?e.compare(e,t):0;case"date":return Al(e.getTime(),t.getTime());default:return 0}}function Nl(e){return io.detect(e)}const Il=Object.freeze([]),Ml=e=>e;function Pl(e,t=Ml){let n=Kl(),r=new Set,i="function"==typeof t?t:e=>ni(e,t);
1return e.forEach(e=>{let t=i(e);r.has(t)||(r.add(t),n.push(e))}),n}function Dl(...e){let t=2===e.length,[n,r]=e;return t?e=>r===ni(e,n):e=>Boolean(ni(e,n))}function Ll(e,t,n){let r=e.length;for(let i=n;i<r;i++)if(t(Zn(e,i),i,e))return i;return-1}function zl(e,t,n=null){let r=Ll(e,t.bind(n),0);return-1===r?void 0:Zn(e,r)}function Fl(e,t,n=null){return-1!==Ll(e,t.bind(n),0)}function Bl(e,t,n=null){let r=t.bind(n);return-1===Ll(e,(e,t,n)=>!r(e,t,n),0)}function Ul(e,t,n=0,r){let i=e.length;return n<0&&(n+=i),Ll(e,r&&t!=t?e=>e!=e:e=>e===t,n)}function ql(e,t,n){return jl(e,t,0,[n]),n}function $l(e){let t=Kr(e);return t.enumerable=!1,t}function Vl(e){return this.map(t=>ni(t,e))}const Hl=Js.create(co,{init(){this._super(...arguments),Kn.add(this)},objectsAt(e){return e.map(e=>Zn(this,e))},"[]":$l({get(){return this},set(e,t){return this.replace(0,this.length,t),this}}),firstObject:$l(function(){return Zn(this,0)}).readOnly(),lastObject:$l(function(){return Zn(this,this.length-1)}).readOnly(),slice(e=0,t){let n,r=Kl(),i=this.length;for(e<0&&(e=i+e),n=void 0===t||t>i?i:t<0?i+t:t;e<n;)r[r.length]=Zn(this,e++);return r},indexOf(e,t){return Ul(this,e,t,!1)},lastIndexOf(e,t){let n=this.length;(void 0===t||t>=n)&&(t=n-1),t<0&&(t+=n);for(let r=t;r>=0;r--)if(Zn(this,r)===e)return r;return-1},forEach(e,t=null){let n=this.length;for(let r=0;r<n;r++){let n=this.objectAt(r);e.call(t,n,r,this)}return this},getEach:Vl,setEach(e,t){return this.forEach(n=>oo(n,e,t))},map(e,t=null){let n=Kl();return this.forEach((r,i,s)=>n[i]=e.call(t,r,i,s)),n},mapBy:Vl,filter(e,t=null){let n=Kl();return this.forEach((r,i,s)=>{e.call(t,r,i,s)&&n.push(r)}),n},reject(e,t=null){return this.filter(function(){return!e.apply(t,arguments)})},filterBy(){return this.filter(Dl(...arguments))},rejectBy(){return this.reject(Dl(...arguments))},find(e,t=null){return zl(this,e,t)},findBy(){return zl(this,Dl(...arguments))},every(e,t=null){return Bl(this,e,t)},isEvery(){return Bl(this,Dl(...arguments))},any(e,t=null){return Fl(this,e,t)},isAny(){return Fl(this,Dl(...arguments))},reduce(e,t){let n=t;return this.forEach(function(t,r){n=e(n,t,r,this)},this),n},invoke(e,...t){let n=Kl();return this.forEach(r=>n.push(r[e]?.(...t))),n},toArray(){return this.map(e=>e)},compact(){return this.filter(e=>null!=e)},includes(e,t){return-1!==Ul(this,e,t,!0)},sortBy(){let e=arguments;return this.toArray().sort((t,n)=>{for(let r=0;r<e.length;r++){let i=e[r],s=Cl(ni(t,i),ni(n,i));if(s)return s}return 0})},uniq(){return Pl(this)},uniqBy(e){return Pl(this,e)},without(e){if(!this.includes(e))return this;let t=e==e?t=>t!==e:e=>e==e;return this.filter(t)}}),Wl=Js.create(Hl,ho,{clear(){let e=this.length;return 0===e||this.replace(0,e,Il),this},insertAt(e,t){return ql(this,e,t),this},removeAt(e,t){return function(e,t,n){return jl(e,t,n??1,Il),e}(this,e,t)},pushObject(e){return ql(this,this.length,e)},pushObjects(e){return this.replace(this.length,0,e),this},popObject(){let e=this.length;if(0===e)return null;let t=Zn(this,e-1);return this.removeAt(e-1,1),t},shiftObject(){if(0===this.length)return null;let e=Zn(this,0);return this.removeAt(0),e},unshiftObject(e){return ql(this,0,e)},unshiftObjects(e){return this.replace(0,0,e),this},reverseObjects(){let e=this.length;if(0===e)return this;let t=this.toArray().reverse();return this.replace(0,e,t),this},setObjects(e){if(0===e.length)return this.clear();let t=this.length;return this.replace(0,t,e),this},removeObject(e){let t=this.length||0;for(;--t>=0;)Zn(this,t)===e&&this.removeAt(t);return this},removeObjects(e){Vr();for(let t=e.length-1;t>=0;t--)this.removeObject(e[t]);return Hr(),this},addObject(e){return this.includes(e)||this.pushObject(e),this},addObjects(e){return Vr(),e.forEach(e=>this.addObject(e)),Hr(),this}});let Ql=Js.create(Wl,Da,{objectAt(e){return this[e]},replace(e,t,n=Il){return Sl(this,e,t,n),this}});const Gl=["length"];let Kl;
1Ql.keys().forEach(e=>{Array.prototype[e]&&Gl.push(e)}),Ql=Ql.without(...Gl),Kl=function(e){return Yn(e)?e:Ql.apply(e??[])};const Yl=X("MODEL"),Jl=Js.create(so,{isController:!0,concatenatedProperties:["queryParams"],target:null,store:null,init(){this._super(...arguments);let e=n(this);e&&(this.namespace=e.lookup("application:main"),this.target=e.lookup("router:main"))},model:Kr({get(){return this[Yl]},set(e,t){return this[Yl]=t}}),queryParams:null,_qpDelegate:null,_qpChanged(e,t){let n=t.indexOf(".[]"),r=-1===n?t:t.slice(0,n);(0,e._qpDelegate)(r,ni(e,r))}});class Xl extends(Ja.extend(Jl)){}const Zl=Symbol("ENGINE_PARENT");function eu(e){return e[Zl]}class tu extends(La.extend(to,ro)){static setupRegistry(e,t){}[Zl];_booted=!1;init(e){super.init(e),D(this),this.base??=this.application;let t=this.__registry__=new bs({fallback:this.base.__registry__});this.__container__=t.container({owner:this}),this._booted=!1}_bootPromise=null;boot(e){return this._bootPromise||(this._bootPromise=new ka.Promise(t=>{t(this._bootSync(e))})),this._bootPromise}_bootSync(e){return this._booted||(this.cloneParentDependencies(),this.setupRegistry(e),this.base.runInstanceInitializers(this),this._booted=!0),this}setupRegistry(e=this.__container__.lookup("-environment:main")){this.constructor.setupRegistry(this.__registry__,e)}unregister(e){this.__container__.reset(e),this.__registry__.unregister(e)}buildChildEngineInstance(e,t={}){let n=this.lookup(`engine:${e}`);if(!n)throw new Error(`You attempted to mount the engine '${e}', but it is not registered with its parent.`);let r=n.buildInstance(t);return r[Zl]=this,r}cloneParentDependencies(){const e=eu(this);["route:basic","service:-routing"].forEach(t=>{let n=e.resolveRegistration(t);this.register(t,n)});let t=e.lookup("-environment:main");this.register("-environment:main",t,{instantiate:!1});let n=["router:main",ks`-bucket-cache:main`,"-view-registry:main","renderer:-dom","service:-document"];t.isInteractive&&n.push("event_dispatcher:main"),n.forEach(t=>{let n=e.lookup(t);this.register(t,n,{instantiate:!1})})}}let nu=function(e,t,n){let{get:r}=n;return void 0!==r&&(n.get=function(){let e,n=vt(this,t),i=st(()=>{e=r.call(this)});return Pe(n,i),Xe(i),e}),n};function ru(...e){if(lr(e)){let[t,n,r]=e;return nu(0,n,r)}{const t=e[0];let n=function(e,n){return nu(0,n,t)};return vr(n),n}}vr(ru);var iu=Object.create;function su(){var e=iu(null);return e.__=void 0,delete e.__,e}var ou=function(e,t,n){this.path=e,this.matcher=t,this.delegate=n};ou.prototype.to=function(e,t){var n=this.delegate;if(n&&n.willAddRoute&&(e=n.willAddRoute(this.matcher.target,e)),this.matcher.add(this.path,e),t){if(0===t.length)throw new Error("You must have an argument in the function passed to `to`");this.matcher.addChild(this.path,e,t,this.delegate)}};var au=function(e){this.routes=su(),this.children=su(),this.target=e};function lu(e,t,n){return function(r,i){var s=e+r;if(!i)return new ou(s,t,n);i(lu(s,t,n))}}function uu(e,t,n){for(var r=0,i=0;i<e.length;i++)r+=e[i].path.length;var s={path:t=t.substr(r),handler:n};e.push(s)}function cu(e,t,n,r){for(var i=t.routes,s=Object.keys(i),o=0;o<s.length;o++){var a=s[o],l=e.slice();uu(l,a,i[a]);var u=t.children[a];u?cu(l,u,n,r):n.call(r,l)}}function hu(e){return e.split("/").map(pu).join("/")}au.prototype.add=function(e,t){this.routes[e]=t},au.prototype.addChild=function(e,t,n,r){var i=new au(t);this.children[e]=i;var s=lu(e,i,r);r&&r.contextEntered&&r.contextEntered(t,s),n(s)};var du=/%|\//g;function pu(e){return e.length<3||-1===e.indexOf("%")?e:decodeURIComponent(e).replace(du,encodeURIComponent)}var fu=/%(?:2(?:4|6|B|C)|3(?:B|D|A)|40)/g;function mu(e){return encodeURIComponent(e).replace(fu,decodeURIComponent)}var gu=/(\/|\.|\*|\+|\?|\||\(|\)|\[|\]|\{|\}|\\)/g,yu=Array.isArray,vu=Object.prototype.hasOwnProperty;function bu(e,t){if("object"!=typeof e||null===e)throw new Error("You must pass an object as the second argument to `generate`.");if(!vu.call(e,t))throw new Error("You must provide param `"+t+"` to `generate`.");var n=e[t],r="string"==typeof n?n:""+n;if(0===r.length)throw new Error("You must provide a param `"+t+"`.");return r}var _u=[];_u[0]=function(e,t){for(var n=t,r=e.value,i=0;i<r.length;i++){var s=r.charCodeAt(i);n=n.put(s,!1,!1)}return n},_u[1]=function(e,t){return t.put(47,!0,!0)},_u[2]=function(e,t){return t.put(-1,!1,!0)},_u[4]=function(e,t){return t};var wu=[];wu[0]=function(e){return e.value.replace(gu,"\\$1")},wu[1]=function(){return"([^/]+)"},wu[2]=function(){return"(.+)"},wu[4]=function(){return""};var ku=[];ku[0]=function(e){return e.value},ku[1]=function(e,t){var n=bu(t,e.value);return Nu.ENCODE_AND_DECODE_PATH_SEGMENTS?mu(n):n},ku[2]=function(e,t){return bu(t,e.value)},ku[4]=function(){return""};var ju=Object.freeze({}),xu=Object.freeze([]);function Su(e,t,n){t.length>0&&47===t.charCodeAt(0)&&(t=t.substr(1));for(var r=t.split("/"),i=void 0,s=void 0,o=0;o<r.length;o++){var a,l,u=r[o];12&(a=2<<(l=""===u?4:58===u.charCodeAt(0)?1:42===u.charCodeAt(0)?2:0))&&(u=u.slice(1),(i=i||[]).push(u),(s=s||[]).push(!!(4&a))),14&a&&n[l]++,e.push({type:l,value:pu(u)}
1)}return{names:i||xu,shouldDecodes:s||xu}}function Eu(e,t,n){return e.char===t&&e.negate===n}var Tu=function(e,t,n,r,i){this.states=e,this.id=t,this.char=n,this.negate=r,this.nextStates=i?t:null,this.pattern="",this._regex=void 0,this.handlers=void 0,this.types=void 0};function Ou(e,t){return e.negate?e.char!==t&&-1!==e.char:e.char===t||-1===e.char}function Ru(e,t){for(var n=[],r=0,i=e.length;r<i;r++){var s=e[r];n=n.concat(s.match(t))}return n}Tu.prototype.regex=function(){return this._regex||(this._regex=new RegExp(this.pattern)),this._regex},Tu.prototype.get=function(e,t){var n=this.nextStates;if(null!==n)if(yu(n))for(var r=0;r<n.length;r++){var i=this.states[n[r]];if(Eu(i,e,t))return i}else{var s=this.states[n];if(Eu(s,e,t))return s}},Tu.prototype.put=function(e,t,n){var r;if(r=this.get(e,t))return r;var i=this.states;return r=new Tu(i,i.length,e,t,n),i[i.length]=r,null==this.nextStates?this.nextStates=r.id:yu(this.nextStates)?this.nextStates.push(r.id):this.nextStates=[this.nextStates,r.id],r},Tu.prototype.match=function(e){var t=this.nextStates;if(!t)return[];var n=[];if(yu(t))for(var r=0;r<t.length;r++){var i=this.states[t[r]];Ou(i,e)&&n.push(i)}else{var s=this.states[t];Ou(s,e)&&n.push(s)}return n};var Au=function(e){this.length=0,this.queryParams=e||{}};function Cu(e){var t;e=e.replace(/\+/gm,"%20");try{t=decodeURIComponent(e)}catch(n){t=""}return t}Au.prototype.splice=Array.prototype.splice,Au.prototype.slice=Array.prototype.slice,Au.prototype.push=Array.prototype.push;var Nu=function(){this.names=su();var e=[],t=new Tu(e,0,-1,!0,!1);e[0]=t,this.states=e,this.rootState=t};function Iu(){let e=new Error("TransitionAborted");return e.name="TransitionAborted",e.code="TRANSITION_ABORTED",e}function Mu(e){if("object"==typeof(t=e)&&null!==t&&"boolean"==typeof t.isAborted&&e.isAborted)throw Iu();var t}Nu.prototype.add=function(e,t){for(var n,r=this.rootState,i="^",s=[0,0,0],o=new Array(e.length),a=[],l=!0,u=0,c=0;c<e.length;c++){for(var h=e[c],d=Su(a,h.path,s),p=d.names,f=d.shouldDecodes;u<a.length;u++){var m=a[u];4!==m.type&&(l=!1,r=r.put(47,!1,!1),i+="/",r=_u[m.type](m,r),i+=wu[m.type](m))}o[c]={handler:h.handler,names:p,shouldDecodes:f}}l&&(r=r.put(47,!1,!1),i+="/"),r.handlers=o,r.pattern=i+"$",r.types=s,"object"==typeof t&&null!==t&&t.as&&(n=t.as),n&&(this.names[n]={segments:a,handlers:o})},Nu.prototype.handlersFor=function(e){var t=this.names[e];if(!t)throw new Error("There is no route named "+e);for(var n=new Array(t.handlers.length),r=0;r<t.handlers.length;r++){var i=t.handlers[r];n[r]=i}return n},Nu.prototype.hasRoute=function(e){return!!this.names[e]},Nu.prototype.generate=function(e,t){var n=this.names[e],r="";if(!n)throw new Error("There is no route named "+e);for(var i=n.segments,s=0;s<i.length;s++){var o=i[s];4!==o.type&&(r+="/",r+=ku[o.type](o,t))}return"/"!==r.charAt(0)&&(r="/"+r),t&&t.queryParams&&(r+=this.generateQueryString(t.queryParams)),r},Nu.prototype.generateQueryString=function(e){var t=[],n=Object.keys(e);n.sort();for(var r=0;r<n.length;r++){var i=n[r],s=e[i];if(null!=s){var o=encodeURIComponent(i);if(yu(s))for(var a=0;a<s.length;a++){var l=i+"[]="+encodeURIComponent(s[a]);t.push(l)}else o+="="+encodeURIComponent(s),t.push(o)}}return 0===t.length?"":"?"+t.join("&")},Nu.prototype.parseQueryString=function(e){for(var t=e.split("&"),n={},r=0;r<t.length;r++){var i=t[r].split("="),s=Cu(i[0]),o=s.length,a=!1,l=void 0;1===i.length?l="true":(o>2&&"[]"===s.slice(o-2)&&(a=!0,n[s=s.slice(0,o-2)]||(n[s]=[])),l=i[1]?Cu(i[1]):""),a?n[s].push(l):n[s]=l}return n},Nu.prototype.recognize=function(e){var t,n=[this.rootState],r={},i=!1,s=e.indexOf("#");-1!==s&&(e=e.substr(0,s));var o=e.indexOf("?");if(-1!==o){var a=e.substr(o+1,e.length);e=e.substr(0,o),r=this.parseQueryString(a)}"/"!==e.charAt(0)&&(e="/"+e);var l=e;Nu.ENCODE_AND_DECODE_PATH_SEGMENTS?e=hu(e):(e=decodeURI(e),l=decodeURI(l));var u=e.length;u>1&&"/"===e.charAt(u-1)&&(e=e.substr(0,u-1),l=l.substr(0,l.length-1),i=!0);for(var c=0;c<e.length&&(n=Ru(n,e.charCodeAt(c))).length;c++);for(var h=[],d=0;d<n.length;d++)n[d].handlers&&h.push(n[d]);n=function(e){return e.sort(function(e,t){var n=e.types||[0,0,0],r=n[0],i=n[1],s=n[2],o=t.types||[0,0,0],a=o[0],l=o[1],u=o[2];if(s!==u)return s-u;if(s){if(r!==a)return a-r;if(i!==l)return l-i}return i!==l?i-l:r!==a?a-r:0})}(h);var p=h[0];return p&&p.handlers&&(i&&p.pattern&&"(.+)$"===p.pattern.slice(-5)&&(l+="/"),t=function(e,t,n){var r=e.handlers,i=e.regex();if(!i||!r)throw new Error("state not initialized");var s=t.match(i),o=1,a=new Au(n);a.length=r.length;for(var l=0;l<r.length;l++){var u=r[l],c=u.names,h=u.shouldDecodes,d=ju,p=!1;if(c!==xu&&h!==xu)for(var f=0;f<c.length;f++){p=!0;var m=c[f],g=s&&s[o++];d===ju&&(d={}),Nu.ENCODE_AND_DECODE_PATH_SEGMENTS&&h[f]?d[m]=g&&decodeURIComponent(g):d[m]=g}a[l]={handler:u.handler,params:d,isDynamic:p}}return a}(p,l,r)),t},Nu.VERSION="0.3.4",Nu.ENCODE_AND_DECODE_PATH_SEGMENTS=!0,Nu.Normalizer={normalizeSegment:pu,normalizePath:
1hu,encodePathSegment:mu},Nu.prototype.map=function(e,t){var n=new au;e(lu("",n,this.delegate)),cu([],n,function(e){t?t(this,e):this.add(e)},this)};const Pu=Array.prototype.slice,Du=Object.prototype.hasOwnProperty;function Lu(e,t){for(let n in t)Du.call(t,n)&&(e[n]=t[n])}function zu(e){let t,n,r=e&&e.length;if(r&&r>0){let i=e[r-1];if(function(e){if(e&&"object"==typeof e){let t=e;return"queryParams"in t&&Object.keys(t.queryParams).every(e=>"string"==typeof e)}return!1}(i))return n=i.queryParams,t=Pu.call(e,0,r-1),[t,n]}return[e,null]}function Fu(e){for(let t in e){let n=e[t];if("number"==typeof n)e[t]=""+n;else if(Array.isArray(n))for(let e=0,t=n.length;e<t;e++)n[e]=""+n[e]}}function Bu(e,...t){if(e.log)if(2===t.length){let[n,r]=t;e.log("Transition #"+n+": "+r)}else{let[n]=t;e.log(n)}}function Uu(e){return"string"==typeof e||e instanceof String||"number"==typeof e||e instanceof Number}function qu(e,t){for(let n=0,r=e.length;n<r&&!1!==t(e[n]);n++);}function $u(e,t){let n,r={all:{},changed:{},removed:{}};Lu(r.all,t);let i=!1;for(n in Fu(e),Fu(t),e)Du.call(e,n)&&(Du.call(t,n)||(i=!0,r.removed[n]=e[n]));for(n in t)if(Du.call(t,n)){let s=e[n],o=t[n];if(Vu(s)&&Vu(o))if(s.length!==o.length)r.changed[n]=t[n],i=!0;else for(let e=0,a=s.length;e<a;e++)s[e]!==o[e]&&(r.changed[n]=t[n],i=!0);else e[n]!==t[n]&&(r.changed[n]=t[n],i=!0)}return i?r:void 0}function Vu(e){return Array.isArray(e)}function Hu(e){return"Router: "+e}const Wu="__STATE__-2619860001345920-3322w3",Qu="__PARAMS__-261986232992830203-23323",Gu="__QPS__-2619863929824844-32323",Ku="__RDS__-2619863929824844-32323";class Yu{constructor(e,t,n,r,i){if(this.from=null,this.to=void 0,this.isAborted=!1,this.isActive=!0,this.urlMethod="update",this.resolveIndex=0,this.queryParamsOnly=!1,this.isTransition=!0,this.isCausedByAbortingTransition=!1,this.isCausedByInitialTransition=!1,this.isCausedByAbortingReplaceTransition=!1,this._visibleQueryParams={},this.isIntermediate=!1,this[Wu]=n||e.state,this.intent=t,this.router=e,this.data=t&&t.data||{},this.resolvedModels={},this[Gu]={},this.promise=void 0,this.error=void 0,this[Qu]={},this.routeInfos=[],this.targetName=void 0,this.pivotHandler=void 0,this.sequence=-1,r)return this.promise=zo.reject(r),void(this.error=r);if(this.isCausedByAbortingTransition=!!i,this.isCausedByInitialTransition=!!i&&(i.isCausedByInitialTransition||0===i.sequence),this.isCausedByAbortingReplaceTransition=!!i&&"replace"===i.urlMethod&&(!i.isCausedByAbortingTransition||i.isCausedByAbortingReplaceTransition),n){this[Qu]=n.params,this[Gu]=n.queryParams,this.routeInfos=n.routeInfos;let t=n.routeInfos.length;t&&(this.targetName=n.routeInfos[t-1].name);for(let e=0;e<t;++e){let t=n.routeInfos[e];if(!t.isResolved)break;this.pivotHandler=t.route}this.sequence=e.currentSequence++,this.promise=n.resolve(this).catch(e=>{throw this.router.transitionDidError(e,this)},Hu("Handle Abort"))}else this.promise=zo.resolve(this[Wu]),this[Qu]={}}then(e,t,n){return this.promise.then(e,t,n)}catch(e,t){return this.promise.catch(e,t)}finally(e,t){return this.promise.finally(e,t)}abort(){this.rollback();let e=new Yu(this.router,void 0,void 0,void 0);return e.to=this.from,e.from=this.from,e.isAborted=!0,this.router.routeWillChange(e),this.router.routeDidChange(e),this}rollback(){this.isAborted||(Bu(this.router,this.sequence,this.targetName+": transition was aborted"),void 0!==this.intent&&null!==this.intent&&(this.intent.preTransitionState=this.router.state),this.isAborted=!0,this.isActive=!1,this.router.activeTransition=void 0)}redirect(e){this[Ku]=e,this.rollback(),this.router.routeWillChange(e)}retry(){this.abort();let e=this.router.transitionByIntent(this.intent,!1);return null!==this.urlMethod&&e.method(this.urlMethod),e}method(e){return this.urlMethod=e,this}send(e=!1,t,n,r,i){this.trigger(e,t,n,r,i)}trigger(e=!1,t,...n){"string"==typeof e&&(t=e,e=!1),this.router.triggerEvent(this[Wu].routeInfos.slice(0,this.resolveIndex+1),e,t,n)}followRedirects(){return this.promise.catch(e=>this[Ku]?this[Ku].followRedirects():zo.reject(e))}toString(){return"Transition (sequence "+this.sequence+")"}log(e){Bu(this.router,this.sequence,e)}}function Ju(e){return Bu(e.router,e.sequence,"detected abort."),Iu()}function Xu(e){return"object"==typeof e&&e instanceof Yu&&e.isTransition}const Zu=function(){function e(t){let n=Error.call(this,t);this.name="UnrecognizedURLError",this.message=t||"UnrecognizedURL",Error.captureStackTrace?Error.captureStackTrace(this,e):this.stack=n.stack}return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}();function ec(e,t){let n=e.factoryFor("controller:basic").class;n=class extends n{toString(){return`(generated ${t} controller)`}};let r=`controller:${t}`;return e.register(r,n),e.factoryFor(r)}function tc(e,t){ec(e,t);let n=`controller:${t}`;return e.lookup(n)}const nc=/\./g;
1function rc(e){let t,n,r=(e=e.slice())[e.length-1];return function(e){if(e&&"object"==typeof e){let t=e.queryParams;if(t&&"object"==typeof t)return Object.keys(t).every(e=>"string"==typeof e)}return!1}(r)?(e.pop(),t=r.queryParams):t={},"string"==typeof e[0]&&(n=e.shift()),{routeName:n,models:e,queryParams:t}}function ic(e,t){if(t._namesStashed)return;let n,r=t[t.length-1].name,i=e._routerMicrolib.recognizer.handlersFor(r);for(let s=0;s<t.length;++s){let e=t[s],r=i[s].names;r.length&&(n=e),e._names=r,e.route._stashNames(e,n)}t._namesStashed=!0}function sc(e,t){let n=e.split("."),r="";for(let i=0;i<n.length;i++){let e=n.slice(0,i+1).join(".");if(0!==t.indexOf(e))break;r=e}return r}function oc(e,t=[],n){let r="";for(let i of t){let t,s=sc(e,i);if(n)if(s&&s in n){let e=0===i.indexOf(s)?i.substring(s.length+1):i;t=ni(n[s],e)}else t=ni(n,i);r+=`::${i}:${t}`}return e+r.replace(nc,"-")}function ac(e,t){let n="string"==typeof e?{[e]:{as:null}}:e;for(let r in n){if(!Object.prototype.hasOwnProperty.call(n,r))return;let e=n[r],i="string"==typeof e?{as:e}:e,s={...t[r]||{as:null,scope:"model"},...i};t[r]=s}}function lc(e){return"string"==typeof e&&(""===e||"/"===e[0])}function uc(e,t){let n=0,r=0;for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(e[i]!==t[i])return!1;n++}for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&r++;return n===r}const cc=Symbol("render"),hc=Symbol("render-state");class dc extends(La.extend(so,Ya)){static isRouteFactory=!0;context={};_bucketCache;_internalName;_names;_router;constructor(e){if(super(e),e){let t=e.lookup("router:main"),n=e.lookup(ks`-bucket-cache:main`);this._router=t,this._bucketCache=n,this._topLevelViewTemplate=e.lookup("template:-outlet"),this._environment=e.lookup("-environment:main")}}serialize(e,t){if(t.length<1||!e)return;let n={};if(1===t.length){let[r]=t;"object"==typeof e&&r in e?n[r]=ni(e,r):/_id$/.test(r)?n[r]=ni(e,"id"):Qn(e)&&(n[r]=ni(e,r))}else n=ja(e,t);return n}_setRouteName(e){this.routeName=e;let t=n(this);this.fullRouteName=yc(t,e)}_stashNames(e,t){if(this._names)return;let n=this._names=e._names;n.length||(n=(e=t)&&e._names||[]);let r=ni(this,"_qp").qps,i=new Array(n.length);for(let s=0;s<n.length;++s)i[s]=`${e.name}.${n[s]}`;for(let s of r)"model"===s.scope&&(s.parts=i)}_activeQPChanged(e,t){this._router._activeQPChanged(e.scopedPropertyName,t)}_updatingQPChanged(e){this._router._updatingQPChanged(e.urlKey)}paramsFor(e){let t=n(this).lookup(`route:${e}`);if(void 0===t)return{};let r=this._router._routerMicrolib.activeTransition,i=r?r[Wu]:this._router._routerMicrolib.state,s=t.fullRouteName,o={...i.params[s]},a=mc(t,i);return Object.entries(a).reduce((e,[t,n])=>(e[t]=n,e),o)}serializeQueryParamKey(e){return e}serializeQueryParam(e,t,n){return this._router._serializeQueryParam(e,n)}deserializeQueryParam(e,t,n){return this._router._deserializeQueryParam(e,n)}_optionsForQueryParam(e){const t=ni(this,"queryParams");return ni(t,e.urlKey)||ni(t,e.prop)||t[e.urlKey]||t[e.prop]||{}}resetController(e,t,n){return this}exit(e){this.deactivate(e),this.trigger("deactivate",e),this.teardownViews()}_internalReset(e,t){let n=this.controller;n._qpDelegate=ni(this,"_qp").states.inactive,this.resetController(n,e,t)}enter(e){this[hc]=void 0,this.activate(e),this.trigger("activate",e)}deactivate(e){}activate(e){}intermediateTransitionTo(...e){let[t,...r]=function(e,t){let r,i=n(e),s=i.mountPoint;if(i.routable&&"string"==typeof t[0]){if(r=t[0],lc(r))throw new Error("Programmatic transitions by URL cannot be used within an Engine. Please use the route name instead.");r=`${s}.${r}`,t[0]=r}return t}(this,e);this._router.intermediateTransitionTo(t,...r)}refresh(){return this._router._routerMicrolib.refresh(this)}setup(e,t){let n=this.controllerName||this.routeName,r=this.controllerFor(n,!0)??this.generateController(n),i=ni(this,"_qp");if(!this.controller){let e=i.propertyNames;!function(e,t){t.forEach(t=>{if(void 0===mr(e,t)){let n=G(e,t);null===n||"function"!=typeof n.get&&"function"!=typeof n.set||Yr(e,t,ru({get:n.get,set:n.set}))}Ar(e,`${t}.[]`,e,e._qpChanged,!1)})}(r,e),this.controller=r}let s=i.states;if(r._qpDelegate=s.allowOverrides,t){ic(this._router,t[Wu].routeInfos);let e=this._bucketCache,n=t[Qu];
1i.propertyNames.forEach(t=>{let s=i.map[t];s.values=n;let o=oc(s.route.fullRouteName,s.parts,s.values),a=e.lookup(o,t,s.undecoratedDefaultValue);oo(r,t,a)});let s=mc(this,t[Wu]);xa(r,s)}this.setupController(r,e,t),this._environment.options.shouldRender&&this[cc](),zr(!1)}_qpChanged(e,t,n){if(!n)return;let r=this._bucketCache,i=oc(n.route.fullRouteName,n.parts,n.values);r.stash(i,e,t)}beforeModel(e){}afterModel(e,t){}redirect(e,t){}contextDidChange(){this.currentModel=this.context}model(e,t){let n,r,i=ni(this,"_qp").map;for(let s in e){if("queryParams"===s||i&&s in i)continue;let e=s.match(/^(.*)_id$/);null!==e&&(n=e[1]),r=!0}if(!n){if(r)return Object.assign({},e);if(t.resolveIndex<1)return;return t[Wu].routeInfos[t.resolveIndex-1].context}}deserialize(e,t){return this.model(this._paramsFor(this.routeName,e),t)}setupController(e,t,n){e&&void 0!==t&&oo(e,"model",t)}controllerFor(e,t=!1){let r=n(this),i=r.lookup(`route:${e}`);return i&&i.controllerName&&(e=i.controllerName),r.lookup(`controller:${e}`)}generateController(e){return tc(n(this),e)}modelFor(e){let t,r=n(this),i=this._router&&this._router._routerMicrolib?this._router._routerMicrolib.activeTransition:void 0;t=r.routable&&void 0!==i?yc(r,e):e;let s=r.lookup(`route:${t}`);if(null!=i){let e=s&&s.routeName||t;if(Object.prototype.hasOwnProperty.call(i.resolvedModels,e))return i.resolvedModels[e]}return s?.currentModel}[hc]=void 0;[cc](){this[hc]=function(e){let t,r=n(e),i=e.routeName,s=r.lookup(`controller:${e.controllerName||i}`),o=e.currentModel,a=r.lookup(`template:${e.templateName||i}`);return t=a?Mn(a)?a:a(r):e._topLevelViewTemplate(r),{owner:r,name:i,controller:s,model:o,template:t}}(this),rs(this._router,"_setOutlets")}willDestroy(){this.teardownViews()}teardownViews(){this[hc]&&(this[hc]=void 0,rs(this._router,"_setOutlets"))}buildRouteInfoMetadata(){}_paramsFor(e,t){return void 0!==this._router._routerMicrolib.activeTransition?this.paramsFor(e):t}get _store(){const e=n(this);return this.routeName,{find(t,n){let r=e.factoryFor(`model:${t}`);if(r)return r=r.class,r.find(n)}}}static{ml(this.prototype,"_store",[Kr])}get _qp(){let e={},t=this.controllerName||this.routeName,r=n(this),i=r.lookup(`controller:${t}`),s=ni(this,"queryParams"),o=Object.keys(s).length>0;i?e=function(e,t){let n={},r={defaultValue:!0,type:!0,scope:!0,as:!0};for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]={...e[i],...t[i]},r[i]=!0);for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&!r[i]&&(n[i]={...t[i],...e[i]});return n}(function(e){let t={};for(let n of e)ac(n,t);return t}(ni(i,"queryParams")||[]),s):o&&(i=tc(r,t),e=s);let a=[],l={},u=[];for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if("unknownProperty"===n||"_super"===n)continue;let r,s=e[n],o=s.scope||"model";"controller"===o&&(r=[]);let c=s.as||this.serializeQueryParamKey(n),h=ni(i,n);h=gc(h);let d=s.type||Ol(h),p=this.serializeQueryParam(h,c,d),f=`${t}:${n}`,m={undecoratedDefaultValue:ni(i,n),defaultValue:h,serializedDefaultValue:p,serializedValue:p,type:d,urlKey:c,prop:n,scopedPropertyName:f,controllerName:t,route:this,parts:r,values:null,scope:o};l[n]=l[c]=l[f]=m,a.push(m),u.push(n)}return{qps:a,map:l,propertyNames:u,states:{inactive:(e,t)=>{let n=l[e];this._qpChanged(e,t,n)},active:(e,t)=>{let n=l[e];return this._qpChanged(e,t,n),this._activeQPChanged(n,t)},allowOverrides:(e,t)=>{let n=l[e];return this._qpChanged(e,t,n),this._updatingQPChanged(n)}}}}static{ml(this.prototype,"_qp",[Kr])}}function pc(e){return e[hc]}function fc(e,t){if(t.fullQueryParams)return t.fullQueryParams;let n=t.routeInfos.every(e=>e.route),r={...t.queryParams};return e._deserializeQueryParams(t.routeInfos,r),n&&(t.fullQueryParams=r),r}function mc(e,t){t.queryParamsFor=t.queryParamsFor||{};let n=e.fullRouteName,r=t.queryParamsFor[n];if(r)return r;let i=fc(e._router,t),s=t.queryParamsFor[n]={},o=ni(e,"_qp").qps;for(let a of o){let e=a.prop in i;s[a.prop]=e?i[a.prop]:gc(a.defaultValue)}return s}function gc(e){return Array.isArray(e)?Kl(e.slice()):e}function yc(e,t){if(e.routable){let n=e.mountPoint;return"application"===t?n:`${n}.${t}`}return t}const vc=dc.prototype.serialize;dc.reopen({mergedProperties:["queryParams"],queryParams:{},templateName:null,controllerName:null,send(...e){this._router&&this._router._routerMicrolib,this._router.send(...e)},actions:{queryParamsDidChange(e,t,n){let r=ni(this,"_qp").map,i=Object.keys(e).concat(Object.keys(n));for(let s of i){let e=r[s];if(e&&ni(this._optionsForQueryParam(e),"refreshModel")&&this._router.currentState){this.refresh();break}}return!0},finalizeQueryParamChange(e,t,n){if("application"!==this.fullRouteName)return!0;
1if(!n)return;let r,i=n[Wu].routeInfos,s=this._router,o=s._queryParamsFor(i),a=s._qpUpdates,l=!1;ic(s,i);for(let u of o.qps){let i,s,o=u.route,c=o.controller,h=u.urlKey in e&&u.urlKey;if(a.has(u.urlKey)?(i=ni(c,u.prop),s=o.serializeQueryParam(i,u.urlKey,u.type)):h?(s=e[h],void 0!==s&&(i=o.deserializeQueryParam(s,u.urlKey,u.type))):(s=u.serializedDefaultValue,i=gc(u.defaultValue)),c._qpDelegate=ni(o,"_qp").states.inactive,s!==u.serializedValue){if(n.queryParamsOnly&&!1!==r){let e=ni(o._optionsForQueryParam(u),"replace");e?r=!0:!1===e&&(r=!1)}oo(c,u.prop,i),l=!0}u.serializedValue=s,u.serializedDefaultValue===s||t.push({value:s,visible:!0,key:h||u.urlKey})}!0===l&&zr(!1),r&&n.method("replace"),o.qps.forEach(e=>{let t=ni(e.route,"_qp");e.route.controller._qpDelegate=ni(t,"states.active")}),s._qpUpdates.clear()}}});class bc{cache;constructor(){this.cache=new Map}has(e){return this.cache.has(e)}stash(e,t,n){let r=this.cache.get(e);void 0===r&&(r=new Map,this.cache.set(e,r)),r.set(t,n)}lookup(e,t,n){if(!this.has(e))return n;let r=this.cache.get(e);return r.has(t)?r.get(t):n}}let _c=0;function wc(e){return"function"==typeof e}class kc{parent;matches;enableLoadingSubstates;explicitIndex=!1;options;constructor(e=null,t){this.parent=e,this.enableLoadingSubstates=Boolean(t&&t.enableLoadingSubstates),this.matches=[],this.options=t}route(e,t,n){let r,i=null,s=`/_unused_dummy_error_path_route_${e}/:error`;if(wc(t)?(r={},i=t):wc(n)?(r=t,i=n):r=t||{},this.enableLoadingSubstates&&(xc(this,`${e}_loading`,{resetNamespace:r.resetNamespace}),xc(this,`${e}_error`,{resetNamespace:r.resetNamespace,path:s})),i){let t=jc(this,e,r.resetNamespace),n=new kc(t,this.options);xc(n,"loading"),xc(n,"error",{path:s}),i.call(n),xc(this,e,r,n.generate())}else xc(this,e,r)}push(e,t,n,r){let i=t.split(".");if(this.options.engineInfo){let e=t.slice(this.options.engineInfo.fullName.length+1),n=Object.assign({localFullName:e},this.options.engineInfo);r&&(n.serializeMethod=r),this.options.addRouteForEngine(t,n)}else if(r)throw new Error(`Defining a route serializer on route '${t}' outside an Engine is not allowed.`);""!==e&&"/"!==e&&"index"!==i[i.length-1]||(this.explicitIndex=!0),this.matches.push(e,t,n)}generate(){let e=this.matches;return this.explicitIndex||this.route("index",{path:"/"}),t=>{for(let n=0;n<e.length;n+=3)t(e[n]).to(e[n+1],e[n+2])}}mount(e,t={}){let n=this.options.resolveRouteMap(e),r=e;t.as&&(r=t.as);let i,s=jc(this,r,t.resetNamespace),o={name:e,instanceId:_c++,mountPoint:s,fullName:s},a=t.path;"string"!=typeof a&&(a=`/${r}`);let l=`/_unused_dummy_error_path_route_${r}/:error`;if(n){let e=!1,t=this.options.engineInfo;t&&(e=!0,this.options.engineInfo=o);let r=Object.assign({engineInfo:o},this.options),a=new kc(s,r);xc(a,"loading"),xc(a,"error",{path:l}),n.class.call(a),i=a.generate(),e&&(this.options.engineInfo=t)}let u=Object.assign({localFullName:"application"},o);if(this.enableLoadingSubstates){let e=`${r}_loading`,n="application_loading",i=Object.assign({localFullName:n},o);xc(this,e,{resetNamespace:t.resetNamespace}),this.options.addRouteForEngine(e,i),e=`${r}_error`,n="application_error",i=Object.assign({localFullName:n},o),xc(this,e,{resetNamespace:t.resetNamespace,path:l}),this.options.addRouteForEngine(e,i)}this.options.addRouteForEngine(s,u),this.push(a,s,i)}}function jc(e,t,n){return function(e){return"application"!==e.parent}(e)&&!0!==n?`${e.parent}.${t}`:t}function xc(e,t,n={},r){let i=jc(e,t,n.resetNamespace);"string"!=typeof n.path&&(n.path=`/${t}`),e.push(n.path,i,r,n.serialize)}class Sc{router;emberRouter;routerJsState;constructor(e,t,n){this.emberRouter=e,this.router=t,this.routerJsState=n}isActiveIntent(e,t,n){let r=this.routerJsState;if(!this.router.isActiveIntent(e,t,void 0,r))return!1;if(void 0!==n&&Object.keys(n).length>0){let i=Object.assign({},n);return this.emberRouter._prepareQueryParams(e,t,i),uc(i,r.queryParams)}return!0}}let Ec=new WeakMap;function Tc(e,t={},n={includeAttributes:!1,localizeMapUpdates:!1}){const r=new WeakMap;return e.map((i,s)=>{let{name:o,params:a,paramNames:l,context:u,route:c}=i,h=i;if(Ec.has(h)&&n.includeAttributes){let e=Ec.get(h);e=function(e,t){let n={get metadata(){return Rc(e)}};return!Object.isExtensible(t)||t.hasOwnProperty("metadata")?Object.freeze(Object.assign({},t,n)):Object.assign(t,n)}(c,e);let t=Oc(e,u);return r.set(h,e),n.localizeMapUpdates||Ec.set(h,t),t}const d=n.localizeMapUpdates?r:Ec;let p={find(t,n){let r,i=[];3===t.length&&(i=e.map(e=>d.get(e)));for(let s=0;e.length>s;s++)if(r=d.get(e[s]),t.call(n,r,s,i))return r},get name(){return o},get paramNames(){return l},get metadata(){return Rc(i.route)},get parent(){let t=e[s-1];return void 0===t?null:d.get(t)},get child(){let t=e[s+1];return void 0===t?null:d.get(t)},get localName(){let e=this.name.split(".");return e[e.length-1]},get params(){return a},get queryParams(){return t}};return n.includeAttributes&&(p=Oc(p,u)),r.set(i,p),n.localizeMapUpdates||Ec.set(i,p),p})}function Oc(e,t){let n={get attributes(){return t}};return!Object.isExtensible(e)||e.hasOwnProperty("attributes")?Object.freeze(Object.assign({},e,n)):Object.assign(e,n)}function Rc(e){return null!=e&&void 0!==e.buildRouteInfoMetadata?e.buildRouteInfoMetadata():null}class Ac{constructor(e,t,n,r){this._routePromise=void 0,this._route=null,this.params={},this.isResolved=!1,this.name=t,this.paramNames=n,this.router=e,r&&this._processRoute(r)}getModel(e){return zo.resolve(this.context)}serialize(e){return this.params||{}}resolve(e){return zo.resolve(this.routePromise).then(t=>(Mu(e),t)).then(()=>this.runBeforeModelHook(e)).then(()=>Mu(e)).then(()=>this.getModel(e)).then(t=>(Mu(e),t)).then(t=>this.runAfterModelHook(e,t)).then(t=>
1this.becomeResolved(e,t))}becomeResolved(e,t){let n,r=this.serialize(t);e&&(this.stashResolvedModel(e,t),e[Qu]=e[Qu]||{},e[Qu][this.name]=r);let i=t===this.context;!("context"in this)&&i||(n=t);let s=Ec.get(this),o=new Cc(this.router,this.name,this.paramNames,r,this.route,n);return void 0!==s&&Ec.set(o,s),o}shouldSupersede(e){if(!e)return!0;let t=e.context===this.context;return e.name!==this.name||"context"in this&&!t||this.hasOwnProperty("params")&&!function(e,t){if(e===t)return!0;if(!e||!t)return!1;for(let n in e)if(e.hasOwnProperty(n)&&e[n]!==t[n])return!1;return!0}(this.params,e.params)}get route(){return null!==this._route?this._route:this.fetchRoute()}set route(e){this._route=e}get routePromise(){return this._routePromise||this.fetchRoute(),this._routePromise}set routePromise(e){this._routePromise=e}log(e,t){e.log&&e.log(this.name+": "+t)}updateRoute(e){return e._internalName=this.name,this.route=e}runBeforeModelHook(e){let t;return e.trigger&&e.trigger(!0,"willResolveModel",e,this.route),this.route&&void 0!==this.route.beforeModel&&(t=this.route.beforeModel(e)),Xu(t)&&(t=null),zo.resolve(t)}runAfterModelHook(e,t){let n,r=this.name;var i;return this.stashResolvedModel(e,t),void 0!==this.route&&void 0!==this.route.afterModel&&(n=this.route.afterModel(t,e)),n=Xu(i=n)?null:i,zo.resolve(n).then(()=>e.resolvedModels[r])}stashResolvedModel(e,t){e.resolvedModels=e.resolvedModels||{},e.resolvedModels[this.name]=t}fetchRoute(){let e=this.router.getRoute(this.name);return this._processRoute(e)}_processRoute(e){return this.routePromise=zo.resolve(e),null!==(t=e)&&"object"==typeof t&&"function"==typeof t.then?(this.routePromise=this.routePromise.then(e=>this.updateRoute(e)),this.route=void 0):e?this.updateRoute(e):void 0;var t}}class Cc extends Ac{constructor(e,t,n,r,i,s){super(e,t,n,i),this.params=r,this.isResolved=!0,this.context=s}resolve(e){return e&&e.resolvedModels&&(e.resolvedModels[this.name]=this.context),zo.resolve(this)}}class Nc extends Ac{constructor(e,t,n,r,i){super(e,t,n,i),this.params={},r&&(this.params=r)}getModel(e){let t=this.params;e&&e[Gu]&&(t={},Lu(t,this.params),t.queryParams=e[Gu]);let n,r=this.route;return r.deserialize?n=r.deserialize(t,e):r.model&&(n=r.model(t,e)),n&&Xu(n)&&(n=void 0),zo.resolve(n)}}class Ic extends Ac{constructor(e,t,n,r){super(e,t,n),this.context=r,this.serializer=this.router.getSerializer(t)}getModel(e){return void 0!==this.router.log&&this.router.log(this.name+": resolving provided model"),super.getModel(e)}serialize(e){let{paramNames:t,context:n}=this;e||(e=n);let r={};if(Uu(e))return r[t[0]]=e,r;if(this.serializer)return this.serializer.call(null,e,t);if(void 0!==this.route&&this.route.serialize)return this.route.serialize(e,t);if(1!==t.length)return;let i=t[0];return/_id$/.test(i)?r[i]=e.id:r[i]=e,r}}class Mc{constructor(e,t={}){this.router=e,this.data=t}}function Pc(e,t,n){let r=e.routeInfos,i=t.resolveIndex>=r.length?r.length-1:t.resolveIndex,s=t.isAborted;throw new Fc(n,e.routeInfos[i].route,s,e)}function Dc(e,t){if(t.resolveIndex===e.routeInfos.length)return;let n=e.routeInfos[t.resolveIndex],r=Lc.bind(null,e,t);return n.resolve(t).then(r,null,e.promiseLabel("Proceed"))}function Lc(e,t,n){let r=e.routeInfos[t.resolveIndex].isResolved;if(e.routeInfos[t.resolveIndex++]=n,!r){let{route:e}=n;void 0!==e&&e.redirect&&e.redirect(n.context,t)}return Mu(t),Dc(e,t)}class zc{constructor(){this.routeInfos=[],this.queryParams={},this.params={}}promiseLabel(e){let t="";return qu(this.routeInfos,function(e){return""!==t&&(t+="."),t+=e.name,!0}),Hu("'"+t+"': "+e)}resolve(e){let t=this.params;qu(this.routeInfos,e=>(t[e.name]=e.params||{},!0)),e.resolveIndex=0;let n=Dc.bind(null,this,e),r=Pc.bind(null,this,e);return zo.resolve(null,this.promiseLabel("Start transition")).then(n,null,this.promiseLabel("Resolve route")).catch(r,this.promiseLabel("Handle error")).then(()=>this)}}class Fc{constructor(e,t,n,r){this.error=e,this.route=t,this.wasAborted=n,this.state=r}}class Bc extends Mc{constructor(e,t,n,r=[],i={},s){super(e,s),this.preTransitionState=void 0,this.name=t,this.pivotHandler=n,this.contexts=r,this.queryParams=i}
1applyToState(e,t){let n=this.router.recognizer.handlersFor(this.name),r=n[n.length-1].handler;return this.applyToHandlers(e,n,r,t,!1)}applyToHandlers(e,t,n,r,i){let s,o,a=new zc,l=this.contexts.slice(0),u=t.length;if(this.pivotHandler)for(s=0,o=t.length;s<o;++s)if(t[s].handler===this.pivotHandler._internalName){u=s;break}for(s=t.length-1;s>=0;--s){let o=t[s],c=o.handler,h=e.routeInfos[s],d=null;if(d=o.names.length>0?s>=u?this.createParamHandlerInfo(c,o.names,l,h):this.getHandlerInfoForDynamicSegment(c,o.names,l,h,n,s):this.createParamHandlerInfo(c,o.names,l,h),i){d=d.becomeResolved(null,d.context);let e=h&&h.context;o.names.length>0&&void 0!==h.context&&d.context===e&&(d.params=h&&h.params),d.context=e}let p=h;(s>=u||d.shouldSupersede(h))&&(u=Math.min(s,u),p=d),r&&!i&&(p=p.becomeResolved(null,p.context)),a.routeInfos.unshift(p)}if(l.length>0)throw new Error("More context objects were passed than there are dynamic segments for the route: "+n);return r||this.invalidateChildren(a.routeInfos,u),Lu(a.queryParams,this.queryParams||{}),r&&e.queryParams&&Lu(a.queryParams,e.queryParams),a}invalidateChildren(e,t){for(let n=t,r=e.length;n<r;++n)if(e[n].isResolved){let{name:t,params:r,route:i,paramNames:s}=e[n];e[n]=new Nc(this.router,t,s,r,i)}}getHandlerInfoForDynamicSegment(e,t,n,r,i,s){let o;if(n.length>0){if(o=n[n.length-1],Uu(o))return this.createParamHandlerInfo(e,t,n,r);n.pop()}else{if(r&&r.name===e)return r;if(!this.preTransitionState)return r;{let e=this.preTransitionState.routeInfos[s];o=null==e?void 0:e.context}}return new Ic(this.router,e,t,o)}createParamHandlerInfo(e,t,n,r){let i={},s=t.length,o=[];for(;s--;){let a=r&&e===r.name&&r.params||{},l=n[n.length-1],u=t[s];Uu(l)?i[u]=""+n.pop():a.hasOwnProperty(u)?i[u]=a[u]:o.push(u)}if(o.length>0)throw new Error(`You didn't provide enough string/numeric parameters to satisfy all of the dynamic segments for route ${e}. Missing params: ${o}`);return new Nc(this.router,e,t,i)}}class Uc extends Mc{constructor(e,t,n){super(e,n),this.url=t,this.preTransitionState=void 0}applyToState(e){let t,n,r=new zc,i=this.router.recognizer.recognize(this.url);if(!i)throw new Zu(this.url);let s=!1,o=this.url;function a(e){if(e&&e.inaccessibleByURL)throw new Zu(o);return e}for(t=0,n=i.length;t<n;++t){let n=i[t],o=n.handler,l=[];this.router.recognizer.hasRoute(o)&&(l=this.router.recognizer.handlersFor(o)[t].names);let u=new Nc(this.router,o,l,n.params),c=u.route;c?a(c):u.routePromise=u.routePromise.then(a);let h=e.routeInfos[t];s||u.shouldSupersede(h)?(s=!0,r.routeInfos[t]=u):r.routeInfos[t]=h}return Lu(r.queryParams,i.queryParams),r}}let qc=class{constructor(e){this._lastQueryParams={},this.state=void 0,this.oldState=void 0,this.activeTransition=void 0,this.currentRouteInfos=void 0,this._changedQueryParams=void 0,this.currentSequence=0,this.log=e,this.recognizer=new Nu,this.reset()}map(e){this.recognizer.map(e,function(e,t){for(let n=t.length-1,r=!0;n>=0&&r;--n){let i=t[n],s=i.handler;e.add(t,{as:s}),r="/"===i.path||""===i.path||".index"===s.slice(-6)}})}hasRoute(e){return this.recognizer.hasRoute(e)}queryParamsTransition(e,t,n,r){if(this.fireQueryParamDidChange(r,e),!t&&this.activeTransition)return this.activeTransition;{let e=new Yu(this,void 0,void 0);return e.queryParamsOnly=!0,n.queryParams=this.finalizeQueryParamChange(r.routeInfos,r.queryParams,e),e[Gu]=r.queryParams,this.toReadOnlyInfos(e,r),this.routeWillChange(e),e.promise=e.promise.then(t=>(e.isAborted||(this._updateURL(e,n),this.didTransition(this.currentRouteInfos),this.toInfos(e,r.routeInfos,!0),this.routeDidChange(e)),t),null,Hu("Transition complete")),e}}transitionByIntent(e,t){try{return this.getTransitionByIntent(e,t)}catch(n){return new Yu(this,e,void 0,n,void 0)}}recognize(e){let t=new Uc(this,e),n=this.generateNewState(t);if(null===n)return n;let r=Tc(n.routeInfos,n.queryParams,{includeAttributes:!1,localizeMapUpdates:!0});return r[r.length-1]}recognizeAndLoad(e){let t=new Uc(this,e),n=this.generateNewState(t);if(null===n)return zo.reject(`URL ${e} was not recognized`);let r=new Yu(this,t,n,void 0);return r.then(()=>{let e=Tc(n.routeInfos,r[Gu],{includeAttributes:!0,localizeMapUpdates:!1});return e[e.length-1]})}generateNewState(e){try{return e.applyToState(this.state,!1)}catch(t){return null}}getTransitionByIntent(e,t){let n,r=!!this.activeTransition,i=r?this.activeTransition[Wu]:this.state,s=e.applyToState(i,t),o=$u(i.queryParams,s.queryParams);if($c(s.routeInfos,i.routeInfos)){if(o){let e=this.queryParamsTransition(o,r,i,s);return e.queryParamsOnly=!0,e}return this.activeTransition||new Yu(this,void 0,void 0)}if(t){let e=new Yu(this,void 0,s);return e.isIntermediate=!0,this.toReadOnlyInfos(e,s),this.setupContexts(s,e),this.routeWillChange(e),this.activeTransition}return n=new Yu(this,e,s,void 0,this.activeTransition),function(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;++n){if(e[n].name!==t[n].name)return!1;if(!Vc(e[n].params,t[n].params))return!1}return!0}(s.routeInfos,i.routeInfos)&&(n.queryParamsOnly=!0),this.toReadOnlyInfos(n,s),this.activeTransition&&this.activeTransition.redirect(n),this.activeTransition=n,n.promise=n.promise.then(e=>this.finalizeTransition(n,e),null,Hu("Settle transition promise when transition is finalized")),r||this.notifyExistingHandlers(s,n),this.fireQueryParamDidChange(s,o),n}doTransition(e,t=[],n=!1){let r,i=t[t.length-1],s={};if(i&&Object.prototype.hasOwnProperty.call(i,"queryParams")&&(s=t.pop().queryParams),void 0===e){Bu(this,"Updating query params");let{routeInfos:e}=this.state;r=new Bc(this,e[e.length-1].name,void 0,[],s)}else"/"===e.charAt(0)?(Bu(this,"Attempting URL transition to "+e),r=new Uc(this,e)):(Bu(this,"Attempting transition to "+e),r=new Bc(this,e,void 0,t,s));
1return this.transitionByIntent(r,n)}finalizeTransition(e,t){try{Bu(e.router,e.sequence,"Resolved all models on destination route; finalizing transition.");let n=t.routeInfos;return this.setupContexts(t,e),e.isAborted?(this.state.routeInfos=this.currentRouteInfos,zo.reject(Ju(e))):(this._updateURL(e,t),e.isActive=!1,this.activeTransition=void 0,this.triggerEvent(this.currentRouteInfos,!0,"didTransition",[]),this.didTransition(this.currentRouteInfos),this.toInfos(e,t.routeInfos,!0),this.routeDidChange(e),Bu(this,e.sequence,"TRANSITION COMPLETE."),n[n.length-1].route)}catch(r){if("object"!=typeof(n=r)||null===n||"TRANSITION_ABORTED"!==n.code){let t=e[Wu].routeInfos;e.trigger(!0,"error",r,e,t[t.length-1].route),e.abort()}throw r}var n}setupContexts(e,t){let n,r,i,s=this.partitionRoutes(this.state,e);for(n=0,r=s.exited.length;n<r;n++)i=s.exited[n].route,delete i.context,void 0!==i&&(void 0!==i._internalReset&&i._internalReset(!0,t),void 0!==i.exit&&i.exit(t));let o=this.oldState=this.state;this.state=e;let a=this.currentRouteInfos=s.unchanged.slice();try{for(n=0,r=s.reset.length;n<r;n++)i=s.reset[n].route,void 0!==i&&void 0!==i._internalReset&&i._internalReset(!1,t);for(n=0,r=s.updatedContext.length;n<r;n++)this.routeEnteredOrUpdated(a,s.updatedContext[n],!1,t);for(n=0,r=s.entered.length;n<r;n++)this.routeEnteredOrUpdated(a,s.entered[n],!0,t)}catch(l){throw this.state=o,this.currentRouteInfos=o.routeInfos,l}this.state.queryParams=this.finalizeQueryParamChange(a,e.queryParams,t)}fireQueryParamDidChange(e,t){t&&(this._changedQueryParams=t.all,this.triggerEvent(e.routeInfos,!0,"queryParamsDidChange",[t.changed,t.all,t.removed]),this._changedQueryParams=void 0)}routeEnteredOrUpdated(e,t,n,r){let i=t.route,s=t.context;function o(i){return n&&void 0!==i.enter&&i.enter(r),Mu(r),i.context=s,void 0!==i.contextDidChange&&i.contextDidChange(),void 0!==i.setup&&i.setup(s,r),Mu(r),e.push(t),i}return void 0===i?t.routePromise=t.routePromise.then(o):o(i),!0}partitionRoutes(e,t){let n,r,i,s=e.routeInfos,o=t.routeInfos,a={updatedContext:[],exited:[],entered:[],unchanged:[],reset:[]},l=!1;for(r=0,i=o.length;r<i;r++){let e=s[r],t=o[r];e&&e.route===t.route||(n=!0),n?(a.entered.push(t),e&&a.exited.unshift(e)):l||e.context!==t.context?(l=!0,a.updatedContext.push(t)):a.unchanged.push(e)}for(r=o.length,i=s.length;r<i;r++)a.exited.unshift(s[r]);return a.reset=a.updatedContext.slice(),a.reset.reverse(),a}_updateURL(e,t){let n=e.urlMethod;if(!n)return;let{routeInfos:r}=t,{name:i}=r[r.length-1],s={};for(let o=r.length-1;o>=0;--o){let e=r[o];Lu(s,e.params),e.route.inaccessibleByURL&&(n=null)}if(n){s.queryParams=e._visibleQueryParams||t.queryParams;let r=this.recognizer.generate(i,s),o=e.isCausedByInitialTransition,a="replace"===n&&!e.isCausedByAbortingTransition,l=e.queryParamsOnly&&"replace"===n,u="replace"===n&&e.isCausedByAbortingReplaceTransition;o||a||l||u?this.replaceURL(r):this.updateURL(r)}}finalizeQueryParamChange(e,t,n){for(let s in t)t.hasOwnProperty(s)&&null===t[s]&&delete t[s];let r=[];this.triggerEvent(e,!0,"finalizeQueryParamChange",[t,r,n]),n&&(n._visibleQueryParams={});let i={};for(let s=0,o=r.length;s<o;++s){let e=r[s];i[e.key]=e.value,n&&!1!==e.visible&&(n._visibleQueryParams[e.key]=e.value)}return i}toReadOnlyInfos(e,t){let n=this.state.routeInfos;this.fromInfos(e,n),this.toInfos(e,t.routeInfos),this._lastQueryParams=t.queryParams}fromInfos(e,t){if(void 0!==e&&t.length>0){let n=Tc(t,Object.assign({},this._lastQueryParams),{includeAttributes:!0,localizeMapUpdates:!1});e.from=n[n.length-1]||null}}toInfos(e,t,n=!1){if(void 0!==e&&t.length>0){let r=Tc(t,Object.assign({},e[Gu]),{includeAttributes:n,localizeMapUpdates:!1});e.to=r[r.length-1]||null}}notifyExistingHandlers(e,t){let n,r,i,s,o=this.state.routeInfos;for(r=o.length,n=0;n<r&&(i=o[n],s=e.routeInfos[n],s&&i.name===s.name);n++)s.isResolved;this.triggerEvent(o,!0,"willTransition",[t]),this.routeWillChange(t),this.willTransition(o,e.routeInfos,t)}reset(){this.state&&qu(this.state.routeInfos.slice().reverse(),function(e){let t=e.route;return void 0!==t&&void 0!==t.exit&&t.exit(),!0}),this.oldState=void 0,this.state=new zc,this.currentRouteInfos=void 0}handleURL(e){return"/"!==e.charAt(0)&&(e="/"+e),this.doTransition(e).method(null)}transitionTo(e,...t){return"object"==typeof e?(t.push(e),this.doTransition(void 0,t,!1)):this.doTransition(e,t)}intermediateTransitionTo(e,...t){return this.doTransition(e,t,!0)}refresh(e){let t=this.activeTransition,n=t?t[Wu]:this.state,r=n.routeInfos;void 0===e&&(e=r[0].route),Bu(this,"Starting a refresh transition");let i=r[r.length-1].name,s=new Bc(this,i,e,[],this._changedQueryParams||n.queryParams),o=this.transitionByIntent(s,!1);return t&&"replace"===t.urlMethod&&o.method(t.urlMethod),o}replaceWith(e){return this.doTransition(e).method("replace")}generate(e,...t){let n=zu(t),r=n[0],i=n[1],s=new Bc(this,e,void 0,r).applyToState(this.state,!1),o={};for(let a=0,l=s.routeInfos.length;a<l;++a)Lu(o,s.routeInfos[a].serialize());return o.queryParams=i,this.recognizer.generate(e,o)}applyIntent(e,t){let n=new Bc(this,e,void 0,t),r=this.activeTransition&&this.activeTransition[Wu]||this.state;return n.applyToState(r,!1)}isActiveIntent(e,t,n,r){let i,s,o=r||this.state,a=o.routeInfos;if(!a.length)return!1;let l=a[a.length-1].name,u=this.recognizer.handlersFor(l),c=0;for(s=u.length;c<s&&(i=a[c],i.name!==e);++c);if(c===u.length)return!1;let h=new zc;h.routeInfos=a.slice(0,c+1),u=u.slice(0,c+1);
1let d=$c(new Bc(this,l,void 0,t).applyToHandlers(h,u,l,!0,!0).routeInfos,h.routeInfos);if(!n||!d)return d;let p={};Lu(p,n);let f=o.queryParams;for(let m in f)f.hasOwnProperty(m)&&p.hasOwnProperty(m)&&(p[m]=f[m]);return d&&!$u(p,n)}isActive(e,...t){let[n,r]=zu(t);return this.isActiveIntent(e,n,r)}trigger(e,...t){this.triggerEvent(this.currentRouteInfos,!1,e,t)}};function $c(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;++n)if(e[n]!==t[n])return!1;return!0}function Vc(e,t){if(e===t)return!0;if(!e||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0,s=n.length;i<s;++i){let r=n[i];if(e[r]!==t[r])return!1}return!0}function Hc(){return this}const{slice:Wc}=Array.prototype;class Qc extends(La.extend(Ya)){_routerMicrolib;_didSetupRouter=!1;_initialTransitionStarted=!1;currentURL=null;currentRouteName=null;currentPath=null;currentRoute=null;_qpCache=Object.create(null);_qpUpdates=new Set;_queuedQPChanges={};_bucketCache;_toplevelView=null;_handledErrors=new Set;_engineInstances=Object.create(null);_engineInfoByRoute=Object.create(null);_routerService;_slowTransitionTimer=null;namespace;static dslCallbacks;static map(e){return this.dslCallbacks||(this.dslCallbacks=[],this.reopenClass({dslCallbacks:this.dslCallbacks})),this.dslCallbacks.push(e),this}static _routePath(e){let t,n,r,i=[];function s(e,t){for(let n=0;n<e.length;++n)if(e[n]!==t[n])return!1;return!0}for(let o=1;o<e.length;o++){for(t=e[o].name,n=t.split("."),r=Wc.call(i);r.length&&!s(r,n);)r.shift();i.push(...n.slice(r.length))}return i.join(".")}constructor(e){super(e),this._resetQueuedQueryParameterChanges(),this.namespace=e.lookup("application:main");let t=e.lookup(ks`-bucket-cache:main`);this._bucketCache=t;let n=e.lookup("service:router");this._routerService=n}_initRouterJs(){let e=ni(this,"location"),t=this;const n=i(this);let r=Object.create(null),s=this._routerMicrolib=new class extends qc{getRoute(e){let i=e,s=n,o=t._engineInfoByRoute[i];o&&(s=t._getEngineInstance(o),i=o.localFullName);let a=`route:${i}`,l=s.lookup(a);if(r[e])return l;if(r[e]=!0,!l){let e=s.factoryFor("route:basic").class;s.register(a,class extends e{}),l=s.lookup(a)}if(l._setRouteName(i),o&&!function(e){return e.serialize===vc}(l))throw new Error("Defining a custom serialize method on an Engine route is not supported.");return l}getSerializer(e){let n=t._engineInfoByRoute[e];if(n)return n.serializeMethod||vc}updateURL(n){rs(()=>{e.setURL(n),oo(t,"currentURL",n)})}didTransition(e){t.didTransition(e)}willTransition(e,n){t.willTransition(e,n)}triggerEvent(e,n,r,i){return Zc.bind(t)(e,n,r,i)}routeWillChange(e){t.trigger("routeWillChange",e),t._routerService.trigger("routeWillChange",e),e.isIntermediate&&t.set("currentRoute",e.to)}routeDidChange(e){t.set("currentRoute",e.to),rs(()=>{t.trigger("routeDidChange",e),t._routerService.trigger("routeDidChange",e)})}transitionDidError(e,n){return e.wasAborted||n.isAborted?Ju(n):(n.trigger(!1,"error",e.error,n,e.route),t._isErrorHandled(e.error)?(n.rollback(),this.routeDidChange(n),e.error):(n.abort(),e.error))}replaceURL(n){e.replaceURL?rs(()=>{e.replaceURL(n),oo(t,"currentURL",n)}):this.updateURL(n)}},o=this.constructor.dslCallbacks||[Hc],a=this._buildDSL();a.route("application",{path:"/",resetNamespace:!0,overrideNameAssertion:!0},function(){for(let e=0;e<o.length;e++)o[e].call(this)}),s.map(a.generate())}_buildDSL(){let e=this._hasModuleBasedResolver(),t=this;const n=i(this);return new kc(null,{enableLoadingSubstates:e,resolveRouteMap:e=>n.factoryFor(`route-map:${e}`),addRouteForEngine(e,n){t._engineInfoByRoute[e]||(t._engineInfoByRoute[e]=n)}})}_resetQueuedQueryParameterChanges(){this._queuedQPChanges={}}_hasModuleBasedResolver(){let e=ni(i(this),"application.__registry__.resolver.moduleBasedResolver");return Boolean(e)}startRouting(){if(this.setupRouter()){let e=ni(this,"initialURL");void 0===e&&(e=ni(this,"location").getURL());let t=this.handleURL(e);if(t&&t.error)throw t.error}}setupRouter(){if(this._didSetupRouter)return!1;this._didSetupRouter=!0,this._setupLocation();let e=ni(this,"location");return!ni(e,"cancelRouterSetup")&&(this._initRouterJs(),e.onUpdateURL(e=>{this.handleURL(e)}),!0)}_setOutlets(){if(this.isDestroying||this.isDestroyed)return;let e=this._routerMicrolib.currentRouteInfos;if(!e)return;let t=null,n=null;for(let r of e){let e=pc(r.route);if(!e)break;{let r={render:e,outlets:{main:void 0}};n?n.outlets.main=r:t=r,n=r}}if(null!==t)if(this._toplevelView)this._toplevelView.setOutletState(t);else{let e=i(this),n=e.factoryFor("view:-outlet"),r=e.lookup("application:main"),s=e.lookup("-environment:main"),o=e.lookup("template:-outlet");this._toplevelView=n.create({environment:s,template:o,application:r}),this._toplevelView.setOutletState(t);let a=e.lookup("-application-instance:main");a&&a.didCreateRootView(this._toplevelView)}}handleURL(e){let t=e.split(/#(.+)?/)[0];return this._doURLTransition("handleURL",t)}_doURLTransition(e,t){this._initialTransitionStarted=!0;let n=this._routerMicrolib[e](t||"/");return nh(n,this),n}transitionTo(...e){if(lc(e[0]))return this._doURLTransition("transitionTo",e[0]);let{routeName:t,models:n,queryParams:r}=rc(e);return this._doTransition(t,n,r)}intermediateTransitionTo(e,...t){this._routerMicrolib.intermediateTransitionTo(e,...t),th(this)}replaceWith(...e){return this.transitionTo(...e).method("replace")}generate(e,...t){let n=this._routerMicrolib.generate(e,...t);return this.location.formatURL(n)}isActive(e){return this._routerMicrolib.isActive(e)}isActiveIntent(e,t,n){return this.currentState.isActiveIntent(e,t,n)}send(e,...t){this._routerMicrolib.trigger(e,...t)}hasRoute(e){return this._routerMicrolib.hasRoute(e)}reset(){this._didSetupRouter=!1,this._initialTransitionStarted=!1,this._routerMicrolib&&this._routerMicrolib.reset()}willDestroy(){this._toplevelView&&(this._toplevelView.destroy(),this._toplevelView=null),super.willDestroy(),this.reset();let e=this._engineInstances;for(let t in e){let n=e[t];for(let e in n)es(n[e],"destroy")}}_activeQPChanged(e,t){this._queuedQPChanges[e]=t,rs(this,this._fireQueryParamTransition)}_updatingQPChanged(e){this._qpUpdates.add(e)}_fireQueryParamTransition(){this.transitionTo({queryParams:this._queuedQPChanges}),this._resetQueuedQueryParameterChanges()}_setupLocation(){let e=this.location,t=this.rootURL,n=i(this);"string"==typeof e&&(e=oo(this,"location",n.lookup(`location:${e}`))),null!==e&&"object"==typeof e&&(t&&oo(e,"rootURL",t),"function"==typeof e.initState&&e.initState())}_serializeQueryParams(e,t){rh(this,e,t,(e,n,r)=>{if(r)delete t[e],t[r.urlKey]=r.route.serializeQueryParam(n,r.urlKey,r.type);else{if(void 0===n)return;t[e]=this._serializeQueryParam(n,Ol(n))}})}_serializeQueryParam(e,t){return null==e?e:"array"===t?JSON.stringify(e):`${e}`}_deserializeQueryParams(e,t){rh(this,e,t,(e,n,r)=>{r&&(delete t[e],t[r.prop]=r.route.deserializeQueryParam(n,r.urlKey,r.type))})}_deserializeQueryParam(e,t){return null==e?e:"boolean"===t?"true"===e:"number"===t?Number(e).valueOf():"array"===t?Kl(JSON.parse(e)):e}_pruneDefaultQueryParamValues(e,t){let n=this._queryParamsFor(e);for(let r in t){let e=n.map[r];e&&e.serializedDefaultValue===t[r]&&delete t[r]}}_doTransition(e,t,n,r){let i=e||function(e){let t=e.activeTransition?e.activeTransition[Wu].routeInfos:e.state.routeInfos;return t[t.length-1].name}(this._routerMicrolib);this._initialTransitionStarted=!0;let s={};this._processActiveTransitionQueryParams(i,t,s,n),Object.assign(s,n),this._prepareQueryParams(i,t,s,Boolean(r));let o=this._routerMicrolib.transitionTo(i,...t,{queryParams:s});return nh(o,this),o}_processActiveTransitionQueryParams(e,t,n,r){if(!this._routerMicrolib.activeTransition)return;let i={},s=this._qpUpdates,o=fc(this,this._routerMicrolib.activeTransition[Wu]);for(let a in o)s.has(a)||(i[a]=o[a]);this._fullyScopeQueryParams(e,t,r),this._fullyScopeQueryParams(e,t,i),Object.assign(n,i)}_prepareQueryParams(e,t,n,r){let i=eh(this,e,t);this._hydrateUnsuppliedQueryParams(i,n,Boolean(r)),this._serializeQueryParams(i.routeInfos,n),r||this._pruneDefaultQueryParamValues(i.routeInfos,n)}_getQPMeta(e){let t=e.route;return t&&ni(t,"_qp")}_queryParamsFor(e){let t=e[e.length-1].name,n=this._qpCache[t];if(void 0!==n)return n;let r,i=!0,s={},o=[];for(let l of e)if(r=this._getQPMeta(l),r){for(let e of r.qps)o.push(e);Object.assign(s,r.map)}else i=!1;let a={qps:o,map:s};return i&&(this._qpCache[t]=a),a}_fullyScopeQueryParams(e,t,n){let r,i=eh(this,e,t).routeInfos;for(let s of i)if(r=this._getQPMeta(s),r)for(let e of r.qps){let t=e.prop in n&&e.prop||e.scopedPropertyName in n&&e.scopedPropertyName||e.urlKey in n&&e.urlKey;t&&t!==e.scopedPropertyName&&(n[e.scopedPropertyName]=n[t],delete n[t])}}_hydrateUnsuppliedQueryParams(e,t,n){let r,i,s,o=e.routeInfos,a=this._bucketCache;for(let l of o)if(r=this._getQPMeta(l),r)for(let n=0,o=r.qps.length;n<o;++n)if(i=r.qps[n],s=i.prop in t&&i.prop||i.scopedPropertyName in t&&i.scopedPropertyName||i.urlKey in t&&i.urlKey,s)s!==i.scopedPropertyName&&(t[i.scopedPropertyName]=t[s],delete t[s]);else{let n=oc(i.route.fullRouteName,i.parts,e.params);t[i.scopedPropertyName]=a.lookup(n,i.prop,i.defaultValue)}}
1_scheduleLoadingEvent(e,t){this._cancelSlowTransitionTimer(),this._slowTransitionTimer=is("routerTransitions",this,this._handleSlowTransition,e,t)}currentState=null;targetState=null;_handleSlowTransition(e,t){if(!this._routerMicrolib.activeTransition)return;let n=new Sc(this,this._routerMicrolib,this._routerMicrolib.activeTransition[Wu]);this.set("targetState",n),e.trigger(!0,"loading",e,t)}_cancelSlowTransitionTimer(){var e;this._slowTransitionTimer&&(e=this._slowTransitionTimer,Zi.cancel(e)),this._slowTransitionTimer=null}_markErrorAsHandled(e){this._handledErrors.add(e)}_isErrorHandled(e){return this._handledErrors.has(e)}_clearHandledError(e){this._handledErrors.delete(e)}_getEngineInstance({name:e,instanceId:t,mountPoint:n}){let r=this._engineInstances,s=r[e];s||(s=Object.create(null),r[e]=s);let o=s[t];return o||(o=i(this).buildChildEngineInstance(e,{routable:!0,mountPoint:n}),o.boot(),s[t]=o),o}}function Gc(e,t){for(let n=e.length-1;n>=0;--n){let r=e[n],i=r.route;if(void 0!==i&&!0!==t(i,r))return}}let Kc={willResolveModel(e,t,n){this._scheduleLoadingEvent(t,n)},error(e,t,n){let r=this,i=e[e.length-1];Gc(e,(e,n)=>{if(n!==i){let n=Jc(e,"error");if(n)return r._markErrorAsHandled(t),r.intermediateTransitionTo(n,t),!1}let s=Yc(e,"error");return!s||(r._markErrorAsHandled(t),r.intermediateTransitionTo(s,t),!1)}),function(e,t){let n,r=[];n=e&&"object"==typeof e&&"object"==typeof e.errorThrown?e.errorThrown:e,t&&r.push(t),n&&(n.message&&r.push(n.message),n.stack&&r.push(n.stack),"string"==typeof n&&r.push(n)),console.error(...r)}(t,`Error while processing route: ${n.targetName}`)},loading(e,t){let n=this,r=e[e.length-1];Gc(e,(e,i)=>{if(i!==r){let t=Jc(e,"loading");if(t)return n.intermediateTransitionTo(t),!1}let s=Yc(e,"loading");return s?(n.intermediateTransitionTo(s),!1):t.pivotHandler!==e})}};function Yc(e,t){let n=i(e),{routeName:r,fullRouteName:s,_router:o}=e,a=`${s}_${t}`;return Xc(n,o,`${r}_${t}`,a)?a:""}function Jc(e,t){let n=i(e),{routeName:r,fullRouteName:s,_router:o}=e,a="application"===s?t:`${s}.${t}`;return Xc(n,o,"application"===r?t:`${r}.${t}`,a)?a:""}function Xc(e,t,n,r){let i=t.hasRoute(r),s=e.factoryFor(`template:${n}`)||e.factoryFor(`route:${n}`);return i&&s}function Zc(e,t,n,r){if(!e){if(t)return;throw new Error(`Can't trigger action '${n}' because your app hasn't finished transitioning into its first route. To trigger an action on destination routes during a transition, you can call \`.send()\` on the \`Transition\` object passed to the \`model/beforeModel/afterModel\` hooks.`)}let i,s,o,a=!1;for(let u=e.length-1;u>=0;u--)if(i=e[u],s=i.route,o=s&&s.actions&&s.actions[n],o){if(!0!==o.apply(s,r))return void("error"===n&&s._router._markErrorAsHandled(r[0]));a=!0}let l=Kc[n];if(l)l.call(this,e,...r);else if(!a&&!t)throw new Error(`Nothing handled the action '${n}'. If you did handle the action, this error can be caused by returning true from an action handler in a controller, causing the action to bubble.`)}function eh(e,t,n){let r=e._routerMicrolib.applyIntent(t,n),{routeInfos:i,params:s}=r;for(let o of i)o.isResolved?s[o.name]=o.params:s[o.name]=o.serialize(o.context);return r}function th(e){let t=e._routerMicrolib.currentRouteInfos;if(0===t.length)return;let n=Qc._routePath(t),r=t[t.length-1].name,i=e.location.getURL();oo(e,"currentPath",n),oo(e,"currentRouteName",r),oo(e,"currentURL",i)}function nh(e,t){let n=new Sc(t,t._routerMicrolib,e[Wu]);t.currentState||t.set("currentState",n),t.set("targetState",n),e.promise=e.catch(e=>{if(!t._isErrorHandled(e))throw e;t._clearHandledError(e)},"Transition Error")}function rh(e,t,n,r){let i=e._queryParamsFor(t);for(let s in n)Object.prototype.hasOwnProperty.call(n,s)&&r(s,n[s],i.map[s])}function ih(e){return void 0!==e.hash?e.hash.substring(0):""}Qc.reopen({didTransition:function(){th(this),this._cancelSlowTransitionTimer(),this.notifyPropertyChange("url"),this.set("currentState",this.targetState)},willTransition:function(){},rootURL:"/",location:"hash",url:Kr(function(){let e=ni(this,"location");if("string"!=typeof e)return e.getURL()})});class sh extends La{_hashchangeHandler;_location;
1init(){this.location=this._location??window.location,this._hashchangeHandler=void 0}getHash(){return ih(this.location)}getURL(){let e=this.getHash().substring(1),t=e;return"/"!==t[0]&&(t="/",e&&(t+=`#${e}`)),t}setURL(e){this.location.hash=e,this.lastSetURL=e}replaceURL(e){this.location.replace(`#${e}`),this.lastSetURL=e}lastSetURL=null;onUpdateURL(e){this._removeEventListener(),this._hashchangeHandler=function(...e){return(...t)=>ts(...e.concat(t))}(this,function(){let t=this.getURL();this.lastSetURL!==t&&(this.lastSetURL=null,e(t))}),window.addEventListener("hashchange",this._hashchangeHandler)}formatURL(e){return`#${e}`}willDestroy(){this._removeEventListener()}_removeEventListener(){this._hashchangeHandler&&window.removeEventListener("hashchange",this._hashchangeHandler)}}let oh=!1;function ah(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t,n;return t=16*Math.random()|0,n="x"===e?t:3&t|8,n.toString(16)})}class lh extends La{history;_previousURL;_popstateHandler;rootURL="/";getHash(){return ih(this.location)}init(){this._super(...arguments);let e=document.querySelector("base"),t="";null!==e&&e.hasAttribute("href")&&(t=e.getAttribute("href")??""),this.baseURL=t,this.location=this.location??window.location,this._popstateHandler=void 0}initState(){let e=this.history??window.history;this.history=e;let{state:t}=e,n=this.formatURL(this.getURL());t&&t.path===n?this._previousURL=this.getURL():this.replaceState(n)}getURL(){let{location:e,rootURL:t,baseURL:n}=this,r=e.pathname;t=t.replace(/\/$/,""),n=n.replace(/\/$/,"");let i=r.replace(new RegExp(`^${n}(?=/|$)`),"").replace(new RegExp(`^${t}(?=/|$)`),"").replace(/\/\//g,"/");return i+=(e.search||"")+this.getHash(),i}setURL(e){let{state:t}=this.history;e=this.formatURL(e),t&&t.path===e||this.pushState(e)}replaceURL(e){let{state:t}=this.history;e=this.formatURL(e),t&&t.path===e||this.replaceState(e)}pushState(e){let t={path:e,uuid:ah()};this.history.pushState(t,"",e),this._previousURL=this.getURL()}replaceState(e){let t={path:e,uuid:ah()};this.history.replaceState(t,"",e),this._previousURL=this.getURL()}onUpdateURL(e){this._removeEventListener(),this._popstateHandler=()=>{(oh||(oh=!0,this.getURL()!==this._previousURL))&&e(this.getURL())},window.addEventListener("popstate",this._popstateHandler)}formatURL(e){let{rootURL:t,baseURL:n}=this;return""!==e?(t=t.replace(/\/$/,""),n=n.replace(/\/$/,"")):"/"===n[0]&&"/"===t[0]&&(n=n.replace(/\/$/,"")),n+t+e}willDestroy(){this._removeEventListener()}_removeEventListener(){this._popstateHandler&&window.removeEventListener("popstate",this._popstateHandler)}}class uh extends La{updateCallback;initState(){this._super(...arguments);let{rootURL:e}=this}getURL(){let{path:e,rootURL:t}=this;return t=t.replace(/\/$/,""),e.replace(new RegExp(`^${t}(?=/|$)`),"")}setURL(e){this.path=e}onUpdateURL(e){this.updateCallback=e}handleURL(e){this.path=e,this.updateCallback&&this.updateCallback(e)}formatURL(e){let{rootURL:t}=this;return""!==e&&(t=t.replace(/\/$/,"")),t+e}}uh.reopen({path:"",rootURL:"/"});class ch extends Function{readOnly(){return gr(this).readOnly(),this}oneWay(){return gr(this).oneWay(),this}meta(e){let t=gr(this);if(0===arguments.length)return t._meta||{};t._meta=e}}class hh extends cr{altKey;constructor(e){super(),this.altKey=e}setup(e,t,n,r){super.setup(e,t,n,r),rr.add(this)}get(e,t){let n,r=Ee(e),i=yt(e),s=vt(e,t,i);ot(()=>{n=ni(e,this.altKey)});let o=r.revisionFor(t);return void 0!==o&&Ce(s,o)||(Pe(s,or(e,this.altKey,i,r)),r.setRevisionFor(t,Ae(s)),ir(r,t,n)),Xe(s),n}set(e,t,n){return oo(e,this.altKey,n)}readOnly(){this.set=dh}oneWay(){this.set=ph}}function dh(e,t){throw new Error(`Cannot set read-only property '${t}' on object: ${E(e)}`)}function ph(e,t,n){return Yr(e,t,null),oo(e,t,n)}function fh(e){return(t=e,pr(new hh(t),ch)).readOnly();var t}const mh=/[ _]/g,gh=new Jn(1e3,e=>{return(t=e,kh.get(t)).replace(mh,"-");var t}),yh=/^(-|_)+(.)?/,vh=/(.)(-|_|\.|\s)+(.)?/g,bh=/(^|\/|\.)([a-z])/g,_h=new Jn(1e3,e=>{let t=(e,t,n)=>n?`_${n.toUpperCase()}`:"",n=(e,t,n,r)=>t+(r?r.toUpperCase():""),r=e.split("/");for(let i=0;i<r.length;i++)r[i]=r[i].replace(yh,t).replace(vh,n);return r.join("/").replace(bh,e=>e.toUpperCase())}),wh=/([a-z\d])([A-Z])/g,kh=new Jn(1e3,e=>e.replace(wh,"$1_$2").toLowerCase());function jh(e){return gh.get(e)}function xh(e){return Object.hasOwnProperty.call(e.since,"enabled")||v._ALL_DEPRECATIONS_ENABLED}let Sh=parseFloat(v._OVERRIDE_DEPRECATION_VERSION??Xn);function Eh(e){return function(e,t=Sh){let n=e.replace(/(\.0+)/g,"");return t>=parseFloat(n)}(e.until)}function Th(e){return{options:e,test:!xh(e),isEnabled:xh(e)||Eh(e),isRemoved:Eh(e)}}function Oh(...e){return ai("service",...e)}Th({for:"ember-source",id:"importing-inject-from-ember-service",since:{available:"6.2.0",enabled:"6.3.0"},until:"7.0.0",url:"https://deprecations.emberjs.com/id/importing-inject-from-ember-service"}),Th({for:"ember-source",id:"using-amd-bundles",since:{available:"6.10.
10",enabled:"6.10.0"},until:"7.0.0",url:"https://deprecations.emberjs.com/id/using-amd-bundles"});class Rh extends Ja{static isServiceFactory=!0}const Ah=Symbol("ROUTER");function Ch(e,t){return"/"===t?e:e.substring(t.length)}class Nh extends(Rh.extend(Ya)){[Ah];get _router(){let e=this[Ah];if(void 0!==e)return e;let t=n(this).lookup("router:main");return this[Ah]=t}willDestroy(){super.willDestroy(),this[Ah]=void 0}transitionTo(...e){if(lc(e[0]))return this._router._doURLTransition("transitionTo",e[0]);let{routeName:t,models:n,queryParams:r}=rc(e);return this._router._doTransition(t,n,r,!0)}replaceWith(...e){return this.transitionTo(...e).method("replace")}urlFor(e,...t){return this._router.setupRouter(),this._router.generate(e,...t)}isActive(...e){let{routeName:t,models:n,queryParams:r}=rc(e);this._router.setupRouter();let i=this._router._routerMicrolib;if(Xe(vt(this._router,"currentURL")),!i.isActiveIntent(t,n))return!1;if(Object.keys(r).length>0){let e=t;r=Object.assign({},r),this._router._prepareQueryParams(e,n,r,!0);let s=Object.assign({},i.state.queryParams);return this._router._prepareQueryParams(e,n,s,!0),uc(r,s)}return!0}recognize(e){this._router.setupRouter();let t=Ch(e,this.rootURL);return this._router._routerMicrolib.recognize(t)}recognizeAndLoad(e){this._router.setupRouter();let t=Ch(e,this.rootURL);return this._router._routerMicrolib.recognizeAndLoad(t)}refresh(e){if(!e)return this._router._routerMicrolib.refresh();let t=n(this).lookup(`route:${e}`);return this._router._routerMicrolib.refresh(t)}static{pl(this.prototype,"currentRouteName",[fh("_router.currentRouteName")])}#u=void gl(this,"currentRouteName");static{pl(this.prototype,"currentURL",[fh("_router.currentURL")])}#c=void gl(this,"currentURL");static{pl(this.prototype,"location",[fh("_router.location")])}#h=void gl(this,"location");static{pl(this.prototype,"rootURL",[fh("_router.rootURL")])}#d=void gl(this,"rootURL");static{pl(this.prototype,"currentRoute",[fh("_router.currentRoute")])}#p=void gl(this,"currentRoute")}class Ih extends Rh{[Ah];get router(){let e=this[Ah];if(void 0!==e)return e;let t=n(this).lookup("router:main");return t.setupRouter(),this[Ah]=t}hasRoute(e){return this.router.hasRoute(e)}transitionTo(e,t,n,r){let i=this.router._doTransition(e,t,n);return r&&i.method("replace"),i}normalizeQueryParams(e,t,n){this.router._prepareQueryParams(e,t,n)}_generateURL(e,t,n){let r={};return n&&(Object.assign(r,n),this.normalizeQueryParams(e,t,r)),this.router.generate(e,...t,{queryParams:r})}generateURL(e,t,n){if(this.router._initialTransitionStarted)return this._generateURL(e,t,n);try{return this._generateURL(e,t,n)}catch(r){return}}isActiveForRoute(e,t,n,r){let i=this.router._routerMicrolib.recognizer.handlersFor(n),s=i[i.length-1].handler,o=function(e,t){let n=0;for(let r=0;r<t.length&&(n+=t[r].names.length,t[r].handler!==e);r++);return n}(n,i);return e.length>o&&(n=s),r.isActiveIntent(n,e,t)}}Ih.reopen({targetState:fh("router.targetState"),currentState:fh("router.currentState"),currentRouteName:fh("router.currentRouteName"),currentPath:fh("router.currentPath")});class Mh{constructor(e){this.buffer=e,this.size=0}encode(e,t,...n){if(e>255)throw new Error(`Opcode type over 8-bits. Got ${e}.`);let r=e|t|arguments.length-2<<8;this.buffer.push(r);for(const i of n)this.buffer.push(i);this.size=this.buffer.length}patch(e,t){if(-1!==this.buffer[e+1])throw new Error("Trying to patch operand in populated slot instead of a reserved slot.");this.buffer[e+1]=t}}const Ph=32,Dh=31;function Lh(e){return(e|=0)<0?function(e){return-536870913&e}(e):function(e){return~e}(e)}function zh(e){return t=>{if(!function(e){return Array.isArray(e)&&2===e.length}(t))return!1;let n=t[0];return n===Dh||n===Ph||n===e}}[1,-1].forEach(e=>{return t=Lh(e),(t|=0)>-536870913?function(e){return~e}(t):function(e){return 536870912|e}(t);var t});const Fh=zh(39),Bh=zh(38),Uh=zh(37),qh=zh(35);function $h(e,t,n,r){let{symbols:{upvars:i}}=n,s=i[e[1]],o=t?.lookupBuiltInHelper?.(s)??null;return r.helper(o,s)}function Vh(e){return{type:1,value:e}}function Hh(e){return{type:5,value:e}}function Wh(e){return{type:7,value:e}}function Qh(e){return{type:8,value:e}}class Gh{label(e,t){this.labels[e]=t}target(e,t){this.targets.push({at:e,target:t})}patch(e){let{targets:t,labels:n}=this;for(const{at:r,target:i}of t){let t=n[i]-r;e.getbyaddr(r),e.setbyaddr(r,t)}}constructor(){this.labels=St(),this.targets=[]}}function Kh(e,t,n,r){let{program:{constants:i},resolver:s}=t;if(function(e){return e<1e3}(r[0])){let[t,...n]=r;e.push(i,t,...n)}else switch(r[0]){case 1e3:return e.label(r[1]);case 1001:return e.startLabels();case 1002:return e.stopLabels();case 1004:return function(e,t,n,[,r,i]){if(Fh(r),r[0]===Ph){let{scopeValues:e,owner:s,symbols:{lexical:o}}=n,a=e[r[1]];i(t.component(a,s,!1,o?.at(r[1])))}else{let{symbols:{upvars:s},owner:o}=n,a=s[r[1]],l=e?.lookupComponent?.(a,o)??null;i(t.resolvedComponent(l,a))}}(s,i,n,r);case 1003:return function(e,t,n,[,r,i]){Bh(r);let s=r[0];if(s===Ph){let{scopeValues:e,symbols:{lexical:s}}=n,o=e[r[1]];i(t.modifier(o,s?.at(r[1])??void 0))}else if(s===Dh){let{symbols:{upvars:s}}=n,o=s[r[1]],a=e?.lookupBuiltInModifier?.(o)??null;i(t.modifier(a,o))}else{let{symbols:{upvars:s},owner:o}=n,a=s[r[1]],l=e?.lookupModifier?.(a,o)??null;i(t.modifier(l))}}(s,i,n,r);case 1005:return function(e,t,n,[,r,i]){Uh(r);let s=r[0];if(s===Ph){let{scopeValues:e}=n,s=e[r[1]];i(t.helper(s))}else if(s===Dh)i($h(r,e,n,t));else{let{symbols:{upvars:s},owner:o}=n,a=s[r[1]],l=e?.lookupHelper?.(a,o)??null;i(t.helper(l,a))}}(s,i,n,r);case 1007:return function(e,t,n,[,r,{ifComponent:i,ifHelper:s}]){qh(r);let o=r[0];if(o===Ph){let{scopeValues:e,owner:o,symbols:{lexical:a}}=n,l=e[r[1]],u=t.component(l,o,!0,a?.at(r[1]));if(null!==u)return void i(u);s(t.helper(l,null,!0))}else if(o===Dh)s($h(r,e,n,t));else{let{symbols:{upvars:o},owner:a}=n,l=o[r[1]],u=e?.lookupComponent?.(l,a)??null;if(null!==u)i(t.resolvedComponent(u,l));else{let n=e?.lookupHelper?.(l,a)??null;s(t.helper(n,l))}}}(s,i,n,r);case 1008:return function(e,t,n,[,r,{ifComponent:i,ifHelper:s,ifValue:o}]){qh(r);let a=r[0];if(a===Ph){let{scopeValues:e,owner:a,symbols:{lexical:l}}=n,u=e[r[1]];if("function"!=typeof u&&("object"!=typeof u||null===u))return void o(t.value(u));let c=t.component(u,a,!0,l?.at(r[1]));if(null!==c)return void i(c);let h=t.helper(u,null,!0);if(null!==h)return void s(h);o(t.value(u))}else if(a===Dh)s($h(r,e,n,t));else{let{symbols:{upvars:o},owner:a}=n,l=o[r[1]],u=e?.lookupComponent?.(l,a)??null;if(null!==u)return void i(t.resolvedComponent(u,l));let c=e?.lookupHelper?.(l,a)??null;null!==c&&s(t.helper(c,l))}}(s,i,n,r);case 1010:{let[,e,t]=r;t(n.symbols.upvars[e],n.moduleName);break}case 1011:{let[,e,t]=r,s=n.scopeValues[e];t(i.value(s));break}default:throw new Error(`Unexpected high level opcode ${r[0]}`)}}class Yh{constructor(e,t,n){this.heap=e,this.meta=t,this.stdlib=n,this.labelsStack=new Ot,this.encoder=new Mh([]),this.errors=[],this.handle=e.malloc()}error(e){this.encoder.encode(30,0),this.errors.push(e)}commit(e){let t=this.handle;return this.heap.pushMachine(5),this.heap.finishMalloc(t,e),(n=this.errors)&&n.length>0?{errors:this.errors,handle:t}:t;var n}push(e,t,...n){let{heap:r}=this;var i;let s=t|((i=t)>=0&&i<=15?sn:0)|n.length<<8;r.pushRaw(s);for(let o=0;o<n.length;o++){let t=n[o];r.pushRaw(this.operand(e,t))}}operand(e,t){if("number"==typeof t)return t;if("object"==typeof t&&null!==t){if(Array.isArray(t))return e.array(t);switch(t.type){case 1:return this.currentLabels.target(this.heap.offset,t.value),-1;case 2:return e.value(this.meta.isStrictMode);case 3:case 6:case 7:case 8:return e.value(t.value);case 4:return e.value((n=t.value,r=this.meta,new Cd(n[0],r,{parameters:n[1]||_t})));case 5:return this.stdlib[t.value]}}var n,r;return e.value(t)}get currentLabels(){return this.labelsStack.current}label(e){this.currentLabels.label(e,this.heap.offset+1)}startLabels(){this.labelsStack.push(new Gh)}stopLabels(){this.labelsStack.pop().patch(this.heap)}}function Jh(e,t){return{evaluation:e,encoder:new Yh(e.program.heap,t,e.stdlib),meta:t}}class Xh{add(e,t){this.names[e]=this.funcs.push(t)-1}compile(e,t){let n=t[0],r=this.names[n],i=this.funcs[r];t[0],i(e,t)}constructor(){this.names={},this.funcs=[]}}const Zh=new Xh;function ed(e,t){if(void 0!==t&&0!==t.length)for(let n=0;n<t.length;n++)e(22,t[n])}function td(e,t){Array.isArray(t)?Zh.compile(e,t):(rd(e,t),e(31))}
1function nd(e,t){rd(e,t),e(31)}function rd(e,t){let n=t;var r;"number"==typeof n&&(n=(r=n)%1==0&&r<=536870911&&r>=-536870912?Lh(n):function(e){return{type:6,value:e}}(n)),e(30,n)}function id(e,t,n,r){e(0),dd(e,n,r,!1),e(16,t),e(1),e(36,8)}function sd(e,t,n,r){e(0),dd(e,t,n,!1),e(33,2,1),e(107),r?(e(36,8),r(),e(1),e(34,1)):(e(1),e(34,1),e(36,8))}function od(e,t,n,r,i){e(0),dd(e,r,i,!1),e(86),td(e,n),e(77,t,{type:2,value:void 0}),e(1),e(36,8)}function ad(e,t,n){dd(e,n,null,!0),e(23,t),e(24),e(61),e(64),e(40),e(1)}function ld(e,t){!function(e,t){null!==t?e(63,Wh({parameters:t})):rd(e,null)}(e,t&&t[1]),e(62),hd(e,t)}function ud(e,t){e(0),hd(e,t),e(61),e(2),e(1)}function cd(e,t,n){let r=t[1],i=r.length,s=Math.min(n,i);if(0!==s){if(e(0),s){e(39);for(let t=0;t<s;t++)e(33,2,n-t),e(19,r[t])}hd(e,t),e(61),e(2),s&&e(40),e(1)}else ud(e,t)}function hd(e,t){null===t?rd(e,null):e(28,{type:4,value:t})}function dd(e,t,n,r){if(null===t&&null===n)return void e(83);let i=pd(e,t)<<4;r&&(i|=8);let s=kt;if(n){s=n[0];let t=n[1];for(let n=0;n<t.length;n++)td(e,t[n])}e(82,s,kt,i)}function pd(e,t){if(null===t)return 0;for(let n=0;n<t.length;n++)td(e,t[n]);return t.length}function fd(e){let[,t,n,r]=e.block;return{symbols:{locals:t,upvars:n,lexical:r},scopeValues:e.scope?.()??null,isStrictMode:e.isStrictMode,moduleName:e.moduleName,owner:e.owner,size:t.length}}Zh.add(29,(e,[,t])=>{for(let n of t)td(e,n);e(27,t.length)}),Zh.add(28,(e,[,t,n,r])=>{Uh(t)?e(1005,t,t=>{id(e,t,n,r)}):(td(e,t),sd(e,n,r))}),Zh.add(50,(e,[,t,n,r,i])=>{od(e,n,t,r,i)}),Zh.add(30,(e,[,t,n])=>{e(21,t),ed(e,n)}),Zh.add(Ph,(e,[,t,n])=>{e(1011,t,t=>{e(29,t),ed(e,n)})}),Zh.add(Dh,(e,t)=>{e(1010,t[1],()=>{e(1005,t,t=>{id(e,t,null,null)})})}),Zh.add(37,(e,t)=>{e(1010,t[1],()=>{e(1005,t,t=>{id(e,t,null,null)})})}),Zh.add(27,e=>nd(e,void 0)),Zh.add(48,(e,[,t])=>{td(e,t),e(25)}),Zh.add(49,(e,[,t])=>{td(e,t),e(24),e(61),e(26)}),Zh.add(52,(e,[,t,n,r])=>{td(e,r),td(e,n),td(e,t),e(109)}),Zh.add(51,(e,[,t])=>{td(e,t),e(110)}),Zh.add(53,(e,[,t])=>{td(e,t),e(111)}),Zh.add(54,(e,[,t])=>{e(0),dd(e,t,null,!1),e(112),e(1),e(36,8)});class md{constructor(e){this.blocks=e,this.names=e?Object.keys(e):[]}get(e){return this.blocks&&this.blocks[e]||null}has(e){let{blocks:t}=this;return null!==t&&e in t}with(e,t){let{blocks:n}=this;return new md(n?At({},n,{[e]:t}):{[e]:t})}get hasAny(){return null!==this.blocks}}const gd=new md(null);function yd(e){if(null===e)return gd;let t=St(),[n,r]=e;for(const[i,s]of xt(n))t[s]=r[i];return new md(t)}function vd(e,t,n){let r=[],i=0;n(function(e,t){r.push({match:e,callback:t,label:"CLAUSE"+i++})}),e(69,1),t(),e(1001);for(let s of r.slice(0,-1))e(67,Vh(s.label),s.match);for(let s=r.length-1;s>=0;s--){let t=r[s];e(1e3,t.label),e(34,1),t.callback(),0!==s&&e(4,Vh("END"))}e(1e3,"END"),e(1002),e(70)}function bd(e,t,n){e(1001),e(0),e(6,Vh("ENDINITIAL")),e(69,t()),n(),e(1e3,"FINALLY"),e(70),e(5),e(1e3,"ENDINITIAL"),e(1),e(1002)}function _d(e,t,n,r){return bd(e,t,()=>{e(66,Vh("ELSE")),n(),e(4,Vh("FINALLY")),e(1e3,"ELSE"),void 0!==r&&r()})}function wd(e,t,n,r,i,s){let{compilable:o,capabilities:a,handle:l}=t,u=n?[n,[]]:null,c=yd(s);o?(e(78,l),function(e,{capabilities:t,layout:n,elementBlock:r,positional:i,named:s,blocks:o}){let{symbolTable:a}=n;if(gn(t,rn.prepareArgs))return void jd(e,{capabilities:t,elementBlock:r,positional:i,named:s,atNames:!0,blocks:o,layout:n});e(36,4),e(33,3,1),e(35,4),e(0);let{symbols:l}=a,u=[],c=[],h=[],d=o.names;if(null!==r){let t=l.indexOf("&attrs");-1!==t&&(ld(e,r),u.push(t))}for(const p of d){let t=l.indexOf(`&${p}`);-1!==t&&(ld(e,o.get(p)),u.push(t))}if(gn(t,rn.createArgs)){let t=pd(e,i)<<4;t|=8;let n=kt;if(null!==s){n=s[0];let t=s[1];for(let r=0;r<t.length;r++){let i=l.indexOf(n[r]);td(e,t[r]),c.push(i)}}e(82,n,kt,t),c.push(-1)}else if(null!==s){let t=s[0],n=s[1];for(let r=0;r<n.length;r++){let i=t[r],s=l.indexOf(i);-1!==s&&(td(e,n[r]),c.push(s),h.push(i))}}e(97,4),gn(t,rn.dynamicScope)&&e(59),gn(t,rn.createInstance)&&e(87,0|o.has("default")),e(88,4),gn(t,rn.createArgs)?e(90,4):e(90,4,h),e(37,l.length+1,Object.keys(o).length>0?1:0),e(19,0);for(const p of jt(c))-1===p?e(34,1):e(19,p+1);null!==i&&e(34,i.length);for(const p of jt(u))e(20,p+1);e(28,Qh(n)),e(61),e(2),e(100,4),e(1),e(40),gn(t,rn.dynamicScope)&&e(60),e(98),e(35,4)}(e,{capabilities:a,layout:o,elementBlock:u,positional:r,named:i,blocks:c})):(e(78,l),jd(e,{capabilities:a,elementBlock:u,positional:r,named:i,atNames:!0,blocks:c}))}function kd(e,t,n,r,i,s,o,a){let l=n?[n,[]]:null,u=yd(s);bd(e,()=>(td(e,t),e(33,3,0),2),()=>{e(66,Vh("ELSE")),a?e(81):e(80,{type:2,value:void 0}),e(79),jd(e,{capabilities:!0,elementBlock:l,positional:r,named:i,atNames:o,blocks:u}),e(1e3,"ELSE")})}
1function jd(e,{capabilities:t,elementBlock:n,positional:r,named:i,atNames:s,blocks:o,layout:a}){let l=!!o,u=!0===t||gn(t,rn.prepareArgs)||!(!i||0===i[0].length),c=o.with("attrs",n);e(36,4),e(33,3,1),e(35,4),e(0),function(e,t,n,r,i){let s=r.names;for(const l of s)ld(e,r.get(l));let o=pd(e,t)<<4;i&&(o|=8),r.hasAny&&(o|=7);let a=_t;if(n){a=n[0];let t=n[1];for(let n=0;n<t.length;n++)td(e,t[n])}e(82,a,s,o)}(e,r,i,c,s),e(85,4),xd(e,c.has("default"),l,u,()=>{a?(e(63,Wh(a.symbolTable)),e(28,Qh(a)),e(61)):e(92,4),e(95,4)}),e(35,4)}function xd(e,t,n,r,i=null){e(97,4),e(59),e(87,0|t),i&&i(),e(88,4),e(90,4),e(38,4),e(19,0),r&&e(17,4),n&&e(18,4),e(34,1),e(96,4),e(100,4),e(1),e(40),e(60),e(98)}const Sd=new Xh,Ed=["class","id","value","name","type","style","href"],Td=["div","span","p","a"];function Od(e){return"string"==typeof e?e:Td[e]}function Rd(e){return"string"==typeof e?e:Ed[e]}function Ad(e){return null===e?null:[e[0].map(e=>`@${e}`),e[1]]}Sd.add(3,(e,t)=>e(42,t[1])),Sd.add(13,e=>e(55)),Sd.add(12,e=>e(54)),Sd.add(4,(e,[,t,n,r])=>{Bh(t)?e(1003,t,t=>{e(0),dd(e,n,r,!1),e(57,t),e(1)}):(td(e,t),e(0),dd(e,n,r,!1),e(33,2,1),e(108),e(1))}),Sd.add(14,(e,[,t,n,r])=>{e(51,Rd(t),n,r??null)}),Sd.add(24,(e,[,t,n,r])=>{e(105,Rd(t),n,r??null)}),Sd.add(15,(e,[,t,n,r])=>{td(e,n),e(52,Rd(t),!1,r??null)}),Sd.add(22,(e,[,t,n,r])=>{td(e,n),e(52,Rd(t),!0,r??null)}),Sd.add(16,(e,[,t,n,r])=>{td(e,n),e(53,Rd(t),!1,r??null)}),Sd.add(23,(e,[,t,n,r])=>{td(e,n),e(53,Rd(t),!0,r??null)}),Sd.add(10,(e,[,t])=>{e(48,Od(t))}),Sd.add(11,(e,[,t])=>{e(89),e(48,Od(t))}),Sd.add(8,(e,[,t,n,r,i])=>{Fh(t)?e(1004,t,t=>{wd(e,t,n,null,r,i)}):kd(e,t,n,null,r,i,!0,!0)}),Sd.add(18,(e,[,t,n])=>ad(e,t,n)),Sd.add(17,(e,[,t])=>ad(e,t,null)),Sd.add(26,(e,[,t,n,r])=>{e(103,function(e,t,n){return{type:3,value:{locals:e,upvars:t,lexical:n}}}(t,n,r))}),Sd.add(1,(e,[,t])=>
1{if(Array.isArray(t))if(qh(t))e(1008,t,{ifComponent(t){wd(e,t,null,null,null,null)},ifHelper(t){e(0),id(e,t,null,null),e(3,Hh("cautious-non-dynamic-append")),e(1)},ifValue(t){e(0),e(29,t),e(3,Hh("cautious-non-dynamic-append")),e(1)}});else if(28===t[0]){let[,n,r,i]=t;qh(n)?e(1007,n,{ifComponent(t){wd(e,t,null,r,Ad(i),null)},ifHelper(t){e(0),id(e,t,r,i),e(3,Hh("cautious-non-dynamic-append")),e(1)}}):vd(e,()=>{td(e,n),e(106)},t=>{t(0,()=>{e(81),e(79),jd(e,{capabilities:!0,elementBlock:null,positional:r,named:i,atNames:!1,blocks:yd(null)})}),t(1,()=>{sd(e,r,i,()=>{e(3,Hh("cautious-non-dynamic-append"))})})})}else e(0),td(e,t),e(3,Hh("cautious-append")),e(1);else e(41,null==t?"":String(t))}),Sd.add(2,(e,[,t])=>{Array.isArray(t)?(e(0),td(e,t),e(3,Hh("trusting-append")),e(1)):e(41,null==t?"":String(t))}),Sd.add(6,(e,[,t,n,r,i])=>{Fh(t)?e(1004,t,t=>{wd(e,t,null,n,Ad(r),i)}):kd(e,t,null,n,r,i,!1,!1)}),Sd.add(40,(e,[,t,n,r,i])=>{_d(e,()=>(td(e,n),void 0===i?nd(e,void 0):td(e,i),td(e,r),e(33,3,0),4),()=>{e(50),ud(e,t),e(56)})}),Sd.add(41,(e,[,t,n,r])=>_d(e,()=>(td(e,t),e(71),1),()=>{ud(e,n)},r?()=>{ud(e,r)}:void 0)),Sd.add(42,(e,[,t,n,r,i])=>bd(e,()=>(n?td(e,n):nd(e,null),td(e,t),2),()=>{e(72,Vh("BODY"),Vh("ELSE")),e(0),e(33,2,1),e(6,Vh("ITER")),e(1e3,"ITER"),e(74,Vh("BREAK")),e(1e3,"BODY"),cd(e,r,2),e(34,2),e(4,Vh("FINALLY")),e(1e3,"BREAK"),e(1),e(73),e(4,Vh("FINALLY")),e(1e3,"ELSE"),i&&ud(e,i)})),Sd.add(44,(e,[,t,n])=>{cd(e,n,pd(e,t))}),Sd.add(45,(e,[,t,n])=>{if(t){let[r,i]=t;pd(e,i),function(e,t,n){e(59),e(58,t),n(),e(60)}(e,r,()=>{ud(e,n)})}else ud(e,n)}),Sd.add(46,(e,[,t,n,r,i])=>{Fh(t)?e(1004,t,t=>{wd(e,t,null,n,Ad(r),i)}):kd(e,t,null,n,r,i,!1,!1)});class Cd{constructor(e,t,n,r="plain block"){this.statements=e,this.meta=t,this.symbolTable=n,this.moduleName=r,this.compiled=null}compile(e){return function(e,t){if(null!==e.compiled)return e.compiled;e.compiled=-1;let{statements:n,meta:r}=e,i=function(e,t,n){let r=Sd,i=Jh(n,t),{encoder:s,evaluation:o}=i;function a(...e){Kh(s,o,t,e)}for(const l of e)r.compile(a,l);return i.encoder.commit(t.size)}(n,r,t);return e.compiled=i,i}(this,e)}}class Nd{constructor(e,t,n,r,i){this.main=e,this.trustingGuardedAppend=t,this.cautiousGuardedAppend=n,this.trustingNonDynamicAppend=r,this.cautiousNonDynamicAppend=i}get"trusting-append"(){return this.trustingGuardedAppend}get"cautious-append"(){return this.cautiousGuardedAppend}get"trusting-non-dynamic-append"(){return this.trustingNonDynamicAppend}get"cautious-non-dynamic-append"(){return this.cautiousNonDynamicAppend}getAppend(e){return e?this.trustingGuardedAppend:this.cautiousGuardedAppend}}function Id(e,t,n){vd(e,()=>e(76),r=>{r(2,()=>{t?(e(68),e(43)):e(47)}),"number"==typeof n?(r(0,()=>{e(81),e(79),function(e){e(36,4),e(33,3,1),e(35,4),e(0),e(83),e(85,4),xd(e,!1,!1,!0,()=>{e(92,4),e(95,4)}),e(35,4)}(e)}),r(1,()=>{sd(e,null,null,()=>{e(3,n)})})):(r(0,()=>{e(47)}),r(1,()=>{e(47)})),r(4,()=>{e(68),e(44)}),r(5,()=>{e(68),e(45)}),r(6,()=>{e(68),e(46)})})}const Md={symbols:{locals:null,upvars:null},moduleName:"stdlib",scopeValues:null,isStrictMode:!0,owner:null,size:0};function Pd(e,t){let n=new Yh(e.program.heap,Md);t(function(...t){Kh(n,e,Md,t)});let r=n.commit(0);if("number"!=typeof r)throw new Error("Unexpected errors compiling std");return r}class Dd{constructor({constants:e,heap:t},n,r){this.constants=e,this.heap=t,this.resolver=r.resolver,this.createOp=n,this.env=r.env,this.program=r.program,this.stdlib=function(e){let t=Pd(e,e=>function(e){e(75,4),xd(e,!1,!1,!0)}(e)),n=Pd(e,e=>Id(e,!0,null)),r=Pd(e,e=>Id(e,!1,null)),i=Pd(e,e=>Id(e,!0,n)),s=Pd(e,e=>Id(e,!1,r));return new Nd(t,i,s,n,r)}(this)}}class Ld{constructor(e,t){this.layout=e,this.moduleName=t,this.compiled=null;let{block:n}=e,[,r]=n;r=r.slice();let i=r.indexOf("&attrs");this.attrsBlockNumber=-1===i?r.push("&attrs"):i+1,this.symbolTable={symbols:r},this.meta=fd(e)}compile(e){if(null!==this.compiled)return this.compiled;let t=fd(this.layout),n=Jh(e,t),{encoder:r,evaluation:i}=n;var s,o,a;s=function(...e){Kh(r,i,t,e)},o=this.layout,a=this.attrsBlockNumber,s(1001),function(e,t,n){e(36,5),n(),e(35,5)}(s,0,()=>{s(91,4),s(31),s(33,3,0)}),s(66,Vh("BODY")),s(36,5),s(89),s(49),s(99,4),ad(s,a,null),s(54),s(1e3,"BODY"),ud(s,[o.block[0],[]]),s(36,5),s(66,Vh("END")),s(55),s(1e3,"END"),s(35,5),s(1002);let l=n.encoder.commit(t.size);return"number"!=typeof l||(this.compiled=l),l}}let zd=0,Fd={cacheHit:0,cacheMiss:0};function Bd({id:e,moduleName:t,block:n,scope:r,isStrictMode:i}){let s,o=e||"client-"+zd++,a=null,l=new WeakMap,u=e=>{if(void 0===s&&(s=JSON.parse(n)),void 0===e)return null===a?(Fd.cacheMiss++,a=new Ud({id:o,block:s,moduleName:t,owner:null,scope:r,isStrictMode:i})):Fd.cacheHit++,a;let u=l.get(e);return void 0===u?(Fd.cacheMiss++,u=new Ud({id:o,block:s,moduleName:t,owner:e,scope:r,isStrictMode:i}),l.set(e,u)):Fd.cacheHit++,u};return u.__id=o,u.__meta={moduleName:t},u}class Ud{constructor(e){this.parsedLayout=e,this.result="ok",this.layout=null,this.wrappedLayout=null}get moduleName(){return this.parsedLayout.moduleName}get id(){return this.parsedLayout.id}get referrer(){return{moduleName:this.parsedLayout.moduleName,owner:this.parsedLayout.owner}}asLayout(){return this.layout?this.layout:this.layout=function(e,t){let[n,r]=e.block;return new Cd(n,fd(e),{symbols:r},t)}(At({},this.parsedLayout),this.moduleName)}asWrappedLayout(){return this.wrappedLayout?this.wrappedLayout:this.wrappedLayout=new Ld(At({},this.parsedLayout),this.moduleName)}}function qd(e){if("error"===e.result)throw new Error(`Compile Error: ${e.problem} @ ${e.span.start}..${e.span.end}`);return e}const $d={id:"1b32f5c2-7623-43d6-a0ad-9672898920a1",moduleName:"__default__.hbs",block:JSON.stringify([[[18,1,null]],["&default"],[]]),scope:null,isStrictMode:!0},Vd=Object.freeze([]),Hd=[!1,!0,null,void 0,Vd],Wd=Hd.indexOf(Vd);class Qd{value(e){let t=this.indexMap,n=t.get(e);return void 0===n&&(n=this.values.push(e)-1,t.set(e,n)),n}array(e){if(0===e.length)return Wd;let t=new Array(e.length);for(let n=0;n<e.length;n++)t[n]=this.value(e[n]);return this.value(t)}toPool(){return this.values}hasHandle(e){return this.values.length>e}helper(e,t=null,n){let r=this.helperDefinitionCache.get(e);if(void 0===r){let t=Cn(e);if(null===t)return this.helperDefinitionCache.set(e,null),null;let n="function"==typeof t?t:t.getHelper(e);r=this.value(n),this.helperDefinitionCache.set(e,r),this.helperDefinitionCount++}return r}modifier(e,t=null,n){let r=this.modifierDefinitionCache.get(e);if(void 0===r){let n=On(e);if(null===n)return this.modifierDefinitionCache.set(e,null),null;let i={resolvedName:t,manager:n,state:e};r=this.value(i),this.modifierDefinitionCache.set(e,r),this.modifierDefinitionCount++}return r}component(e,t,n,r){let i=this.componentDefinitionCache.get(e);if(void 0===i){let n=In(e);if(null===n)return this.componentDefinitionCache.set(e,null),null;let s,o=pn(n.getCapabilities(e)),a=Hn(e),l=null;s=mn(0,o,rn.dynamicLayout)?a?.(t):a?.(t)??this.defaultTemplate,void 0!==s&&(s=qd(s),l=mn(0,o,rn.wrapped)?s.asWrappedLayout():s.asLayout()
1),i={resolvedName:null,handle:-1,manager:n,capabilities:o,state:e,compilable:l},i.handle=this.value(i),r&&(i.debugName=r),this.componentDefinitionCache.set(e,i),this.componentDefinitionCount++}return i}resolvedComponent(e,t){let n=this.componentDefinitionCache.get(e);if(void 0===n){let{manager:r,state:i,template:s}=e,o=pn(r.getCapabilities(e)),a=null;mn(0,o,rn.dynamicLayout)||(s=s??this.defaultTemplate),null!==s&&(s=qd(s),a=mn(0,o,rn.wrapped)?s.asWrappedLayout():s.asLayout()),n={resolvedName:t,handle:-1,manager:r,capabilities:o,state:i,compilable:a},n.handle=this.value(n),this.componentDefinitionCache.set(e,n),this.componentDefinitionCount++}return n}getValue(e){return this.values[e]}getArray(e){let t=this.reifiedArrs,n=t[e];if(void 0===n){let r=this.getValue(e);n=new Array(r.length);for(const[e,t]of xt(r))n[e]=this.getValue(t);t[e]=n}return n}constructor(){this.reifiedArrs={[Wd]:Vd},this.defaultTemplate=Bd($d)(),this.helperDefinitionCount=0,this.modifierDefinitionCount=0,this.componentDefinitionCount=0,this.values=Hd.slice(),this.indexMap=new Map(this.values.map((e,t)=>[e,t])),this.helperDefinitionCache=new WeakMap,this.modifierDefinitionCache=new WeakMap,this.componentDefinitionCache=new WeakMap}}class Gd{constructor(e){this.heap=e,this.offset=0}get size(){return 1+((768&this.heap.getbyaddr(this.offset))>>8)}get isMachine(){return this.heap.getbyaddr(this.offset)&sn?1:0}get type(){return 255&this.heap.getbyaddr(this.offset)}get op1(){return this.heap.getbyaddr(this.offset+1)}get op2(){return this.heap.getbyaddr(this.offset+2)}get op3(){return this.heap.getbyaddr(this.offset+3)}}class Kd{constructor(){this.offset=0,this.handle=0,this.heap=new Int32Array(1048576),this.handleTable=[],this.handleState=[]}entries(){return this.offset}pushRaw(e){this.sizeCheck(),this.heap[this.offset++]=e}pushOp(e){this.pushRaw(e)}pushMachine(e){this.pushRaw(e|sn)}sizeCheck(){let{heap:e}=this;if(this.offset===this.heap.length){let t=new Int32Array(e.length+1048576);t.set(e,0),this.heap=t}}getbyaddr(e){return this.heap[e]}setbyaddr(e,t){this.heap[e]=t}malloc(){return this.handleTable.push(this.offset),this.handleTable.length-1}finishMalloc(e){}size(){return this.offset}getaddr(e){return this.handleTable[e]}sizeof(e){return this.handleTable,-1}free(e){this.handleState[e]=1}compact(){let e=0,{handleTable:t,handleState:n,heap:r}=this;for(let i=0;i<length;i++){let s=t[i],o=t[i+1]-s,a=n[i];if(2!==a)if(1===a)n[i]=2,e+=o;else if(0===a){for(let t=s;t<=i+o;t++)r[t-e]=r[t];t[i]=s-e}else 3===a&&(t[i]=s-e)}this.offset=this.offset-e}}class Yd{constructor(e,t){this.constants=e,this.heap=t,this._opcode=new Gd(this.heap)}opcode(e){return this._opcode.offset=e,this._opcode}}const Jd="http://www.w3.org/1998/Math/MathML",Xd="http://www.w3.org/2000/svg";function Zd(e){return function(e){e.nodeType}(e),e}function ep(e){if("number"==typeof e)return e;{let t=e.errors[0];throw new Error(`Compile Error: ${t.problem} @ ${t.span.start}..${t.span.end}`)}}function tp(e){if("error"===e.result)throw new Error(`Compile Error: ${e.problem} @ ${e.span.start}..${e.span.end}`);return e}function np(e){return(e|=0)>-536870913?function(e){return~e}(e):function(e){return 536870912|e}(e)}[1,-1].forEach(e=>{return np((t=e,(t|=0)<0?function(e){return-536870913&e}(t):function(e){return~e}(t)));var t});const rp=new class{constructor(){this.evaluateOpcode=new Array(113).fill(null)}add(e,t,n="syscall"){this.evaluateOpcode[e]={syscall:"machine"!==n,evaluate:t}}evaluate(e,t,n){let r=this.evaluateOpcode[n];r.syscall?(t.isMachine,r.syscall,t.isMachine,t.type,r.evaluate(e,t)):(t.isMachine,r.syscall,t.isMachine,t.type,r.evaluate(e.lowlevel,t))}},ip=Symbol("TYPE"),sp=Symbol("INNER"),op=Symbol("OWNER"),ap=Symbol("ARGS"),lp=Symbol("RESOLVED"),up=new WeakSet;function cp(e){return up.has(e)}function hp(e,t){return cp(e)&&e[ip]===t}class dp{constructor(e,t,n,r,i=!1){up.add(this),this[ip]=e,this[sp]=t,this[op]=n,this[ap]=r,this[lp]=i}}function pp(e){let t,n,r,i,s,o=e;for(;;){let{[ap]:e,[sp]:a}=o;if(null!==e){let{named:r,positional:i}=e;i.length>0&&(t=void 0===t?i:i.concat(t)),void 0===n&&(n=[]),n.unshift(r)}if(!cp(a)){r=a,i=o[op],s=o[lp];break}o=a}return{definition:r,owner:i,resolved:s,positional:t,named:n}}function fp(e,t,n,r,i=!1){return new dp(e,t,n,r,i)}class mp{constructor(e){this.bucket=e?At({},e):{}}get(e){return this.bucket[e]}set(e,t){return this.bucket[e]=t}child(){return new mp(this.bucket)}}class gp{static root(e,{self:t,size:n=0}){let r=new Array(n+1).fill(Mt);return new gp(e,r,null).init({self:t})}static sized(e,t=0){let n=new Array(t+1).fill(Mt);return new gp(e,n,null)}constructor(e,t,n){this.owner=e,this.slots=t,this.callerScope=n}init({self:e}){return this.slots[0]=e,this}snapshot(){return this.slots.slice()}getSelf(){return this.get(0)}getSymbol(e){return this.get(e)}getBlock(e){let t=this.get(e);return t===Mt?null:t}bind(e,t){this.set(e,t)}bindSelf(e){this.set(0,e)}bindSymbol(e,t){this.set(e,t)}bindBlock(e,t){this.set(e,t)}bindCallerScope(e){this.callerScope=e}getCallerScope(){return this.callerScope}child(){return new gp(this.owner,this.slots.slice(),this.callerScope)}get(e){if(e>=this.slots.length)throw new RangeError(`BUG: cannot get $${e} from scope; length=${this.slots.length}`);return this.slots[e]}set(e,t){if(e>=this.slots.length)throw new RangeError(`BUG: cannot get $${e} from scope; length=${this.slots.length}`);this.slots[e]=t}}class yp{constructor(e,t){this.element=e,this.nextSibling=t}}class vp{constructor(e,t,n){this.parentNode=e,this.first=t,this.last=n}parentElement(){return this.parentNode}firstNode(){return this.first}lastNode(){return this.last}}function bp(e,t){let n=e.parentElement(),r=e.firstNode(),i=e.lastNode(),s=r;for(;;){let e=s.nextSibling;if(n.insertBefore(s,t),s===i)return e;s=e}}function _p(e){let t=e.parentElement(),n=e.firstNode(),r=e.lastNode(),i=n;for(;;){let e=i.nextSibling;if(t.removeChild(i),i===r)return e;i=e}}function wp(e){return"getDebugCustomRenderTree"in e}let kp=0;class jp{constructor(e){this.id=kp++,this.value=e}get(){return this.value}release(){this.value=null}toString(){let e=`Ref ${this.id}`;if(null===this.value)return`${e} (released)`;try{return`${e}: ${this.value}`}catch{return e}}}class xp{begin(){this.reset()}create(e,t){let n=At({},t,{bounds:null,refs:new Set});this.nodes.set(e,n),this.appendChild(n,e),this.enter(e)}update(e){this.enter(e)}didRender(e,t){this.nodeFor(e).bounds=t,this.exit()}willDestroy(e){this.refs.get(e).release()}commit(){this.reset()}capture(){return this.captureRefs(this.roots)}reset(){if(0!==this.stack.size){let e=this.stack.toArray()[0],t=this.refs.get(e);for(void 0!==t&&this.roots.delete(t);!this.stack.isEmpty();)this.stack.pop()}}enter(e){this.stack.push(e)}exit(){this.stack.pop()}nodeFor(e){return this.nodes.get(e)}appendChild(e,t){let n=this.stack.current,r=new jp(t);if(this.refs.set(t,r),n){let t=this.nodeFor(n);t.refs.add(r),e.parent=t}else this.roots.add(r)}captureRefs(e){let t=[];return e.forEach(n=>{let r=n.get();r?t.push(this.captureNode(`render-node:${n.id}`,r)):e.delete(n)}),t}captureNode(e,t){let n=this.nodeFor(t),{type:r,name:i,args:s,instance:o,refs:a}=n,l=this.captureTemplate(n),u=this.captureBounds(n),c=this.captureRefs(a);return{id:e,type:r,name:i,args:of(s),instance:o,template:l,bounds:u,children:c}}captureTemplate({template:e}){return e||null}captureBounds(e){let t=e.bounds;return{parentElement:t.parentElement(),firstNode:t.firstNode(),lastNode:t.lastNode()}}constructor(){this.stack=new Ot,this.refs=new WeakMap,this.roots=new Set,this.nodes=new WeakMap}}function Sp(e){return Ep(e)?"":String(e)}function Ep(e){return null==e||"function"!=typeof e.toString}function Tp(e){return null!==e&&"object"==typeof e}function Op(e){return Tp(e)&&"function"==typeof e.toHTML}function Rp(e){return"string"==typeof e}rp.add(39,e=>e.pushChildScope()),rp.add(40,e=>e.popScope()),rp.add(59,e=>e.pushDynamicScope()),rp.add(60,e=>e.popDynamicScope()),rp.add(28,(e,{op1:t})=>{e.stack.push(e.constants.getValue(t))}),rp.add(29,(e,{op1:t})=>{e.stack.push(zt(e.constants.getValue(t)))}),rp.add(30,(e,{op1:t})=>{let n=e.stack;if(t>=0){let r=e.constants.getValue(t);n.push(r)}else n.push(np(t))}),rp.add(31,e=>{let t,n=e.stack,r=n.pop();t=void 0===r?Mt:null===r?Pt:!0===r?Dt:!1===r?Lt:It(r),n.push(t)}),rp.add(33,(e,{op1:t,op2:n})=>{let r=e.fetchValue(t)-n;e.stack.dup(r)}
1),rp.add(34,(e,{op1:t})=>{e.stack.pop(t)}),rp.add(35,(e,{op1:t})=>{e.load(t)}),rp.add(36,(e,{op1:t})=>{e.fetch(t)}),rp.add(58,(e,{op1:t})=>{let n=e.constants.getArray(t);e.bindDynamicScope(n)}),rp.add(69,(e,{op1:t})=>{e.enter(t)}),rp.add(70,e=>{e.exit()}),rp.add(63,(e,{op1:t})=>{e.stack.push(e.constants.getValue(t))}),rp.add(62,e=>{e.stack.push(e.scope())}),rp.add(61,e=>{let t=e.stack,n=t.pop();n?t.push(e.compile(n)):t.push(null)}),rp.add(64,e=>{let{stack:t}=e,n=t.pop(),r=t.pop(),i=t.pop(),s=t.pop();if(null===i||null===n)return e.lowlevel.pushFrame(),void e.pushScope(r??e.scope());let o=r;{let e=i.parameters,t=e.length;if(t>0){o=o.child();for(let n=0;n<t;n++)o.bindSymbol(e[n],s.at(n))}}e.lowlevel.pushFrame(),e.pushScope(o),e.call(n)}),rp.add(65,(e,{op1:t})=>{let n=e.stack.pop(),r=Boolean($t(n));Ut(n)?r&&e.lowlevel.goto(t):(r&&e.lowlevel.goto(t),e.updateWith(new Ap(n)))}),rp.add(66,(e,{op1:t})=>{let n=e.stack.pop(),r=Boolean($t(n));Ut(n)?r||e.lowlevel.goto(t):(r||e.lowlevel.goto(t),e.updateWith(new Ap(n)))}),rp.add(67,(e,{op1:t,op2:n})=>{e.stack.peek()===n&&e.lowlevel.goto(t)}),rp.add(68,e=>{let t=e.stack.peek();Ut(t)||e.updateWith(new Ap(t))}),rp.add(71,e=>{let{stack:t}=e,n=t.pop();t.push(Bt(()=>ne($t(n))))});class Ap{constructor(e){this.ref=e,this.last=$t(e)}evaluate(e){let{last:t,ref:n}=this;t!==$t(n)&&e.throw()}}class Cp{constructor(e,t){this.ref=e,this.filter=t,this.last=t($t(e))}evaluate(e){let{last:t,ref:n,filter:r}=this;t!==r($t(n))&&e.throw()}}class Np{finalize(e,t){this.target=t,this.didModify(e)}evaluate(e){let{tag:t,target:n,lastRevision:r}=this;!e.alwaysRevalidate&&Ce(t,r)&&(Xe(t),e.goto(n))}didModify(e){this.tag=e,this.lastRevision=Ae(this.tag),Xe(e)}constructor(){this.tag=ze,this.lastRevision=1}}class Ip{constructor(e){this.debugLabel=e}evaluate(){Qe(this.debugLabel)}}class Mp{constructor(e){this.target=e}evaluate(){let e=Ge();this.target.didModify(e)}}rp.add(41,(e,{op1:t})=>{e.tree().appendText(e.constants.getValue(t))}),rp.add(42,(e,{op1:t})=>{e.tree().appendComment(e.constants.getValue(t))}),rp.add(48,(e,{op1:t})=>{e.tree().openElement(e.constants.getValue(t))}),rp.add(49,e=>{let t=$t(e.stack.pop());e.tree().openElement(t)}),rp.add(50,e=>{let t=e.stack.pop(),n=e.stack.pop(),r=e.stack.pop(),i=$t(t),s=$t(n),o=$t(r);Ut(t)||e.updateWith(new Ap(t)),void 0===s||Ut(n)||e.updateWith(new Ap(n));let a=e.tree().pushRemoteElement(i,o,s);if(e.associateDestroyable(a),void 0!==e.env.debugRenderTree){let r=ef(void 0===s?{}:{insertBefore:n},[t]);e.env.debugRenderTree.create(a,{type:"keyword",name:"in-element",args:r,instance:null}),pe(a,()=>{e.env.debugRenderTree?.willDestroy(a)})}}),rp.add(56,e=>{let t=e.tree().popRemoteElement();void 0!==e.env.debugRenderTree&&e.env.debugRenderTree.didRender(t,t)}),rp.add(54,e=>{let t=e.fetchValue(6),n=null;t&&(n=t.flush(e),e.loadValue(6,null)),e.tree().flushElement(n)}),rp.add(55,e=>{let t=e.tree().closeElement();null!==t&&t.forEach(t=>{e.env.scheduleInstallModifier(t);const n=t.manager.getDestroyable(t.state);null!==n&&e.associateDestroyable(n)})}),rp.add(57,(e,{op1:t})=>{if(!e.env.isInteractive)return;let n=e.getOwner(),r=e.stack.pop(),i=e.constants.getValue(t),{manager:s}=i,{constructing:o}=e.tree(),a=r.capture(),l=s.create(n,o,i.state,a),u={manager:s,state:l,definition:i};e.fetchValue(6).addModifier(e,u,a);let c=s.getTag(l);return null!==c?(Xe(c),e.updateWith(new Pp(c,u))):void 0}),rp.add(108,e=>{if(!e.env.isInteractive)return;let{stack:t}=e,n=t.pop(),r=t.pop().capture(),{positional:i,named:s}=r,{constructing:o}=e.tree(),a=e.getOwner(),l=Bt(()=>{let e,t,l=$t(n);if(!Tt(l))return;if(hp(l,2)){let{definition:n,owner:o,positional:a,named:u}=pp(l);t=n,e=o,void 0!==a&&(r.positional=a.concat(i)),void 0!==u&&(r.named=Object.assign({},...u,s))}else t=l,e=a;let u=On(t);if(null===u)throw new Error("BUG: modifier manager expected");let c={resolvedName:null,manager:u,state:t},h=u.create(e,o,c.state,r);return{manager:u,state:h,definition:c}}),u=$t(l),c=null;return void 0!==u&&(e.fetchValue(6).addModifier(e,u,r),c=u.manager.getTag(u.state),null!==c&&Xe(c)),!Ut(n)||c?e.updateWith(new Dp(c,u,l)):void 0});class Pp{constructor(e,t){this.tag=e,this.modifier=t,this.lastUpdated=Ae(e)}evaluate(e){let{modifier:t,tag:n,lastUpdated:r}=this;Xe(n),Ce(n,r)||(e.env.scheduleUpdateModifier(t),this.lastUpdated=Ae(n))}}class Dp{constructor(e,t,n){this.tag=e,this.instance=t,this.instanceRef=n,this.lastUpdated=Ae(e??Fe)}evaluate(e){let{tag:t,lastUpdated:n,instance:r,instanceRef:i}=this,s=$t(i);if(s!==r){if(void 0!==r){let e=r.manager.getDestroyable(r.state);null!==e&&fe(e)}if(void 0!==s){let{manager:n,state:r}=s,i=n.getDestroyable(r);null!==i&&de(this,i),t=n.getTag(r),null!==t&&(this.lastUpdated=Ae(t)),this.tag=t,e.env.scheduleInstallModifier(s)}this.instance=s}else null===t||Ce(t,n)||(e.env.scheduleUpdateModifier(r),this.lastUpdated=Ae(t));null!==t&&Xe(t)}}rp.add(51,(e,{op1:t,op2:n,op3:r})=>{let i=e.constants.getValue(t),s=e.constants.getValue(n),o=r?e.constants.getValue(r):null;e.tree().setStaticAttribute(i,s,o)}),rp.add(52,(e,{op1:t,op2:n,op3:r})=>{let i=e.constants.getValue(t),s=e.constants.getValue(n),o=e.stack.pop(),a=$t(o),l=r?e.constants.getValue(r):null,u=e.tree().setDynamicAttribute(i,a,s,l);Ut(o)||e.updateWith(new Lp(o,u,e.env))});class Lp{constructor(e,t,n){let r=!1;this.updateRef=Bt(()=>{let i=$t(e);r?t.update(i,n):r=!0}),$t(this.updateRef)}evaluate(){$t(this.updateRef)}}rp.add(78,(e,{op1:t})=>{let n=e.constants.getValue(t),{manager:r,capabilities:i}=n,s={definition:n,manager:r,capabilities:i,state:null,handle:null,table:null,lookup:null};e.stack.push(s)}),rp.add(80,(e,{op1:t})=>{let n,r=e.stack,i=$t(r.pop()),s=e.constants,o=e.getOwner();if(s.getValue(t),e.loadValue(7,null),"string"==typeof i){let t=function(e,t,n,r){let i=e?.lookupComponent?.(n,r)??null;return t.resolvedComponent(i,n)}(e.context.resolver,s,i,o);n=t}else n=cp(i)?i:s.component(i,o);
1r.push(n)}),rp.add(81,e=>{let t,n=e.stack,r=$t(n.pop()),i=e.constants;t=cp(r)?r:i.component(r,e.getOwner(),!0),n.push(t)}),rp.add(79,e=>{let t,n,{stack:r}=e,i=r.pop();cp(i)?n=t=null:(n=i.manager,t=i.capabilities),r.push({definition:i,capabilities:t,manager:n,state:null,handle:null,table:null})}),rp.add(82,(e,{op1:t,op2:n,op3:r})=>{let i=e.stack,s=e.constants.getArray(t),o=r>>4,a=8&r,l=7&r?e.constants.getArray(n):kt;e.args.setup(i,s,l,o,!!a),i.push(e.args)}),rp.add(83,e=>{let{stack:t}=e;t.push(e.args.empty(t))}),rp.add(86,e=>{let t=e.stack,n=t.pop().capture();t.push(n)}),rp.add(85,(e,{op1:t})=>{let n=e.stack,r=e.fetchValue(t),i=n.pop(),{definition:s}=r;if(hp(s,0)){s.manager;let t=e.constants,{definition:n,owner:o,resolved:a,positional:l,named:u}=pp(s);if(a)s=n;else if("string"==typeof n){let r=e.context.resolver?.lookupComponent?.(n,o)??null;s=t.resolvedComponent(r,n)}else s=t.component(n,o);void 0!==u&&i.named.merge(At({},...u)),void 0!==l&&(i.realloc(l.length),i.positional.prepend(l));let{manager:c}=s;r.definition=s,r.manager=c,r.capabilities=s.capabilities,e.loadValue(7,o)}let{manager:o,state:a}=s;if(!mn(0,r.capabilities,rn.prepareArgs))return void n.push(i);let l=i.blocks.values,u=i.blocks.names,c=o.prepareArgs(a,i);if(c){i.clear();for(let i=0;i<l.length;i++)n.push(l[i]);let{positional:e,named:t}=c,r=e.length;for(let i=0;i<r;i++)n.push(e[i]);let s=Object.keys(t);for(let i=0;i<s.length;i++)n.push(t[s[i]]);i.setup(n,s,u,r,!1)}n.push(i)}),rp.add(87,(e,{op1:t})=>{let n=e.fetchValue(4),{definition:r,manager:i,capabilities:s}=n;if(!mn(0,s,rn.createInstance))return;let o=null;mn(0,s,rn.dynamicScope)&&(o=e.dynamicScope());let a=1&t,l=null;mn(0,s,rn.createArgs)&&(l=e.stack.peek());let u=null;mn(0,s,rn.createCaller)&&(u=e.getSelf());let c=i.create(e.getOwner(),r.state,l,e.env,o,u,!!a);n.state=c,mn(0,s,rn.updateHook)&&e.updateWith(new qp(c,i,o))}),rp.add(88,(e,{op1:t})=>{let{manager:n,state:r,capabilities:i}=e.fetchValue(t),s=n.getDestroyable(r);s&&e.associateDestroyable(s)}),rp.add(97,(e,{op1:t})=>{e.beginCacheGroup(void 0),e.tree().pushAppendingBlock()}),rp.add(89,e=>{e.loadValue(6,new zp)}),rp.add(53,(e,{op1:t,op2:n,op3:r})=>{let i=e.constants.getValue(t),s=e.constants.getValue(n),o=e.stack.pop(),a=r?e.constants.getValue(r):null;e.fetchValue(6).setAttribute(i,o,s,a)}),rp.add(105,(e,{op1:t,op2:n,op3:r})=>{let i=e.constants.getValue(t),s=e.constants.getValue(n),o=r?e.constants.getValue(r):null;e.fetchValue(6).setStaticAttribute(i,s,o)});class zp{setAttribute(e,t,n,r){let i={value:t,namespace:r,trusting:n};"class"===e&&this.classes.push(t),this.attributes[e]=i}setStaticAttribute(e,t,n){let r={value:t,namespace:n};"class"===e&&this.classes.push(t),this.attributes[e]=r}addModifier(e,t,n){if(this.modifiers.push(t),void 0!==e.env.debugRenderTree){const{manager:r,definition:i,state:s}=t;if(null===s||"object"!=typeof s&&"function"!=typeof s)return;let{element:o,constructing:a}=e.tree(),l=i.resolvedName??r.getDebugName(i.state),u=r.getDebugInstance(s),c=new vp(o,a,a);e.env.debugRenderTree.create(s,{type:"modifier",name:l,args:n,instance:u}),e.env.debugRenderTree.didRender(s,c),e.associateDestroyable(s),e.updateWith(new Vp(s)),e.updateWith(new Hp(s,c)),pe(s,()=>{e.env.debugRenderTree?.willDestroy(s)})}}flush(e){let t,n=this.attributes;for(let r in this.attributes){if("type"===r){t=n[r];continue}let i=this.attributes[r];"class"===r?Bp(e,"class",Fp(this.classes),i.namespace,i.trusting):Bp(e,r,i.value,i.namespace,i.trusting)}return void 0!==t&&Bp(e,"type",t.value,t.namespace,t.trusting),this.modifiers}constructor(){this.attributes=St(),this.classes=[],this.modifiers=[]}}function Fp(e){return 0===e.length?"":1===e.length?e[0]:function(e){return e.every(e=>"string"==typeof e)}(e)?e.join(" "):(t=e,Bt(()=>{let e=[];for(const n of t){let t=Sp("string"==typeof n?n:$t(n));t&&e.push(t)}return 0===e.length?null:e.join(" ")}));var t}function Bp(e,t,n,r,i=!1){if("string"==typeof n)e.tree().setStaticAttribute(t,n,r);else{let s=e.tree().setDynamicAttribute(t,$t(n),i,r);Ut(n)||e.updateWith(new Lp(n,s,e.env))}}function Up(e,t,n,r,i){let s=n.table.symbols.indexOf(e),o=r.get(t);-1!==s&&i.scope().bindBlock(s+1,o),n.lookup&&(n.lookup[e]=o)}rp.add(99,(e,{op1:t})=>{let{definition:n,state:r}=e.fetchValue(t),{manager:i}=n,s=e.fetchValue(6);i.didCreateElement(r,e.tree().constructing,s)}),rp.add(90,(e,{op1:t,op2:n})=>{let r=e.fetchValue(t),{definition:i,state:s}=r,{manager:o}=i,a=o.getSelf(s);if(void 0!==e.env.debugRenderTree){let r,i,o=e.fetchValue(t),{definition:l,manager:u}=o;if(e.stack.peek()===e.args)r=e.args.capture();else{let t=e.constants.getArray(n);
1e.args.setup(e.stack,t,[],0,!0),r=e.args.capture()}let c=l.compilable;if(null===c){mn(0,o.capabilities,rn.dynamicLayout);let t=e.context.resolver;c=null===t?null:u.getDynamicLayout(s,t),i=null!==c?c.moduleName:"__default__.hbs"}else i=c.moduleName;if(e.associateDestroyable(o),wp(u))u.getDebugCustomRenderTree(o.definition.state,o.state,r,i).forEach(t=>{let{bucket:n}=t;e.env.debugRenderTree.create(n,t),pe(o,()=>{e.env.debugRenderTree?.willDestroy(n)}),e.updateWith(new Vp(n))});else{let t=function(e,t=e.manager){return e.resolvedName??e.debugName??t.getDebugName(e.state)}(l,u);e.env.debugRenderTree.create(o,{type:"component",name:t,args:r,template:i,instance:$t(a)}),pe(o,()=>{e.env.debugRenderTree?.willDestroy(o)}),e.updateWith(new Vp(o))}}e.stack.push(a)}),rp.add(91,(e,{op1:t})=>{let{definition:n,state:r}=e.fetchValue(t),{manager:i}=n,s=i.getTagName(r);e.stack.push(s)}),rp.add(92,(e,{op1:t})=>{let n=e.fetchValue(t),{manager:r,definition:i}=n,{stack:s}=e,{compilable:o}=i;if(null===o){let{capabilities:t}=n,i=e.context.resolver;o=null===i?null:r.getDynamicLayout(n.state,i),null===o&&(o=mn(0,t,rn.wrapped)?tp(e.constants.defaultTemplate).asWrappedLayout():tp(e.constants.defaultTemplate).asLayout())}let a=o.compile(e.context);s.push(o.symbolTable),s.push(a)}),rp.add(75,(e,{op1:t})=>{let n=e.stack.pop(),r=e.stack.pop(),{manager:i,capabilities:s}=n,o={definition:n,manager:i,capabilities:s,state:null,handle:r.handle,table:r.symbolTable,lookup:null};e.loadValue(t,o)}),rp.add(95,(e,{op1:t})=>{let{stack:n}=e,r=n.pop(),i=n.pop(),s=e.fetchValue(t);s.handle=r,s.table=i}),rp.add(38,(e,{op1:t})=>{let n,{table:r,manager:i,capabilities:s,state:o}=e.fetchValue(t);mn(0,s,rn.hasSubOwner)?(n=i.getOwner(o),e.loadValue(7,null)):(n=e.fetchValue(7),null===n?n=e.getOwner():e.loadValue(7,null)),e.pushRootScope(r.symbols.length+1,n)}),rp.add(17,(e,{op1:t})=>{let n=e.fetchValue(t),r=e.scope(),i=e.stack.peek(),s=i.named.atNames;for(let o=s.length-1;o>=0;o--){let e=s[o],t=n.table.symbols.indexOf(e),a=i.named.get(e,!0);-1!==t&&r.bindSymbol(t+1,a),n.lookup&&(n.lookup[e]=a)}}),rp.add(18,(e,{op1:t})=>{let n=e.fetchValue(t),{blocks:r}=e.stack.peek();for(const[i]of xt(r.names))Up(r.symbolNames[i],r.names[i],n,r,e)}),rp.add(96,(e,{op1:t})=>{let n=e.fetchValue(t);e.call(n.handle)}),rp.add(100,(e,{op1:t})=>{let n=e.fetchValue(t),{manager:r,state:i,capabilities:s}=n,o=e.tree().popBlock();void 0!==e.env.debugRenderTree&&(wp(r)?r.getDebugCustomRenderTree(n.definition.state,i,uf).reverse().forEach(t=>{let{bucket:n}=t;e.env.debugRenderTree.didRender(n,o),e.updateWith(new Hp(n,o))}):(e.env.debugRenderTree.didRender(n,o),e.updateWith(new Hp(n,o)))),mn(0,s,rn.createInstance)&&(r.didRenderLayout(i,o),e.env.didCreate(n),e.updateWith(new $p(n,o)))}),rp.add(98,e=>{e.commitCacheGroup()});class qp{constructor(e,t,n){this.component=e,this.manager=t,this.dynamicScope=n}evaluate(e){let{component:t,manager:n,dynamicScope:r}=this;n.update(t,r)}}class $p{constructor(e,t){this.component=e,this.bounds=t}evaluate(e){let{component:t,bounds:n}=this,{manager:r,state:i}=t;r.didUpdateLayout(i,n),e.env.didUpdate(t)}}class Vp{constructor(e){this.bucket=e}evaluate(e){e.env.debugRenderTree?.update(this.bucket)}}class Hp{constructor(e,t){this.bucket=e,this.bounds=t}evaluate(e){e.env.debugRenderTree?.didRender(this.bucket,this.bounds)}}class Wp{constructor(){this.stack=null,this.positional=new Gp,this.named=new Kp,this.blocks=new Xp}empty(e){let t=e.registers[3]+1;return this.named.empty(e,t),this.positional.empty(e,t),this.blocks.empty(e,t),this}setup(e,t,n,r,i){this.stack=e;let s=this.named,o=t.length,a=e.registers[3]-o+1;s.setup(e,a,o,t,i);let l=a-r;this.positional.setup(e,l,r);let u=this.blocks,c=n.length,h=l-3*c;u.setup(e,h,c,n)}get base(){return this.blocks.base}get length(){return this.positional.length+this.named.length+3*this.blocks.length}at(e){return this.positional.at(e)}realloc(e){let{stack:t}=this;if(e>0&&null!==t){let{positional:n,named:r}=this,i=n.base+e;for(let e=n.length+r.length-1;e>=0;e--)t.copy(e+n.base,e+i);n.base+=e,r.base+=e,t.registers[3]+=e}}capture(){let e=0===this.positional.length?lf:this.positional.capture();return{named:0===this.named.length?af:this.named.capture(),positional:e}}clear(){let{stack:e,length:t}=this;t>0&&null!==e&&e.pop(t)}}
1const Qp=wt();class Gp{constructor(){this.base=0,this.length=0,this.stack=null,this._references=null}empty(e,t){this.stack=e,this.base=t,this.length=0,this._references=Qp}setup(e,t,n){this.stack=e,this.base=t,this.length=n,this._references=0===n?Qp:null}at(e){let{base:t,length:n,stack:r}=this;return e<0||e>=n?Mt:r.get(e,t)}capture(){return this.references}prepend(e){let t=e.length;if(t>0){let{base:n,length:r,stack:i}=this;this.base=n-=t,this.length=r+t;for(let s=0;s<t;s++)i.set(e[s],s,n);this._references=null}}get references(){let e=this._references;if(!e){let{stack:t,base:n,length:r}=this;e=this._references=t.slice(n,n+r)}return e}}class Kp{constructor(){this.base=0,this.length=0,this._references=null,this._names=kt,this._atNames=kt}empty(e,t){this.stack=e,this.base=t,this.length=0,this._references=Qp,this._names=kt,this._atNames=kt}setup(e,t,n,r,i){this.stack=e,this.base=t,this.length=n,0===n?(this._references=Qp,this._names=kt,this._atNames=kt):(this._references=null,i?(this._names=null,this._atNames=r):(this._names=r,this._atNames=null))}get names(){let e=this._names;return e||(e=this._names=this._atNames.map(this.toSyntheticName)),e}get atNames(){let e=this._atNames;return e||(e=this._atNames=this._names.map(this.toAtName)),e}has(e){return-1!==this.names.indexOf(e)}get(e,t=!1){let{base:n,stack:r}=this,i=(t?this.atNames:this.names).indexOf(e);return-1===i?Mt:r.get(i,n)}capture(){let{names:e,references:t}=this,n=St();for(const[r,i]of xt(e))n[i]=t[r];return n}merge(e){let t=Object.keys(e);if(t.length>0){let{names:n,length:r,stack:i}=this,s=n.slice();for(const o of t)-1===s.indexOf(o)&&(r=s.push(o),i.push(e[o]));this.length=r,this._references=null,this._names=s,this._atNames=null}}get references(){let e=this._references;if(!e){let{base:t,length:n,stack:r}=this;e=this._references=r.slice(t,t+n)}return e}toSyntheticName(e){return e.slice(1)}toAtName(e){return`@${e}`}}function Yp(e){return`&${e}`}const Jp=wt();class Xp{constructor(){this.internalValues=null,this._symbolNames=null,this.internalTag=null,this.names=kt,this.length=0,this.base=0}empty(e,t){this.stack=e,this.names=kt,this.base=t,this.length=0,this._symbolNames=null,this.internalTag=ze,this.internalValues=Jp}setup(e,t,n,r){this.stack=e,this.names=r,this.base=t,this.length=n,this._symbolNames=null,0===n?(this.internalTag=ze,this.internalValues=Jp):(this.internalTag=null,this.internalValues=null)}get values(){let e=this.internalValues;if(!e){let{base:t,length:n,stack:r}=this;e=this.internalValues=r.slice(t,t+3*n)}return e}has(e){return-1!==this.names.indexOf(e)}get(e){let t=this.names.indexOf(e);if(-1===t)return null;let{base:n,stack:r}=this,i=r.get(3*t,n),s=r.get(3*t+1,n),o=r.get(3*t+2,n);return null===o?null:[o,s,i]}capture(){return new Zp(this.names,this.values)}get symbolNames(){let e=this._symbolNames;return null===e&&(e=this._symbolNames=this.names.map(Yp)),e}}class Zp{constructor(e,t){this.names=e,this.values=t,this.length=e.length}has(e){return-1!==this.names.indexOf(e)}get(e){let t=this.names.indexOf(e);return-1===t?null:[this.values[3*t+2],this.values[3*t+1],this.values[3*t]]}}function ef(e,t){return{named:e,positional:t}}function tf(e){return e.map($t)}const nf=Symbol("ARGUMENT_ERROR");function rf(e){return null!==e&&"object"==typeof e&&e[nf]}function sf(e){return{[nf]:!0,error:e}}function of(e){return{named:function(e){let t=St();for(const[r,i]of Object.entries(e))try{t[r]=$t(i)}catch(n){t[r]=sf(n)}return t}(e.named),positional:(t=e.positional,t.map(e=>{try{return $t(e)}catch(t){return sf(t)}}))};var t}const af=Object.freeze(Object.create(null)),lf=Qp,uf=ef(af,lf);function cf(e){return"string"==typeof e?e:"function"!=typeof e.toString?"":String(e)}function hf(e){let t,n=Cn(e);return t=null===n?null:"function"==typeof n?n:n.getHelper(e),t}function df(e){return e===Mt}rp.add(77,(e,{op1:t,op2:n})=>{let r=e.stack,i=r.pop(),s=r.pop(),o=e.getOwner();e.context.resolver,e.loadValue(8,function(e,t,n,r){let i,s;return Bt(()=>{let o=$t(t);return o===i||(s=hp(o,e)?r?fp(e,o,n,r):r:0===e&&"string"==typeof o&&o||Tt(o)?fp(e,o,n,r):null,i=o),s})}(t,i,o,s))}),rp.add(107,e=>{let t,n=e.stack,r=n.pop(),i=n.pop().capture(),s=e.getOwner(),o=Bt(()=>{void 0!==t&&fe(t);let e=$t(r);if(hp(e,1)){let{definition:n,owner:r,positional:s,named:a}=pp(e),l=hf(n);void 0!==a&&(i.named=At({},...a,i.named)),void 0!==s&&(i.positional=s.concat(i.positional)),t=l(i,r),de(o,t)}else if(Tt(e)){let n=hf(e);t=n(i,s),me(t)&&de(o,t)}else t=Mt}),a=Bt(()=>($t(o),$t(t)));e.associateDestroyable(o),e.loadValue(8,a)}),rp.add(16,(e,{op1:t})=>{let n=e.stack,r=e.constants.getValue(t)(n.pop().capture(),e.getOwner(),e.dynamicScope());me(r)&&e.associateDestroyable(r),e.loadValue(8,r)}),rp.add(21,(e,{op1:t})=>{let n=e.referenceForSymbol(t);e.stack.push(n)}),rp.add(19,(e,{op1:t})=>{let n=e.stack.pop();e.scope().bindSymbol(t,n)}),rp.add(20,(e,{op1:t})=>{let n=e.stack.pop(),r=e.stack.pop(),i=e.stack.pop();e.scope().bindBlock(t,[n,r,i])}),rp.add(37,(e,{op1:t})=>{e.pushRootScope(t,e.getOwner())}),rp.add(22,(e,{op1:t})=>{let n=e.constants.getValue(t),r=e.stack.pop();e.stack.push(Ht(r,n))}),rp.add(23,(e,{op1:t})=>{let{stack:n}=e,r=e.scope().getBlock(t);n.push(r)}),rp.add(24,e=>{let{stack:t}=e,n=t.pop();if(n&&!df(n)){let[e,r,i]=n;t.push(i),t.push(r),t.push(e)}else t.push(null),t.push(null),t.push(null)}),rp.add(25,e=>{let{stack:t}=e,n=t.pop();n&&!df(n)?t.push(Dt):t.push(Lt)}),rp.add(26,e=>
1{e.stack.pop(),e.stack.pop();let t=e.stack.pop(),n=t&&t.parameters.length;e.stack.push(n?Dt:Lt)}),rp.add(27,(e,{op1:t})=>{let n=new Array(t);for(let i=t;i>0;i--)n[i-1]=e.stack.pop();var r;e.stack.push((r=n,Bt(()=>{const e=[];for(const t of r){const n=$t(t);null!=n&&e.push(cf(n))}return e.length>0?e.join(""):null})))}),rp.add(109,e=>{let t=e.stack.pop(),n=e.stack.pop(),r=e.stack.pop();e.stack.push(Bt(()=>ne($t(t))?$t(n):$t(r)))}),rp.add(110,e=>{let t=e.stack.pop();e.stack.push(Bt(()=>!ne($t(t))))}),rp.add(111,e=>{let t=e.dynamicScope(),n=e.stack,r=n.pop();n.push(Bt(()=>{let e=String($t(r));return $t(t.get(e))}))}),rp.add(112,e=>{let{positional:t}=e.stack.pop().capture();e.loadValue(8,Bt(()=>{console.log(...tf(t))}))});class pf{constructor(e,t,n){this.node=e,this.reference=t,this.lastValue=n}evaluate(){let e,t=$t(this.reference),{lastValue:n}=this;t!==n&&(e=Ep(t)?"":Rp(t)?t:String(t),e!==n)&&(this.node.nodeValue=this.lastValue=e)}}function ff(e){return function(e){return Rp(e)||Ep(e)||"boolean"==typeof e||"number"==typeof e}(e)?2:hp(e,0)||Mn(e)?0:hp(e,1)||function(e){return"function"==typeof e}(t=e)||void 0!==En(jn,t)?1:Op(e)?4:function(e){return Tp(e)&&11===e.nodeType}(e)?5:function(e){return Tp(e)&&"number"==typeof e.nodeType}(e)?6:2;var t}function mf(e){return Tt(e)?hp(e,0)||Mn(e)?0:1:2}rp.add(76,e=>{let t=e.stack.peek();e.stack.push(ff($t(t))),Ut(t)||e.updateWith(new Cp(t,ff))}),rp.add(106,e=>{let t=e.stack.peek();e.stack.push(mf($t(t))),Ut(t)||e.updateWith(new Cp(t,mf))}),rp.add(43,e=>{let t=$t(e.stack.pop()),n=Ep(t)?"":String(t);e.tree().appendDynamicHTML(n)}),rp.add(44,e=>{let t=$t(e.stack.pop()).toHTML(),n=Ep(t)?"":t;e.tree().appendDynamicHTML(n)}),rp.add(47,e=>{let t=e.stack.pop(),n=$t(t),r=Ep(n)?"":String(n),i=e.tree().appendDynamicText(r);Ut(t)||e.updateWith(new pf(i,t,r))}),rp.add(45,e=>{let t=$t(e.stack.pop());e.tree().appendDynamicFragment(t)}),rp.add(46,e=>{let t=$t(e.stack.pop());e.tree().appendDynamicNode(t)});class gf{#f;constructor(e,t){this.scope=e,this.#f=t}get(e){let t,{scope:n}=this,r=this.#f,i=e.split("."),[s,...o]=e.split(".");return"this"===s?t=n.getSelf():r.locals[s]?t=n.getSymbol(r.locals[s]):(t=this.scope.getSelf(),o=i),o.reduce((e,t)=>Ht(e,t),t)}}rp.add(103,(e,{op1:t})=>{let n=e.constants.getValue(t),r=new gf(e.scope(),n);var i;$t(e.getSelf()),console.info("Use `context`, and `get(<path>)` to debug this template."),i="this",$t(r.get(i))}),rp.add(72,(e,{op1:t,op2:n})=>{let r=e.stack,i=r.pop(),s=$t(r.pop()),o=function(e,t){return Bt(()=>{let n=$t(e),r=function(e){switch(e){case"@key":return Zt(Gt);case"@index":return Zt(Kt);case"@identity":return Zt(Yt);default:return t=e,Zt(e=>se(e,t))}var t}(t);if(Array.isArray(n))return new nn(n,r);let i=te(n);return null===i?new nn(_t,()=>null):new tn(i,r)})}(i,null===s?"@identity":String(s)),a=$t(o);e.updateWith(new Cp(o,e=>e.isEmpty())),a.isEmpty()?e.lowlevel.goto(n+1):(e.enterList(o,t),e.stack.push(a))}),rp.add(73,e=>{e.exitList()}),rp.add(74,(e,{op1:t})=>{let n=e.stack.peek().next();null!==n?e.registerItem(e.enterItem(n)):e.lowlevel.goto(t)});const yf={dynamicLayout:!1,dynamicTag:!1,prepareArgs:!1,createArgs:!1,attributeHook:!1,elementHook:!1,createCaller:!1,dynamicScope:!1,updateHook:!1,createInstance:!1,wrapped:!1,willDestroy:!1,hasSubOwner:!1},vf=new class{getCapabilities(){return yf}getDebugName({name:e}){return e}getSelf(){return Pt}getDestroyable(){return null}};class bf{constructor(e="@glimmer/component/template-only",t="(unknown template-only component)"){this.moduleName=e,this.name=t}toString(){return this.moduleName}}function _f(e,t){return new bf(e,t)}Nn(vf,bf.prototype);const wf={foreignObject:1,desc:1,title:1},kf=Object.create(null);class jf{constructor(e){this.document=e,this.setupUselessElement()}setupUselessElement(){this.uselessElement=this.document.createElement("div")}createElement(e,t){let n,r,i,s;if(t?(n=t.namespaceURI===Xd||"svg"===e,i=t.namespaceURI===Jd||"math"===e,r=!!wf[t.tagName]):(n="svg"===e,i="math"===e,r=!1),!i&&!n||r)return this.document.createElement(e);if(kf[e])throw new Error(`Cannot create a ${e} inside an SVG context`);return s=i?Jd:Xd,this.document.createElementNS(s,e)}insertBefore(e,t,n){e.insertBefore(t,n)}insertHTMLBefore(e,t,n){if(""===n){const n=this.createComment("");return e.insertBefore(n,t),new vp(e,n,n)}const r=t?t.previousSibling:e.lastChild;let i;if(null===t)e.insertAdjacentHTML("beforeend",n),i=e.lastChild;else if(t instanceof HTMLElement)t.insertAdjacentHTML("beforebegin",n),i=t.previousSibling;else{const{uselessElement:r}=this;e.insertBefore(r,t),r.insertAdjacentHTML("beforebegin",n),i=r.previousSibling,e.removeChild(r)}const s=r?r.nextSibling:e.firstChild;return new vp(e,s,i)}createTextNode(e){return this.document.createTextNode(e)}createComment(e){return this.document.createComment(e)}}function xf(e,t,n){if(!e)return t;if(!function(e,t){const n=e.createElementNS(t,"svg");try{n.insertAdjacentHTML("beforeend","<circle></circle>")}catch{}finally{return 1!==n.childNodes.length||n.firstChild.namespaceURI!==Xd}}(e,n))return t;const r=e.createElement("div");return class extends t{insertHTMLBefore(e,t,i){return""===i||e.namespaceURI!==n?super.insertHTMLBefore(e,t,i):function(e,t,n,r){let i;if("FOREIGNOBJECT"===e.tagName.toUpperCase()){const e="<svg><foreignObject>"+n+"</foreignObject></svg>";Rt(t),t.insertAdjacentHTML("afterbegin",e),i=t.firstChild.firstChild}else{const e="<svg>"+n+"</svg>";Rt(t),t.insertAdjacentHTML("afterbegin",e),i=t.firstChild}return function(e,t,n){const r=e.firstChild;let i=r,s=r;for(;s;){const e=s.nextSibling;t.insertBefore(s,n),i=s,s=e}return new vp(t,r,i)}(i,e,r)}(e,r,i,t)}}}function Sf(e,t){return e&&function(e){const t=e.createElement("div");return t.appendChild(e.createTextNode("first")),t.insertAdjacentHTML("beforeend","second"),2!==t.childNodes.length}(e)?class extends t{constructor(e){super(e),this.uselessComment=e.createComment("")}insertHTMLBefore(e,t,n){if(""===n)return super.insertHTMLBefore(e,t,n);let r=!1;const i=t?t.previousSibling:e.lastChild;i&&i instanceof Text&&(r=!0,e.insertBefore(this.uselessComment,t));const s=super.insertHTMLBefore(e,t,n);return r&&e.removeChild(this.uselessComment),s}}:t}const Ef="undefined"==typeof document?null:Zd(document);let Tf=class extends jf{createElementNS(e,t){return this.document.createElementNS(e,t)}setAttribute(e,t,n,r=null){r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}};Tf=Sf(Ef,Tf),Tf=xf(Ef,Tf,Xd);const Of=Tf;["b","big","blockquote","body","br","center","code","dd","div","dl","dt","em","embed","h1","h2","h3","h4","h5","h6","head","hr","i","img","li","listing","main","meta","nobr","ol","p","pre","ruby","s","small","span","strong","strike","sub","sup","table","tt","u","ul","var"].forEach(e
1=>kf[e]=1);const Rf="undefined"==typeof document?null:Zd(document);class Af extends jf{constructor(e){super(e),this.document=e,this.namespace=null}setAttribute(e,t,n){e.setAttribute(t,n)}removeAttribute(e,t){e.removeAttribute(t)}insertAfter(e,t,n){this.insertBefore(e,t,n.nextSibling)}}let Cf=Af;function Nf(e,t){let n,r;if(t in e)r=t,n="prop";else{let i=t.toLowerCase();i in e?(n="prop",r=i):(n="attr",r=t)}return"prop"!==n||"style"!==r.toLowerCase()&&!function(e,t){let n=If[e.toUpperCase()];return!(!n||!n[t.toLowerCase()])}(e.tagName,r)||(n="attr"),{normalized:r,type:n}}Cf=Sf(Rf,Cf),Cf=xf(Rf,Cf,Xd);const If={INPUT:{form:!0,autocorrect:!0,list:!0},SELECT:{form:!0},OPTION:{form:!0},TEXTAREA:{form:!0},LABEL:{form:!0},FIELDSET:{form:!0},LEGEND:{form:!0},OBJECT:{form:!0},OUTPUT:{form:!0},BUTTON:{form:!0}},Mf=Symbol("TRANSACTION");class Pf{didCreate(e){this.createdComponents.push(e)}didUpdate(e){this.updatedComponents.push(e)}scheduleInstallModifier(e){this.scheduledInstallModifiers.push(e)}scheduleUpdateModifier(e){this.scheduledUpdateModifiers.push(e)}commit(){let{createdComponents:e,updatedComponents:t}=this;for(const{manager:i,state:s}of e)i.didCreate(s);for(const{manager:i,state:s}of t)i.didUpdate(s);let{scheduledInstallModifiers:n,scheduledUpdateModifiers:r}=this;for(const{manager:i,state:s,definition:o}of n){let e=i.getTag(s);if(null!==e){let t=st(()=>i.install(s));Pe(e,t)}else i.install(s)}for(const{manager:i,state:s,definition:o}of r){let e=i.getTag(s);if(null!==e){let t=st(()=>i.update(s));Pe(e,t)}else i.update(s)}}constructor(){this.scheduledInstallModifiers=[],this.scheduledUpdateModifiers=[],this.createdComponents=[],this.updatedComponents=[]}}class Df{static{zf=Mf}constructor(e,t){this.delegate=t,this[zf]=null,this.isInteractive=t.isInteractive,this.debugRenderTree=this.delegate.enableDebugTooling?new xp:void 0,this.isArgumentCaptureError=this.delegate.enableDebugTooling?rf:void 0,e.appendOperations?(this.appendOperations=e.appendOperations,this.updateOperations=e.updateOperations):e.document&&(this.appendOperations=new Of(e.document),this.updateOperations=new Af(e.document))}getAppendOperations(){return this.appendOperations}getDOM(){return this.updateOperations}begin(){this[Mf],this.debugRenderTree?.begin(),this[Mf]=new Pf}get transaction(){return this[Mf]}didCreate(e){this.transaction.didCreate(e)}didUpdate(e){this.transaction.didUpdate(e)}scheduleInstallModifier(e){this.isInteractive&&this.transaction.scheduleInstallModifier(e)}scheduleUpdateModifier(e){this.isInteractive&&this.transaction.scheduleUpdateModifier(e)}commit(){let e=this.transaction;this[Mf]=null,e.commit(),this.debugRenderTree?.commit(),this.delegate.onTransactionCommit()}}function Lf(e,t){if(e[Mf])t();else{e.begin();try{t()}finally{e.commit()}}}var zf;function Ff(e){return Rn(e,{})}const Bf=Ff(({positional:e})=>Bt(()=>tf(e),null)),Uf=e=>(e=>null==e||"function"!=typeof e.toString)(e)?"":String(e),qf=Ff(({positional:e})=>Bt(()=>tf(e).map(Uf).join(""),null)),$f=Ff(({positional:e})=>{let t=e[0];return Bt(()=>(...n)=>{let[r,...i]=tf(e);if(3!==t[Ct])return r.call(null,...i,...n);{let e=i.length>0?i[0]:n[0];Vt(t,e)}},null)}),Vf=Ff(({positional:e})=>{let t=e[0]??Mt,n=e[1]??Mt;return Bt(()=>{let e=$t(t);if(Et(e))return se(e,String($t(n)))},e=>{let r=$t(t);if(Et(r))return oe(r,String($t(n)),e)})}),Hf=Ff(({named:e})=>{let t=Bt(()=>function(e){let t=St();for(const[n,r]of Object.entries(e))t[n]=$t(r);return t}(e),null),n=new Map;for(let r in e)n.set(r,e[r]);return t.children=n,t});class Wf{constructor(e,t){this.tag=Le(),this.listener=null,this.element=e,this.args=t,pe(this,()=>{let{element:e,listener:t}=this;if(t){let{eventName:n,callback:r,options:i}=t;Kf(e,n,r,i)}})}updateListener(){let{element:e,args:t,listener:n}=this;t.positional[0];let r=$t(t.positional[0]);t.positional[1];let i,s,o,a=$t(t.positional[1]);{let{once:e,passive:n,capture:r}=t.named;e&&(i=$t(e)),n&&(s=$t(n)),r&&(o=$t(r))}let l,u=!1;if(u=null===n||r!==n.eventName||a!==n.userProvidedCallback||i!==n.once||s!==n.passive||o!==n.capture,u&&(void 0===i&&void 0===s&&void 0===o||(l={once:i,passive:s,capture:o})),u){let t=a;this.listener={eventName:r,callback:t,userProvidedCallback:a,once:i,passive:s,capture:o,options:l}
1,n&&Kf(e,n.eventName,n.callback,n.options),function(e,t,n,r){Qf++,e.addEventListener(t,n,r)}(e,r,t,l)}}}let Qf=0,Gf=0;function Kf(e,t,n,r){Gf++,e.removeEventListener(t,n,r)}const Yf=Tn(new class{getDebugName(){return"on"}getDebugInstance(){return null}get counters(){return{adds:Qf,removes:Gf}}create(e,t,n,r){return new Wf(t,r)}getTag({tag:e}){return e}install(e){e.updateListener()}update(e){e.updateListener()}getDestroyable(e){return e}},{});class Jf{constructor(e,t,n,r){this.stack=e,this.externs=n,this.currentOpSize=0,this.context=t,this.registers=r}fetchRegister(e){return this.registers[e]}loadRegister(e,t){this.registers[e]=t}setPc(e){this.registers[0]=e}pushFrame(){this.stack.push(this.registers[1]),this.stack.push(this.registers[2]),this.registers[2]=this.registers[3]-1}popFrame(){this.registers[3]=this.registers[2]-1,this.registers[1]=this.stack.get(0),this.registers[2]=this.stack.get(1)}pushSmallFrame(){this.stack.push(this.registers[1])}popSmallFrame(){this.registers[1]=this.stack.pop()}goto(e){this.setPc(this.target(e))}target(e){return this.registers[0]+e-this.currentOpSize}call(e){this.registers[1]=this.registers[0],this.setPc(this.context.program.heap.getaddr(e))}returnTo(e){this.registers[1]=this.target(e)}return(){this.setPc(this.registers[1])}nextStatement(){let{registers:e,context:t}=this,n=e[0];if(-1===n)return null;let r=t.program.opcode(n),i=this.currentOpSize=r.size;return this.registers[0]+=i,r}evaluateOuter(e,t){this.evaluateInner(e,t)}evaluateInner(e,t){e.isMachine?this.evaluateMachine(e,t):this.evaluateSyscall(e,t)}evaluateMachine(e,t){switch(e.type){case 0:return void this.pushFrame();case 1:return void this.popFrame();case 3:return void this.call(e.op1);case 2:return void t.call(this.stack.pop());case 4:return void this.goto(e.op1);case 5:return void t.return();case 6:return void this.returnTo(e.op1)}}evaluateSyscall(e,t){rp.evaluate(t,e,e.type)}}const Xf=["javascript:","vbscript:"],Zf=["A","BODY","LINK","IMG","IFRAME","BASE","FORM"],em=["EMBED"],tm=["href","src","background","action"],nm=["src"];function rm(e,t){return-1!==e.indexOf(t)}function im(e,t){return(null===e||rm(Zf,e))&&rm(tm,t)}function sm(e,t){return null!==e&&rm(em,e)&&rm(nm,t)}function om(e,t){return im(e,t)||sm(e,t)}let am;function lm(e,t,n){if(null==n)return n;if(Op(n))return n.toHTML();const r=e.tagName.toUpperCase();let i=Sp(n);if(im(r,t)){let e=(s=i,am||(am=function(){const e=URL;if("object"==typeof e&&null!==e&&"function"==typeof e.parse){let t=e;return e=>{let n=null;return"string"==typeof e&&(n=t.parse(e).protocol),null===n?":":n}}if("function"==typeof e)return t=>{try{return new e(t).protocol}catch{return":"}};throw new Error('@glimmer/runtime needs a valid "globalThis.URL"')}()),am(s));if(rm(Xf,e))return`unsafe:${i}`}var s;return sm(r,t)?`unsafe:${i}`:i}function um(e,t,n){return om(e,t)?new fm(n):new hm(n)}class cm{constructor(e){this.attribute=e}}class hm extends cm{set(e,t,n){const r=ym(t);if(null!==r){const{name:t,namespace:n}=this.attribute;e.__setAttribute(t,r,n)}}update(e,t){const n=ym(e),{element:r,name:i}=this.attribute;null===n?r.removeAttribute(i):r.setAttribute(i,n)}}class dm extends cm{constructor(e,t){super(t),this.normalizedName=e}set(e,t,n){null!=t&&(this.value=t,e.__setProperty(this.normalizedName,t))}update(e,t){const{element:n}=this.attribute;this.value!==e&&(n[this.normalizedName]=this.value=e,null==e&&this.removeAttribute())}removeAttribute(){const{element:e,namespace:t}=this.attribute;t?e.removeAttributeNS(t,this.normalizedName):e.removeAttribute(this.normalizedName)}}class pm extends dm{set(e,t,n){const{element:r,name:i}=this.attribute,s=lm(r,i,t);super.set(e,s,n)}update(e,t){const{element:n,name:r}=this.attribute,i=lm(n,r,e);super.update(i,t)}}class fm extends hm{set(e,t,n){const{element:r,name:i}=this.attribute,s=lm(r,i,t);super.set(e,s,n)}update(e,t){const{element:n,name:r}=this.attribute,i=lm(n,r,e);super.update(i,t)}}class mm extends dm{set(e,t){e.__setProperty("value",Sp(t))}update(e){const t=this.attribute.element,n=t.value,r=Sp(e);n!==r&&(t.value=r)}}class gm extends dm{set(e,t){null!=t&&!1!==t&&e.__setProperty("selected",!0)}update(e){this.attribute.element.selected=!!e}}function ym(e){return!1===e||null==e||void 0===e.toString?null:!0===e?"":"function"==typeof e?null:String(e)}class vm{constructor(e){this.node=e}firstNode(){return this.node}}class bm{constructor(e){this.node=e}lastNode(){return this.node}}class _m{static forInitialRender(e,t){return new this(e,t.element,t.nextSibling).initialize()}static resume(e,t){let n=new this(e,t.parentElement(),t.reset(e)).initialize();return n.pushBlock(t),n}constructor(e,t,n){this.constructing=null,this.operations=null,this.cursors=new Ot,this.modifierStack=new Ot,this.blockStack=new Ot,this.pushElement(t,n),this.env=e,this.dom=e.getAppendOperations(),this.updateOperations=e.getDOM()}initialize(){return this.pushAppendingBlock(),this}debugBlocks(){return this.blockStack.toArray()}
1get element(){return this.cursors.current.element}get nextSibling(){return this.cursors.current.nextSibling}get hasBlocks(){return this.blockStack.size>0}block(){return this.blockStack.current}popElement(){this.cursors.pop(),this.cursors.current}pushAppendingBlock(){return this.pushBlock(new wm(this.element))}pushResettableBlock(){return this.pushBlock(new jm(this.element))}pushBlockList(e){return this.pushBlock(new xm(this.element,e))}pushBlock(e,t=!1){let n=this.blockStack.current;return null!==n&&(t||n.didAppendBounds(e)),this.__openBlock(),this.blockStack.push(e),e}popBlock(){return this.block().finalize(this),this.__closeBlock(),this.blockStack.pop()}__openBlock(){}__closeBlock(){}openElement(e){let t=this.__openElement(e);return this.constructing=t,t}__openElement(e){return this.dom.createElement(e,this.element)}flushElement(e){let t=this.element,n=this.constructing;this.__flushElement(t,n),this.constructing=null,this.operations=null,this.pushModifiers(e),this.pushElement(n,null),this.didOpenElement(n)}__flushElement(e,t){this.dom.insertBefore(e,t,this.nextSibling)}closeElement(){return this.willCloseElement(),this.popElement(),this.popModifiers()}pushRemoteElement(e,t,n){return this.__pushRemoteElement(e,t,n)}__pushRemoteElement(e,t,n){if(this.pushElement(e,n),void 0===n)for(;e.lastChild;)e.removeChild(e.lastChild);let r=new km(e);return this.pushBlock(r,!0)}popRemoteElement(){const e=this.popBlock();return this.popElement(),e}pushElement(e,t=null){this.cursors.push(new yp(e,t))}pushModifiers(e){this.modifierStack.push(e)}popModifiers(){return this.modifierStack.pop()}didAppendBounds(e){return this.block().didAppendBounds(e),e}didAppendNode(e){return this.block().didAppendNode(e),e}didOpenElement(e){return this.block().openElement(e),e}willCloseElement(){this.block().closeElement()}appendText(e){return this.didAppendNode(this.__appendText(e))}__appendText(e){let{dom:t,element:n,nextSibling:r}=this,i=t.createTextNode(e);return t.insertBefore(n,i,r),i}__appendNode(e){return this.dom.insertBefore(this.element,e,this.nextSibling),e}__appendFragment(e){let t=e.firstChild;if(t){let n=new vp(this.element,t,e.lastChild);return this.dom.insertBefore(this.element,e,this.nextSibling),n}{const e=this.__appendComment("");return new vp(this.element,e,e)}}__appendHTML(e){return this.dom.insertHTMLBefore(this.element,this.nextSibling,e)}appendDynamicHTML(e){let t=this.trustedContent(e);this.didAppendBounds(t)}appendDynamicText(e){let t=this.untrustedContent(e);return this.didAppendNode(t),t}appendDynamicFragment(e){let t=this.__appendFragment(e);this.didAppendBounds(t)}appendDynamicNode(e){let t=this.__appendNode(e),n=new vp(this.element,t,t);this.didAppendBounds(n)}trustedContent(e){return this.__appendHTML(e)}untrustedContent(e){return this.__appendText(e)}appendComment(e){return this.didAppendNode(this.__appendComment(e))}__appendComment(e){let{dom:t,element:n,nextSibling:r}=this,i=t.createComment(e);return t.insertBefore(n,i,r),i}__setAttribute(e,t,n){this.dom.setAttribute(this.constructing,e,t,n)}__setProperty(e,t){this.constructing[e]=t}setStaticAttribute(e,t,n){this.__setAttribute(e,t,n)}setDynamicAttribute(e,t,n,r){let i=function(e,t,n){const{tagName:r,namespaceURI:i}=e,s={element:e,name:t,namespace:n};if(i===Xd)return um(r,t,s);const{type:o,normalized:a}=Nf(e,t);return"attr"===o?um(r,a,s):function(e,t,n){return om(e,t)?new pm(t,n):function(e,t){return("INPUT"===e||"TEXTAREA"===e)&&"value"===t}(e,t)?new mm(t,n):function(e,t){return"OPTION"===e&&"selected"===t}(e,t)?new gm(t,n):new dm(t,n)}(r,a,s)}(this.constructing,e,r);return i.set(this,t,this.env),i}}class wm{constructor(e){this.parent=e,this.first=null,this.last=null,this.nesting=0}parentElement(){return this.parent}firstNode(){return this.first.firstNode()}lastNode(){return this.last.lastNode()}openElement(e){this.didAppendNode(e),this.nesting++}closeElement(){this.nesting--}didAppendNode(e){0===this.nesting&&(this.first||(this.first=new vm(e)),this.last=new bm(e))}didAppendBounds(e){0===this.nesting&&(this.first||(this.first=e),this.last=e)}finalize(e){null===this.first&&e.appendComment("")}}class km extends wm{constructor(e){super(e),pe(this,()=>{this.parentElement()===this.firstNode().parentNode&&_p(this)})}}class jm extends wm{constructor(e){super(e)}reset(){fe(this);let e=_p(this);return this.first=null,this.last=null,this.nesting=0,e}}class xm{constructor(e,t){this.parent=e,this.boundList=t,this.parent=e,this.boundList=t}parentElement(){return this.parent}firstNode(){return this.boundList[0].firstNode()}lastNode(){let e=this.boundList;return e[e.length-1].lastNode()}openElement(e){}closeElement(){}didAppendNode(e){}didAppendBounds(e){}finalize(e){this.boundList.length}}function Sm(e,t){return _m.forInitialRender(e,t)}class Em{constructor(e,{alwaysRevalidate:t=!1}){this.frameStack=new Ot,this.env=e,this.dom=e.getDOM(),this.alwaysRevalidate=t}execute(e,t){this._execute(e,t)}_execute(e,t){let{frameStack:n}=this;for(this.try(e,t);!n.isEmpty();
1){let e=this.frame.nextStatement();void 0!==e?e.evaluate(this):n.pop()}}get frame(){return this.frameStack.current}goto(e){this.frame.goto(e)}try(e,t){this.frameStack.push(new Cm(e,t))}throw(){this.frame.handleException(),this.frameStack.pop()}}class Tm{constructor(e,t,n,r){this.state=e,this.context=t,this.children=r,this.bounds=n}parentElement(){return this.bounds.parentElement()}firstNode(){return this.bounds.firstNode()}lastNode(){return this.bounds.lastNode()}evaluate(e){e.try(this.children,null)}}class Om extends Tm{evaluate(e){e.try(this.children,this)}handleException(){let{state:e,bounds:t,context:{env:n}}=this;!function(e){let{children:t}=he(e);ce(t,fe)}(this);let r=_m.resume(n,t),i=e.evaluate(r),s=this.children=[],o=i.execute(e=>{e.updateWith(this),e.pushUpdating(s)});de(this,o.drop)}constructor(...e){super(...e),this.type="try"}}class Rm extends Om{constructor(e,t,n,r,i,s){super(e,t,n,[]),this.key=r,this.memo=i,this.value=s,this.retained=!1,this.index=-1}shouldRemove(){return!this.retained}reset(){this.retained=!1}
1}class Am extends Tm{constructor(e,t,n,r,i){super(e,t,n,r),this.iterableRef=i,this.type="list-block",this.opcodeMap=new Map,this.marker=null,this.lastIterator=$t(i)}initializeChild(e){e.index=this.children.length-1,this.opcodeMap.set(e.key,e)}evaluate(e){let t=$t(this.iterableRef);if(this.lastIterator!==t){let{bounds:n}=this,{dom:r}=e,i=this.marker=r.createComment("");r.insertAfter(n.parentElement(),i,n.lastNode()),this.sync(t),this.parentElement().removeChild(i),this.marker=null,this.lastIterator=t}super.evaluate(e)}sync(e){let{opcodeMap:t,children:n}=this,r=0,i=0;for(this.children=this.bounds.boundList=[];;){let s=e.next();if(null===s)break;let o=n[r],{key:a}=s;for(;void 0!==o&&o.retained;)o=n[++r];if(void 0!==o&&o.key===a)this.retainItem(o,s),r++;else if(t.has(a)){let e=t.get(a);if(e.index<i)this.moveItem(e,s,o);else{i=e.index;let t=!1;for(let e=r+1;e<i;e++)if(!n[e].retained){t=!0;break}t?(this.moveItem(e,s,o),r++):(this.retainItem(e,s),r=i+1)}}else this.insertItem(s,o)}for(const s of n)s.retained?s.reset():this.deleteItem(s)}retainItem(e,t){let{children:n}=this;Vt(e.memo,t.memo),Vt(e.value,t.value),e.retained=!0,e.index=n.length,n.push(e)}insertItem(e,t){let{opcodeMap:n,bounds:r,state:i,children:s,context:{env:o}}=this,{key:a}=e,l=void 0===t?this.marker:t.firstNode(),u=_m.forInitialRender(o,{element:r.parentElement(),nextSibling:l});i.evaluate(u).execute(t=>{let r=t.enterItem(e);r.index=s.length,s.push(r),n.set(a,r),de(this,r)})}moveItem(e,t,n){let r,i,{children:s}=this;Vt(e.memo,t.memo),Vt(e.value,t.value),e.retained=!0,void 0===n?bp(e,this.marker):(r=e.lastNode().nextSibling,i=n.firstNode(),r!==i&&bp(e,i)),e.index=s.length,s.push(e)}deleteItem(e){fe(e),_p(e),this.opcodeMap.delete(e.key)}}class Cm{constructor(e,t){this.ops=e,this.exceptionHandler=t,this.current=0}goto(e){this.current=e}nextStatement(){return this.ops[this.current++]}handleException(){this.exceptionHandler&&this.exceptionHandler.handleException()}}class Nm{constructor(e,t,n,r){this.env=e,this.updating=t,this.bounds=n,this.drop=r,de(this,r),pe(this,()=>_p(this.bounds))}rerender({alwaysRevalidate:e=!1}={alwaysRevalidate:!1}){let{env:t,updating:n}=this;new Em(t,{alwaysRevalidate:e}).execute(n,this)}parentElement(){return this.bounds.parentElement()}firstNode(){return this.bounds.firstNode()}lastNode(){return this.bounds.lastNode()}handleException(){}}class Im{static restore(e,t){const n=new this(e.slice(),[0,-1,e.length-1,0]);return n.registers[0]=t,n.registers[3]=e.length-1,n.registers[2]=-1,n}constructor(e=[],t){this.stack=e,this.registers=t}push(e){this.stack[++this.registers[3]]=e}dup(e=this.registers[3]){this.stack[++this.registers[3]]=this.stack[e]}copy(e,t){this.stack[t]=this.stack[e]}pop(e=1){let t=this.stack[this.registers[3]];return this.registers[3]-=e,t}peek(e=0){return this.stack[this.registers[3]-e]}get(e,t=this.registers[2]){return this.stack[t+e]}set(e,t,n=this.registers[2]){this.stack[n+t]=e}slice(e,t){return this.stack.slice(e,t)}capture(e){let t=this.registers[3]+1,n=t-e;return this.stack.slice(n,t)}reset(){this.stack.length=0}}class Mm{constructor(e,t){this.drop={},this.scope=new Ot,this.dynamicScope=new Ot,this.updating=new Ot,this.cache=new Ot,this.list=new Ot,this.destroyable=new Ot,this.scope.push(e),this.dynamicScope.push(t),this.destroyable.push(this.drop)}}class Pm{#m;get stack(){return this.lowlevel.stack}get pc(){return this.lowlevel.fetchRegister(0)}#g;fetch(e){let t=this.fetchValue(e);this.stack.push(t)}load(e){let t=this.stack.pop();this.loadValue(e,t)}loadValue(e,t){this.#g[e]=t}fetchValue(e){return function(e){return e<=3}(e)?this.lowlevel.fetchRegister(e):this.#g[e]}call(e){null!==e&&this.lowlevel.call(e)}return(){this.lowlevel.return()}#y;constructor({scope:e,dynamicScope:t,stack:n,pc:r},i,s){this.#g=[null,null,null,null,null,null,null,null,null];let o=Im.restore(n,r);this.#y=s,this.context=i,this.#m=new Mm(e,t),this.args=new Wp,this.lowlevel=new Jf(o,i,void 0,o.registers),this.pushUpdating()}static initial(e,t){let n=gp.root(t.owner,t.scope??{self:Mt,size:0});const r=function(e,t,n){return{pc:e,scope:t,dynamicScope:n,stack:[]}}(e.program.heap.getaddr(t.handle),n,t.dynamicScope);return new Pm(r,e,t.tree)}compile(e){return ep(e.compile(this.context))}get constants(){return this.context.program.constants}get program(){return this.context.program}get env(){return this.context.env}captureClosure(e,t=this.lowlevel.fetchRegister(0)){return{pc:t,scope:this.scope(),dynamicScope:this.dynamicScope(),stack:this.stack.capture(e)}}
1capture(e,t=this.lowlevel.fetchRegister(0)){return new Dm(this.captureClosure(e,t),this.context)}beginCacheGroup(e){let t=this.updating(),n=new Np;t.push(n),t.push(new Ip(e)),this.#m.cache.push(n),Qe()}commitCacheGroup(){let e=this.updating(),t=this.#m.cache.pop(),n=Ge();e.push(new Mp(t)),t.finalize(n,e.length)}enter(e){let t=this.capture(e),n=this.tree().pushResettableBlock(),r=new Om(t,this.context,n,[]);this.didEnter(r)}enterItem({key:e,value:t,memo:n}){let{stack:r}=this,i=en(t),s=en(n);r.push(i),r.push(s);let o=this.capture(2),a=this.tree().pushResettableBlock(),l=new Rm(o,this.context,a,e,s,i);return this.didEnter(l),l}registerItem(e){this.listBlock().initializeChild(e)}enterList(e,t){let n=[],r=this.lowlevel.target(t),i=this.capture(0,r),s=this.tree().pushBlockList(n),o=new Am(i,this.context,s,n,e);this.#m.list.push(o),this.didEnter(o)}didEnter(e){this.associateDestroyable(e),this.#m.destroyable.push(e),this.updateWith(e),this.pushUpdating(e.children)}exit(){this.#m.destroyable.pop(),this.#y.popBlock(),this.popUpdating()}exitList(){this.exit(),this.#m.list.pop()}pushRootScope(e,t){let n=gp.sized(t,e);return this.#m.scope.push(n),n}pushChildScope(){this.#m.scope.push(this.scope().child())}pushScope(e){this.#m.scope.push(e)}popScope(){this.#m.scope.pop()}pushDynamicScope(){let e=this.dynamicScope().child();return this.#m.dynamicScope.push(e),e}bindDynamicScope(e){let t=this.dynamicScope();for(const n of jt(e))t.set(n,this.stack.pop())}pushUpdating(e=[]){this.#m.updating.push(e)}popUpdating(){return this.#m.updating.pop()}updateWith(e){this.updating().push(e)}listBlock(){return this.#m.list.current}associateDestroyable(e){de(this.#m.destroyable.current,e)}updating(){return this.#m.updating.current}tree(){return this.#y}scope(){return this.#m.scope.current}dynamicScope(){return this.#m.dynamicScope.current}popDynamicScope(){this.#m.dynamicScope.pop()}getOwner(){return this.scope().owner}getSelf(){return this.scope().getSelf()}referenceForSymbol(e){return this.scope().getSymbol(e)}execute(e){return this._execute(e)}_execute(e){let t;e&&e(this);do{t=this.next()}while(!t.done);return t.value}next(){let e,{env:t}=this,n=this.lowlevel.nextStatement();return null!==n?(this.lowlevel.evaluateOuter(n,this),e={done:!1,value:null}):(this.stack.reset(),e={done:!0,value:new Nm(t,this.popUpdating(),this.#y.popBlock(),this.#m.drop)}),e}}class Dm{constructor(e,t){this.state=e,this.context=t}evaluate(e){return new Pm(this.state,this.context,e)}}class Lm{constructor(e){this.vm=e}next(){return this.vm.next()}sync(){return this.vm.execute()}}class zm extends yp{constructor(e,t,n){super(e,t),this.startingBlockDepth=n,this.candidate=null,this.injectedOmittedNode=!1,this.openBlockDepth=n-1}}class Fm extends _m{constructor(e,t,n){if(super(e,t,n),this.unmatchedAttributes=null,this.blockDepth=0,n)throw new Error("Rehydration with nextSibling not supported");let r=this.currentCursor.element.firstChild;for(;null!==r&&!Bm(r);)r=r.nextSibling;this.candidate=r;const i=qm(r);if(0!==i){const e=i-1,t=this.dom.createComment(`%+b:${e}%`);r.parentNode.insertBefore(t,this.candidate);let n=r.nextSibling;for(;null!==n&&(!Um(n)||qm(n)!==i);)n=n.nextSibling;const s=this.dom.createComment(`%-b:${e}%`);r.parentNode.insertBefore(s,n.nextSibling),this.candidate=t,this.startingBlockOffset=e}else this.startingBlockOffset=0}get currentCursor(){return this.cursors.current}get candidate(){return this.currentCursor?this.currentCursor.candidate:null}set candidate(e){this.currentCursor.candidate=e}disableRehydration(e){const t=this.currentCursor;t.candidate=null,t.nextSibling=e}enableRehydration(e){const t=this.currentCursor;t.candidate=e,t.nextSibling=null}pushElement(e,t=null){const n=new zm(e,t,this.blockDepth||0);null!==this.candidate&&(n.candidate=e.firstChild,this.candidate=e.nextSibling),this.cursors.push(n)}clearMismatch(e){let t=e;const n=this.currentCursor;if(null!==n){const e=n.openBlockDepth;if(e>=n.startingBlockDepth)for(;t&&!(Um(t)&&e>=$m(t,this.startingBlockOffset));)t=this.remove(t);else for(;null!==t;)t=this.remove(t);this.disableRehydration(t)}}__openBlock(){const{currentCursor:e}=this;if(null===e)return;const t=this.blockDepth;this.blockDepth++;const{candidate:n}=e;if(null===n)return;const{tagName:r}=e.element;Bm(n)&&$m(n,this.startingBlockOffset)===t?(this.candidate=this.remove(n),e.openBlockDepth=t):"TITLE"!==r&&"SCRIPT"!==r&&"STYLE"!==r&&this.clearMismatch(n)}__closeBlock(){const{currentCursor:e}=this;if(null===e)return;const t=e.openBlockDepth;this.blockDepth--;const{candidate:n}=e;let r=!1;if(null!==n)if(r=!0,Um(n)&&$m(n,this.startingBlockOffset)===t){const t=this.remove(n);this.candidate=t,e.openBlockDepth--}else this.clearMismatch(n),r=!1;if(!r){const t=e.nextSibling;if(null!==t&&Um(t)&&$m(t,this.startingBlockOffset)===this.blockDepth){const n=this.remove(t);this.enableRehydration(n),e.openBlockDepth--}}}__appendNode(e){const{candidate:t}=this;return t||super.__appendNode(e)}__appendHTML(e){const t=this.markerBounds();if(t){const e=t.firstNode(),n=t.lastNode(),r=new vp(this.element,e.nextSibling,n.previousSibling),i=this.remove(e);return this.remove(n),null!==i&&Wm(i)&&(this.candidate=this.remove(i),null!==this.candidate&&this.clearMismatch(this.candidate)),r}return super.__appendHTML(e)}remove(e){const t=e.parentNode,n=e.nextSibling;return t.removeChild(e),n}markerBounds(){const e=this.candidate;if(e&&Hm(e)){const t=e;let n=t.nextSibling;for(;!Hm(n);)n=n.nextSibling;return new vp(this.element,t,n)}return null}__appendText(e){const{candidate:t}=this;return t?3===t.nodeType?(t.nodeValue!==e&&(t.nodeValue=e),this.candidate=t.nextSibling,t):8===(n=t).nodeType&&"%|%"===n.nodeValue||Wm(t)&&""===e?(this.candidate=this.remove(t),this.__appendText(e)):(this.clearMismatch(t),super.__appendText(e)):super.__appendText(e);var n}__appendComment(e){const t=this.candidate;return t&&8===t.nodeType?(t.nodeValue!==e&&(t.nodeValue=e),this.candidate=t.nextSibling,t):(t&&this.clearMismatch(t),super.__appendComment(e))}__openElement(e){const t=this.candidate;if(t&&Vm(t)&&function(e,t){return e.namespaceURI===Xd?e.tagName===t:e.tagName===t.toUpperCase()}(t,e))return this.unmatchedAttributes=[].slice.call(t.attributes),t;if(t){if(Vm(t)&&"TBODY"===t.tagName)return this.pushElement(t,null),this.currentCursor.injectedOmittedNode=!0,this.__openElement(e);this.clearMismatch(t)}return super.__openElement(e)}__setAttribute(e,t,n){const r=this.unmatchedAttributes;if(r){const n=Qm(r,e);if(n)return n.value!==t&&(n.value=t),void r.splice(r.indexOf(n),1)}return super.__setAttribute(e,t,n)}__setProperty(e,t){const n=this.unmatchedAttributes;if(n){const r=Qm(n,e);if(r)return r.value!==t&&(r.value=t),void n.splice(n.indexOf(r),1)}return super.__setProperty(e,t)}__flushElement(e,t){const{unmatchedAttributes:n}=this;if(n){for(const e of n)this.constructing.removeAttribute(e.name);this.unmatchedAttributes=null}else super.__flushElement(e,t)}willCloseElement(){const{candidate:e,currentCursor:t}=this;
1null!==e&&this.clearMismatch(e),t&&t.injectedOmittedNode&&this.popElement(),super.willCloseElement()}getMarker(e,t){const n=e.querySelector(`script[glmr="${t}"]`);return n?Zd(n):null}__pushRemoteElement(e,t,n){const r=this.getMarker(e,t);if(!r||r.parentNode,void 0===n){for(;null!==e.firstChild&&e.firstChild!==r;)this.remove(e.firstChild);n=null}const i=new zm(e,null,this.blockDepth);this.cursors.push(i),null===r?this.disableRehydration(n):this.candidate=this.remove(r);const s=new km(e);return this.pushBlock(s,!0)}didAppendBounds(e){if(super.didAppendBounds(e),this.candidate){const t=e.lastNode();this.candidate=t.nextSibling}return e}}function Bm(e){return 8===e.nodeType&&0===e.nodeValue.lastIndexOf("%+b:",0)}function Um(e){return 8===e.nodeType&&0===e.nodeValue.lastIndexOf("%-b:",0)}function qm(e){return parseInt(e.nodeValue.slice(4),10)}function $m(e,t){return qm(e)-t}function Vm(e){return 1===e.nodeType}function Hm(e){return 8===e.nodeType&&"%glmr%"===e.nodeValue}function Wm(e){return 8===e.nodeType&&"% %"===e.nodeValue}function Qm(e,t){for(const n of e)if(n.name===t)return n}function Gm(e,t){return Fm.forInitialRender(e,t)}const Km=Yf,Ym=Symbol("MUTABLE_CELL"),Jm=Bd({id:"yTlmws8O",block:'[[[46,[30,0],null,null,null]],[],["component"]]',moduleName:"packages/@ember/-internals/glimmer/lib/templates/root.hbs",isStrictMode:!0}),Xm=Bd({id:"Cc/BCoQJ",block:'[[[11,"input"],[16,1,[30,0,["id"]]],[16,0,[30,0,["class"]]],[17,1],[16,4,[30,0,["type"]]],[16,"checked",[30,0,["checked"]]],[16,2,[30,0,["value"]]],[4,[32,0],["change",[30,0,["change"]]],null],[4,[32,0],["input",[30,0,["input"]]],null],[4,[32,0],["keyup",[30,0,["keyUp"]]],null],[4,[32,0],["paste",[30,0,["valueDidChange"]]],null],[4,[32,0],["cut",[30,0,["valueDidChange"]]],null],[12],[13]],["&attrs"],[]]',moduleName:"packages/@ember/-internals/glimmer/lib/templates/input.hbs",scope:()=>[Km],isStrictMode:!0});function Zm(){}class eg{static toString(){return"internal component"}constructor(e,t,n){this.owner=e,this.args=t,this.caller=n,r(this,e)}get id(){return D(this)}get class(){return"ember-view"}validateArguments(){for(let e of Object.keys(this.args.named))this.isSupportedArgument(e)||this.onUnsupportedArgument(e)}named(e){let t=this.args.named[e];return t?$t(t):void 0}positional(e){let t=this.args.positional[e];return t?$t(t):void 0}listenerFor(e){return this.named(e)||Zm}isSupportedArgument(e){return!1}onUnsupportedArgument(e){}toString(){return`<${this.constructor}:${D(this)}>`}}const tg=new WeakMap;function ng(e,t){let n={create(){throw void 0},toString:()=>e.toString()};return tg.set(n,e),Nn(ig,n),Vn(t,n),n}const rg={dynamicLayout:!1,dynamicTag:!1,prepareArgs:!1,createArgs:!0,attributeHook:!1,elementHook:!1,createCaller:!0,dynamicScope:!1,updateHook:!1,createInstance:!0,wrapped:!1,willDestroy:!1,hasSubOwner:!1},ig=new class{getCapabilities(){return rg}create(e,t,n,r,i,s){var o;let a=new(o=t,tg.get(o))(e,n.capture(),$t(s));return ot(a.validateArguments.bind(a)),a}didCreate(){}didUpdate(){}didRenderLayout(){}didUpdateLayout(){}getDebugName(e){return e.toString()}getSelf(e){return zt(e)}getDestroyable(e){return e}},sg=Object.freeze({});function og(e){return function(e){return e.target}(e).value}function ag(e){return void 0===e?new lg(void 0):Ut(e)?new lg($t(e)):qt(e)?new ug(e):new cg(e)}class lg{static{pl(this.prototype,"value",[li])}#v=void gl(this,"value");constructor(e){this.value=e}get(){return this.value}set(e){this.value=e}}class ug{constructor(e){this.reference=e}get(){return $t(this.reference)}set(e){Vt(this.reference,e)}}class cg{local;upstream;lastUpstreamValue=sg;constructor(e){this.upstream=new ug(e)}get(){let e=this.upstream.get();return e!==this.lastUpstreamValue&&(this.lastUpstreamValue=e,this.local=new lg(e)),this.local.get()}set(e){this.local.set(e)}}class hg extends eg{validateArguments(){super.validateArguments()}_value=ag(this.args.named.value);get value(){return this._value.get()}set value(e){this._value.set(e)}valueDidChange(e){this.value=og(e)}static{ml(this.prototype,"valueDidChange",[Ba])}change(e){this.valueDidChange(e)}input(e){this.valueDidChange(e)}keyUp(e){switch(e.key){case"Enter":this.listenerFor("enter")(e),this.listenerFor("insert-newline")(e);break;case"Escape":this.listenerFor("escape-press")(e)}}static{ml(this.prototype,"keyUp",[Ba])}listenerFor(e){let t=super.listenerFor(e);return this.isVirtualEventListener(e,t)?(n=t,e=>n(og(e),e)):t;var n}isVirtualEventListener(e,t){return-1!==["enter","insert-newline","escape-press"].indexOf(e)}}let dg;if(o){const Tw=Object.create(null),Ow=document.createElement("input");Tw[""]=!1,Tw.text=!0,Tw.checkbox=!0,dg=e=>{let t=Tw[e];if(void 0===t){try{Ow.type=e,t=Ow.type===e}catch(n){t=!1}finally{Ow.type="text"}Tw[e]=t}return t}}else dg=e=>""!==e;class pg extends hg{static toString(){return"Input"}get class(){return this.isCheckbox?"ember-checkbox ember-view":"ember-text-field ember-view"}get type(){let e=this.named("type");return null==e?"text":dg(e)?e:"text"}get isCheckbox(){return"checkbox"===this.named("type")}_checked=ag(this.args.named.checked);get checked(){return this.isCheckbox?this._checked.get():void 0}set checked(e){this._checked.set(e)}change(e){this.isCheckbox?this.checkedDidChange(e):super.change(e)}static{ml(this.prototype,"change",[Ba])}input(e){this.isCheckbox||super.input(e)}static{ml(this.prototype,"input",[Ba])}checkedDidChange(e){let t=e.target;this.checked=t.checked}static{ml(this.prototype,"checkedDidChange",[Ba])}isSupportedArgument(e){return-1!==["type","value","checked","enter","insert-newline","escape-press"].indexOf(e)||super.isSupportedArgument(e)}}const fg=ng(pg,Xm),mg=Bd({id:"7Z3LFeO/",block:'[[[11,3],[16,1,[30,0,["id"]]],[16,0,[30,0,["class"]]],[16,"role",[30,0,["role"]]],[16,"title",[30,0,["title"]]],[16,"rel",[30,0,["rel"]]],[16,"tabindex",[30,0,["tabindex"]]],[16,"target",[30,0,["target"]]],[17,1],[16,6,[30,0,["href"]]],[4,[32,0],["click",[30,0,["click"]]],null],[12],[18,2,null],[13]],["&attrs","&default"],["yield"]]',moduleName:"packages/@ember/-internals/glimmer/lib/templates/link-to.hbs",scope:()=>[Km],isStrictMode:!0}),gg=[],yg={};function vg(e){return null==e}function bg(e){return"object"==typeof e&&null!==e&&!0===e.isQueryParams}class _g extends eg{static toString(){return"LinkTo"}
1static{pl(this.prototype,"routing",[Oh("-routing")])}#b=void gl(this,"routing");validateArguments(){super.validateArguments()}get class(){let e="ember-view";return this.isActive?(e+=this.classFor("active"),!1===this.willBeActive&&(e+=" ember-transitioning-out")):this.willBeActive&&(e+=" ember-transitioning-in"),this.isLoading&&(e+=this.classFor("loading")),this.isDisabled&&(e+=this.classFor("disabled")),e}get href(){if(this.isLoading)return"#";let{routing:e,route:t,models:n,query:r}=this;return Xe(vt(e,"currentState")),e.generateURL(t,n,r)}click(e){if(!function(e){if(!(e instanceof MouseEvent))return!1;let t=e.shiftKey||e.metaKey||e.altKey||e.ctrlKey,n=e.which>1;return!t&&!n}(e))return;let t=e.currentTarget;if(""!==t.target&&"_self"!==t.target)return;if(this.preventDefault(e),this.isDisabled)return;if(this.isLoading)return;let{routing:n,route:r,models:i,query:s,replace:o}=this,a={transition:void 0};tl(0,0,()=>{a.transition=n.transitionTo(r,i,s,o)})}static{ml(this.prototype,"click",[Ba])}get route(){if("route"in this.args.named){let e=this.named("route");return e&&this.namespaceRoute(e)}return this.currentRoute}currentRouteCache=rt(()=>(Xe(vt(this.routing,"currentState")),ot(()=>this.routing.currentRouteName)));get currentRoute(){return it(this.currentRouteCache)}get models(){return"models"in this.args.named?this.named("models"):"model"in this.args.named?[this.named("model")]:gg}get query(){return"query"in this.args.named?{...this.named("query")}:yg}get replace(){return!0===this.named("replace")}get isActive(){return this.isActiveForState(this.routing.currentState)}get willBeActive(){let e=this.routing.currentState,t=this.routing.targetState;return e===t?null:this.isActiveForState(t)}get isLoading(){return vg(this.route)||this.models.some(e=>vg(e))}get isDisabled(){return Boolean(this.named("disabled"))}get isEngine(){return void 0!==eu(this.owner)}get engineMountPoint(){return this.owner.mountPoint}classFor(e){let t=this.named(`${e}Class`);return!0===t||vg(t)?` ${e}`:t?` ${t}`:""}namespaceRoute(e){let{engineMountPoint:t}=this;return void 0===t?e:"application"===e?t:`${t}.${e}`}isActiveForState(e){if(!function(e){return!vg(e)}(e))return!1;if(this.isLoading)return!1;let t=this.named("current-when");if("boolean"==typeof t)return t;if("string"==typeof t){let{models:n,routing:r}=this;return t.split(" ").some(t=>r.isActiveForRoute(n,void 0,this.namespaceRoute(t),e))}{let{route:t,models:n,query:r,routing:i}=this;return i.isActiveForRoute(n,r,t,e)}}preventDefault(e){e.preventDefault()}isSupportedArgument(e){return-1!==["route","model","models","query","replace","disabled","current-when","activeClass","loadingClass","disabledClass"].indexOf(e)||super.isSupportedArgument(e)}}let{prototype:wg}=_g,kg=(e,t)=>e?Object.getOwnPropertyDescriptor(e,t)||kg(Object.getPrototypeOf(e),t):null;{let Rw=wg.onUnsupportedArgument;Object.defineProperty(wg,"onUnsupportedArgument",{configurable:!0,enumerable:!1,value:function(e){"href"===e||Rw.call(this,e)}})}{let Aw=kg(wg,"models").get;Object.defineProperty(wg,"models",{configurable:!0,enumerable:!1,get:function(){let e=Aw.call(this);return e.length>0&&!("query"in this.args.named)&&bg(e[e.length-1])&&(e=e.slice(0,-1)),e}});let Cw=kg(wg,"query").get;Object.defineProperty(wg,"query",{configurable:!0,enumerable:!1,get:function(){if("query"in this.args.named){let e=Cw.call(this);return bg(e)?e.values??yg:e}{let e=Aw.call(this);if(e.length>0){let t=e[e.length-1];if(bg(t)&&null!==t.values)return t.values}return yg}}})}{let Nw=wg.onUnsupportedArgument;Object.defineProperty(wg,"onUnsupportedArgument",{configurable:!0,enumerable:!1,value:function(e){"params"!==e&&Nw.call(this,e)}})}const jg=ng(_g,mg),xg=Bd({id:"KVdeMchh",block:'[[[11,"textarea"],[16,1,[30,0,["id"]]],[16,0,[30,0,["class"]]],[17,1],[16,2,[30,0,["value"]]],[4,[32,0],["change",[30,0,["change"]]],null],[4,[32,0],["input",[30,0,["input"]]],null],[4,[32,0],["keyup",[30,0,["keyUp"]]],null],[4,[32,0],["paste",[30,0,["valueDidChange"]]],null],[4,[32,0],["cut",[30,0,["valueDidChange"]]],null],[12],[13]],["&attrs"],[]]',moduleName:"packages/@ember/-internals/glimmer/lib/templates/textarea.hbs",scope:()=>[Km],isStrictMode:!0});class Sg extends hg{static toString(){return"Textarea"}get class(){return"ember-text-area ember-view"}change(e){super.change(e)}static{ml(this.prototype,"change",[Ba])}input(e){super.input(e)}static{ml(this.prototype,"input",[Ba])}isSupportedArgument(e){return-1!==["type","value","enter","insert-newline","escape-press"].indexOf(e)||super.isSupportedArgument(e)}}const Eg=ng(Sg,xg);function Tg(e){if("error"===e.result)throw new Error(`Compile Error: ${e.problem} @ ${e.span.start}..${e.span.end}`);return e}function Og(e,t){return"attrs"===t[0]&&(t.shift(),1===t.length)?Ht(e,t[0]):Wt(e,t)}function Rg(e){let t=e.indexOf(":");return-1===t?[e,e,!0]:[e.substring(0,t),e.substring(t+1),!1]}function Ag(e,t,n,r){let[i,s,o]=n;if("id"===s){let t=ni(e,i);null==t&&(t=e.elementId);let n=It(t);return void r.setAttribute("id",n,!0,null)}let a=i.indexOf(".")>-1?Og(t,i.split(".")):Ht(t,i);r.setAttribute(s,a,!1,null)}function Cg(e,t){let n;return Bt(()=>{let r=$t(e);return!0===r?n||(n=jh(t)):r||0===r?String(r):null})}function Ng(){}class Ig{classRef=null;rootRef;argsRevision;constructor(e,t,n,r,i,s){this.component=e,this.args=t,this.argsTag=n,this.finalizer=r,this.hasWrappedElement=i,this.isInteractive=s,this.classRef=null,this.argsRevision=null===t?0:Ae(n),this.rootRef=zt(e),pe(this,()=>this.willDestroy(),!0),pe(this,()=>this.component.destroy())}willDestroy(){let{component:e,isInteractive:t}=this;if(t){Ke(),e.trigger("willDestroyElement"),e.trigger("willClearRender"),Ye(
1);let t=Ha(e);t&&(function(e){qa.delete(e)}(t),n=e,$a.delete(n))}var n;e.renderer.unregister(e)}finalize(){let{finalizer:e}=this;e(),this.finalizer=Ng}}function Mg(e){let t=Object.create(null),n=Object.create(null);for(let r in e){let i=e[r],s=$t(i);qt(i)?t[r]=new Dg(i,s):t[r]=s,n[r]=s}return n.attrs=t,n}const Pg=Symbol("REF");class Dg{value;[Ym];[Pg];constructor(e,t){this[Ym]=!0,this[Pg]=e,this.value=t}update(e){Vt(this[Pg],e)}}const Lg=J("ARGS"),zg=J("HAS_BLOCK"),Fg=Symbol("DIRTY_TAG"),Bg=Symbol("IS_DISPATCHING_ATTRS"),Ug=Symbol("BOUNDS"),qg=It("ember-view");class $g{templateFor(e){let t,{layout:r,layoutName:i}=e,s=n(e);if(void 0===r){if(void 0===i)return null;t=s.lookup(`template:${i}`)}else{if("function"!=typeof r)return null;t=r}return Tg(t(s)).asWrappedLayout()}getDynamicLayout(e){return this.templateFor(e.component)}getTagName(e){let{component:t,hasWrappedElement:n}=e;return n?t&&t.tagName||"div":null}getCapabilities(){return Wg}prepareArgs(e,t){if(t.named.has("__ARGS__")){let{__ARGS__:e,...n}=t.named.capture(),r=$t(e);return{positional:r.positional,named:{...n,...r.named}}}const{positionalParams:n}=e.class??e;if(null==n||0===t.positional.length)return null;let r;if("string"==typeof n){let e=t.positional.capture();r={[n]:Bt(()=>tf(e))},Object.assign(r,t.named.capture())}else{if(!(Array.isArray(n)&&n.length>0))return null;{const e=Math.min(n.length,t.positional.length);r={},Object.assign(r,t.named.capture());for(let i=0;i<e;i++)r[n[i]]=t.positional.at(i)}}return{positional:_t,named:r}}create(e,t,n,{isInteractive:i},s,o,a){let l=s.view,u=n.named.capture();Qe();let c=Mg(u);c[Lg]=u;let h=Ge();!function(e,t){e.named.has("id")&&(t.elementId=t.id)}(n,c),c.parentView=l,c[zg]=a,c._target=$t(o),r(c,e),Ke();let d=t.create(c),p=rl("render.component",Vg,d);s.view=d,null!=l&&Qa(l,d),d.trigger("didReceiveAttrs");let f=""!==d.tagName;f||(i&&d.trigger("willRender"),d._transitionTo("hasElement"),i&&d.trigger("willInsertElement"));let m=new Ig(d,u,h,p,f,i);return n.named.has("class")&&(m.classRef=n.named.get("class")),i&&f&&d.trigger("willRender"),Ye(),Xe(m.argsTag),Xe(d[Fg]),m}getDebugName(e){return e.fullName||e.normalizedName||e.class?.name||e.name}getSelf({rootRef:e}){return e}didCreateElement({component:e,classRef:t,isInteractive:n,rootRef:r},i,s){!function(e,t){$a.set(e,t)}(e,i),function(e,t){qa.set(e,t)}(i,e);let{attributeBindings:o,classNames:a,classNameBindings:l}=e;if(o&&o.length)!function(e,t,n,r){let i=[],s=e.length-1;for(;-1!==s;){let o=Rg(e[s]),a=o[1];-1===i.indexOf(a)&&(i.push(a),Ag(t,n,o,r)),s--}if(-1===i.indexOf("id")){let e=t.elementId?t.elementId:D(t);r.setAttribute("id",It(e),!1,null)}}(o,e,r,s);else{let t=e.elementId?e.elementId:D(e);s.setAttribute("id",It(t),!1,null)}if(t){const e=Cg(t);s.setAttribute("class",e,!1,null)}a&&a.length&&a.forEach(e=>{s.setAttribute("class",It(e),!1,null)}),l&&l.length&&l.forEach(e=>{!function(e,t,n){let r=t.split(":"),[i,s,o]=r;if(""===i)n.setAttribute("class",It(s),!0,null);else{let t,r=i.indexOf(".")>-1,a=r?i.split("."):[],l=r?Og(e,a):Ht(e,i);t=void 0===s?Cg(l,r?a[a.length-1]:i):function(e,t,n){return Bt(()=>$t(e)?t:n)}(l,s,o),n.setAttribute("class",t,!1,null)}}(r,e,s)}),s.setAttribute("class",qg,!1,null),"ariaRole"in e&&s.setAttribute("role",Ht(r,"ariaRole"),!1,null),e._transitionTo("hasElement"),n&&(Ke(),e.trigger("willInsertElement"),Ye())}didRenderLayout(e,t){e.component[Ug]=t,e.finalize()}didCreate({component:e,isInteractive:t}){t&&(e._transitionTo("inDOM"),e.trigger("didInsertElement"),e.trigger("didRender"))}update(e){let{component:t,args:n,argsTag:r,argsRevision:i,isInteractive:s}=e;if(e.finalizer=rl("render.component",Hg,t),Ke(),null!==n&&!Ce(r,i)){Qe();let i=Mg(n);r=e.argsTag=Ge(),e.argsRevision=Ae(r),t[Bg]=!0,t.setProperties(i),t[Bg]=!1,t.trigger("didUpdateAttrs"),t.trigger("didReceiveAttrs")}s&&(t.trigger("willUpdate"),t.trigger("willRender")),Ye(),Xe(r),Xe(t[Fg])}didUpdateLayout(e){e.finalize()}didUpdate({component:e,isInteractive:t}){t&&(e.trigger("didUpdate"),e.trigger("didRender"))}getDestroyable(e){return e}}function Vg(e){return e.instrumentDetails({initialRender:!0})}function Hg(e){return e.instrumentDetails({initialRender:!1})}const Wg={dynamicLayout:!0,dynamicTag:!0,prepareArgs:!0,createArgs:!0,attributeHook:!0,elementHook:!0,createCaller:!0,dynamicScope:!0,updateHook:!0,createInstance:!0,wrapped:!0,willDestroy:!0,hasSubOwner:!1},Qg=new $g;function Gg(e){return e===Qg}let Kg=new WeakMap;const Yg=Object.freeze([]);class Jg extends(_l.extend(po,wl,{didReceiveAttrs(){},didRender(){},didUpdate(){},didUpdateAttrs(){},willRender(){},willUpdate(){}},{concatenatedProperties:["attributeBindings","classNames","classNameBindings"],classNames:Yg,classNameBindings:Yg})){isComponent=!0;init(e){super.init(e),this._superRerender=this.rerender,this.rerender=this._rerender,this[Bg]=!1,this[Fg]=De(),this[Ug]=null;const t=this._dispatcher;if(t){let e=Kg.get(t);e||(e=new WeakSet,Kg.set(t,e));let n=Object.getPrototypeOf(this);
1e.has(n)||(t.lazyEvents.forEach((e,n)=>{null!==e&&"function"==typeof this[e]&&t.setupHandlerForBrowserEvent(n)}),e.add(n))}this.elementId||""===this.tagName||(this.elementId=D(this))}__dispatcher;get _dispatcher(){if(void 0===this.__dispatcher){let e=n(this);if(e.lookup("-environment:main").isInteractive){let t=e.lookup("event_dispatcher:main");this.__dispatcher=t}else this.__dispatcher=null}return this.__dispatcher}on(e,t,n){return this._dispatcher?.setupHandlerForEmberEvent(e),super.on(e,t,n)}_rerender(){Me(this[Fg]),this._superRerender()}[Ur](e,t){if(this[Bg])return;let n=this[Lg],r=void 0!==n?n[e]:void 0;void 0!==r&&qt(r)&&Vt(r,2===arguments.length?t:ni(this,e))}getAttr(e){return this.get(e)}readDOMAttr(e){let t=Ha(this),n="http://www.w3.org/2000/svg"===t.namespaceURI,{type:r,normalized:i}=Nf(t,e);return n||"attr"===r?t.getAttribute(i):t[i]}get childViews(){return function(e,t){let n=[],r=Wa.get(e);return void 0!==r&&r.forEach(e=>{let r=t[e];!r||r.isDestroying||r.isDestroyed||n.push(r)}),n}(this,n(this).lookup("-view-registry:main"))}static{ml(this.prototype,"childViews",[ur({configurable:!1,enumerable:!1})])}appendChild(e){Qa(this,e)}_transitionTo(e){let t=this._currentState,n=this._currentState=this._states[e];this._state=e,t&&t.exit&&t.exit(this),n.enter&&n.enter(this)}nearestOfType(e){let t=this.parentView;for(;t;){if(e.detect(t.constructor))return t;t=t.parentView}}nearestWithProperty(e){let t=this.parentView;for(;t;){if(e in t)return t;t=t.parentView}}rerender(){return this._currentState.rerender(this)}get element(){return this.renderer.getElement(this)}static{ml(this.prototype,"element",[ur({configurable:!1,enumerable:!1})])}appendTo(e){let t;return t=o&&"string"==typeof e?document.querySelector(e):e,this.renderer.appendTo(this,t),this}append(){return this.appendTo(document.body)}willInsertElement(){return this}didInsertElement(){return this}willClearRender(){return this}destroy(){return super.destroy(),this._currentState.destroy(this),this}willDestroyElement(){return this}didDestroyElement(){return this}parentViewDidChange(){return this}handleEvent(e,t){return this._currentState.handleEvent(this,e,t)}static isComponentFactory=!0;static toString(){return"@ember/component"}}Jg.reopenClass({positionalParams:[]}),Nn(Qg,Jg);const Xg=Symbol("RECOMPUTE_TAG"),Zg=Symbol("IS_CLASSIC_HELPER");class ey extends Ja{static isHelperFactory=!0;static[Zg]=!0;static helper=sy;init(e){super.init(e),this[Xg]=De()}recompute(){ts(()=>Me(this[Xg]))}}class ty{capabilities=yn(0,{hasValue:!0,hasDestroyable:!0});ownerInjection;constructor(e){let t={};r(t,e),this.ownerInjection=t}createHelper(e,t){var n;return{instance:null!=(n=e)&&"class"in n?e.create():e.create(this.ownerInjection),args:t}}getDestroyable({instance:e}){return e}getValue({instance:e,args:t}){let{positional:n,named:r}=t,i=e.compute(n,r);return Xe(e[Xg]),i}getDebugName(e){return L((e.class||e).prototype)}}Un(e=>new ty(e),ey);const ny=Cn(ey);class ry{isHelperFactory=!0;constructor(e){this.compute=e}create(){return{compute:this.compute}}}const iy=new class{capabilities=yn(0,{hasValue:!0});createHelper(e,t){return()=>e.compute.call(null,t.positional,t.named)}getValue(e){return e()}getDebugName(e){return L(e.compute)}};function sy(e){return new ry(e)}function oy(e){return{object:`${e.name}:main`}}Un(()=>iy,ry.prototype);const ay={dynamicLayout:!1,dynamicTag:!1,prepareArgs:!1,createArgs:!1,attributeHook:!1,elementHook:!1,createCaller:!1,dynamicScope:!0,updateHook:!1,createInstance:!0,wrapped:!1,willDestroy:!1,hasSubOwner:!1},ly=pn(ay),uy=new class{create(e,t,n,r,i){let s=i.get("outletState"),o=t.ref;i.set("outletState",o);let a={finalize:rl("render.outlet",oy,t)};if(void 0!==r.debugRenderTree){let e=$t(s),t=e?.render?.owner,n=$t(o),r=n?.render?.owner;if(t&&t!==r){let{mountPoint:e}=r;e&&(a.engine={mountPoint:e,instance:r})}}return a}getDebugName({name:e}){return`{{outlet}} for ${e}`}getDebugCustomRenderTree(e,t){let n=[];return n.push({bucket:t,type:"outlet",name:"main",args:uf,instance:void 0,template:void 0}),t.engine&&n.push({bucket:t.engine,type:"engine",name:t.engine.mountPoint,args:uf,instance:t.engine.instance,template:void 0}),n}getCapabilities(){return ay}getSelf(){return Mt}didCreate(){}didUpdate(){}didRenderLayout(e){e.finalize()}didUpdateLayout(){}getDestroyable(){return null}},cy=Bd({id:"Hacwyo/Q",block:'[[[8,[30,1],null,[["@controller","@model"],[[30,2],[30,3]]],null]],["@Component","@controller","@model"],[]]',moduleName:"/home/runner/work/ember.js/ember.js/packages/@ember/-internals/glimmer/lib/component-managers/outlet.ts",isStrictMode:!0});class hy{handle=-1;resolvedName=null;manager=uy;capabilities=ly;compilable;constructor(e,t){this.state=t,this.compilable=Tg(cy(e)).asLayout()}}class dy extends $g{component;constructor(e){super(),this.component=e}create(e,t,n,{isInteractive:r},i){let s=this.component,o=rl("render.component",Vg,s);i.view=s;let a=""!==s.tagName;a||(r&&s.trigger("willRender"),s._transitionTo("hasElement"),r&&s.trigger("willInsertElement"));let l=new Ig(s,null,ze,o,a,r);return Xe(s[Fg]),l}}const py={dynamicLayout:!0,dynamicTag:!0,prepareArgs:!1,createArgs:!1,attributeHook:!0,elementHook:!0,createCaller:!0,dynamicScope:!0,updateHook:!0,createInstance:!0,wrapped:!0,willDestroy:!1,hasSubOwner:!1};class fy{handle=-1;resolvedName="-top-level";state;manager;capabilities=pn(py);compilable=null;constructor(e){this.manager=new dy(e);let t=ms(e);this.state=t}}function my(e){return Rn(e,{})}class gy{constructor(e){this.inner=e}}const yy=my(({positional:e})=>{const t=e[0];return Bt(()=>{let e=$t(t);return Xe(nr(e)),Qn(e)&&(e=lo(e)),new gy(e)})});class vy{position=0;constructor(e){this.length=e}isEmpty(){return!1}memoFor(e){return e}next(){let{length:e,position:t}=this;if(t>=e)return null;let n=this.valueFor(t),r=this.memoFor(t);return this.position++,{value:n,memo:r}}}class by extends vy{static from(e){return e.length>0?new this(e):null}static fromForEachable(e){let t=[];
1return e.forEach(e=>t.push(e)),this.from(t)}constructor(e){super(e.length),this.array=e}valueFor(e){return this.array[e]}}class _y extends vy{static from(e){return e.length>0?new this(e):null}constructor(e){super(e.length),this.array=e}valueFor(e){return Zn(this.array,e)}}class wy extends vy{static fromIndexable(e){let t=Object.keys(e);if(0===t.length)return null;{let n=[];for(let r of t){let t;t=e[r],Je()&&(Xe(vt(e,r)),Array.isArray(t)&&Xe(vt(t,"[]"))),n.push(t)}return new this(t,n)}}static fromForEachable(e){let t=[],n=[],r=0,i=!1;return e.forEach(function(e,s){i=i||arguments.length>=2,i&&t.push(s),n.push(e),r++}),0===r?null:i?new this(t,n):new by(n)}constructor(e,t){super(t.length),this.keys=e,this.values=t}valueFor(e){return this.values[e]}memoFor(e){return this.keys[e]}}class ky{static from(e){let t=e[Symbol.iterator](),n=t.next(),{done:r}=n;return r?null:new this(t,n)}position=0;constructor(e,t){this.iterable=e,this.result=t}isEmpty(){return!1}next(){let{iterable:e,result:t,position:n}=this;if(t.done)return null;let r=this.valueFor(t,n),i=this.memoFor(t,n);return this.position++,this.result=e.next(),{value:r,memo:i}}}class jy extends ky{valueFor(e){return e.value}memoFor(e,t){return t}}class xy extends ky{valueFor(e){return e.value[1]}memoFor(e){return e.value[0]}}function Sy(e){return null!=e&&"function"==typeof e.forEach}function Ey(e){return null!=e&&"function"==typeof e[Symbol.iterator]}var Ty;Ty={scheduleRevalidate(){Zi.ensureInstance()},toBool:function(e){return Qn(e)?(Xe(tr(e,"content")),Boolean(ni(e,"isTruthy"))):function(e){if(!e||e.setInterval)return!1;if(Array.isArray(e)||Hl.detect(e))return!0;let t=Ol(e);if("array"===t)return!0;let n=e.length;return"number"==typeof n&&n==n&&"object"===t}(e)?(Xe(tr(e,"[]")),0!==e.length):null!==(t=e)&&"object"==typeof t&&"function"==typeof t.toHTML?Boolean(e.toString()):Boolean(e);var t},toIterator:function(e){return e instanceof gy?function(e){return function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}(e)?Array.isArray(e)||Yn(e)?wy.fromIndexable(e):Ey(e)?xy.from(e):Sy(e)?wy.fromForEachable(e):wy.fromIndexable(e):null}(e.inner):function(e){return A(e)?Array.isArray(e)?by.from(e):Yn(e)?_y.from(e):Ey(e)?jy.from(e):Sy(e)?by.fromForEachable(e):null:null}(e)},getProp:ri,setProp:ao,getPath:ni,setPath:oo,scheduleDestroy(e,t){ns("actions",null,t,e)},scheduleDestroyed(e){ns("destroy",null,e)}},ae=Ty.scheduleRevalidate,Z=Ty.scheduleDestroy,ee=Ty.scheduleDestroyed,te=Ty.toIterator,ne=Ty.toBool,re=Ty.getProp,ie=Ty.setProp,se=Ty.getPath,oe=Ty.setPath;class Oy{enableDebugTooling=v._DEBUG_RENDER_TREE;constructor(e,t){this.owner=e,this.isInteractive=t}onTransactionCommit(){}}const Ry=my(({positional:e,named:t})=>{const n=e[0];let r=t.type,i=t.loc,s=t.original;return $t(r),$t(i),$t(s),Bt(()=>$t(n))});let Ay;Ay=e=>e.positional[0];const Cy=my(Ay),Ny=my(({positional:e})=>Bt(()=>{let t=e[0],n=e[1],r=$t(t).split("."),i=r[r.length-1],s=$t(n);return!0===s?jh(i):s||0===s?String(s):""})),Iy=my(({positional:e},t)=>{let n=$t(e[0]);return zt(t.factoryFor(n)?.class)}),My=my(({positional:e})=>{const t=e[0];return Bt(()=>{let e=$t(t);return A(e)&&Xe(tr(e,"[]")),e})}),Py=my(({positional:e})=>function(e){const t=Bt(()=>$t(e),t=>Vt(e,t));return t.debugLabel=e.debugLabel,t[Ct]=3,t}(e[0])),Dy=my(({positional:e})=>{let t=e[0];return qt(n=t)?Bt(()=>$t(n),null,n.debugLabel):n;var n}),Ly=my(({positional:e,named:t})=>Ft($t(e[0]))),zy=my(()=>zt(([3e7]+-1e3+-4e3+-2e3+-1e11).replace(/[0-3]/g,e=>(4*e^16*Math.random()>>(2&e)).toString(16)))),Fy={dynamicLayout:!0,dynamicTag:!1,prepareArgs:!1,createArgs:!0,attributeHook:!1,elementHook:!1,createCaller:!0,dynamicScope:!0,updateHook:!0,createInstance:!0,wrapped:!1,willDestroy:!1,hasSubOwner:!0},By=new class{getDynamicLayout(e){return Tg(e.engine.lookup("template:application")(e.engine)).asLayout()}getCapabilities(){return Fy}getOwner(e){return e.engine}create(e,{name:t},n,r){let i=e.buildChildEngineInstance(t);i.boot();let s,o,a,l,u=i.factoryFor("controller:application")||ec(i,"application");if(n.named.has("model")&&(l=n.named.get("model")),void 0===l)s=u.create(),o=zt(s),a={engine:i,controller:s,self:o,modelRef:l};else{let e=$t(l);s=u.create({model:e}),o=zt(s),a={engine:i,controller:s,self:o,modelRef:l}}return r.debugRenderTree&&de(i,s),a}getDebugName({name:e}){return e}getDebugCustomRenderTree(e,t,n,r){return[{bucket:t.engine,instance:t.engine,type:"engine",name:e.name,args:n},{bucket:t.controller,instance:t.controller,type:"route-template",name:"application",args:n,template:r}]}getSelf({self:e}){return e}getDestroyable(e){return e.engine}didCreate(){}didUpdate(){}didRenderLayout(){}didUpdateLayout(){}
1update(e){let{controller:t,modelRef:n}=e;void 0!==n&&t.set("model",$t(n))}};class Uy{handle=-1;state;manager=By;compilable=null;capabilities=pn(Fy);constructor(e){this.resolvedName=e,this.state={name:e}}}const qy=my((e,t)=>{let n,r,i,s=e.positional[0];return n=ef(e.named,lf),Bt(()=>{let e=$t(s);return"string"==typeof e?(r===e||(r=e,i=fp(0,new Uy(e),t,n,!0)),i):(i=null,r=null,null)})}),$y={dynamicLayout:!1,dynamicTag:!1,prepareArgs:!1,createArgs:!0,attributeHook:!1,elementHook:!1,createCaller:!1,dynamicScope:!1,updateHook:!1,createInstance:!0,wrapped:!1,willDestroy:!1,hasSubOwner:!1},Vy=pn($y),Hy=new class{create(e,t,n){let r=n.named.get("controller");return{self:r,controller:$t(r)}}getSelf({self:e}){return e}getDebugName({name:e}){return`route-template (${e})`}getDebugCustomRenderTree({name:e,templateName:t},n,r){return[{bucket:n,type:"route-template",name:e,args:r,instance:n.controller,template:t}]}getCapabilities(){return $y}didRenderLayout(){}didUpdateLayout(){}didCreate(){}didUpdate(){}getDestroyable(){return null}};class Wy{handle=-1;resolvedName;state;manager=Hy;capabilities=Vy;compilable;constructor(e,t){let n=Tg(t);this.resolvedName=e,this.state={name:e,templateName:n.moduleName},this.compilable=n.asLayout()}}function Qy(e,t,n){return fp(0,new Wy(t,n),e,null,!0)}const Gy=my((e,t,n)=>{let r=Bt(()=>{let e=$t(n.get("outletState"));return e?.outlets?.main}),i=null,s=null;return Bt(()=>{let e=$t(r),n=function(e,t){if(void 0===t)return null;let n=t.render;if(void 0===n)return null;let r=n.template;return null==r?null:{ref:e,name:n.name,template:r,controller:n.controller}}(r,e);if(!function(e,t){return null!==e&&null!==t&&e.template===t.template&&e.controller===t.controller}(n,i))if(i=n,null!==n){let o,a=e?.render?.owner??t,l=St(),u=n.template;o=Mn(u)?u:Qy(a,n.name,u),l.Component=zt(o),l.controller=zt(n.controller);let c=Wt(r,["render","model"]),h=$t(c);l.model=Bt(()=>(i===n&&(h=$t(c)),h));let d=ef(l,lf);s=fp(0,new hy(t,n),a,d,!0)}else s=null;return s})});function Ky(e){return{object:`component:${e}`}}const Yy={mut:Py,readonly:Dy,unbound:Ly,"-hash":Hf,"-each-in":yy,"-normalize-class":Ny,"-resolve":Iy,"-track-array":My,"
1-mount":qy,"-outlet":Gy,"-in-el-null":Cy},Jy={...Yy,array:Bf,concat:qf,fn:$f,get:Vf,hash:Hf,"unique-id":zy};Jy["-disallow-dynamic-resolution"]=Ry;const Xy={},Zy={...Xy,on:Yf};class ev{componentDefinitionCache=new Map;lookupPartial(){return null}lookupHelper(e,t){let n=Jy[e];if(void 0!==n)return n;let r=t.factoryFor(`helper:${e}`);if(void 0===r)return null;let i=r.class;return void 0===i?null:"function"==typeof i&&!0===i[Zg]?(Rn(ny,r),r):i}lookupBuiltInHelper(e){return Yy[e]??null}lookupModifier(e,t){let n=Zy[e];if(void 0!==n)return n;let r=t.factoryFor(`modifier:${e}`);return void 0===r?null:r.class||null}lookupBuiltInModifier(e){return Xy[e]??null}lookupComponent(e,t){let n=function(e,t){let n=function(e,t){let n=`component:${e}`;return t.factoryFor(n)||null}(t,e);if(null!=(r=n)&&"function"==typeof r.create&&n.class){let e=Hn(n.class);if(void 0!==e)return{component:n,layout:e}}var r;return null===n?null:{component:n,layout:null}}(t,e);if(null===n)return null;let r,i=null;r=null===n.component?i=n.layout(t):n.component;let s=this.componentDefinitionCache.get(r);if(void 0!==s)return s;null===i&&null!==n.layout&&(i=n.layout(t));let o=rl("render.getComponentDefinition",Ky,e),a=null;if(null===n.component)a={state:_f(void 0,e),manager:vf,template:i};else{let e=n.component,t=e.class,r=In(t);a={state:Gg(r)?e:t,manager:r,template:i}}return o(),this.componentDefinitionCache.set(r,a),a}}const tv="-top-level";class nv{static extend(e){return class extends nv{static create(t){return t?super.create(Object.assign({},e,t)):super.create(e)}}}static reopenClass(e){Object.assign(this,e)}static create(e){let{environment:t,application:r,template:i}=e,s=n(e),o=i(s);return new nv(t,s,o,r)}ref;state;constructor(e,t,n,r){this._environment=e,this.owner=t,this.template=n,this.namespace=r;let i=De(),s={outlets:{main:void 0},render:{owner:t,name:tv,controller:void 0,model:void 0,template:n}},o=this.ref=Bt(()=>(Xe(i),s),e=>{Me(i),s.outlets.main=e});this.state={ref:o,name:tv,template:n,controller:void 0}}appendTo(e){let t;t=this._environment.hasDOM&&"string"==typeof e?document.querySelector(e):e,ns("render",this.owner.lookup("renderer:-dom"),"appendOutletView",this,t)}rerender(){}setOutletState(e){Vt(this.ref,e)}destroy(){}}class rv{constructor(e,t){this.view=e,this.outletState=t}child(){return new rv(this.view,this.outletState)}get(e){return this.outletState}set(e,t){return this.outletState=t,t}}const iv=()=>{};class sv{type="component";#_;#w;constructor(e,t,n){this.#w=()=>{let r=function(e,t,n,r,i={},s=new mp){return function(e,t,n,r,i){const s=Object.keys(i).map(e=>[e,i[e]]),o=["main","else","attrs"],a=s.map(([e])=>`@${e}`);let l=e.constants.component(r,n,void 0,"{ROOT}");e.lowlevel.pushFrame();for(let h=0;h<3*o.length;h++)e.stack.push(null);e.stack.push(null),s.forEach(([,t])=>{e.stack.push(t)}),e.args.setup(e.stack,a,o,0,!0);const u=l.compilable,c={handle:ep(u.compile(t)),symbolTable:u.symbolTable};return e.stack.push(e.args),e.stack.push(c),e.stack.push(l),new Lm(e)}(Pm.initial(e,{tree:t,handle:e.stdlib.main,dynamicScope:s,owner:n}),e,n,r,function(e){const t=zt(e);return Object.keys(e).reduce((e,n)=>(e[n]=Ht(t,n),e),{})}(i))}(e.context,e.builder(e.env,n.into),e.owner,t,n?.args),i=this.#_=r.sync();de(this,this.#_),this.#w=()=>{if(!ge(i)&&!ye(i))return i.rerender({alwaysRevalidate:!1})}}}isFor(e){return!1}render(){this.#w()}destroy(){fe(this)}get destroyed(){return ye(this)}get result(){return this.#_}}class ov{type="classic";id;result;destroyed;render;env;constructor(e,t,n,r,i,s,o,a){this.root=e,this.id=e instanceof nv?D(e):Ua(e),this.result=void 0,this.destroyed=!1,this.env=t.env,this.render=()=>{let e=Tg(r).asLayout(),l=function(e,t,n,r,i,s=new mp){let o=ep(i.compile(e)),a=i.symbolTable.symbols.length,l=Pm.initial(e,{scope:{self:n,size:a},dynamicScope:s,tree:r,handle:o,owner:t});return new Lm(l)}(t,n,i,a(t.env,{element:s,nextSibling:null}),e,o),u=this.result=l.sync();de(n,u),this.render=()=>{if(!ge(u)&&!ye(u))return u.rerender({alwaysRevalidate:!1})}}}isFor(e){return this.root===e}destroy(){let{result:e,env:t}=this;this.destroyed=!0,this.root=null,this.result=void 0,this.render=void 0,void 0!==e&&Lf(t,()=>fe(e))}}const av=[];function lv(e){let t=av.indexOf(e);av.splice(t,1)}let uv=null,cv=0;Zi.on("begin",function(){for(let e of av)e.rerender()}),Zi.on("end",function(){for(let e of av)if(!e.isValid()){if(cv>v._RERENDER_LOOP_LIMIT)throw cv=0,e.destroy(),new Error("infinite rendering invalidation detected");return cv++,Zi.join(null,iv)}cv=0,function(){if(null!==uv){let e=uv.resolve;uv=null,Zi.join(null,e)}}()});class hv{static create(e,t){const n=new hv(e,t);return de(t,n),n}#k;#j=-1;#x=!1;#S=!1;#E=[];#T=[];constructor(e,t){this.#k=e,pe(this,()=>{this.clearAllRoots(t)})}get debug(){return{roots:this.#E,inRenderTransaction:this.#x,isInteractive:this.isInteractive}}get roots(){return this.#E}get owner(){return this.#k.owner}get builder(){return this.#k.builder}get context(){return this.#k.context}get env(){return this.context.env}get isInteractive(){return this.#k.context.env.isInteractive}renderRoot(e,t){let n=this.#E;return n.push(e),de(this,e),1===n.length&&function(e){av.push(e)}(t),this.#O(t),e}#O(e){if(this.#x)return;this.#x=!0;let t=!1;try{this.renderRoots(e),t=!0}finally{t||(this.#j=Ae(Fe)),this.#x=!1}}renderRoots(e){let t,n=this.#E,r=this.#T;do{t=n.length,Lf(this.context.env,()=>{for(let e=0;e<n.length;e++){let i=n[e];i.destroyed?r.push(i):e>=t||i.render()}this.#j=Ae(Fe)})}while(n.length>t);for(;r.length;){let e=r.pop(),t=n.indexOf(e);n.splice(t,1)}0===this.#E.length&&lv(e)}scheduleRevalidate(e){Zi.scheduleOnce("render",this,this.revalidate,e)}isValid(){return this.#S||0===this.#E.length||Ce(Fe,this.#j)}revalidate(e){this.isValid()||this.#O(e)}clearAllRoots(e){let t=this.#E;for(let n of t)fe(n);this.#T.length=0,this.#E=[],t.length&&lv(e)}}class dv{static strict(e,t,n){return new dv(e,{hasDOM:o,...n},t,new ev,Sm)}state;constructor(e,t,n,r,i){let s={constants:new Qd,heap:new Kd},o=function(e,t,n,r){return{env:new Df(e,t),program:new Yd(n.constants,n.heap),resolver:r}}({document:n},new Oy(e,t.isInteractive),s,r),a=new Dd(s,e=>new Gd(e),o);this.state=hv.create({owner:e,context:a,builder:i},this)}get debugRenderTree(){let{debugRenderTree:e}=this.state.env;return e}isValid(){return this.state.isValid()}destroy(){fe(this)}render(e,t){const n=new sv(this.state,e,{args:t.args,into:(r=t.into,"element"in r?r:{element:r,nextSibling:null})});var r;return this.state.renderRoot(n,this)}rerender(){this.state.scheduleRevalidate(this)}}class pv extends dv{static strict(e,t,n){return new dv(e,{hasDOM:o,...n},t,new ev,Sm)}_rootTemplate;_viewRegistry;static create(e){let{_viewRegistry:t}=e,r=n(e),i=r.lookup("service:-document"),s=r.lookup("-environment:main"),o=r.lookup(ks`template:-root`),a=r.lookup("service:-dom-builder");return new this(r,i,s,o,t,a)}constructor(e,t,n,r,i,s=Sm,o=new ev){super(e,n,t,o,s),this._rootTemplate=r(e),this._viewRegistry=i||e.lookup("-view-registry:main")}appendOutletView(e,t){let n=new hy((r=e).owner,r.state);var r;let{name:i,template:s}=e.state,o=St();o.Component=zt(Qy(e.owner,i,s)),o.controller=Mt,o.model=Mt;let a=ef(o,lf);this._appendDefinition(e,fp(0,n,e.owner,a,!0),t)}appendTo(e,t){let n=new fy(e);this._appendDefinition(e,fp(0,n,this.state.owner,null,!0),t)}_appendDefinition(e,t,n){let r=zt(t),i=new rv(null,Mt),s=new ov(e,this.state.context,this.state.owner,this._rootTemplate,r,n,i,this.state.builder);this.state.renderRoot(s,this)}cleanupRootFor(e){if(ye(this))return;let t=this.state.roots,n=t.length;for(;n--;){let r=t[n];"classic"===r.type&&r.isFor(e)&&(r.destroy(),t.splice(n,1))}}remove(e){e._transitionTo("destroying"),this.cleanupRootFor(e),this.state.isInteractive&&e.trigger("didDestroyElement")}get _roots(){return this.state.debug.roots}get _inRenderTransaction(){return this.state.debug.inRenderTransaction}get _isInteractive(){return this.state.debug.isInteractive}get _context(){return this.state.context}register(e){let t=Ua(e);this._viewRegistry[t]=e}unregister(e){delete this._viewRegistry[Ua(e)]}getElement(e){if(this._isInteractive)return Ha(e);throw new Error("Accessing `this.element` is not allowed in non-interactive environments (such as FastBoot).")}getBounds(e){let t=e[Ug];return{parentElement:t.parentElement(),firstNode:t.firstNode(),lastNode:t.lastNode()}}}const fv=Bd({id:"tiXbzL5t",block:'[[[46,[28,[32,0],null,null],null,null,null]],[],["component"]]',moduleName:"packages/@ember/-internals/glimmer/lib/templates/outlet.hbs",scope:()=>[Gy],isStrictMode:!0});class mv extends tu{rootElement=null;init(e){super.init(e),this.application._watchInstance(this),this.register("-application-instance:main",this,{instantiate:!1})}_bootSync(e){return this._booted||(e=new gv(e),this.setupRegistry(e),e.rootElement?this.rootElement=e.rootElement:this.rootElement=this.application.rootElement,e.location&&oo(this.router,"location",e.location),this.application.runInstanceInitializer
1s(this),e.isInteractive&&this.setupEventDispatcher(),this._booted=!0),this}setupRegistry(e){this.constructor.setupRegistry(this.__registry__,e)}_router;get router(){if(!this._router){let e=this.lookup("router:main");this._router=e}return this._router}didCreateRootView(e){e.appendTo(this.rootElement)}startRouting(){this.router.startRouting()}setupRouter(){this.router.setupRouter()}handleURL(e){return this.setupRouter(),this.router.handleURL(e)}setupEventDispatcher(){let e=this.lookup("event_dispatcher:main"),t=ni(this.application,"customEvents"),n=ni(this,"customEvents"),r=Object.assign({},t,n);return e.setup(r,this.rootElement),e}getURL(){return this.router.url}visit(e){this.setupRouter();let t=this.__container__.lookup("-environment:main"),n=this.router,r=()=>t.options.shouldRender?(null===uv&&(uv=wa.defer(),Ji||Zi.schedule("actions",null,iv)),uv.promise).then(()=>this):this,i=e=>{if(e.error&&e.error instanceof Error)throw e.error;if("TransitionAborted"===e.name&&n._routerMicrolib.activeTransition)return n._routerMicrolib.activeTransition.then(r,i);throw"TransitionAborted"===e.name?new Error(e.message):e},s=ni(n,"location");return s.setURL(e),n.handleURL(s.getURL()).then(r,i)}willDestroy(){super.willDestroy(),this.application._unwatchInstance(this)}static setupRegistry(e,t={}){let n=t instanceof gv?t:new gv(t);e.register("-environment:main",n.toEnvironment(),{instantiate:!1}),e.register("service:-document",n.document,{instantiate:!1}),super.setupRegistry(e,n)}}class gv{isInteractive;_renderMode;isBrowser;location=null;shouldRender;document;rootElement;constructor(e={}){this.isInteractive=Boolean(o),this._renderMode=e._renderMode,void 0!==e.isBrowser?this.isBrowser=Boolean(e.isBrowser):this.isBrowser=Boolean(o),this.isBrowser||(this.isInteractive=!1,this.location="none"),void 0!==e.shouldRender?this.shouldRender=Boolean(e.shouldRender):this.shouldRender=!0,this.shouldRender||(this.isInteractive=!1),e.document?this.document=e.document:this.document="undefined"!=typeof document?document:null,e.rootElement&&(this.rootElement=e.rootElement),void 0!==e.location&&(this.location=e.location),void 0!==e.isInteractive&&(this.isInteractive=Boolean(e.isInteractive))}toEnvironment(){return{...p,hasDOM:this.isBrowser,isInteractive:this.isInteractive,_renderMode:this._renderMode,options:this}}}class yv extends La{static NAMESPACES=Rs;static NAMESPACES_BY_ID=As;static processAll=Ms;static byName=Ns;init(e){super.init(e),Ts.unprocessedNamespaces=!0,Rs.push(this)}toString(){let e=ni(this,"name")||ni(this,"modulePrefix");if(e)return e;Cs();let t=Ss(this);return void 0===t&&(t=D(this),xs(this,t)),t}nameClasses(){Is(this)}destroy(){return function(e){let t=Ss(e);delete As[t],Rs.splice(Rs.indexOf(e),1),t in y.lookup&&e===y.lookup[t]&&(y.lookup[t]=void 0)}(this),super.destroy()}}yv.prototype.isNamespace=!0;var vv=function(){function e(){this._vertices=new bv}return e.prototype.add=function(e,t,n,r){if(!e)throw new Error("argument `key` is required");var i=this._vertices,s=i.add(e);if(s.val=t,n)if("string"==typeof n)i.addEdge(s,i.add(n));else for(var o=0;o<n.length;o++)i.addEdge(s,i.add(n[o]));if(r)if("string"==typeof r)i.addEdge(i.add(r),s);else for(o=0;o<r.length;o++)i.addEdge(i.add(r[o]),s)},e.prototype.addEdges=function(e,t,n,r){this.add(e,t,n,r)},e.prototype.each=function(e){this._vertices.walk(e)},e.prototype.topsort=function(e){this.each(e)},e}(),bv=function(){function e(){this.length=0,this.stack=new _v,this.path=new _v,this.result=new _v}return e.prototype.add=function(e){if(!e)throw new Error("missing key");for(var t,n=0|this.length,r=0;r<n;r++)if((t=this[r]).key===e)return t;return this.length=n+1,this[n]={idx:n,key:e,val:void 0,out:!1,flag:!1,length:0}},e.prototype.addEdge=function(e,t){this.check(e,t.key);for(var n=0|t.length,r=0;r<n;r++)if(t[r]===e.idx)return;t.length=n+1,t[n]=e.idx,e.out=!0},e.prototype.walk=function(e){this.reset();for(var t=0;t<this.length;t++){var n=this[t];n.out||this.visit(n,"")}this.each(this.result,e)},e.prototype.check=function(e,t){if(e.key===t)throw new Error("cycle detected: "+t+" <- "+t);if(0!==e.length){for(var n=0;n<e.length;n++)if(this[e[n]].key===t)throw new Error("cycle detected: "+t+" <- "+e.key+" <- "+t);if(this.reset(),this.visit(e,t),this.path.length>0){var r="cycle detected: "+t;throw this.each(this.path,function(e){r+=" <- "+e}),new Error(r)}}},e.prototype.reset=function(){this.stack.length=0,this.path.length=0,this.result.length=0;for(var e=0,t=this.length;e<t;e++)this[e].flag=!1},e.prototype.visit=function(e,t){var n=this,r=n.stack,i=n.path,s=n.result;
1for(r.push(e.idx);r.length;){var o=0|r.pop();if(o>=0){var a=this[o];if(a.flag)continue;if(a.flag=!0,i.push(o),t===a.key)break;r.push(~o),this.pushIncoming(a)}else i.pop(),s.push(~o)}},e.prototype.pushIncoming=function(e){for(var t=this.stack,n=e.length-1;n>=0;n--){var r=e[n];this[r].flag||t.push(r)}},e.prototype.each=function(e,t){for(var n=0,r=e.length;n<r;n++){var i=this[e[n]];t(i.key,i.val)}},e}(),_v=function(){function e(){this.length=0}return e.prototype.push=function(e){this[this.length++]=0|e},e.prototype.pop=function(){return 0|this[--this.length]},e}();class wv extends La{constructor(e){super(e),this.resolver=n(this).lookup("resolver-for-debugging:main")}resolver;canCatalogEntriesByType(e){return"model"!==e&&"template"!==e}catalogEntriesByType(e){let t=yv.NAMESPACES,n=[],r=new RegExp(`${i=e,_h.get(i)}$`);var i;return t.forEach(e=>{for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.test(t)&&"class"===Ol(e[t])&&n.push(jh(t.replace(r,"")))}),n}}class kv extends La{componentFor(e,t){let n=`component:${e}`;return t.factoryFor(n)}layoutFor(e,t,n){let r=`template:components/${e}`;return t.lookup(r,n)}}const jv=new WeakMap;class xv extends _m{__openBlock(){let{tagName:e}=this.element;if("TITLE"!==e&&"SCRIPT"!==e&&"STYLE"!==e){let e=this.serializeBlockDepth++;this.__appendComment(`%+b:${e}%`)}super.__openBlock()}__closeBlock(){let{tagName:e}=this.element;if(super.__closeBlock(),"TITLE"!==e&&"SCRIPT"!==e&&"STYLE"!==e){let e=--this.serializeBlockDepth;this.__appendComment(`%-b:${e}%`)}}__appendHTML(e){let{tagName:t}=this.element;if("TITLE"===t||"SCRIPT"===t||"STYLE"===t)return super.__appendHTML(e);let n=this.__appendComment("%glmr%");if("TABLE"===t){let t=e.indexOf("<");t>-1&&"tr"===e.slice(t+1,t+3)&&(e=`<tbody>${e}</tbody>`)}""===e?this.__appendComment("% %"):super.__appendHTML(e);let r=this.__appendComment("%glmr%");return new vp(this.element,n,r)}__appendText(e){let{tagName:t}=this.element,n=function(e){let{element:t,nextSibling:n}=e;return null===n?t.lastChild:n.previousSibling}(this);return"TITLE"===t||"SCRIPT"===t||"STYLE"===t?super.__appendText(e):""===e?this.__appendComment("% %"):(n&&3===n.nodeType&&this.__appendComment("%|%"),super.__appendText(e))}closeElement(){return jv.has(this.element)&&(jv.delete(this.element),super.closeElement()),super.closeElement()}openElement(e){return"tr"===e&&"TBODY"!==this.element.tagName&&"THEAD"!==this.element.tagName&&"TFOOT"!==this.element.tagName&&(this.openElement("tbody"),jv.set(this.constructing,!0),this.flushElement(null)),super.openElement(e)}pushRemoteElement(e,t,n=null){let{dom:r}=this,i=r.createElement("script");return i.setAttribute("glmr",t),r.insertBefore(e,i,n),super.pushRemoteElement(e,t,n)}constructor(...e){super(...e),this.serializeBlockDepth=0}}function Sv(e,t){return xv.forInitialRender(e,t)}function Ev(e){e.register("service:-dom-builder",{create(e){switch(n(e).lookup("-environment:main")._renderMode){case"serialize":return Sv.bind(null);case"rehydrate":return Gm.bind(null);default:return Sm.bind(null)}}}),e.register(ks`template:-root`,Jm),e.register("renderer:-dom",pv)}class Tv extends(yv.extend(to)){static initializers=Object.create(null);static instanceInitializers=Object.create(null);static initializer=Rv("initializers");static instanceInitializer=Rv("instanceInitializers");static buildRegistry(e){let t=new bs({resolver:Ov(e)});return t.set=oo,t.register("application:main",e,{instantiate:!1}),function(e){e.optionsForType("component",{singleton:!1}),e.optionsForType("view",{singleton:!1}),e.register("controller:basic",Xl,{instantiate:!1}),e.register("service:-routing",Ih),e.register("resolver-for-debugging:main",e.resolver,{instantiate:!1}),e.register("container-debug-adapter:main",wv),e.register("component-lookup:main",kv)}(t),function(e){e.optionsForType("template",{instantiate:!1}),e.register("view:-outlet",nv),e.register("template:-outlet",fv),e.optionsForType("helper",{instantiate:!1}),e.register("component:input",fg),e.register("component:link-to",jg),e.register("component:textarea",Eg)}(t),t}init(e){super.init(e),this.buildRegistry()}
1_initializersRan=!1;ensureInitializers(){this._initializersRan||(this.runInitializers(),this._initializersRan=!0)}buildInstance(e={}){return this.ensureInitializers(),tu.create({...e,base:this})}buildRegistry(){return this.__registry__=this.constructor.buildRegistry(this)}initializer(e){this.constructor.initializer(e)}instanceInitializer(e){this.constructor.instanceInitializer(e)}runInitializers(){this._runInitializer("initializers",(e,t)=>{t.initialize(this)})}runInstanceInitializers(e){this._runInitializer("instanceInitializers",(t,n)=>{n.initialize(e)})}_runInitializer(e,t){let n,r=ni(this.constructor,e),i=function(e){let t=[];for(let n in e)t.push(n);return t}(r),s=new vv;for(let o of i)n=r[o],s.add(n.name,n,n.before,n.after);s.topsort(t)}}function Ov(e){let t={namespace:e};return e.Resolver.create(t)}function Rv(e){return function(t){let n=this.superclass;if(void 0!==n[e]&&n[e]===this[e]){let t={[e]:Object.create(this[e])};this.reopenClass(t)}this[e][t.name]=t}}const Av=r;class Cv extends Tv{static buildRegistry(e){let t=super.buildRegistry(e);return function(e){e.register("router:main",Qc),e.register("-view-registry:main",{create:()=>K(null)}),e.register("route:basic",dc),e.register("event_dispatcher:main",Ka),e.register("location:hash",sh),e.register("location:history",lh),e.register("location:none",uh),e.register(ks`-bucket-cache:main`,{create:()=>new bc}),e.register("service:router",Nh)}(t),Ev(t),t}static initializer=Rv("initializers");static instanceInitializer=Rv("instanceInitializers");init(e){super.init(e),this.rootElement??="body",this._document??=null,this.eventDispatcher??=null,this.customEvents??=null,this.autoboot??=!0,this._document??=o?window.document:null,this._globalsMode??=!0,this._readinessDeferrals=1,this._booted=!1,this._applicationInstances=new Set,this.autoboot=this._globalsMode=Boolean(this.autoboot),this._globalsMode&&this._prepareForGlobalsMode(),this.autoboot&&this.waitForDOMReady()}buildInstance(e={}){return mv.create({...e,base:this,application:this})}_watchInstance(e){this._applicationInstances.add(e)}_unwatchInstance(e){return this._applicationInstances.delete(e)}Router;_prepareForGlobalsMode(){this.Router=(this.Router||Qc).extend(),this._buildDeprecatedInstance()}__deprecatedInstance__;__container__;_buildDeprecatedInstance(){let e=this.buildInstance();this.__deprecatedInstance__=e,this.__container__=e.__container__}waitForDOMReady(){const e=this._document;if(null===e||"loading"!==e.readyState)ns("actions",this,this.domReady);else{let t=()=>{e.removeEventListener("DOMContentLoaded",t),es(this,this.domReady)};e.addEventListener("DOMContentLoaded",t)}}domReady(){this.isDestroying||this.isDestroyed||this._bootSync()}deferReadiness(){this._readinessDeferrals++}advanceReadiness(){this._readinessDeferrals--,0===this._readinessDeferrals&&rs(this,this.didBecomeReady)}_bootPromise=null;boot(){if(this._bootPromise)return this._bootPromise;try{this._bootSync()}catch(e){}return this._bootPromise}_bootResolver=null;_bootSync(){if(this._booted||this.isDestroying||this.isDestroyed)return;let e=this._bootResolver=ka.defer();this._bootPromise=e.promise;try{this.runInitializers(),function(e,t){if(os[e]=t,a&&"function"==typeof CustomEvent){let n=new CustomEvent(e,{detail:t});a.dispatchEvent(n)}ss[e]?.forEach(e=>e(t))}("application",this),this.advanceReadiness()}catch(t){throw e.reject(t),t}}reset(){let e=this.__deprecatedInstance__;this._readinessDeferrals=1,this._bootPromise=null,this._bootResolver=null,this._booted=!1,ts(this,function(){es(e,"destroy"),this._buildDeprecatedInstance(),ns("actions",this,"_bootSync")})}didBecomeReady(){if(!this.isDestroying&&!this.isDestroyed)try{if(this.autoboot){let e;e=this._globalsMode?this.__deprecatedInstance__:this.buildInstance(),e._bootSync(),this.ready(),e.startRouting()}this._bootResolver.resolve(this),this._booted=!0}catch(e){throw this._bootResolver.reject(e),e}}ready(){return this}willDestroy(){super.willDestroy(),as.application===this&&(as.application=void 0),this._applicationInstances.size&&(this._applicationInstances.forEach(e=>e.destroy()),this._applicationInstances.clear())}visit(e,t){return this.boot().then(()=>{let n=this.buildInstance();
1return n.boot(t).then(()=>n.visit(e)).catch(e=>{throw es(n,"destroy"),e})})}}const Nv=Object.assign({},{}),Iv=function(){var e;let t="site/config/environment";try{let n=null!==(e=document.querySelector(`meta[name="${t}"]`).getAttribute("content"))&&void 0!==e?e:"{}";return JSON.parse(decodeURIComponent(n))}catch(n){return`Could not read config from meta tag with name "${t}".`}}(),Mv=Object.freeze(Object.defineProperty({__proto__:null,default:Iv},Symbol.toStringTag,{value:"Module"}));!function(){const e="TEST_WAITERS",t="undefined"!=typeof Symbol?Symbol.for(e):e,n=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;throw new Error("unable to locate global object")}();let r=n[t];void 0===r&&(r=n[t]=new Map)}();class Pv{name;constructor(e){this.name=e}beginAsync(){return this}endAsync(){}waitUntil(){return!0}debugInfo(){return[]}reset(){}}function Dv(e,t){return pe(e,t)}let Lv;var zv;let Fv;Lv=(zv=s,zv?.__esModule?zv:{default:zv,...zv}).getOwner;{const Iw=new Pv("@embroider/router:lazy-route-waiter");function Mw(){return window}class Pw extends Qc{seenByRoute=new Set;registeredBundles=new Map;lazyRoute(e){let t=Mw();if(t._embroiderRouteBundles_)return t._embroiderRouteBundles_.find(t=>-1!==t.names.indexOf(e))}lazyEngine(e){let t=Mw(),n=this._engineInfoByRoute[e];if(n&&t._embroiderEngineBundles_){let e=n.name;return t._embroiderEngineBundles_.find(t=>-1!==t.names.indexOf(e))}}isEngine(e){return Boolean(this._engineInfoByRoute[e])}_getQPMeta(e,...t){let n=this.lazyRoute(e.name);if((!n||this.registeredBundles.get(n)?.loaded)&&(!this.isEngine(e.name)||this.seenByRoute.has(e.name))&&(n=this.lazyEngine(e.name),!n||this.registeredBundles.get(n)?.loaded))return super._getQPMeta(e,...t)}setupRouter(...e){let t=super.setupRouter(...e),n=this._routerMicrolib;return n.getRoute.isEmbroiderRouterHandler||(n.getRoute=this._handlerResolver(n.getRoute.bind(n))),t}registerBundle(e){let t=this.registeredBundles.get(e);if(t)return t.promise;{let n;t={promise:new Promise(e=>n=e),loaded:!1},this.registeredBundles.set(e,t);const r=Lv(this);return n((async()=>{let n=Iw.beginAsync(),{default:i}=await e.load();if(Iw.endAsync(n),ye(r)||ge(r))return;let s=r.lookup("resolver:current");if(!s)throw new Error("This version of @embroider/router requires ember-resolver >= 13.1.0");s.addModules(i),t.loaded=!0})()),t.promise}}_handlerResolver(e){let t=t=>{const n=this.lazyRoute(t)??this.lazyEngine(t);return this.seenByRoute.add(t),n?this.registeredBundles.get(n)?.loaded?e(t):this.registerBundle(n).then(()=>e(t)):e(t)};return t.isEmbroiderRouterHandler=!0,t}}Fv=Pw}var Bv=Fv;const Uv=new WeakMap,qv=new WeakMap;let $v=class{constructor(e,t){this.args=t,Uv.set(this,!1),qv.set(this,!1)}args;get isDestroying(){return Uv.get(this)||!1}get isDestroyed(){return qv.get(this)||!1}willDestroy(){}};class Vv{owner;constructor(e){this.owner=e}createComponent(e,t){return new e(this.owner,t.named)}getContext(e){return e}}const Hv=function(e,t={}){let n=Boolean(t.updateHook);return{asyncLifeCycleCallbacks:Boolean(t.asyncLifecycleCallbacks),destructor:Boolean(t.destructor),updateHook:n}}(0,{destructor:!0,asyncLifecycleCallbacks:!1,updateHook:!1});function Wv(e){e.isDestroyed||(fe(e),function(e){qv.set(e,!0)}(e))}class Qv extends Vv{capabilities=Hv;destroyComponent(e){e.isDestroying||(function(e){Uv.set(e,!0)}(e),ns("actions",e,e.willDestroy),ns("destroy",this,Wv,e))}}class Gv extends $v{constructor(e,t){super(e,t),r(this,e)}}var Kv;Kv=Gv,Nn(new class{constructor(e){this.factory=e,this.componentManagerDelegates=new WeakMap}getDelegateFor(e){let{componentManagerDelegates:t}=this,n=t.get(e);if(void 0===n){let{factory:r}=this;n=r(e),t.set(e,n)}return n}create(e,t,n){let r=this.getDelegateFor(e),i=hn(n.capture()),s=r.createComponent(t,i);return new zn(s,r,i)}getDebugName(e){return"function"==typeof e?e.name:e.toString()}update(e){let{delegate:t}=e;if(Ln(t)){let{component:n,args:r}=e;t.updateComponent(n,r)}}didCreate({component:e,delegate:t}){Dn(t)&&t.didCreateComponent(e)}didUpdate({component:e,delegate:t}){(function(e){return Dn(e)&&Ln(e)})(t)&&t.didUpdateComponent(e)}didRenderLayout(){}didUpdateLayout(){}getSelf({component:e,delegate:t}){return zt(t.getContext(e))}getDestroyable(e){const{delegate:t}=e;if(function(e){return e.capabilities.destructor}(t)){const{component:n}=e;return pe(e,()=>
1t.destroyComponent(n)),e}return null}getCapabilities(){return Pn}}(e=>new Qv(e)),Kv);const Yv=(...e)=>{const[t,n,r]=e,i=new WeakMap,s=r.get;r.get=function(){return i.has(this)||i.set(this,rt(s.bind(this))),it(i.get(this))}},Jv=function(e,t){return Tn(new Bn(e),t)},Xv=Hf,Zv=$f,eb=_f,tb=new WeakMap;function nb(e,t,n,r){let i={configurable:!0,enumerable:!0,writable:!0,initializer:null};r&&(i.initializer=r);for(let s of n)i=s(e,t,i)||i;void 0===i.initializer?Object.defineProperty(e,t,i):function(e,t,n){let r=tb.get(e);r||(r=new Map,tb.set(e,r)),r.set(t,n)}(e,t,i)}function rb(e,t,n){let r={...Object.getOwnPropertyDescriptor(e,t)};for(let i of n)r=i(e,t,r)||r;void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(e):void 0,r.initializer=void 0),Object.defineProperty(e,t,r)}function ib(e,t){let n=function(e,t){var n;let r=e.prototype;for(;r;){let e=null==(n=tb.get(r))?void 0:n.get(t);if(e)return e;r=r.prototype}}(e.constructor,t);n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(e):void 0})}const sb=sy(function(e){return e[0]===e[1]});class ob extends Gv{static{Vn(Bd({id:null,block:'[[[1,"\\n "],[11,0],[24,0,"docfy-demo__description"],[24,"data-test-id","demo-description"],[17,1],[12],[1,"\\n "],[10,0],[14,0,"docfy-demo__description__header"],[14,"data-test-id","demo-header"],[12],[1,"\\n"],[41,[30,2],[[[1," "],[10,"h3"],[14,0,"docfy-demo__description__header__title"],[14,"data-test-id","demo-title"],[12],[1,"\\n "],[10,3],[15,6,[29,["#",[30,3]]]],[12],[1,"\\n "],[10,1],[14,0,"icon icon-link"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[1,[30,2]],[1,"\\n "],[13],[1,"\\n"]],[]],null],[41,[30,4],[[[1," "],[10,3],[15,6,[30,4]],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[14,0,"docfy-demo__description__header__edit-url"],[14,"data-test-id","demo-edit-url"],[12],[1,"\\n Edit this demo\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n\\n "],[10,0],[14,0,"docfy-demo__description__content"],[14,"data-test-id","demo-content"],[12],[1,"\\n "],[18,5,null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n "]],["&attrs","@title","@id","@editUrl","&default"],["if","yield"]]',moduleName:"(unknown template module)",isStrictMode:!0}),this)}}const ab=Vn(Bd({id:null,block:'[[[1,"\\n "],[11,0],[24,0,"docfy-demo__example__container"],[24,"data-test-id","demo-example__container"],[17,1],[12],[1,"\\n "],[11,0],[24,0,"docfy-demo__example not-prose"],[24,"data-test-id","demo-example"],[17,1],[12],[1,"\\n "],[18,2,null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],["&attrs","&default"],["yield"]]',moduleName:"(unknown template module)",isStrictMode:!0}),eb());class lb extends Gv{id=D(this);constructor(e,t){if(super(e,t),"function"==typeof this.args.registerSnippet){let e=this.args.name||"";e=e.charAt(0).toUpperCase()+e.slice(1),this.args.registerSnippet({id:this.id,name:e})}}get isActive(){return"function"!=typeof this.args.registerSnippet||this.id===this.args.active}static{Vn(Bd({id:null,block:'[[[1,"\\n"],[41,[30,0,["isActive"]],[[[1," "],[11,0],[24,0,"docfy-demo__snippet"],[24,"data-test-id","demo-snippet"],[16,"data-test-snippet-name",[29,[[30,1]]]],[17,2],[12],[1,"\\n "],[18,3,null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "]],["@name","&attrs","&default"],["if","yield"]]',moduleName:"(unknown template module)",isStrictMode:!0}),this)}}class ub extends Gv{static{nb(this.prototype,"snippets",[li],function(){return[]})}#R=void ib(this,"snippets");static{nb(this.prototype,"active",[li])}#A=void ib(this,"active");registerSnippet(e){ns("render",this,()=>{this.snippets=[...this.snippets,e],this.active||(this.active=e.id)})}static{rb(this.prototype,"registerSnippet",[Ba])}setActiveSnippet(e){this.active=e}static{rb(this.prototype,"setActiveSnippet",[Ba])}static{Vn(Bd({id:null,block:'[[[1,"\\n "],[10,0],[14,0,"docfy-demo__snippets"],[14,"data-test-id","demo-snippets"],[12],[1,"\\n "],[10,0],[14,0,"docfy-demo__snippets__tabs"],[14,"data-test-id","demo-tabs"],[12],[1,"\\n"],[42,[28,[31,1],[[28,[31,1],[[30,0,["snippets"]]],null]],null],null,[[[1," "],[11,"button"],[16,0,[29,["docfy-demo__snippets__tabs__button\\n ",[52,[28,[32,0],[[30,0,["active"]],[30,1,["id"]]],null],"docfy-demo__snippets__tabs__button--active"]]]],[24,"data-test-id","demo-tab-button"],[16,"data-test-snippet-name",[29,[[30,1,["name"]]]]],[16,"data-test-is-active",[29,[[52,[28,[32,0],[[30,0,["active"]],[30,1,["id"]]],null],"true","false"]]]],[24,4,"button"],[4,[32,1],["click",[28,[32,2],[[30,0,["setActiveSnippet"]],[30,1,["id"]]],null]],null],[12],[1,"\\n "],[1,[30,1,["name"]]],[1,"\\n "],[13],[1,"\\n"]],[1]],null],[1," "],[13],[1,"\\n\\n "],[18,2,[[50,[32,3],0,null,[["registerSnippet","active"],[[30,0,["registerSnippet"]],[30,0,["active"]]]]]]],[1,"\\n "],[13],[1,"\\n "]],["snippet","&default"],["each","-track-array","if","yield","component"]]',moduleName:"(unknown template module)",scope:()=>[sb,Km,Zv,lb],isStrictMode:!0}),this)}}class cb extends Gv{static{Vn(Bd({id:null,block:'[[[1,"\\n "],[11,0],[16,1,[30,1]],[24,0,"docfy-demo"],[24,"data-test-id","docfy-demo"],[16,"data-test-demo-id",[29,[[30,1]]]],[17,2],[12],[1,"\\n "],[18,3,[[28,[32,0],null,[["Ex
1ample","Description","Snippet","Snippets"],[[32,1],[50,[32,2],0,null,[["id"],[[30,1]]]],[32,3],[32,4]]]]]],[1,"\\n "],[13],[1,"\\n "]],["@id","&attrs","&default"],["yield","component"]]',moduleName:"(unknown template module)",scope:()=>[Xv,ab,ob,lb,ub],isStrictMode:!0}),this)}}class hb extends Gv{static{nb(this.prototype,"router",[Oh("router")])}#C=void ib(this,"router");get routeName(){const{to:e}=this.args;return this.router.recognize(e)?.name}get href(){let e=this.args.to;return this.routeName&&(e=this.router.urlFor(this.routeName)),this.args.anchor?`${e}#${this.args.anchor}`:e}get isActive(){return this.router.currentRouteName===this.routeName}navigate(e){e.ctrlKey||e.metaKey||this.routeName&&!this.args.anchor&&(e.preventDefault(),this.router.transitionTo(this.routeName))}static{rb(this.prototype,"navigate",[Ba])}static{Vn(Bd({id:null,block:'[[[1,"\\n "],[11,3],[16,0,[29,["docfy-link ",[52,[30,0,["isActive"]],[30,1]]]]],[17,2],[16,6,[30,0,["href"]]],[24,"data-test-docfy-link",""],[16,"data-test-to",[30,3]],[16,"data-test-anchor",[30,4]],[16,"data-test-is-active",[30,0,["isActive"]]],[4,[32,0],["click",[30,0,["navigate"]]],null],[12],[1,"\\n "],[18,5,null],[1,"\\n "],[13],[1,"\\n "]],["@activeClass","&attrs","@to","@anchor","&default"],["if","yield"]]',moduleName:"(unknown template module)",scope:()=>[Km],isStrictMode:!0}),this)}}class db extends Gv{static{nb(this.prototype,"router",[Oh("router")])}#C=void ib(this,"router");static{nb(this.prototype,"docfy",[Oh("docfy")])}#N=void ib(this,"docfy");get output(){if(this.args.url)return this.docfy.findByUrl(this.args.url,this.args.scope);if(this.args.fromCurrentURL){const e=this.router.currentURL;if(!e)return;return this.docfy.findByUrl(e,this.args.scope)}return this.args.scope?this.docfy.findNestedChildrenByName(this.args.scope):"flat"===this.args.type?this.docfy.flat:this.docfy.nested}static{Vn(Bd({id:null,block:'[[[18,1,[[30,0,["output"]]]]],["&default"],["yield"]]',moduleName:"(unknown template module)",isStrictMode:!0}),this)}}class pb extends Gv{static{nb(this.prototype,"docfy",[Oh("docfy")])}#N=void ib(this,"docfy");get previous(){return this.docfy.previousPage(this.args.scope)}get next(){return this.docfy.nextPage(this.args.scope)}static{Vn(Bd({id:null,block:'[[[18,1,[[30,0,["previous"]],[30,0,["next"]]]]],["&default"],["yield"]]',moduleName:"(unknown template module)",isStrictMode:!0}),this)}}const fb={name:"/",label:"/",pages:[],children:[{name:"docs",label:"Docs",pages:[{url:"/docs/",title:"What it does?",editUrl:"https://github.com/josemarluedke/ember-focus-trap/edit/main/docs/index.md",relativeUrl:"",relativePath:"index.md",headings:[{title:"Example",id:"example",depth:2}],frontmatter:{order:1},pluginData:{},parentLabel:"Docs"},{url:"/docs/installation",title:"Installation",editUrl:"https://github.com/josemarluedke/ember-focus-trap/edit/main/docs/installation.md",relativeUrl:"installation",relativePath:"installation.md",headings:[],frontmatter:{order:2},pluginData:{},parentLabel:"Docs"},{url:"/docs/arguments",title:"Arguments",editUrl:"https://github.com/josemarluedke/ember-focus-trap/edit/main/docs/arguments.md",relativeUrl:"arguments",relativePath:"arguments.md",headings:[{title:"focusTrapOptions",id:"focustrapoptions",depth:2},{title:"isActive",id:"isactive",depth:2},{title:"isPaused",id:"ispaused",depth:2},{title:"shouldSelfFocus",id:"shouldselffocus",depth:2},{title:"additionalElements",id:"additionalelements",depth:2}],frontmatter:{order:3},pluginData:{},parentLabel:"Docs"},{url:"/docs/examples",title:"Examples",editUrl:"https://github.com/josemarluedke/ember-focus-trap/edit/main/docs/examples.md",relativeUrl:"examples",relativePath:"examples.md",headings:[{title:"Examples",id:"examples",depth:2,headings:[{title:"Activated when rendered",id:"docfy-demo-examples-initial-focus",depth:3},{title:"Initial Focus",id:"docfy-demo-examples-container-self-focus",depth:3},{title:"Self focus on the container",id:"docfy-demo-examples-activated-on-render",depth:3}]}],frontmatter:{order:4},pluginData:{},parentLabel:"Docs"},{url:"/docs/acknowledgments",title:"Acknowledgments",editUrl:"https://github.com/josemarluedke/ember-focus-trap/edit/main/docs/acknowledgments.md",relativeUrl:"acknowledgments",relativePath:"acknowledgments.md",headings:[],frontmatter:{order:5},pluginData:{},parentLabel:"Docs"}],children:[]}]};function mb(e,t=[]){return void 0===e?[]:(t.push(...e.pages),e.children.forEac
1h(e=>{mb(e,t)}),t)}class gb extends Rh{static{nb(this.prototype,"router",[Oh("router")])}#C=void ib(this,"router");get currentPage(){const e=this.router.currentURL;return e?this.findByUrl(e):void 0}static{rb(this.prototype,"currentPage",[Yv])}get flat(){return mb(this.nested)}get nested(){return fb}findNestedChildrenByName(e,t=null){null===t&&(t=this.nested);const n=e.split("/"),r=n.shift(),i=t?.children.find(e=>e.name===r);return n.length>0?this.findNestedChildrenByName(n.join("/"),i):i}findByUrl(e,t){let n=this.flat;"string"==typeof t&&(n=mb(this.findNestedChildrenByName(t)));const r=(e.split("#")[0]||"").replace(/\/$/,"");return n.find(e=>e.url===r||e.url===`${r}/`)}previousPage(e){return this.findPreviousOrNextPage(!0,e)}nextPage(e){return this.findPreviousOrNextPage(!1,e)}findPreviousOrNextPage(e,t){const n=this.currentPage;let r=this.flat;"string"==typeof t&&(r=mb(this.findNestedChildrenByName(t)));const i=r.findIndex(e=>e===n);if(i>-1)return e?r[i-1]:r[i+1]}}function yb(e,t){function n(){t.pages.forEach(e=>{const t=e.relativeUrl;"string"==typeof t&&""!==t&&this.route(t)}),t.children.forEach(e=>{yb(this,e)})}"/"===t.name?n.call(e):e.route(t.name,n)}function vb(e){yb(e,fb)}class bb extends Bv{location=Iv.locationType;rootURL=Iv.rootURL}bb.map(function(){vb(this)});const _b=Object.freeze(Object.defineProperty({__proto__:null,default:bb},Symbol.toStringTag,{value:"Module"}));function wb(e,t,n){return(t="symbol"==typeof(r=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var r}function kb(e,t,n,r){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function jb(e,t,n,r){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),void 0===(i=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},i)).initializer&&(Object.defineProperty(e,t,i),i=null),i}var xb,Sb,Eb,Tb,Ob;const Rb="undefined"!=typeof FastBoot,Ab="routeDidChange",Cb=["separator","prepend","replace"];let Nb=(xb=Oh("router"),Sb=Oh("-document"),Eb=class extends Rh{constructor(e){if(super(e),kb(this,"router",Tb,this),kb(this,"document",Ob,this),wb(this,"tokens",[]),wb(this,"_defaultConfig",{separator:" | ",prepend:!0,replace:null}),wb(this,"scheduleTitleUpdate",()=>{is("afterRender",this,this._updateTitle)}),this._validateExistingTitleElement(),function(e){return"resolveRegistration"in e}(e)){const n=e.resolveRegistration("config:environment");"object"==typeof(t=n)&&null!==t&&"pageTitle"in t&&Cb.forEach(e=>{if(!function(e){if(null==e)return!0;if(!ti(e)&&"number"==typeof e.size)return!e.size;if("object"==typeof e){let t=ni(e,"size");if("number"==typeof t)return!t;let n=ni(e,"length");if("number"==typeof n)return!n}return"number"==typeof e.length&&"function"!=typeof e&&!e.length}(n.pageTitle[e])){const t=n.pageTitle[e];this._defaultConfig[e]=t}})}var t;this.router.on(Ab,this.scheduleTitleUpdate)}applyTokenDefaults(e){const t=this._defaultConfig.separator,n=this._defaultConfig.prepend,r=this._defaultConfig.replace;e.previous??=null,e.next??=null,null==e.separator&&(e.separator=t),null==e.prepend&&null!=n&&(e.prepend=n),null==e.replace&&null!=r&&(e.replace=r)}inheritFromPrevious(e){const t=e.previous;t&&(null==e.separator&&(e.separator=t.separator),null==e.prepend&&(e.prepend=t.prepend))}push(e){const t=this._findTokenById(e.id);if(t){const n=this.tokens.indexOf(t),r=[...this.tokens],i=t.previous;return e.previous=i,e.next=t.next,this.inheritFromPrevious(e),this.applyTokenDefaults(e),r.splice(n,1,e),void(this.tokens=r)}const n=this.tokens.slice(-1)[0];n&&(e.previous=n??null,n.next=e,this.inheritFromPrevious(e)),this.applyTokenDefaults(e),this.tokens=[...this.tokens,e]}remove(e){const t=this._findTokenById(e);if(!t)return;const{next:n,previous:r}=t;n&&(n.previous=r),r&&(r.next=n),t.previous=t.next=null;const i=[...this.tokens];i.splice(i.indexOf(t),1),this.tokens=i}get visibleTokens(){const e=this.tokens;let t=e?e.length:0;const n=[];for(;t--;){const r=e[t];if(r){if(r.replace){n.unshift(r);break}n.unshift(r)}}return n}get sortedTokens(){const e=this.visibleTokens;if(!e)return[];let t=!0,n=[];const r=[n],i=[];
1return e.forEach(e=>{e.front?i.unshift(e):e.prepend?(t&&(t=!1,n=[],r.push(n)),n.unshift(e)):(t||(t=!0,n=[],r.push(n)),n.push(e))}),i.concat(r.reduce((e,t)=>e.concat(t),[]))}toString(){const e=this.sortedTokens,t=[];for(let n=0,r=e.length;n<r;n++){const i=e[n];i&&i.title&&(t.push(i.title),n+1<r&&t.push(i.separator))}return t.join("")}willDestroy(){super.willDestroy(),this.router.off(Ab,this.scheduleTitleUpdate)}_updateTitle(){const e=this.toString();Rb?this.updateFastbootTitle(e):this.document.title=e,this.titleDidUpdate(e)}_validateExistingTitleElement(){}_findTokenById(e){return this.tokens.find(t=>t.id===e)}updateFastbootTitle(e){if(!Rb)return;const t=this.document.head,n=t.childNodes;for(let s=0;s<n.length;s++){const e=n[s];e&&"title"===e.nodeName.toLowerCase()&&t.removeChild(e)}const r=this.document.createElement("title"),i=this.document.createTextNode(e);r.appendChild(i),t.appendChild(r)}titleDidUpdate(e){}},Tb=jb(Eb.prototype,"router",[xb],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Ob=jb(Eb.prototype,"document",[Sb],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Eb);const Ib=Object.freeze(Object.defineProperty({__proto__:null,default:Nb},Symbol.toStringTag,{value:"Module"})),Mb=Object.freeze(Object.defineProperty({__proto__:null,default:gb},Symbol.toStringTag,{value:"Module"}));var Pb,Db,Lb;let zb=(Pb=Oh("page-title"),Lb=jb((Db=class extends ey{constructor(e){super(e),kb(this,"tokens",Lb,this),wb(this,"tokenId",D(this)),this.tokens.push({id:this.tokenId})}compute(e,t){const n={...t,id:this.tokenId,title:e.join("")};return this.tokens.push(n),this.tokens.scheduleTitleUpdate(),""}willDestroy(){super.willDestroy(),this.tokens.remove(this.tokenId),this.tokens.scheduleTitleUpdate()}}).prototype,"tokens",[Pb],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Db);const Fb="dark",Bb="light";class Ub extends Gv{static{nb(this.prototype,"prefersDark",[li],function(){return!1})}#I=void ib(this,"prefersDark");constructor(e,t){if(super(e,t),"undefined"==typeof document)return;const n=document.documentElement;this.prefersDark=n.classList.contains(Fb),window.matchMedia("(prefers-color-scheme: dark)").onchange=({matches:e})=>{localStorage.getItem("prefersMode")||(this.prefersDark=e,this.applyClasses())}}toggleMode=()=>{let e;this.prefersDark?(e="light",this.prefersDark=!1):(e="dark",this.prefersDark=!0),localStorage.setItem("prefersMode",e),this.applyClasses()};applyClasses(){const e=document.body;e.style.transition="background-color 0.2s ease, color 0.2s ease",this.prefersDark?(document.documentElement.classList.remove(Bb),document.documentElement.classList.add(Fb)):(document.documentElement.classList.remove(Fb),document.documentElement.classList.add(Bb)),function(...e){Zi.later(...e)}(this,()=>{e.style.transition=""},200)}static{Vn(Bd({id:null,block:'[[[11,"button"],[24,4,"button"],[24,0,"transition text-gray-300 hover:text-white outline-none focus-visible:ring rounded p-1"],[16,"aria-label",[52,[30,0,["prefersDark"]],"Switch to light mode","Switch to dark mode"]],[17,1],[4,[32,0],["click",[30,0,["toggleMode"]]],null],[12],[1,"\\n"],[41,[30,0,["prefersDark"]],[[[1," "],[10,"svg"],[14,"aria-hidden","true"],[14,0,"w-5 h-5"],[14,"fill","currentColor"],[14,"viewBox","0 0 20 20"],[12],[1,"\\n "],[10,"path"],[14,"d","M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z"],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],[[[1," "],[10,"svg"],[14,"aria-hidden","true"],[14,0,"w-5 h-5"],[14,"fill","currentColor"],[14,"viewBox","0 0 20 20"],[12],[1,"\\n "],[10,"path"],[14,"d","M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 8a4 4 0 11-8 0 4 4 0 018 0zm-.464 4.95l.707.707a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414zm2.12-10.607a1 1 0 010 1.414l-.706.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM17 11a1 1 0 100-2h-1a1 1 0 100 2h1zm-7 4a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.05 6.464A1 1 0 106.465 5.05l-.708-.707a1 1 0 00-1.414 1.414l.707.707zm1.414 8.486l-.707.707a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414zM4 11a1 1 0 100-2H3a1 1 0 000 2h1z"],[14,"clip-rule","evenodd"],[14,"fill-rule","evenodd"],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]]],[13]],["&attrs"],["if"]]',moduleName:"(unknown template module)",scope:()=>[Km],isStrictMode:!0}),this)}}const qb=Vn(Bd({id:null,block:'[[[1,[28,[32,0],["Ember Focus Trap"],null]],[1,"\\n\\n"],[10,"header"],[14,0,"sticky top-0 z-10 bg-gray-900 border-b border-gray-700"],[12],[1,"\\n "],[10,0],[14,0,"flex items-center h-16 px-4 mx-auto max-w-screen-xl"],[12],[1,"\\n "],[8,[32,1],[[24,0,"text-xl font-semibold text-primary-500 hover:text-primary-400"]],[["@route"],["index"]],[["default"],[[[[1,"\\n Ember Focus Trap\\
1n "]],[]]]]],[1,"\\n\\n "],[10,"nav"],[14,0,"flex items-center ml-auto gap-6"],[12],[1,"\\n "],[8,[32,1],[[24,0,"text-gray-200 hover:text-white pb-1 border-b-2 border-transparent hover:border-primary-500"]],[["@route"],["docs"]],[["default"],[[[[1,"\\n Docs\\n "]],[]]]]],[1,"\\n\\n "],[10,3],[14,6,"https://github.com/josemarluedke/ember-focus-trap"],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[14,0,"text-gray-200 hover:text-white"],[12],[1,"\\n "],[10,"svg"],[14,"viewBox","0 0 20 20"],[14,0,"w-5 h-5 fill-current"],[12],[1,"\\n "],[10,"title"],[12],[1,"GitHub"],[13],[1,"\\n "],[10,"path"],[14,"d","M10 0a10 10 0 0 0-3.16 19.49c.5.1.68-.22.68-.48l-.01-1.7c-2.78.6-3.37-1.34-3.37-1.34-.46-1.16-1.11-1.47-1.11-1.47-.9-.62.07-.6.07-.6 1 .07 1.53 1.03 1.53 1.03.9 1.52 2.34 1.08 2.91.83.1-.65.35-1.09.63-1.34-2.22-.25-4.55-1.11-4.55-4.94 0-1.1.39-1.99 1.03-2.69a3.6 3.6 0 0 1 .1-2.64s.84-.27 2.75 1.02a9.58 9.58 0 0 1 5 0c1.91-1.3 2.75-1.02 2.75-1.02.55 1.37.2 2.4.1 2.64.64.7 1.03 1.6 1.03 2.69 0 3.84-2.34 4.68-4.57 4.93.36.31.68.92.68 1.85l-.01 2.75c0 .26.18.58.69.48A10 10 0 0 0 10 0"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n "],[8,[32,2],null,
1null,null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,"main"],[14,0,"min-h-screen bg-white dark:bg-gray-800 text-gray-900 dark:text-gray-100"],[12],[1,"\\n "],[46,[28,[31,1],null,null],null,null,null],[1,"\\n"],[13],[1,"\\n\\n"],[10,"footer"],[14,0,"border-t border-gray-300 dark:border-gray-700 p-4 text-center text-sm text-gray-700 dark:text-gray-300"],[12],[1,"\\n Released under MIT License - Created by\\n "],[10,3],[14,6,"https://github.com/josemarluedke"],[14,"target","_blank"],[14,"rel","noopener noreferrer"],[14,0,"whitespace-nowrap text-primary-600 hover:underline"],[12],[1,"\\n Josemar Luedke\\n "],[13],[1,"\\n"],[13]],[],["component","-outlet"]]',moduleName:"(unknown template module)",scope:()=>[zb,jg,Ub],isStrictMode:!0}),eb()),$b=Object.freeze(Object.defineProperty({__proto__:null,default:qb},Symbol.toStringTag,{value:"Module"}));class Vb extends dc{didTransition(){"test"!==Iv.environment&&"undefined"!=typeof window&&"function"==typeof window.scrollTo&&window.scrollTo(0,0)}static{rb(this.prototype,"didTransition",[Ba])}}const Hb=Object.freeze(Object.defineProperty({__proto__:null,default:Vb},Symbol.toStringTag,{value:"Module"})),Wb=(e,t)=>e===t,Qb=e=>e.replace(/<[^>]*>/g,"");class Gb extends Gv{onClick=e=>{const t=e.target.getAttribute("href");t&&function(e,t=500){!function(e,t,n=500){const r=document.scrollingElement?document.scrollingElement:document.body,i=r.scrollTop,s=e-i;let o=0;const a=()=>{var e,t,l;o+=20,r.scrollTop=(e=o,t=i,l=s,(e/=n/2)<1?l/2*e*e+t:-l/2*(--e*(e-2)-1)+t),o<n&&requestAnimationFrame(a)};a()}(e.offsetTop,0,t)}(document.querySelector(t))};static{Vn(Bd({id:null,block:'[[[10,0],[14,0,"overflow-y-auto sticky top-20 max-h-[calc(100vh-6rem)] pt-8 pb-4 text-sm text-gray-600 dark:text-gray-400"],[12],[1,"\\n "],[8,[32,0],null,[["@fromCurrentURL"],[true]],[["default"],[[[[1,"\\n"],[41,[30,1,["headings","length"]],[[[1," "],[10,0],[14,0,"mb-2 font-semibold text-xs uppercase tracking-wider text-gray-500 dark:text-gray-400"],[12],[1,"\\n On this page\\n "],[13],[1,"\\n "],[10,"ul"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,1,["headings"]]],null]],null],null,[[[1," "],[10,"li"],[14,0,"border-l border-gray-200 dark:border-gray-700"],[12],[1,"\\n "],[11,3],[16,6,[29,["#",[30,2,["id"]]]]],[16,0,[29,["transition block px-3 py-1 border-l-2 hover:text-primary-600 dark:hover:text-primary-400\\n ",[52,[28,[32,1],[[30,2,["id"]],[30,3]],null],"border-primary-500 text-primary-600 dark:text-primary-400 font-medium","border-transparent"]]]],[4,[32,2],["click",[30,0,["onClick"]]],null],[12],[1,"\\n "],[1,[28,[32,3],[[30,2,["title"]]],null]],[1,"\\n "],[13],[1,"\\n\\n"],[41,[30,2,["headings","length"]],[[[1," "],[10,"ul"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,2,["headings"]]],null]],null],null,[[[1," "],[10,"li"],[12],[1,"\\n "],[11,3],[16,6,[29,["#",[30,4,["id"]]]]],[16,0,[29,["transition block pl-6 py-1 border-l-2 hover:text-primary-600 dark:hover:text-primary-400\\n ",[52,[28,[32,1],[[30,4,["id"]],[30,3]],null],"border-primary-500 text-primary-600 dark:text-primary-400 font-medium","border-transparent"]]]],[4,[32,2],["click",[30,0,["onClick"]]],null],[12],[1,"\\n "],[1,[28,[32,3],[[30,4,["title"]]],null]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[4]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[2]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "]],[1]]]]],[1,"\\n"],[13]],["page","heading","@currentHeadingId","subHeading"],["if","each","-track-array"]]',moduleName:"(unknown template module)",scope:()=>[db,Wb,Km,Qb],isStrictMode:!0}),this)}}class Kb{capabilities=Fn();constructor(e){this.owner=e}createModifier(e,t){return{instance:new e(this.owner,t),element:null}}installModifier(e,t,n){const r=function(e,t){const n=e;return n.element=t,n}(e,t);r.instance.modify(t,n.positional,n.named)}updateModifier(e,t){e.instance.modify(e.element,t.positional,t.named)}destroyModifier({instance:e}){fe(e)}}class Yb{constructor(e,t){Av(this,e)}
1modify(e,t,n){}}function Jb(e,t=[]){return void 0===e?[]:(e.forEach(e=>{t.push(e.id),Jb(e.headings,t)}),t)}Jv(e=>new Kb(e),Yb);class Xb extends Yb{handler=null;headings=[];observer=null;activeIndex=-1;handleObserver(e){let t=this.activeIndex||-1;const n=[],r=[];e.forEach(e=>{const t=(void 0!==e.boundingClientRect.y?e.boundingClientRect.y:e.boundingClientRect.top)<((void 0!==e.rootBounds?.y?e.rootBounds.y:e.rootBounds?.top)||0),i=e.target.getAttribute("id"),s=this.headings.findIndex(e=>e==i);t?n.push(s):r.push(s)});const i=Math.min(...r),s=Math.max(...n);n.length>0?t=s:r.length>0&&i<=this.activeIndex&&(t=i-1>=0?i-1:0),t!=this.activeIndex&&(this.activeIndex=t,"function"==typeof this.handler&&this.handler(this.headings[this.activeIndex]))}static{rb(this.prototype,"handleObserver",[Ba])}observe(){"IntersectionObserver"in window&&(this.observer=new IntersectionObserver(this.handleObserver,{rootMargin:"-96px",threshold:1}),this.headings.forEach(e=>{const t=document.getElementById(e);t&&this.observer?.observe(t)}))}unobserve(){this&&this.observer&&this.observer.disconnect()}constructor(e,t){super(e,t),this.handler=t.named.onIntersect,this.headings=Jb(t.named.headings),this.observe(),Dv(this,this.unobserve)}modify(e,t,n){this.observer&&this.unobserve(),this.handler=n.onIntersect,this.headings=Jb(n.headings),this.observe(),Dv(this,this.unobserve)}}class Zb extends Gv{static{nb(this.prototype,"docfy",[Oh])}#N=void ib(this,"docfy");static{nb(this.prototype,"isMenuOpen",[li],function(){return!1})}#M=void ib(this,"isMenuOpen");static{nb(this.prototype,"currentHeadingId",[li])}#P=void ib(this,"currentHeadingId");toggleMenu=()=>{this.isMenuOpen=!this.isMenuOpen};closeMenu=()=>{this.isMenuOpen=!1};setCurrentHeadingId=e=>{this.currentHeadingId=e};static{Vn(Bd({id:null,block:'[[[10,0],[14,0,"max-w-screen-xl mx-auto px-4"],[12],[1,"\\n "],[10,0],[14,0,"relative lg:flex"],[12],[1,"\\n"],[1," "],[10,0],[14,0,"pt-4 lg:hidden"],[12],[1,"\\n "],[11,"button"],[24,0,"flex items-center px-4 py-2 border border-gray-300 dark:border-gray-600 rounded text-sm text-gray-700 dark:text-gray-300"],[24,4,"button"],[4,[32,0],["click",[30,0,["toggleMenu"]]],null],[12],[1,"\\n "],[10,"svg"],[14,0,"w-5 h-5 mr-2"],[14,"fill","currentColor"],[14,"viewBox","0 0 20 20"],[12],[1,"\\n "],[10,"path"],[14,"d","M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h6a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"],[14,"clip-rule","evenodd"],[14,"fill-rule","evenodd"],[12],[13],[1,"\\n "],[13],[1,"\\n Contents\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[1," "],[10,0],[15,0,[29,["flex-none pt-4 pr-4 lg:w-56 lg:pt-8 lg:block\\n ",[52,[30,0,["isMenuOpen"]],"block","hidden"]]]],[12],[1,"\\n "],[10,"nav"],[14,0,"font-light space-y-1 lg:sticky lg:top-20 lg:overflow-y-auto lg:max-h-[calc(100vh-6rem)]"],[12],[1,"\\n"],[44,[[30,0,["docfy","nested"]]],[[[1," "],[10,"ul"],[14,0,"space-y-1"],[12],[1,"\\n"],[42,[28,[31,3],[[28,[31,3],[[30,1,["pages"]]],null]],null],null,[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[32,1],[[24,0,"block px-3 py-1.5 rounded text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 hover:text-primary-600 dark:hover:text-primary-400"],[4,[32,0],["click",[30,0,["closeMenu"]]],null]],[["@to","@activeClass"],[[30,2,["url"]],"bg-primary-50 dark:bg-primary-900/20 text-primary-700 dark:text-primary-400 font-medium"]],[["default"],[[[[1,"\\n "],[1,[30,2,["title"]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[2]],null],[1,"\\n"],[42,[28,[31,3],[[28,[31,3],[[30,1,["children"]]],null]],null],null,[[[1," "],[10,"li"],[14,0,"pt-2"],[12],[1,"\\n "],[10,0],[14,0,"px-3 pb-1 text-xs font-semibold uppercase tracking-wider text-gray-500 dark:text-gray-400"],[12],[1,"\\n "],[1,[30,3,["label"]]],[1,"\\n "],[13],[1,"\\n "],[10,"ul"],[14,0,"space-y-1"],[12],[1,"\\n"],[42,[28,[31,3],[[28,[31,3],[[30,3,["pages"]]],null]],null],null,[[[1," "],[10,"li"],[12],[1,"\\n "],[8,[32,1],[[24,0,"block px-3 py-1.5 rounded text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-700 hover:text-primary-600 dark:hover:text-primary-400"],[4,[32,0],["click",[30,0,["closeMenu"]]],null]],[["@to","@activeClass"],[[30,4,["url"]],"bg-primary-50 dark:bg-primary-900/20 text-primary-700 dark:text-primary-400 font-medium"]],[["default"],[[[[1,"\\n "],[1,[30,4,["title"]]],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"]],[4]],null],[1," "],[13],[1,"\\n "],[13],[1,"\\n"]],[3]],null],[1," "],[13],[1,"\\n"]],[1]]],[1," "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[1," "],[10,0],[14,0,"flex-1 min-w-0 py-8 lg:px-6"],[12],[1,"\\n "],[8,[32,2],null,[["@fromCurrentURL"],[true]],[["default"],[[[[1,"\\n "],[11,0],[24,0,"prose dark:prose-invert max-w-none"],[4,[32,3],null,[["onIntersect","headings"],[[30,0,["setCurrentHeadingId"]],[30,5,["headings"]]]]],[12],[1,"\\n "],[18,8,null],[1,"\\n "],[13],[1,"\\n "]],[5]]]]],[1,"\\n\\n"],[1," "],[10,0],[14,0,"flex flex-wrap justify-between mt-8 pt-6 border-t border-gray-200 dark:border-gray-700"],[12],[1,"\\n "],[8,[32,4],null,
1null,[["default"],[[[[1,"\\n "],[10,0],[14,0,"flex items-center pr-2"],[12],[1,"\\n"],[41,[30,6],[[[1," "],[10,"svg"],[14,0,"h-4 mr-2 text-gray-500"],[14,"fill","currentColor"],[14,"viewBox","0 0 20 20"],[12],[1,"\\n "],[10,"path"],[14,"d","M7.707 14.707a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l2.293 2.293a1 1 0 010 1.414z"],[14,"clip-rule","evenodd"],[14,"fill-rule","evenodd"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[8,[32,1],[[24,0,"text-primary-600 dark:text-primary-400 hover:text-primary-700 dark:hover:text-primary-300"]],[["@to"],[[30,6,["url"]]]],[["default"],[[[[1,"\\n "],[1,[30,6,["title"]]],[1,"\\n "]],[]]]]],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "],[10,0],[14,0,"flex items-center pl-2"],[12],[1,"\\n"],[41,[30,7],[[[1," "],[8,[32,1],[[24,0,"text-primary-600 dark:text-primary-400 hover:text-primary-700 dark:hover:text-primary-300"]],[["@to"],[[30,7,["url"]]]],[["default"],[[[[1,"\\n "],[1,[30,7,["title"]]],[1,"\\n "]],[]]]]],[1,"\\n "],[10,"svg"],[14,0,"h-4 ml-2 text-gray-500"],[14,"fill","currentColor"],[14,"viewBox","0 0 20 20"],[12],[1,"\\n "],[10,"path"],[14,"d","M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z"],[14,"clip-rule","evenodd"],[14,"fill-rule","evenodd"],[12],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],[6,7]]]]],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n\\n"],[1," "],[10,0],[14,0,"flex-none hidden w-52 pl-4 xl:block"],[12],[1,"\\n "],[8,[32,5],null,[["@currentHeadingId"],[[30,0,["currentHeadingId"]]]],null],[1,"\\n "],[13],[1,"\\n "],[13],[1,"\\n"],[13]],["node","page","child","page","page","previous","next","&default"],["if","let","each","-track-array","yield"]]',moduleName:"(unknown template module)",scope:()=>[Km,hb,db,Xb,pb,Gb],isStrictMode:!0}),this)}}const e_=Vn(Bd({id:null,block:'[[[8,[32,0],null,null,[["default"],[[[[1,"\\n "],[46,[28,[31,1],null,null],null,null,null],[1,"\\n"]],[]]]]]],[],["component","-outlet"]]',moduleName:"(unknown template module)",scope:()=>[Zb],isStrictMode:!0}),eb()),t_=Object.freeze(Object.defineProperty({__proto__:null,default:e_},Symbol.toStringTag,{value:"Module"})),n_=Vn(Bd({id:null,block:'[[[1," "],[10,"h1"],[14,1,"acknowledgments"],[12],[10,3],[14,6,"#acknowledgments"],[12],[1,"Acknowledgments"],[13],[13],[1,"\\n"],[10,2],[12],[1,"Thanks to "],[10,3],[14,6,"https://github.com/davidtheclark"],[12],[1,"@davidtheclark"],[13],[1," for creating "],[10,3],[14,6,"https://github.com/davidtheclark/focus-trap"],[12],[1,"focus-trap"],[13],[1,".\\nThis addon was only made possible by his work on the underlying library we use."],[13],[1,"\\n"],[10,2],[12],[1,"I acknowledgments that most of the examples and wording of this documentation\\nwas inspired/copied from his work. In addition, I used his React component to\\nguide the implementation of the modifier."],[13],[1,"\\n"],[10,2],[12],[1,"Thanks to all the Ember folks as well for making modifiers possible."],[13]],[],[]]',moduleName:"(unknown template module)",isStrictMode:!0}),eb()),r_=Object.freeze(Object.defineProperty({__proto__:null,default:n_},Symbol.toStringTag,{value:"Module"})),i_=Vn(Bd({id:null,block:'[[[1," "],[10,"h1"],[14,1,"arguments"],[12],[10,3],[14,6,"#arguments"],[12],[1,"Arguments"],[13],[13],[1,"\\n"],[10,"h2"],[14,1,"focustrapoptions"],[12],[10,3],[14,6,"#focustrapoptions"],[12],[1,"focusTrapOptions"],[13],[13],[1,"\\n"],[10,2],[12],[1,"Type: Object, optional"],[13],[1,"\\n"],[10,2],[12],[1,"Pass any of the options available in focus-trap\'s createOptions. "],[10,3],[14,6,"https://github.com/davidtheclark/focus-trap#focustrap--createfocustrapelement-createoptions"],[12],[1,"See\\ndocumentation"],[13],[1,"."],[13],[1,"\\n"],[10,"h2"],[14,1,"isactive"],[12],[10,3],[14,6,"#isactive"],[12],[1,"isActive"],[13],[13],[1,"\\n"],[10,2],[12],[1,"Type: Boolean, optional"],[13],[1,"\\n"],[10,2],[12],[1,"By default, the FocusTrap activates when the element renders.\\nSo you activate and deactivate it by the live cycle of element.\\nIf, however, you want to control when FocusTrap is activated or deactivated,\\nyou can use this option."],[13],[1,"\\n"],[10,"h2"],[14,1,"ispaused"],[12],[10,3],[14,6,"#ispaused"],[12],[1,"isPaused"],[13],[13],[1,"\\n"],[10,2],[12],[1,"Type: Boolean, optional"],[13],[1,"\\n"],[10,2],[12],[1,"If you would like to pause or unpause the focus trap (see "],[10,3],[14,6,"https://github.com/davidtheclark/focus-trap#focustrappause"],[12],[1,"focus-trap\'s documentation"],[13],[1,"), toggle this argument."],[13],[1,"\\n"],[10,"h2"],[14,1,"shouldselffocus"],[12],[10,3],[14,6,"#shouldselffocus"],[12],[1,"shouldSelfFocus"],[13],[13],[1,"\\n"],[10,2],[12],[1,"Type: Boolean, optional"],[13],[1,"\\n"],[10,2],[12],[1,"If you would like to initially focus in the element in which the modifier is\\nbeing applied."],[13],[1,"\\n"],[10,2],[12],[10,"strong"],[12],[1,"Important:"],[13],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[1,"For the focus in the container to work, you must make it focusable. You can\\naccomplish that by adding "],[10,"code"],[12],[1,"tabindex=\\"-1\\""],[13],[1,"."],[13],[1,"\\n"],[10,"li"],[12],[1,"This options has no effect if something is passed in "],[10,"code"],[12],[1,"initialFocus"],[13],[1," under "],[10,"code"],[12],[1,"focusTrapOptions"],[13],[1,"."],[13],[1,"\\n"],[13],[1,"\\n"],[10,"h2"],[14,1,"additionalelements"],[12],[10,3],[14,6,"#additionalelements"],[12],[1,"additionalElements"],[13],[13],[1,"\\n"],[10,2],[12],[1,"Type: Array, optional"],[13],[1,"\\n"],[10,2],[12],[1,"If needed, additional elements or containers can be added where focus-trap needs to be applied to. For example, absolutely/fixed-positioned dropdowns or popovers placed within a wormhole/placeholder that need to be included in said focus-trap."],[13],[1,"\\n"],[10,2],[12],[1,"As mentioned within "],[10,3],[14,6,"https://github.com/focus-trap/focus-trap#createfocustrapelement-createoptions"],[12],[1,"focus-trap\'s documentation"],[13],[1,", the order determines where the focus will go after the last tabbable element of a DOM node/selector is reached."],[13]],[],[]]',moduleName:"(unknown template module)",isStrictMode:!0}),eb()),s_=Object.freeze(Object.defineProperty({__proto__:null,default:i_},Symbol.toStringTag,{value:"Module"})); 2/*! 3* tabbable 6.4.0 4* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE 5*/ 6var o_=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not
6(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],a_=o_.join(","),l_="undefined"==typeof Element,u_=l_?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,c_=!l_&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},h_=function(e,t){var n;void 0===t&&(t=!0);var r=null==e||null===(n=e.getAttribute)||void 0===n?void 0:n.call(e,"inert");return""===r||"true"===r||t&&e&&("function"==typeof e.closest?e.closest("[inert]"):h_(e.parentNode))},d_=function(e,t,n){if(h_(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(a_));return t&&u_.call(e,a_)&&r.unshift(e),r.filter(n)},p_=function(e,t,n){for(var r=[],i=Array.from(e);i.length;){var s=i.shift();if(!h_(s,!1))if("SLOT"===s.tagName){var o=s.assignedElements(),a=o.length?o:s.children,l=p_(a,!0,n);
vendor: 4,771 bytes, lines 6-11
6n.flatten?r.push.apply(r,l):r.push({scopeParent:s,candidates:l})}else{u_.call(s,a_)&&n.filter(s)&&(t||!e.includes(s))&&r.push(s);var u=s.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(s),c=!h_(u,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(u&&c){var h=p_(!0===u?s.children:u.children,!0,n);n.flatten?r.push.apply(r,h):r.push({scopeParent:s,candidates:h})}else i.unshift.apply(i,s.children)}}return r},f_=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},m_=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!f_(e)?0:e.tabIndex},g_=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},y_=function(e){return"INPUT"===e.tagName},v_=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},b_=function(e,t){return!(t.disabled||function(e){return y_(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("full-native"===n&&"checkVisibility"in e)return!e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(e).visibility)return!0;var i=u_.call(e,"details>summary:first-of-type")?e.parentElement:e;if(u_.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return v_(e)}else{if("function"==typeof r){for(var s=e;e;){var o=e.parentElement,a=c_(e);if(o&&!o.shadowRoot&&!0===r(o))return v_(e);e=e.assignedSlot?e.assignedSlot:o||a===e.ownerDocument?o:a.host}e=s}if(function(e){var t,n,r,i,s=e&&c_(e),o=null===(t=s)||void 0===t?void 0:t.host,a=!1;if(s&&s!==e)for(a=!!(null!==(n=o)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(o)||null!=e&&null!==(i=e.ownerDocument)&&void 0!==i&&i.contains(e));!a&&o;){var l,u,c;a=!(null===(u=o=null===(l=s=c_(o))||void 0===l?void 0:l.host)||void 0===u||null===(c=u.ownerDocument)||void 0===c||!c.contains(o))}return a}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some(function(e){return"SUMMARY"===e.tagName})}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!u_.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},__=function(e,t){return!(function(e){return function(e){return y_(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||c_(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!i||i===e}(e)}(t)||m_(t)<0||!b_(e,t))},w_=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},k_=function(e){var t=[],n=[];return e.forEach(function(e,r){var i=!!e.scopeParent,s=i?e.scopeParent:e,o=function(e,t){var n=m_(e);return n<0&&t&&!f_(e)?0:n}(s,i),a=i?k_(e.candidates):s;0===o?i?t.push.apply(t,a):t.push(s):n.push({documentOrder:r,tabIndex:o,item:e,isScope:i,content:a})}),n.sort(g_).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(t)},j_=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==u_.call(e,a_)&&__(t,e)},x_=o_.concat("iframe:not([inert]):not([inert] *)").join(","),S_=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==u_.call(e,x_)&&b_(t,e)}; 7/*! 8* focus-trap 8.0.0 9* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE 10*/ 11function E_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function T_(e,t,n,r,i,s,o){try{var a=e[s](o),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(r,i)}function O_(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var s=e.apply(t,n);function o(e){T_(s,r,i,o,a,"next",e)}function a(e){T_(s,r,i,o,a,"throw",e)}o(void 0)})}}function R_(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
11if(!n){if(Array.isArray(e)||(n=P_(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,s=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw s}}}}function A_(e,t,n){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function N_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C_(Object(n),!0).forEach(function(t){A_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function I_(){ 12/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ 13var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function s(n,r,i,s){var l=r&&r.prototype instanceof a?r:a,u=Object.create(l.prototype);return M_(u,"_invoke",function(n,r,i){var s,a,l,u=0,c=i||[],h=!1,d={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return s=t,a=0,l=e,d.n=n,o}};function p(n,r){for(a=n,l=r,t=0;!h&&u&&!i&&t<c.length;t++){var i,s=c[t],p=d.p,f=s[2];n>3?(i=f===r)&&(l=s[(a=s[4])?5:(a=3,3)],s[4]=s[5]=e):s[0]<=p&&((i=n<2&&p<s[1])?(a=0,d.v=r,d.n=s[1]):p<f&&(i=n<3||s[0]>r||r>f)&&(s[4]=n,s[5]=r,d.n=f,a=0))}if(i||n>1)return o;throw h=!0,r}return function(i,c,f){if(u>1)throw TypeError("Generator is already running");for(h&&1===c&&p(c,f),a=c,l=f;(t=a<2?e:l)||!h;){s||(a?a<3?(a>1&&(d.n=-1),p(a,l)):d.n=l:d.v=l);try{if(u=2,s){if(a||(i="next"),t=s[i]){if(!(t=t.call(s,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,a<2&&(a=0)}else 1===a&&(t=s.return)&&t.call(s),a<2&&(l=TypeError("The iterator does not provide a '"+i+"' method"),a=1);s=e}else if((t=(h=d.n<0)?l:n.call(r,d))!==o)break}catch(t){s=e,a=1,l=t}finally{u=1}}return{value:t,done:h}}}(n,i,s),!0),u}var o={};function a(){}function l(){}function u(){}t=Object.getPrototypeOf;var c=[][r]?t(t([][r]())):(M_(t={},r,function(){return this}),t),h=u.prototype=a.prototype=Object.create(c);function d(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,u):(e.__proto__=u,M_(e,i,"GeneratorFunction")),e.prototype=Object.create(h),e}return l.prototype=u,M_(h,"constructor",u),M_(u,"constructor",l),l.displayName="GeneratorFunction",M_(u,i,"GeneratorFunction"),M_(h),M_(h,i,"Generator"),M_(h,r,function(){return this}),M_(h,"toString",function(){return"[object Generator]"}),(I_=function(){return{w:s,m:d}})()}function M_(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}M_=function(e,t,n,r){function s(t,n){M_(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(s("next",0),s("throw",1),s("return",2))},M_(e,t,n,r)}function P_(e,t){if(e){if("string"==typeof e)return E_(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E_(e,t):void 0}}var D_={getActiveTrap:function(e){return(null==e?void 0:e.length)>0?e[e.length-1]:null},activateTrap:function(e,t){t!==D_.getActiveTrap(e)&&D_.pauseTrap(e);var n=e.indexOf(t);-1===n||e.splice(n,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),D_.unpauseTrap(e)},pauseTrap:function(e){var t=D_.getActiveTrap(e);null==t||t._setPausedState(!0)},unpauseTrap:function(e){var t=D_.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},L_=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},z_=function(e){return L_(e)&&!e.shiftKey},F_=function(e){return L_(e)&&e.shiftKey},B_=function(e){return setTimeout(e,0)},U_=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e},q_=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},$_=[],V_=function(e,t){var n,r=(null==t?void 0:t.document)||document,i=(null==t?void 0:t.trapStack)||$_,s=N_({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:z_,isKeyBackward:F_},t),o={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},a=function(e,t,n){return e&&void 0!==e[t]?e[t]:s[n||t]},l=function(e,t){var n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return o.containerGroups.findIndex(function(t){var r=t.container,i=t.tabbableNodes;return r.contains(e)||(null==n?void 0:n.includes(r))||i.find(function(t){return t===e})})},u=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.hasFallback,o=void 0!==i&&i,a=n.params,l=void 0===a?[]:a,u=s[e];if("function"==typeof u&&(u=u.apply(void 0,function(e){if(Array.isArray(e))return E_(e)}(t=l)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||P_(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),!0===u&&(u=void 0),!u){if(void 0===u||!1===u)return u;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var c=u;if("string"==typeof u){try{c=r.querySelector(u)}catch(h){throw new Error("`".concat(e,'` appears to be an invali
13d selector; error="').concat(h.message,'"'))}if(!c&&!o)throw new Error("`".concat(e,"` as selector refers to no known node"))}return c},c=function(){var e=u("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!S_(e,s.tabbableOptions))if(l(r.activeElement)>=0)e=r.activeElement;else{var t=o.tabbableGroups[0];e=t&&t.firstTabbableNode||u("fallbackFocus")}else null===e&&(e=u("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},h=function(){if(o.containerGroups=o.containers.map(function(e){var t=function(e,t){var n;return n=(t=t||{}).getShadowRoot?p_([e],t.includeContainer,{filter:__.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:w_}):d_(e,t.includeContainer,__.bind(null,t)),k_(n)}(e,s.tabbableOptions),n=function(e,t){return(t=t||{}).getShadowRoot?p_([e],t.includeContainer,{filter:b_.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):d_(e,t.includeContainer,b_.bind(null,t))}(e,s.tabbableOptions),r=t.length>0?t[0]:void 0,i=t.length>0?t[t.length-1]:void 0,o=n.find(function(e){return j_(e)}),a=n.slice().reverse().find(function(e){return j_(e)}),l=!!t.find(function(e){return m_(e)>0});return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:l,firstTabbableNode:r,lastTabbableNode:i,firstDomTabbableNode:o,lastDomTabbableNode:a,nextTabbableNode:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t.indexOf(e);return i<0?r?n.slice(n.indexOf(e)+1).find(function(e){return j_(e)}):n.slice(0,n.indexOf(e)).reverse().find(function(e){return j_(e)}):t[i+(r?1:-1)]}}}),o.tabbableGroups=o.containerGroups.filter(function(e){return e.tabbableNodes.length>0}),o.tabbableGroups.length<=0&&!u("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(o.containerGroups.find(function(e){return e.posTabIndexesFound})&&o.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},d=function(e){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?d(t.shadowRoot):t},p=function(e){!1!==e&&e!==d(document)&&(e&&e.focus?(e.focus({preventScroll:!!s.preventScroll}),o.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):p(c()))},f=function(e){var t=u("setReturnFocus",{params:[e]});return t||!1!==t&&e},m=function(e){var t=e.target,n=e.event,r=e.isBackward,i=void 0!==r&&r;t=t||q_(n),h();var a=null;if(o.tabbableGroups.length>0){var c=l(t,n),d=c>=0?o.containerGroups[c]:void 0;if(c<0)a=i?o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:o.tabbableGroups[0].firstTabbableNode;else if(i){var p=o.tabbableGroups.findIndex(function(e){var n=e.firstTabbableNode;return t===n});if(p<0&&(d.container===t||S_(t,s.tabbableOptions)&&!j_(t,s.tabbableOptions)&&!d.nextTabbableNode(t,!1))&&(p=c),p>=0){var f=0===p?o.tabbableGroups.length-1:p-1,m=o.tabbableGroups[f];a=m_(t)>=0?m.lastTabbableNode:m.lastDomTabbableNode}else L_(n)||(a=d.nextTabbableNode(t,!1))}else{var g=o.tabbableGroups.findIndex(function(e){var n=e.lastTabbableNode;return t===n});if(g<0&&(d.container===t||S_(t,s.tabbableOptions)&&!j_(t,s.tabbableOptions)&&!d.nextTabbableNode(t))&&(g=c),g>=0){var y=g===o.tabbableGroups.length-1?0:g+1,v=o.tabbableGroups[y];a=m_(t)>=0?v.firstTabbableNode:v.firstDomTabbableNode}else L_(n)||(a=d.nextTabbableNode(t))}}else a=u("fallbackFocus");return a},g=function(e){var t=q_(e);
13l(t,e)>=0||(U_(s.clickOutsideDeactivates,e)?n.deactivate({returnFocus:s.returnFocusOnDeactivate}):U_(s.allowOutsideClick,e)||e.preventDefault())},y=function(e){var t=q_(e),n=l(t,e)>=0;if(n||t instanceof Document)n&&(o.mostRecentlyFocusedNode=t);else{var r;e.stopImmediatePropagation();var i=!0;if(o.mostRecentlyFocusedNode)if(m_(o.mostRecentlyFocusedNode)>0){var a=l(o.mostRecentlyFocusedNode),u=o.containerGroups[a].tabbableNodes;if(u.length>0){var h=u.findIndex(function(e){return e===o.mostRecentlyFocusedNode});h>=0&&(s.isKeyForward(o.recentNavEvent)?h+1<u.length&&(r=u[h+1],i=!1):h-1>=0&&(r=u[h-1],i=!1))}}else o.containerGroups.some(function(e){return e.tabbableNodes.some(function(e){return m_(e)>0})})||(i=!1);else i=!1;i&&(r=m({target:o.mostRecentlyFocusedNode,isBackward:s.isKeyBackward(o.recentNavEvent)})),p(r||o.mostRecentlyFocusedNode||c())}o.recentNavEvent=void 0},v=function(e){(s.isKeyForward(e)||s.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];o.recentNavEvent=e;var n=m({event:e,isBackward:t});n&&(L_(e)&&e.preventDefault(),p(n))}(e,s.isKeyBackward(e))},b=function(e){var t;"Escape"!==(null==(t=e)?void 0:t.key)&&"Esc"!==(null==t?void 0:t.key)&&27!==(null==t?void 0:t.keyCode)||!1===U_(s.escapeDeactivates,e)||(e.preventDefault(),n.deactivate())},_=function(e){var t=q_(e);
13l(t,e)>=0||U_(s.clickOutsideDeactivates,e)||U_(s.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},w=function(){return o.active?(D_.activateTrap(i,n),s.delayInitialFocus?e=new Promise(function(e){o.delayInitialFocusTimer=B_(function(){p(c()),e()})}):(e=Promise.resolve(),p(c())),r.addEventListener("focusin",y,!0),r.addEventListener("mousedown",g,{capture:!0,passive:!1}),r.addEventListener("touchstart",g,{capture:!0,passive:!1}),r.addEventListener("click",_,{capture:!0,passive:!1}),r.addEventListener("keydown",v,{capture:!0,passive:!1}),r.addEventListener("keydown",b),e):Promise.resolve();var e},k=function(){if(o.active)return r.removeEventListener("focusin",y,!0),r.removeEventListener("mousedown",g,!0),r.removeEventListener("touchstart",g,!0),r.removeEventListener("click",_,!0),r.removeEventListener("keydown",v,!0),r.removeEventListener("keydown",b),n},j="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver(function(e){e.some(function(e){return Array.from(e.removedNodes).some(function(e){return e===o.mostRecentlyFocusedNode})})&&p(c())}):void 0,x=function(){j&&(j.disconnect(),o.active&&!o.paused&&o.containers.map(function(e){j.observe(e,{subtree:!0,childList:!0})}))};return n={get active(){return o.active},get paused(){return o.paused},activate:function(e){if(o.active)return this;var t,s=a(e,"onActivate"),l=a(e,"onPostActivate"),u=a(e,"checkCanFocusTrap"),c=D_.getActiveTrap(i),p=!1;c&&!c.paused&&(null===(t=c._setSubtreeIsolation)||void 0===t||t.call(c,!1),p=!0);try{u||h(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=d(r),null==s||s();var f=function(){var e=O_(I_().m(function e(){return I_().w(function(e){for(;;)switch(e.n){case 0:return u&&h(),e.n=1,w();case 1:n._setSubtreeIsolation(!0),x(),null==l||l();case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();if(u)return u(o.containers.concat()).then(f,f),this;f()}catch(g){var m;throw c===D_.getActiveTrap(i)&&p&&(null===(m=c._setSubtreeIsolation)||void 0===m||m.call(c,!0)),g}return this},deactivate:function(e){if(!o.active)return this;var t=N_({onDeactivate:s.onDeactivate,onPostDeactivate:s.onPostDeactivate,checkCanReturnFocus:s.checkCanReturnFocus},e);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,o.paused||n._setSubtreeIsolation(!1),o.alreadySilent.clear(),k(),o.active=!1,o.paused=!1,x(),D_.deactivateTrap(i,n);var r=a(t,"onDeactivate"),l=a(t,"onPostDeactivate"),u=a(t,"checkCanReturnFocus"),c=a(t,"returnFocus","returnFocusOnDeactivate");null==r||r();var h=function(){B_(function(){c&&p(f(o.nodeFocusedBeforeActivation)),null==l||l()})};return c&&u?(u(f(o.nodeFocusedBeforeActivation)).then(h,h),this):(h(),this)},pause:function(e){return o.active?(o.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return o.active?(o.manuallyPaused=!1,i[i.length-1]!==this?this:this._setPausedState(!1,e)):this}
13,updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return o.containers=t.map(function(e){return"string"==typeof e?r.querySelector(e):e}),s.isolateSubtrees&&function(e){o.active&&!o.paused&&n._setSubtreeIsolation(!1),o.adjacentElements.clear(),o.alreadySilent.clear();var t,r=new Set,i=new Set,s=R_(e);try{for(s.s();!(t=s.n()).done;){var a=t.value;r.add(a);for(var l="undefined"!=typeof ShadowRoot&&a.getRootNode()instanceof ShadowRoot,u=a;u;){r.add(u);var c=u.parentElement,h=[];c?h=c.children:!c&&l&&(h=u.getRootNode().children,c=u.getRootNode().host,l="undefined"!=typeof ShadowRoot&&c.getRootNode()instanceof ShadowRoot);var d,p=R_(h);try{for(p.s();!(d=p.n()).done;){var f=d.value;i.add(f)}}catch(m){p.e(m)}finally{p.f()}u=c}}}catch(m){s.e(m)}finally{s.f()}r.forEach(function(e){i.delete(e)}),o.adjacentElements=i}(o.containers),o.active&&(h(),o.paused||n._setSubtreeIsolation(!0)),x(),this}},Object.defineProperties(n,{_isManuallyPaused:{value:function(){return o.manuallyPaused}},_setPausedState:{value:function(e,t){if(o.paused===e)return this;if(o.paused=e,e){var r=a(t,"onPause"),i=a(t,"onPostPause");null==r||r(),k(),n._setSubtreeIsolation(!1),x(),null==i||i()}else{var s=a(t,"onUnpause"),l=a(t,"onPostUnpause");null==s||s();var u=function(){var e=O_(I_().m(function e(){return I_().w(function(e){for(;;)switch(e.n){case 0:return h(),e.n=1,w();case 1:n._setSubtreeIsolation(!0),x(),null==l||l();case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}();u()}return this}},_setSubtreeIsolation:{value:function(e){s.isolateSubtrees&&o.adjacentElements.forEach(function(t){var n;e?"aria-hidden"===s.isolateSubtrees?("true"!==t.ariaHidden&&"true"!==(null===(n=t.getAttribute("aria-hidden"))||void 0===n?void 0:n.toLowerCase())||o.alreadySilent.add(t),t.setAttribute("aria-hidden","true")):((t.inert||t.hasAttribute("inert"))&&o.alreadySilent.add(t),t.setAttribute("inert",!0)):o.alreadySilent.has(t)||("aria-hidden"===s.isolateSubtrees?t.removeAttribute("aria-hidden"):t.removeAttribute("inert"))})}}}),n.updateContainerElements(e),n};let H_;try{H_=Fn()}catch{H_=Fn()}const W_={};Jv(()=>({capabilities:H_,createModifier:()=>({focusTrapOptions:{},isActive:!0,isPaused:!1,shouldSelfFocus:!1,focusTrap:void 0}),installModifier(e,t,{named:n}){const{isActive:r,isPaused:i,shouldSelfFocus:s,focusTrapOptions:o,additionalElements:a,_createFocusTrap:l}=n;e.focusTrapOptions={...o},e.isActive=r??!0,e.isPaused=i??!1,!e.focusTrapOptions.initialFocus&&s&&(e.focusTrapOptions.initialFocus=t),!1!==e.focusTrapOptions.returnFocusOnDeactivate&&(e.focusTrapOptions.returnFocusOnDeactivate=!0);const u=l??V_;e.focusTrap=u(a?[t,...a]:t,e.focusTrapOptions),e.isActive&&e.focusTrap.activate(),e.isPaused&&e.focusTrap.pause()},updateModifier(e,{named:t}){const n=t.focusTrapOptions||{};if(e.isActive&&!t.isActive){const t=n.returnFocusOnDeactivate??!0;e.focusTrap?.deactivate({returnFocus:t})}else!e.isActive&&t.isActive&&e.focusTrap?.activate();e.isPaused&&!t.isPaused?e.focusTrap?.unpause():!e.isPaused&&t.isPaused&&e.focusTrap?.pause(),e.focusTrapOptions=n,e.isActive=t.isActive??e.isActive,e.isPaused=t.isPaused??e.isPaused},destroyModifier(e){e.focusTrap&&e.focusTrap.deactivate()}}),W_);let Q_=class extends Gv{static{nb(this.prototype,"isActive",[li],function(){return!1})}#D=void ib(this,"isActive");activate=()=>{this.isActive=!0};deactivate=()=>{this.isActive=!1};static{Vn(Bd({id:null,block:'[[[10,0],[14,0,"mb-4"],[12],[1,"\\n "],[11,"button"],[24,0,"button"],[24,4,"button"],[4,[32,0],["click",[30,0,["activate"]]],null],[12],[1,"\\n Activate trap\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[41,[30,0,["isActive"]],[[[1," "],[11,0],[24,0,"trap is-active"],[4,[32,1],null,[["focusTrapOptions"],[[28,[32,2],null,[["onDeactivate"],[[30,0,["deactivate"]]]]]]]],[12],[1,"\\n "],[10,2],[14,0,"mb-4"],[12],[1,"\\n Here is a focus trap\\n "],[10,3],[14,6,"javascript:void(0)"],[12],[1,"with"],[13],[1,"\\n "],[10,3],[14,6,"javascript:void(0)"],[12],[1,"some"],[13],[1,"\\n "],[10,3],[14,6,"javascript:void(0)"],[12],[1,"focusable"],[13],[1,"\\n parts.\\n "],[13],[1,"\\n "],[11,"button"],[24,0,"button"],[24,4,"button"],[4,[32,0],["click",[30,0,["deactivate"]]],null],[12],[1,"\\n Deactivate trap\\n "],[13],[1,"\\n "],[13],[1,"\\n"]],[]],null]],[],["if"]]',moduleName:"(unknown template module)",scope:()=>[Km,W_,Xv],isStrictMode:!0}),this)}};const G_=Object.freeze(Object.defineProperty({__proto__:null,default:Q_},Symbol.toStringTag,{value:"Module"}));let K_=class extends Gv{static{nb(this.prototype,"isActive",[li],function(){return!1})}#D=void ib(this,"isActive");activate=()=>{this.isActive=!0};deactivate=()=>{this.isActive&&(this.isActive=!1)};static{Vn(Bd({id:null,block:'[[[10,0],[14,0,"mb-4"],[12],[1,"\\n "],[11,"button"],[24,0,"button"],[24,4,"button"],[4,[32,0],["click",[30,0,["activate"]]],null],[12],[1,"\\n Activate trap\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[11,0],[16,0,[29,["trap ",[52,[30,0,["isActive"]],"is-active"]]]],[24,"tabindex","-1"],[4,[32,1],null,[["isActive","shouldSelfFocus","focusTrapOptions"],[[30,0,["isActive"]],true,[28,[32,2],null,[["onDeactivate","clickOutsideDeactivates"],[[30,0,["deactivate"]],true]]]]]],[12],[1,"\\n "],[10,2],[14,0,"pb-4"],[12],[1,"\\n Here is a focus trap\\n "],[10,3],[14,6,"javascript:void(0)"],[12],[1,"with"],[13],[1,"\\n "],[10,3],[14,6,"javascript:void(0)"],[12],[1,"some"],[13],[1,"\\n "],[10,3],[14,6,"javascript:void(0)"],[12],[1,"focusable"],[13],[1,"\\n parts.\\n "],[13],[1,"\\n "],[11,"button"],[24,0,"button"],[24,4,"button"],[4,[32,0],["click",[30,0,["deactivate"]]],null],[12],[1,"\\n Deactivate trap\\n "],[13],[1,"\\n"],[13]],[],["if"]]',moduleName:"(unknown template module)",scope:()=>[Km,W_,Xv],isStrictMode:!0}),this)}};const Y_=Object.freeze(Object.defineProperty({__proto__:null,default:K_},Symbol.toStringTag,{value:"Module"}));class J_ extends Gv{static{nb(this.prototype,"isActive",[li],function(){return!1})}#D=void ib(this,"isActive");activate=()=>{this.isActive=!0};deactivate=()=>{this.isActive&&(this.isActive=!1)};static{Vn(Bd({id:null,block:'[[[10,0],[14,0,"mb-4"],[12],[1,"\\n "],[11,"button"],[24,0,"button"],[24,4,"button"],[4,[32,0],["click",[30,0,["activate"]]],null],[12],[1,"\\n Activate trap\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[11,0],[16,0,[29,["trap ",[52,[30,0,["isActive"]],"is-active"]]]],[4,[32,1],null,[["isActive","focusTrapOptions"],[[30,0,["isActive"]],[28,[32,2],null,[["onDeactivate","initialFocus"],[[30,0,["deactivate"]],"#initial-focusee"]]]]]],[12],[1,"\\n "],[10,2],[14,0,"pb-4"],[12],[1,"\\n Here is a focus trap\\n "],[10,3],[14,6,"javascript:void(0)"],[12],[1,"with"],[13],[1,"\\n "],[10,3],[14,6,"javascript:void(0)"],[12],[1,"some"],[13],[1,"\\n "],[10,3],[14,6,"javascript:void(0)"],[12],[1,"focusable"],[13],[1,"\\n parts.\\n\\n "],[10,"br"],[12],[13],[1,"\\n Initially focused input\\n "],[10,"input"],[14,1,"initial-focusee"],[14,0,"bg-transparent border border-gray-400 dark:border-gray-600"],[14,4,"text"],[12],[13],[1,"\\n "],[13],[1,"\\n "],[11,"button"],[24,0,"button"],[24,4,"button"],[4,[32,0],["click",[30,0,["deactivate"]]],null],[12],[1,"\\n Deactivate trap\\n "],[13],[1,"\\n"],[13]],[],["if"]]',moduleName:"(unknown template module)",scope:()=>[Km,W_,Xv],isStrictMode:!0}),this)}}const X_=Object.freeze(Object.defineProperty({__proto__:null,default:J_},Symbol.toStringTag,{value:"Module"})),Z_=Vn(Bd({id:null,block:'[[[1," "],[10,"h1"],[14,1,"examples"],[12],[10,3],[14,6,"#examples"],[12],[1,"Examples"],[13],[13],[1,"\\n"],[10,2],[12],[1,"Check the demos from the underlying library "],[10,3],[14,6,"https://focus-trap.github.io/focus-trap/"],[14,"target","_blank"],[12],[1,"here"],[13],[1,"."],[13],[1,"\\n"],[10,"h2"],[14,1,"examples"],[12],[10,3],[14,6,"#examples"],[12],[1,"Examples"],[13],[13],[1,"\\n"],[8,[32,0],null,[["@id"],["docfy-demo-examples-initial-focus"]],[["default"],[[[[1,"\\n"],[8,[30,1,["Description"]],null,[["@title","@editUrl"],["Activated
13when rendered","https://github.com/josemarluedke/ember-focus-trap/edit/main/docs/examples-demo/initial-focus.md"]],[["default"],[[[[1,"\\n"],[10,2],[12],[1,"In this example, the focus trap is activated when the element is rendered.\\nWe also pass a function to "],[10,"code"],[12],[1,"onDeactivate"],[13],[1," to allow "],[10,"code"],[12],[1,"Escape"],[13],[1," key to deactivate\\nthe focus trap."],[13],[1,"\\n"]],[]]]]],[1,"\\n"],[8,[30,1,["Example"]],null,null,[["default"],[[[[1,"\\n"],[8,[32,1],null,null,null],[1,"\\n"]],[]]]]],[1,"\\n"],[8,[30,1,["Snippet"]],null,[["@name"],["component"]],[["default"],[[[[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"hljs language-gts"],[12],[10,1],[14,0,"hljs-keyword"],[12],[1,"import"],[13],[1," "],[10,1],[14,0,"hljs-title class_"],[12],[1,"Component"],[13],[1," "],[10,1],[14,0,"hljs-keyword"],[12],[1,"from"],[13],[1," "],[10,1],[14,0,"hljs-string"],[12],[1,"\'@glimmer/component\'"],[13],[1,";\\n"],[10,1],[14,0,"hljs-keyword"],[12],[1,"import"],[13],[1," { tracked } "],[10,1],[14,0,"hljs-keyword"],[12],[1,"from"],[13],[1," "],[10,1],[14,0,"hljs-string"],[12],[1,"\'@glimmer/tracking\'"],[13],[1,";\\n"],[10,1],[14,0,"hljs-keyword"],[12],[1,"import"],[13],[1," { on } "],[10,1],[14,0,"hljs-keyword"],[12],[1,"from"],[13],[1," "],[10,1],[14,0,"hljs-string"],[12],[1,"\'@ember/modifier\'"],[13],[1,";\\n"],[10,1],[14,0,"hljs-keyword"],[12],[1,"import"],[13],[1," { hash } "],[10,1],[14,0,"hljs-keyword"],[12],[1,"from"],[13],[1," "],[10,1],[14,0,"hljs-string"],[12],[1,"\'@ember/helper\'"],[13],[1,";\\n"],[10,1],[14,0,"hljs-keyword"],[12],[1,"import"],[13],[1," { focusTrap } "],[10,1],[14,0,"hljs-keyword"],[12],[1,"from"],[13],[1," "],[10,1],[14,0,"hljs-string"],[12],[1,"\'ember-focus-trap\'"],[13],[1,";\\n\\n"],[10,1],[14,0,"hljs-keyword"],[12],[1,"export"],[13],[1," "],[10,1],[14,0,"hljs-keyword"],[12],[1,"default"],[13],[1," "],[10,1],[14,0,"hljs-keyword"],[12],[1,"class"],[13],[1," "],[10,1],[14,0,"hljs-title class_"],[12],[1,"Demo"],[13],[1," "],[10,1],[14,0,"hljs-keyword"],[12],[1,"extends"],[13],[1," "],[10,1],[14,0,"hljs-title class_ inherited__"],[12],[1,"Component"],[13],[1," {\\n "],[10,1],[14,0,"hljs-meta"],[12],[1,"@tracked"],[13],[1," isActive = "],[10,1],[14,0,"hljs-literal"],[12],[1,"false"],[13],[1,";\\n\\n activate = "],[10,1],[14,0,"hljs-function"],[12],[1,"() =>"],[13],[1," {\\n "],[10,1],[14,0,"hljs-variable language_"],[12],[1,"this"],[13],[1,"."],[10,1],[14,0,"hljs-property"],[12],[1,"isActive"],[13],[1," = "],[10,1],[14,0,"hljs-literal"],[12],[1,"true"],[13],[1,";\\n };\\n\\n deactivate = "],[10,1],[14,0,"hljs-function"],[12],[1,"() =>"],[13],[1," {\\n "],[10,1],[14,0,"hljs-variable language_"],[12],[1,"this"],[13],[1,"."],[10,1],[14,0,"hljs-property"],[12],[1,"isActive"],[13],[1," = "],[10,1],[14,0,"hljs-literal"],[12],[1,"false"],[13],[1,";\\n };\\n\\n "],[10,1],[14,0,"xml"],[12],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"template"],[13],[1,">"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"div"],[13],[1," "],[10,1],[14,0,"hljs-attr"],[12],[1,"class"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"mb-4\\""],[13],[1,">"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"button"],[13],[1," "],[10,1],[14,0,"hljs-attr"],[12],[1,"type"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"button\\""],[13],[1," "],[1,"{{"],[10,1],[14,0,"hljs-attr"],[12],[1,"on"],[13],[1," \\""],[10,1],[14,0,"hljs-attr"],[12],[1,"click"],[13],[1,"\\" "],[10,1],[14,0,"hljs-attr"],[12],[1,"this.activate"],[13],[1,"}} "],[10,1],[14,0,"hljs-attr"],[12],[1,"class"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"button\\""],[13],[1,">"],[13],[1,"\\n Activate trap\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"button"],[13],[1,">"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"div"],[13],[1,">"],[13],[1,"\\n\\n "],[1,"{{#if this.isActive}}\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"div"],[13],[1,"\\n "],[10,1],[14,0,"hljs-attr"],[12],[1,"class"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"trap is-active\\""],[13],[1,"\\n "],[1,"{{"],[10,1],[14,0,"hljs-attr"],[12],[1,"focusTrap"],[13],[1,"\\n "],[10,1],[14,0,"hljs-attr"],[12],[1,"focusTrapOptions"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"(hash"],[13],[1," "],[10,1],[14,0,"hljs-attr"],[12],[1,"onDeactivate"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"this.deactivate)"],[13],[1,"\\n }}\\n >"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"p"],[13],[1," "],[10,1],[14,0,"hljs-attr"],[12],[1,"class"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"mb-4\\""],[13],[1,">"],[13],[1,"\\n Here is a focus trap\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"a"],[13],[1," "],[10,1],[14,0,"hljs-attr"],[12],[1,"href"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"javascript:void(0)\\""],[13],[1,">"],[13],[1,"with"],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"a"],[13],[1,">"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"a"],[13],[1," "],[10,1],[14,0,"hljs-attr"],[12],[1,"href"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"javascript:void(0)\\""],[13],[1,">"],[13],[1,"some"],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"a"],[13],[1,">"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"a"],[13],[1," "],[10,1],[14,0,"hljs-attr"],[12],[1,"href"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"javascript:void(0)\\""],[13],[1,">"],[13],[1,"focusable"],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"a"],[13],[1,">"],[13],[1,"\\n parts.\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"p"],[13],[1,">"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"button"],[13],[1," "],[10,1],[14,0,"hljs-attr"],[12],[1,"type"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"button\\""],[13],[1," "],[1,"{{"],[10,1],[14,0,"hljs-attr"],[12],[1,"on"],[13],[1," \\""],[10,1],[14,0,"hljs-attr"],[12],[1,"click"],[13],[1,"\\" "],[10,1],[14,0,"hljs-attr"],[12],[1,"this.deactivate"],[13],[1,"}} "],[10,1],[14,0,"hljs-attr"],[12],[1,"class"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"button\\""],[13],[1,">"],[13],[1,"\\n Deactivate trap\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"button"],[13],[1,">"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"div"],[13],[1,">"],[13],[1,"\\n "],[1,"{{/if}}\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"template"],[13],[1,">"],[13],[13],[1,"\\n}\\n"],[13],[13],[1,"\\n"]],[]]]]],[1,"\\n"]],[1]]]]],[1,"\\n"],[8,[32,0],null,[["@id"],["docfy-demo-examples-container-self-focus"]],[["default"],[[[[1,"\\n"],[8,[30,2,["Description"]],null,[["@title","@editUrl"],["Initial Focus","https://github.com/josemarluedke/ember-focus-trap/edit/main/docs/examples-demo/container-self-focus.md"]],[["default"],[[[[1,"\\n"],[10,2],[12],[1,"When this focus trap activates, focus jumps to a specific, manually specified element."],[13],[1,"\\n"]],[]]]]],[1,"\\n"],[8,[30,2,["Example"]],null,null,[["default"],[[[[1,"\\n"],[8,[32,2],null,
13null,null],[1,"\\n"]],[]]]]],[1,"\\n"],[8,[30,2,["Snippet"]],null,[["@name"],["component"]],[["default"],[[[[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"hljs language-gts"],[12],[10,1],[14,0,"hljs-keyword"],[12],[1,"import"],[13],[1," "],[10,1],[14,0,"hljs-title class_"],[12],[1,"Component"],[13],[1," "],[10,1],[14,0,"hljs-keyword"],[12],[1,"from"],[13],[1," "],[10,1],[14,0,"hljs-string"],[12],[1,"\'@glimmer/component\'"],[13],[1,";\\n"],[10,1],[14,0,"hljs-keyword"],[12],[1,"import"],[13],[1," { tracked } "],[10,1],[14,0,"hljs-keyword"],[12],[1,"from"],[13],[1," "],[10,1],[14,0,"hljs-string"],[12],[1,"\'@glimmer/tracking\'"],[13],[1,";\\n"],[10,1],[14,0,"hljs-keyword"],[12],[1,"import"],[13],[1," { on } "],[10,1],[14,0,"hljs-keyword"],[12],[1,"from"],[13],[1," "],[10,1],[14,0,"hljs-string"],[12],[1,"\'@ember/modifier\'"],[13],[1,";\\n"],[10,1],[14,0,"hljs-keyword"],[12],[1,"import"],[13],[1," { hash } "],[10,1],[14,0,"hljs-keyword"],[12],[1,"from"],[13],[1," "],[10,1],[14,0,"hljs-string"],[12],[1,"\'@ember/helper\'"],[13],[1,";\\n"],[10,1],[14,0,"hljs-keyword"],[12],[1,"import"],[13],[1," { focusTrap } "],[10,1],[14,0,"hljs-keyword"],[12],[1,"from"],[13],[1," "],[10,1],[14,0,"hljs-string"],[12],[1,"\'ember-focus-trap\'"],[13],[1,";\\n\\n"],[10,1],[14,0,"hljs-keyword"],[12],[1,"export"],[13],[1," "],[10,1],[14,0,"hljs-keyword"],[12],[1,"default"],[13],[1," "],[10,1],[14,0,"hljs-keyword"],[12],[1,"class"],[13],[1," "],[10,1],[14,0,"hljs-title class_"],[12],[1,"Demo"],[13],[1," "],[10,1],[14,0,"hljs-keyword"],[12],[1,"extends"],[13],[1," "],[10,1],[14,0,"hljs-title class_ inherited__"],[12],[1,"Component"],[13],[1," {\\n "],[10,1],[14,0,"hljs-meta"],[12],[1,"@tracked"],[13],[1," isActive = "],[10,1],[14,0,"hljs-literal"],[12],[1,"false"],[13],[1,";\\n\\n activate = "],[10,1],[14,0,"hljs-function"],[12],[1,"() =>"],[13],[1," {\\n "],[10,1],[14,0,"hljs-variable language_"],[12],[1,"this"],[13],[1,"."],[10,1],[14,0,"hljs-property"],[12],[1,"isActive"],[13],[1," = "],[10,1],[14,0,"hljs-literal"],[12],[1,"true"],[13],[1,";\\n };\\n\\n deactivate = "],[10,1],[14,0,"hljs-function"],[12],[1,"() =>"],[13],[1," {\\n "],[10,1],[14,0,"hljs-keyword"],[12],[1,"if"],[13],[1," ("],[10,1],[14,0,"hljs-variable language_"],[12],[1,"this"],[13],[1,"."],[10,1],[14,0,"hljs-property"],[12],[1,"isActive"],[13],[1,") {\\n "],[10,1],[14,0,"hljs-variable language_"],[12],[1,"this"],[13],[1,"."],[10,1],[14,0,"hljs-property"],[12],[1,"isActive"],[13],[1," = "],[10,1],[14,0,"hljs-literal"],[12],[1,"false"],[13],[1,";\\n }\\n };\\n\\n "],[10,1],[14,0,"xml"],[12],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"template"],[13],[1,">"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"div"],[13],[1," "],[10,1],[14,0,"hljs-attr"],[12],[1,"class"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"mb-4\\""],[13],[1,">"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"button"],[13],[1," "],[10,1],[14,0,"hljs-attr"],[12],[1,"type"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"button\\""],[13],[1," "],[1,"{{"],[10,1],[14,0,"hljs-attr"],[12],[1,"on"],[13],[1," \\""],[10,1],[14,0,"hljs-attr"],[12],[1,"click"],[13],[1,"\\" "],[10,1],[14,0,"hljs-attr"],[12],[1,"this.activate"],[13],[1,"}} "],[10,1],[14,0,"hljs-attr"],[12],[1,"class"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"button\\""],[13],[1,">"],[13],[1,"\\n Activate trap\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"button"],[13],[1,">"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"div"],[13],[1,">"],[13],[1,"\\n\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"div"],[13],[1,"\\n "],[10,1],[14,0,"hljs-attr"],[12],[1,"class"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"trap "],[1,"{{if this.isActive \'is-active\'}}\\""],[13],[1,"\\n "],[10,1],[14,0,"hljs-attr"],[12],[1,"tabindex"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"-1\\""],[13],[1,"\\n "],[1,"{{"],[10,1],[14,0,"hljs-attr"],[12],[1,"focusTrap"],[13],[1,"\\n "],[10,1],[14,0,"hljs-attr"],[12],[1,"isActive"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"this.isActive"],[13],[1,"\\n "],[10,1],[14,0,"hljs-attr"],[12],[1,"shouldSelfFocus"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"true"],[13],[1,"\\n "],[10,1],[14,0,"hljs-attr"],[12],[1,"focusTrapOptions"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"(hash"],[13],[1,"\\n "],[10,1],[14,0,"hljs-attr"],[12],[1,"onDeactivate"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"this.deactivate"],[13],[1,"\\n "],[10,1],[14,0,"hljs-attr"],[12],[1,"clickOutsideDeactivates"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"true"],[13],[1,"\\n )\\n }}\\n >"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"p"],[13],[1," "],[10,1],[14,0,"hljs-attr"],[12],[1,"class"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"pb-4\\""],[13],[1,">"],[13],[1,"\\n Here is a focus trap\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"a"],[13],[1," "],[10,1],[14,0,"hljs-attr"],[12],[1,"href"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"javascript:void(0)\\""],[13],[1,">"],[13],[1,"with"],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"a"],[13],[1,">"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"a"],[13],[1," "],[10,1],[14,0,"hljs-attr"],[12],[1,"href"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"javascript:void(0)\\""],[13],[1,">"],[13],[1,"some"],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"a"],[13],[1,">"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"a"],[13],[1," "],[10,1],[14,0,"hljs-attr"],[12],[1,"href"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"javascript:void(0)\\""],[13],[1,">"],[13],[1,"focusable"],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"a"],[13],[1,">"],[13],[1,"\\n parts.\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"p"],[13],[1,">"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"button"],[13],[1," "],[10,1],[14,0,"hljs-attr"],[12],[1,"type"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"button\\""],[13],[1," "],[1,"{{"],[10,1],[14,0,"hljs-attr"],[12],[1,"on"],[13],[1," \\""],[10,1],[14,0,"hljs-attr"],[12],[1,"click"],[13],[1,"\\" "],[10,1],[14,0,"hljs-attr"],[12],[1,"this.deactivate"],[13],[1,"}} "],[10,1],[14,0,"hljs-attr"],[12],[1,"class"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"button\\""],[13],[1,">"],[13],[1,"\\n Deactivate trap\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"button"],[13],[1,">"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"div"],[13],[1,">"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"template"],[13],[1,">"],[13],[13],[1,"\\n}\\n"],[13],[13],[1,"\\n"]],[]]]]],[1,"\\n"]],[2]]]]],[1,"\\n"],[8,[32,0],null,[["@id"],["docfy-demo-examples-activated-on-render"]],[["default"],[[[[1,"\\n"],[8,[30,3,["Description"]],null,[["@title","@editUrl"],["Self focus on the container","https://github.com/josemarluedke/ember-focus-trap/edit/main/docs/examples-demo/activated-on-render.md"]],[["default"],[[[[1,"\\n"],[10,2],[12],[1,"Initial focus is on the containing element, which has "],[10,"code"],[12],[1,"tabindex=\\"-1\\""],[13],[1,"; so when you tab through the trap focus does not return to the container."],[13],[1,"\\n"],[10,2],[12],[1,"In this example, clicking outside of the container will deactivate the focus\\
13ntrap. Note the option "],[10,"code"],[12],[1,"clickOutsideDeactivates"],[13],[1,"."],[13],[1,"\\n"],[10,2],[12],[1,"This example uses the modifier argument "],[10,"code"],[12],[1,"shouldSelfFocus"],[13],[1,". The same could be\\nachieved by adding an "],[10,"code"],[12],[1,"id"],[13],[1," to the container and passing the selector to "],[10,"code"],[12],[1,"initialFocus"],[13],[1,"\\nin "],[10,"code"],[12],[1,"focusTrapOptions"],[13],[1,". However, "],[10,"code"],[12],[1,"shouldSelfFocus"],[13],[1," is a short hand for passing\\nthe element directly to "],[10,"code"],[12],[1,"focusTrapOptions"],[13],[1,"."],[13],[1,"\\n"],[10,"aside"],[12],[1,"The option `shouldSelfFocus` is ignored if something is passed in `initialFocus`."],[13],[1,"\\n"]],[]]]]],[1,"\\n"],[8,[30,3,["Example"]],null,null,[["default"],[[[[1,"\\n"],[8,[32,3],null,null,null],[1,"\\n"]],[]]]]],[1,"\\n"],[8,[30,3,["Snippet"]],null,[["@name"],["component"]],[["default"],[[[[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"hljs language-gts"],[12],[10,1],[14,0,"hljs-keyword"],[12],[1,"import"],[13],[1," "],[10,1],[14,0,"hljs-title class_"],[12],[1,"Component"],[13],[1," "],[10,1],[14,0,"hljs-keyword"],[12],[1,"from"],[13],[1," "],[10,1],[14,0,"hljs-string"],[12],[1,"\'@glimmer/component\'"],[13],[1,";\\n"],[10,1],[14,0,"hljs-keyword"],[12],[1,"import"],[13],[1," { tracked } "],[10,1],[14,0,"hljs-keyword"],[12],[1,"from"],[13],[1," "],[10,1],[14,0,"hljs-string"],[12],[1,"\'@glimmer/tracking\'"],[13],[1,";\\n"],[10,1],[14,0,"hljs-keyword"],[12],[1,"import"],[13],[1," { on } "],[10,1],[14,0,"hljs-keyword"],[12],[1,"from"],[13],[1," "],[10,1],[14,0,"hljs-string"],[12],[1,"\'@ember/modifier\'"],[13],[1,";\\n"],[10,1],[14,0,"hljs-keyword"],[12],[1,"import"],[13],[1," { hash } "],[10,1],[14,0,"hljs-keyword"],[12],[1,"from"],[13],[1," "],[10,1],[14,0,"hljs-string"],[12],[1,"\'@ember/helper\'"],[13],[1,";\\n"],[10,1],[14,0,"hljs-keyword"],[12],[1,"import"],[13],[1," { focusTrap } "],[10,1],[14,0,"hljs-keyword"],[12],[1,"from"],[13],[1," "],[10,1],[14,0,"hljs-string"],[12],[1,"\'ember-focus-trap\'"],[13],[1,";\\n\\n"],[10,1],[14,0,"hljs-keyword"],[12],[1,"export"],[13],[1," "],[10,1],[14,0,"hljs-keyword"],[12],[1,"default"],[13],[1," "],[10,1],[14,0,"hljs-keyword"],[12],[1,"class"],[13],[1," "],[10,1],[14,0,"hljs-title class_"],[12],[1,"Demo"],[13],[1," "],[10,1],[14,0,"hljs-keyword"],[12],[1,"extends"],[13],[1," "],[10,1],[14,0,"hljs-title class_ inherited__"],[12],[1,"Component"],[13],[1," {\\n "],[10,1],[14,0,"hljs-meta"],[12],[1,"@tracked"],[13],[1," isActive = "],[10,1],[14,0,"hljs-literal"],[12],[1,"false"],[13],[1,";\\n\\n activate = "],[10,1],[14,0,"hljs-function"],[12],[1,"() =>"],[13],[1," {\\n "],[10,1],[14,0,"hljs-variable language_"],[12],[1,"this"],[13],[1,"."],[10,1],[14,0,"hljs-property"],[12],[1,"isActive"],[13],[1," = "],[10,1],[14,0,"hljs-literal"],[12],[1,"true"],[13],[1,";\\n };\\n\\n deactivate = "],[10,1],[14,0,"hljs-function"],[12],[1,"() =>"],[13],[1," {\\n "],[10,1],[14,0,"hljs-keyword"],[12],[1,"if"],[13],[1," ("],[10,1],[14,0,"hljs-variable language_"],[12],[1,"this"],[13],[1,"."],[10,1],[14,0,"hljs-property"],[12],[1,"isActive"],[13],[1,") {\\n "],[10,1],[14,0,"hljs-variable language_"],[12],[1,"this"],[13],[1,"."],[10,1],[14,0,"hljs-property"],[12],[1,"isActive"],[13],[1," = "],[10,1],[14,0,"hljs-literal"],[12],[1,"false"],[13],[1,";\\n }\\n };\\n\\n "],[10,1],[14,0,"xml"],[12],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"template"],[13],[1,">"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"div"],[13],[1," "],[10,1],[14,0,"hljs-attr"],[12],[1,"class"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"mb-4\\""],[13],[1,">"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"button"],[13],[1," "],[10,1],[14,0,"hljs-attr"],[12],[1,"type"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"button\\""],[13],[1," "],[1,"{{"],[10,1],[14,0,"hljs-attr"],[12],[1,"on"],[13],[1," \\""],[10,1],[14,0,"hljs-attr"],[12],[1,"click"],[13],[1,"\\" "],[10,1],[14,0,"hljs-attr"],[12],[1,"this.activate"],[13],[1,"}} "],[10,1],[14,0,"hljs-attr"],[12],[1,"class"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"button\\""],[13],[1,">"],[13],[1,"\\n Activate trap\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"button"],[13],[1,">"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"div"],[13],[1,">"],[13],[1,"\\n\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"div"],[13],[1,"\\n "],[10,1],[14,0,"hljs-attr"],[12],[1,"class"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"trap "],[1,"{{if this.isActive \'is-active\'}}\\""],[13],[1,"\\n "],[1,"{{"],[10,1],[14,0,"hljs-attr"],[12],[1,"focusTrap"],[13],[1,"\\n "],[10,1],[14,0,"hljs-attr"],[12],[1,"isActive"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"this.isActive"],[13],[1,"\\n "],[10,1],[14,0,"hljs-attr"],[12],[1,"focusTrapOptions"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"(hash"],[13],[1,"\\n "],[10,1],[14,0,"hljs-attr"],[12],[1,"onDeactivate"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"this.deactivate"],[13],[1,"\\n "],[10,1],[14,0,"hljs-attr"],[12],[1,"initialFocus"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"#initial-focusee\\""],[13],[1,"\\n )\\n }}\\n >"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"p"],[13],[1," "],[10,1],[14,0,"hljs-attr"],[12],[1,"class"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"pb-4\\""],[13],[1,">"],[13],[1,"\\n Here is a focus trap\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"a"],[13],[1," "],[10,1],[14,0,"hljs-attr"],[12],[1,"href"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"javascript:void(0)\\""],[13],[1,">"],[13],[1,"with"],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"a"],[13],[1,">"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"a"],[13],[1," "],[10,1],[14,0,"hljs-attr"],[12],[1,"href"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"javascript:void(0)\\""],[13],[1,">"],[13],[1,"some"],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"a"],[13],[1,">"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"a"],[13],[1," "],[10,1],[14,0,"hljs-attr"],[12],[1,"href"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"javascript:void(0)\\""],[13],[1,">"],[13],[1,"focusable"],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"a"],[13],[1,">"],[13],[1,"\\n parts.\\n\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"br"],[13],[1," />"],[13],[1,"\\n Initially focused input\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"input"],[13],[1,"\\n "],[10,1],[14,0,"hljs-attr"],[12],[1,"type"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"text\\""],[13],[1,"\\n "],[10,1],[14,0,"hljs-attr"],[12],[1,"id"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"initial-focusee\\""],[13],[1,"\\n "],[10,1],[14,0,"hljs-attr"],[12],[1,"class"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"bg-transparent border border-gray-400 dark:border-gray-600\\""],[13],[1,"\\n />"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"p"],[13],[1,">"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"button"],[13],[1," "],[10,1],[14,0,"hljs-attr"],[12],[1,"type"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"button\\""],[13],[1," "],[1,"{{"],[10,1],[14,0,"hljs-attr"],[12],[1,"on"],[13],[1," \\""],[10,1],[14,0,"hljs-attr"],[12],[1,"click"],[13],[1,"\\" "],[10,1],[14,0,"hljs-attr"],[12],[1,"this.deactivate"],[13],[1,"}} "],[10,1],[14,0,"hljs-attr"],[12],[1,"class"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"button\\""],[13],[1,">"],[13],[1,"\\n Deactivate trap\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"button"],[13],[1,">"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"div"],[13],[1,">"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"template"],[13],[1,">"],[13],[13],[1,"\\n}\\n"],[13],[13],[1,"\\n"]],[]]]]],[1,"\\n"]],[3]]]]]],["demo","demo","demo"],[]]',moduleName:"(unknown template module)",scope:()=>[cb,Q_,K_,J_],isStrictMode:!0}),eb()),ew=Object.freeze(Object.defineProperty({__proto__:null,default:Z_},Symbol.toStringTag,{value:"Module"})),tw=Vn(Bd({id:null,block:'[[[1," "],[10,"h1"],[14,1,"what-it-does"],[12],[10,3],[14,6,"#what-it-does"],[12],[1,"What it does?"],[13],[13],[1,"\\n"],[10,2],[12],[1,"Please read the "],[10,3],[14,6,"https://github.com/focus-trap/focus-trap"],[12],[1,"focus-trap"],[13],[1," documentation to understand what a focus trap is, what happens when a focus trap is activated, and what happens when one is deactivated."],[13],[1,"\\n"],[10,2],[12],[1,"This project is a simple Ember modifier that allow you to trap DOM nodes in\\nyour applications."],[13],[1,"\\n"],[10,"ul"],[12],[1,"\\n"],[10,"li"],[12],[1,"The focus trap automatically activates when element is rendered."],[13],[1,"\\n"],[10,"li"],[12],[1,"The focus trap automatically deactivates when element is removed."],[13],[1,"\\n"],[10,"li"],[12],[1,"The focus trap can be activated and deactivated, paused and unpaused via\\nnamed arguments."],[13],[1,"\\n"],[13],[1,"\\n"],[10,"h2"],[14,1,"example"],[12],[10,3],[14,6,"#example"],[12],[1,"Example"],[13],[13],[1,"\\n"],[10,2],[12],[1,"Below is a simple demo if a focus trap working. Click below to active the trap. You will notice that\\nyou can\'t tab to elements out of the box."],[13],[1,"\\n"],[10,"blockquote"],[12],[1,"\\n"],[10,2],[12],[1,"When a focus trap is active, the box will be highlighted."],[13],[1,"\\n"],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"hljs language-gts"],[12],[10,1],[14,0,"hljs-keyword"],[12],[1,"import"],[13],[1," "],[10,1],[14,0,"hljs-title class_"],[12],[1,"Component"],[13],[1," "],[10,1],[14,0,"hljs-keyword"],[12],[1,"from"],[13],[1," "],[10,1],[14,0,"hljs-string"],[12],[1,"\'@glimmer/component\'"],[13],[1,";\\n"],[10,1],[14,0,"hljs-keyword"],[12],[1,"import"],[13],[1," { tracked } "],[10,1],[14,0,"hljs-keyword"],[12],[1,"from"],[13],[1," "],[10,1],[14,0,"hljs-string"],[12],[1,"\'@glimmer/tracking\'"],[13],[1,";\\n"],[10,1],[14,0,"hljs-keyword"],[12],[1,"import"],[13],[1," { on } "],[10,1],[14,0,"hljs-keyword"],[12],[1,"from"],[13],[1," "],[10,1],[14,0,"hljs-string"],[12],[1,"\'@ember/modifier\'"],[13],[1,";\\n"],[10,1],[14,0,"hljs-keyword"],[12],[1,"import"],[13],[1," { hash } "],[10,1],[14,0,"hljs-keyword"],[12],[1,"from"],[13],[1," "],[10,1],[14,0,"hljs-string"],[12],[1,"\'@ember/helper\'"],[13],[1,";\\n"],[10,1],[14,0,"hljs-keyword"],[12],[1,"import"],[13],[1," { focusTrap } "],[10,1],[14,0,"hljs-keyword"],[12],[1,"from"],[13],[1," "],[10,1],[14,0,"hljs-string"],[12],[1,"\'ember-focus-trap\'"],[13],[1,";\\n\\n"],[10,1],[14,0,"hljs-keyword"],[12],[1,"export"],[13],[1," "],[10,1],[14,0,"hljs-keyword"],[12],[1,"default"],[13],[1," "],[10,1],[14,0,"hljs-keyword"],[12],[1,"class"],[13],[1," "],[10,1],[14,0,"hljs-title class_"],[12],[1,"Demo"],[13],[1," "],[10,1],[14,0,"hljs-keyword"],[12],[1,"extends"],[13],[1," "],[10,1],[14,0,"hljs-title class_ inherited__"],[12],[1,"Component"],[13],[1," {\\n "],[10,1],[14,0,"hljs-meta"],[12],[1,"@tracked"],[13],[1," isActive = "],[10,1],[14,0,"hljs-literal"],[12],[1,"false"],[13],[1,";\\n\\n activate = "],[10,1],[14,0,"hljs-function"],[12],[1,"() =>"],[13],[1," {\\n "],[10,1],[14,0,"hljs-variable language_"],[12],[1,"this"],[13],[1,"."],[10,1],[14,0,"hljs-property"],[12],[1,"isActive"],[13],[1," = "],[10,1],[14,0,"hljs-literal"],[12],[1,"true"],[13],[1,";\\n };\\n\\n deactivate = "],[10,1],[14,0,"hljs-function"],[12],[1,"() =>"],[13],[1," {\\n "],[10,1],[14,0,"hljs-variable language_"],[12],[1,"this"],[13],[1,"."],[10,1],[14,0,"hljs-property"],[12],[1,"isActive"],[13],[1," = "],[10,1],[14,0,"hljs-literal"],[12],[1,"false"],[13],[1,";\\n };\\n\\n "],[10,1],[14,0,"xml"],[12],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"template"],[13],[1,">"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"div"],[13],[1," "],[10,1],[14,0,"hljs-attr"],[12],[1,"class"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"my-4\\""],[13],[1,">"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"button"],[13],[1," "],[10,1],[14,0,"hljs-attr"],[12],[1,"type"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"button\\""],[13],[1," "],[1,"{{"],[10,1],[14,0,"hljs-attr"],[12],[1,"on"],[13],[1," \\""],[10,1],[14,0,"hljs-attr"],[12],[1,"click"],[13],[1,"\\" "],[10,1],[14,0,"hljs-attr"],[12],[1,"this.activate"],[13],[1,"}} "],[10,1],[14,0,"hljs-attr"],[12],[1,"class"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"button\\""],[13],[1,">"],[13],[1,"\\n Activate trap\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"button"],[13],[1,">"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"div"],[13],[1,">"],[13],[1,"\\n\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"div"],[13],[1,"\\n "],[10,1],[14,0,"hljs-attr"],[12],[1,"class"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"trap "],[1,"{{if this.isActive \'is-active\'}}\\""],[13],[1,"\\n "],[1,"{{"],[10,1],[14,0,"hljs-attr"],[12],[1,"focusTrap"],[13],[1,"\\n "],[10,1],[14,0,"hljs-attr"],[12],[1,"isActive"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"this.isActive"],[13],[1,"\\n "],[10,1],[14,0,"hljs-attr"],[12],[1,"focusTrapOptions"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"(hash"],[13],[1," "],[10,1],[14,0,"hljs-attr"],[12],[1,"escapeDeactivates"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"false)"],[13],[1,"\\n }}\\n >"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"p"],[13],[1," "],[10,1],[14,0,"hljs-attr"],[12],[1,"class"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"pb-4\\""],[13],[1,">"],[13],[1,"\\n Here is a focus trap\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"a"],[13],[1," "],[10,1],[14,0,"hljs-attr"],[12],[1,"href"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"javascript:void(0)\\""],[13],[1,">"],[13],[1,"with"],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"a"],[13],[1,">"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"a"],[13],[1," "],[10,1],[14,0,"hljs-attr"],[12],[1,"href"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"javascript:void(0)\\""],[13],[1,">"],[13],[1,"some"],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"a"],[13],[1,">"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"a"],[13],[1," "],[10,1],[14,0,"hljs-attr"],[12],[1,"href"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"javascript:void(0)\\""],[13],[1,">"],[13],[1,"focusable"],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"a"],[13],[1,">"],[13],[1,"\\n parts.\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"p"],[13],[1,">"],[13],[1,"\\n\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"<"],[10,1],[14,0,"hljs-name"],[12],[1,"button"],[13],[1," "],[10,1],[14,0,"hljs-attr"],[12],[1,"type"],[13],[1,"="],[10,1],[14,0,"hljs-string"],[12],[1,"\\"button\\""],[13],[1," "],[1,"{{"],[10,1],[14,0,"hljs-attr"],[12],[1,"on"],[13],[1," \\""],[10,1],[14,0,"hljs-attr"],[12],[1,"click"],[13],[1,"\\" "],[10,1],[14,0,"hljs-attr"],[12],[1,"this.deactivate"],[13],[1,"}} "],[10,1],[14,0,"hljs-attr"],[12],[1,"class"],[13],[1,"="],[10,1],[14,0,"hljs-
13string"],[12],[1,"\\"button\\""],[13],[1,">"],[13],[1,"\\n Deactivate trap\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"button"],[13],[1,">"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"div"],[13],[1,">"],[13],[1,"\\n "],[10,1],[14,0,"hljs-tag"],[12],[1,"</"],[10,1],[14,0,"hljs-name"],[12],[1,"template"],[13],[1,">"],[13],[13],[1,"\\n}\\n"],[13],[13]],[],[]]',moduleName:"(unknown template module)",isStrictMode:!0}),eb()),nw=Object.freeze(Object.defineProperty({__proto__:null,default:tw},Symbol.toStringTag,{value:"Module"})),rw=Vn(Bd({id:null,block:'[[[1," "],[10,"h1"],[14,1,"installation"],[12],[10,3],[14,6,"#installation"],[12],[1,"Installation"],[13],[13],[1,"\\n"],[10,2],[12],[1,"Install with your preferred package manager:"],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"hljs language-bash"],[12],[1,"pnpm add ember-focus-trap\\n"],[13],[13],[1,"\\n"],[10,2],[12],[1,"or"],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"hljs language-bash"],[12],[1,"npm install ember-focus-trap\\n"],[13],[13],[1,"\\n"],[10,2],[12],[1,"Then import and use the modifier in your components:"],[13],[1,"\\n"],[10,"pre"],[12],[10,"code"],[14,0,"hljs language-js"],[12],[10,1],[14,0,"hljs-keyword"],[12],[1,"import"],[13],[1," { focusTrap } "],[10,1],[14,0,"hljs-keyword"],[12],[1,"from"],[13],[1," "],[10,1],[14,0,"hljs-string"],[12],[1,"\'ember-focus-trap\'"],[13],[1,";\\n"],[13],[13]],[],[]]',moduleName:"(unknown template module)",isStrictMode:!0}),eb()),iw=Object.freeze(Object.defineProperty({__proto__:null,default:rw},Symbol.toStringTag,{value:"Module"})),sw=Vn(Bd({id:null,block:'[[[10,0],[14,0,"px-4 py-12 overflow-hidden text-center md:pt-24 md:pb-30"],[12],[1,"\\n "],[10,0],[14,0,"max-w-4xl md:mx-auto"],[12],[1,"\\n "],[10,"h2"],[14,0,"mb-6 text-4xl md:mx-auto md:text-5xl font-semibold italic tracking-tighter"],[12],[1,"\\n Ember Focus Trap\\n "],[13],[1,"\\n "],[10,2],[14,0,"text-gray-700 dark:text-gray-300 max-w-xl text-lg md:mx-auto"],[12],[1,"\\n An Ember modifier to trap your focus.\\n "],[13],[1,"\\n\\n "],[8,[32,0],[[24,0,"inline-flex text-xl items-center px-6 py-4 mt-10 font-semibold text-black bg-primary-500 rounded hover:bg-primary-400 outline-none focus-visible:ring"]],[["@route"],["docs"]],[["default"],[[[[1,"\\n Read the Docs\\n "],[10,"svg"],[14,0,"w-4 ml-2"],[14,"viewBox","0 0 14 13"],[14,"fill","none"],[14,"xmlns","http://www.w3.org/2000/svg","http://www.w3.org/2000/xmlns/"],[12],[1,"\\n "],[10,"path"],[14,"fill-rule","evenodd"],[14,"clip-rule","evenodd"],[14,"d","M7.25647 0.256191C7.42056 0.0921521 7.64308 0 7.8751 0C8.10713 0 8.32965 0.0921521 8.49374 0.256191L13.7438 5.50626C13.9078 5.67035 14 5.89287 14 6.12489C14 6.35692 13.9078 6.57944 13.7438 6.74353L8.49374 11.9936C8.32871 12.153 8.10768 12.2412 7.87825 12.2392C7.64883 12.2372 7.42937 12.1452 7.26713 11.9829C7.1049 11.8207 7.01287 11.6012 7.01088 11.3718C7.00889 11.1424 7.09708 10.9214 7.25647 10.7563L11.0129 6.99991H0.875012C0.642944 6.99991 0.420381 6.90772 0.256285 6.74362C0.0921884 6.57952 0 6.35696 0 6.12489C0 5.89283 0.0921884 5.67026 0.256285 5.50617C0.420381 5.34207 0.642944 5.24988 0.875012 5.24988H11.0129L7.25647 1.49346C7.09243 1.32937 7.00028 1.10685 7.00028 0.874825C7.00028 0.642803 7.09243 0.42028 7.25647 0.256191Z"],[14,"fill","currentColor"],[12],[13],[1,"\\n "],[13],[1,"\\n "]],[]]]]],[1,"\\n "],[13],[1,"\\n"],[13],[1,"\\n\\n"],[10,0],[14,0,"px-4 py-10 max-w-screen-lg mx-auto border-t border-gray-300 dark:border-gray-700"],[12],[1,"\\n "],[10,0],[14,0,"prose dark:prose-invert"],[12],[1,"\\n "],[10,2],[12],[1,"We use\\n "],[10,3],[14,6,"https://github.com/focus-trap/focus-trap"],[12],[1,"focus-trap"],[13],[1,"\\n as a lower-level implementation. It is super lightweight and has minimal\\n dependencies."],[13],[1,"\\n "],[10,2],[12],[1,"Trap focus within a DOM node."],[13],[1,"\\n "],[10,2],[12],[1,"There may come a time when you find it important to trap focus within a\\n DOM node â so that when a user hits\\n "],[10,"code"],[12],[1,"Tab"],[13],[1,"\\n or\\n "],[10,"code"],[12],[1,"Shift+Tab"],[13],[1,"\\n or clicks around, they can\'t escape a certain cycle of focusable\\n elements."],[13],[1,"\\n "],[10,2],[12],[1,"Please read the\\n "],[10,3],[14,6,"https://github.com/focus-trap/focus-trap"],[12],[1,"focus-trap"],[13],[1,"\\n documentation to understand what a focus trap is, what happens when a\\n focus trap is activated, and what happens when one is deactivated."],[13],[1,"\\n "],[13],[1,"\\n"],[13]],[],[]]',moduleName:"(unknown template module)",scope:()=>[jg],isStrictMode:!0}),eb()),ow=Object.freeze(Object.defineProperty({__proto__:null,default:sw},Symbol.toStringTag,{value:"Module"})),aw=Object.assign({},Nv,{"site/app":e,"site/config/environment":Mv,"site/router":_b,"site/services/page-title":Ib,"site/services/docfy":Mb,"site/templates/application":$b,"site/routes/application":Hb,"site/templates/docs":t_,"
13site/templates/docs/acknowledgments":r_,"site/templates/docs/arguments":s_,"site/templates/docs/examples":ew,"site/templates/docs/examples_gen/docfy-demo-examples-activated-on-render":X_,"site/templates/docs/examples_gen/docfy-demo-examples-container-self-focus":Y_,"site/templates/docs/examples_gen/docfy-demo-examples-initial-focus":G_,"site/templates/docs/index":nw,"site/templates/docs/installation":iw,"site/templates/index":ow},{});class lw{constructor(e,t,n){this.limit=e,this.func=t,this.store=n,this.size=0,this.misses=0,this.hits=0,this.store=n||new Map}get(e){let t=this.store.get(e);return this.store.has(e)?(this.hits++,this.store.get(e)):(this.misses++,t=this.set(e,this.func(e)),t)}set(e,t){return this.limit>this.size&&(this.size++,this.store.set(e,t)),t}purge(){this.store.clear(),this.size=0,this.hits=0,this.misses=0}}const uw=/[ _]/g,cw=new lw(1e3,e=>{return(t=e,bw.get(t)).replace(uw,"-");var t}),hw=/^(\-|_)+(.)?/,dw=/(.)(\-|\_|\.|\s)+(.)?/g,pw=/(^|\/|\.)([a-z])/g,fw=new lw(1e3,e=>{const t=(e,t,n)=>n?`_${n.toUpperCase()}`:"",n=(e,t,n,r)=>t+(r?r.toUpperCase():""),r=e.split("/");for(let i=0;i<r.length;i++)r[i]=r[i].replace(hw,t).replace(dw,n);return r.join("/").replace(pw,e=>e.toUpperCase())}),mw=/([a-z\d])([A-Z]+)/g,gw=/\-|\s+/g,yw=new lw(1e3,e=>e.replace(mw,"$1_$2").replace(gw,"_").toLowerCase()),vw=/([a-z\d])([A-Z])/g,bw=new lw(1e3,e=>e.replace(vw,"$1_$2").toLowerCase());class _w{constructor(e){this._entries=e||globalThis.requirejs.entries}moduleNames(){return Object.keys(this._entries)}has(e){return e in this._entries}get(...e){return globalThis.require(...e)}}class ww{static moduleBasedResolver=!0;moduleBasedResolver=!0;_deprecatedPodModulePrefix=!1;_normalizeCache=Object.create(null);static create(e){return new this(e)}moduleNameLookupPatterns=[this.podBasedModuleName,this.podBasedComponentsInSubdir,this.mainModuleName,this.defaultModuleName,this.nestedColocationComponentModuleName];static withModules(e){return class extends(this){static explicitModules=e}}constructor(e){if(Object.assign(this,e),!this._moduleRegistry){let e=this.constructor.explicitModules;e?this._moduleRegistry={moduleNames:()=>Object.keys(e),has:t=>Boolean(e[t]),get:t=>e[t],addModules(t){e=Object.assign({},e,t)}}:(void 0===globalThis.requirejs.entries&&(globalThis.requirejs.entries=globalThis.requirejs._eak_seen),this._moduleRegistry=new _w)}this.pluralizedTypes=this.pluralizedTypes||Object.create(null),this.pluralizedTypes.config||(this.pluralizedTypes.config="config")}makeToString(e,t){return this.namespace.modulePrefix+"@"+t+":"}shouldWrapInClassFactory(){return!1}parseName(e){if(!0===e.parsedName)return e;let t,n,r,i=e.split("@");if(3===i.length){if(0===i[0].length){t=`@${i[1]}`;let e=i[2].split(":");n=e[0],r=e[1]}else t=`@${i[1]}`,n=i[0].slice(0,-1),r=i[2];"template:components"===n&&(r=`components/${r}`,n="template")}else if(2===i.length){let e=i[0].split(":");if(2===e.length)0===e[1].length?(n=e[0],r=`@${i[1]}`):(t=e[1],n=e[0],r=i[1]);else{let e=i[1].split(":");t=i[0],n=e[0],r=e[1]}"template"===n&&0===t.lastIndexOf("components/",0)&&(r=`components/${r}`,t=t.slice(11))}else i=e.split(":"),n=i[0],r=i[1];let s=r,o=this.namespace;return{parsedName:!0,fullName:e,prefix:t||this.prefix({type:n}),type:n,fullNameWithoutType:s,name:r,root:o,resolveMethodName:"resolve"+(a=n,fw.get(a))};var a}resolveOther(e){kw("`modulePrefix` must be defined",this.namespace.modulePrefix);let t=this.findModuleName(e);if(t){let r=this._extractDefaultExport(t,e);if(void 0===r)throw new Error(` Expected to find: '${e.fullName}' within '${t}' but got 'undefined'. Did you forget to 'export default' within '${t}'?`);return this.shouldWrapInClassFactory(r,e)&&(n=r,r={create:e=>"function"==typeof n.extend?n.extend(e):n}),r}var n}normalize(e){return this._normalizeCache[e]||(this._normalizeCache[e]=this._normalize(e))}resolve(e){if("resolver:current"===e)return{create:()=>this};let t,n=this.parseName(e),r=n.resolveMethodName;return"function"==typeof this[r]&&(t=this[r](n)),null==t&&(t=this.resolveOther(n)),t}addModules(e){if(!this._moduleRegistry.addModules)throw new Error("addM
13odules is only supported when your Resolver has been configured to use static modules via Resolver.withModules()");this._moduleRegistry.addModules(e)}_normalize(e){let t=e.split(":");if(t.length>1){let e=t[0];return"component"===e||"helper"===e||"modifier"===e||"template"===e&&0===t[1].indexOf("components/")?e+":"+t[1].replace(/_/g,"-"):e+":"+(n=t[1].replace(/\./g,"/"),cw.get(n))}return e;var n}pluralize(e){return this.pluralizedTypes[e]||(this.pluralizedTypes[e]=e+"s")}podBasedLookupWithPrefix(e,t){let n=t.fullNameWithoutType;return"template"===t.type&&(n=n.replace(/^components\//,"")),e+"/"+n+"/"+t.type}podBasedModuleName(e){let t=this.namespace.podModulePrefix||this.namespace.modulePrefix;return this.podBasedLookupWithPrefix(t,e)}podBasedComponentsInSubdir(e){let t=this.namespace.podModulePrefix||this.namespace.modulePrefix;if(t+="/components","component"===e.type||/^components/.test(e.fullNameWithoutType))return this.podBasedLookupWithPrefix(t,e)}resolveEngine(e){let t=e.fullNameWithoutType+"/engine";if(this._moduleRegistry.has(t))return this._extractDefaultExport(t)}resolveRouteMap(e){let t=e.fullNameWithoutType,n=t+"/routes";if(this._moduleRegistry.has(n)){let e=this._extractDefaultExport(n);return kw(`The route map for ${t} should be wrapped by 'buildRoutes' before exporting.`,e.isRouteMap),e}}resolveTemplate(e){return this.resolveOther(e)}mainModuleName(e){if("main"===e.fullNameWithoutType)return e.prefix+"/"+e.type}defaultModuleName(e){return e.prefix+"/"+this.pluralize(e.type)+"/"+e.fullNameWithoutType}nestedColocationComponentModuleName(e){if("component"===e.type)return e.prefix+"/"+this.pluralize(e.type)+"/"+e.fullNameWithoutType+"/index"}prefix(e){let t=this.namespace.modulePrefix;return this.namespace[e.type+"Prefix"]&&(t=this.namespace[e.type+"Prefix"]),t}findModuleName(e){let t,n=this.moduleNameLookupPatterns;for(let r=0,i=n.length;r<i;r++){let i=n[r].call(this,e);if(i&&(i=this.chooseModuleName(i)),i&&this._moduleRegistry.has(i)&&(t=i),t)return t}}chooseModuleName(e){let t=(n=e,yw.get(n));var n;if(e!==t&&this._moduleRegistry.has(e)&&this._moduleRegistry.has(t))throw new TypeError(`Ambiguous module names: '${e}' and '${t}'`);return this._moduleRegistry.has(e)?e:this._moduleRegistry.has(t)?t:void 0}knownForType(e){let t=this._moduleRegistry.moduleNames(),n=Object.create(null);for(let r=0,i=t.length;r<i;r++){let i=t[r],s=this.translateToContainerFullname(e,i);s&&(n[s]=!0)}return n}translateToContainerFullname(e,t){let n=this.prefix({type:e}),r=n+"/",i="/"+e,s=t.indexOf(r),o=t.indexOf(i);if(0===s&&o===t.length-i.length&&t.length>r.length+i.length)return e+":"+t.slice(s+r.length,o);let a=n+"/"+this.pluralize(e)+"/";return 0===t.indexOf(a)&&t.length>a.length?e+":"+t.slice(a.length):void 0}_extractDefaultExport(e){let t=this._moduleRegistry.get(e,null,null,!0);return t&&t.default&&(t=t.default),t}}function kw(e,t){if(!t)throw new Error(e)}function jw(e,t){let n=e.load(t);if(!n)throw new Error(t+" must export an initializer.");let r=n.default;if(!r)throw new Error(t+" must have a default export");return r.name||(r.name=t.slice(t.lastIndexOf("/")+1)),r}class xw extends Cv{modulePrefix=Iv.modulePrefix;podModulePrefix=Iv.podModulePrefix;Resolver=ww.withModules(aw)}!function(e,t,n){var r=t+"/initializers/",i=t+"/instance-initializers/",s=[],o=[];let a;a=n?{names:()=>Object.keys(n),load:e=>n[e]}:{names(){let e=globalThis.requirejs;if(!e||!e._eak_seen)throw new Error("No global AMD loader found. To use loadInitializers without a global AMD loader you must provide explicit modules");return Object.keys(e._eak_seen)},load:e=>globalThis.require(e,null,null,!0)};for(let l of a.names())l.startsWith(r)&&!l.endsWith("-test")?s.push(l):l.startsWith(i)&&!l.endsWith("-test")&&o.push(l);!function(e,t,n){for(let r of n)e.initializer(jw(t,r))}(e,a,s),function(e,t,n){for(let r of n)e.instanceInitializer(jw(t,r))}(e,a,o)}(xw,Iv.modulePrefix,aw),xw.create(Iv.APP);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.