`}))}return e.canRecover&&n.push(this.attach("button",{className:"btn-flat small-action-recover",icon:"arrow-rotate-left",action:"recoverPost",title:"post.controls.undelete"})),e.canEdit&&!e.canRecover&&n.push(this.attach("button",{className:"btn-flat small-action-edit",icon:"pencil",action:"editPost",title:"post.controls.edit"})),e.canDelete&&n.push(this.attach("button",{className:"btn-flat btn-danger small-action-delete",icon:"trash-can",action:"deletePost",title:"post.controls.delete"})),[(0,r.h)("div.topic-avatar",(0,h.iconNode)(b[e.actionCode]||"exclamation")),(0,r.h)("div.small-action-desc",[(0,r.h)("div.small-action-contents",t),(0,r.h)("div.small-action-buttons",n),!e.actionDescriptionWidget&&e.cooked?(0,r.h)("div.small-action-custom-message",[new c.default(e,new l.default(this),this.currentUser)]):null])]}})},29329:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addPostTransformCallback:()=>b,cloak:()=>E,default:()=>D,disableCloaking:()=>S,postTransformCallbacks:()=>y,preventCloak:()=>C,uncloak:()=>A});var i=n(14682),s=n.n(i),r=n(94802),o=n(25710),a=n(93501),l=n(10577),u=n(56839),c=n(93396),d=n(59560),p=n(95854),h=n(84262),m=n(20762),g=n(51969),f=n(82739);let _=null;function y(e){if(null!==_)for(let t=0;t<_.length;t++)_[t].call(this,e)}function b(e){(_=_||[]).push(e)}let w=!0,k={},x={},T={};function S(){w=!1}function C(e){k[e]=!0}function E(e,t){if(!w||x[e.id]||k[e.id])return;let n=s()(`#post_${e.post_number}`).parent();x[e.id]=!0,T[e.id]=n.outerHeight(),t.dirtyKeys.keyDirty(`post-${e.id}`),(0,h.default)(t,"queueRerender",1e3)}function A(e,t){w&&x[e.id]&&(x[e.id]=null,t.dirtyKeys.keyDirty(`post-${e.id}`),t.queueRerender())}(0,o.addWidgetCleanCallback)("post-stream",()=>{x={},T={}}),(0,p.createWidget)("posts-filtered-notice",{buildKey:e=>`posts-filtered-notice-${e.id}`,buildClasses:()=>["posts-filtered-notice"],html(e){let t=e.streamFilters;if(t.filter_upwards_post_id||t.mixedHiddenPosts)return[(0,r.h)("span.filtered-replies-viewing",(0,g.i18n)("post.filtered_replies.viewing_subset")),this.attach("filter-show-all",e)];if(t.replies_to_post_number){let n=e.posts.findBy("post_number",t.replies_to_post_number);return[(0,r.h)("span.filtered-replies-viewing",(0,g.i18n)("post.filtered_replies_viewing",{count:n.reply_count})),(0,r.h)("span.filtered-user-row",[(0,r.h)("span.filtered-avatar",c.avatarFor.call(this,"small",{template:n.avatar_template,username:n.username,url:n.usernameUrl})),this.attach("filter-jump-to-post",{username:n.username,postNumber:t.replies_to_post_number})]),this.attach("filter-show-all",e)]}if(t.filter&&"summary"===t.filter)return[(0,r.h)("span.filtered-replies-viewing",(0,g.i18n)("post.filtered_replies.viewing_summary")),this.attach("filter-show-all",e)];if(t.username_filters){let t=e.posts[1],n=parseInt(e.filteredPostsCount,10)-1;return[(0,r.h)("span.filtered-replies-viewing",(0,g.i18n)("post.filtered_replies.viewing_posts_by",{post_count:n})),(0,r.h)("span.filtered-avatar",c.avatarFor.call(this,"small",{template:t.avatar_template,username:t.username,url:t.usernameUrl})),this.attach("poster-name",t),this.attach("filter-show-all",e)]}return[]}}),(0,p.createWidget)("filter-jump-to-post",{tagName:"a.filtered-jump-to-post",buildKey:e=>`jump-to-post-${e.id}`,html:e=>(0,g.i18n)("post.filtered_replies.post_number",{username:e.username,post_number:e.postNumber}),click(){u.default.jumpToPost(this.attrs.postNumber)}}),(0,p.createWidget)("filter-show-all",{tagName:"button.filtered-replies-show-all",buildKey:e=>`filtered-show-all-${e.id}`,buildClasses:()=>["btn","btn-primary"],html:()=>[(0,m.iconNode)("up-down"),(0,g.i18n)("post.filtered_replies.show_all")],click(){this.sendWidgetAction("cancelFilter"),this.appEvents.trigger("post-stream:filter-show-all",this.attrs.streamFilters)}});let D=(0,p.createWidget)("post-stream",{tagName:"div.post-stream",html(e){let t,n;let i=(e.posts||[]).toArray(),s=i.length,r=s>0?i[s-1].post_number:0,o=[],u=e.gaps&&e.gaps.before?e.gaps.before:{},c=e.gaps&&e.gaps.after?e.gaps.after:{},p=this.site.mobileView;for(let h=0;hthis.siteSettings.show_time_gap_days&&o.push(new d.default(this,"div.time-gap.small-action",(0,f.createTemplateFactory)({id:"/UFr9KZU",block:'[[[1,"\\n "],[8,[39,0],null,[["@daysSince"],[[30,1,["daysSince"]]]],null]],["@data"],false,["time-gap"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/widgets/post-stream.js",isStrictMode:!1}),{daysSince:e}))}n=w,_.height=T[m.id],_.cloaked=x[m.id],y(_),_.isSmallAction?o.push(this.attach("post-small-action",_,{model:m})):(_.showReadIndicator=e.showReadIndicator,o.push(this.attach("post",_,{model:m})));let k=c[m.id];k&&o.push(this.attach("post-gap",{pos:"after",postId:m.id,gap:k},{model:m})),h!==s-1&&r<=e.highestPostNumber&&e.lastReadPostNumber===m.post_number&&o.push(this.attach("topic-post-visited-line",{post_number:m.post_number})),t=m}return e.streamFilters&&Object.keys(e.streamFilters).length&&(Object.keys(u).length>0||Object.keys(c).length>0)&&o.push(this.attach("posts-filtered-notice",{posts:i,streamFilters:e.streamFilters,filteredPostsCount:e.filteredPostsCount})),o}})},99233:(e,t,n)=>{"use strict";n.r(t);var i=n(59560),s=n(95854),r=n(82739);(0,s.createWidget)("post-user-status",{tagName:"span.user-status-message-wrap",html(e){return[new i.default(this,"span",(0,r.createTemplateFactory)({id:"2EMAXwVN",block:'[[[8,[39,0],null,[["@status"],[[30,1,["attrs"]]]],null]],["@data"],false,["user-status-message"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/widgets/post-user-status.js",isStrictMode:!1}),{attrs:e})]}})},48046:(e,t,n)=>{"use strict";n.r(t);var i=n(59560),s=n(82739);(0,i.registerWidgetShim)("post-user-tip-shim","div.post-user-tip-shim",(0,s.createTemplateFactory)({id:"QEbWKm+w",block:'[[[8,[39,0],null,[["@id","@triggerSelector","@placement","@titleText","@contentText","@priority"],["post_menu",".post-controls .actions .show-more-actions","top",[28,[37,1],["user_tips.post_menu.title"],null],[28,[37,1],["user_tips.post_menu.content"],null],600]],null]],[],false,["user-tip","i18n"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/widgets/post-user-tip-shim.js",isStrictMode:!1}))},93396:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addPostClassesCallback:()=>U,avatarFor:()=>O,avatarImg:()=>N,default:()=>j});var i=n(71597),s=n(35223),r=n(94802),o=n(33462),a=n(36642),l=n(55990),u=n(38536),c=n(97113),d=n(22054),p=n(59621),h=n(55481),m=n(10577),g=n(56839),f=n(20802),_=n(37226),y=n(93008),b=n(29329),w=n(73922),k=n(59560),x=n(95854),T=n(45929),S=n(79356),C=n(54216),E=n(87389),A=n(20762),D=n(51969),I=n(82739);function P(e,t,n){let i=(0,m.transformBasicPost)(e);return(0,b.postTransformCallbacks)(i),i.customShare=`${t}/${e.post_number}`,i.asPost=n.createRecord("post",e),i}let M=null,F=!1;function N(e,t){let n;let i=(0,S.translateSize)(e),s=(0,S.avatarUrl)(t.template,i);if(!s||0===s.length)return;t.hideTitle||(n=t.name||(0,f.formatUsername)(t.username));let o="";t.alt&&(o=(0,D.i18n)(t.alt));let a="avatar"+(t.extraClasses?" "+t.extraClasses:""),l={attributes:{alt:o,width:i,height:i,src:(0,E.getURLWithCDN)(s),title:n,"aria-hidden":!0,loading:"lazy",tabindex:"-1"},className:a};return(0,r.h)("img",l)}function O(e,t,n){let i={href:t.url,"data-user-card":t.username};return!1===t.ariaHidden?i["aria-label"]=(0,D.i18n)("user.profile_possessive",{username:t.username}):i["aria-hidden"]=!0,n&&Object.assign(i,n),(0,r.h)("a",{className:`trigger-user-card ${t.className||""}`,attributes:i},N(e,t))}function L(e,t){return e.replyToUsername&&(!e.replyDirectlyAbove||!t.suppress_reply_directly_above)}(0,C.registerDeprecationHandler)((e,t)=>{t?.id==="discourse.post-menu-widget-overrides"&&(M||(M=new Set),M.add((0,h.consolePrefix)().slice(1,-1)))}),(0,x.createWidget)("select-post",{tagName:"div.select-posts",html(e){let t=[];!e.selected&&e.post_number>1&&(e.replyCount>0&&t.push(this.attach("button",{label:"topic.multi_select.select_replies.label",title:"topic.multi_select.select_replies.title",action:"selectReplies",className:"select-replies"})),t.push(this.attach("button",{label:"topic.multi_select.select_below.label",title:"topic.multi_select.select_below.title",action:"selectBelow",className:"select-below"})));let n=`topic.multi_select.${e.selected?"selected":"select"}_post`;return t.push(this.attach("button",{label:n+".label",title:n+".title",action:"togglePostSelection",className:"select-post"})),t}}),(0,x.createWidget)("reply-to-tab",{tagName:"a.reply-to-tab",buildKey:e=>`reply-to-tab-${e.id}`,title:"post.in_reply_to",defaultState:()=>({loading:!1}),buildAttributes(e){let t={tabindex:"0"};return e.mobileView||(t.role="button",t["aria-controls"]=`embedded-posts__top--${e.post_number}`,t["aria-expanded"]=(e.repliesAbove.length>0).toString()),t},html(e,t){let n=t.loading?(0,r.h)("div.spinner.small"):(0,A.iconNode)("share"),i=(0,p.prioritizeNameFallback)(e.replyToName,e.replyToUsername);return[n," ",N("small",{template:e.replyToAvatarTemplate,username:i})," ",(0,r.h)("span",(0,f.formatUsername)(i))]},click(){this.state.loading=!0,this.sendWidgetAction("toggleReplyAbove").then(()=>this.state.loading=!1)}}),(0,x.createWidget)("post-avatar-user-info",{tagName:"div.post-avatar-user-info",html(e){return this.attach("poster-name",e)}}),(0,x.createWidget)("post-avatar",{tagName:"div.topic-avatar",settings:{size:"large",displayPosterName:!1},html(e){let t=this.siteSettings.hide_user_profiles_from_public&&!this.currentUser,n=[e.user_id?O.call(this,this.settings.size,{template:e.avatar_template,username:e.username,name:e.name,url:e.usernameUrl,className:`main-avatar ${t?"non-clickable":""}`,hideTitle:!0},{tabindex:"-1"}):(0,A.iconNode)("trash-can",{class:"deleted-user-avatar"})];if(e.flair_group_id){if(e.flair_url||e.flair_bg_color)n.push(this.attach("avatar-flair",e));else{let t=(0,l.default)(this.site,e);t&&n.push(this.attach("avatar-flair",t))}}let i=[(0,r.h)("div.post-avatar",n)];return this.settings.displayPosterName&&i.push(this.attach("post-avatar-user-info",e)),i}}),(0,x.createWidget)("post-locked-indicator",{tagName:"div.post-info.post-locked",template:function(e,t){var n=__widget_helpers.iconNode,i=[];return i.push(n("lock")),i},title:()=>(0,D.i18n)("post.locked")}),(0,x.createWidget)("post-email-indicator",{tagName:"div.post-info.via-email",title:e=>e.isAutoGenerated?(0,D.i18n)("post.via_auto_generated_email"):(0,D.i18n)("post.via_email"),buildClasses:e=>e.canViewRawEmail?"raw-email":null,html:e=>e.isAutoGenerated?(0,A.iconNode)("envelope"):(0,A.iconNode)("far-envelope"),click(){this.attrs.canViewRawEmail&&this.sendWidgetAction("showRawEmail")}}),(0,x.createWidget)("post-meta-data",{tagName:"div.topic-meta-data",buildAttributes:()=>({role:"heading","aria-level":"2"}),settings:{displayPosterName:!0},html(e){let t=[];if(e.isWhisper){let e=this.site.get("whispers_allowed_groups_names"),n="";n=e?.length>0?(0,D.i18n)("post.whisper_groups",{groupNames:e.join(", ")}):(0,D.i18n)("post.whisper"),t.push((0,r.h)("div.post-info.whisper",{attributes:{title:n}},(0,A.iconNode)("far-eye-slash")))}e.via_email&&t.push(this.attach("post-email-indicator",e)),e.locked&&t.push(this.attach("post-locked-indicator",e)),(e.version>1||e.wiki)&&t.push(this.attach("post-edits-indicator",e)),e.multiSelect&&t.push(this.attach("select-post",e)),L(e,this.siteSettings)&&t.push(this.attach("reply-to-tab",e)),t.push(this.attach("post-date",e)),t.push((0,r.h)("div.read-state",{className:e.read?"read":null,attributes:{title:(0,D.i18n)("post.unread")}},(0,A.iconNode)("circle")));let n=[];return this.settings.displayPosterName&&n.push(this.attach("poster-name",e)),n.push((0,r.h)("div.post-infos",t)),n}}),(0,x.createWidget)("expand-hidden",{tagName:"a.expand-hidden",html:()=>(0,D.i18n)("post.show_hidden"),click(){this.sendWidgetAction("expandHidden")}}),(0,x.createWidget)("post-date",{tagName:"div.post-info.post-date",html(e){let t,n="post-date";return e.wiki&&e.lastWikiEdit?(n+=" last-wiki-edit",t=new Date(e.lastWikiEdit)):t=new Date(e.created_at),this.attach("link",{rawLabel:(0,a.dateNode)(t),className:n,omitSpan:!0,title:"post.sr_date",href:e.shareUrl,action:"showShareModal"})},showShareModal(){let e=this.findAncestorModel(),t=e.topic;(0,i.getOwner)(this).lookup("service:modal").show(o.default,{model:{category:t.category,topic:t,post:e}})}}),(0,x.createWidget)("expand-post-button",{tagName:"button.btn.expand-post",buildKey:e=>`expand-post-button-${e.id}`,defaultState:()=>({loadingExpanded:!1}),html:(e,t)=>t.loadingExpanded?(0,D.i18n)("loading"):[(0,D.i18n)("post.show_full"),"..."],click(){this.state.loadingExpanded=!0,this.sendWidgetAction("expandFirstPost")}}),(0,x.createWidget)("post-group-request",{buildKey:e=>`post-group-request-${e.id}`,buildClasses:()=>["group-request"],html(e){let t=(0,E.default)("/g/"+e.requestedGroupName+"/requests?filter="+e.username);return(0,r.h)("a",{attributes:{href:t}},(0,D.i18n)("groups.requests.handle"))}}),(0,x.createWidget)("post-contents",{buildKey:e=>`post-contents-${e.id}`,defaultState(e){let t={expandedFirstPost:!1,repliesBelow:[]};if(this.siteSettings.enable_filtered_replies_view){let n=this.register.lookup("controller:topic");e.post_number&&(t.filteredRepliesShown=n.replies_to_post_number===e.post_number.toString())}return t},buildClasses(e){let t=["regular"];return this.state.repliesShown||t.push("contents"),L(e,this.siteSettings)&&t.push("avoid-tab"),t},html(e,t){let n=[new y.default(e,new _.default(this),this.currentUser)];e.requestedGroupName&&n.push(this.attach("post-group-request",e)),n=n.concat((0,x.applyDecorators)(this,"after-cooked",e,t)),e.cooked_hidden&&e.canSeeHiddenPost&&n.push(this.attach("expand-hidden",e)),!t.expandedFirstPost&&e.expandablePost&&n.push(this.attach("expand-post-button",e));let i={state:{repliesShown:t.repliesBelow.length>0,filteredRepliesShown:t.filteredRepliesShown}};if("enabled"!==this.siteSettings.glimmer_post_menu_mode&&("auto"!==this.siteSettings.glimmer_post_menu_mode||M))"disabled"!==this.siteSettings.glimmer_post_menu_mode&&M&&!F&&(F=!0,console.warn(["Using the legacy 'widget' post menu because the following plugins and/or themes are using deprecated APIs:",...Array.from(M).sort()].join("\n- "))),n.push(this.attach("post-menu",e,i));else{!F&&(F=!0,(0,T.isTesting)()||console.log("✅ Using the new 'glimmer' post menu!"),M&&console.warn(["Using the new 'glimmer' post menu, even though there are themes and/or plugins using deprecated APIs (glimmer_post_menu_mode = enabled).\nThe following plugins and/or themes are using deprecated APIs, their post menu customizations are broken and may cause your site to not work properly:",...Array.from(M).sort()].join("\n- ")));let t=this.siteSettings.enable_filtered_replies_view;n.push(this.attach("glimmer-post-menu",{canCreatePost:e.canCreatePost,filteredRepliesView:t,nextPost:e.nextPost,post:this.findAncestorModel(),prevPost:e.prevPost,repliesShown:t?i.state.filteredRepliesShown:i.state.repliesShown,showReadIndicator:e.showReadIndicator,changeNotice:()=>this.sendWidgetAction("changeNotice"),changePostOwner:()=>this.sendWidgetAction("changePostOwner"),copyLink:()=>this.sendWidgetAction("copyLink"),deletePost:()=>this.sendWidgetAction("deletePost"),editPost:()=>this.sendWidgetAction("editPost"),grantBadge:()=>this.sendWidgetAction("grantBadge"),lockPost:()=>this.sendWidgetAction("lockPost"),permanentlyDeletePost:()=>this.sendWidgetAction("permanentlyDeletePost"),rebakePost:()=>this.sendWidgetAction("rebakePost"),recoverPost:()=>this.sendWidgetAction("recoverPost"),replyToPost:()=>this.sendWidgetAction("replyToPost"),share:()=>this.sendWidgetAction("share"),showFlags:()=>this.sendWidgetAction("showFlags"),showLogin:()=>this.sendWidgetAction("showLogin"),showPagePublish:()=>this.sendWidgetAction("showPagePublish"),toggleLike:()=>this.sendWidgetAction("toggleLike"),togglePostType:()=>this.sendWidgetAction("togglePostType"),toggleReplies:t?()=>this.sendWidgetAction("toggleFilteredRepliesView"):()=>this.sendWidgetAction("toggleRepliesBelow"),toggleWiki:()=>this.sendWidgetAction("toggleWiki"),unhidePost:()=>this.sendWidgetAction("unhidePost"),unlockPost:()=>this.sendWidgetAction("unlockPost")}))}let s=t.repliesBelow;if(s.length){let t=[];s.forEach(n=>{t.push(this.attach("embedded-post",n,{model:n.asPost,state:{role:"region","aria-label":(0,D.i18n)("post.sr_embedded_reply_description",{post_number:e.post_number,username:n.username})}}))}),t.push(this.attach("button",{title:"post.collapse",icon:"chevron-up",action:"toggleRepliesBelow",actionParam:!0,className:"btn collapse-up",translatedAriaLabel:(0,D.i18n)("post.sr_collapse_replies")})),s.length{t.updateQueryParams()}))},loadMoreReplies(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return this.store.find("post-reply",{postId:this.attrs.id,after:e}).then(e=>{e.forEach(e=>{this.state.repliesBelow.push(P(e,this.attrs.topicUrl,this.store))})})},toggleRepliesBelow(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.state.repliesBelow.length)return this.loadMoreReplies();if(this.state.repliesBelow=[],!0===e){let{topicUrl:e,post_number:t}=this.attrs;g.default.routeTo(`${e}/${t}`)}},expandFirstPost(){return this.findAncestorModel().expand().then(()=>this.state.expandedFirstPost=!0)},share(){let e=this.findAncestorModel();(0,d.nativeShare)(this.capabilities,{url:e.shareUrl}).catch(()=>{let t=e.topic;(0,i.getOwner)(this).lookup("service:modal").show(o.default,{model:{category:t.category,topic:t,post:e}})})},copyLink(){if(this.site.mobileView)return this.share();let e=this.findAncestorModel(),t=e.id,n=()=>(0,f.clipboardCopy)((0,E.getAbsoluteURL)(e.shareUrl));(0,T.isTesting)()&&(n=()=>{}),(0,c.default)({postId:t,actionClass:"post-action-menu__copy-link",messageKey:"post.controls.link_copied",actionCallback:n,errorCallback:()=>this.share()})},init(){this.postContentsDestroyCallbacks=[]},destroy(){this.postContentsDestroyCallbacks.forEach(e=>e())}}),(0,x.createWidget)("post-notice",{tagName:"div.post-notice",buildClasses(e){let t=[e.notice.type.replace(/_/g,"-")];return new Date-new Date(e.created_at)>864e5*this.siteSettings.old_post_notice_days&&t.push("old"),t},html(e){if("custom"===e.notice.type)return[(0,A.iconNode)("user-shield"),new w.default({html:`
${e.notice.cooked}
`})];let t=this.siteSettings.display_name_on_posts&&(0,p.prioritizeNameInUx)(e.name)?e.name:e.username;if("new_user"===e.notice.type)return[(0,A.iconNode)("handshake-angle"),(0,r.h)("p",(0,D.i18n)("post.notice.new_user",{user:t}))];if("returning_user"===e.notice.type){let n=(new Date-new Date(e.notice.lastPostedAt))/1e3,i=(0,u.relativeAgeMediumSpan)(n,!0);return[(0,A.iconNode)("far-face-smile"),(0,r.h)("p",(0,D.i18n)("post.notice.returning_user",{user:t,time:i}))]}}}),(0,x.createWidget)("post-body",{tagName:"div.topic-body.clearfix",html(e,t){let n=this.attach("post-contents",e),i=[this.attach("post-meta-data",e)];return(i=i.concat((0,x.applyDecorators)(this,"after-meta-data",e,t))).push(n),i.push(this.attach("actions-summary",e)),i.push(this.attach("post-links",e)),i}}),(0,x.createWidget)("post-article",{tagName:"article.boxed.onscreen-post",buildKey:e=>`post-article-${e.id}`,defaultState:()=>({repliesAbove:[]}),buildId:e=>`post_${e.post_number}`,buildClasses(e,t){let n=[];return t.repliesAbove.length&&n.push("replies-above"),e.via_email&&n.push("via-email"),e.isAutoGenerated&&n.push("is-auto-generated"),n},buildAttributes:e=>({"aria-label":(0,D.i18n)("share.post",{postNumber:e.post_number,username:e.username}),role:"region","data-post-id":e.id,"data-topic-id":e.topicId,"data-user-id":e.user_id}),html(e,t){let n=[];if(t.repliesAbove.length){let i=t.repliesAbove.map(e=>this.attach("embedded-post",e,{model:e.asPost,state:{above:!0}}));n.push((0,r.h)("div.row",(0,r.h)(`section.embedded-posts.top.topic-body#embedded-posts__top--${e.post_number}`,[this.attach("button",{title:"post.collapse",icon:"chevron-down",action:"toggleReplyAbove",actionParam:!0,className:"btn collapse-down"}),i])))}return!e.deleted_at&&e.notice&&n.push((0,r.h)("div.row",[this.attach("post-notice",e)])),n.push((0,r.h)("div.row",[this.attach("post-avatar",e),this.attach("post-body",{...e,repliesAbove:t.repliesAbove})])),this.shouldShowTopicMap(e)&&n.push(this.buildTopicMap(e)),n},_getTopicUrl(){let e=this.findAncestorModel();return e?e.get("topic.url"):null},toggleReplyAbove(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.attrs.reply_to_post_number;if(this.siteSettings.enable_filtered_replies_view){let e=this.findAncestorModel(),t=this.register.lookup("controller:topic");return e.get("topic.postStream").filterUpwards(this.attrs.id).then(()=>{t.updateQueryParams()})}if(this.attrs.mobileView){let e=this._getTopicUrl();return e&&g.default.routeTo(`${e}/${t}`),s.Promise.resolve()}if(this.state.repliesAbove.length){if(this.state.repliesAbove=[],!0===e){let{topicUrl:e,post_number:t}=this.attrs;g.default.routeTo(`${e}/${t}`)}return s.Promise.resolve()}{let e=this._getTopicUrl();return this.store.find("post-reply-history",{postId:this.attrs.id}).then(t=>{t.forEach(t=>{this.state.repliesAbove.push(P(t,e,this.store))})})}},shouldShowTopicMap(e){if(1!==e.post_number)return!1;let t="private_message"===e.topic.archetype,n="regular"===e.topic.archetype,i=this.siteSettings.show_topic_map_in_topics_without_replies;return e.topicMap||t||n&&(e.topic.posts_count>1||i)},buildTopicMap(e){return new k.default(this,"div.topic-map.--op",(0,I.createTemplateFactory)({id:"dcLVi/IO",block:'[[[1,"\\n "],[8,[39,0],null,[["@model","@topicDetails","@postStream","@showPMMap","@showInvite","@removeAllowedGroup","@removeAllowedUser"],[[30,1,["model"]],[30,1,["topicDetails"]],[30,1,["postStream"]],[30,1,["showPMMap"]],[30,1,["showInvite"]],[30,1,["removeAllowedGroup"]],[30,1,["removeAllowedUser"]]]],null]],["@data"],false,["topic-map"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/widgets/post.js",isStrictMode:!1}),{model:e.topic,topicDetails:e.topic.get("details"),postStream:e.topic.postStream,showPMMap:"private_message"===e.topic.archetype,showInvite:()=>this.sendWidgetAction("showInvite"),removeAllowedGroup:e=>this.sendWidgetAction("removeAllowedGroup",e),removeAllowedUser:e=>this.sendWidgetAction("removeAllowedUser",e)})}});let R=null;function U(e){(R=R||[]).push(e)}let j=(0,x.createWidget)("post",{buildKey:e=>`post-${e.id}`,services:["dialog","user-tips"],shadowTree:!0,buildAttributes:e=>e.height?{style:`min-height: ${e.height}px`}:void 0,buildId:e=>e.cloaked?`post_${e.post_number}`:void 0,buildClasses(e){if(e.cloaked)return"cloaked-post";let t=["topic-post","clearfix"];if((-1===e.id||e.isSaving||e.staged)&&t.push("staged"),e.selected&&t.push("selected"),e.topicOwner&&t.push("topic-owner"),this.currentUser&&e.user_id===this.currentUser.id&&t.push("current-user-post"),e.groupModerator&&t.push("category-moderator"),e.hidden&&t.push("post-hidden"),e.deleted&&t.push("deleted"),e.primary_group_name&&t.push(`group-${e.primary_group_name}`),e.wiki&&t.push("wiki"),e.isWhisper&&t.push("whisper"),e.isModeratorAction||e.isWarning&&e.firstPost?t.push("moderator"):t.push("regular"),e.userSuspended&&t.push("user-suspended"),R)for(let n=0;ni)return;let{remaining:s,max:r}=e;s===Math.ceil(.1*r)&&(this.dialog.alert((0,D.i18n)("post.few_likes_left")),t.set({key:"lastWarnedLikes",value:Date.now()}))}})},91639:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m,disableNameSuppression:()=>h});var i=n(94802),s=n(59621),r=n(20802),o=n(59560),a=n(95854),l=n(87389),u=n(20762),c=n(51969),d=n(82739);let p=function(e){return e.toLowerCase().replace(/[\s\._-]/g,"")};function h(){p=e=>e}(0,a.createWidget)("poster-name-title",{tagName:"span.user-title",buildClasses(e){let t=[];return t.push(e.title),e.titleIsGroup&&t.push(e.primaryGroupName),t=t.map(e=>`user-title--${e.replace(/\s+/g,"-").toLowerCase()}`)},html(e){let t=e.title;if(e.primaryGroupName&&e.titleIsGroup){let n=(0,l.default)(`/g/${e.primaryGroupName}`);t=(0,i.h)("a.user-group",{className:e.extraClasses,attributes:{href:n,"data-group-card":e.primaryGroupName}},e.title)}return t}});let m=(0,a.createWidget)("poster-name",{tagName:"div.names.trigger-user-card",settings:{showNameAndGroup:!0,showGlyph:!0},didRenderWidget(){this.attrs.user&&(this.attrs.user.statusManager.trackStatus(),this.attrs.user.on("status-changed",this,"scheduleRerender"))},willRerenderWidget(){this.attrs.user&&(this.attrs.user.off("status-changed",this,"scheduleRerender"),this.attrs.user.statusManager.stopTrackingStatus())},posterGlyph(e){if(e.moderator||e.groupModerator)return(0,u.iconNode)("shield-halved",{title:(0,c.i18n)("user.moderator_tooltip")})},userLink(e,t){return(0,i.h)("a",{attributes:{href:e.usernameUrl,"data-user-card":e.username,class:`${this.siteSettings.hide_user_profiles_from_public&&!this.currentUser?"non-clickable":""}`}},(0,r.formatUsername)(t))},html(e){let t=e.username,n=e.name,r=this.siteSettings.display_name_on_posts&&(0,s.prioritizeNameInUx)(n),l=r?["first","full-name"]:["first","username"];e.staff&&l.push("staff"),e.admin&&l.push("admin"),e.moderator&&l.push("moderator"),e.groupModerator&&l.push("category-moderator"),e.new_user&&l.push("new-user");let u=e.primary_group_name;u&&u.length&&l.push(`group--${u}`);let h=[this.userLink(e,r?n:t)];if(this.settings.showGlyph){let t=this.posterGlyph(e);t&&h.push(t)}let m=(0,a.applyDecorators)(this,"after-name",e,this.state)||[];h=h.concat(m);let g=[(0,i.h)("span",{className:l.join(" ")},h)];if(this.settings.showNameAndGroup&&(n&&this.siteSettings.display_name_on_posts&&p(n)!==p(t)&&g.push((0,i.h)("span.second."+(r?"username":"full-name"),[this.userLink(e,r?t:n)].concat(m))),this.buildTitleObject(e,g),this.siteSettings.enable_user_status&&this.addUserStatus(g,e)),e.badgesGranted?.length){let t=[];e.badgesGranted.forEach(n=>{n.description=(0,c.i18n)("post.badge_granted_tooltip",{username:e.username,badge_name:n.name});let i=new o.default(this,`span.user-badge-button-${n.slug}`,(0,d.createTemplateFactory)({id:"73WDY9/V",block:'[[[8,[39,0],null,[["@badge","@user","@showName"],[[30,1,["badge"]],[30,1,["user"]],false]],null]],["@data"],false,["user-badge"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-app/widgets/poster-name.js",isStrictMode:!1}),{badge:n,user:e.user});t.push(i)}),g.push((0,i.h)("span.user-badge-buttons",t))}return g},buildTitleObject(e,t){let n=e.primary_group_name,i=e.user_title,s=e.title_is_group;i&&i.length&&t.push(this.attach("poster-name-title",{title:i,primaryGroupName:n,titleIsGroup:s}))},addUserStatus(e,t){t.user&&t.user.status&&e.push(this.attach("post-user-status",t.user.status))}})},73922:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(14682),s=n.n(i);class r{constructor(e){this.html=e.html}init(){let e=s()(this.html);return this.decorate(e),e[0]}decorate(){}update(e){if(e.html!==this.html)return this.init()}destroy(){}}r.prototype.type="Widget"},59560:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u,registerWidgetShim:()=>c});var i=n(60465),s=n(28564),r=n(76417),o=n(88606);n(38389);var a=n(95854);let l=Symbol("RENDER_GLIMMER_INITIAL_CLASSES");class u{constructor(e,t,n,i){this.renderInto=t,e&&(this.widget=e),this.template=n,this.data=i}init(){if(this.renderInto instanceof Element)this.element=this.renderInto;else{let[e,...t]=this.renderInto.split(".");this.element=document.createElement(e),this.element.classList.add(...t),this.element[l]=t}return this.connectComponent(),this.element}destroy(){this._componentInfo&&this.parentMountWidgetComponent.unmountChildComponent(this._componentInfo)}update(e){return e.template.__id!==this.template.__id||e.renderInto!==this.renderInto?(e.destroy(),this.init()):(this._componentInfo=e._componentInfo,e.data!==this.data&&(this._componentInfo.data=this.data),null)}connectComponent(){let e;let{element:t,template:n}=this;(0,i.hasInternalComponentManager)(n)?e=n:((e=(0,o.default)(void 0,void 0)).name="Widgets/RenderGlimmer",(0,r.setComponentTemplate)(n,e)),this._componentInfo=new d({element:t,component:e,data:this.data,setWrapperElementAttrs:e=>this.updateElementAttrs(t,e)}),this.parentMountWidgetComponent.mountChildComponent(this._componentInfo)}updateElementAttrs(e,t){for(let[n,i]of Object.entries(t))"class"===n&&(i=[e[l],i].filter(Boolean).join(" ")),[null,void 0].includes(i)?e.removeAttribute(n):e.setAttribute(n,i)}get parentMountWidgetComponent(){if(this._emberView)return this._emberView;let e=this.widget;for(;e;){let t=e._emberView;if(t)return t;e=e.parentWidget||e.attrs._postCookedWidget}}}function c(e,t,n){let i=class extends u{constructor(e){return super(null,t,n,e),this}get widget(){return this.parentWidget}didRenderWidget(){}willRerenderWidget(){}};(0,a.createWidgetFrom)(i,e,{})}u.prototype.type="Widget";class d{static #e=(()=>dt7948.g(this.prototype,"data",[s.tracked]))();#cF=(()=>void dt7948.i(this,"data"))();element;component;setWrapperElementAttrs;constructor(e){Object.assign(this,e)}}},98812:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(94802),s=n(95854),r=n(51969);let o=(0,s.createWidget)("topic-post-visited-line",{tagName:"div.small-action.topic-post-visited",html:e=>(0,i.h)(`div.topic-post-visited-line.post-${e.post_number}}`,(0,i.h)("span.topic-post-visited-message",(0,r.i18n)("topics.new_messages_marker")))})},37934:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(94802),s=n(83189),r=n(20802),o=n(95854),a=n(20762),l=n(51969);let u=(0,o.createWidget)("topic-status",{tagName:"span.topic-statuses",html(e){let t=e.topic,n=this.currentUser&&!e.disableActions,o=[];return s.default.render(t,function(e,t){let s=(0,a.iconNode)(e,{class:"unpinned"===t?"unpinned":null}),u={title:(0,r.escapeExpression)((0,l.i18n)(`topic_statuses.${t}.help`))},c="topic-status";("unpinned"===t||"pinned"===t)&&(c+=`.pin-toggle-button.${t}`),o.push((0,i.h)(`${n?"a":"span"}.${c}`,u,s))}),o},click(e){let t=e.target.closest(".topic-statuses");t?.querySelector(".pin-toggle-button")?.contains(e.target)&&this.attrs.topic.togglePinnedForUser()}})},33022:(e,t,n)=>{"use strict";n.r(t),n.d(t,{WidgetDropdownBodyClass:()=>u,WidgetDropdownClass:()=>c,WidgetDropdownHeaderClass:()=>a,WidgetDropdownItemClass:()=>l,default:()=>d});var i=n(42433),s=n(60984),r=n(95854),o=n(51969);let a={tagName:"button",transform(e){return{label:this._buildLabel(e)}},buildAttributes(e){return{title:this._buildLabel(e)}},buildClasses(e){let t=["widget-dropdown-header","btn","btn-default"];return e.class&&(t=t.concat(e.class.split(" "))),t.filter(Boolean).join(" ")},click(e){e.preventDefault(),this.sendWidgetAction("_onTrigger")},template:function(e,t){var n=__widget_helpers.iconNode,i=[];i.push("\n"),e.icon&&(i.push(" "),i.push(n(e.icon)),i.push("\n")),i.push(" ");var s=[];return s.push("\n "),s.push(this.transformed.label),s.push("\n "),i.push(virtualDom.h("span",{className:"label",attributes:{}},s)),i.push("\n"),e.caret&&(i.push(" "),i.push(n("caret-down")),i.push("\n")),i.push(" "),i},_buildLabel:e=>e.translatedLabel?e.translatedLabel:(0,o.i18n)(e.label)};(0,r.createWidget)("widget-dropdown-header",a);let l={tagName:"div",transform:e=>({content:"separator"===e.item?"":e.item.html?e.item.html:e.item.translatedLabel?e.item.translatedLabel:(0,o.i18n)(e.item.label)}),buildAttributes:e=>({"data-id":e.item.id,tabindex:"separator"===e.item?-1:0}),buildClasses(e){let t=["widget-dropdown-item","separator"===e.item?"separator":`item-${e.item.id}`];return t.push(e.item.disabled?"disabled":""),t.join(" ")},keyDown(e){"Enter"===e.key&&(e.preventDefault(),this.sendWidgetAction("_onChange",this.attrs.item))},click(e){e.preventDefault(),this.sendWidgetAction("_onChange",this.attrs.item)},template:function(e,t){var n=__widget_helpers.iconNode,i=__widget_helpers.rawHtml,s=[];return s.push("\n"),e.item.icon&&(s.push(" "),s.push(n(e.item.icon)),s.push("\n")),s.push(" "),s.push(new i({html:""+this.transformed.content+""})),s.push("\n "),s}};(0,r.createWidget)("widget-dropdown-item",l);let u={tagName:"div",buildClasses:e=>`widget-dropdown-body ${e.class||""}`,clickOutside(){this.sendWidgetAction("hideBody")},template:function(e,t){var n=[];return n.push("\n"),e.content&&e.content.length&&e.content.forEach(e=>{n.push(" "),n.push(this.attach("widget-dropdown-item",{item:e},void 0,void 0)),n.push("\n")}),n.push(" "),n}};(0,r.createWidget)("widget-dropdown-body",u);let c={tagName:"div",init(e){if(!e)throw"A widget-dropdown expects attributes.";if(!e.id)throw"A widget-dropdown expects a unique `id` attribute.";if(!e.label&&!e.translatedLabel)throw"A widget-dropdown expects at least a `label` or `translatedLabel`"},buildKey:e=>e.id,buildAttributes:e=>({id:e.id}),defaultState:e=>({opened:!1,disabled:e.options&&e.options.disabled||!1}),buildClasses(e){let t=["widget-dropdown"];return t.push(this.state.opened?"opened":"closed"),t.push(this.state.disabled?"disabled":""),t.join(" ")+" "+(e.class||"")},transform(e){return{options:e.options||{},isDropdownVisible:!this.state.disabled&&this.state.opened}},hideBody(){this.state.opened=!1},_onChange(e){!e.disabled&&(this.state.opened=!1,this.attrs.onChange&&("string"==typeof this.attrs.onChange?this.sendWidgetAction(this.attrs.onChange,e):this.attrs.onChange(e)))},destroy(){this._popper&&(this._popper.destroy(),this._popper=null)},willRerenderWidget(){this._popper&&this._popper.destroy()},didRenderWidget(){this.state.opened&&(0,i.schedule)("afterRender",()=>{let e=document.querySelector(`#${this.attrs.id} .widget-dropdown-header`);if(!e)return;let t=document.querySelector(`#${this.attrs.id} .widget-dropdown-body`);t&&(this._popper=(0,s.n4)(e,t,{strategy:"absolute",placement:"bottom-start",modifiers:[{name:"preventOverflow"},{name:"offset",options:{offset:[0,5]}}]}))})},_onTrigger(){this.state.opened=!this.state.opened},template:function(e,t){var n=[];return n.push("\n"),e.content&&(n.push(" "),n.push(this.attach("widget-dropdown-header",{icon:e.icon,label:e.label,translatedLabel:e.translatedLabel,class:this.transformed.options.headerClass,caret:this.transformed.options.caret},void 0,void 0)),n.push("\n\n"),this.transformed.isDropdownVisible&&(n.push(" "),n.push(this.attach("widget-dropdown-body",{id:e.id,class:this.transformed.options.bodyClass,content:e.content},void 0,void 0)),n.push("\n"))),n.push(" "),n}},d=(0,r.createWidget)("widget-dropdown",c)},95854:(e,t,n)=>{"use strict";n.r(t),n.d(t,{applyDecorators:()=>b,changeSetting:()=>x,createWidget:()=>S,createWidgetFrom:()=>T,decorateWidget:()=>y,default:()=>E,deleteFromRegistry:()=>f,queryRegistry:()=>g,reopenWidget:()=>C,resetDecorators:()=>w,traverseCustomWidgets:()=>function e(t,n){t&&("CustomWidget"===t.__type&&n(t),(t.children||(t.vnode?t.vnode.children:[])).forEach(t=>{e(t,n)}))}});var i=n(70001),s=n(71597),r=n(54836),o=n(35223),a=n(94802),l=n(55481),u=n(37226),c=n(34312),d=n(45929),p=n(482),h=n(51969);let m={};function g(e){return m[e]}function f(e){return delete m[e]}let _={};function y(e,t){let n=e.split(":")[0];m[n]||console.error((0,l.consolePrefix)(),`decorateWidget: Could not find widget '${n}' in registry`),_[e]??=[],_[e].push(t)}function b(e,t,n,i){let s=_[`${e.name}:${t}`]||[];if(s.length){let t=new u.default(e,n,i);return s.map(e=>e(t))}return[]}function w(){Object.keys(_).forEach(e=>delete _[e])}let k={};function x(e,t,n){k[e]=k[e]||{},k[e][t]=n}function T(e,t,n){let i=class extends e{};return i.prototype.__type="CustomWidget",t&&(m[t]=i),n.name=t,n.template&&(n.html=n.template),Object.keys(n).forEach(e=>i.prototype[e]=n[e]),i}function S(e,t){return T(E,e,t)}function C(e,t){let n=m[e];if(!n){console.error((0,l.consolePrefix)(),`reopenWidget: Could not find widget ${e} in registry`);return}return t.template&&(t.html=t.template),Object.keys(t).forEach(e=>{let i=n.prototype[e];i instanceof Function?n.prototype[e]=function(){var n=this;let s=Object.create(this);s._super=function(){for(var e=arguments.length,t=Array(e),s=0;s{this[(0,r.camelize)(e)]=t.lookup(`service:${e}`)}),this.init(this.attrs),this.name){let e=k[this.name];e&&Object.keys(e).forEach(t=>this.settings[t]=e[t])}}init(){}transform(){return{}}defaultState(){return{}}destroy(){}get(e){return(0,i.get)(this,e)}render(e){let{dirtyKeys:t}=this;if(e&&e.key&&e.key===this.key)this.state=e.state;else if(this.state=this.defaultState(this.attrs,this.state),!(0,d.isProduction)()){if("object"!=typeof this.state)throw Error("defaultState must return an object");if(Object.keys(this.state).length>0&&!this.key)throw Error(`you need a key when using state in ${this.name}`)}if(this.mergeState&&(this.state=(0,p.deepMerge)(this.state,this.mergeState)),e){let n=t.optionsFor(e.key);if(e.shadowTree&&(this.shadowTree=!0,!n.dirty&&!t.allDirty()))return e.vnode;e.key&&t.renderedKey(e.key);let i=n.onRefresh;i&&this.sendWidgetAction(i,n.refreshArg)}return this.draw(a.h,this.attrs,this.state)}_findAncestorWithProperty(e){let t=this;for(;t;){if(t[e])return t;t=t.parentWidget}}_findView(){let e=this._findAncestorWithProperty("_emberView");if(e)return e._emberView}lookupWidgetClass(e){let t=m[e];return t||(this.register?(t=this.register.lookupFactory(`widget:${e}`))&&t.class?t.class:null:(console.error("couldn't find register"),null))}attach(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=this.lookupWidgetClass(e);if(!s&&i.fallbackWidgetName&&(s=this.lookupWidgetClass(i.fallbackWidgetName)),s){let e=new s(t,this.register,n);return e.parentWidget=this,e.dirtyKeys=this.dirtyKeys,i.tagName&&(e.tagName=i.tagName),e}throw Error(`Couldn't find ${e} or fallback ${i.fallbackWidgetName}`)}didRenderWidget(){}willRerenderWidget(){}scheduleRerender(){let e=this;for(;e;){e.shadowTree&&this.dirtyKeys.keyDirty(e.key);let t=e._rerenderable;if(t)return t.queueRerender();e=e.parentWidget}}_sendComponentAction(e,t){let n;let i=this._findView();if(i){let s;if("function"==typeof e)s=e;else if(!(s=i.get(e))){console.warn(`${e} not found`);return}if("string"==typeof s)i[s](t),n=o.Promise.resolve();else{let e=i.get("target")||i;(n=s.call(e,t))&&n.then||(n=o.Promise.resolve(n))}}return this.rerenderResult(()=>n)}findAncestorModel(){let e=this._findAncestorWithProperty("model");if(e)return e.model}rerenderResult(e){this.scheduleRerender();let t=e();return t&&t.then?t.then(()=>this.scheduleRerender()):t}sendWidgetEvent(e,t){let n=`${e}Event`;return this.rerenderResult(()=>{let e=this._findAncestorWithProperty(n);if(e)return e[n](t)})}callWidgetFunction(e,t){let n=this._findAncestorWithProperty(e);if(n)return n[e].call(n,t)}sendWidgetAction(e,t){return this.rerenderResult(()=>{let n=this._findAncestorWithProperty(e);return n?n[e].call(n,t):this._sendComponentAction(e,t||this.findAncestorModel())})}html(){}draw(e,t,n){let i={};if(this.buildClasses){let e=this.buildClasses(t,n)||[];Array.isArray(e)||(e=[e]);let s=b(this,"classNames",t,n);s&&s.length&&(e=e.concat(s)),e.length&&(i.className=e.join(" "))}this.buildId&&(i.id=this.buildId(t)),this.buildAttributes&&(i.attributes=this.buildAttributes(t)),this.keyUp&&(i["widget-key-up"]=new c.WidgetKeyUpHook(this)),this.keyDown&&(i["widget-key-down"]=new c.WidgetKeyDownHook(this)),this.clickOutside&&(i["widget-click-outside"]=new c.WidgetClickOutsideHook(this)),this.click&&(i["widget-click"]=new c.WidgetClickHook(this)),this.doubleClick&&(i["widget-double-click"]=new c.WidgetDoubleClickHook(this)),this.mouseDownOutside&&(i["widget-mouse-down-outside"]=new c.WidgetMouseDownOutsideHook(this)),this.drag&&(i["widget-drag"]=new c.WidgetDragHook(this)),this.input&&(i["widget-input"]=new c.WidgetInputHook(this)),this.change&&(i["widget-change"]=new c.WidgetChangeHook(this)),this.mouseDown&&(i["widget-mouse-down"]=new c.WidgetMouseDownHook(this)),this.mouseUp&&(i["widget-mouse-up"]=new c.WidgetMouseUpHook(this)),this.mouseMove&&(i["widget-mouse-move"]=new c.WidgetMouseMoveHook(this)),this.mouseOver&&(i["widget-mouse-over"]=new c.WidgetMouseOverHook(this)),this.mouseOut&&(i["widget-mouse-out"]=new c.WidgetMouseOutHook(this)),this.touchStart&&(i["widget-touch-start"]=new c.WidgetTouchStartHook(this)),this.touchEnd&&(i["widget-touch-end"]=new c.WidgetTouchEndHook(this)),this.touchMove&&(i["widget-touch-move"]=new c.WidgetTouchMoveHook(this));let s=i.attributes||{};i.attributes=s,this.title&&("function"==typeof this.title?s.title=this.title(t,n):s.title=(0,h.i18n)(this.title)),this.transformed=this.transform(this.attrs,this.state);let r=this.html(t,n);if(this.name){let e=b(this,"before",t,n)||[],i=b(this,"after",t,n)||[];r=e.concat(r).concat(i)}return(0,a.h)(this.tagName||"div",i,r)}}E.prototype.type="Thunk"},93223:(e,t,n)=>{"use strict";n.r(t),n.d(t,{attribute:()=>r,attributeBindings:()=>c,className:()=>o,classNameBindings:()=>u,classNames:()=>l,layout:()=>p,tagName:()=>d}),n(38389);var i=n(79679),s=n(68986);let r=(0,s.decoratorWithParams)(function(e,t,n){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if((0,i.default)(e),!e.hasOwnProperty("attributeBindings")){let t=e.attributeBindings;e.attributeBindings=Array.isArray(t)?t.slice():[]}let r=s[0]?`${t}:${s[0]}`:t;return e.attributeBindings.push(r),n&&(n.configurable=!0),n}),o=(0,s.decoratorWithParams)(function(e,t,n){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if((0,i.default)(e),!e.hasOwnProperty("classNameBindings")){let t=e.classNameBindings;e.classNameBindings=Array.isArray(t)?t.slice():[]}let r=s.length>0?`${t}:${s.join(":")}`:t;return e.classNameBindings.push(r),n&&(n.configurable=!0),n});function a(e){return(0,s.decoratorWithRequiredParams)((t,n)=>{if((0,i.default)(t.prototype),e in t.prototype){let i=t.prototype[e];n.unshift(...i)}return t.prototype[e]=n,t},e)}let l=a("classNames"),u=a("classNameBindings"),c=a("attributeBindings"),d=(0,s.decoratorWithRequiredParams)((e,t)=>{let[n]=t;return e.prototype.tagName=n,e},"tagName"),p=function(){for(var e=arguments.length,t=Array(e),n=0;n{let[n]=t;return e.prototype.layout=n,e}}},9630:(e,t,n)=>{"use strict";n.r(t),n.d(t,{observes:()=>a,off:()=>c,on:()=>u,unobserves:()=>l}),n(38389),n(70001);var i=n(5938),s=n(6044),r=n(52798),o=n(68986);let a=(0,o.decoratorWithRequiredParams)((e,t,n,s)=>{for(let n of s)(0,i.expandProperties)(n,n=>{(0,r.addObserver)(e,n,null,t)});return n},"observes"),l=(0,o.decoratorWithRequiredParams)((e,t,n,s)=>{for(let n of s)(0,i.expandProperties)(n,n=>{(0,r.removeObserver)(e,n,null,t)});return n},"unobserves"),u=(0,o.decoratorWithRequiredParams)((e,t,n,i)=>{for(let n of i)(0,s.addListener)(e,n,null,t);return n},"on"),c=(0,o.decoratorWithRequiredParams)((e,t,n,i)=>{for(let n of i)(0,s.removeListener)(e,n,null,t);return n},"off")},98981:(e,t,n)=>{"use strict";function i(e){let[t,n,i]=e;return 3===e.length&&"object"==typeof t&&null!==t&&"string"==typeof n&&("object"==typeof i&&null!==i&&"enumerable"in i&&"configurable"in i||void 0===i)}function s(e){return i(e)||function(e){let[t]=e;return 1===e.length&&"function"==typeof t&&"prototype"in t&&!t.__isComputedDecorator}(e)}n.r(t),n.d(t,{isDescriptor:()=>s,isFieldDescriptor:()=>i})},79679:(e,t,n)=>{"use strict";function i(e){"function"==typeof e.constructor.proto&&e.constructor.proto()}n.r(t),n.d(t,{default:()=>i})},68986:(e,t,n)=>{"use strict";n.r(t),n.d(t,{decoratorWithParams:()=>s,decoratorWithRequiredParams:()=>r}),n(38389);var i=n(98981);function s(e){return function(){for(var t=arguments.length,n=Array(t),s=0;s{"use strict";n.r(t),n.d(t,{default:()=>i});let i="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},94657:(e,t,n)=>{"use strict";function i(e){let t={};for(let n in t[e]=1,t)if(n===e)return n;return e}n.r(t),n.d(t,{HAS_BLOCK:()=>r,isSimpleClick:()=>o});let s=i(`__ember${Date.now()}`),r=function(e){let t=s+Math.floor(Math.random()*Date.now());return i(`__${e}${t}__`)}("HAS_BLOCK");function o(e){let t=e.shiftKey||e.metaKey||e.altKey||e.ctrlKey,n=e.which>1;return!t&&!n}},23849:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(70001);n(38389);var s=n(76417);let r=(0,n(82739).createTemplateFactory)({id:"MghmjhJQ",block:'[[[18,1,null]],["&default"],false,["yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/@ember/legacy-built-in-components.fa7c273b/node_modules/@ember/legacy-built-in-components/components/checkbox.hbs",isStrictMode:!1}),o=s.default.extend({classNames:["ember-checkbox"],tagName:"input",attributeBindings:["type","checked","indeterminate","disabled","tabindex","name","autofocus","required","form"],type:"checkbox",disabled:!1,indeterminate:!1,checked:!1,didInsertElement(){this._super(...arguments),this.element.indeterminate=!!this.indeterminate},change(){(0,i.set)(this,"checked",this.element.checked)}});o.toString=()=>"@ember/component/checkbox";let a=(0,s.setComponentTemplate)(r,o)},92189:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var i=n(5938),s=n(70001),r=n(8968),o=n(76417),a=n(38389),l=n(8608),u=n(54729),c=n(94657);let d=(0,n(82739).createTemplateFactory)({id:"mPlkf8RZ",block:'[[[41,[48,[30,1]],[[[18,1,null]],[]],[[[1,[30,0,["linkTitle"]]]],[]]]],["&default"],false,["if","has-block","yield"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/@ember/legacy-built-in-components.fa7c273b/node_modules/@ember/legacy-built-in-components/components/link-to.hbs",isStrictMode:!1}),p=Object.freeze({toString:()=>"UNDEFINED"}),h=Object.freeze({}),m=o.default.extend({tagName:"a",route:p,model:p,models:p,query:p,"current-when":null,disabledWhen:void 0,title:null,rel:null,tabindex:null,target:null,activeClass:"active",loadingClass:"loading",disabledClass:"disabled",replace:!1,preventDefault:!0,linkTitle:void 0,attributeBindings:["href","title","rel","tabindex","target"],classNameBindings:["active","loading","disabled","transitioningIn","transitioningOut"],eventName:"click",init(){this._super(...arguments),this.assertLinkToOrigin();let{eventName:e}=this;this.on(e,this,this._invoke)},_routing:(0,u.inject)("-routing"),_currentRoute:(0,i.alias)("_routing.currentRouteName"),_currentRouterState:(0,i.alias)("_routing.currentState"),_targetRouterState:(0,i.alias)("_routing.targetState"),assertLinkToOrigin(){},_isEngine:(0,s.computed)(function(){return void 0!==(0,l.getEngineParent)((0,r.getOwner)(this))}),_engineMountPoint:(0,s.computed)(function(){return(0,r.getOwner)(this).mountPoint}),_route:(0,s.computed)("route","_currentRouterState",function(){let{route:e}=this;return e===p?this._currentRoute:this._namespaceRoute(e)}),_models:(0,s.computed)("model","models",function(){let{model:e,models:t}=this;return e!==p?[e]:t!==p?t:[]}),_query:(0,s.computed)("query",function(){let{query:e}=this;return e===p?h:Object.assign({},e)}),disabled:(0,s.computed)({get:e=>!1,set(e,t){return this._isDisabled=t,!!t&&this.disabledClass}}),active:(0,s.computed)("activeClass","_active",function(){return!!this._active&&this.activeClass}),_active:(0,s.computed)("_currentRouterState","_route","_models","_query","loading","current-when",function(){let{_currentRouterState:e}=this;return!!e&&this._isActive(e)}),willBeActive:(0,s.computed)("_currentRouterState","_targetRouterState","_route","_models","_query","loading","current-when",function(){let{_currentRouterState:e,_targetRouterState:t}=this;if(e!==t)return this._isActive(t)}),_isActive(e){if(this.loading)return!1;let t=this["current-when"];if("boolean"==typeof t)return t;let{_models:n,_routing:i}=this;return"string"==typeof t?t.split(" ").some(t=>i.isActiveForRoute(n,void 0,this._namespaceRoute(t),e)):i.isActiveForRoute(n,this._query,this._route,e)},transitioningIn:(0,s.computed)("_active","willBeActive",function(){return!0===this.willBeActive&&!this._active&&"ember-transitioning-in"}),transitioningOut:(0,s.computed)("_active","willBeActive",function(){return!1===this.willBeActive&&!!this._active&&"ember-transitioning-out"}),_namespaceRoute(e){let{_engineMountPoint:t}=this;return void 0===t?e:"application"===e?t:`${t}.${e}`},_invoke(e){if(!(0,c.isSimpleClick)(e))return!0;let{bubbles:t,preventDefault:n}=this,i=this.element.target,s=!i||"_self"===i;if(!1!==n&&s&&e.preventDefault(),!1===t&&e.stopPropagation(),this._isDisabled||this.loading||!s)return!1;let{_route:r,_models:o,_query:a,replace:l}=this;return this._generateTransition({queryParams:a,routeName:r},r,o,a,l),!1},_generateTransition(e,t,n,i,s){let{_routing:r}=this;e.transition=r.transitionTo(t,n,i,s)},href:(0,s.computed)("_currentRouterState","_route","_models","_query","tagName","loading","loadingHref",function(){if("a"!==this.tagName)return;if(this.loading)return this.loadingHref;let{_route:e,_models:t,_query:n,_routing:i}=this;return i.generateURL(e,t,n)}),loading:(0,s.computed)("_route","_modelsAreLoaded","loadingClass",function(){let{_route:e,_modelsAreLoaded:t}=this;if(!t||null==e)return this.loadingClass}),_modelsAreLoaded:(0,s.computed)("_models",function(){let{_models:e}=this;for(let t=0;t0){let t=e[e.length-1];"object"==typeof t&&null!==t&&t.isQueryParams&&(this.query=t.values,e.pop())}return}let n=this[c.HAS_BLOCK];t=t.slice(),n||this.set("linkTitle",t.shift());let i=t[t.length-1];i&&i.isQueryParams?this.set("query",t.pop().values):this.set("query",p),0===t.length?this.set("route",p):this.set("route",t.shift()),this.set("model",p),this.set("models",t),(0,a.runInDebug)(()=>{t=this.params.slice();let e=[],i=!1;n||t.shift();let s=t[t.length-1];if(s&&s.isQueryParams&&(t.pop(),i=!0),t.length>0&&(t.shift(),e.push("`@route`")),1===t.length?e.push("`@model`"):t.length>1&&e.push("`@models`"),i&&e.push("`@query`"),e.length>0){let t="Invoking the `` component with positional arguments is deprecated.";t+=`Please use the equivalent named arguments (${e.join(", ")})`,i&&(t+=" along with the `hash` helper"),n||(t+=" and pass a block for the link's content."),t+=".",(0,a.deprecate)(t,!1,{id:"ember-glimmer.link-to.positional-arguments",until:"4.0.0",for:"ember-source",url:"https://deprecations.emberjs.com/v3.x#toc_ember-glimmer-link-to-positional-arguments",since:{available:"3.26.0-beta.1",enabled:"3.26.0-beta.1"}})}})}});m.toString=()=>"@ember/routing/link-component",m.reopenClass({positionalParams:"params"});let g=(0,o.setComponentTemplate)(d,m)},86298:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i=n(39870),s=n(70001),r=n(76417),o=n(43719);let a=i.default?Object.create(null):null,l=r.default.extend(o.default,{classNames:["ember-text-field"],tagName:"input",attributeBindings:["accept","autocomplete","autosave","dir","formaction","formenctype","formmethod","formnovalidate","formtarget","height","inputmode","lang","list","type","max","min","multiple","name","pattern","size","step","value","width"],value:"",type:(0,s.computed)({get:()=>"text",set(e,t){let n="text";return function(e){if(!i.default)return!!e;if(e in a)return a[e];let t=document.createElement("input");try{t.type=e}catch(e){}return a[e]=t.type===e}(t)&&(n=t),n}}),size:null,pattern:null,min:null,max:null});l.toString=()=>"@ember/component/text-field";let u=l},46890:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(43719),s=n(76417),r=n(39862);let o=s.default.extend(i.default,{classNames:["ember-text-area"],layout:r.default,tagName:"textarea",attributeBindings:["rows","cols","name","selectionEnd","selectionStart","autocomplete","wrap","lang","dir","value"],rows:null,cols:null});o.toString=()=>"@ember/component/text-area";let a=o},38861:(e,t,n)=>{"use strict";let i,s,r,o;n.r(t),n.d(t,{Checkbox:()=>i,LinkComponent:()=>s,TextArea:()=>r,TextField:()=>o}),n(1133);var a=n(41664);i=(0,a.A)(n(23849)).default,s=(0,a.A)(n(92189)).default,r=(0,a.A)(n(46890)).default,o=(0,a.A)(n(86298)).default},78209:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(70001),s=n(43056);n(38389);let r=s.default.create({target:null,action:null,actionContext:null,actionContextObject:(0,i.computed)("actionContext",function(){let e=(0,i.get)(this,"actionContext");return"string"==typeof e?(0,i.get)(this,e):e}),triggerAction(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{action:t,target:n,actionContext:s}=e;return t=t||(0,i.get)(this,"action"),n=n||function(e){let t=(0,i.get)(e,"target");if(t){if("string"!=typeof t)return t;{let n=(0,i.get)(e,t);return void 0===n&&(n=(0,i.get)(context.lookup,t)),n}}return e._target?e._target:null}(this),void 0===s&&(s=(0,i.get)(this,"actionContextObject")||this),!!n&&!!t&&!1!==(n.send?n.send(...[t].concat(s)):n[t](...[].concat(s)))}})},43719:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(70001),s=n(43056),r=n(78209),o=n(68112);let a={Enter:"insertNewline",Escape:"cancel"},l=s.default.create(r.default,{value:"",attributeBindings:["autocapitalize","autocorrect","autofocus","disabled","form","maxlength","minlength","placeholder","readonly","required","selectionDirection","spellcheck","tabindex","title"],placeholder:null,disabled:!1,maxlength:null,init(){this._super(...arguments),this.on("paste",this,this._elementValueDidChange),this.on("cut",this,this._elementValueDidChange),this.on("input",this,this._elementValueDidChange)},bubbles:!1,interpretKeyEvents(e){let t=a[e.key];if(this._elementValueDidChange(),t)return this[t](e)},_elementValueDidChange(){(0,i.set)(this,"value",this.element.value)},change(e){this._elementValueDidChange(e)},insertNewline(e){u("enter",this,e),u("insert-newline",this,e)},cancel(e){u("escape-press",this,e)},focusIn(e){u("focus-in",this,e)},focusOut(e){this._elementValueDidChange(e),u("focus-out",this,e)},keyPress(e){u("key-press",this,e)},keyUp(e){this.interpretKeyEvents(e),u("key-up",this,e)},keyDown(e){u("key-down",this,e)}});function u(e,t,n){let s=(0,i.get)(t,`attrs.${e}`);null!==s&&"object"==typeof s&&!0===s[o.MUTABLE_CELL]&&(s=s.value),void 0===s&&(s=(0,i.get)(t,e));let r=t.value;"function"==typeof s&&s(r,n),s&&!t.bubbles&&n.stopPropagation()}},3427:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i.default});var i=n(68741)},21703:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i.default});var i=n(48605)},63061:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i.default});var i=n(77843)},68741:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(87075);let s=(0,i.setModifierManager)(()=>({capabilities:(0,i.capabilities)("3.22",{disableAutoTracking:!0}),createModifier(){},installModifier(e,t,n){let{positional:[i,...s],named:r}=n;i(t,s,r)},updateModifier(){},destroyModifier(){}}),class{})},48605:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(87075),s=n(41664);let r=function(){return(0,s.A)(n(55336)).untrack}(),o=(0,i.setModifierManager)(()=>({capabilities:(0,i.capabilities)("3.22",{disableAutoTracking:!1}),createModifier:()=>({element:null}),installModifier(e,t,n){e.element=t,n.positional.forEach(()=>{}),n.named&&Object.values(n.named)},updateModifier(e,t){let{element:n}=e,[i,...s]=t.positional;t.positional.forEach(()=>{}),t.named&&Object.values(t.named),r(()=>{i(n,s,t.named)})},destroyModifier(){}}),class{})},77843:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(87075);let s=(0,i.setModifierManager)(()=>({capabilities:(0,i.capabilities)("3.22",{disableAutoTracking:!0}),createModifier:()=>({element:null}),installModifier(e,t){e.element=t},updateModifier(){},destroyModifier(e,t){let{element:n}=e,[i,...s]=t.positional;i(n,s,t.named)}}),class{})},21324:(e,t,n)=>{"use strict";function i(){}n.r(t),n.d(t,{_resetWaiterNames:()=>i,default:()=>r}),n(38389),n(69893);class s{constructor(e){this.name=e}beginAsync(){return this}endAsync(){}waitUntil(){return!0}debugInfo(){return[]}reset(){}}function r(e){return new s(e)}},44258:(e,t,n)=>{"use strict";n.r(t),n.d(t,{_reset:()=>s._reset,_resetWaiterNames:()=>s._resetWaiterNames,buildWaiter:()=>s.buildWaiter,getPendingWaiterState:()=>s.getPendingWaiterState,getWaiters:()=>s.getWaiters,hasPendingWaiters:()=>s.hasPendingWaiters,register:()=>s.register,unregister:()=>s.unregister,waitFor:()=>s.waitFor,waitForPromise:()=>s.waitForPromise});var i=n(38389),s=n(80817);(0,i.deprecate)("Importing from ember-test-waiters is deprecated. Please import from @ember/test-waiters",!1,{id:"ember-test-waiters-legacy-module-name",until:"3.0.0",for:"ember-test-waiters",since:{enabled:"2.2.0"}})},80817:(e,t,n)=>{"use strict";n.r(t),n.d(t,{_reset:()=>i._reset,_resetWaiterNames:()=>s._resetWaiterNames,buildWaiter:()=>s.default,getPendingWaiterState:()=>i.getPendingWaiterState,getWaiters:()=>i.getWaiters,hasPendingWaiters:()=>i.hasPendingWaiters,register:()=>i.register,unregister:()=>i.unregister,waitFor:()=>o.default,waitForPromise:()=>r.default});var i=n(69893),s=n(21324),r=n(53634),o=n(54414)},86636:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});class i{}},4279:(e,t,n)=>{"use strict";n.r(t)},53634:(e,t,n)=>{"use strict";function i(e,t){return e}n.r(t),n.d(t,{default:()=>i}),(0,n(21324).default)("@ember/test-waiters:promise-waiter")},54414:(e,t,n)=>{"use strict";function i(){for(var e=arguments.length,t=Array(e),n=0;ni}),n(53634),(0,n(21324).default)("@ember/test-waiters:generator-waiter")},69893:(e,t,n)=>{"use strict";n.r(t),n.d(t,{_reset:()=>c,getPendingWaiterState:()=>d,getWaiters:()=>u,hasPendingWaiters:()=>p,register:()=>a,unregister:()=>l});var i=n(1133),s=n(64014);let r=function(){let e="TEST_WAITERS",t="undefined"!=typeof Symbol?Symbol.for(e):e,n=function(){if("undefined"!=typeof globalThis)return o(globalThis);if("undefined"!=typeof self)return o(self);if("undefined"!=typeof window)return o(window);if("undefined"!=typeof global)return o(global);throw Error("unable to locate global object")}(),i=n[t];return void 0===i&&(i=n[t]=new Map),i}();function o(e){return e}function a(e){r.set(e.name,e)}function l(e){r.delete(e.name)}function u(){let e=[];return r.forEach(t=>{e.push(t)}),e}function c(){for(let e of u())e.isRegistered=!1;r.clear()}function d(){let e={pending:0,waiters:{}};return r.forEach(t=>{if(!t.waitUntil()){e.pending++;let n=t.debugInfo();e.waiters[t.name]=n||!0}}),e}function p(){return d().pending>0}i.default.Test&&(0,s.registerWaiter)(()=>!p())},23392:(e,t,n)=>{"use strict";function i(e){return e?.__esModule?e:{default:e,...e}}n.r(t),n.d(t,{default:()=>i})},87185:(e,t,n)=>{"use strict";function i(e){if(!Array.isArray(e))throw Error("the argument to the each() macro must be an array");return e}function s(e){return e}function r(e){return l.packages[e]}function o(){return l.global}function a(){let e=l.global,t=e&&e["@embroider/macros"];return!!(t&&t.isTesting)}n.r(t),n.d(t,{config:()=>r,each:()=>i,getGlobalConfig:()=>o,isTesting:()=>a,macroCondition:()=>s});let l=function(){return{packages:{},global:{}}}(),u="undefined"!=typeof window?window._embroider_macros_runtime_config:void 0;if(u){let e=function(){return{config:r,getGlobalConfig:o,setConfig(e,t){l.packages[e]=t},setGlobalConfig(e,t){l.global[e]=t}}}();for(let t of u)t(e)}},27492:(e,t,n)=>{"use strict";function i(e,t,n){return class{static create(e){return new this(t(e))}constructor(t){!function(e,t,n){(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"capabilities",n),e(this,t)}createComponent(e,n){return new e(t(this),n.named)}getContext(e){return e}}}n.r(t),n.d(t,{default:()=>i}),n(53578)},53578:(e,t,n)=>{"use strict";let i;n.r(t),n.d(t,{ARGS_SET:()=>i,default:()=>o});var s=n(25910),r=n(66870);class o{constructor(e,t){!function(e,t,n){(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"args",void 0),this.args=t,(0,s.setOwner)(this,e)}get isDestroying(){return(0,r.isDestroying)(this)}get isDestroyed(){return(0,r.isDestroyed)(this)}willDestroy(){}}},66870:(e,t,n)=>{"use strict";n.r(t),n.d(t,{isDestroyed:()=>r,isDestroying:()=>s});var i=n(1133);let s=i.default._isDestroying,r=i.default._isDestroyed},650:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(1133);n(70001);var s=n(8968),r=n(76417);n(42433);var o=n(27492);let{setDestroyed:a,setDestroying:l}=n(66870),u=(0,r.capabilities)("3.13",{destructor:!0,asyncLifecycleCallbacks:!1,updateHook:!1}),c=i.default.destroy,d=i.default._registerDestructor;class p extends(0,o.default)(s.setOwner,s.getOwner,u){createComponent(e,t){let n=super.createComponent(e,t);return d(n,()=>{n.willDestroy()}),n}destroyComponent(e){c(e)}}let h=p},25910:(e,t,n)=>{"use strict";n.r(t),n.d(t,{setOwner:()=>i.setOwner});var i=n(8968)},51656:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i.default});var i=n(650)},37138:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(76417),s=n(650);let r=n(53578).default;(0,i.setComponentManager)(e=>new s.default(e),r);let o=r},28564:(e,t,n)=>{"use strict";n.r(t),n.d(t,{cached:()=>i,tracked:()=>s});let{cached:i,tracked:s}=n(76425)},42686:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i.default});var i=n(91768)},25507:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i.default});var i=n(87751)},91768:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h});var i=n(37138),s=n(39882),r=n(70001),o=n(54729),a=n(35804),l=n(64151),u=n(47759),c=n.n(u),d=n(76417),p=n(82739);class h extends i.default{static #e=(()=>dt7948.g(this.prototype,"dialog",[o.service]))();#v=(()=>void dt7948.i(this,"dialog"))();async handleButtonAction(e){"function"==typeof e.action&&await e.action(),this.dialog.cancel()}static #n=(()=>dt7948.n(this.prototype,"handleButtonAction",[r.action]))();static #i=(()=>(0,d.setComponentTemplate)((0,p.createTemplateFactory)({id:"J94SOndO",block:'[[[1,"\\n "],[10,0],[15,"aria-labelledby",[30,0,["dialog","titleElementId"]]],[14,"aria-hidden","true"],[14,1,"dialog-holder"],[15,0,[29,["dialog-container ",[30,0,["dialog","class"]]]]],[12],[1,"\\n "],[10,0],[14,0,"dialog-overlay"],[14,"data-a11y-dialog-hide",""],[12],[13],[1,"\\n\\n"],[41,[30,0,["dialog","type"]],[[[1," "],[10,0],[14,0,"dialog-content"],[14,"role","document"],[12],[1,"\\n"],[41,[30,0,["dialog","title"]],[[[1," "],[10,0],[14,0,"dialog-header"],[12],[1,"\\n "],[10,"h3"],[15,1,[30,0,["dialog","titleElementId"]]],[12],[1,[30,0,["dialog","title"]]],[13],[1,"\\n "],[8,[32,0],[[24,0,"btn-flat dialog-close close"]],[["@action","@title","@icon"],[[30,0,["dialog","cancel"]],"modal.close","xmark"]],null],[1,"\\n "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,1],[[30,0,["dialog","message"]],[30,0,["dialog","bodyComponent"]]],null],[[[1," "],[10,0],[14,0,"dialog-body"],[12],[1,"\\n"],[41,[30,0,["dialog","bodyComponent"]],[[[1," "],[8,[30,0,["dialog","bodyComponent"]],null,[["@model"],[[30,0,["dialog","bodyComponentModel"]]]],null],[1,"\\n"]],[]],[[[41,[30,0,["dialog","message"]],[[[1," "],[10,2],[12],[1,[28,[32,2],[[30,0,["dialog","message"]]],null]],[13],[1,"\\n "]],[]],null]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1,"\\n"],[41,[28,[32,3],[[30,0,["dialog","type"]],"notice"],null],[[[1," "],[10,0],[14,0,"dialog-footer"],[12],[1,"\\n"],[42,[28,[31,2],[[28,[31,2],[[30,0,["dialog","buttons"]]],null]],null],null,[[[1," "],[8,[32,0],[[16,0,[30,1,["class"]]]],[["@action","@translatedLabel","@icon"],[[28,[32,4],[[30,0,["handleButtonAction"]],[30,1]],null],[30,1,["label"]],[30,1,["icon"]]]],null],[1,"\\n"]],[1]],[[[1," "],[8,[32,0],[[16,0,[30,0,["dialog","confirmButtonClass"]]]],[["@action","@icon","@label","@disabled"],[[30,0,["dialog","didConfirmWrapped"]],[30,0,["dialog","confirmButtonIcon"]],[30,0,["dialog","confirmButtonLabel"]],[30,0,["dialog","confirmButtonDisabled"]]]],null],[1,"\\n"],[41,[30,0,["dialog","shouldDisplayCancel"]],[[[1," "],[8,[32,0],[[16,0,[30,0,["dialog","cancelButtonClass"]]]],[["@action","@label"],[[30,0,["dialog","cancel"]],[30,0,["dialog","cancelButtonLabel"]]]],null],[1,"\\n"]],[]],null]],[]]],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n"]],[]],null],[1," "],[13],[1,"\\n "]],["button"],false,["if","each","-track-array"]]',moduleName:"/var/www/discourse/app/assets/javascripts/discourse/node_modules/.embroider/rewritten-packages/dialog-holder.0d5d21b0/node_modules/dialog-holder/components/dialog-holder.js",scope:()=>[c(),l.or,a.htmlSafe,l.notEq,s.fn],isStrictMode:!0}),this))()}},87751:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>b});var i=n(42433),s=n(54729);let r={inert:":not([inert]):not([inert] *)",negTabIndex:':not([tabindex^="-"])',disabled:":not(:disabled)"};var o=[`a[href]${r.inert}${r.negTabIndex}`,`area[href]${r.inert}${r.negTabIndex}`,`input:not([type="hidden"]):not([type="radio"])${r.inert}${r.negTabIndex}${r.disabled}`,`input[type="radio"]${r.inert}${r.negTabIndex}${r.disabled}`,`select${r.inert}${r.negTabIndex}${r.disabled}`,`textarea${r.inert}${r.negTabIndex}${r.disabled}`,`button${r.inert}${r.negTabIndex}${r.disabled}`,`details${r.inert} > summary:first-of-type${r.negTabIndex}`,`iframe${r.inert}${r.negTabIndex}`,`audio[controls]${r.inert}${r.negTabIndex}`,`video[controls]${r.inert}${r.negTabIndex}`,`[contenteditable]${r.inert}${r.negTabIndex}`,`[tabindex]${r.inert}${r.negTabIndex}`];function a(e){(e.querySelector("[autofocus]")||e).focus()}function l(e,t){if(t&&p(e))return e;if(function(e){return(!e.shadowRoot||"-1"!==e.getAttribute("tabindex"))&&!e.matches(":disabled,[hidden],[inert]")}(e)){if(e.shadowRoot){let n=u(e.shadowRoot,t);for(;n;){let e=l(n,t);if(e)return e;n=c(n,t)}}else if("slot"===e.localName){let n=e.assignedElements({flatten:!0});for(let e of(t||n.reverse(),n)){let n=l(e,t);if(n)return n}}else{let n=u(e,t);for(;n;){let e=l(n,t);if(e)return e;n=c(n,t)}}}return!t&&p(e)?e:null}function u(e,t){return t?e.firstElementChild:e.lastElementChild}function c(e,t){return t?e.nextElementSibling:e.previousElementSibling}let d=e=>!!e.matches("details:not([open]) *")&&!e.matches("details>summary:first-of-type")||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length),p=e=>!e.shadowRoot?.delegatesFocus&&e.matches(o.join(","))&&!d(e);function h(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=e.activeElement;return t?t.shadowRoot?h(t.shadowRoot)||document.activeElement:t:null}function m(e,t){return function t(n){return n&&n!==document&&n!==window?(n.assignedSlot&&(n=n.assignedSlot),n.closest(e)||t(n.getRootNode().host)):null}(t)}let g="data-a11y-dialog";class f{$el;id;previouslyFocused;shown;constructor(e){this.$el=e,this.id=this.$el.getAttribute(g)||this.$el.id,this.previouslyFocused=null,this.shown=!1,this.maintainFocus=this.maintainFocus.bind(this),this.bindKeypress=this.bindKeypress.bind(this),this.handleTriggerClicks=this.handleTriggerClicks.bind(this),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.$el.setAttribute("aria-hidden","true"),this.$el.setAttribute("aria-modal","true"),this.$el.setAttribute("tabindex","-1"),this.$el.hasAttribute("role")||this.$el.setAttribute("role","dialog"),document.addEventListener("click",this.handleTriggerClicks,!0)}destroy(){return this.fire("destroy").defaultPrevented||(this.hide(),document.removeEventListener("click",this.handleTriggerClicks,!0),this.$el.replaceWith(this.$el.cloneNode(!0))),this}show(e){return this.shown||this.fire("show",e).defaultPrevented||(this.shown=!0,this.$el.removeAttribute("aria-hidden"),this.previouslyFocused=h(),this.previouslyFocused?.tagName==="BODY"&&e?.target&&(this.previouslyFocused=e.target),e?.type==="focus"?this.maintainFocus(e):a(this.$el),document.body.addEventListener("focus",this.maintainFocus,!0),this.$el.addEventListener("keydown",this.bindKeypress,!0)),this}hide(e){return!this.shown||this.fire("hide",e).defaultPrevented||(this.shown=!1,this.$el.setAttribute("aria-hidden","true"),this.previouslyFocused?.focus?.(),document.body.removeEventListener("focus",this.maintainFocus,!0),this.$el.removeEventListener("keydown",this.bindKeypress,!0)),this}on(e,t,n){return this.$el.addEventListener(e,t,n),this}off(e,t,n){return this.$el.removeEventListener(e,t,n),this}fire(e,t){let n=new CustomEvent(e,{detail:t,cancelable:!0});return this.$el.dispatchEvent(n),n}handleTriggerClicks(e){let t=e.composedPath()[0],n=m(`[${g}-show="${this.id}"]`,t),i=m(`[${g}-hide="${this.id}"]`,t),s=m(`[${g}-hide]`,t)&&m('[aria-modal="true"]',t)===this.$el;n&&this.show(e),(i||s)&&this.hide(e)}bindKeypress(e){if(m('[aria-modal="true"]',h())!==this.$el)return;let t=!1;try{t=!!this.$el.querySelector('[popover]:not([popover="manual"]):popover-open')}catch{}"Escape"!==e.key||"alertdialog"===this.$el.getAttribute("role")||t||(e.preventDefault(),this.hide(e)),"Tab"===e.key&&function(e,t){let[n,i]=function(e){let t=l(e,!0),n=t?l(e,!1)||t:null;return[t,n]}(e);if(!n)return t.preventDefault();let s=h();t.shiftKey&&s===n?(i.focus(),t.preventDefault()):t.shiftKey||s!==i||(n.focus(),t.preventDefault())}(this.$el,e)}maintainFocus(e){e.target.closest(`[aria-modal="true"], [${g}-ignore-focus-trap]`)||a(this.$el)}}function _(){for(let e of document.querySelectorAll("[data-a11y-dialog]"))new f(e)}"undefined"!=typeof document&&("loading"===document.readyState?document.addEventListener("DOMContentLoaded",_):_());var y=n(62797);class b extends s.default{dialogInstance=null;message=null;title=null;titleElementId=null;type=null;bodyComponent=null;bodyComponentModel=null;confirmButtonIcon=null;confirmButtonLabel=null;confirmButtonClass=null;confirmButtonDisabled=!1;cancelButtonLabel=null;cancelButtonClass=null;shouldDisplayCancel=null;didConfirm=null;didCancel=null;buttons=null;class=null;_confirming=!1;willDestroy(){this.dialogInstance?.destroy(),this.reset()}async dialog(e){let{message:t,bodyComponent:n,bodyComponentModel:s,type:r,title:o,confirmButtonClass:a="btn-primary",confirmButtonIcon:l,confirmButtonLabel:u="ok_value",confirmButtonDisabled:c=!1,cancelButtonClass:d="btn-default",cancelButtonLabel:p="cancel_value",shouldDisplayCancel:h,didConfirm:m,didCancel:g,buttons:_}=e;this.setProperties({message:t,bodyComponent:n,bodyComponentModel:s,type:r,title:o,titleElementId:null!==o?"dialog-title":null,confirmButtonClass:a,confirmButtonDisabled:c,confirmButtonIcon:l,confirmButtonLabel:u,cancelButtonClass:d,cancelButtonLabel:p,shouldDisplayCancel:h,didConfirm:m,didCancel:g,buttons:_,class:e.class}),await new Promise(e=>(0,i.schedule)("afterRender",e));let y=document.getElementById("dialog-holder");if(!y){let t="dialog-holder wrapper element not found. Unable to render dialog";throw console.error(t,e),Error(t)}this.dialogInstance=new f(y),this.dialogInstance.show(),this.dialogInstance.on("hide",()=>{!this._confirming&&this.didCancel&&this.didCancel(),this.reset()})}alert(e){return"string"==typeof e?this.dialog({message:e,type:"alert"}):this.dialog({...e,type:"alert"})}confirm(e){return this.dialog({...e,shouldDisplayCancel:!0,buttons:null,type:"confirm"})}notice(e){return this.dialog({message:e,type:"notice"})}yesNoConfirm(e){return this.confirm({...e,confirmButtonLabel:"yes_value",cancelButtonLabel:"no_value"})}deleteConfirm(e){return this.confirm({...e,confirmButtonClass:"btn-danger",confirmButtonLabel:e.confirmButtonLabel||"delete"})}reset(){this.setProperties({message:null,bodyComponent:null,bodyComponentModel:null,type:null,dialogInstance:null,title:null,titleElementId:null,confirmButtonDisabled:!1,confirmButtonIcon:null,confirmButtonLabel:null,cancelButtonClass:null,cancelButtonLabel:null,shouldDisplayCancel:null,didConfirm:null,didCancel:null,buttons:null,class:null,_confirming:!1})}didConfirmWrapped(){this.didConfirm&&this.didConfirm(),this._confirming=!0,this.dialogInstance.hide()}static #e=(()=>dt7948.n(this.prototype,"didConfirmWrapped",[y.bind]))();cancel(){this.dialogInstance.hide()}static #n=(()=>dt7948.n(this.prototype,"cancel",[y.bind]))();enableConfirmButton(){this.set("confirmButtonDisabled",!1)}static #i=(()=>dt7948.n(this.prototype,"enableConfirmButton",[y.bind]))()}},45929:(e,t,n)=>{"use strict";n.r(t),n.d(t,{INPUT_DELAY:()=>s,isDevelopment:()=>u,isLegacyEmber:()=>l,isProduction:()=>c,isTesting:()=>a,setEnvironment:()=>o});var i=n(54216);let s=250,r="unknown";function o(e){r=a()?"testing":e}function a(){return"testing"===r}function l(){return(0,i.default)("`isLegacyEmber()` is now deprecated and always returns false",{id:"discourse.is-legacy-ember",dropFrom:"3.0.0.beta1"}),!1}function u(){return"development"===r}function c(){return"production"===r}},88477:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=[{handler:"silence",matchId:"template-action"},{handler:"silence",matchId:"deprecate-array-prototype-extensions"},{handler:"silence",matchId:"discourse.select-kit"},{handler:"silence",matchId:"discourse.decorate-widget.hamburger-widget-links"},{handler:"silence",matchId:"discourse.hbr-topic-list-overrides"}]},28220:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(87389);function s(){return(0,i.default)("")}(0,n(11508).registerRawHelper)("base-path",s)},90882:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(54216),s=n(87389);function r(){return(0,i.default)("Use `{{base-path}}` instead of `{{base-url}}`",{id:"discourse.base-url"}),(0,s.default)("")}(0,n(11508).registerRawHelper)("base-url",r)},3204:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(35804),s=n(51969);function r(e,t){return(0,i.htmlSafe)((0,s.i18n)(e,t))}},82979:(e,t,n)=>{"use strict";function i(e,t){return t.modifyComponentForCollection(e)}n.r(t),n.d(t,{default:()=>i}),(0,n(11508).registerRawHelper)("component-for-collection",i)},55547:(e,t,n)=>{"use strict";function i(e,t,n){return n.modifyComponentForRow(e,t)}n.r(t),n.d(t,{default:()=>i}),(0,n(11508).registerRawHelper)("component-for-row",i)},21237:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(35804),s=n(11508),r=n(20762);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.htmlSafe)((0,r.renderIcon)("string",e,t))}(0,s.registerRawHelper)("d-icon",o)},13702:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,iconHTML:()=>a});var i=n(35804),s=n(54216),r=n(11508),o=n(20762);function a(e,t){return(0,o.renderIcon)("string",e,t)}function l(e,t){return(0,s.default)("Use `{{d-icon}}` instead of `{{fa-icon}}",{id:"discourse.fa-icon"}),(0,i.htmlSafe)(a(e,t))}(0,r.registerRawHelper)("fa-icon",l)},43331:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(87389);function s(e){return(0,i.default)(e)}(0,n(11508).registerRawHelper)("get-url",s)},23550:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(35804);function s(e){return(0,i.htmlSafe)(e)}(0,n(11508).registerRawHelper)("html-safe",s)},10801:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(11508),s=n(51969);function r(e,t){return(0,s.i18n)(e?"yes_value":"no_value",t)}(0,i.registerRawHelper)("i18n-yes-no",r)},17859:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(11508),s=n(51969);(0,i.registerRawHelper)("i18n",s.i18n);let r=s.i18n},70449:(e,t,n)=>{"use strict";function i(e,t){if(!(this instanceof i))return new i(e,t);this.namespace=e,this.value=t}n.r(t),n.d(t,{default:()=>s}),i.prototype.hook=function(e,t,n){n&&"AttributeHook"===n.type&&n.value===this.value&&n.namespace===this.namespace||e.setAttributeNS(this.namespace,t,this.value)},i.prototype.unhook=function(e,t,n){if(n&&"AttributeHook"===n.type&&n.namespace===this.namespace)return;let i=t.indexOf(":"),s=i>-1?t.slice(i+1):t;e.removeAttributeNS(this.namespace,s)},i.prototype.type="AttributeHook";let s=i},79356:(e,t,n)=>{"use strict";n.r(t),n.d(t,{avatarImg:()=>p,avatarUrl:()=>d,getRawAvatarSize:()=>c,getRawSize:()=>u,tinyAvatar:()=>h,translateSize:()=>l});var i=n(29166),s=n(87389),r=n(11508),o=n(482);let a=null;function l(e){switch(e){case"tiny":case"small":return 24;case"medium":case"large":return 48;case"extra_large":return 96;case"huge":return 144}return e}function u(e){let t=window.devicePixelRatio||1,n=1;return t>1.1&&t<2.1?n=2:t>=2.1&&(n=3),e*n}function c(e){a??=(0,r.helperContext)().siteSettings.avatar_sizes.split("|").map(e=>parseInt(e,10)).sort((e,t)=>e-t),e=u(e);for(let t=0;t=e)return a[t];return a[a.length-1]}function d(e,t){let{customGetURL:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)return"";let i=c(l(t)),r=e.replace(/\{size\}/g,i);return(n||s.getURLWithCDN)(r)}function p(e,t){let n=l(e.size),s=d(e.avatarTemplate,n,{customGetURL:t});if(!s)return"";let r="avatar"+(e.extraClasses?" "+e.extraClasses:""),o="";if(e.title){let t=(0,i.default)(e.title||"");o=` title='${t}'`}return``}function h(e,t){return p((0,o.deepMerge)({avatarTemplate:e,size:"tiny"},t))}},53896:(e,t,n)=>{"use strict";function i(e){return e.replace(/_([a-z])/g,(e,t)=>t.toUpperCase())}function s(e){return e.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()}function r(e){return e.replace(/([a-zA-Z])(?=[A-Z])/g,"$1_").toLowerCase()}n.r(t),n.d(t,{camelCaseToDash:()=>s,camelCaseToSnakeCase:()=>r,snakeCaseToCamelCase:()=>i})},84262:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(42433),s=n(45929);function r(){if(!(0,s.isTesting)())return(0,i.debounce)(...arguments);{let e=arguments[arguments.length-1],t="boolean"==typeof e,n=[].slice.call(arguments,0,t?-2:-1);return n.push(10),t&&n.push(e),i.debounce.apply(void 0,n)}}},54216:(e,t,n)=>{"use strict";let i;n.r(t),n.d(t,{default:()=>a,registerDeprecationHandler:()=>l,withSilencedDeprecations:()=>u,withSilencedDeprecationsAsync:()=>c});var s=n(88477);let r=[],o=new Set;function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{id:n,since:i,dropFrom:a,url:l,raiseError:u}=t;if(n&&o.has(n))return;e=["Deprecation notice:",e],i&&e.push(`[deprecated since Discourse ${i}]`),a&&e.push(`[removal in Discourse ${a}]`),n&&e.push(`[deprecation id: ${n}]`),l&&e.push(`[info: ${l}]`),e=e.join(" ");let c="";window.require.has("discourse/lib/source-identifier")&&(c=window.require("discourse/lib/source-identifier").consolePrefix()||""),r.forEach(n=>n(e,t));let d=s.default.find(e=>e.matchId===n);if(u||d?.handler==="throw"||!d&&globalThis.EmberENV?.RAISE_ON_DEPRECATION)throw e;d?.handler!=="silence"&&console.warn(...[c,e].filter(Boolean))}function l(e){r.push(e)}function u(e,t){d();let n=[].concat(e);try{n.forEach(e=>o.add(e));let e=t();if(e instanceof Promise)throw Error("withSilencedDeprecations callback returned a promise. Use withSilencedDeprecationsAsync instead.");return e}finally{n.forEach(e=>o.delete(e))}}async function c(e,t){d();let n=[].concat(e);try{return n.forEach(e=>o.add(e)),await t()}finally{n.forEach(e=>o.delete(e))}}function d(){!i&&(i=(e,t,n)=>{t?.id&&o.has(t.id)||n(e,t)},window.require.has("@ember/debug")&&window.require("@ember/debug").registerDeprecationHandler(i))}},82224:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(54216);let s=/^discourse\/plugins\/([^\/]+)\/(.*)$/,r=/^discourse\/theme-([^\/]+)\/(.*)$/,o=["discourse/","admin/"];class a{coreTemplates=(()=>new Map)();pluginTemplates=(()=>new Map)();themeTemplates=(()=>new Map)();prioritizedCaches=[this.themeTemplates,this.pluginTemplates,this.coreTemplates];setModuleNames(e){for(let t of(this.coreTemplates.clear(),this.pluginTemplates.clear(),this.themeTemplates.clear(),e))(function(e){for(let t of o)if(e.startsWith(t))return!0;return!1})(t)&&function(e){return e.includes("/templates/")}(t)&&this.#g2(t)}#g2(e){let t,n,i,o=e;(t=o.match(s))?(o=t[2],i=this.pluginTemplates):(n=o.match(r))?(o=n[2],i=this.themeTemplates):i=this.coreTemplates,function(e,t,n){let i=e.get(t);(i??=[]).push(n),e.set(t,i)}(i,o=o.replace(/^discourse\/templates\//,""),e)}resolve(e){let[t,n,s]=this.prioritizedCaches.map(t=>{let n=t.get(e);if(n)return n[n.length-1]});return(t||n)&&s&&(0,i.default)(`[${t||n}] Overriding templates is deprecated, and will soon be disabled. Use plugin outlets, CSS, or other customization APIs instead.`,{id:"discourse.resolver-template-overrides",url:"https://meta.discourse.org/t/247487"}),t||n||s}keys(){return[...new Set([...this.coreTemplates.keys(),...this.pluginTemplates.keys(),...this.themeTemplates.keys()])]}}let l=new a},19726:(e,t,n)=>{"use strict";function i(e){let t=document.createElement("template");return e=e.trim(),t.innerHTML=e,t.content.children}n.r(t),n.d(t,{default:()=>i})},29166:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});let i={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},s=/[&<>"'`]/g,r=/[&<>"'`]/;function o(e){return i[e]}function a(e){return null===e?"":e?(e=""+e,r.test(e))?e.replace(s,o):e:e+""}},26399:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getOwner:()=>a,getOwnerWithFallback:()=>o,getRegister:()=>u,setDefaultOwner:()=>l});var i=n(71597),s=n(54216);let r={};function o(e){return i.getOwner?(0,i.getOwner)(e||r)||(0,i.getOwner)(r):e.container}function a(e){return(0,s.default)("Importing getOwner from `discourse-common/lib/get-owner` is deprecated. See the alternatives on meta.",{since:"3.2",id:"discourse.get-owner-with-fallback",url:"https://meta.discourse.org/t/292080"}),o(e)}function l(e){(0,i.setOwner)(r,e)}function u(e){let t=o(e),n={lookup:function(){return t.lookup(...arguments)},lookupFactory:function(){return t.factoryFor?t.factoryFor(...arguments):t._lookupFactory?t._lookupFactory(...arguments):void 0},deprecateContainer(e){Object.defineProperty(e,"container",{get:()=>((0,s.default)("Use `this.register` or `getOwner` instead of `this.container`",{id:"discourse.this-container"}),n)})}};return(0,i.setOwner)(n,t),n}},87389:(e,t,n)=>{"use strict";let i,s,r,o,a,l,u;function c(e){return(void 0===r&&g(document.querySelector('meta[name="discourse-base-uri"]')?.getAttribute("content")||""),e)?"/"!==e&&!/^\/[^\/]/.test(e)||o.test(e)?e:("/"!==e[0]&&(e="/"+e),r+e):"/"===r?"":r}function d(e){return e=c(e),i&&/^\/[^\/]/.test(e)?e=i+e:l&&e.startsWith(a)&&(e=e.replace(a,l)),e}function p(e){return s+m(e)}function h(e){return e.startsWith(s)}function m(e){return r?e.replace(o,"$1"):e}function g(e){r=e,o=RegExp(`^${r}(/|$)`)}function f(e,t,n,a){a=a||{},i=e,s=t,g(n),a?.snapshot&&(u={cdn:i,baseUri:r,baseUrl:s,configBaseUrl:t,baseUriMatcher:o})}function _(){u&&(i=u.cdn,r=u.baseUri,s=u.baseUrl,o=u.baseUriMatcher,a=u.S3BaseUrl,l=u.S3CDN)}function y(e,t,n){a=e,l=t,n?.snapshot&&((u=u||{}).S3BaseUrl=a,u.S3CDN=l)}function b(e){void 0===r&&g(document.querySelector('meta[name="discourse-base-uri"]')?.getAttribute("content")||"");let t=window.location.origin,n="/"===e[0]?r||"/":t+r||t;return e.startsWith(n)}n.r(t),n.d(t,{default:()=>c,getAbsoluteURL:()=>p,getURLWithCDN:()=>d,isAbsoluteURL:()=>h,restoreBaseUri:()=>_,samePrefix:()=>b,setPrefix:()=>g,setupS3CDN:()=>y,setupURL:()=>f,withoutPrefix:()=>m})},11508:(e,t,n)=>{"use strict";let i;n.r(t),n.d(t,{createHelperContext:()=>_,findHelper:()=>g,helperContext:()=>y,htmlHelper:()=>d,makeArray:()=>c,registerHelper:()=>m,registerHelpers:()=>f,registerRawHelper:()=>w,registerUnbound:()=>b});var s=n(2905),r=n(70001),o=n(54836),a=n(35804),l=n(54216),u=n(84584);function c(e){return null==e?[]:Array.isArray(e)?e:[e]}function d(e){return(0,l.default)('htmlHelper is deprecated. Use a plain function and `htmlSafe()` from "@ember/template" instead.',{id:"discourse.html-helper"}),s.default.helper(function(){for(var t=arguments.length,n=Array(t),i=0;i1?n[0].concat({hash:n[n.length-1]}):n,(0,a.htmlSafe)(e.apply(this,n)||"")})}let p={};function h(e,t,n){if(!n.types||!n.data.view)return(0,r.get)(e,t);{let e=n.data.view;return e.getStream?e.getStream(t).value():e.getAttr(t)}}function m(e,t){p[e]=s.default.helper(t)}function g(e){return p[e]||p[(0,o.dasherize)(e)]}function f(e){Object.keys(p).forEach(t=>{e.register(`helper:${t}`,p[t],{singleton:!1})})}function _(e){i=e}function y(){return i}function b(e,t){(0,l.default)(`[registerUnbound ${e}] registerUnbound is deprecated. Instead, you should export a default function from 'discourse/helpers/${e}.js'. If the helper is also used in raw-hbs, you can register it using 'registerRawHelper'.`,{id:"discourse.register-unbound"}),p[e]=class extends s.default{compute(e,n){return t(...e,n)}},w(e,t)}function w(e,t){u.default.registerHelper(e,function(){for(var e=arguments.length,n=Array(e),i=0;i{"use strict";let i;n.r(t),n.d(t,{REPLACEMENTS:()=>h,SVG_NAMESPACE:()=>c,convertIconClass:()=>w,disableMissingIconWarning:()=>g,enableMissingIconWarning:()=>f,iconHTML:()=>y,iconNode:()=>b,isExistingIconId:()=>S,registerIconRenderer:()=>k,renderIcon:()=>_,replaceIcon:()=>m,setIconList:()=>T});var s=n(14109),r=n(45929),o=n(70449),a=n(54216),l=n(29166),u=n(51969);let c="http://www.w3.org/2000/svg",d=[],p=!0,h={"d-tracking":"bell","d-muted":"discourse-bell-slash","d-regular":"far-bell","d-watching":"discourse-bell-exclamation","d-watching-first":"discourse-bell-one","d-drop-expanded":"caret-down","d-drop-collapsed":"caret-right","d-unliked":"far-heart","d-liked":"heart","d-post-share":"link","d-topic-share":"link","notification.mentioned":"at","notification.group_mentioned":"users","notification.quoted":"quote-right","notification.replied":"reply","notification.posted":"discourse-bell-exclamation","notification.watching_category_or_tag":"discourse-bell-exclamation","notification.edited":"pencil","notification.bookmark_reminder":"discourse-bookmark-clock","notification.liked":"heart","notification.liked_2":"heart","notification.liked_many":"heart","notification.liked_consolidated":"heart","notification.private_message":"envelope","notification.invited_to_private_message":"envelope","notification.invited_to_topic":"hand-point-right","notification.invitee_accepted":"user","notification.moved_post":"right-from-bracket","notification.linked":"link","notification.linked_consolidated":"link","notification.granted_badge":"certificate","notification.topic_reminder":"far-clock","notification.watching_first_post":"discourse-bell-one","notification.group_message_summary":"users","notification.post_approved":"check","notification.membership_request_accepted":"user-plus","notification.membership_request_consolidated":"users","notification.reaction":"bell","notification.votes_released":"plus","notification.chat_quoted":"quote-right","user_menu.replies":"reply","user_menu.drafts":"pencil","sidebar.all_categories":"list"};function m(e,t){e=C(e),t=C(t),h[e]=t}function g(){p=!1}function f(){p=!1}function _(e,t,n){for(let i of(n||={},d)){let s=i[e];if(!s)continue;let r=s({id:t,replacementId:h[t]},n);if(r)return r}}function y(e,t){return _("string",e,t)}function b(e,t){return _("node",e,t)}function w(e){return e.replace("far fa-","far-").replace("fab fa-","fab-").replace("fas fa-","").replace("fa-","").trim()}function k(e){d.unshift(e)}function x(e,t){let n=e.replacementId&&e.id.includes("notification.")?e.replacementId:e.id,i=`fa d-icon d-icon-${n} svg-icon`;return t&&t.class&&(i+=" "+t.class),i}function T(e){i=e}function S(e){return i?.includes(e)}function C(e){let t=e;return(t=function(e){let t,n=e;if(e.startsWith("far-")?(t="far",n=e.replace("far-","")):e.startsWith("fab-")&&(t="fab",n=e.replace("fab-","")),A.hasOwnProperty(n)){let e=A[n];return t&&(e=`${t}-${e}`),e}return e}(t=w(t)))!==e&&(0,a.default)(`The icon name "${e}" has been updated to "${t}". Please use the new name in your code. Old names will be removed in Q2 2025.`,{id:"discourse.fontawesome-6-upgrade"}),t}function E(e){let t=e.replacementId||e.id||"";return!function(e){p&&(0,r.isDevelopment)()&&!S(e)&&console.warn(`The icon "${e}" is missing from the SVG subset.`)}(t=C(t=t.replace(" unpinned",""))),t}k({name:"font-awesome",string(e,t){let n=(0,l.default)(E(e)),i=``,t.label&&(i+=`${(0,l.default)(t.label)}`),t.title&&(i=`${i}`),t.translatedtitle&&((0,a.default)("use 'translatedTitle' option instead of 'translatedtitle'",{since:"2.9.0.beta6",dropFrom:"2.10.0.beta1",id:"discourse.icon-renderer-translatedtitle"}),t.translatedTitle=t.translatedtitle),t.translatedTitle&&(i=`${i}`),i},node(e,t){let n=E(e),i=x(e,t)+" svg-node",r=(0,s.h)("svg",{attributes:{class:i,"aria-hidden":!0},namespace:c},[(0,s.h)("use",{href:(0,o.default)("http://www.w3.org/1999/xlink",`#${(0,l.default)(n)}`),namespace:c})]);return t.title?(0,s.h)("span",{title:t.title,attributes:{class:"svg-icon-title"}},[r]):r}});let A={adjust:"circle-half-stroke","air-freshener":"spray-can-sparkles","alien-monster":"alien-8bit",allergies:"hand-dots",ambulance:"truck-medical","american-sign-language-interpreting":"hands-asl-interpreting",analytics:"chart-mixed","angle-double-down":"angles-down","angle-double-left":"angles-left","angle-double-right":"angles-right","angle-double-up":"angles-up",angry:"face-angry","apple-alt":"apple-whole","apple-crate":"crate-apple",archive:"box-archive","arrow-alt-circle-down":"circle-down","arrow-alt-circle-left":"circle-left","arrow-alt-circle-right":"circle-right","arrow-alt-circle-up":"circle-up","arrow-alt-down":"down","arrow-alt-from-bottom":"up-from-line","arrow-alt-from-left":"right-from-line","arrow-alt-from-right":"left-from-line","arrow-alt-from-top":"down-from-line","arrow-alt-left":"left","arrow-alt-right":"right","arrow-alt-square-down":"square-down","arrow-alt-square-left":"square-left","arrow-alt-square-right":"square-right","arrow-alt-square-up":"square-up","arrow-alt-to-bottom":"down-to-line","arrow-alt-to-left":"left-to-line","arrow-alt-to-right":"right-to-line","arrow-alt-to-top":"up-to-line","arrow-alt-up":"up","arrow-circle-down":"circle-arrow-down","arrow-circle-left":"circle-arrow-left","arrow-circle-right":"circle-arrow-right","arrow-circle-up":"circle-arrow-up","arrow-from-bottom":"arrow-up-from-line","arrow-from-left":"arrow-right-from-line","arrow-from-right":"arrow-left-from-line","arrow-from-top":"arrow-down-from-line","arrow-square-down":"square-arrow-down","arrow-square-left":"square-arrow-left","arrow-square-right":"square-arrow-right","arrow-square-up":"square-arrow-up","arrow-to-bottom":"arrow-down-to-line","arrow-to-left":"arrow-left-to-line","arrow-to-right":"arrow-right-to-line","arrow-to-top":"arrow-up-to-line",arrows:"arrows-up-down-left-right","arrows-alt":"up-down-left-right","arrows-alt-h":"left-right","arrows-alt-v":"up-down","arrows-h":"arrows-left-right","arrows-v":"arrows-up-down","assistive-listening-systems":"ear-listen",atlas:"book-atlas","atom-alt":"atom-simple",backspace:"delete-left","balance-scale":"scale-balanced","balance-scale-left":"scale-unbalanced","balance-scale-right":"scale-unbalanced-flip","band-aid":"bandage","barcode-alt":"rectangle-barcode","baseball-ball":"baseball","basketball-ball":"basketball","bed-alt":"bed-front",beer:"beer-mug-empty",betamax:"cassette-betamax",bible:"book-bible",biking:"person-biking","biking-mountain":"person-biking-mountain","birthday-cake":"cake-candles",blind:"person-walking-with-cane","book-alt":"book-blank","book-dead":"book-skull","book-reader":"book-open-reader","book-spells":"book-sparkles","border-style":"border-top-left","border-style-alt":"border-bottom-right","box-alt":"box-taped","box-fragile":"square-fragile","box-full":"box-open-full","box-up":"square-this-way-up","box-usd":"box-dollar",boxes:"boxes-stacked","boxes-alt":"boxes-stacked",brackets:"brackets-square","broadcast-tower":"tower-broadcast",burn:"fire-flame-simple","bus-alt":"bus-simple","calculator-alt":"calculator-simple","calendar-alt":"calendar-days","calendar-edit":"calendar-pen","calendar-times":"calendar-xmark","camera-alt":"camera","camera-home":"camera-security","car-alt":"car-rear","car-crash":"car-burst","car-mechanic":"car-wrench","caravan-alt":"caravan-simple","caret-circle-down":"circle-caret-down","caret-circle-left":"circle-caret-left","caret-circle-right":"circle-caret-right","caret-circle-up":"circle-caret-up","caret-square-down":"square-caret-down","caret-square-left":"square-caret-left","caret-square-right":"square-caret-right","caret-square-up":"square-caret-up",cctv:"camera-cctv","chalkboard-teacher":"chalkboard-user","chart-pie-alt":"chart-pie-simple","check-circle":"circle-check","check-square":"square-check",cheeseburger:"burger-cheese","chess-bishop-alt":"chess-bishop-piece","chess-clock-alt":"chess-clock-flip","chess-king-alt":"chess-king-piece","chess-knight-alt":"chess-knight-piece","chess-pawn-alt":"chess-pawn-piece","chess-queen-alt":"chess-queen-piece","chess-rook-alt":"chess-rook-piece","chevron-circle-down":"circle-chevron-down","chevron-circle-left":"circle-chevron-left","chevron-circle-right":"circle-chevron-right","chevron-circle-up":"circle-chevron-up","chevron-double-down":"chevrons-down","chevron-double-left":"chevrons-left","chevron-double-right":"chevrons-right","chevron-double-up":"chevrons-up","chevron-square-down":"square-chevron-down","chevron-square-left":"square-chevron-left","chevron-square-right":"square-chevron-right","chevron-square-up":"square-chevron-up","clinic-medical":"house-chimney-medical","cloud-download":"cloud-arrow-down","cloud-download-alt":"cloud-arrow-down","cloud-upload":"cloud-arrow-up","cloud-upload-alt":"cloud-arrow-up",cocktail:"martini-glass-citrus",coffee:"mug-saucer","coffee-togo":"cup-togo",cog:"gear",cogs:"gears",columns:"table-columns","comment-alt":"message","comment-alt-check":"message-check","comment-alt-dollar":"message-dollar","comment-alt-dots":"message-dots","comment-alt-edit":"message-pen","comment-alt-exclamation":"message-exclamation","comment-alt-lines":"message-lines","comment-alt-medical":"message-medical","comment-alt-minus":"message-minus","comment-alt-music":"message-music","comment-alt-plus":"message-plus","comment-alt-slash":"message-slash","comment-alt-smile":"message-smile","comment-alt-times":"message-xmark","comment-edit":"comment-pen","comment-times":"comment-xmark","comments-alt":"messages","comments-alt-dollar":"messages-dollar","compress-alt":"down-left-and-up-right-to-center","compress-arrows-alt":"minimize","concierge-bell":"bell-concierge",construction:"triangle-person-digging","conveyor-belt-alt":"conveyor-belt-boxes","cowbell-more":"cowbell-circle-plus",cricket:"cricket-bat-ball","crop-alt":"crop-simple",curling:"curling-stone",cut:"scissors",deaf:"ear-deaf",debug:"ban-bug","desktop-alt":"desktop",dewpoint:"droplet-degree",diagnoses:"person-dots-from-line",digging:"person-digging","digital-tachograph":"tachograph-digital",directions:"diamond-turn-right",dizzy:"face-dizzy","dolly-flatbed":"cart-flatbed","dolly-flatbed-alt":"cart-flatbed-boxes","dolly-flatbed-empty":"cart-flatbed-empty",donate:"circle-dollar-to-slot","dot-circle":"circle-dot","drafting-compass":"compass-drafting","drone-alt":"drone-front","dryer-alt":"dryer-heat","eclipse-alt":"moon-over-sun",edit:"pen-to-square","ellipsis-h":"ellipsis","ellipsis-h-alt":"ellipsis-stroke","ellipsis-v":"ellipsis-vertical","ellipsis-v-alt":"ellipsis-stroke-vertical","envelope-square":"square-envelope",exchange:"arrow-right-arrow-left","exchange-alt":"right-left","exclamation-circle":"circle-exclamation","exclamation-square":"square-exclamation","exclamation-triangle":"triangle-exclamation","expand-alt":"up-right-and-down-left-from-center","expand-arrows":"arrows-maximize","expand-arrows-alt":"maximize","external-link":"arrow-up-right-from-square","external-link-alt":"up-right-from-square","external-link-square":"square-arrow-up-right","external-link-square-alt":"square-up-right",eyedropper:"eye-dropper","fast-backward":"backward-fast","fast-forward":"forward-fast","feather-alt":"feather-pointed",female:"person-dress","field-hockey":"field-hockey-stick-ball","fighter-jet":"jet-fighter","file-alt":"file-lines","file-archive":"file-zipper","file-chart-line":"file-chart-column","file-download":"file-arrow-down","file-edit":"file-pen","file-medical-alt":"file-waveform","file-search":"file-magnifying-glass","file-times":"file-xmark","file-upload":"file-arrow-up","film-alt":"film-simple","fire-alt":"fire-flame-curved","first-aid":"kit-medical","fist-raised":"hand-fist","flag-alt":"flag-swallowtail",flame:"fire-flame","flask-poison":"flask-round-poison","flask-potion":"flask-round-potion",flushed:"face-flushed",fog:"cloud-fog","folder-download":"folder-arrow-down","folder-times":"folder-xmark","folder-upload":"folder-arrow-up","font-awesome-alt":"square-font-awesome-stroke","font-awesome-flag":"font-awesome","font-awesome-logo-full":"font-awesome","football-ball":"football",fragile:"wine-glass-crack","frosty-head":"snowman-head",frown:"face-frown","frown-open":"face-frown-open","funnel-dollar":"filter-circle-dollar","game-board-alt":"game-board-simple","gamepad-alt":"gamepad-modern","glass-champagne":"champagne-glass","glass-cheers":"champagne-glasses","glass-martini":"martini-glass-empty","glass-martini-alt":"martini-glass","glass-whiskey":"whiskey-glass","glass-whiskey-rocks":"whiskey-glass-ice","glasses-alt":"glasses-round","globe-africa":"earth-africa","globe-americas":"earth-americas","globe-asia":"earth-asia","globe-europe":"earth-europe","golf-ball":"golf-ball-tee",grimace:"face-grimace",grin:"face-grin","grin-alt":"face-grin-wide","grin-beam":"face-grin-beam","grin-beam-sweat":"face-grin-beam-sweat","grin-hearts":"face-grin-hearts","grin-squint":"face-grin-squint","grin-squint-tears":"face-grin-squint-tears","grin-stars":"face-grin-stars","grin-tears":"face-grin-tears","grin-tongue":"face-grin-tongue","grin-tongue-squint":"face-grin-tongue-squint","grin-tongue-wink":"face-grin-tongue-wink","grin-wink":"face-grin-wink","grip-horizontal":"grip","h-square":"square-h",hamburger:"burger","hand-holding-usd":"hand-holding-dollar","hand-holding-water":"hand-holding-droplet","hand-paper":"hand","hand-receiving":"hands-holding-diamond","hand-rock":"hand-back-fist","hands-heart":"hands-holding-heart","hands-helping":"handshake-angle","hands-usd":"hands-holding-dollar","hands-wash":"hands-bubbles","handshake-alt":"handshake-simple","handshake-alt-slash":"handshake-simple-slash","hard-hat":"helmet-safety",hdd:"hard-drive","head-vr":"head-side-goggles","headphones-alt":"headphones-simple","heart-broken":"heart-crack","heart-circle":"circle-heart","heart-rate":"wave-pulse","heart-square":"square-heart",heartbeat:"heart-pulse",hiking:"person-hiking",history:"clock-rotate-left",home:"house","home-alt":"house","home-heart":"house-heart","home-lg":"house-chimney","home-lg-alt":"house","hospital-alt":"hospital","hospital-symbol":"circle-h","hot-tub":"hot-tub-person","hourglass-half":"hourglass","house-damage":"house-chimney-crack","house-leave":"house-person-leave","house-return":"house-person-return",hryvnia:"hryvnia-sign",humidity:"droplet-percent","icons-alt":"symbols","id-card-alt":"id-card-clip","industry-alt":"industry-windows","info-circle":"circle-info","info-square":"square-info",innosoft:"42-group",inventory:"shelves","journal-whills":"book-journal-whills",kiss:"face-kiss","kiss-beam":"face-kiss-beam","kiss-wink-heart":"face-kiss-wink-heart","landmark-alt":"landmark-dome","laptop-house":"house-laptop",laugh:"face-laugh","laugh-beam":"face-laugh-beam","laugh-squint":"face-laugh-squint","laugh-wink":"face-laugh-wink","level-down":"arrow-turn-down","level-down-alt":"turn-down","level-up":"arrow-turn-up","level-up-alt":"turn-up","list-alt":"rectangle-list",location:"location-crosshairs","location-circle":"circle-location-arrow","location-slash":"location-crosshairs-slash","lock-alt":"lock-keyhole","lock-open-alt":"lock-keyhole-open","long-arrow-alt-down":"down-long","long-arrow-alt-left":"left-long","long-arrow-alt-right":"right-long","long-arrow-alt-up":"up-long","long-arrow-down":"arrow-down-long","long-arrow-left":"arrow-left-long","long-arrow-right":"arrow-right-long","long-arrow-up":"arrow-up-long","low-vision":"eye-low-vision",luchador:"luchador-mask","luggage-cart":"cart-flatbed-suitcase",magic:"wand-magic","mail-bulk":"envelopes-bulk",male:"person","map-marked":"map-location","map-marked-alt":"map-location-dot","map-marker":"location-pin","map-marker-alt":"location-dot","map-marker-alt-slash":"location-dot-slash","map-marker-check":"location-check","map-marker-edit":"location-pen","map-marker-exclamation":"location-exclamation","map-marker-minus":"location-minus","map-marker-plus":"location-plus","map-marker-question":"location-question","map-marker-slash":"location-pin-slash","map-marker-smile":"location-smile","map-marker-times":"location-xmark","map-signs":"signs-post","mars-stroke-h":"mars-stroke-right","mars-stroke-v":"mars-stroke-up","medium-m":"medium",medkit:"suitcase-medical",meh:"face-meh","meh-blank":"face-meh-blank","meh-rolling-eyes":"face-rolling-eyes","microphone-alt":"microphone-lines","microphone-alt-slash":"microphone-lines-slash","mind-share":"brain-arrow-curved-right","minus-circle":"circle-minus","minus-hexagon":"hexagon-minus","minus-octagon":"octagon-minus","minus-square":"square-minus","mobile-alt":"mobile-screen-button","mobile-android":"mobile","mobile-android-alt":"mobile-screen","money-bill-alt":"money-bill-1","money-bill-wave-alt":"money-bill-1-wave","money-check-alt":"money-check-dollar","money-check-edit":"money-check-pen","money-check-edit-alt":"money-check-dollar-pen","monitor-heart-rate":"monitor-waveform",mouse:"computer-mouse","mouse-alt":"computer-mouse-scrollwheel","mouse-pointer":"arrow-pointer","music-alt":"music-note","music-alt-slash":"music-note-slash","oil-temp":"oil-temperature","page-break":"file-dashed-line","paint-brush":"paintbrush","paint-brush-alt":"paintbrush-fine","paint-brush-fine":"paintbrush-fine","pallet-alt":"pallet-boxes","paragraph-rtl":"paragraph-left",parking:"square-parking","parking-circle":"circle-parking","parking-circle-slash":"ban-parking","parking-slash":"square-parking-slash",pastafarianism:"spaghetti-monster-flying","pause-circle":"circle-pause","paw-alt":"paw-simple","pen-alt":"pen-clip","pen-square":"square-pen","pencil-alt":"pencil","pencil-paintbrush":"pen-paintbrush","pencil-ruler":"pen-ruler",pennant:"flag-pennant","people-arrows":"people-arrows-left-right","people-carry":"people-carry-box",percentage:"percent","person-carry":"person-carry-box","phone-alt":"phone-flip","phone-laptop":"laptop-mobile","phone-square":"square-phone","phone-square-alt":"square-phone-flip","photo-video":"photo-film","plane-alt":"plane-engines","play-circle":"circle-play","plus-circle":"circle-plus","plus-hexagon":"hexagon-plus","plus-octagon":"octagon-plus","plus-square":"square-plus",poll:"square-poll-vertical","poll-h":"square-poll-horizontal","portal-enter":"person-to-portal","portal-exit":"person-from-portal",portrait:"image-portrait","pound-sign":"sterling-sign",pray:"person-praying","praying-hands":"hands-praying","prescription-bottle-alt":"prescription-bottle-medical",presentation:"presentation-screen","print-search":"print-magnifying-glass",procedures:"bed-pulse","project-diagram":"diagram-project","question-circle":"circle-question","question-square":"square-question",quran:"book-quran","rabbit-fast":"rabbit-running","radiation-alt":"circle-radiation","radio-alt":"radio-tuner",random:"shuffle","rectangle-landscape":"rectangle","rectangle-portrait":"rectangle-vertical",redo:"arrow-rotate-right","redo-alt":"rotate-right","remove-format":"text-slash","repeat-1-alt":"arrows-repeat-1","repeat-alt":"arrows-repeat","retweet-alt":"arrows-retweet","rss-square":"square-rss",running:"person-running","sad-cry":"face-sad-cry","sad-tear":"face-sad-tear",save:"floppy-disk","sax-hot":"saxophone-fire","scalpel-path":"scalpel-line-dashed","scanner-image":"scanner",search:"magnifying-glass","search-dollar":"magnifying-glass-dollar","search-location":"magnifying-glass-location","search-minus":"magnifying-glass-minus","search-plus":"magnifying-glass-plus","sensor-alert":"sensor-triangle-exclamation","sensor-smoke":"sensor-cloud","share-alt":"share-nodes","share-alt-square":"square-share-nodes","share-square":"share-from-square","shield-alt":"shield-halved","shipping-fast":"truck-fast","shipping-timed":"truck-clock","shopping-bag":"bag-shopping","shopping-basket":"basket-shopping","shopping-cart":"cart-shopping","shuttle-van":"van-shuttle",sign:"sign-hanging","sign-in":"arrow-right-to-bracket","sign-in-alt":"right-to-bracket","sign-language":"hands","sign-out":"arrow-right-from-bracket","sign-out-alt":"right-from-bracket","signal-1":"signal-weak","signal-2":"signal-fair","signal-3":"signal-good","signal-4":"signal-strong","signal-alt":"signal-bars","signal-alt-1":"signal-bars-weak","signal-alt-2":"signal-bars-fair","signal-alt-3":"signal-bars-good","signal-alt-slash":"signal-bars-slash",skating:"person-skating","ski-jump":"person-ski-jumping","ski-lift":"person-ski-lift",skiing:"person-skiing","skiing-nordic":"person-skiing-nordic","slack-hash":"slack",sledding:"person-sledding","sliders-h":"sliders","sliders-h-square":"square-sliders","sliders-v":"sliders-up","sliders-v-square":"square-sliders-vertical",smile:"face-smile","smile-beam":"face-smile-beam","smile-plus":"face-smile-plus","smile-wink":"face-smile-wink","smoking-ban":"ban-smoking",sms:"comment-sms","snapchat-ghost":"snapchat",snowboarding:"person-snowboarding",snowmobile:"person-snowmobiling","sort-alpha-down":"arrow-down-a-z","sort-alpha-down-alt":"arrow-down-z-a","sort-alpha-up":"arrow-up-a-z","sort-alpha-up-alt":"arrow-up-z-a","sort-alt":"arrow-down-arrow-up","sort-amount-down":"arrow-down-wide-short","sort-amount-down-alt":"arrow-down-short-wide","sort-amount-up":"arrow-up-wide-short","sort-amount-up-alt":"arrow-up-short-wide","sort-circle":"circle-sort","sort-circle-down":"circle-sort-down","sort-circle-up":"circle-sort-up","sort-numeric-down":"arrow-down-1-9","sort-numeric-down-alt":"arrow-down-9-1","sort-numeric-up":"arrow-up-1-9","sort-numeric-up-alt":"arrow-up-9-1","sort-shapes-down":"arrow-down-triangle-square","sort-shapes-down-alt":"arrow-down-square-triangle","sort-shapes-up":"arrow-up-triangle-square","sort-shapes-up-alt":"arrow-up-square-triangle","sort-size-down":"arrow-down-big-small","sort-size-down-alt":"arrow-down-small-big","sort-size-up":"arrow-up-big-small","sort-size-up-alt":"arrow-up-small-big",soup:"bowl-hot","space-shuttle":"shuttle-space","space-station-moon-alt":"space-station-moon-construction","square-root-alt":"square-root-variable","star-half-alt":"star-half-stroke","starfighter-alt":"starfighter-twin-ion-engine","step-backward":"backward-step","step-forward":"forward-step","sticky-note":"note-sticky","stop-circle":"circle-stop","store-alt":"shop","store-alt-slash":"shop-slash",stream:"bars-staggered",subway:"train-subway",surprise:"face-surprise",swimmer:"person-swimming","swimming-pool":"water-ladder",sync:"arrows-rotate","sync-alt":"rotate","table-tennis":"table-tennis-paddle-ball","tablet-alt":"tablet-screen-button","tablet-android":"tablet","tablet-android-alt":"tablet-screen",tachometer:"gauge-simple","tachometer-alt":"gauge","tachometer-alt-average":"gauge-med","tachometer-alt-fast":"gauge","tachometer-alt-fastest":"gauge-max","tachometer-alt-slow":"gauge-low","tachometer-alt-slowest":"gauge-min","tachometer-average":"gauge-simple-med","tachometer-fast":"gauge-simple","tachometer-fastest":"gauge-simple-max","tachometer-slow":"gauge-simple-low","tachometer-slowest":"gauge-simple-min",tanakh:"book-tanakh",tasks:"list-check","tasks-alt":"bars-progress","telegram-plane":"telegram","temperature-down":"temperature-arrow-down","temperature-frigid":"temperature-snow","temperature-hot":"temperature-sun","temperature-up":"temperature-arrow-up",tenge:"tenge-sign",th:"table-cells","th-large":"table-cells-large","th-list":"table-list","theater-masks":"masks-theater","thermometer-empty":"temperature-empty","thermometer-full":"temperature-full","thermometer-half":"temperature-half","thermometer-quarter":"temperature-quarter","thermometer-three-quarters":"temperature-three-quarters","thumb-tack":"thumbtack",thunderstorm:"cloud-bolt","thunderstorm-moon":"cloud-bolt-moon","thunderstorm-sun":"cloud-bolt-sun","ticket-alt":"ticket-simple",times:"xmark","times-circle":"circle-xmark","times-hexagon":"hexagon-xmark","times-octagon":"octagon-xmark","times-square":"square-xmark",tint:"droplet","tint-slash":"droplet-slash",tired:"face-tired","toilet-paper-alt":"toilet-paper-blank","tombstone-alt":"tombstone-blank",tools:"screwdriver-wrench",torah:"scroll-torah",tram:"train-tram","transgender-alt":"transgender","trash-alt":"trash-can","trash-restore":"trash-arrow-up","trash-restore-alt":"trash-can-arrow-up","trash-undo-alt":"trash-can-undo","tree-alt":"tree-deciduous","triangle-music":"triangle-instrument","trophy-alt":"trophy-star","truck-couch":"truck-ramp-couch","truck-loading":"truck-ramp-box",tshirt:"shirt","tv-alt":"tv",undo:"arrow-rotate-left","undo-alt":"rotate-left",university:"building-columns",unlink:"link-slash","unlock-alt":"unlock-keyhole","usd-circle":"circle-dollar","usd-square":"square-dollar","user-alt":"user-large","user-alt-slash":"user-large-slash","user-chart":"chart-user","user-circle":"circle-user","user-cog":"user-gear","user-edit":"user-pen","user-friends":"user-group","user-hard-hat":"user-helmet-safety","user-md":"user-doctor","user-md-chat":"user-doctor-message","user-times":"user-xmark","users-class":"screen-users","users-cog":"users-gear","users-crown":"user-group-crown","utensil-fork":"fork","utensil-knife":"knife","utensil-spoon":"spoon","utensils-alt":"fork-knife",vhs:"cassette-vhs","volleyball-ball":"volleyball","volume-down":"volume-low","volume-mute":"volume-xmark","volume-up":"volume-high","vote-nay":"xmark-to-slot","vote-yea":"check-to-slot",walking:"person-walking","warehouse-alt":"warehouse-full",washer:"washing-machine","water-lower":"water-arrow-down","water-rise":"water-arrow-up","waveform-path":"waveform-lines",webcam:"camera-web","webcam-slash":"camera-web-slash",weight:"weight-scale","wifi-1":"wifi-weak","wifi-2":"wifi-fair","window-alt":"window-flip","window-close":"rectangle-xmark","wine-glass-alt":"wine-glass-empty"}},86211:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(42433),s=n(45929);function r(){if(!(0,s.isTesting)()||"number"!=typeof[...arguments].at(-1))return(0,i.later)(...arguments);{let e=[].slice.call(arguments,0,-1);return e.push(10),i.later.apply(void 0,e)}}},50386:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});let{define:i,require:s}=globalThis;function r(e,t){s.has(e)||i(e,t)}},482:(e,t,n)=>{"use strict";function i(e){return e&&"object"==typeof e}function s(){let e;for(var t=arguments.length,n=Array(t),s=0;se&&!i(e)))throw Error('deepMerge: all values should be of type "object"');let r=n.shift();for(;e=n.shift();)!function e(t,n){return Object.keys(n).forEach(s=>{let r=t[s],o=n[s];Array.isArray(r)&&Array.isArray(o)?t[s]=r.concat(o):i(r)&&i(o)?t[s]=e(Object.assign({},r),o):t[s]=o}),t}(r,e||{});return r}function r(e){return JSON.parse(JSON.stringify(e))}n.r(t),n.d(t,{cloneJSON:()=>r,deepEqual:()=>function e(t,n){if(t===n)return!0;if(!(i(t)&&i(n))||Object.keys(t).length!==Object.keys(n).length)return!1;for(let i in t)if(!e(t[i],n[i]))return!1;return!0},deepFreeze:()=>function e(t){for(let n of Reflect.ownKeys(t)){let i=t[n];(i&&"object"==typeof i||"function"==typeof i)&&e(i)}return Object.freeze(t)},deepMerge:()=>s})},26303:(e,t,n)=>{"use strict";n.r(t),n.d(t,{POPULAR_THEMES:()=>i});let i=[{name:"Air",value:"https://github.com/discourse/discourse-air",preview:"https://discourse.theme-creator.io/theme/Discourse/air-theme",description:"A clean and modern theme for Discourse.",meta_url:"https://meta.discourse.org/t/air-theme/197703"},{name:"Graceful",value:"https://github.com/discourse/graceful",preview:"https://discourse.theme-creator.io/theme/Discourse/graceful-theme",description:"A light and graceful theme for Discourse.",meta_url:"https://meta.discourse.org/t/graceful-theme/93040"},{name:"Material Design Theme",value:"https://github.com/discourse/material-design-stock-theme",preview:"https://discourse.theme-creator.io/theme/Discourse/material-design-theme",description:"Inspired by Material Design, this theme comes with several color palettes.",meta_url:"https://meta.discourse.org/t/material-design-theme/47142"},{name:"Mint",value:"https://github.com/discourse/discourse-mint-theme",preview:"https://discourse.theme-creator.io/theme/Discourse/mint-theme",description:"A minty colored theme with featured homepage categories and a search banner.",meta_url:"https://meta.discourse.org/t/mint-theme/202822"},{name:"Sam's Simple Theme",value:"https://github.com/discourse/discourse-simple-theme",preview:"https://discourse.theme-creator.io/theme/Discourse/sams-simple-theme",description:"Simplified front page design with classic colors and typography.",meta_url:"https://meta.discourse.org/t/sams-simple-theme/23552"},{name:"Brand Header",value:"https://github.com/discourse/discourse-brand-header",preview:"https://discourse.theme-creator.io/theme/Discourse/brand-header",description:"Add an extra top header with your logo, navigation links and social icons.",meta_url:"https://meta.discourse.org/t/brand-header/77977",component:!0},{name:"Custom Header Links",value:"https://github.com/discourse/discourse-custom-header-links",preview:"https://discourse.theme-creator.io/theme/Discourse/custom-header-links",description:"Easily add custom text-based links to the header.",meta_url:"https://meta.discourse.org/t/custom-header-links/90588",component:!0},{name:"Discourse GIFS",value:"https://github.com/discourse/discourse-gifs",description:"Adds a button to easily search and insert GIFs in posts.",meta_url:"https://meta.discourse.org/t/discourse-gifs/158738",component:!0},{name:"Category Banners",value:"https://github.com/discourse/discourse-category-banners",preview:"https://discourse.theme-creator.io/theme/Discourse/category-banners",description:"Show banners on category pages using your existing category details.",meta_url:"https://meta.discourse.org/t/category-banners/86241",component:!0},{name:"Tag Banners",value:"https://github.com/discourse/discourse-tag-banners",preview:"https://discourse.theme-creator.io/theme/Discourse/tag-banners",description:"Show banners on tag pages using your existing tag details.",meta_url:"https://meta.discourse.org/t/tag-banners/124240",component:!0},{name:"Kanban Board",value:"https://github.com/discourse/discourse-kanban-theme",preview:"https://discourse.theme-creator.io/theme/Discourse/kanban-board",description:"Display and organize topics using a Kanban board interface.",meta_url:"https://meta.discourse.org/t/kanban-board/118164",component:!0},{name:"Sidebar Theme Toggle",value:"https://github.com/discourse/discourse-sidebar-theme-toggle",description:"Displays a theme selector in the sidebar menu’s footer provided there is more than one user-selectable theme.",meta_url:"https://meta.discourse.org/t/sidebar-theme-toggle/242802",component:!0},{name:"Header Submenus",value:"https://github.com/discourse/discourse-header-submenus",preview:"https://discourse.theme-creator.io/theme/Discourse/header-submenus",description:"Lets you build a header menu with submenus (dropdowns).",meta_url:"https://meta.discourse.org/t/header-submenus/94584",component:!0},{name:"Automatic Table of Contents",value:"https://github.com/discourse/DiscoTOC",preview:"https://discourse.theme-creator.io/theme/Discourse/discotoc",description:"Generates an interactive table of contents on the sidebar of your topic with a simple click in the composer.",meta_url:"https://meta.discourse.org/t/discotoc-automatic-table-of-contents/111143",component:!0},{name:"Easy Responsive Footer",value:"https://github.com/discourse/Discourse-easy-footer",preview:"https://discourse.theme-creator.io/theme/Discourse/easy-responsive-footer",description:"Add a fully responsive footer without writing any HTML.",meta_url:"https://meta.discourse.org/t/easy-responsive-footer/95818",component:!0}]},7380:(e,t,n)=>{"use strict";n.r(t),n.d(t,{RUNTIME_OPTIONS:()=>s,registerRawHelpers:()=>r});var i=n(70001);let s={allowProtoPropertiesByDefault:!0};function r(e,t,n){if(e.helpers||(e.helpers=Object.create(t.helpers)),function(e,t){e.registerHelper("helperMissing",function(){for(var n=arguments.length,i=Array(n),s=0;s{"use strict";n.r(t),n.d(t,{compile:()=>c,default:()=>d,precompile:()=>u,template:()=>l});var i=n(62021),s=n.n(i);let r=s().create();function o(e,t){let n={type:"PathExpression",data:!1,depth:e.path.depth,loc:e.path.loc};return Object.keys(t).forEach(function(e){n[e]=t[e]}),n}function a(e){let t=new(s()).Visitor;t.mutating=!0,t.MustacheStatement=function(e){return e.params.length||e.hash||(e.params[0]=e.path,e.path=o(e,{parts:["get"],original:"get",strict:!0,falsy:!0})),s().Visitor.prototype.MustacheStatement.call(this,e)},t.BlockStatement=function(e){if("each"===e.path.original&&1===e.params.length){let t=e.program.blockParams[0];e.params=[o(e,{original:t}),{type:"CommentStatement",value:"in"},e.params[0]],delete e.program.blockParams}return s().Visitor.prototype.BlockStatement.call(this,e)},t.accept(e)}function l(){return r.template.apply(this,arguments)}function u(){return r.precompile.apply(this,arguments)}function c(){return r.compile.apply(this,arguments)}s().Compiler&&(r.Compiler=function(){},r.Compiler.prototype=Object.create(s().Compiler.prototype),r.Compiler.prototype.compiler=r.Compiler,r.JavaScriptCompiler=function(){},r.JavaScriptCompiler.prototype=Object.create(s().JavaScriptCompiler.prototype),r.JavaScriptCompiler.prototype.compiler=r.JavaScriptCompiler,r.JavaScriptCompiler.prototype.namespace="RawHandlebars",r.precompile=function(e,t){let{plugins:n=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=s().parse(e);a(i),n.forEach(e=>e(i));let o={knownHelpers:{get:!0},data:!0,stringParams:!0};t=void 0===t||t;let l=new r.Compiler().compile(i,o);return new r.JavaScriptCompiler().compile(l,o,void 0,t)},r.compile=function(e){let{plugins:t=[]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=s().parse(e);a(n),t.forEach(e=>e(n));let i={data:!0,stringParams:!0},o=new r.Compiler().compile(n,i),l=new r.JavaScriptCompiler().compile(o,i,void 0,!0),u=r.template(l);return u.isMethod=!1,u});let d=r},37441:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__DISCOURSE_RAW_TEMPLATES:()=>l,addRawTemplate:()=>h,buildRawConnectorCache:()=>f,eagerLoadRawTemplateModules:()=>_,findRawTemplate:()=>g,needsHbrTopicList:()=>c,removeRawTemplate:()=>m,resetNeedsHbrTopicList:()=>d});var i=n(66332),s=n.n(i),r=n(94394),o=n(54216),a=n(50042);let l={},u=!1;function c(e){if(void 0===e)return u;u=e}function d(){u=!1}let p=["list/action-list","list/activity-column","list/category-column","list/new-list-header-controls","list/participant-groups","list/post-count-or-badges","list/posters-column","list/posts-count-column","list/topic-excerpt","list/topic-list-item","list/unread-indicator","list/visited-line","mobile/list/topic-list-item","topic-bulk-select-dropdown","topic-list-header-column","topic-list-header","topic-post-badges","topic-status"];function h(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.replace(/^javascripts\//,"");if((p.includes(i)||e.includes("/connectors/"))&&!n.core&&!n.hasModernReplacement){let t;let i=`[${e}] hbr topic-list template overrides and connectors are deprecated. Use the value transformer \`topic-list-columns\` and other new topic-list plugin APIs instead.`;(0,o.default)(i,{since:"v3.4.0.beta3-dev",id:"discourse.hbr-topic-list-overrides"}),c(!0),n.themeId?t=(0,r.consolePrefix)(null,{type:"theme",id:n.themeId,name:n.themeName}):n.pluginName&&(t=(0,r.consolePrefix)(null,{type:"plugin",name:n.pluginName})),console.debug(t,i)}n.core&&l[e]||(l[e]=t)}function m(e){delete l[e]}function g(e){return(0,a.getResolverOption)("mobileView")?l[`javascripts/mobile/${e}`]||l[`javascripts/${e}`]||l[`mobile/${e}`]||l[e]:l[`javascripts/${e}`]||l[e]}function f(){let e={};return Object.keys(l).forEach(t=>{let n=t.split("/"),i=n.indexOf("connectors");if(i>=0){let s=n[i+1];e[s]??=[],e[s].push({template:l[t]})}}),e}function _(){for(let e of Object.keys(requirejs.entries))e.includes("/raw-templates/")&&s()(e)}},67185:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});class i{constructor(e,t){this.name=e,this.parent=t,this.children=new Map,this.leafIndex=null}}class s{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this._trie=new i,this.separator=e,this._nextIndex=0}add(e){let t=e.split(this.separator),n=this._trie;for(let e=t.length-1;e>=0;e--){let s=n.children.get(t[e]);s||(s=new i(t[e],n),n.children.set(t[e],s)),n=s}n.leafIndex=this._nextIndex++}withSuffix(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.split(this.separator),i=this._trie;for(let e=n.length-1;e>=0;e--)if(!(i=i.children.get(n[e])))return[];let s=[],r=[i];for(;r.length>0;){let e=r.pop();null!==e.leafIndex&&s.push(e),r.push(...e.children.values())}return s.sort((e,t)=>e.leafIndex{let t=[e.name],n=e;for(;"string"==typeof n.parent?.name;)t.push(n.parent.name),n=n.parent;return t.join(this.separator)})}}},50042:(e,t,n)=>{"use strict";n.r(t),n.d(t,{buildResolver:()=>M,clearResolverOptions:()=>D,expireModuleTrieCache:()=>P,getResolverOption:()=>A,setResolverOption:()=>E});var i=n(54836);class s{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++,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}}let r=/[ _]/g,o=new s(1e3,e=>(function(e){return g.get(e)})(e).replace(r,"-")),a=/^(\-|_)+(.)?/,l=/(.)(\-|\_|\.|\s)+(.)?/g,u=/(^|\/|\.)([a-z])/g,c=new s(1e3,e=>{let t=(e,t,n)=>n?`_${n.toUpperCase()}`:"",n=(e,t,n,i)=>t+(i?i.toUpperCase():""),i=e.split("/");for(let e=0;ee.toUpperCase())}),d=/([a-z\d])([A-Z]+)/g,p=/\-|\s+/g,h=new s(1e3,e=>e.replace(d,"$1_$2").replace(p,"_").toLowerCase()),m=/([a-z\d])([A-Z])/g,g=new s(1e3,e=>e.replace(m,"$1_$2").toLowerCase());class f{constructor(e){this._entries=e||globalThis.requirejs.entries}moduleNames(){return Object.keys(this._entries)}has(e){return e in this._entries}get(){return globalThis.require(...arguments)}}class _{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=>!!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 f)}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){let t,n,i;if(!0===e.parsedName)return e;let s=e.split("@");if(3===s.length){if(0===s[0].length){t=`@${s[1]}`;let e=s[2].split(":");n=e[0],i=e[1]}else t=`@${s[1]}`,n=s[0].slice(0,-1),i=s[2];"template:components"===n&&(i=`components/${i}`,n="template")}else if(2===s.length){let e=s[0].split(":");if(2===e.length)0===e[1].length?(n=e[0],i=`@${s[1]}`):(t=e[1],n=e[0],i=s[1]);else{let e=s[1].split(":");t=s[0],n=e[0],i=e[1]}"template"===n&&0===t.lastIndexOf("components/",0)&&(i=`components/${i}`,t=t.slice(11))}else n=(s=e.split(":"))[0],i=s[1];let r=i,o=this.namespace;return{parsedName:!0,fullName:e,prefix:t||this.prefix({type:n}),type:n,fullNameWithoutType:r,name:i,root:o,resolveMethodName:"resolve"+function(e){return c.get(e)}(n)}}resolveOther(e){y("`modulePrefix` must be defined",this.namespace.modulePrefix);let t=this.findModuleName(e);if(t){let n=this._extractDefaultExport(t,e);if(void 0===n)throw Error(` Expected to find: '${e.fullName}' within '${t}' but got 'undefined'. Did you forget to 'export default' within '${t}'?`);return this.shouldWrapInClassFactory(n,e)&&(n=function(e){return{create:t=>"function"==typeof e.extend?e.extend(t):e}}(n)),n}}normalize(e){return this._normalizeCache[e]||(this._normalizeCache[e]=this._normalize(e))}resolve(e){let t;if("resolver:current"===e)return{create:()=>this};let n=this.parseName(e),i=n.resolveMethodName;return"function"==typeof this[i]&&(t=this[i](n)),null==t&&(t=this.resolveOther(n)),t}addModules(e){if(!this._moduleRegistry.addModules)throw Error("addModules 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))return e;{let e=t[0];return"component"===e||"helper"===e||"modifier"===e||"template"===e&&0===t[1].indexOf("components/")?e+":"+t[1].replace(/_/g,"-"):e+":"+function(e){return o.get(e)}(t[1].replace(/\./g,"/"))}}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 y(`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 i=0,s=n.length;ii.length+s.length)return e+":"+t.slice(r+i.length,o);let a=n+"/"+this.pluralize(e)+"/";if(0===t.indexOf(a)&&t.length>a.length)return e+":"+t.slice(a.length)}_extractDefaultExport(e){let t=this._moduleRegistry.get(e,null,null,!0);return t&&t.default&&(t=t.default),t}}function y(e,t){if(!t)throw Error(e)}var b=n(54216),w=n(82224),k=n(11508),x=n(67185);let T={},S=null,C=new Map(Object.entries({"controller:discovery.categoryWithID":{newName:"controller:discovery.category",since:"2.6.0"},"controller:discovery.parentCategory":{newName:"controller:discovery.category",since:"2.6.0"},"controller:tags-show":{newName:"controller:tag-show",since:"2.6.0"},"controller:tags.show":{newName:"controller:tag.show",since:"2.6.0"},"controller:tagsShow":{newName:"controller:tagShow",since:"2.6.0"},"route:discovery.categoryWithID":{newName:"route:discovery.category",since:"2.6.0"},"route:discovery.parentCategory":{newName:"route:discovery.category",since:"2.6.0"},"route:tags-show":{newName:"route:tag-show",since:"2.6.0"},"route:tags.show":{newName:"route:tag.show",since:"2.6.0"},"route:tagsShow":{newName:"route:tagShow",since:"2.6.0"},"app-events:main":{newName:"service:app-events",since:"2.4.0",dropFrom:"2.9.0.beta1"},"store:main":{newName:"service:store",since:"2.8.0.beta8",dropFrom:"2.9.0.beta1",silent:!0},"search-service:main":{newName:"service:search",since:"2.8.0.beta8",dropFrom:"2.9.0.beta1",silent:!0},"key-value-store:main":{newName:"service:key-value-store",since:"2.9.0.beta7",dropFrom:"3.0.0",silent:!0},"pm-topic-tracking-state:main":{newName:"service:pm-topic-tracking-state",since:"2.9.0.beta7",dropFrom:"3.0.0",silent:!0},"message-bus:main":{newName:"service:message-bus",since:"2.9.0.beta7",dropFrom:"3.0.0",silent:!0},"site-settings:main":{newName:"service:site-settings",since:"2.9.0.beta7",dropFrom:"3.0.0",silent:!0},"capabilities:main":{newName:"service:capabilities",since:"3.1.0.beta4",dropFrom:"3.2.0.beta1",silent:!0},"current-user:main":{newName:"service:current-user",since:"2.9.0.beta7",dropFrom:"3.0.0",silent:!0},"session:main":{newName:"service:session",since:"2.9.0.beta7",dropFrom:"3.0.0",silent:!0},"site:main":{newName:"service:site",since:"2.9.0.beta7",dropFrom:"3.0.0",silent:!0},"topic-tracking-state:main":{newName:"service:topic-tracking-state",since:"2.9.0.beta7",dropFrom:"3.0.0",silent:!0},"controller:composer":{newName:"service:composer",since:"3.1.0.beta3",dropFrom:"3.2.0",silent:!0}}));function E(e,t){T[e]=t}function A(e){return T[e]}function D(){T={}}function I(e){if(!S){S=new x.default("/");let e=["discourse/","discourse-common/","select-kit/","admin/"];Object.keys(requirejs.entries).forEach(t=>{e.some(e=>t.startsWith(e))&&!t.includes("/templates/")&&S.add(t)})}return S.withSuffix(e,1)[0]||S.withSuffix(`${e}/index`,1)[0]}function P(){S=null}function M(e){return class extends _{resolveRouter(){let t=`${e}/router`;if(requirejs.entries[t])return requirejs(t,null,null,!0).default}_normalize(e){let t;let n=C.get(e);n&&(n.silent||(0,b.default)(`"${e}" is deprecated, use "${n.newName}" instead`,{since:n.since,dropFrom:n.dropFrom,id:"discourse.resolver-resolutions"}),e=n.newName);let s=e.split(":"),r=s[0];if(t="template"===r&&s[1]?.includes("connectors/")?"template:"+s[1].replace(/_/g,"-"):super._normalize(e),s.length>1&&("controller"===r||"route"===r||"template"===r)){let e;if(s[1].includes(".")||s[1].includes("/")){let t=(0,i.dasherize)(s[1].replace(/[\.\/]/g,"-")),n=`admin/${r}s/`;(I(`${r}s/${t}`)||requirejs.entries[n+t]||requirejs.entries[n+t.replace(/^admin[-]/,"")]||requirejs.entries[n+t.replace(/^admin[-]/,"").replace(/-/g,"_")])&&(e=r+":"+t)}e&&e!==t&&(t=e)}return t}findModuleName(e){let t=super.findModuleName(e);if(t)return t;let n=e.fullNameWithoutType,s=[n];for(let r of(n.includes("/")&&s.push(n.replace(/\//g,"-")),s)){let n=e.type+"s/"+r;if(t=I((0,i.dasherize)(n)))return t}}resolveHelper(e){return(0,k.findHelper)(e.fullNameWithoutType)}resolveRoute(e){if("basic"===e.fullNameWithoutType)return requirejs("discourse/routes/discourse",null,null,!0).default}resolveTemplate(e){return this.findMobileTemplate(e)||this.findTemplate(e)||this.findAdminTemplate(e)||this.findLoadingTemplate(e)||this.findConnectorTemplate(e)||this.discourseTemplateModule("not_found")}findLoadingTemplate(e){if(e.fullNameWithoutType.match(/loading$/))return this.discourseTemplateModule("loading")}findConnectorTemplate(e){if(e.fullName.startsWith("template:connectors/")){let t=this.parseName(e.fullName.replace("template:connectors/","template:").replace("components/",""));return this.findTemplate(t)}}findMobileTemplate(e){let t=this.findTemplate(e,"mobile/");if(t&&(0,b.default)(`Mobile-specific hbs templates are deprecated. Use responsive CSS or {{#if this.site.mobileView}} instead. [${e}]`,{id:"discourse.mobile-templates"}),T.mobileView)return t}discourseTemplateModule(e){let t=w.default.resolve(e);if(t)return window.require(t).default}findTemplate(e,t){t=t||"";let n=e.fullNameWithoutType,s=(0,i.decamelize)(n).replace(/-/g,"_"),r=n.split("/");return this.discourseTemplateModule(t+n.replace(/[\.-]/g,"/"))||this.discourseTemplateModule(t+n)||this.discourseTemplateModule(t+s)||this.discourseTemplateModule(t+s.replace("_","/"))||this.discourseTemplateModule(`${t}${r.slice(0,-1).join("/")}/${r[r.length-1].replace(/-/g,"_")}`)||this.discourseTemplateModule(t+n.replace(/\//g,"-"))}findAdminTemplate(e){let t,n,i;if("admin"===e.fullNameWithoutType)return this.discourseTemplateModule("admin/templates/admin");if(e.fullNameWithoutType.startsWith("components/"))return this.findTemplate(e,"admin/templates/")||this.findTemplate(e,"admin/");if(/^admin[_\.-]/.test(e.fullNameWithoutType)?t=e.fullNameWithoutType.slice(6):(n=e.fullNameWithoutType.match(/^admin([A-Z])(.+)$/))&&(t=`${n[1].toLowerCase()}${n[2]}`),t){let n=this.parseName(`template:${t}`);i=this.findTemplate(n,"admin/templates/")||this.findTemplate(e,"admin/templates/")||this.findTemplate(n,"admin/")}return i}}}},31547:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(13958);function s(e,t){return function(){for(var n=arguments.length,s=Array(n),r=0;r{"use strict";n.r(t),n.d(t,{afterRender:()=>_,alias:()=>T,and:()=>S,bind:()=>y,bool:()=>C,collect:()=>E,debounce:()=>w,default:()=>f,empty:()=>A,equal:()=>D,filter:()=>I,filterBy:()=>P,gt:()=>M,gte:()=>F,lt:()=>N,lte:()=>O,map:()=>L,mapBy:()=>R,match:()=>U,max:()=>j,min:()=>B,none:()=>z,not:()=>$,notEmpty:()=>q,observes:()=>x,on:()=>k,oneWay:()=>H,or:()=>V,readOnly:()=>b,reads:()=>W,setDiff:()=>K,sort:()=>G,sum:()=>Y,union:()=>Q,uniq:()=>J});var i=n(70001),s=n(5938),r=n(134),o=n(4476),a=n(42433),l=n(9630),u=n(84262),c=n(54216),d=n(31547),p=n(13958),h=n(29379),m=n(14249),g=n(28094);function f(){for(var e=arguments.length,t=Array(e),n=0;n{if(!this.isDestroying&&!this.isDestroyed)return i.apply(this,arguments)})}}function y(e,t,n){return{configurable:!0,get(){let e=(0,a.bind)(this,n.value);return Object.defineProperty(this,t,{...n,value:e}),e}}}function b(e,t,n){return{writable:!1,enumerable:n.enumerable,configurable:n.configurable,initializer:()=>(0,p.default)(n).readOnly()}}function w(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,i,s){return{enumerable:s.enumerable,configurable:s.configurable,get:function(){var n=this;let r=s.value,o=function(){for(var i=arguments.length,s=Array(i),o=0;o{"use strict";n.r(t),n.d(t,{default:()=>i});let i={offset:function(e){let t=e.getBoundingClientRect();return{top:t.top+window.scrollY,left:t.left+window.scrollX}},position:function(e){return{top:e.offsetTop,left:e.offsetLeft}}}},12196:(e,t,n)=>{"use strict";function i(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}n.r(t),n.d(t,{default:()=>i})},13958:(e,t,n)=>{"use strict";function i(e){return e.value||"function"==typeof e.initializer&&e.initializer()}n.r(t),n.d(t,{default:()=>i})},29379:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(70001),s=n(134),r=n(13958);function o(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],u=(0,r.default)(n);return"function"==typeof u&&e instanceof s.default?(n.writable=!1,n.initializer=void 0,n.value=void 0,n.get=l(o,u),(0,i.computed)(...o)(e,t,n)):{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,initializer(){let e;if(n.writable){if("object"==typeof u){let t={};u.get&&(t.get=l(o,u.get)),u.set&&(t.set=function(e,t){return e=e.map(a),function(n,s){let r=e.map(e=>(0,i.get)(this,e));return r.unshift(s),t.apply(this,r)}}(o,u.set)),e=t}else e=l(o,u)}else throw Error("ember-computed-decorators does not support using getters and setters");return i.computed.apply(null,o.concat(e))}}}function a(e){let t;let n=e.split(".");for(t=0;t(0,i.get)(this,e));return t.apply(this,n)}}},14249:(e,t,n)=>{"use strict";function i(e){return e&&"object"==typeof e&&"writable"in e&&"enumerable"in e&&"configurable"in e}n.r(t),n.d(t,{default:()=>i})},28094:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(54216),s=n(14249);function r(e,t,n,i){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];return{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,initializer:()=>i(...s)}}function o(e){return function(){for(var t=arguments.length,n=Array(t),o=0;o{"use strict";n.r(t),n.d(t,{MultiCache:()=>i});class i{constructor(e){this.cb=e,this.values=new Map,this.fetchTimes=[]}reset(){this.values=new Map,this.fetchTimes=[]}hadTooManyCalls(){let[e,t]=this.fetchTimes;return e&&t&&t-e<1e3}async fetch(e){this.fetchTimes=[this.fetchTimes[this.fetchTimes.length-1],new Date];let t=[];for(let n of e=e.uniq())this.values.has(n)||t.push(n);if(0!==t.length){let e=this.cb(t);for(let n of t)this.values.set(n,e);e.catch(()=>{for(let e of t)this.values.delete(e)})}let n=new Map;for(let t of e)n.set(t,(await this.values.get(t)).get(t));return n}}},98448:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(74805),s=n(32791),r=n(50765),o=n.n(r),a=n(20762);let l={avatar:s.avatarFor,dateNode:i.dateNode,iconNode:a.iconNode,rawHtml:o()}},91478:(e,t,n)=>{"use strict";n.r(t),n.d(t,{aliasMethod:()=>s,empty:()=>r});let i=Object.prototype.hasOwnProperty;function s(e){return function(){return this[e].apply(this,arguments)}}function r(e){let t;for(t in e)if(i.call(e,t))return!1;return!0}},14038:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>p});var i=n(1133),s=n(43056),r=n(89711),o=n(5938),a=n(70001),l=n(91478);let{meta:u}=i.default,c=Object.prototype.hasOwnProperty;function d(e,t){(0,a.notifyPropertyChange)(e,t)}let p=s.default.create({buffer:null,hasBufferedChanges:!1,hasChanges:(0,o.readOnly)("hasBufferedChanges"),applyChanges:(0,l.aliasMethod)("applyBufferedChanges"),discardChanges:(0,l.aliasMethod)("discardBufferedChanges"),init(){this.initializeBuffer(),(0,a.set)(this,"hasBufferedChanges",!1),this._super(...arguments)},initializeBuffer(e){(0,r.isArray)(e)&&!(0,l.empty)(e)?e.forEach(e=>delete this.buffer[e]):(0,a.set)(this,"buffer",Object.create(null))},unknownProperty(e){let t=(0,a.get)(this,"buffer");return c.call(t,e)?t[e]:this._super(e)},setUnknownProperty(e,t){let n;let i=u(this);if(i.proto===this||i.isInitializing&&i.isInitializing())return(0,a.defineProperty)(this,e,null,t),t;let{buffer:s,content:r}=(0,a.getProperties)(this,["buffer","content"]);if(null!=r&&(n=(0,a.get)(r,e)),(c.call(s,e)?s[e]:n)!==t)return n===t?(delete s[e],(0,l.empty)(s)&&(0,a.set)(this,"hasBufferedChanges",!1)):(s[e]=t,(0,a.set)(this,"hasBufferedChanges",!0)),d(this,e),t},applyBufferedChanges(e){let{buffer:t,content:n}=(0,a.getProperties)(this,["buffer","content"]);Object.keys(t).forEach(i=>{(0,r.isArray)(e)&&-1===e.indexOf(i)||(0,a.set)(n,i,t[i])}),this.initializeBuffer(e),(0,l.empty)((0,a.get)(this,"buffer"))&&(0,a.set)(this,"hasBufferedChanges",!1)},discardBufferedChanges(e){let t=(0,a.get)(this,"buffer");this.initializeBuffer(e),Object.keys(t).forEach(t=>{(0,r.isArray)(e)&&-1===e.indexOf(t)||d(this,t)}),(0,l.empty)((0,a.get)(this,"buffer"))&&(0,a.set)(this,"hasBufferedChanges",!1)},hasChanged(e){let{buffer:t,content:n}=(0,a.getProperties)(this,["buffer","content"]);return"string"==typeof e&&void 0!==(0,a.get)(t,e)&&(0,a.get)(t,e)!==(0,a.get)(n,e)}})},53459:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(12553),s=n(14038);let r=i.default.extend(s.default)},83397:(e,t,n)=>{"use strict";n.r(t),n.d(t,{cached:()=>s});var i=n(76425);function s(){for(var e=arguments.length,t=Array(e),n=0;n{"use strict";n.r(t),n.d(t,{appVersion:()=>o,default:()=>a});var i=n(2905),s=n(67436),r=n(8308);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=s.default.APP.version,i=t.versionOnly||t.hideSha,o=t.shaOnly||t.hideVersion,a=null;return i&&(t.showExtended&&(a=n.match(r.versionExtendedRegExp)),a||(a=n.match(r.versionRegExp))),o&&(a=n.match(r.shaRegExp)),a?a[0]:n}let a=(0,i.helper)(o)},86869:(e,t,n)=>{"use strict";let i,s;n.r(t),n.d(t,{default:()=>a});var r=n(48632),o=n(67436);o.default.APP&&(i=o.default.APP.name,s=o.default.APP.version);let a={name:"App Version",initialize:(0,r.default)(i,s)}},48632:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(76425);function s(e,t){let n=!1;return function(){!n&&e&&t&&(i.libraries.register(e,t),n=!0)}}},8308:(e,t,n)=>{"use strict";n.r(t),n.d(t,{shaRegExp:()=>r,versionExtendedRegExp:()=>s,versionRegExp:()=>i});let i=/\d+[.]\d+[.]\d+/,s=/\d+[.]\d+[.]\d+-[a-z]*([.]\d+)?/,r=/[a-z\d]{8}$/},3753:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s,deprecationCollector:()=>c,detectWorkflow:()=>a,flushDeprecations:()=>l,handleDeprecationWorkflow:()=>u});var i=n(38389);function s(e){self.deprecationWorkflow=self.deprecationWorkflow||{},self.deprecationWorkflow.deprecationLog={messages:{}},(0,i.registerDeprecationHandler)((t,n,i)=>u(e,t,n,i)),(0,i.registerDeprecationHandler)(c),self.deprecationWorkflow.flushDeprecations=l}let r=`import setupDeprecationWorkflow from 'ember-cli-deprecation-workflow';
setupDeprecationWorkflow({
workflow: [
`,o=` ]
});`;function a(e,t,n){let i,s,r,o;if(e&&e.workflow){for(i=0;i{"use strict";n.r(t),n.d(t,{default:()=>i.default});var i=n(54352)},54352:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u});var i,s,r=n(79635),o=n(54729);n(38389);var a=n(23348);function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");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}let u=(s=function(e,t,n,i,s){var r={};return Object.keys(i).forEach(function(e){r[e]=i[e]}),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),void 0===(r=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},r)).initializer?(Object.defineProperty(e,t,r),null):r}((i=class extends r.default{constructor(){super(...arguments),function(e,t,n,i){n&&Object.defineProperty(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(i):void 0})}(this,"resizeObserver",s,this),l(this,"callback",null),l(this,"element",null),(0,a.registerDestructor)(this,()=>{this.resizeObserver.unobserve(this.element,this.callback)})}modify(e,t){let[n]=t;this.resizeObserver.observe(e,n),this.resizeObserver.unobserve(this.element,this.callback),this.callback=n,this.element=e}}).prototype,"resizeObserver",[o.inject],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),i)},74655:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i.default});var i=n(36733)},36733:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i,s=n(54729),r=n(70001);n(38389);var o=n(42744);let a=(function(e,t,n,i,s){var r={};Object.keys(i).forEach(function(e){r[e]=i[e]}),r.enumerable=!!r.enumerable,r.configurable=!!r.configurable,("value"in r||r.initializer)&&(r.writable=!0),r=n.slice().reverse().reduce(function(n,i){return i(e,t,n)||n},r),s&&void 0!==r.initializer&&(r.value=r.initializer?r.initializer.call(s):void 0,r.initializer=void 0),void 0===r.initializer&&Object.defineProperty(e,t,r)}((i=class extends s.default{constructor(){super(...arguments),this._setup()}_setup(){this.callbacks=null,this.observer=null,"undefined"==typeof FastBoot&&"undefined"!=typeof window&&window.ResizeObserver&&((0,o.default)(),this.callbacks=new WeakMap,this.observer=new window.ResizeObserver(this.handleResize))}get isEnabled(){return!!this.observer}observe(e,t){if(!this.isEnabled)return;let n=this.callbacks.get(e);n?n.add(t):(this.callbacks.set(e,new Set([t])),this.observer.observe(e))}unobserve(e,t){if(!this.isEnabled)return;let n=this.callbacks.get(e);n&&(n.delete(t),t&&n.size||(this.callbacks.delete(e),this.observer.unobserve(e)))}clear(){this.isEnabled&&(this.callbacks=new WeakMap,this.observer.disconnect())}willDestroy(){this.clear()}handleResize(e){for(let t of e){let e=this.callbacks.get(t.target);if(e)for(let n of e)n(t)}}}).prototype,"handleResize",[r.action],Object.getOwnPropertyDescriptor(i.prototype,"handleResize"),i.prototype),i)},42744:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});let i=["ResizeObserver loop limit exceeded","ResizeObserver loop completed with undelivered notifications."];function s(){if("function"!=typeof window.onerror)return;let e=window.onerror;window.onerror=function(t){if(i.includes(t))return!0;for(var n=arguments.length,s=Array(n>1?n-1:0),r=1;r{"use strict";n.r(t),n.d(t,{hasDOM:()=>i.h,history:()=>i.b,isChrome:()=>i.a,isFirefox:()=>i.i,location:()=>i.l,userAgent:()=>i.u,window:()=>i.w});var i=n(73699)},50425:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Container:()=>i.C,INIT_FACTORY:()=>i.I,Registry:()=>i.R,getFactoryFor:()=>i.g,privatize:()=>i.p,setFactoryFor:()=>i.s});var i=n(64579)},76885:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DEPRECATIONS:()=>p,deprecateUntil:()=>h,emberVersionGte:()=>u,isRemoved:()=>c});var i=n(24691),s=n(49861),r=n(38389),o=n(59247);function a(e){return Object.hasOwnProperty.call(e.since,"enabled")||i.E._ALL_DEPRECATIONS_ENABLED}let l=parseFloat(i.E._OVERRIDE_DEPRECATION_VERSION??s.default);function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;return t>=parseFloat(e.replace(/(\.0+)/g,""))}function c(e){return u(e.until)}function d(e){return{options:e,test:!a(e),isEnabled:a(e)||c(e),isRemoved:c(e)}}let p={DEPRECATE_IMPORT_EMBER:e=>d({id:`deprecate-import-${(0,o.dasherize)(e).toLowerCase()}-from-ember`,for:"ember-source",since:{available:"5.10.0"},until:"6.0.0",url:`https://deprecations.emberjs.com/id/import-${(0,o.dasherize)(e).toLowerCase()}-from-ember`}),DEPRECATE_IMPLICIT_ROUTE_MODEL:d({id:"deprecate-implicit-route-model",for:"ember-source",since:{available:"5.3.0",enabled:"5.3.0"},until:"6.0.0",url:"https://deprecations.emberjs.com/v5.x/#toc_deprecate-implicit-route-model"}),DEPRECATE_TEMPLATE_ACTION:d({id:"template-action",url:"https://deprecations.emberjs.com/id/template-action",until:"6.0.0",for:"ember-source",since:{available:"5.9.0",enabled:"5.9.0"}}),DEPRECATE_COMPONENT_TEMPLATE_RESOLVING:d({id:"component-template-resolving",url:"https://deprecations.emberjs.com/id/component-template-resolving",until:"6.0.0",for:"ember-source",since:{available:"5.10.0",enabled:"5.10.0"}}),DEPRECATE_ARRAY_PROTOTYPE_EXTENSIONS:d({id:"deprecate-array-prototype-extensions",url:"https://deprecations.emberjs.com/id/deprecate-array-prototype-extensions",until:"6.0.0",for:"ember-source",since:{available:"5.10.0",enabled:"5.10.0"}})};function h(e,t){let{options:n}=t;if(t.isRemoved)throw Error(`The API deprecated by ${n.id} was removed in ember-source ${n.until}. The message was: ${e}. Please see ${n.url} for more details.`);t.test||(0,r.deprecate)(e,t.test,n)}let{EXTEND_PROTOTYPES:m}=i.E;!1!==m.Array&&h("Array prototype extensions are deprecated. Follow the deprecation guide for migration instructions, and set EmberENV.EXTEND_PROTOTYPES to false in your config/environment.js",p.DEPRECATE_ARRAY_PROTOTYPE_EXTENSIONS)},43299:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ENV:()=>i.E,context:()=>i.c,getENV:()=>i.b,getLookup:()=>i.a,global:()=>i.g,setLookup:()=>i.s});var i=n(24691)},68106:(e,t,n)=>{"use strict";let i;n.r(t),n.d(t,{getDispatchOverride:()=>l,getOnerror:()=>r,onErrorTarget:()=>s,setDispatchOverride:()=>u,setOnerror:()=>o});let s={get onerror(){return i}};function r(){return i}function o(e){i=e}let a=null;function l(){return a}function u(e){a=e}},24801:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Component:()=>s.C,DOMChanges:()=>a.DOMChanges,DOMTreeConstruction:()=>a.DOMTreeConstruction,Helper:()=>s.H,Input:()=>s.I,LinkTo:()=>s.L,NodeDOMTreeConstruction:()=>l.NodeDOMTreeConstruction,OutletView:()=>s.O,Renderer:()=>s.b,RootTemplate:()=>s.R,SafeString:()=>s.S,Textarea:()=>s.T,_resetRenderers:()=>s._,componentCapabilities:()=>c.componentCapabilities,escapeExpression:()=>s.e,getTemplate:()=>r.g,getTemplates:()=>r.a,hasTemplate:()=>r.h,helper:()=>s.h,htmlSafe:()=>s.a,isHTMLSafe:()=>s.i,isSerializationFirstNode:()=>a.isSerializationFirstNode,modifierCapabilities:()=>c.modifierCapabilities,renderSettled:()=>s.r,setComponentManager:()=>u.s,setTemplate:()=>r.s,setTemplates:()=>r.b,setupApplicationRegistry:()=>o.a,setupEngineRegistry:()=>o.s,template:()=>i.templateFactory,templateCacheCounters:()=>i.templateCacheCounters,uniqueId:()=>s.u});var i=n(10010),s=n(11676),r=n(2058),o=n(89140),a=n(95374),l=n(61274),u=n(84435),c=n(60465)},10587:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Meta:()=>i.Meta,UNDEFINED:()=>i.UNDEFINED,counters:()=>i.counters,meta:()=>i.meta,peekMeta:()=>i.peekMeta,setMeta:()=>i.setMeta});var i=n(24086)},24086:(e,t,n)=>{"use strict";let i;n.r(t),n.d(t,{Meta:()=>u,UNDEFINED:()=>o,counters:()=>i,meta:()=>m,peekMeta:()=>h,setMeta:()=>p});var s=n(41849);n(32581),n(38389),n(5268);let r=Object.prototype,o=(0,s.s)("undefined");var a=function(e){return e[e.ADD=0]="ADD",e[e.ONCE=1]="ONCE",e[e.REMOVE=2]="REMOVE",e}(a||{});let l=1;class u{_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=c(this.source);this._parent=e=null===t||t===r?null:m(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 i=n[e];if(void 0!==i){let e=i.get(t);if(void 0!==e)return e}n=n.parent}}_hasInInheritedSet(e,t){let n=this;for(;null!==n;){let i=n[e];if(void 0!==i&&i.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 i=n._mixins;void 0!==i&&(t=void 0===t?new Set:t,i.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===o?void 0:t}removeDescriptors(e){this.writeDescriptors(e,o)}forEachDescriptors(e){let t,n=this;for(;null!==n;){let i=n._descriptors;void 0!==i&&(t=void 0===t?new Set:t,i.forEach((n,i)=>{t.has(i)||(t.add(i),n!==o&&e(i,n))})),n=n.parent}}addToListeners(e,t,n,i,s){this.pushListener(e,t,n,i?a.ONCE:a.ADD,s)}removeFromListeners(e,t,n){this.pushListener(e,t,n,a.REMOVE)}pushListener(e,t,n,i){let s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r=this.writableListeners(),o=g(r,e,t,n);if(-1!==o&&o0&&(e.splice(0,this._inheritedEnd),this._inheritedEnd=0),t))-1===g(e,n.event,n.target,n.method)&&(e.unshift(n),this._inheritedEnd++)}}}this._flattenedVersion=l}return this._listeners}matchingListeners(e){let t,n=this.flattenedListeners();if(void 0!==n)for(let i of n)i.event===e&&(i.kind===a.ADD||i.kind===a.ONCE)&&(void 0===t&&(t=[]),t.push(i.target,i.method,i.kind===a.ONCE));return t}observerEvents(){let e,t=this.flattenedListeners();if(void 0!==t)for(let n of t)(n.kind===a.ADD||n.kind===a.ONCE)&&-1!==n.event.indexOf(":change")&&(void 0===e&&(e=[]),e.push(n));return e}}let c=Object.getPrototypeOf,d=new WeakMap;function p(e,t){d.set(e,t)}function h(e){let t=d.get(e);if(void 0!==t)return t;let n=c(e);for(;null!==n;){if(void 0!==(t=d.get(n)))return t.proto!==n&&(t.proto=n),t;n=c(n)}return null}let m=function(e){let t=h(e);if(null!==t&&t.source===e)return t;let n=new u(e);return p(e,n),n};function g(e,t,n,i){for(let s=e.length-1;s>=0;s--){let r=e[s];if(r.event===t&&r.target===n&&r.method===i)return s}return -1}},76425:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ASYNC_OBSERVERS:()=>i.X,ComputedDescriptor:()=>i.J,ComputedProperty:()=>i.C,DEBUG_INJECTION_FUNCTIONS:()=>i.D,Libraries:()=>i.W,NAMESPACES:()=>d.N,NAMESPACES_BY_ID:()=>d.a,PROPERTY_DID_CHANGE:()=>i.Q,PROXY_CONTENT:()=>i.P,SYNC_OBSERVERS:()=>i.Y,TrackedDescriptor:()=>i.$,_getPath:()=>i._,_getProp:()=>i.V,_setProp:()=>o._,activateObserver:()=>i.j,addArrayObserver:()=>a.d,addListener:()=>i.G,addNamespace:()=>d.b,addObserver:()=>i.v,alias:()=>r.a,arrayContentDidChange:()=>a.c,arrayContentWillChange:()=>a.b,autoComputed:()=>i.R,beginPropertyChanges:()=>i.m,cached:()=>u.cached,changeProperties:()=>i.T,computed:()=>i.c,createCache:()=>c.createCache,defineDecorator:()=>i.z,defineProperty:()=>i.d,defineValue:()=>i.y,deprecateProperty:()=>p,descriptorForDecorator:()=>i.E,descriptorForProperty:()=>i.b,eachProxyArrayDidChange:()=>g,eachProxyArrayWillChange:()=>m,endPropertyChanges:()=>i.l,expandProperties:()=>i.e,findNamespace:()=>d.f,findNamespaces:()=>d.c,flushAsyncObservers:()=>i.I,get:()=>i.g,getCachedValueFor:()=>s.g,getProperties:()=>l.g,getValue:()=>c.getValue,hasListeners:()=>i.x,hasUnknownProperty:()=>i.h,inject:()=>i.p,isClassicDecorator:()=>i.f,isComputed:()=>i.U,isConst:()=>c.isConst,isElementDescriptor:()=>i.i,isNamespaceSearchDisabled:()=>d.i,libraries:()=>i.O,makeComputedDecorator:()=>i.F,markObjectAsDirty:()=>i.Z,nativeDescDecorator:()=>i.B,notifyPropertyChange:()=>i.n,objectAt:()=>i.o,on:()=>i.N,processAllNamespaces:()=>d.p,processNamespace:()=>d.d,removeArrayObserver:()=>a.e,removeListener:()=>i.H,removeNamespace:()=>d.r,removeObserver:()=>i.w,replace:()=>a.a,replaceInNativeArray:()=>a.r,revalidateObservers:()=>i.A,sendEvent:()=>i.k,set:()=>o.s,setClassicDecorator:()=>i.s,setNamespaceSearchDisabled:()=>d.e,setProperties:()=>l.s,setUnprocessedMixins:()=>d.s,tagForObject:()=>i.t,tagForProperty:()=>i.a,tracked:()=>i.S,trySet:()=>o.t});var i=n(47552),s=n(83108),r=n(72299);n(38389);var o=n(8387),a=n(77880),l=n(43082),u=n(97219),c=n(55336),d=n(29080);function p(e,t,n,s){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,set(e){(0,o.s)(this,n,e)},get(){return(0,i.g)(this,n)}})}let h=new WeakMap;function m(e,t,n,i){let s=h.get(e);void 0!==s&&s.arrayWillChange(e,t,n,i)}function g(e,t,n,i){let s=h.get(e);void 0!==s&&s.arrayDidChange(e,t,n,i)}},83285:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getOwner:()=>r,isFactory:()=>s,setOwner:()=>o});var i=n(39629);function s(e){return null!=e&&"function"==typeof e.create}function r(e){return(0,i.getOwner)(e)}function o(e,t){(0,i.setOwner)(e,t)}},55460:(e,t,n)=>{"use strict";n.r(t),n.d(t,{RouterDSL:()=>s.default,controllerFor:()=>r.default,generateController:()=>i.default,generateControllerFactory:()=>i.generateControllerFactory}),n(24086),n(32581),n(38389),n(5268),n(55336),n(60465),n(47552),n(24691),n(18421),n(52352),n(65828),n(62499),n(37332);var i=n(44416),s=n(43883),r=n(93338)},9606:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ActionHandler:()=>o.default,Comparable:()=>r.default,ContainerProxyMixin:()=>s.default,MutableEnumerable:()=>l.default,RSVP:()=>d.R,RegistryProxyMixin:()=>i.default,TargetActionSupport:()=>u.default,_ProxyMixin:()=>a.default,_contentFor:()=>a.contentFor,onerrorDefault:()=>c.onerrorDefault});var i=n(10441),s=n(13385),r=n(52149),o=n(27784),a=n(98880),l=n(92082),u=n(54401),c=n(52681),d=n(65828)},52681:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i.R,onerrorDefault:()=>o});var i=n(65828),s=n(42433),r=n(68106);function o(e){let t=function(e){return e?e.errorThrown?function(e){let t=e.errorThrown;return"string"==typeof t&&(t=Error(t)),Object.defineProperty(t,"__reason_with_error_thrown__",{value:e,enumerable:!1}),t}(e):"UnrecognizedURLError"!==e.name&&"TransitionAborted"!==e.name?e:void 0:void 0}(e);if(t){let e=(0,r.getDispatchOverride)();if(e)e(t);else throw t}}n(38389),(0,i.c)("async",(e,t)=>{s._backburner.schedule("actions",null,e,t)}),(0,i.c)("after",e=>{s._backburner.schedule(s._rsvpErrorQueue,null,e)}),(0,i.o)("error",o)},98880:(e,t,n)=>{"use strict";n.r(t),n.d(t,{contentFor:()=>d,default:()=>h});var i=n(24086),s=n(43056),r=n(47552);n(38389);var o=n(55336),a=n(32581),l=n(79133),u=n(8387);n(24691);var c=n(60465);function d(e){let t=(0,r.g)(e,"content");return(0,o.updateTag)((0,r.t)(e),(0,r.t)(t)),t}function p(e,t,n){let i=(0,o.tagMetaFor)(e),s=(0,o.tagFor)(e,t,i);if(t in e)return s;{let l=[s,(0,o.tagFor)(e,"content",i)],u=d(e);return(0,a.e)(u)&&l.push((0,r.a)(u,t,n)),(0,o.combine)(l)}}let h=s.default.create({content:null,init(){this._super(...arguments),(0,l.s)(this),(0,r.t)(this),(0,c.setCustomTagFor)(this,p)},willDestroy(){this.set("content",null),this._super(...arguments)},isTruthy:(0,r.c)("content",function(){return!!(0,r.g)(this,"content")}),unknownProperty(e){let t=d(this);return t?(0,r.g)(t,e):void 0},setUnknownProperty(e,t){let n=(0,i.meta)(this);if(n.isInitializing()||n.isPrototypeMeta(this))return(0,r.d)(this,e,null,t),t;let s=d(this);return(0,u.s)(s,e,t)}})},27784:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(43056);n(24086),n(32581),n(38389),n(5268),n(55336),n(60465);var s=n(47552);n(24691);let r=i.default.create({mergedProperties:["actions"],send(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i{"use strict";n.r(t),n.d(t,{default:()=>i});let i=n(43056).default.create({compare:null})},13385:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(42433);let s=n(43056).default.create({__container__:null,ownerInjection(){return this.__container__.ownerInjection()},lookup(e,t){return this.__container__.lookup(e,t)},destroy(){let e=this.__container__;e&&(0,i.join)(()=>{e.destroy(),(0,i.schedule)("destroy",e,"finalizeDestroy")}),this._super()},factoryFor(e){return this.__container__.factoryFor(e)}})},10441:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i}),n(38389);let i=n(43056).default.create({__registry__:null,resolveRegistration(e){return this.__registry__.resolve(e)},register:s("register"),unregister:s("unregister"),hasRegistration:s("has"),registeredOption:s("getOption"),registerOptions:s("options"),registeredOptions:s("getOptions"),registerOptionsForType:s("optionsForType"),registeredOptionsForType:s("getOptionsForType")});function s(e){return function(){return this.__registry__[e](...arguments)}}},54401:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(24691),s=n(47552);n(24086),n(38389),n(55336),n(32581),n(5268),n(60465);let r=n(43056).default.create({target:null,action:null,actionContext:null,actionContextObject:(0,s.c)("actionContext",function(){let e=(0,s.g)(this,"actionContext");if("string"!=typeof e)return e;{let t=(0,s.g)(this,e);return void 0===t&&(t=(0,s.g)(i.c.lookup,e)),t}}),triggerAction(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{action:t,target:n,actionContext:r}=e;t=t||(0,s.g)(this,"action"),n=n||function(e){let t=(0,s.g)(e,"target");if(t){if("string"!=typeof t)return t;{let n=(0,s.g)(e,t);return void 0===n&&(n=(0,s.g)(i.c.lookup,t)),n}}return e._target?e._target:null}(this),void 0===r&&(r=(0,s.g)(this,"actionContextObject")||this);let o=Array.isArray(r)?r:[r];return!!n&&!!t&&!1!==(!function(e){return null!=e&&"object"==typeof e&&"function"==typeof e.send}(n)?n[t](...o):n.send(t,...o))}})},59247:(e,t,n)=>{"use strict";n.r(t),n.d(t,{classify:()=>h,dasherize:()=>p}),n(32581);var i=n(44249);let s=/[ _]/g,r=new i.C(1e3,e=>(function(e){return d.get(e)})(e).replace(s,"-")),o=/^(-|_)+(.)?/,a=/(.)(-|_|\.|\s)+(.)?/g,l=/(^|\/|\.)([a-z])/g,u=new i.C(1e3,e=>{let t=(e,t,n)=>n?`_${n.toUpperCase()}`:"",n=(e,t,n,i)=>t+(i?i.toUpperCase():""),i=e.split("/");for(let e=0;ee.toUpperCase())}),c=/([a-z\d])([A-Z])/g,d=new i.C(1e3,e=>e.replace(c,"$1_$2").toLowerCase());function p(e){return r.get(e)}function h(e){return u.get(e)}},83170:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Opaque:()=>i});class i{}},54931:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Cache:()=>u.C,GUID_KEY:()=>r.G,ROOT:()=>r.R,canInvoke:()=>o.c,checkHasSuper:()=>r.c,dictionary:()=>s.m,enumerableSymbol:()=>i.e,generateGuid:()=>r.b,getDebugName:()=>r.a,getName:()=>a.g,guidFor:()=>r.g,intern:()=>r.i,isInternalSymbol:()=>i.i,isObject:()=>r.e,isProxy:()=>l.i,lookupDescriptor:()=>r.l,observerListenerMetaFor:()=>r.o,setListeners:()=>r.d,setName:()=>a.s,setObservers:()=>r.s,setProxy:()=>l.s,setWithMandatorySetter:()=>r.h,setupMandatorySetter:()=>r.f,symbol:()=>i.s,teardownMandatorySetter:()=>r.t,toString:()=>i.t,uuid:()=>r.u,wrap:()=>r.w});var i=n(41849),s=n(9800),r=n(32581),o=n(89563),a=n(13967),l=n(79133),u=n(44249)},68112:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ActionManager:()=>h.default,ActionSupport:()=>d.default,ChildViewsSupport:()=>l.default,ClassNamesSupport:()=>a.default,ComponentLookup:()=>r.default,CoreView:()=>o.default,EventDispatcher:()=>s.default,MUTABLE_CELL:()=>p.MUTABLE_CELL,ViewMixin:()=>c.default,ViewStateSupport:()=>u.default,addChildView:()=>i.addChildView,clearElementView:()=>i.clearElementView,clearViewElement:()=>i.clearViewElement,constructStyleDeprecationMessage:()=>i.constructStyleDeprecationMessage,getChildViews:()=>i.getChildViews,getElementView:()=>i.getElementView,getRootViews:()=>i.getRootViews,getViewBoundingClientRect:()=>i.getViewBoundingClientRect,getViewBounds:()=>i.getViewBounds,getViewClientRects:()=>i.getViewClientRects,getViewElement:()=>i.getViewElement,getViewId:()=>i.getViewId,isSimpleClick:()=>i.isSimpleClick,setElementView:()=>i.setElementView,setViewElement:()=>i.setViewElement});var i=n(45857),s=n(51446),r=n(76996),o=n(30576),a=n(47052),l=n(55996),u=n(58564),c=n(20786),d=n(46349),p=n(48971),h=n(73460)},48971:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MUTABLE_CELL:()=>i});let i=Symbol("MUTABLE_CELL")},75207:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i}),n(32581);let i=(0,n(9800).m)(null)},76996:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=n(70001).default.extend({componentFor(e,t){let n=`component:${e}`;return t.factoryFor(n)},layoutFor(e,t,n){let i=`template:components/${e}`;return t.lookup(i,n)}})},46349:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r}),n(24086),n(32581),n(38389),n(5268),n(55336),n(60465);var i=n(47552);n(24691);var s=n(43056);n(15597);let r=s.default.create({send(e){for(var t=arguments.length,n=Array(t>1?t-1:0),s=1;s{"use strict";n.r(t),n.d(t,{default:()=>o}),n(24086),n(32581),n(38389),n(5268),n(55336),n(60465);var i=n(47552);n(24691);var s=n(43056),r=n(45857);let o=s.default.create({childViews:(0,i.B)({configurable:!1,enumerable:!1,get(){return(0,r.getChildViews)(this)}}),appendChild(e){(0,r.addChildView)(this,e)}})},47052:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r}),n(24086),n(32581),n(38389),n(5268),n(55336),n(60465),n(47552),n(24691);var i=n(43056);let s=Object.freeze([]),r=i.default.create({concatenatedProperties:["classNames","classNameBindings"],init(){this._super(...arguments)},classNames:s,classNameBindings:s})},58564:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=n(43056).default.create({_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)}})},20786:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(32581);n(24086),n(38389),n(5268),n(55336),n(60465);var s=n(47552);n(24691);var r=n(43056),o=n(73699);function a(){return this}n(45857);let l=r.default.create({concatenatedProperties:["attributeBindings"],nearestOfType(e){let t=this.parentView,n=e instanceof r.default?t=>e.detect(t):t=>e.detect(t.constructor);for(;t;){if(n(t))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)},element:(0,s.B)({configurable:!1,enumerable:!1,get(){return this.renderer.getElement(this)}}),appendTo(e){let t;return t=o.h&&"string"==typeof e?document.querySelector(e):e,this.renderer.appendTo(this,t),this},append(){return this.appendTo(document.body)},elementId:null,willInsertElement:a,didInsertElement:a,willClearRender:a,destroy(){this._super(...arguments),this._currentState.destroy(this)},willDestroyElement:a,didDestroyElement:a,parentViewDidChange:a,tagName:null,init(){this._super(...arguments),this.elementId||""===this.tagName||(this.elementId=(0,i.g)(this))},handleEvent(e,t){return this._currentState.handleEvent(this,e,t)}})},73460:(e,t,n)=>{"use strict";function i(){}n.r(t),n.d(t,{default:()=>i}),i.registeredActions={}},51446:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u}),n(83285),n(38389),n(24086),n(32581),n(5268),n(55336),n(60465);var i=n(47552),s=n(8387);n(24691);var r=n(70001),o=n(45857),a=n(73460);let l="ember-application";class u extends r.default{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={...(0,i.g)(this,"events"),...e};this._reverseEventNameMapping=Object.keys(n).reduce((e,t)=>{let i=n[t];return i?{...e,[i]:t}:e},{});let r=this.lazyEvents;null!=t&&(0,s.s)(this,"rootElement",t);let o=(0,i.g)(this,"rootElement"),a="string"!=typeof o?o:document.querySelector(o);for(let e in a.classList.add(l),this._sanitizedRootElement=a,n)Object.prototype.hasOwnProperty.call(n,e)&&r.set(e,n[e]??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 i=(e,t)=>{let i=(0,o.getElementView)(e),s=!0;return i&&(s=i.handleEvent(n,t)),s},s=(e,t)=>{let i,s=e.getAttribute("data-ember-action");if(""===s){for(let t of(i=[],e.attributes))if(0===t.name.indexOf("data-ember-action-")){let e=a.default.registeredActions[t.value];i.push(e)}}else if(s){let e=a.default.registeredActions[s];e&&(i=[e])}if(!i)return;let r=!0;for(let e=0;e{let t=e.target;do{if((0,o.getElementView)(t)){if(!1===i(t,e)){e.preventDefault(),e.stopPropagation();break}if(!0===e.cancelBubble)break}else if("function"==typeof t.hasAttribute&&t.hasAttribute("data-ember-action")&&!1===s(t,e))break;t=t.parentNode}while(t instanceof Element)};e.addEventListener(t,r),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(l),this._super(...arguments)}}toString(){return"(EventDispatcher)"}}},45857:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addChildView:()=>w,clearElementView:()=>g,clearViewElement:()=>f,collectChildViews:()=>k,constructStyleDeprecationMessage:()=>o,contains:()=>D,elMatches:()=>E,getChildViews:()=>y,getElementView:()=>d,getRootViews:()=>a,getViewBoundingClientRect:()=>C,getViewBounds:()=>x,getViewClientRects:()=>S,getViewElement:()=>p,getViewId:()=>l,getViewRange:()=>T,initChildViews:()=>b,isSimpleClick:()=>r,matches:()=>A,setElementView:()=>h,setViewElement:()=>m});var i=n(83285),s=n(32581);function r(e){if(!(e instanceof MouseEvent))return!1;let t=e.shiftKey||e.metaKey||e.altKey||e.ctrlKey,n=e.which>1;return!t&&!n}function o(e){return'Binding style attributes may introduce cross-site scripting vulnerabilities; please ensure that values being bound are properly escaped. For more information, including how to disable this warning, see https://deprecations.emberjs.com/v1.x/#toc_binding-style-attributes. Style affected: "'+e+'"'}function a(e){let t=e.lookup("-view-registry:main"),n=[];return Object.keys(t).forEach(e=>{let i=t[e];null===i.parentView&&n.push(i)}),n}function l(e){return""!==e.tagName&&e.elementId?e.elementId:(0,s.g)(e)}n(38389);let u=new WeakMap,c=new WeakMap;function d(e){return u.get(e)||null}function p(e){return c.get(e)||null}function h(e,t){u.set(e,t)}function m(e,t){c.set(e,t)}function g(e){u.delete(e)}function f(e){c.delete(e)}let _=new WeakMap;function y(e){let t=(0,i.getOwner)(e).lookup("-view-registry:main");return k(e,t)}function b(e){let t=new Set;return _.set(e,t),t}function w(e,t){let n=_.get(e);void 0===n&&(n=b(e)),n.add(l(t))}function k(e,t){let n=[],i=_.get(e);return void 0!==i&&i.forEach(e=>{let i=t[e];!i||i.isDestroying||i.isDestroyed||n.push(i)}),n}function x(e){return e.renderer.getBounds(e)}function T(e){let t=x(e),n=document.createRange();return n.setStartBefore(t.firstNode),n.setEndAfter(t.lastNode),n}function S(e){return T(e).getClientRects()}function C(e){return T(e).getBoundingClientRect()}let E="undefined"!=typeof Element?Element.prototype.matches:void 0;function A(e,t){return E.call(e,t)}function D(e,t){if(void 0!==e.contains)return e.contains(t);let n=t.parentNode;for(;n&&(n=n.parentNode);)if(n===e)return!0;return!1}},30576:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>u}),n(24086),n(32581),n(38389),n(5268),n(55336),n(60465);var i=n(47552);n(24691),n(10441),n(13385),n(52149);var s=n(27784);n(98880),n(92082),n(54401),n(52681);var r=n(4476),o=n(30778),a=n(41655),l=n(31359);class u extends o.FrameworkObject.extend(r.default,s.default){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 #e=(()=>(0,l.d)(this.prototype,"renderer",[(0,i.p)("renderer","-dom")]))();#g8=(()=>void(0,l.i)(this,"renderer"))();instrumentDetails(e){return e.object=this.toString(),e.containerKey=this._debugContainerKey,e.view=this,e}_trigger(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i{"use strict";n.r(t),n.d(t,{default:()=>l}),n(32581),n(38389);var i=n(84392),s=n(42433);let r=Object.freeze({appendChild(){throw Error("You can't use appendChild outside of the rendering process")},handleEvent:()=>!0,rerender(){},destroy(){}}),o=Object.freeze({...r}),a=Object.freeze({...r,rerender(e){e.renderer.rerender()},destroy(e){e.renderer.remove(e)},handleEvent:(e,t,n)=>!e.has(t)||(0,i.flaggedInstrument)(`interaction.${t}`,{event:n,view:e},()=>(0,s.join)(e,e.trigger,t,n))}),l=Object.freeze({preRender:o,inDOM:Object.freeze({...a,enter(e){e.renderer.register(e)}}),hasElement:a,destroying:Object.freeze({...r,appendChild(){throw Error("You can't call appendChild on a view being destroyed")},rerender(){throw Error("You can't call rerender on a view being destroyed")}})})},8968:(e,t,n)=>{"use strict";n.r(t),n.d(t,{_loaded:()=>a._loaded,default:()=>S,getOwner:()=>x,onLoad:()=>a.onLoad,runLoadHooks:()=>a.runLoadHooks,setOwner:()=>T});var i=n(71597);n(32581);var s=n(9800);n(24691);var r=n(73699);n(38389);var o=n(42433);n(24086),n(5268),n(55336),n(60465),n(47552);var a=n(82471);n(10441),n(13385),n(52149),n(27784),n(98880),n(92082),n(54401),n(52681);var l=n(83285),u=n(51446);n(76996),n(30576),n(47052),n(55996),n(58564),n(20786),n(46349),n(73460);var c=n(85013),d=n(11639),p=n(67748),h=n(49418),m=n(99046);n(18421),n(52352);var g=n(65828);n(62499),n(37332),n(82806);var f=n(61646),_=n(84301),y=n(8608),b=n(64579);n(10010),n(11676);var w=n(89140);n(95374),n(29067);var k=n(517);let x=i.getOwner,T=l.setOwner;class S extends y.default{static buildRegistry(e){let t=super.buildRegistry(e);return function(e){e.register("router:main",d.default),e.register("-view-registry:main",{create:()=>(0,s.m)(null)}),e.register("route:basic",c.default),e.register("event_dispatcher:main",u.default),e.register("location:hash",p.default),e.register("location:history",h.default),e.register("location:none",m.default),e.register((0,b.p)`-bucket-cache:main`,{create:()=>new f.default}),e.register("service:router",k.default)}(t),(0,w.a)(t),t}static initializer=(()=>(0,y.buildInitializerMethod)("initializers","initializer"))();static instanceInitializer=(()=>(0,y.buildInitializerMethod)("instanceInitializers","instance initializer"))();init(e){super.init(e),this.rootElement??="body",this._document??=null,this.eventDispatcher??=null,this.customEvents??=null,this.autoboot??=!0,this._document??=r.h?window.document:null,this._globalsMode??=!0,this._readinessDeferrals=1,this._booted=!1,this._applicationInstances=new Set,this.autoboot=this._globalsMode=!!this.autoboot,this._globalsMode&&this._prepareForGlobalsMode(),this.autoboot&&this.waitForDOMReady()}buildInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _.default.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||d.default).extend(),this._buildDeprecatedInstance()}__deprecatedInstance__;__container__;_buildDeprecatedInstance(){let e=this.buildInstance();this.__deprecatedInstance__=e,this.__container__=e.__container__}waitForDOMReady(){let e=this._document;if(null===e||"loading"!==e.readyState)(0,o.schedule)("actions",this,this.domReady);else{let t=()=>{e.removeEventListener("DOMContentLoaded",t),(0,o.run)(this,this.domReady)};e.addEventListener("DOMContentLoaded",t)}}domReady(){this.isDestroying||this.isDestroyed||this._bootSync()}deferReadiness(){this._readinessDeferrals++}advanceReadiness(){this._readinessDeferrals--,0===this._readinessDeferrals&&(0,o.once)(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=g.R.defer();this._bootPromise=e.promise;try{this.runInitializers(),(0,a.runLoadHooks)("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,(0,o.join)(this,function(){(0,o.run)(e,"destroy"),this._buildDeprecatedInstance(),(0,o.schedule)("actions",this,"_bootSync")})}didBecomeReady(){if(!this.isDestroying&&!this.isDestroyed)try{if(this.autoboot){let e;(e=this._globalsMode?this.__deprecatedInstance__:this.buildInstance())._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(),a._loaded.application===this&&(a._loaded.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();return n.boot(t).then(()=>n.visit(e)).catch(e=>{throw(0,o.run)(n,"destroy"),e})})}}},84301:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l}),n(70001);var i=n(73699),s=n(18421);n(10010);var r=n(11676);n(64579),n(38389),n(95374),n(42433),n(29067),n(55336),n(60465),n(11639),n(32581),n(51446),n(76996),n(30576),n(47052),n(55996),n(58564),n(20786),n(46349),n(73460);var o=n(8387);n(24086),n(5268);var a=n(47552);n(24691);class l extends s.default{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 u(e),this.setupRegistry(e),e.rootElement?this.rootElement=e.rootElement:this.rootElement=this.application.rootElement,e.location&&(0,o.s)(this.router,"location",e.location),this.application.runInstanceInitializers(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=Object.assign({},(0,a.g)(this.application,"customEvents"),(0,a.g)(this,"customEvents"));return e.setup(t,this.rootElement),e}getURL(){return this.router.url}visit(e){this.setupRouter();let t=this.__container__.lookup("-environment:main"),n=this.router,i=()=>t.options.shouldRender?(0,r.r)().then(()=>this):this,s=e=>{if(e.error&&e.error instanceof Error)throw e.error;if("TransitionAborted"===e.name&&n._routerMicrolib.activeTransition)return n._routerMicrolib.activeTransition.then(i,s);if("TransitionAborted"===e.name)throw Error(e.message);throw e},o=(0,a.g)(n,"location");return o.setURL(e),n.handleURL(o.getURL()).then(i,s)}willDestroy(){super.willDestroy(),this.application._unwatchInstance(this)}static setupRegistry(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t instanceof u?t:new u(t);e.register("-environment:main",n.toEnvironment(),{instantiate:!1}),e.register("service:-document",n.document,{instantiate:!1}),super.setupRegistry(e,n)}}class u{isInteractive;_renderMode;isBrowser;location=null;shouldRender;document;rootElement;constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.isInteractive=!!i.h,this._renderMode=e._renderMode,void 0!==e.isBrowser?this.isBrowser=!!e.isBrowser:this.isBrowser=!!i.h,this.isBrowser||(this.isInteractive=!1,this.location="none"),void 0!==e.shouldRender?this.shouldRender=!!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=!!e.isInteractive)}toEnvironment(){return{...i.e,hasDOM:this.isBrowser,isInteractive:this.isInteractive,_renderMode:this._renderMode,options:this}}}},82471:(e,t,n)=>{"use strict";n.r(t),n.d(t,{_loaded:()=>a,onLoad:()=>l,runLoadHooks:()=>u});var i=n(24691),s=n(73699);let r=i.E.EMBER_LOAD_HOOKS||{},o={},a=o;function l(e,t){let n=o[e];(r[e]??=[]).push(t),n&&t(n)}function u(e,t){if(o[e]=t,s.w&&"function"==typeof CustomEvent){let n=new CustomEvent(e,{detail:t});s.w.dispatchEvent(n)}r[e]?.forEach(e=>e(t))}},40607:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l}),n(24086);var i=n(32581),s=n(13967);n(38389),n(5268),n(55336),n(60465);var r=n(47552),o=n(29080),a=n(70001);class l extends a.default{static NAMESPACES=(()=>o.N)();static NAMESPACES_BY_ID=(()=>o.a)();static processAll=(()=>o.p)();static byName=(()=>o.f)();init(e){super.init(e),(0,o.b)(this)}toString(){let e=(0,r.g)(this,"name")||(0,r.g)(this,"modulePrefix");if(e)return e;(0,o.c)();let t=(0,s.g)(this);return void 0===t&&(t=(0,i.g)(this),(0,s.s)(this,t)),t}nameClasses(){(0,o.d)(this)}destroy(){return(0,o.r)(this),super.destroy()}}l.prototype.isNamespace=!0},88848:(e,t,n)=>{"use strict";n.r(t),n.d(t,{isEmberArray:()=>r,setEmberArray:()=>s});let i=new WeakSet;function s(e){i.add(e)}function r(e){return i.has(e)}},89711:(e,t,n)=>{"use strict";let i;n.r(t),n.d(t,{A:()=>i,MutableArray:()=>M,NativeArray:()=>F,default:()=>P,isArray:()=>A,makeArray:()=>g.default,removeAt:()=>C,uniqBy:()=>y});var s=n(47552);n(24086),n(38389),n(55336),n(32581),n(5268),n(60465);var r=n(8387),o=n(77880),a=n(24691);n(70001);var l=n(43056),u=n(64096),c=n(92082),d=n(14829),p=n(29732),h=n(31384),m=n(88848),g=n(90941);let f=Object.freeze([]),_=e=>e;function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_,n=i(),r=new Set,o="function"==typeof t?t:e=>(0,s.g)(e,t);return e.forEach(e=>{let t=o(e);r.has(t)||(r.add(t),n.push(e))}),n}function b(){for(var e=arguments.length,t=Array(e),n=0;no===(0,s.g)(e,r):e=>!!(0,s.g)(e,r)}function w(e,t,n){let i=e.length;for(let r=n;r2&&void 0!==arguments[2]?arguments[2]:null,i=w(e,t.bind(n),0);return -1===i?void 0:(0,s.o)(e,i)}function x(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return -1!==w(e,t.bind(n),0)}function T(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=t.bind(n);return -1===w(e,(e,t,n)=>!i(e,t,n),0)}function S(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3?arguments[3]:void 0,s=e.length;return n<0&&(n+=s),w(e,i&&t!=t?e=>e!=e:e=>e===t,n)}function C(e,t,n){return(0,o.a)(e,t,n??1,f),e}function E(e,t,n){return(0,o.a)(e,t,0,[n]),n}function A(e){if(!e||e.setInterval)return!1;if(Array.isArray(e)||P.detect(e))return!0;let t=(0,d.default)(e);if("array"===t)return!0;let n=e.length;return"number"==typeof n&&n==n&&"object"===t}function D(e){let t=(0,s.c)(e);return t.enumerable=!1,t}function I(e){return this.map(t=>(0,s.g)(t,e))}let P=l.default.create(u.default,{init(){this._super(...arguments),(0,m.setEmberArray)(this)},objectsAt(e){return e.map(e=>(0,s.o)(this,e))},"[]":D({get(){return this},set(e,t){return this.replace(0,this.length,t),this}}),firstObject:D(function(){return(0,s.o)(this,0)}).readOnly(),lastObject:D(function(){return(0,s.o)(this,this.length-1)}).readOnly(),slice(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1?arguments[1]:void 0,r=i(),o=this.length;for(t<0&&(t=o+t),e=void 0===n||n>o?o:n<0?o+n:n;t=n)&&(t=n-1),t<0&&(t+=n);for(let n=t;n>=0;n--)if((0,s.o)(this,n)===e)return n;return -1},forEach(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.length;for(let i=0;i(0,r.s)(n,e,t))},map(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=i();return this.forEach((i,s,r)=>n[s]=e.call(t,i,s,r)),n},mapBy:I,filter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=i();return this.forEach((i,s,r)=>{e.call(t,i,s,r)&&n.push(i)}),n},reject(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return this.filter(function(){return!e.apply(t,arguments)})},filterBy(){return this.filter(b(...arguments))},rejectBy(){return this.reject(b(...arguments))},find(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return k(this,e,t)},findBy(){let e=b(...arguments);return k(this,e)},every(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return T(this,e,t)},isEvery(){let e=b(...arguments);return T(this,e)},any(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return x(this,e,t)},isAny(){let e=b(...arguments);return x(this,e)},reduce(e,t){let n=t;return this.forEach(function(t,i){n=e(n,t,i,this)},this),n},invoke(e){for(var t=arguments.length,n=Array(t>1?t-1:0),s=1;sr.push(t[e]?.(...n))),r},toArray(){return this.map(e=>e)},compact(){return this.filter(e=>null!=e)},includes(e,t){return -1!==S(this,e,t,!0)},sortBy(){let e=arguments;return this.toArray().sort((t,n)=>{for(let i=0;it!==e:e=>e==e):this}}),M=l.default.create(P,c.default,{clear(){let e=this.length;return 0===e||this.replace(0,e,f),this},insertAt(e,t){return E(this,e,t),this},removeAt(e,t){return C(this,e,t)},pushObject(e){return E(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=(0,s.o)(this,e-1);return this.removeAt(e-1,1),t},shiftObject(){if(0===this.length)return null;let e=(0,s.o)(this,0);return this.removeAt(0),e},unshiftObject(e){return E(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;)(0,s.o)(this,t)===e&&this.removeAt(t);return this},removeObjects(e){(0,s.m)();for(let t=e.length-1;t>=0;t--)this.removeObject(e[t]);return(0,s.l)(),this},addObject(e){return this.includes(e)||this.pushObject(e),this},addObjects(e){return(0,s.m)(),e.forEach(e=>this.addObject(e)),(0,s.l)(),this}}),F=l.default.create(M,h.default,{objectAt(e){return this[e]},replace(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;return(0,o.r)(this,e,t,n),this}}),N=["length"];F.keys().forEach(e=>{Array.prototype[e]&&N.push(e)}),F=F.without(...N),a.E.EXTEND_PROTOTYPES.Array?(F.apply(Array.prototype,!0),i=function(e){return e||[]}):i=function(e){return(0,m.isEmberArray)(e)?e:F.apply(e??[])}},90941:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});let{isArray:i}=Array;function s(e){return null==e?[]:i(e)?e:[e]}},55449:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i.default});var i=n(90941)},83625:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i.MutableArray});var i=n(89711)},50827:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>h}),n(24086);var i=n(32581);n(38389),n(5268);var s=n(55336),r=n(47552),o=n(72299),a=n(77880);n(24691);var l=n(70001),u=n(89711),c=n(60465);let d={willChange:"_arrangedContentArrayWillChange",didChange:"_arrangedContentArrayDidChange"};function p(e,t){return"[]"===t?(e._revalidate(),e._arrTag):"length"===t?(e._revalidate(),e._lengthTag):(0,s.tagFor)(e,t)}class h extends l.default{_objectsDirtyIndex=0;_objects=null;_lengthDirty=!0;_length=0;_arrangedContent=null;_arrangedContentIsUpdating=!1;_arrangedContentTag=null;_arrangedContentRevision=null;_lengthTag=null;_arrTag=null;init(e){super.init(e),(0,c.setCustomTagFor)(this,p)}[r.Q](){this._revalidate()}willDestroy(){this._removeArrangedContentArrayObserver()}objectAtContent(e){let t=(0,r.g)(this,"arrangedContent");return(0,r.o)(t,e)}replace(e,t,n){this.replaceContent(e,t,n)}replaceContent(e,t,n){let i=(0,r.g)(this,"content");(0,a.a)(i,e,t,n)}objectAt(e){if(this._revalidate(),null===this._objects&&(this._objects=[]),-1!==this._objectsDirtyIndex&&e>=this._objectsDirtyIndex){let e=(0,r.g)(this,"arrangedContent");if(e){let t=this._objects.length=(0,r.g)(e,"length");for(let e=this._objectsDirtyIndex;es)&&(this._objectsDirtyIndex=s),this._lengthDirty=!0,(0,a.c)(this,t,n,i,!1)}_invalidate(){this._objectsDirtyIndex=0,this._lengthDirty=!0}_revalidate(){if(!0!==this._arrangedContentIsUpdating&&(null===this._arrangedContentTag||!(0,s.validateTag)(this._arrangedContentTag,this._arrangedContentRevision))){let e=this.get("arrangedContent");null===this._arrangedContentTag?this._addArrangedContentArrayObserver(e):(this._arrangedContentIsUpdating=!0,this._updateArrangedContentArray(e),this._arrangedContentIsUpdating=!1);let t=this._arrangedContentTag=(0,s.tagFor)(this,"arrangedContent");this._arrangedContentRevision=(0,s.valueForTag)(this._arrangedContentTag),(0,i.e)(e)?(this._lengthTag=(0,s.combine)([t,(0,r.a)(e,"length")]),this._arrTag=(0,s.combine)([t,(0,r.a)(e,"[]")])):this._lengthTag=this._arrTag=t}}}h.reopen(u.MutableArray,{arrangedContent:(0,o.a)("content")})},39498:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DEFAULT_FEATURES:()=>s,FEATURES:()=>r,isEnabled:()=>o});var i=n(24691);let s={},r=Object.assign(s,i.E.FEATURES);function o(e){let t=r[e];return!0===t||!1===t?t:!!i.E.ENABLE_OPTIONAL_FEATURES}},2905:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i.H,helper:()=>i.h}),n(10010);var i=n(11676);n(64579),n(38389),n(95374),n(42433),n(29067),n(55336),n(60465)},76417:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Input:()=>s.I,Textarea:()=>s.T,capabilities:()=>i.componentCapabilities,default:()=>s.C,getComponentTemplate:()=>i.getComponentTemplate,setComponentManager:()=>r.s,setComponentTemplate:()=>i.setComponentTemplate});var i=n(60465);n(10010);var s=n(11676);n(64579),n(38389),n(95374),n(42433),n(29067),n(55336);var r=n(84435)},88606:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=n(95374).templateOnlyComponent},82806:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ControllerMixin:()=>c,default:()=>d,inject:()=>p});var i=n(83285);n(70001);var s=n(30778),r=n(47552);n(24086),n(38389),n(55336);var o=n(41849);n(32581),n(5268),n(60465),n(24691);var a=n(43056);n(10441),n(13385),n(52149);var l=n(27784);n(98880),n(92082),n(54401),n(52681);let u=(0,o.s)("MODEL"),c=a.default.create(l.default,{isController:!0,concatenatedProperties:["queryParams"],target:null,store:null,init(){this._super(...arguments);let e=(0,i.getOwner)(this);e&&(this.namespace=e.lookup("application:main"),this.target=e.lookup("router:main"))},model:(0,r.c)({get(){return this[u]},set(e,t){return this[u]=t}}),queryParams:null,_qpDelegate:null,_qpChanged(e,t){let n=t.indexOf(".[]"),i=-1===n?t:t.slice(0,n),s=e._qpDelegate,o=(0,r.g)(e,i);s(i,o)}});class d extends s.FrameworkObject.extend(c){}function p(){for(var e=arguments.length,t=Array(e),n=0;n{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(59247),s=n(70001);n(24086),n(32581),n(38389),n(5268),n(55336),n(60465),n(47552),n(24691);var r=n(14829);n(10441),n(13385),n(52149),n(27784),n(98880),n(92082),n(54401),n(52681);var o=n(83285),a=n(40607);class l extends s.default{constructor(e){super(e),this.resolver=(0,o.getOwner)(this).lookup("resolver-for-debugging:main")}resolver;canCatalogEntriesByType(e){return"model"!==e&&"template"!==e}catalogEntriesByType(e){let t=a.default.NAMESPACES,n=[],s=RegExp(`${(0,i.classify)(e)}$`);return t.forEach(e=>{for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&s.test(t)){let o=e[t];"class"===(0,r.default)(o)&&n.push((0,i.dasherize)(t.replace(s,"")))}}),n}}},98647:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>g});var i=n(83285),s=n(42433),r=n(70001),o=n(59247),a=n(40607),l=n(89711),u=n(55336);n(38389);var c=n(47552);n(24086),n(32581),n(5268),n(60465),n(24691);var d=n(16547);function p(e,t){if(Symbol.iterator in e)for(let n of e)t(n);else(0,d.assert)("","function"==typeof e.forEach),e.forEach(t)}class h{recordCaches=(()=>new Map)();added=[];updated=[];removed=[];getCacheForItem(e){let t=this.recordCaches.get(e);if(!t){let n=!1;t=(0,u.createCache)(()=>{n?this.updated.push(this.wrapRecord(e)):(this.added.push(this.wrapRecord(e)),n=!0)}),this.recordCaches.set(e,t)}return t}constructor(e,t,n,i,s,r){this.wrapRecord=s,this.release=r,this.recordArrayCache=(0,u.createCache)(()=>{let r=new Set;(0,u.consumeTag)((0,u.tagFor)(e,"[]")),p(e,e=>{(0,u.getValue)(this.getCacheForItem(e)),r.add(e)}),(0,u.untrack)(()=>{this.recordCaches.forEach((e,t)=>{r.has(t)||(this.removed.push(s(t)),this.recordCaches.delete(t))})}),this.added.length>0&&(t(this.added),this.added=[]),this.updated.length>0&&(n(this.updated),this.updated=[]),this.removed.length>0&&(i(this.removed),this.removed=[])})}revalidate(){(0,u.getValue)(this.recordArrayCache)}}class m{constructor(e,t,n){this.release=n;let i=!1;this.cache=(0,u.createCache)(()=>{p(e,()=>{}),(0,u.consumeTag)((0,u.tagFor)(e,"[]")),!0===i?(0,s.next)(t):i=!0}),this.release=n}revalidate(){(0,u.getValue)(this.cache)}}class g extends r.default{releaseMethods=(()=>(0,l.A)())();recordsWatchers=(()=>new Map)();typeWatchers=(()=>new Map)();flushWatchers=null;constructor(e){super(e),this.containerDebugAdapter=(0,i.getOwner)(this).lookup("container-debug-adapter:main")}attributeLimit=3;acceptsModelName=!0;getFilters(){return(0,l.A)()}watchModelTypes(e,t){let n=this.getModelTypes(),i=(0,l.A)();e(n.map(e=>{let n=e.klass,s=this.wrapModelType(n,e.name);return i.push(this.observeModelType(e.name,t)),s}));let s=()=>{i.forEach(e=>e()),this.releaseMethods.removeObject(s)};return this.releaseMethods.pushObject(s),s}_nameToClass(e){if("string"==typeof e){let t=(0,i.getOwner)(this).factoryFor(`model:${e}`);e=t&&t.class}return e}watchRecords(e,t,n,i){let s=this._nameToClass(e),r=this.getRecords(s,e),{recordsWatchers:o}=this,a=o.get(r);return a||(a=new h(r,t,n,i,e=>this.wrapRecord(e),()=>{o.delete(r),this.updateFlushWatchers()}),o.set(r,a),this.updateFlushWatchers(),a.revalidate()),a.release}updateFlushWatchers(){null===this.flushWatchers?(this.typeWatchers.size>0||this.recordsWatchers.size>0)&&(this.flushWatchers=()=>{this.typeWatchers.forEach(e=>e.revalidate()),this.recordsWatchers.forEach(e=>e.revalidate())},s._backburner.on("end",this.flushWatchers)):0===this.typeWatchers.size&&0===this.recordsWatchers.size&&(s._backburner.off("end",this.flushWatchers),this.flushWatchers=null)}willDestroy(){this._super(...arguments),this.typeWatchers.forEach(e=>e.release()),this.recordsWatchers.forEach(e=>e.release()),this.releaseMethods.forEach(e=>e()),this.flushWatchers&&s._backburner.off("end",this.flushWatchers)}detect(e){return!1}columnsForType(e){return(0,l.A)()}observeModelType(e,t){let n=this._nameToClass(e),i=this.getRecords(n,e),{typeWatchers:s}=this,r=s.get(i);return r||(r=new m(i,()=>{t([this.wrapModelType(n,e)])},()=>{s.delete(i),this.updateFlushWatchers()}),s.set(i,r),this.updateFlushWatchers(),r.revalidate()),r.release}wrapModelType(e,t){let n=this.getRecords(e,t);return{name:t,count:(0,c.g)(n,"length"),columns:this.columnsForType(e),object:e}}getModelTypes(){let e=this.containerDebugAdapter;return(e.canCatalogEntriesByType("model")?e.catalogEntriesByType("model"):this._getObjectsOnNamespaces()).map(e=>({klass:this._nameToClass(e),name:e})).filter(e=>this.detect(e.klass))}_getObjectsOnNamespaces(){let e=a.default.NAMESPACES,t=[];return e.forEach(e=>{for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n)||!this.detect(e[n]))continue;let i=(0,o.dasherize)(n);t.push(i)}}),t}getRecords(e,t){return(0,l.A)()}wrapRecord(e){return{object:e,columnValues:this.getRecordColumnValues(e),searchKeywords:this.getRecordKeywords(e),filterValues:this.getRecordFilterValues(e),color:this.getRecordColor(e)}}getRecordColumnValues(e){return{}}getRecordKeywords(e){return(0,l.A)()}getRecordFilterValues(e){return{}}getRecordColor(e){return null}}},38389:(e,t,n)=>{"use strict";let i,s;n.r(t),n.d(t,{_warnIfUsingStrippedFeatureFlags:()=>s,assert:()=>l.assert,captureRenderTree:()=>c.default,debug:()=>m,debugFreeze:()=>f,debugSeal:()=>g,deprecate:()=>k,deprecateFunc:()=>w,getDebugFunction:()=>b,info:()=>p,inspect:()=>u.default,isTesting:()=>o.isTesting,registerDeprecationHandler:()=>r.registerHandler,registerWarnHandler:()=>a.registerHandler,runInDebug:()=>_,setDebugFunction:()=>y,setTesting:()=>o.setTesting,warn:()=>h}),n(73699);var r=n(49914),o=n(22325),a=n(94305),l=n(16547),u=n(15597),c=n(38469);let d=()=>{},p=d,h=d,m=d,g=d,f=d,_=d,y=d,b=d,w=function(){return arguments[arguments.length-1]};function k(){return(i??r.default)(...arguments)}},16547:(e,t,n)=>{"use strict";n.r(t),n.d(t,{assert:()=>i,setAssert:()=>s});let i=()=>{};function s(e){return i=e,e}},38469:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(58746);function s(e){return(0,i.expect)(e.lookup("renderer:-dom"),"BUG: owner is missing renderer").debugRenderTree.capture()}},49914:(e,t,n)=>{"use strict";let i,s;n.r(t),n.d(t,{default:()=>d,missingOptionDeprecation:()=>u,missingOptionsDeprecation:()=>i,missingOptionsIdDeprecation:()=>s,registerHandler:()=>l});var r=n(24691),o=n(16547),a=n(70300);let l=()=>{},u=()=>"",c=()=>{};{let e;let t=function(e,t){let n=e;return t?.id&&(n+=` [deprecation id: ${t.id}]`),t?.until&&(n+=` This will be removed in ${t.for} ${t.until}.`),t?.url&&(n+=` See ${t.url} for more details.`),n};(l=function(e){(0,a.registerHandler)("deprecate",e)})(function(e,n){let i=t(e,n);console.warn(`DEPRECATION: ${i}`)}),e=Error().stack?()=>Error():()=>{try{__fail__.fail();return}catch(e){return e}},l(function(n,i,s){if(r.E.LOG_STACKTRACE_ON_DEPRECATION){let s,r="",o=e();o instanceof Error&&o.stack&&(o.arguments?(s=o.stack.replace(/^\s+at\s+/gm,"").replace(/^([^(]+?)([\n$])/gm,"{anonymous}($1)$2").replace(/^Object.\s*\(([^)]+)\)/gm,"{anonymous}($1)").split("\n")).shift():s=o.stack.replace(/(?:\n@:0)?\s+$/m,"").replace(/^\(/gm,"{anonymous}(").split("\n"),r=`
${s.slice(2).join("\n ")}`);let a=t(n,i);console.warn(`DEPRECATION: ${a}${r}`)}else s(n,i)}),l(function(e,n,i){if(r.E.RAISE_ON_DEPRECATION)throw Error(t(e));i(e,n)}),i="When calling `deprecate` you must provide an `options` hash as the third parameter. `options` should include `id` and `until` properties.",s="When calling `deprecate` you must provide `id` in options.",u=(e,t)=>`When calling \`deprecate\` you must provide \`${t}\` in options. Missing options.${t} in "${e}" deprecation`,c=function(e,t,n){(0,o.assert)(i,!!(n&&(n.id||n.until))),(0,o.assert)(s,!!n.id),(0,o.assert)(u(n.id,"until"),!!n.until),(0,o.assert)(u(n.id,"for"),!!n.for),(0,o.assert)(u(n.id,"since"),!!n.since),(0,a.invoke)("deprecate",e,t,n)}}let d=c},70300:(e,t,n)=>{"use strict";n.r(t),n.d(t,{HANDLERS:()=>i,invoke:()=>r,registerHandler:()=>s});let i={},s=function(e,t){},r=()=>{};s=function(e,t){let n=i[e]||(()=>{});i[e]=(e,i)=>{t(e,i,n)}},r=function(e,t,n,s){if(n)return;let r=i[e];r&&r(t,s)}},15597:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(16547);let{toString:s}=Object.prototype,{toString:r}=Function.prototype,{isArray:o}=Array,{keys:a}=Object,{stringify:l}=JSON,u=/^[\w$]+$/;function c(e){return"number"==typeof e&&2==arguments.length?this:function e(t,n,c){let d=!1;switch(typeof t){case"undefined":return"undefined";case"object":if(null===t)return"null";if(o(t)){d=!0;break}if(t.toString===s||void 0===t.toString)break;return t.toString();case"function":return t.toString===r?t.name?`[Function:${t.name}]`:"[Function]":t.toString();case"string":return l(t);default:return t.toString()}if(void 0===c)c=new WeakSet;else if(c.has(t))return"[Circular]";return c.add(t),d?function(t,n,i){if(n>4)return"[Array]";let s="[";for(let r=0;r=100){s+=`... ${t.length-100} more items`;break}s+=e(t[r],n,i)}return s+" ]"}(t,n+1,c):function(t,n,s){if(n>4)return"[Object]";let r="{",o=a(t);for(let a=0;a=100){r+=`... ${o.length-100} more keys`;break}let c=o[a];(0,i.assert)("has key",c),r+=`${function(e){return u.test(e)?e:l(e)}(String(c))}: ${e(t[c],n,s)}`}return r+" }"}(t,n+1,c)}(e,0)}},22325:(e,t,n)=>{"use strict";n.r(t),n.d(t,{isTesting:()=>s,setTesting:()=>r});let i=!1;function s(){return i}function r(e){i=!!e}},94305:(e,t,n)=>{"use strict";let i,s;n.r(t),n.d(t,{default:()=>o,missingOptionsDeprecation:()=>i,missingOptionsIdDeprecation:()=>s,registerHandler:()=>r}),n(70300);let r=()=>{},o=()=>{}},23781:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ASSIGN:()=>i});let i=!0},23348:(e,t,n)=>{"use strict";n.r(t),n.d(t,{assertDestroyablesDestroyed:()=>i.assertDestroyablesDestroyed,associateDestroyableChild:()=>i.associateDestroyableChild,destroy:()=>i.destroy,enableDestroyableTracking:()=>i.enableDestroyableTracking,isDestroyed:()=>i.isDestroyed,isDestroying:()=>i.isDestroying,registerDestructor:()=>s,unregisterDestructor:()=>r});var i=n(5268);function s(e,t){return(0,i.registerDestructor)(e,t)}function r(e,t){return(0,i.unregisterDestructor)(e,t)}},8608:(e,t,n)=>{"use strict";n.r(t),n.d(t,{buildInitializerMethod:()=>_,default:()=>f,getEngineParent:()=>i.getEngineParent,setEngineParent:()=>i.setEngineParent});var i=n(72649);n(32581);var s=n(82806),r=n(40607),o=n(64579),a=n(14757);n(38389);var l=n(91990);n(70001);var u=n(18421);n(24086),n(5268),n(55336),n(60465);var c=n(47552),d=n(8387);n(24691),n(52352),n(65828),n(62499);var p=n(37332);n(73460);var h=n(76996);n(30576),n(47052),n(55996),n(58564),n(20786),n(46349),n(10010),n(11676);var m=n(89140);n(95374),n(42433),n(29067);var g=n(10441);n(13385),n(52149),n(27784),n(98880),n(92082),n(54401),n(52681);class f extends r.default.extend(g.default){static initializers=(()=>Object.create(null))();static instanceInitializers=(()=>Object.create(null))();static initializer=(()=>_("initializers","initializer"))();static instanceInitializer=(()=>_("instanceInitializers","instance initializer"))();static buildRegistry(e){let t=new o.R({resolver:function(e){return e.Resolver.create({namespace:e})}(e)});return t.set=d.s,t.register("application:main",e,{instantiate:!1}),function(e){e.optionsForType("component",{singleton:!1}),e.optionsForType("view",{singleton:!1}),e.register("controller:basic",s.default,{instantiate:!1}),e.register("service:-routing",p.default),e.register("resolver-for-debugging:main",e.resolver,{instantiate:!1}),e.register("container-debug-adapter:main",l.default),e.register("component-lookup:main",h.default)}(t),(0,m.s)(t),t}init(e){super.init(e),this.buildRegistry()}_initializersRan=!1;ensureInitializers(){this._initializersRan||(this.runInitializers(),this._initializersRan=!0)}buildInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.ensureInitializers(),u.default.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,i=(0,c.g)(this.constructor,e),s=function(e){let t=[];for(let n in e)t.push(n);return t}(i),r=new a.default;for(let e of s)n=i[e],r.add(n.name,n,n.before,n.after);r.topsort(t)}}function _(e,t){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}}},18421:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>c});var i=n(70001),s=n(10441),r=n(13385);n(52149),n(27784),n(98880),n(92082),n(54401),n(52681),n(38389);var o=n(64579),a=n(32581),l=n(72649);n(83285);var u=n(65828);class c extends i.default.extend(s.default,r.default){static setupRegistry(e,t){}[l.ENGINE_PARENT];_booted=!1;init(e){super.init(e),(0,a.g)(this),this.base??=this.application;let t=this.__registry__=new o.R({fallback:this.base.__registry__});this.__container__=t.container({owner:this}),this._booted=!1}_bootPromise=null;boot(e){return this._bootPromise||(this._bootPromise=new u.R.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(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.__container__.lookup("-environment:main");this.constructor.setupRegistry(this.__registry__,e)}unregister(e){this.__container__.reset(e),this.__registry__.unregister(e)}buildChildEngineInstance(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.lookup(`engine:${e}`);if(!n)throw Error(`You attempted to mount the engine '${e}', but it is not registered with its parent.`);let i=n.buildInstance(t);return(0,l.setEngineParent)(i,this),i}cloneParentDependencies(){let e=(0,l.getEngineParent)(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",(0,o.p)`-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})})}}},72649:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ENGINE_PARENT:()=>i,getEngineParent:()=>s,setEngineParent:()=>r});let i=Symbol("ENGINE_PARENT");function s(e){return e[i]}function r(e,t){e[i]=t}},34598:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ENGINE_PARENT:()=>i.ENGINE_PARENT,getEngineParent:()=>i.getEngineParent,setEngineParent:()=>i.setEngineParent});var i=n(72649)},64096:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=n(43056).default.create()},92082:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(64096);let s=n(43056).default.create(i.default)},39882:(e,t,n)=>{"use strict";n.r(t),n.d(t,{array:()=>c,capabilities:()=>o,concat:()=>d,fn:()=>h,get:()=>p,hash:()=>u,invokeHelper:()=>l,setHelperManager:()=>a,uniqueId:()=>m});var i=n(60465),s=n(95374);n(10010);var r=n(11676);n(64579),n(38389),n(42433),n(29067),n(55336);let o=i.helperCapabilities,a=i.setHelperManager,l=s.invokeHelper,u=s.hash,c=s.array,d=s.concat,p=s.get,h=s.fn,m=r.u},84392:(e,t,n)=>{"use strict";n.r(t),n.d(t,{_instrumentStart:()=>c,flaggedInstrument:()=>l,instrument:()=>a,reset:()=>h,subscribe:()=>d,subscribers:()=>s,unsubscribe:()=>p});var i=n(24691);n(38389);let s=[],r={},o=(()=>{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 a(e,t,n,i){let r,o,a;if(arguments.length<=3&&function(e){return"function"==typeof e}(t)?(o=t,a=n):(r=t,o=n,a=i),0===s.length)return o.call(a);let l=r||{},d=c(e,()=>l);return d===u?o.call(a):function(e,t,n,i){try{return e.call(i)}catch(e){throw n.exception=e,e}finally{t()}}(o,d,l,a)}function l(e,t,n){return n()}function u(){}function c(e,t,n){let a;if(0===s.length)return u;let l=r[e];if(l||(l=function(e){let t=[];for(let n of s)n.regex.test(e)&&t.push(n.object);return r[e]=t,t}(e)),0===l.length)return u;let c=t(n),d=i.E.STRUCTURED_PROFILE;d&&console.time(a=`${e}: ${c.object}`);let p=[],h=o();for(let t of l)p.push(t.before(e,h,c));let m=l;return function(){let t=o();for(let n=0;n{"use strict";n.r(t),n.d(t,{capabilities:()=>i.modifierCapabilities,on:()=>s.on,setModifierManager:()=>r});var i=n(60465),s=n(60418);n(10010),n(11676),n(64579),n(38389),n(95374),n(42433),n(29067),n(55336);let r=i.setModifierManager},60418:(e,t,n)=>{"use strict";n.r(t),n.d(t,{on:()=>i});let i=n(95374).on},30778:(e,t,n)=>{"use strict";n.r(t),n.d(t,{FrameworkObject:()=>o,cacheFor:()=>s.g,guidFor:()=>i.g}),n(24086),n(41849);var i=n(32581);n(38389),n(5268),n(55336),n(60465),n(47552);var s=n(83108);n(24691);var r=n(70001);let o=class extends r.default{}},53067:(e,t,n)=>{"use strict";n.r(t),n.d(t,{dependentKeyCompat:()=>o}),n(24086),n(32581),n(38389),n(5268);var i=n(55336);n(60465);var s=n(47552);n(24691);let r=function(e,t,n){let{get:s}=n;return void 0!==s&&(n.get=function(){let e,n=(0,i.tagFor)(this,t),r=(0,i.track)(()=>{e=s.call(this)});return(0,i.updateTag)(n,r),(0,i.consumeTag)(r),e}),n};function o(){for(var e=arguments.length,t=Array(e),n=0;n{"use strict";n.r(t),n.d(t,{alias:()=>s.a,and:()=>r.and,bool:()=>r.bool,collect:()=>o.collect,default:()=>i.C,deprecatingAlias:()=>r.deprecatingAlias,empty:()=>r.empty,equal:()=>r.equal,expandProperties:()=>i.e,filter:()=>o.filter,filterBy:()=>o.filterBy,gt:()=>r.gt,gte:()=>r.gte,intersect:()=>o.intersect,lt:()=>r.lt,lte:()=>r.lte,map:()=>o.map,mapBy:()=>o.mapBy,match:()=>r.match,max:()=>o.max,min:()=>o.min,none:()=>r.none,not:()=>r.not,notEmpty:()=>r.notEmpty,oneWay:()=>r.oneWay,or:()=>r.or,readOnly:()=>r.readOnly,reads:()=>r.oneWay,setDiff:()=>o.setDiff,sort:()=>o.sort,sum:()=>o.sum,union:()=>o.union,uniq:()=>o.uniq,uniqBy:()=>o.uniqBy});var i=n(47552);n(24086);var s=n(72299);n(38389),n(32581),n(5268),n(60465),n(55336),n(24691);var r=n(1724),o=n(38997)},134:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});var i=n(64579),s=n(83285);n(41849);var r=n(32581),o=n(24086);n(38389);var a=n(5268);n(55336),n(60465);var l=n(47552);n(24691);var u=n(43056);n(10441),n(13385),n(52149),n(27784),n(98880),n(92082),n(54401),n(52681);var c=n(90941),d=n(39629);let p=u.default.prototype.reopen,h=new WeakSet,m=new WeakMap,g=new Set;function f(e){g.has(e)||e.destroy()}function _(e,t){let n=(0,o.meta)(e);if(void 0!==t){let i=e.concatenatedProperties,s=e.mergedProperties;for(let r of Object.keys(t)){let o=t[r],a=(0,l.b)(e,r,n),u=void 0!==a;if(!u){if(void 0!==i&&i.length>0&&i.includes(r)){let t=e[r];o=t?(0,c.default)(t).concat(o):(0,c.default)(o)}void 0!==s&&s.length>0&&s.includes(r)&&(o=Object.assign({},e[r],o))}u?a.set(e,r,o):!function(e){return"object"==typeof e&&null!==e&&"function"==typeof e.setUnknownProperty}(e)||r in e?e[r]=o:e.setUnknownProperty(r,o)}}e.init(t),n.unsetInitializing();let i=n.observerEvents();if(void 0!==i)for(let t=0;tt.willDestroy()),(0,o.meta)(this).setInitializing()}reopen(){for(var e=arguments.length,t=Array(e),n=0;n`}static extend(){let e=class extends this{};for(var t=arguments.length,n=Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:this;this.proto();let n={};(0,o.meta)(this.prototype).forEachDescriptors((i,s)=>{if(s.enumerable){let r=s._meta||n;e.call(t,i,r)}})}static get PrototypeMixin(){let e=m.get(this);return void 0===e&&((e=u.default.create()).ownerConstructor=this,m.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(!h.has(e)){h.add(e);let t=this.superclass;t&&t.proto(),m.has(this)&&this.PrototypeMixin.apply(e)}return e}static toString(){return`<${(0,i.g)(this)||"(unknown)"}:constructor>`}static isClass=!0;static isMethod=!1;static _onLookup;static _lazyInjections}function b(){let e={};for(var t=arguments.length,n=Array(t),i=0;i{"use strict";n.r(t),n.d(t,{default:()=>s,on:()=>i.N}),n(24086),n(32581),n(38389),n(5268),n(55336),n(60465);var i=n(47552);n(24691);let s=n(43056).default.create({on(e,t,n){return(0,i.G)(this,e,t,n),this},one(e,t,n){return(0,i.G)(this,e,t,n,!0),this},trigger(e){for(var t=arguments.length,n=Array(t>1?t-1:0),s=1;s{"use strict";n.r(t),n.d(t,{addListener:()=>i.G,removeListener:()=>i.H,sendEvent:()=>i.k}),n(24086),n(32581),n(38389),n(5268),n(55336),n(60465);var i=n(47552);n(24691)},70001:(e,t,n)=>{"use strict";n.r(t),n.d(t,{action:()=>m,computed:()=>s.c,default:()=>d,defineProperty:()=>s.d,get:()=>s.g,getProperties:()=>a.g,notifyPropertyChange:()=>s.n,observer:()=>g,set:()=>o.s,setProperties:()=>a.s,trySet:()=>o.t}),n(38389);var i=n(24691),s=n(47552);n(24086),n(55336);var r=n(32581);n(5268),n(60465);var o=n(8387),a=n(43082),l=n(64579),u=n(134),c=n(31384);class d extends u.default.extend(c.default){get _debugContainerKey(){let e=(0,l.g)(this);return void 0!==e&&e.fullName}}let p=new WeakMap;function h(e,t,n){if(function(e){return null!=e&&void 0!==e.constructor&&"function"==typeof e.constructor.proto}(e)&&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=p.get(this);void 0===e&&(e=new Map,p.set(this,e));let t=e.get(n);return void 0===t&&(t=n.bind(this),e.set(n,t)),t}}}function m(){let e;for(var t=arguments.length,n=Array(t),i=0;ic.push(e));return(0,r.s)(e,{paths:c,sync:n}),e}(0,s.s)(m)},38075:(e,t,n)=>{"use strict";n.r(t),n.d(t,{cacheFor:()=>i.g,guidFor:()=>s.g}),n(30778);var i=n(83108),s=n(32581)},1724:(e,t,n)=>{"use strict";n.r(t),n.d(t,{and:()=>w,bool:()=>h,deprecatingAlias:()=>S,empty:()=>u,equal:()=>g,gt:()=>f,gte:()=>_,lt:()=>y,lte:()=>b,match:()=>m,none:()=>d,not:()=>p,notEmpty:()=>c,oneWay:()=>x,or:()=>k,readOnly:()=>T});var i=n(47552);n(24086);var s=n(72299);n(38389);var r=n(8387);n(32581),n(5268),n(60465),n(55336),n(24691),n(70001);var o=n(13816),a=n(71121);function l(e,t){return function(e){for(var n=arguments.length,s=Array(n>1?n-1:0),r=1;rt})}function _(e,t){return(0,i.c)(e,function(){return(0,i.g)(this,e)>=t})}function y(e,t){return(0,i.c)(e,function(){return(0,i.g)(this,e)e),k=l("or",e=>!e);function x(e){return(0,s.a)(e).oneWay()}function T(e){return(0,s.a)(e).readOnly()}function S(e,t){return(0,i.c)(e,{get(t){return(0,i.g)(this,e)},set(t,n){return(0,r.s)(this,e,n),n}})}},38997:(e,t,n)=>{"use strict";n.r(t),n.d(t,{collect:()=>x,filter:()=>g,filterBy:()=>f,intersect:()=>w,map:()=>h,mapBy:()=>m,max:()=>d,min:()=>p,setDiff:()=>k,sort:()=>T,sum:()=>c,union:()=>b,uniq:()=>_,uniqBy:()=>y}),n(38389);var i=n(47552);n(24086),n(55336),n(32581),n(5268),n(60465),n(24691),n(70001),n(134);var s=n(29732),r=n(89711);function o(e){return Array.isArray(e)||r.default.detect(e)}function a(e,t,n,s){return(0,i.c)(`${e}.[]`,function(){let s=(0,i.g)(this,e);return null===s||"object"!=typeof s?n:s.reduce(t,n,this)}).readOnly()}function l(e,t,n){let s;return/@each/.test(e)?s=e.replace(/\.@each.*$/,""):(s=e,e+=".[]"),(0,i.c)(e,...t,function(){let e=(0,i.g)(this,s);return o(e)?(0,r.A)(n.call(this,e)):(0,r.A)()}).readOnly()}function u(e,t,n){let s=e.map(e=>`${e}.[]`);return(0,i.c)(...s,function(){return(0,r.A)(t.call(this,e))}).readOnly()}function c(e){return a(e,(e,t)=>e+t,0,"sum")}function d(e){return a(e,(e,t)=>Math.max(e,t),-1/0,"max")}function p(e){return a(e,(e,t)=>Math.min(e,t),1/0,"min")}function h(e,t,n){let i;"function"==typeof t?(n=t,i=[]):i=t;let s=n;return l(e,i,function(e){return Array.isArray(e),e.map(s,this)})}function m(e,t){return h(`${e}.@each.${t}`,e=>(0,i.g)(e,t))}function g(e,t,n){let i;"function"==typeof t?(n=t,i=[]):i=t;let s=n;return l(e,i,function(e){return Array.isArray(e),e.filter(s,this)})}function f(e,t,n){let s;return s=2==arguments.length?e=>(0,i.g)(e,t):e=>(0,i.g)(e,t)===n,g(`${e}.@each.${t}`,s)}function _(e){for(var t=arguments.length,n=Array(t>1?t-1:0),s=1;s{let s=(0,i.g)(this,e);o(s)&&s.forEach(e=>{n.has(e)||(n.add(e),t.push(e))})}),t},"uniq")}function y(e,t){return(0,i.c)(`${e}.[]`,function(){let n=(0,i.g)(this,e);return o(n)?(0,r.uniqBy)(n,t):(0,r.A)()}).readOnly()}let b=_;function w(e){for(var t=arguments.length,n=Array(t>1?t-1:0),s=1;s{let t=(0,i.g)(this,e);return Array.isArray(t)?t:[]}),n=t.pop().filter(e=>{for(let n of t){let t=!1;for(let i of n)if(i===e){t=!0;break}if(!1===t)return!1}return!0});return(0,r.A)(n)},"intersect")}function k(e,t){return(0,i.c)(`${e}.[]`,`${t}.[]`,function(){let n=(0,i.g)(this,e),s=(0,i.g)(this,t);return o(n)?o(s)?n.filter(e=>-1===s.indexOf(e)):n:(0,r.A)()}).readOnly()}function x(e){for(var t=arguments.length,n=Array(t>1?t-1:0),s=1;s{let t=(0,i.g)(this,e);return void 0===t?null:t});return(0,r.A)(e)},"collect")}function T(e,t,n){let a,u;return(Array.isArray(t)?(a=t,u=n):(a=[],u=t),"function"==typeof u)?function(e,t,n){return l(e,t,function(e){return e.slice().sort((e,t)=>n.call(this,e,t))})}(e,a,u):function(e,t){return(0,i.R)(function(n){let a=(0,i.g)(this,t),l="@this"===e,u=function(e){return Array.isArray(e),e.map(e=>{let[t,n]=e.split(":");return[t,n=n||"asc"]})}(a),c=l?this:(0,i.g)(this,e);return o(c)?0===u.length?(0,r.A)(c.slice()):function(e,t){return(0,r.A)(e.slice().sort((e,n)=>{for(let[r,o]of t){let t=(0,s.default)((0,i.g)(e,r),(0,i.g)(n,r));if(0!==t)return"desc"===o?-1*t:t}return 0}))}(c,u):(0,r.A)()}).readOnly()}(e,u)}},43056:(e,t,n)=>{"use strict";n.r(t),n.d(t,{applyMixin:()=>m,default:()=>_,mixin:()=>g}),n(64579);var i=n(24086),s=n(32581);n(38389);var r=n(47552);n(55336),n(5268),n(60465);var o=n(29080);let a=Array.prototype.concat,{isArray:l}=Array;function u(e,t,n,i){let s=n[e]||i[e];return t[e]&&(s=s?a.call(s,t[e]):t[e]),s}function c(e,t,n,i){if(void 0!==i[e])return t;let r=n[e];return"function"==typeof r?(0,s.w)(t,r):t}function d(e){return e?Array.isArray(e)?e:[e]:[]}function p(e,t,n,i,o,a,l){let p=u("concatenatedProperties",t,i,o),m=u("mergedProperties",t,i,o);for(let u of Object.keys(t)){let g=t[u];if(void 0===g)continue;if(-1===a.indexOf(u)){a.push(u);let t=e.peekDescriptors(u);if(void 0===t){if(!(0,r.f)(g)){let e=i[u]=o[u];"function"==typeof e&&h(o,u,e,!1)}}else n[u]=t,l.push(u),t.teardown(o,u,e)}let f="function"==typeof g;if(f){let e=(0,r.E)(g);if(void 0!==e){n[u]=function(e,t,n,i){let o;if(!0===n)return t;let a=n._getter;if(void 0===a)return t;let l=i[e],u="function"==typeof l?(0,r.E)(l):l;if(void 0===u||!0===u)return t;let c=u._getter;if(void 0===c)return t;let d=(0,s.w)(a,c),p=n._setter,h=u._setter;if(o=void 0!==h?void 0!==p?(0,s.w)(p,h):h:p,d!==a||o!==p){let e=n._dependentKeys||[],t=new r.C([...e,{get:d,set:o}]);return t._readOnly=n._readOnly,t._meta=n._meta,t.enumerable=n.enumerable,(0,r.F)(t,r.C)}return t}(u,g,e,n),i[u]=void 0;continue}}p&&p.indexOf(u)>=0||"concatenatedProperties"===u||"mergedProperties"===u?g=function(e,t,n){return d(n[e]).concat(d(t))}(u,g,i):m&&m.indexOf(u)>-1?g=function(e,t,n){let i=n[e];if(!i)return t;let r=Object.assign({},i),o=!1;for(let e of Object.keys(t)){let n=t[e];"function"==typeof n?(o=!0,r[e]=c(e,n,i,{})):r[e]=n}return o&&(r._super=s.R),r}(u,g,i):f&&(g=c(u,g,i,n)),i[u]=g,n[u]=void 0}}function h(e,t,n,i){let o=(0,s.o)(n);if(void 0===o)return;let{observers:a,listeners:l}=o;if(void 0!==a){let n=i?r.v:r.w;for(let i of a.paths)n(e,i,null,t,a.sync)}if(void 0!==l){let n=i?r.G:r.H;for(let i of l)n(e,i,null,t)}}function m(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=Object.create(null),a=Object.create(null),l=(0,i.meta)(e),u=[],c=[];for(let i of(e._super=s.R,!function e(t,n,i,s,r,o,a){let l;for(let u=0;u{let t=o.indexOf(e);-1!==t&&o.splice(t,1)}))}else p(n,l,i,s,r,o,a)}(t,l,o,a,e,u,c),u)){let t=a[i],s=o[i];void 0!==t?("function"==typeof t&&h(e,i,t,!0),(0,r.y)(e,i,t,-1!==c.indexOf(i),!n)):void 0!==s&&(0,r.z)(e,i,s,l)}return l.isPrototypeMeta(e)||(0,r.A)(e),e}function g(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i{e.properties||n.push(e)}),n}reopen(){for(var e=arguments.length,t=Array(e),n=0;n1&&void 0!==arguments[1]&&arguments[1];return m(e,[this],t)}applyPartial(e){return m(e,[this])}detect(e){if("object"!=typeof e||null===e)return!1;if(f.has(e))return function e(t,n){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set;if(i.has(t))return!1;if(i.add(t),t===n)return!0;let s=t.mixins;return!!s&&s.some(t=>e(t,n,i))}(e,this);let t=(0,i.peekMeta)(e);return null!==t&&t.hasMixin(this)}without(){let e=new _([this]);for(var t=arguments.length,n=Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:new Set,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set;if(!i.has(t)){if(i.add(t),t.properties)for(let e of Object.keys(t.properties))n.add(e);else t.mixins&&t.mixins.forEach(t=>e(t,n,i));return n}}(this)}toString(){return"(unknown mixin)"}}function y(e){let t,n=e&&e.length||0;if(n>0){t=Array(n);for(let i=0;i{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(24086);n(32581),n(38389),n(5268),n(55336),n(60465);var s=n(47552),r=n(8387),o=n(43082);n(24691);let a=n(43056).default.create({get(e){return(0,s.g)(this,e)},getProperties(){for(var e=arguments.length,t=Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:1;return(0,r.s)(this,e,(parseFloat((0,s.g)(this,e))||0)+t)},decrementProperty(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return(0,r.s)(this,e,((0,s.g)(this,e)||0)-t)},toggleProperty(e){return(0,r.s)(this,e,!(0,s.g)(this,e))},cacheFor(e){let t=(0,i.peekMeta)(this);return null!==t?t.valueFor(e):void 0}})},52798:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addObserver:()=>i.v,removeObserver:()=>i.w}),n(24086),n(32581),n(38389),n(5268),n(55336),n(60465);var i=n(47552);n(24691)},80361:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o}),n(70001);var i=n(43056),s=n(47552);n(24086),n(38389),n(55336),n(32581),n(5268),n(60465);var r=n(43082);n(24691);let o=i.default.create({reason:null,isPending:(0,s.c)("isSettled",function(){return!(0,s.g)(this,"isSettled")}).readOnly(),isSettled:(0,s.c)("isRejected","isFulfilled",function(){return(0,s.g)(this,"isRejected")||(0,s.g)(this,"isFulfilled")}).readOnly(),isRejected:!1,isFulfilled:!1,promise:(0,s.c)({get(){throw Error("PromiseProxy's promise must be set")},set(e,t){return function(e,t){return(0,r.s)(e,{isFulfilled:!1,isRejected:!1}),t.then(t=>(e.isDestroyed||e.isDestroying||(0,r.s)(e,{content:t,isFulfilled:!0}),t),t=>{throw e.isDestroyed||e.isDestroying||(0,r.s)(e,{reason:t,isRejected:!0}),t},"Ember: PromiseProxy")}(this,t)}}),then:a("then"),catch:a("catch"),finally:a("finally")});function a(e){return function(){return(0,s.g)(this,"promise")[e](...arguments)}}},12553:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i=n(30778);n(10441),n(13385),n(52149),n(27784);var s=n(98880);n(92082),n(54401),n(52681);class r extends i.FrameworkObject{}r.PrototypeMixin.reopen(s.default)},71597:(e,t,n)=>{"use strict";n.r(t),n.d(t,{getOwner:()=>s,setOwner:()=>i.setOwner});var i=n(83285);let s=i.getOwner},12329:(e,t,n)=>{"use strict";n.r(t),n.d(t,{renderSettled:()=>i.r}),n(10010);var i=n(11676);n(64579),n(38389),n(95374),n(42433),n(29067),n(55336),n(60465)},12501:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BucketCache:()=>a.default,DSL:()=>l.default,RouterState:()=>i.default,RoutingService:()=>s.default,controllerFor:()=>u.default,generateController:()=>o.default,generateControllerFactory:()=>o.generateControllerFactory,prefixRouteNameArg:()=>r.prefixRouteNameArg});var i=n(2205),s=n(37332),r=n(85281),o=n(44416),a=n(61646),l=n(43883),u=n(93338)},67748:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(70001),s=n(42433),r=n(60013);class o extends i.default{_hashchangeHandler;_location;init(){this.location=this._location??window.location,this._hashchangeHandler=void 0}getHash(){return(0,r.getHash)(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=(0,s.bind)(this,function(t){let n=this.getURL();this.lastSetURL!==n&&(this.lastSetURL=null,e(n))}),window.addEventListener("hashchange",this._hashchangeHandler)}formatURL(e){return`#${e}`}willDestroy(){this._removeEventListener()}_removeEventListener(){this._hashchangeHandler&&window.removeEventListener("hashchange",this._hashchangeHandler)}}},49418:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(70001);n(38389);var s=n(60013);let r=!1;function o(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t;return t=16*Math.random()|0,("x"===e?t:3&t|8).toString(16)})}class a extends i.default{history;_previousURL;_popstateHandler;rootURL="/";getHash(){return(0,s.getHash)(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,i=e.pathname;return t=t.replace(/\/$/,""),n=n.replace(/\/$/,""),i.replace(RegExp(`^${n}(?=/|$)`),"").replace(RegExp(`^${t}(?=/|$)`),"").replace(/\/\//g,"/")+((e.search||"")+this.getHash())}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:o()};this.history.pushState(t,"",e),this._previousURL=this.getURL()}replaceState(e){let t={path:e,uuid:o()};this.history.replaceState(t,"",e),this._previousURL=this.getURL()}onUpdateURL(e){this._removeEventListener(),this._popstateHandler=()=>{(r||(r=!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)}}},69836:(e,t,n)=>{"use strict";n.r(t),n.d(t,{LinkTo:()=>i.L}),n(10010);var i=n(11676);n(64579),n(38389),n(95374),n(42433),n(29067),n(55336),n(60465)},61646:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});class i{cache;constructor(){this.cache=new Map}has(e){return this.cache.has(e)}stash(e,t,n){let i=this.cache.get(e);void 0===i&&(i=new Map,this.cache.set(e,i)),i.set(t,n)}lookup(e,t,n){if(!this.has(e))return n;let i=this.cache.get(e);return i.has(t)?i.get(t):n}}},93338:(e,t,n)=>{"use strict";function i(e,t,n){return e.lookup(`controller:${t}`,n)}n.r(t),n.d(t,{default:()=>i})},43883:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r}),n(38389);let i=0;function s(e){return"function"==typeof e}class r{parent;matches;enableLoadingSubstates;explicitIndex=!1;options;constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;this.parent=e,this.enableLoadingSubstates=!!(t&&t.enableLoadingSubstates),this.matches=[],this.options=t}route(e,t,n){let i;let l=null,u=`/_unused_dummy_error_path_route_${e}/:error`;if(s(t)?(i={},l=t):s(n)?(i=t,l=n):i=t||{},this.enableLoadingSubstates&&(a(this,`${e}_loading`,{resetNamespace:i.resetNamespace}),a(this,`${e}_error`,{resetNamespace:i.resetNamespace,path:u})),l){let t=new r(o(this,e,i.resetNamespace),this.options);a(t,"loading"),a(t,"error",{path:u}),l.call(t),a(this,e,i,t.generate())}else a(this,e,i)}push(e,t,n,i){let s=t.split(".");if(this.options.engineInfo){let e=Object.assign({localFullName:t.slice(this.options.engineInfo.fullName.length+1)},this.options.engineInfo);i&&(e.serializeMethod=i),this.options.addRouteForEngine(t,e)}else if(i)throw Error(`Defining a route serializer on route '${t}' outside an Engine is not allowed.`);(""===e||"/"===e||"index"===s[s.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;n1&&void 0!==arguments[1]?arguments[1]:{},s=this.options.resolveRouteMap(e),l=e;n.as&&(l=n.as);let u=o(this,l,n.resetNamespace),c={name:e,instanceId:i++,mountPoint:u,fullName:u},d=n.path;"string"!=typeof d&&(d=`/${l}`);let p=`/_unused_dummy_error_path_route_${l}/:error`;if(s){let e=!1,n=this.options.engineInfo;n&&(e=!0,this.options.engineInfo=c);let i=new r(u,Object.assign({engineInfo:c},this.options));a(i,"loading"),a(i,"error",{path:p}),s.class.call(i),t=i.generate(),e&&(this.options.engineInfo=n)}let h=Object.assign({localFullName:"application"},c);if(this.enableLoadingSubstates){let e=`${l}_loading`,t="application_loading",i=Object.assign({localFullName:t},c);a(this,e,{resetNamespace:n.resetNamespace}),this.options.addRouteForEngine(e,i),e=`${l}_error`,i=Object.assign({localFullName:t="application_error"},c),a(this,e,{resetNamespace:n.resetNamespace,path:p}),this.options.addRouteForEngine(e,i)}this.options.addRouteForEngine(u,h),this.push(d,u,t)}}function o(e,t,n){return function(e){return"application"!==e.parent}(e)&&!0!==n?`${e.parent}.${t}`:t}function a(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,s=o(e,t,n.resetNamespace);"string"!=typeof n.path&&(n.path=`/${t}`),e.push(n.path,s,i,n.serialize)}},44416:(e,t,n)=>{"use strict";function i(e,t){let n=e.factoryFor("controller:basic").class;n=n.extend({toString:()=>`(generated ${t} controller)`});let i=`controller:${t}`;return e.register(i,n),e.factoryFor(i)}function s(e,t){i(e,t);let n=`controller:${t}`;return e.lookup(n)}n.r(t),n.d(t,{default:()=>s,generateControllerFactory:()=>i}),n(24086),n(32581),n(38389),n(5268),n(55336),n(60465),n(47552),n(24691),n(82806)},60013:(e,t,n)=>{"use strict";function i(e){let t=e.pathname;return"/"!==t[0]&&(t=`/${t}`),t}function s(e){return e.search}function r(e){return void 0!==e.hash?e.hash.substring(0):""}function o(e){return i(e)+s(e)+r(e)}function a(e){let t=e.origin;return!t&&(t=`${e.protocol}//${e.hostname}`,e.port&&(t+=`:${e.port}`)),t}function l(e,t){e.replace(a(e)+t)}n.r(t),n.d(t,{getFullPath:()=>o,getHash:()=>r,getOrigin:()=>a,getPath:()=>i,getQuery:()=>s,replacePath:()=>l})},58221:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});class i{values;isQueryParams=!0;constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.values=e}}},2205:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(85281);class s{router;emberRouter;routerJsState;constructor(e,t,n){this.emberRouter=e,this.router=t,this.routerJsState=n}isActiveIntent(e,t,n){let s=this.routerJsState;if(!this.router.isActiveIntent(e,t,void 0,s))return!1;if(void 0!==n&&Object.keys(n).length>0){let r=Object.assign({},n);return this.emberRouter._prepareQueryParams(e,t,r),(0,i.shallowEqual)(r,s.queryParams)}return!0}}},37332:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(83285);n(38389),n(24086),n(32581),n(5268),n(55336),n(60465),n(47552),n(24691);var s=n(1724);n(70001),n(134),n(10441),n(13385),n(52149),n(27784),n(98880),n(92082),n(54401),n(52681),n(89711);var r=n(54729);n(11639);var o=n(517);class a extends r.default{[o.ROUTER];get router(){let e=this[o.ROUTER];if(void 0!==e)return e;let t=(0,i.getOwner)(this).lookup("router:main");return t.setupRouter(),this[o.ROUTER]=t}hasRoute(e){return this.router.hasRoute(e)}transitionTo(e,t,n,i){let s=this.router._doTransition(e,t,n);return i&&s.method("replace"),s}normalizeQueryParams(e,t,n){this.router._prepareQueryParams(e,t,n)}_generateURL(e,t,n){let i={};return n&&(Object.assign(i,n),this.normalizeQueryParams(e,t,i)),this.router.generate(e,...t,{queryParams:i})}generateURL(e,t,n){if(this.router._initialTransitionStarted)return this._generateURL(e,t,n);try{return this._generateURL(e,t,n)}catch(e){return}}isActiveForRoute(e,t,n,i){let s=this.router._routerMicrolib.recognizer.handlersFor(n),r=s[s.length-1].handler,o=function(e,t){let n=0;for(let i=0;io&&(n=r),i.isActiveIntent(n,e,t)}}a.reopen({targetState:(0,s.readOnly)("router.targetState"),currentState:(0,s.readOnly)("router.currentState"),currentRouteName:(0,s.readOnly)("router.currentRouteName"),currentPath:(0,s.readOnly)("router.currentPath")})},85281:(e,t,n)=>{"use strict";n.r(t),n.d(t,{calculateCacheKey:()=>c,extractRouteArgs:()=>a,getActiveTargetName:()=>l,normalizeControllerQueryParams:()=>d,prefixRouteNameArg:()=>h,resemblesURL:()=>p,shallowEqual:()=>m,stashParamNames:()=>u}),n(24086),n(32581),n(38389),n(5268),n(55336),n(60465);var i=n(47552);n(24691);var s=n(83285);n(18421),n(52352),n(65828);var r=n(62499);let o=/\./g;function a(e){let t,n;let i=(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}(i)?t={}:(e.pop(),t=i.queryParams),"string"==typeof e[0]&&(n=e.shift()),{routeName:n,models:e,queryParams:t}}function l(e){let t=e.activeTransition?e.activeTransition[r.S].routeInfos:e.state.routeInfos;return t[t.length-1].name}function u(e,t){let n;if(t._namesStashed)return;let i=t[t.length-1].name,s=e._routerMicrolib.recognizer.handlersFor(i);for(let e=0;e1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,s="";for(let r of t){let t,o=function(e,t){let n=e.split("."),i="";for(let e=0;e{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(70001);n(38389);class s extends i.default{updateCallback;initState(){this._super(...arguments);let{rootURL:e}=this}getURL(){let{path:e,rootURL:t}=this;return t=t.replace(/\/$/,""),e.replace(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}}s.reopen({path:"",rootURL:"/"})},85013:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>E,defaultSerialize:()=>F,getFullQueryParams:()=>D,getRenderState:()=>A,hasDefaultSerialize:()=>N});var i=n(64579),s=n(47552);n(24086),n(38389),n(55336);var r=n(32581),o=n(79133);n(5268),n(60465);var a=n(8387),l=n(43082),u=n(24691),c=n(83285),d=n(70001),p=n(4476),h=n(89711);n(10441),n(13385),n(52149);var m=n(27784);n(98880),n(92082),n(54401),n(52681);var g=n(14829);n(82806);var f=n(76885);n(18421);var _=n(53067),y=n(42433);n(52352),n(65828);var b=n(62499),w=n(44416),k=n(85281),x=n(31359),T=n(22325);let S=Symbol("render"),C=Symbol("render-state");class E extends d.default.extend(m.default,p.default){static isRouteFactory=!0;context={};_bucketCache;_internalName;_names;_router;constructor(e){if(super(e),e){let t=e.lookup("router:main"),n=e.lookup((0,i.p)`-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[i]=t;"object"==typeof e&&i in e?n[i]=(0,s.g)(e,i):/_id$/.test(i)?n[i]=(0,s.g)(e,"id"):(0,o.i)(e)&&(n[i]=(0,s.g)(e,i))}else n=(0,l.g)(e,t);return n}_setRouteName(e){this.routeName=e;let t=(0,c.getOwner)(this);this.fullRouteName=M(t,e)}_stashNames(e,t){if(this._names)return;let n=this._names=e._names;n.length||(n=(e=t)&&e._names||[]);let i=(0,s.g)(this,"_qp").qps,r=Array(n.length);for(let t=0;t{let[n,i]=t;return e[n]=i,e},r)}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){let t=(0,s.g)(this,"queryParams");return(0,s.g)(t,e.urlKey)||(0,s.g)(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=(0,s.g)(this,"_qp").states.inactive,this.resetController(n,e,t)}enter(e){this[C]=void 0,this.activate(e),this.trigger("activate",e)}deactivate(e){}activate(e){}intermediateTransitionTo(){for(var e=arguments.length,t=Array(e),n=0;n{if(void 0===(0,s.b)(e,t)){let n=(0,r.l)(e,t);null!==n&&("function"==typeof n.get||"function"==typeof n.set)&&(0,s.d)(e,t,(0,_.dependentKeyCompat)({get:n.get,set:n.set}))}(0,s.v)(e,`${t}.[]`,e,e._qpChanged,!1)})}(i,o.propertyNames),this.controller=i);let u=o.states;if(i._qpDelegate=u.allowOverrides,t){(0,k.stashParamNames)(this._router,t[b.S].routeInfos);let e=this._bucketCache,n=t[b.P];o.propertyNames.forEach(t=>{let s=o.map[t];s.values=n;let r=(0,k.calculateCacheKey)(s.route.fullRouteName,s.parts,s.values),l=e.lookup(r,t,s.undecoratedDefaultValue);(0,a.s)(i,t,l)});let s=I(this,t[b.S]);(0,l.s)(i,s)}this.setupController(i,e,t),this._environment.options.shouldRender&&this[S](),(0,s.I)(!1)}_qpChanged(e,t,n){if(!n)return;let i=this._bucketCache,s=(0,k.calculateCacheKey)(n.route.fullRouteName,n.parts,n.values);i.stash(s,e,t)}beforeModel(e){}afterModel(e,t){}redirect(e,t){}contextDidChange(){this.currentModel=this.context}model(e,t){let n,i,r;let o=(0,s.g)(this,"_qp").map;for(let t in e){if("queryParams"===t||o&&t in o)continue;let s=t.match(/^(.*)_id$/);null!==s&&(n=s[1],r=e[t]),i=!0}if(!n){if(i)return Object.assign({},e);if(t.resolveIndex<1)return;return t[b.S].routeInfos[t.resolveIndex-1].context}return this.findModel(n,r)}deserialize(e,t){return this.model(this._paramsFor(this.routeName,e),t)}findModel(e,t){if(!u.E._NO_IMPLICIT_ROUTE_MODEL)return(0,f.deprecateUntil)(`The implicit model loading behavior for routes is deprecated. Please define an explicit model hook for ${this.fullRouteName}.`,f.DEPRECATIONS.DEPRECATE_IMPLICIT_ROUTE_MODEL),("store"in this?this.store:(0,s.g)(this,"_store")).find(e,t)}setupController(e,t,n){e&&void 0!==t&&(0,a.s)(e,"model",t)}controllerFor(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];let t=(0,c.getOwner)(this),n=t.lookup(`route:${e}`);return n&&n.controllerName&&(e=n.controllerName),t.lookup(`controller:${e}`)}generateController(e){let t=(0,c.getOwner)(this);return(0,w.default)(t,e)}modelFor(e){let t;let n=(0,c.getOwner)(this),i=this._router&&this._router._routerMicrolib?this._router._routerMicrolib.activeTransition:void 0;t=n.routable&&void 0!==i?M(n,e):e;let s=n.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}[C]=(()=>void 0)();[S](){this[C]=function(e){let t=(0,c.getOwner)(e),n=e.routeName,i=t.lookup(`controller:${e.controllerName||n}`),s=e.currentModel,r=t.lookup(`template:${e.templateName||n}`);return{owner:t,into:void 0,outlet:"main",name:n,controller:i,model:s,template:r?.(t)??e._topLevelViewTemplate(t)}}(this),(0,y.once)(this._router,"_setOutlets")}willDestroy(){this.teardownViews()}teardownViews(){this[C]&&(this[C]=void 0,(0,y.once)(this._router,"_setOutlets"))}buildRouteInfoMetadata(){}_paramsFor(e,t){return void 0!==this._router._routerMicrolib.activeTransition?this.paramsFor(e):t}get _store(){let e=(0,c.getOwner)(this);return this.routeName,{find(t,n){let i=e.factoryFor(`model:${t}`);if(i)return(i=i.class).find(n)}}}static #e=(()=>(0,x.a)(this.prototype,"_store",[s.c]))();get _qp(){let e={},t=this.controllerName||this.routeName,n=(0,c.getOwner)(this),i=n.lookup(`controller:${t}`),r=(0,s.g)(this,"queryParams"),o=Object.keys(r).length>0;if(i){let t=(0,s.g)(i,"queryParams")||[];e=function(e,t){let n={},i={defaultValue:!0,type:!0,scope:!0,as:!0};for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&(n[s]={...e[s],...t[s]},i[s]=!0);for(let s in t)Object.prototype.hasOwnProperty.call(t,s)&&!i[s]&&(n[s]={...t[s],...e[s]});return n}((0,k.normalizeControllerQueryParams)(t),r)}else o&&(i=(0,w.default)(n,t),e=r);let a=[],l={},u=[];for(let n in e){let r;if(!Object.prototype.hasOwnProperty.call(e,n)||"unknownProperty"===n||"_super"===n)continue;let o=e[n],c=o.scope||"model";"controller"===c&&(r=[]);let d=o.as||this.serializeQueryParamKey(n),p=(0,s.g)(i,n);p=P(p);let h=o.type||(0,g.default)(p),m=this.serializeQueryParam(p,d,h),f=`${t}:${n}`,_={undecoratedDefaultValue:(0,s.g)(i,n),defaultValue:p,serializedDefaultValue:m,serializedValue:m,type:h,urlKey:d,prop:n,scopedPropertyName:f,controllerName:t,route:this,parts:r,values:null,scope:c};l[n]=l[d]=l[f]=_,a.push(_),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 #n=(()=>(0,x.a)(this.prototype,"_qp",[s.c]))()}function A(e){return e[C]}function D(e,t){if(t.fullQueryParams)return t.fullQueryParams;let n=t.routeInfos.every(e=>e.route),i={...t.queryParams};return e._deserializeQueryParams(t.routeInfos,i),n&&(t.fullQueryParams=i),i}function I(e,t){t.queryParamsFor=t.queryParamsFor||{};let n=e.fullRouteName,i=t.queryParamsFor[n];if(i)return i;let r=D(e._router,t),o=t.queryParamsFor[n]={};for(let t of(0,s.g)(e,"_qp").qps){let e=t.prop in r;o[t.prop]=e?r[t.prop]:P(t.defaultValue)}return o}function P(e){return Array.isArray(e)?(0,h.A)(e.slice()):e}function M(e,t){if(e.routable){let n=e.mountPoint;return"application"===t?n:`${n}.${t}`}return t}let F=E.prototype.serialize;function N(e){return e.serialize===F}E.reopen({mergedProperties:["queryParams"],queryParams:{},templateName:null,controllerName:null,send(){for(var e=arguments.length,t=Array(e),n=0;n{let t=(0,s.g)(e.route,"_qp");e.route.controller._qpDelegate=(0,s.g)(t,"states.active")}),o._qpUpdates.clear()}}})},517:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ROUTER:()=>c,default:()=>p});var i=n(83285),s=n(4476);n(38389),n(24086),n(32581),n(5268);var r=n(55336);n(60465),n(47552),n(24691);var o=n(1724);n(70001),n(134),n(10441),n(13385),n(52149),n(27784),n(98880),n(92082),n(54401),n(52681),n(89711);var a=n(54729);n(11639);var l=n(85281),u=n(31359);let c=Symbol("ROUTER");function d(e,t){return"/"===t?e:e.substring(t.length)}class p extends a.default.extend(s.default){[c];get _router(){let e=this[c];if(void 0!==e)return e;let t=(0,i.getOwner)(this).lookup("router:main");return this[c]=t}willDestroy(){super.willDestroy(),this[c]=void 0}transitionTo(){for(var e=arguments.length,t=Array(e),n=0;n1?t-1:0),i=1;i0){o=Object.assign({},o),this._router._prepareQueryParams(i,s,o,!0);let e=Object.assign({},a.state.queryParams);return this._router._prepareQueryParams(i,s,e,!0),(0,l.shallowEqual)(o,e)}return!0}recognize(e){this._router.setupRouter();let t=d(e,this.rootURL);return this._router._routerMicrolib.recognize(t)}recognizeAndLoad(e){this._router.setupRouter();let t=d(e,this.rootURL);return this._router._routerMicrolib.recognizeAndLoad(t)}refresh(e){if(!e)return this._router._routerMicrolib.refresh();let t=(0,i.getOwner)(this).lookup(`route:${e}`);return this._router._routerMicrolib.refresh(t)}static #e=(()=>(0,u.d)(this.prototype,"currentRouteName",[(0,o.readOnly)("_router.currentRouteName")]))();#g4=(()=>void(0,u.i)(this,"currentRouteName"))();static #n=(()=>(0,u.d)(this.prototype,"currentURL",[(0,o.readOnly)("_router.currentURL")]))();#g7=(()=>void(0,u.i)(this,"currentURL"))();static #i=(()=>(0,u.d)(this.prototype,"location",[(0,o.readOnly)("_router.location")]))();#g9=(()=>void(0,u.i)(this,"location"))();static #l=(()=>(0,u.d)(this.prototype,"rootURL",[(0,o.readOnly)("_router.rootURL")]))();#g5=(()=>void(0,u.i)(this,"rootURL"))();static #u=(()=>(0,u.d)(this.prototype,"currentRoute",[(0,o.readOnly)("_router.currentRoute")]))();#g6=(()=>void(0,u.i)(this,"currentRoute"))()}},11639:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w,triggerEvent:()=>E});var i=n(64579),s=n(70001),r=n(71597),o=n(43883),a=n(2205),l=n(85281),u=n(89711),c=n(47552);n(24086),n(38389),n(55336),n(32581),n(5268),n(60465);var d=n(8387);n(24691);var p=n(14829);n(10441),n(13385),n(52149),n(27784),n(98880),n(92082),n(54401),n(52681);var h=n(4476),m=n(42433),g=n(85013),f=n(36951),_=n(62499);function y(){return this}n(65828),n(18421);let{slice:b}=Array.prototype;class w extends s.default.extend(h.default){_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,i=[];for(let s=1;s{e.setURL(n),(0,d.s)(t,"currentURL",n)})}didTransition(e){t.didTransition(e)}willTransition(e,n){t.willTransition(e,n)}triggerEvent(e,n,i,s){return E.bind(t)(e,n,i,s)}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),(0,m.once)(()=>{t.trigger("routeDidChange",e),t._routerService.trigger("routeDidChange",e)})}transitionDidError(e,n){return e.wasAborted||n.isAborted?(0,_.l)(n):((n.trigger(!1,"error",e.error,n,e.route),t._isErrorHandled(e.error))?(n.rollback(),this.routeDidChange(n)):n.abort(),e.error)}replaceURL(n){e.replaceURL?(0,m.once)(()=>{e.replaceURL(n),(0,d.s)(t,"currentURL",n)}):this.updateURL(n)}}let o=this._routerMicrolib=new s,a=this.constructor.dslCallbacks||[y],l=this._buildDSL();l.route("application",{path:"/",resetNamespace:!0,overrideNameAssertion:!0},function(){for(let e=0;en.factoryFor(`route-map:${e}`),addRouteForEngine(e,n){t._engineInfoByRoute[e]||(t._engineInfoByRoute[e]=n)}})}_resetQueuedQueryParameterChanges(){this._queuedQPChanges={}}_hasModuleBasedResolver(){let e=(0,r.getOwner)(this);return!!(0,c.g)(e,"application.__registry__.resolver.moduleBasedResolver")}startRouting(){if(this.setupRouter()){let e=(0,c.g)(this,"initialURL");void 0===e&&(e=(0,c.g)(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=(0,c.g)(this,"location");return!(0,c.g)(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 i of e){let e=i.route,s=(0,g.getRenderState)(e);if(s){let e={render:s,outlets:{main:void 0}};n?n.outlets.main=e:t=e,n=e}else break}if(null!==t){if(this._toplevelView)this._toplevelView.setOutletState(t);else{let e=(0,r.getOwner)(this),n=e.factoryFor("view:-outlet"),i=e.lookup("application:main"),s=e.lookup("-environment:main"),o=e.lookup("template:-outlet");this._toplevelView=n.create({environment:s,template:o,application:i}),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 I(n,this),n}transitionTo(){for(var e=arguments.length,t=Array(e),n=0;n1?t-1:0),i=1;i1?t-1:0),i=1;i1?t-1:0),i=1;i{if(i)delete t[e],t[i.urlKey]=i.route.serializeQueryParam(n,i.urlKey,i.type);else{if(void 0===n)return;t[e]=this._serializeQueryParam(n,(0,p.default)(n))}})}_serializeQueryParam(e,t){return null==e?e:"array"===t?JSON.stringify(e):`${e}`}_deserializeQueryParams(e,t){P(this,e,t,(e,n,i)=>{i&&(delete t[e],t[i.prop]=i.route.deserializeQueryParam(n,i.urlKey,i.type))})}_deserializeQueryParam(e,t){if(null==e);else if("boolean"===t)return"true"===e;else if("number"===t)return Number(e).valueOf();else if("array"===t)return(0,u.A)(JSON.parse(e));return e}_pruneDefaultQueryParamValues(e,t){let n=this._queryParamsFor(e);for(let e in t){let i=n.map[e];i&&i.serializedDefaultValue===t[e]&&delete t[e]}}_doTransition(e,t,n,i){let s=e||(0,l.getActiveTargetName)(this._routerMicrolib);this._initialTransitionStarted=!0;let r={};this._processActiveTransitionQueryParams(s,t,r,n),Object.assign(r,n),this._prepareQueryParams(s,t,r,!!i);let o=this._routerMicrolib.transitionTo(s,...t,{queryParams:r});return I(o,this),o}_processActiveTransitionQueryParams(e,t,n,i){if(!this._routerMicrolib.activeTransition)return;let s={},r=this._qpUpdates,o=(0,g.getFullQueryParams)(this,this._routerMicrolib.activeTransition[_.S]);for(let e in o)r.has(e)||(s[e]=o[e]);this._fullyScopeQueryParams(e,t,i),this._fullyScopeQueryParams(e,t,s),Object.assign(n,s)}_prepareQueryParams(e,t,n,i){let s=A(this,e,t);this._hydrateUnsuppliedQueryParams(s,n,!!i),this._serializeQueryParams(s.routeInfos,n),i||this._pruneDefaultQueryParamValues(s.routeInfos,n)}_getQPMeta(e){let t=e.route;return t&&(0,c.g)(t,"_qp")}_queryParamsFor(e){let t,n=e.length,i=e[n-1].name,s=this._qpCache[i];if(void 0!==s)return s;let r=!0,o={},a=[];for(let n of e){if(!(t=this._getQPMeta(n))){r=!1;continue}for(let e of t.qps)a.push(e);Object.assign(o,t.map)}let l={qps:a,map:o};return r&&(this._qpCache[i]=l),l}_fullyScopeQueryParams(e,t,n){let i;for(let s of A(this,e,t).routeInfos)if(i=this._getQPMeta(s))for(let e of i.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 i,s,r,o=e.routeInfos,a=this._bucketCache;for(let n of o)if(i=this._getQPMeta(n))for(let n=0,o=i.qps.length;n=0;--n){let i=e[n],s=i.route;if(void 0!==s&&!0!==t(s,i))return}}let x={willResolveModel(e,t,n){this._scheduleLoadingEvent(t,n)},error(e,t,n){let i=this,s=e[e.length-1];k(e,(e,n)=>{if(n!==s){let n=S(e,"error");if(n)return i._markErrorAsHandled(t),i.intermediateTransitionTo(n,t),!1}let r=T(e,"error");return!r||(i._markErrorAsHandled(t),i.intermediateTransitionTo(r,t),!1)}),function(e,t){let n,i=[];n=e&&"object"==typeof e&&"object"==typeof e.errorThrown?e.errorThrown:e,t&&i.push(t),n&&(n.message&&i.push(n.message),n.stack&&i.push(n.stack),"string"==typeof n&&i.push(n)),console.error(...i)}(t,`Error while processing route: ${n.targetName}`)},loading(e,t){let n=this,i=e[e.length-1];k(e,(e,s)=>{if(s!==i){let t=S(e,"loading");if(t)return n.intermediateTransitionTo(t),!1}let r=T(e,"loading");return r?(n.intermediateTransitionTo(r),!1):t.pivotHandler!==e})}};function T(e,t){let n=(0,r.getOwner)(e),{routeName:i,fullRouteName:s,_router:o}=e,a=`${i}_${t}`,l=`${s}_${t}`;return C(n,o,a,l)?l:""}function S(e,t){let n=(0,r.getOwner)(e),{routeName:i,fullRouteName:s,_router:o}=e,a="application"===i?t:`${i}.${t}`,l="application"===s?t:`${s}.${t}`;return C(n,o,a,l)?l:""}function C(e,t,n,i){let s=t.hasRoute(i),r=e.factoryFor(`template:${n}`)||e.factoryFor(`route:${n}`);return s&&r}function E(e,t,n,i){let s,r;if(!e){if(t)return;throw 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 o=!1;for(let t=e.length-1;t>=0;t--)if(r=(s=e[t].route)&&s.actions&&s.actions[n]){if(!0===r.apply(s,i))o=!0;else{"error"===n&&s._router._markErrorAsHandled(i[0]);return}}let a=x[n];if(a){a.call(this,e,...i);return}if(!o&&!t)throw 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 A(e,t,n){let i=e._routerMicrolib.applyIntent(t,n),{routeInfos:s,params:r}=i;for(let e of s)e.isResolved?r[e.name]=e.params:r[e.name]=e.serialize(e.context);return i}function D(e){let t=e._routerMicrolib.currentRouteInfos;if(0===t.length)return;let n=w._routePath(t),i=t[t.length-1].name,s=e.location.getURL();(0,d.s)(e,"currentPath",n),(0,d.s)(e,"currentRouteName",i),(0,d.s)(e,"currentURL",s)}function I(e,t){let n=new a.default(t,t._routerMicrolib,e[_.S]);t.currentState||t.set("currentState",n),t.set("targetState",n),e.promise=e.catch(e=>{if(t._isErrorHandled(e))t._clearHandledError(e);else throw e},"Transition Error")}function P(e,t,n,i){let s=e._queryParamsFor(t);for(let e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;let t=n[e],r=s.map[e];i(e,t,r)}}w.reopen({didTransition:function(e){D(this),this._cancelSlowTransitionTimer(),this.notifyPropertyChange("url"),this.set("currentState",this.targetState)},willTransition:function(e,t){},rootURL:"/",location:"hash",url:(0,c.c)(function(){let e=(0,c.g)(this,"location");if("string"!=typeof e)return e.getURL()})})},42433:(e,t,n)=>{"use strict";n.r(t),n.d(t,{_backburner:()=>c,_cancelTimers:()=>y,_getCurrentRunLoop:()=>a,_hasScheduledTimers:()=>_,_queues:()=>u,_rsvpErrorQueue:()=>l,begin:()=>m,bind:()=>h,cancel:()=>T,debounce:()=>S,end:()=>g,join:()=>p,later:()=>b,next:()=>x,once:()=>w,run:()=>d,schedule:()=>f,scheduleOnce:()=>k,throttle:()=>C}),n(38389);var i=n(68106);n(24086),n(32581),n(5268),n(55336),n(60465);var s=n(47552);n(24691);var r=n(21176);let o=null;function a(){return o}let l=`${Math.random()}${Date.now()}`.replace(".",""),u=["actions","routerTransitions","render","afterRender","destroy",l],c=new r.default(u,{defaultQueue:"actions",onBegin:function(e){o=e},onEnd:function(e,t){o=t,(0,s.I)(f)},onErrorTarget:i.onErrorTarget,onErrorMethod:"onerror",flush:function(e,t){("render"===e||e===l)&&(0,s.I)(f),t()}});function d(){return c.run(...arguments)}function p(e,t){for(var n=arguments.length,i=Array(n>2?n-2:0),s=2;s{"use strict";n.r(t),n.d(t,{default:()=>a,inject:()=>r,service:()=>o});var i=n(30778);n(24086),n(32581),n(38389),n(5268),n(55336),n(60465);var s=n(47552);function r(){for(var e=arguments.length,t=Array(e),n=0;n{"use strict";let i,s;n.r(t),n.d(t,{__emberTemplateCompiler:()=>i,__registerTemplateCompiler:()=>o,compileTemplate:()=>r,precompileTemplate:()=>s});let r=function(){if(!i)throw Error("Attempted to call `compileTemplate` without first loading the runtime template compiler.");return i.compile(...arguments)};function o(e){i=e}},82739:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createTemplateFactory:()=>i.templateFactory});var i=n(10010)},35804:(e,t,n)=>{"use strict";n.r(t),n.d(t,{htmlSafe:()=>i.a,isHTMLSafe:()=>i.i}),n(10010);var i=n(11676);n(64579),n(38389),n(95374),n(42433),n(29067),n(55336),n(60465)},19353:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i.default}),n(12372);var i=n(44326)},64014:(e,t,n)=>{"use strict";let i,s,r,o,a,l;n.r(t),n.d(t,{_impl:()=>l,registerAsyncHelper:()=>i,registerHelper:()=>s,registerTestImplementation:()=>c,registerWaiter:()=>r,unregisterHelper:()=>o,unregisterWaiter:()=>a});let u=()=>{throw Error("Attempted to use test utilities, but `ember-testing` was not included")};function c(e){let{Test:t}=e;i=t.registerAsyncHelper,s=t.registerHelper,r=t.registerWaiter,o=t.unregisterHelper,a=t.unregisterWaiter,l=e}i=u,s=u,r=u,o=u,a=u},97355:(e,t,n)=>{"use strict";n.r(t),n.d(t,{compare:()=>u.default,isBlank:()=>s.default,isEmpty:()=>r.default,isEqual:()=>a.default,isNone:()=>i.default,isPresent:()=>o.default,typeOf:()=>l.default});var i=n(13816),s=n(98106),r=n(71121),o=n(70003),a=n(88702),l=n(14829),u=n(29732)},29732:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>function e(t,n){if(t===n)return 0;let s=(0,i.default)(t),l=(0,i.default)(n);if("instance"===s&&a(t)&&t.constructor.compare)return t.constructor.compare(t,n);if("instance"===l&&a(n)&&n.constructor.compare)return -1*n.constructor.compare(n,t);let u=o(r[s],r[l]);if(0!==u)return u;switch(s){case"boolean":return o(Number(t),Number(n));case"number":return o(t,n);case"string":return o(t.localeCompare(n),0);case"array":{let i=t.length,s=n.length,r=Math.min(i,s);for(let i=0;i{"use strict";function i(e,t){return e&&"function"==typeof e.isEqual?e.isEqual(t):e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():e===t}n.r(t),n.d(t,{default:()=>i})},98106:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(71121);function s(e){return(0,i.default)(e)||"string"==typeof e&&!1===/\S/.test(e)}},71121:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s}),n(70001),n(24086),n(32581),n(38389),n(5268),n(55336),n(60465);var i=n(47552);function s(e){if(null==e)return!0;if(!(0,i.h)(e)&&"number"==typeof e.size)return!e.size;if("object"==typeof e){let t=(0,i.g)(e,"size");if("number"==typeof t)return!t;let n=(0,i.g)(e,"length");if("number"==typeof n)return!n}return"number"==typeof e.length&&"function"!=typeof e&&!e.length}n(24691)},13816:(e,t,n)=>{"use strict";function i(e){return null==e}n.r(t),n.d(t,{default:()=>i})},70003:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(98106);function s(e){return!(0,i.default)(e)}},14829:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var i=n(134);let s={"[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:r}=Object.prototype;function o(e){if(null===e)return"null";if(void 0===e)return"undefined";let t=s[r.call(e)]||"object";return"function"===t?i.default.detect(e)&&(t="class"):"object"===t&&(e instanceof Error?t="error":e instanceof i.default?t="instance":e instanceof Date&&(t="date")),t}},84754:(e,t,n)=>{"use strict";n.r(t),n.d(t,{VERSION:()=>i.default});var i=n(49861)},9749:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CheckArray:()=>C,CheckBlockSymbolTable:()=>z,CheckBoolean:()=>F,CheckDict:()=>E,CheckDocumentFragment:()=>H,CheckElement:()=>q,CheckFunction:()=>P,CheckHandle:()=>N,CheckInstanceof:()=>k,CheckInterface:()=>S,CheckMaybe:()=>T,CheckNode:()=>V,CheckNumber:()=>M,CheckObject:()=>j,CheckOption:()=>x,CheckOr:()=>B,CheckPrimitive:()=>I,CheckProgramSymbolTable:()=>$,CheckSafeString:()=>U,CheckString:()=>O,CheckUndefined:()=>L,CheckUnknown:()=>R,META_KIND:()=>f,OPERAND_TYPES:()=>l,buildEnum:()=>m,buildMetas:()=>y,buildSingleMeta:()=>_,check:()=>A,debug:()=>a,debugSlice:()=>r,logOpcode:()=>o,normalize:()=>u,normalizeAll:()=>p,normalizeParsed:()=>h,opcodeMetadata:()=>s,recordStackSize:()=>D,strip:()=>g,wrap:()=>w});var i=n(14247);function s(e,t){return null}function r(e,t,n){}function o(e,t){}function a(e,t,n){}Array(i.Op.Size).fill(null),Array(i.Op.Size).fill(null);let l=["u32","i32","owner","handle","str","option-str","array","str-array","bool","primitive","register","unknown","symbol-table","scope"];function u(e,t){let n;if(void 0===t.format)throw Error(`Missing format in ${JSON.stringify(t)}`);n=Array.isArray(t.format)?t.format[0]:t.format;let i=Array.isArray(t.format)?function(e){if(!Array.isArray(e))throw Error(`Expected operands array, got ${JSON.stringify(e)}`);return e.map(d)}(t.format.slice(1)):[];return{name:n,mnemonic:e,before:null,stackChange:function(e){if(void 0===e)return 0;let t=e[0],n=e[1];return c(t)||c(n)?null:n.length-t.length}(t["operand-stack"]),ops:i,operands:i.length,check:!0!==t.skip}}function c(e){if(!Array.isArray(e))throw Error(`Unexpected stack entry: ${JSON.stringify(e)}`);return e.some(e=>"..."===e.slice(-3))}function d(e){let[t,n]=e.split(":");if(-1!==l.indexOf(n))return{name:t,type:n};throw Error(`Expected operand, found ${JSON.stringify(e)}`)}function p(e){return{machine:h(e.machine),syscall:h(e.syscall)}}function h(e){let t=Object.create(null);for(let[n,i]of Object.entries(e))t[n]=u(n,i);return t}function m(e,t,n,i){let s,r=[`export enum ${e} {`];return Object.values(t).forEach((e,t)=>{r.push(` ${e.name} = ${n+t},`),s=t}),r.push(` Size = ${s+n+1},`),r.push("}"),{enumString:r.join("\n"),predicate:i?g`
export function is${e}(value: number): value is ${e} {
return value >= ${n} && value <= ${i};
}
`:g`
export function is${e}(value: number): value is ${e} {
return value >= ${n};
}
`}}function g(e){let t="";for(var n=arguments.length,i=Array(n>1?n-1:0),s=1;se(t,n)).join(", ")}]`;let i=["{"];for(let s of Object.keys(t))i.push(`${" ".repeat(n+2)}${s}: ${e(t[s],n+2)},`);return i.push(`${" ".repeat(n)}}`),i.join("\n")}(t[n],0)};`}function y(e,t){let n=[];for(let i of Object.keys(t))n.push(_(e,t,i));return n.join("\n\n")}class b{validate(e){return!0}expected(){return""}}function w(e){return new b}function k(e){return new b}function x(e){return new b}function T(e){return new b}function S(e){return new b}function C(e){return new b}function E(e){return new b}function A(e,t){return arguments.length>2&&void 0!==arguments[2]&&arguments[2],e}function D(e){}let I=new b,P=new b,M=new b,F=new b,N=new b,O=new b,L=new b,R=new b,U=new b,j=new b;function B(e,t){return new b}let z=new b,$=new b,q=new b,H=new b,V=new b},5268:(e,t,n)=>{"use strict";n.r(t),n.d(t,{_hasDestroyableChildren:()=>_,assertDestroyablesDestroyed:()=>o,associateDestroyableChild:()=>p,destroy:()=>g,destroyChildren:()=>f,enableDestroyableTracking:()=>r,isDestroyed:()=>b,isDestroying:()=>y,registerDestructor:()=>h,unregisterDestructor:()=>m});var i=n(24007);n(58746);var s=function(e){return e[e.Live=0]="Live",e[e.Destroying=1]="Destroying",e[e.Destroyed=2]="Destroyed",e}(s||{});let r,o,a=new WeakMap;function l(e,t){return null===e?t:Array.isArray(e)?(e.push(t),e):[e,t]}function u(e,t){Array.isArray(e)?e.forEach(t):null!==e&&t(e)}function c(e,t,n){if(Array.isArray(e)&&e.length>1){let n=e.indexOf(t);return e.splice(n,1),e}return null}function d(e){let t=a.get(e);return void 0===t&&(t={parents:null,children:null,eagerDestructors:null,destructors:null,state:s.Live},a.set(e,t)),t}function p(e,t){let n=d(e),i=d(t);return n.children=l(n.children,t),i.parents=l(i.parents,e),t}function h(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=d(e),s=!0===n?"eagerDestructors":"destructors";return i[s]=l(i[s],t),t}function m(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=d(e),s=!0===n?"eagerDestructors":"destructors";i[s]=c(i[s],t,!1)}function g(e){let t=d(e);if(t.state>=s.Destroying)return;let{parents:n,children:r,eagerDestructors:o,destructors:a}=t;t.state=s.Destroying,u(r,g),u(o,t=>t(e)),u(a,t=>(0,i.scheduleDestroy)(e,t)),(0,i.scheduleDestroyed)(()=>{u(n,t=>(function(e,t){let n=d(t);n.state===s.Live&&(n.children=c(n.children,e,!1))})(e,t)),t.state=s.Destroyed})}function f(e){let{children:t}=d(e);u(t,g)}function _(e){let t=a.get(e);return void 0!==t&&null!==t.children}function y(e){let t=a.get(e);return void 0!==t&&t.state>=s.Destroying}function b(e){let t=a.get(e);return void 0!==t&&t.state>=s.Destroyed}},96714:(e,t,n)=>{"use strict";n.r(t),n.d(t,{InstructionEncoderImpl:()=>s});var i=n(14247);class s{constructor(e){this.buffer=e}size=0;encode(e,t){for(var n=arguments.length,s=Array(n>2?n-2:0),r=2;ri.TYPE_SIZE)throw Error(`Opcode type over 8-bits. Got ${e}.`);let o=e|t|arguments.length-2<{"use strict";n.r(t),n.d(t,{CI:()=>s,DEBUG:()=>i});let i=!1,s=!1},24007:(e,t,n)=>{"use strict";n.r(t),n.d(t,{assert:()=>p,assertGlobalContextWasSet:()=>m,default:()=>_,deprecate:()=>h,getPath:()=>u,getProp:()=>a,scheduleDestroy:()=>i,scheduleDestroyed:()=>s,scheduleRevalidate:()=>f,setPath:()=>c,setProp:()=>l,testOverrideGlobalContext:()=>g,toBool:()=>o,toIterator:()=>r,warnIfStyleNotTrusted:()=>d});let i,s,r,o,a,l,u,c,d,p,h,m,g,f=()=>{};function _(e){f=e.scheduleRevalidate,i=e.scheduleDestroy,s=e.scheduleDestroyed,r=e.toIterator,o=e.toBool,a=e.getProp,l=e.setProp,u=e.getPath,c=e.setPath,d=e.warnIfStyleNotTrusted,p=e.assert,h=e.deprecate}},60465:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CustomComponentManager:()=>K,CustomHelperManager:()=>S,CustomModifierManager:()=>Q,capabilityFlagsFrom:()=>_,clearTemplateOverrides:()=>er,componentCapabilities:()=>H,getComponentTemplate:()=>es,getCustomTagFor:()=>u,getInternalComponentManager:()=>j,getInternalHelperManager:()=>R,getInternalModifierManager:()=>N,hasCapability:()=>w,hasDestroyable:()=>T,hasInternalComponentManager:()=>B,hasInternalHelperManager:()=>z,hasInternalModifierManager:()=>$,hasValue:()=>x,helperCapabilities:()=>k,managerHasCapability:()=>b,modifierCapabilities:()=>Y,setComponentManager:()=>J,setComponentTemplate:()=>ei,setCustomTagFor:()=>c,setHelperManager:()=>Z,setInternalComponentManager:()=>U,setInternalHelperManager:()=>O,setInternalModifierManager:()=>F,setModifierManager:()=>X});var i=n(58746),s=n(5268),r=n(29067),o=n(55336),a=n(14247);let l=new WeakMap;function u(e){return l.get(e)}function c(e,t){l.set(e,t)}function d(e){if("symbol"==typeof e)return null;let t=Number(e);return isNaN(t)?null:t%1==0?t:null}class p{constructor(e){this.named=e}get(e,t){let n=this.named[t];if(void 0!==n)return(0,r.valueForRef)(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 h{constructor(e){this.positional=e}get(e,t){let{positional:n}=this;if("length"===t)return n.length;let i=d(t);return null!==i&&i{let{named:n,positional:i}=e,s=new p(n),a=new h(i),l=new Proxy(Object.create(null),s),u=new Proxy([],a);return c(l,(e,t)=>(function(e,t){return(0,o.track)(()=>{t in e&&(0,r.valueForRef)(e[t])})})(n,t)),c(u,(e,t)=>(function(e,t){return(0,o.track)(()=>{"[]"===t&&e.forEach(r.valueForRef);let n=d(t);null!==n&&n1&&void 0!==arguments[1]?arguments[1]:{};return g({hasValue:!!t.hasValue,hasDestroyable:!!t.hasDestroyable,hasScheduledEffect:!!t.hasScheduledEffect})}function x(e){return e.capabilities.hasValue}function T(e){return e.capabilities.hasDestroyable}class S{constructor(e){this.factory=e}helperManagerDelegates=(()=>new WeakMap)();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 i=this.getDelegateFor(n),o=m(t,"helper"),a=i.createHelper(e,o);if(x(i)){let e=(0,r.createComputeRef)(()=>i.getValue(a),null,!1);return T(i)&&(0,s.associateDestroyableChild)(e,i.getDestroyable(a)),e}if(T(i)){let e=(0,r.createConstRef)(void 0,!1);return(0,s.associateDestroyableChild)(e,i.getDestroyable(a)),e}return r.UNDEFINED_REFERENCE}}}class C{capabilities=(()=>g({hasValue:!0,hasDestroyable:!1,hasScheduledEffect:!1}))();createHelper(e,t){return{fn:e,args:t}}getValue(e){let{fn:t,args:n}=e;return Object.keys(n.named).length>0?t(...n.positional,n.named):t(...n.positional)}getDebugName(e){return e.name?`(helper function ${e.name})`:"(anonymous helper function)"}}let E=new WeakMap,A=new WeakMap,D=new WeakMap,I=Object.getPrototypeOf;function P(e,t,n){return e.set(n,t),n}function M(e,t){let n=t;for(;null!=n;){let t=e.get(n);if(void 0!==t)return t;n=I(n)}}function F(e,t){return P(A,e,t)}function N(e,t){let n=M(A,e);return void 0===n&&!0===t?null:n}function O(e,t){return P(D,e,t)}let L=new S(()=>new C);function R(e,t){let n=M(D,e);return(void 0===n&&"function"==typeof e&&(n=L),n)?n:null}function U(e,t){return P(E,e,t)}function j(e,t){let n=M(E,e);return void 0===n&&!0===t?null:n}function B(e){return void 0!==M(E,e)}function z(e){return function(e){return"function"==typeof e}(e)||void 0!==M(D,e)}function $(e){return void 0!==M(A,e)}let q={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 H(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!!t.updateHook;return g({asyncLifeCycleCallbacks:!!t.asyncLifecycleCallbacks,destructor:!!t.destructor,updateHook:n})}function V(e){return e.capabilities.asyncLifeCycleCallbacks}function W(e){return e.capabilities.updateHook}class K{componentManagerDelegates=(()=>new WeakMap)();constructor(e){this.factory=e}getDelegateFor(e){let{componentManagerDelegates:t}=this,n=t.get(e);if(void 0===n){let{factory:i}=this;n=i(e),t.set(e,n)}return n}create(e,t,n){let i=this.getDelegateFor(e),s=m(n.capture(),"component");return new G(i.createComponent(t,s),i,s)}getDebugName(e){return"function"==typeof e?e.name:e.toString()}update(e){let{delegate:t}=e;if(W(t)){let{component:n,args:i}=e;t.updateComponent(n,i)}}didCreate(e){let{component:t,delegate:n}=e;V(n)&&n.didCreateComponent(t)}didUpdate(e){let{component:t,delegate:n}=e;(function(e){return V(e)&&W(e)})(n)&&n.didUpdateComponent(t)}didRenderLayout(){}didUpdateLayout(){}getSelf(e){let{component:t,delegate:n}=e;return(0,r.createConstRef)(n.getContext(t),"this")}getDestroyable(e){let{delegate:t}=e;if(function(e){return e.capabilities.destructor}(t)){let{component:n}=e;return(0,s.registerDestructor)(e,()=>t.destroyComponent(n)),e}return null}getCapabilities(){return q}}class G{constructor(e,t,n){this.component=e,this.delegate=t,this.args=n}}function Y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return g({disableAutoTracking:!!t.disableAutoTracking})}class Q{componentManagerDelegates=(()=>new WeakMap)();constructor(e){this.factory=e}getDelegateFor(e){let{componentManagerDelegates:t}=this,n=t.get(e);if(void 0===n){let{factory:i}=this;n=i(e),t.set(e,n)}return n}create(e,t,n,i){let r,a=this.getDelegateFor(e),l=m(i,"modifier"),u=a.createModifier(n,l);return r={tag:(0,o.createUpdatableTag)(),element:t,delegate:a,args:l,modifier:u},(0,s.registerDestructor)(r,()=>a.destroyModifier(u,l)),r}getDebugName(e){return"function"==typeof e?e.name||e.toString():""}getDebugInstance(e){let{modifier:t}=e;return t}getTag(e){let{tag:t}=e;return t}install(e){let{element:t,args:n,modifier:s,delegate:r}=e,{capabilities:a}=r;!0===a.disableAutoTracking?(0,o.untrack)(()=>r.installModifier(s,(0,i.castToBrowser)(t,"ELEMENT"),n)):r.installModifier(s,(0,i.castToBrowser)(t,"ELEMENT"),n)}update(e){let{args:t,modifier:n,delegate:i}=e,{capabilities:s}=i;!0===s.disableAutoTracking?(0,o.untrack)(()=>i.updateModifier(n,t)):i.updateModifier(n,t)}getDestroyable(e){return e}}function J(e,t){return U(new K(e),t)}function X(e,t){return F(new Q(e),t)}function Z(e,t){return O(new S(e),t)}let ee=new WeakMap,et=new WeakMap,en=Object.getPrototypeOf;function ei(e,t){return et.has(t)?ee.set(t,e):et.set(t,e),t}function es(e){let t=e;for(;null!==t;){let e=ee.get(t)??et.get(t);if(void 0!==e)return e;t=en(t)}}function er(){ee=new WeakMap}},61274:(e,t,n)=>{"use strict";n.r(t),n.d(t,{NodeDOMTreeConstruction:()=>r,serializeBuilder:()=>l});var i=n(95374),s=n(30255);class r extends i.DOMTreeConstruction{constructor(e){super(e||(0,s.default)())}setupUselessElement(){}insertHTMLBefore(e,t,n){let s=this.document.createRawHTMLSection(n);return e.insertBefore(s,t),new i.ConcreteBounds(e,s,s)}createElement(e){return this.document.createElement(e)}setAttribute(e,t,n){e.setAttribute(t,n)}}let o=new WeakMap;class a extends i.NewElementBuilder{serializeBlockDepth=0;__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=`${e}`)}""===e?this.__appendComment("% %"):super.__appendHTML(e);let s=this.__appendComment("%glmr%");return new i.ConcreteBounds(this.element,n,s)}__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 o.has(this.element)&&(o.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"),o.set(this.constructing,!0),this.flushElement(null)),super.openElement(e)}pushRemoteElement(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,{dom:i}=this,s=i.createElement("script");return s.setAttribute("glmr",t),i.insertBefore(e,s,n),super.pushRemoteElement(e,t,n)}}function l(e,t){return a.forInitialRender(e,t)}},10010:(e,t,n)=>{"use strict";let i;n.r(t),n.d(t,{CompileTimeCompilationContextImpl:()=>er,DEFAULT_CAPABILITIES:()=>e_,EMPTY_BLOCKS:()=>I,MINIMAL_CAPABILITIES:()=>ey,StdLib:()=>A,WrappedBuilder:()=>eb,compilable:()=>eg,compileStatements:()=>ef,compileStd:()=>en,debugCompiler:()=>i,invokeStaticBlock:()=>V,invokeStaticBlockWithStack:()=>W,meta:()=>$,programCompilationContext:()=>eo,templateCacheCounters:()=>ew,templateCompilationContext:()=>ea,templateFactory:()=>ek});var s=n(58746),r=n(14247),o=n(96714),a=n(93549),l=n(60465);function u(e){return t=>{if(!function(e){return Array.isArray(e)&&2===e.length}(t))return!1;let n=t[0];return n===a.SexpOpcodes.GetStrictKeyword||n===a.SexpOpcodes.GetLexicalSymbol||n===e}}Array(r.Op.Size).fill(null),Array(r.Op.Size).fill(null);let c=u(a.SexpOpcodes.GetFreeAsComponentHead),d=u(a.SexpOpcodes.GetFreeAsModifierHead),p=u(a.SexpOpcodes.GetFreeAsHelperHead),h=u(a.SexpOpcodes.GetFreeAsComponentOrHelperHead);function m(e){return e}function g(e,t,n,i,r){let{upvars:o}=m(n),a=(0,s.unwrap)(o[e[1]]),l=t.lookupBuiltInHelper(a);return i.helper(l,a)}let f={Modifier:1003,Component:1004,Helper:1005,ComponentOrHelper:1007,OptionalComponentOrHelper:1008,Local:1010,TemplateLocal:1011},_={Label:1e3,StartLabels:1001,StopLabels:1002,Start:1e3},y={Label:1,IsStrictMode:2,DebugSymbols:3,Block:4,StdLib:5,NonSmallInt:6,SymbolTable:7,Layout:8};function b(e){return{type:y.Label,value:e}}function w(){return{type:y.IsStrictMode,value:void 0}}function k(e){return{type:y.StdLib,value:e}}function x(e){return{type:y.SymbolTable,value:e}}function T(e){return{type:y.Layout,value:e}}class S{labels=(()=>(0,s.dict)())();targets=[];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(let{at:i,target:r}of t){let t=n[r]-i;(0,s.assert)(-1===e.getbyaddr(i),"Expected heap to contain a placeholder, but it did not"),e.setbyaddr(i,t)}}}function C(e,t,n,i,r){if(function(e){return e<_.Start}(r[0])){let[n,...i]=r;e.push(t,n,...i)}else switch(r[0]){case _.Label:return e.label(r[1]);case _.StartLabels:return e.startLabels();case _.StopLabels:return e.stopLabels();case f.Component:return function(e,t,n,i){let[,r,o]=i;if((0,s.assert)(c(r),"Attempted to resolve a component with incorrect opcode"),r[0]===a.SexpOpcodes.GetLexicalSymbol){let{scopeValues:e,owner:i}=n,a=(0,s.expect)(e,"BUG: scopeValues must exist if template symbol is used")[r[1]];o(t.component(a,(0,s.expect)(i,"BUG: expected owner when resolving component definition")))}else{let{upvars:i,owner:a}=m(n),l=(0,s.unwrap)(i[r[1]]),u=e.lookupComponent(l,a);o(t.resolvedComponent(u,l))}}(n,t,i,r);case f.Modifier:return function(e,t,n,i){let[,r,o]=i;(0,s.assert)(d(r),"Attempted to resolve a modifier with incorrect opcode");let l=r[0];if(l===a.SexpOpcodes.GetLexicalSymbol){let{scopeValues:e}=n,i=(0,s.expect)(e,"BUG: scopeValues must exist if template symbol is used")[r[1]];o(t.modifier(i))}else if(l===a.SexpOpcodes.GetStrictKeyword){let{upvars:i}=m(n),a=(0,s.unwrap)(i[r[1]]),l=e.lookupBuiltInModifier(a);o(t.modifier(l,a))}else{let{upvars:i,owner:a}=m(n),l=(0,s.unwrap)(i[r[1]]),u=e.lookupModifier(l,a);o(t.modifier(u,l))}}(n,t,i,r);case f.Helper:return function(e,t,n,i){let[,r,o]=i;(0,s.assert)(p(r),"Attempted to resolve a helper with incorrect opcode");let l=r[0];if(l===a.SexpOpcodes.GetLexicalSymbol){let{scopeValues:e}=n,i=(0,s.expect)(e,"BUG: scopeValues must exist if template symbol is used")[r[1]];o(t.helper(i))}else if(l===a.SexpOpcodes.GetStrictKeyword)o(g(r,e,n,t,"helper"));else{let{upvars:i,owner:a}=m(n),l=(0,s.unwrap)(i[r[1]]),u=e.lookupHelper(l,a);o(t.helper(u,l))}}(n,t,i,r);case f.ComponentOrHelper:return function(e,t,n,i){let[,r,{ifComponent:o,ifHelper:l}]=i;(0,s.assert)(h(r),"Attempted to resolve a component or helper with incorrect opcode");let u=r[0];if(u===a.SexpOpcodes.GetLexicalSymbol){let{scopeValues:e,owner:i}=n,a=(0,s.expect)(e,"BUG: scopeValues must exist if template symbol is used")[r[1]],u=t.component(a,(0,s.expect)(i,"BUG: expected owner when resolving component definition"),!0);if(null!==u)return void o(u);let c=t.helper(a,null,!0);l((0,s.expect)(c,"BUG: helper must exist"))}else if(u===a.SexpOpcodes.GetStrictKeyword)l(g(r,e,n,t,"component or helper"));else{let{upvars:i,owner:a}=m(n),u=(0,s.unwrap)(i[r[1]]),c=e.lookupComponent(u,a);if(null!==c)o(t.resolvedComponent(c,u));else{let n=e.lookupHelper(u,a);l(t.helper(n,u))}}}(n,t,i,r);case f.OptionalComponentOrHelper:return function(e,t,n,i){let[,r,{ifComponent:o,ifHelper:l,ifValue:u}]=i;(0,s.assert)(h(r),"Attempted to resolve an optional component or helper with incorrect opcode");let c=r[0];if(c===a.SexpOpcodes.GetLexicalSymbol){let{scopeValues:e,owner:i}=n,a=(0,s.expect)(e,"BUG: scopeValues must exist if template symbol is used")[r[1]];if("function"!=typeof a&&("object"!=typeof a||null===a))return void u(t.value(a));let c=t.component(a,(0,s.expect)(i,"BUG: expected owner when resolving component definition"),!0);if(null!==c)return void o(c);let d=t.helper(a,null,!0);if(null!==d)return void l(d);u(t.value(a))}else if(c===a.SexpOpcodes.GetStrictKeyword)l(g(r,e,n,t,"value"));else{let{upvars:i,owner:a}=m(n),u=(0,s.unwrap)(i[r[1]]),c=e.lookupComponent(u,a);if(null!==c)return void o(t.resolvedComponent(c,u));let d=e.lookupHelper(u,a);null!==d&&l(t.helper(d,u))}}(n,t,i,r);case f.Local:{let e=r[1],t=(0,s.expect)(i.upvars,"BUG: attempted to resolve value but no upvars found")[e];(0,r[2])(t,i.moduleName);break}case f.TemplateLocal:{let[,e,n]=r,o=(0,s.expect)(i.scopeValues,"BUG: Attempted to get a template local, but template does not have any")[e];n(t.value(o));break}default:throw Error(`Unexpected high level opcode ${r[0]}`)}}class E{labelsStack=(()=>new s.Stack)();encoder=(()=>new o.InstructionEncoderImpl([]))();errors=[];handle;constructor(e,t,n){this.heap=e,this.meta=t,this.stdlib=n,this.handle=e.malloc()}error(e){this.encoder.encode(r.Op.Primitive,0),this.errors.push(e)}commit(e){let t=this.handle;return this.heap.pushMachine(r.MachineOp.Return),this.heap.finishMalloc(t,e),(0,s.isPresentArray)(this.errors)?{errors:this.errors,handle:t}:t}push(e,t){let{heap:n}=this,i=t|((0,r.isMachineOp)(t)?r.MACHINE_MASK:0)|(arguments.length<=2?0:arguments.length-2)<=0;t--){let n=(0,s.unwrap)(i[t]);e(_.Label,n.label),e(r.Op.Pop,1),n.callback(),0!==t&&e(r.MachineOp.Jump,b("END"))}e(_.Label,"END"),e(_.StopLabels),e(r.Op.Exit)}function Y(e,t,n){e(_.StartLabels),e(r.MachineOp.PushFrame),e(r.MachineOp.ReturnTo,b("ENDINITIAL"));let i=t();e(r.Op.Enter,i),n(),e(_.Label,"FINALLY"),e(r.Op.Exit),e(r.MachineOp.Return),e(_.Label,"ENDINITIAL"),e(r.MachineOp.PopFrame),e(_.StopLabels)}function Q(e,t,n,i){return Y(e,t,()=>{e(r.Op.JumpUnless,b("ELSE")),n(),e(r.MachineOp.Jump,b("FINALLY")),e(_.Label,"ELSE"),void 0!==i&&i()})}function J(e,t,n,i,o,a){let{compilable:u,capabilities:c,handle:d}=t,p=n?[n,[]]:null,h=Array.isArray(a)||null===a?P(a):a;u?(e(r.Op.PushComponentDefinition,d),function(e,t){let{capabilities:n,layout:i,elementBlock:o,positional:a,named:u,blocks:c}=t,{symbolTable:d}=i;if(d.hasEval||(0,l.hasCapability)(n,r.InternalComponentCapabilities.prepareArgs))return void Z(e,{capabilities:n,elementBlock:o,positional:a,named:u,atNames:!0,blocks:c,layout:i});e(r.Op.Fetch,r.$s0),e(r.Op.Dup,r.$sp,1),e(r.Op.Load,r.$s0),e(r.MachineOp.PushFrame);let{symbols:p}=d,h=[],m=[],g=[],f=c.names;if(null!==o){let t=p.indexOf("&attrs");-1!==t&&(H(e,o),h.push(t))}for(let t of f){let n=p.indexOf(`&${t}`);-1!==n&&(H(e,c.get(t)),h.push(n))}if((0,l.hasCapability)(n,r.InternalComponentCapabilities.createArgs)){let t=z(e,a)<<4;t|=8;let n=s.EMPTY_STRING_ARRAY;if(null!==u){n=u[0];let t=u[1];for(let i=0;i0?1:0),e(r.Op.SetVariable,0),(0,s.reverse)(m)))-1===t?e(r.Op.Pop,1):e(r.Op.SetVariable,t+1);for(let t of(null!==a&&e(r.Op.Pop,a.length),(0,s.reverse)(h)))e(r.Op.SetBlock,t+1);e(r.Op.Constant,T(i)),e(r.Op.CompileBlock),e(r.MachineOp.InvokeVirtual),e(r.Op.DidRenderLayout,r.$s0),e(r.MachineOp.PopFrame),e(r.Op.PopScope),(0,l.hasCapability)(n,r.InternalComponentCapabilities.dynamicScope)&&e(r.Op.PopDynamicScope),e(r.Op.CommitComponentTransaction),e(r.Op.Load,r.$s0)}(e,{capabilities:c,layout:u,elementBlock:p,positional:i,named:o,blocks:h})):(e(r.Op.PushComponentDefinition,d),Z(e,{capabilities:c,elementBlock:p,positional:i,named:o,atNames:!0,blocks:h}))}function X(e,t,n,i,s,o,a,l){let u=n?[n,[]]:null,c=Array.isArray(o)||null===o?P(o):o;Y(e,()=>(j(e,t),e(r.Op.Dup,r.$sp,0),2),()=>{e(r.Op.JumpUnless,b("ELSE")),l?e(r.Op.ResolveCurriedComponent):e(r.Op.ResolveDynamicComponent,w()),e(r.Op.PushDynamicComponentInstance),Z(e,{capabilities:!0,elementBlock:u,positional:i,named:s,atNames:a,blocks:c}),e(_.Label,"ELSE")})}function Z(e,t){let{capabilities:n,elementBlock:i,positional:o,named:a,atNames:u,blocks:c,layout:d}=t,p=!!c,h=!0===n||(0,l.hasCapability)(n,r.InternalComponentCapabilities.prepareArgs)||!(!a||0===a[0].length),m=c.with("attrs",i);e(r.Op.Fetch,r.$s0),e(r.Op.Dup,r.$sp,1),e(r.Op.Load,r.$s0),e(r.MachineOp.PushFrame),function(e,t,n,i,o){let a=i.names;for(let t of a)H(e,i.get(t));let l=z(e,t)<<4;o&&(l|=8),i&&(l|=7);let u=s.EMPTY_ARRAY;if(n){u=n[0];let t=n[1];for(let n=0;n{d?(e(r.Op.PushSymbolTable,x(d.symbolTable)),e(r.Op.Constant,T(d)),e(r.Op.CompileBlock)):e(r.Op.GetComponentLayout,r.$s0),e(r.Op.PopulateLayout,r.$s0)}),e(r.Op.Load,r.$s0)}function ee(e,t,n,i){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;e(r.Op.BeginComponentTransaction,r.$s0),e(r.Op.PushDynamicScope),e(r.Op.CreateComponent,0|t,r.$s0),s&&s(),e(r.Op.RegisterComponentDestructor,r.$s0),e(r.Op.GetComponentSelf,r.$s0),e(r.Op.VirtualRootScope,r.$s0),e(r.Op.SetVariable,0),e(r.Op.SetupForEval,r.$s0),i&&e(r.Op.SetNamedVariables,r.$s0),n&&e(r.Op.SetBlocks,r.$s0),e(r.Op.Pop,1),e(r.Op.InvokeComponentLayout,r.$s0),e(r.Op.DidRenderLayout,r.$s0),e(r.MachineOp.PopFrame),e(r.Op.PopScope),e(r.Op.PopDynamicScope),e(r.Op.CommitComponentTransaction)}function et(e,t,n){G(e,()=>e(r.Op.ContentType),i=>{i(r.ContentType.String,()=>{t?(e(r.Op.AssertSame),e(r.Op.AppendHTML)):e(r.Op.AppendText)}),"number"==typeof n?(i(r.ContentType.Component,()=>{e(r.Op.ResolveCurriedComponent),e(r.Op.PushDynamicComponentInstance),function(e){e(r.Op.Fetch,r.$s0),e(r.Op.Dup,r.$sp,1),e(r.Op.Load,r.$s0),e(r.MachineOp.PushFrame),e(r.Op.PushEmptyArgs),e(r.Op.PrepareArgs,r.$s0),ee(e,!1,!1,!0,()=>{e(r.Op.GetComponentLayout,r.$s0),e(r.Op.PopulateLayout,r.$s0)}),e(r.Op.Load,r.$s0)}(e)}),i(r.ContentType.Helper,()=>{O(e,null,null,()=>{e(r.MachineOp.InvokeStatic,n)})})):(i(r.ContentType.Component,()=>{e(r.Op.AppendText)}),i(r.ContentType.Helper,()=>{e(r.Op.AppendText)})),i(r.ContentType.SafeString,()=>{e(r.Op.AssertSame),e(r.Op.AppendSafeHTML)}),i(r.ContentType.Fragment,()=>{e(r.Op.AssertSame),e(r.Op.AppendDocumentFragment)}),i(r.ContentType.Node,()=>{e(r.Op.AssertSame),e(r.Op.AppendNode)})})}function en(e){let t=es(e,e=>(function(e){e(r.Op.Main,r.$s0),ee(e,!1,!1,!0)})(e)),n=es(e,e=>et(e,!0,null)),i=es(e,e=>et(e,!1,null));return new A(t,es(e,e=>et(e,!0,n)),es(e,e=>et(e,!1,i)),n,i)}R.add(a.SexpOpcodes.Concat,(e,t)=>{let[,n]=t;for(let t of n)j(e,t);e(r.Op.Concat,n.length)}),R.add(a.SexpOpcodes.Call,(e,t)=>{let[,n,i,s]=t;p(n)?e(f.Helper,n,t=>{N(e,t,i,s)}):(j(e,n),O(e,i,s))}),R.add(a.SexpOpcodes.Curry,(e,t)=>{let[,n,i,s,o]=t;(function(e,t,n,i,s){e(r.MachineOp.PushFrame),B(e,i,s,!1),e(r.Op.CaptureArgs),j(e,n),e(r.Op.Curry,t,w()),e(r.MachineOp.PopFrame),e(r.Op.Fetch,r.$v0)})(e,i,n,s,o)}),R.add(a.SexpOpcodes.GetSymbol,(e,t)=>{let[,n,i]=t;e(r.Op.GetVariable,n),U(e,i)}),R.add(a.SexpOpcodes.GetLexicalSymbol,(e,t)=>{let[,n,i]=t;e(f.TemplateLocal,n,t=>{e(r.Op.ConstantReference,t),U(e,i)})}),R.add(a.SexpOpcodes.GetStrictKeyword,(e,t)=>{e(f.Local,t[1],n=>{e(f.Helper,t,t=>{N(e,t,null,null)})})}),R.add(a.SexpOpcodes.GetFreeAsHelperHead,(e,t)=>{e(f.Local,t[1],n=>{e(f.Helper,t,t=>{N(e,t,null,null)})})}),R.add(a.SexpOpcodes.Undefined,e=>M(e,void 0)),R.add(a.SexpOpcodes.HasBlock,(e,t)=>{let[,n]=t;j(e,n),e(r.Op.HasBlock)}),R.add(a.SexpOpcodes.HasBlockParams,(e,t)=>{let[,n]=t;j(e,n),e(r.Op.SpreadBlock),e(r.Op.CompileBlock),e(r.Op.HasBlockParams)}),R.add(a.SexpOpcodes.IfInline,(e,t)=>{let[,n,i,s]=t;j(e,s),j(e,i),j(e,n),e(r.Op.IfInline)}),R.add(a.SexpOpcodes.Not,(e,t)=>{let[,n]=t;j(e,n),e(r.Op.Not)}),R.add(a.SexpOpcodes.GetDynamicVar,(e,t)=>{let[,n]=t;j(e,n),e(r.Op.GetDynamicVar)}),R.add(a.SexpOpcodes.Log,(e,t)=>{let[,n]=t;e(r.MachineOp.PushFrame),B(e,n,null,!1),e(r.Op.Log),e(r.MachineOp.PopFrame),e(r.Op.Fetch,r.$v0)});let ei={evalSymbols:null,upvars:null,moduleName:"stdlib",scopeValues:null,isStrictMode:!0,owner:null,size:0};function es(e,t){let{constants:n,heap:i,resolver:s}=e,r=new E(i,ei);t(function(){for(var e=arguments.length,t=Array(e),i=0;i`@${e}`),e[1]]}el.add(a.SexpOpcodes.Comment,(e,t)=>e(r.Op.Comment,t[1])),el.add(a.SexpOpcodes.CloseElement,e=>e(r.Op.CloseElement)),el.add(a.SexpOpcodes.FlushElement,e=>e(r.Op.FlushElement)),el.add(a.SexpOpcodes.Modifier,(e,t)=>{let[,n,i,s]=t;d(n)?e(f.Modifier,n,t=>{e(r.MachineOp.PushFrame),B(e,i,s,!1),e(r.Op.Modifier,t),e(r.MachineOp.PopFrame)}):(j(e,n),e(r.MachineOp.PushFrame),B(e,i,s,!1),e(r.Op.Dup,r.$fp,1),e(r.Op.DynamicModifier),e(r.MachineOp.PopFrame))}),el.add(a.SexpOpcodes.StaticAttr,(e,t)=>{let[,n,i,s]=t;e(r.Op.StaticAttr,ep(n),i,s??null)}),el.add(a.SexpOpcodes.StaticComponentAttr,(e,t)=>{let[,n,i,s]=t;e(r.Op.StaticComponentAttr,ep(n),i,s??null)}),el.add(a.SexpOpcodes.DynamicAttr,(e,t)=>{let[,n,i,s]=t;j(e,i),e(r.Op.DynamicAttr,ep(n),!1,s??null)}),el.add(a.SexpOpcodes.TrustingDynamicAttr,(e,t)=>{let[,n,i,s]=t;j(e,i),e(r.Op.DynamicAttr,ep(n),!0,s??null)}),el.add(a.SexpOpcodes.ComponentAttr,(e,t)=>{let[,n,i,s]=t;j(e,i),e(r.Op.ComponentAttr,ep(n),!1,s??null)}),el.add(a.SexpOpcodes.TrustingComponentAttr,(e,t)=>{let[,n,i,s]=t;j(e,i),e(r.Op.ComponentAttr,ep(n),!0,s??null)}),el.add(a.SexpOpcodes.OpenElement,(e,t)=>{let[,n]=t;e(r.Op.OpenElement,ed(n))}),el.add(a.SexpOpcodes.OpenElementWithSplat,(e,t)=>{let[,n]=t;e(r.Op.PutComponentOperations),e(r.Op.OpenElement,ed(n))}),el.add(a.SexpOpcodes.Component,(e,t)=>{let[,n,i,s,r]=t;c(n)?e(f.Component,n,t=>{J(e,t,i,null,s,r)}):X(e,n,i,null,s,r,!0,!0)}),el.add(a.SexpOpcodes.Yield,(e,t)=>{let[,n,i]=t;return q(e,n,i)}),el.add(a.SexpOpcodes.AttrSplat,(e,t)=>{let[,n]=t;return q(e,n,null)}),el.add(a.SexpOpcodes.Debugger,(e,t)=>{let[,n]=t;return e(r.Op.Debugger,{type:y.DebugSymbols,value:void 0},n)}),el.add(a.SexpOpcodes.Append,(e,t)=>{let[,n]=t;if(Array.isArray(n)){if(h(n))e(f.OptionalComponentOrHelper,n,{ifComponent(t){J(e,t,null,null,null,null)},ifHelper(t){e(r.MachineOp.PushFrame),N(e,t,null,null),e(r.MachineOp.InvokeStatic,k("cautious-non-dynamic-append")),e(r.MachineOp.PopFrame)},ifValue(t){e(r.MachineOp.PushFrame),e(r.Op.ConstantReference,t),e(r.MachineOp.InvokeStatic,k("cautious-non-dynamic-append")),e(r.MachineOp.PopFrame)}});else if(n[0]===a.SexpOpcodes.Call){let[,t,i,s]=n;h(t)?e(f.ComponentOrHelper,t,{ifComponent(t){J(e,t,null,i,eh(s),null)},ifHelper(t){e(r.MachineOp.PushFrame),N(e,t,i,s),e(r.MachineOp.InvokeStatic,k("cautious-non-dynamic-append")),e(r.MachineOp.PopFrame)}}):G(e,()=>{j(e,t),e(r.Op.DynamicContentType)},t=>{t(r.ContentType.Component,()=>{e(r.Op.ResolveCurriedComponent),e(r.Op.PushDynamicComponentInstance),Z(e,{capabilities:!0,elementBlock:null,positional:i,named:s,atNames:!1,blocks:P(null)})}),t(r.ContentType.Helper,()=>{O(e,i,s,()=>{e(r.MachineOp.InvokeStatic,k("cautious-non-dynamic-append"))})})})}else e(r.MachineOp.PushFrame),j(e,n),e(r.MachineOp.InvokeStatic,k("cautious-append")),e(r.MachineOp.PopFrame)}else e(r.Op.Text,null==n?"":String(n))}),el.add(a.SexpOpcodes.TrustingAppend,(e,t)=>{let[,n]=t;Array.isArray(n)?(e(r.MachineOp.PushFrame),j(e,n),e(r.MachineOp.InvokeStatic,k("trusting-append")),e(r.MachineOp.PopFrame)):e(r.Op.Text,null==n?"":String(n))}),el.add(a.SexpOpcodes.Block,(e,t)=>{let[,n,i,s,r]=t;c(n)?e(f.Component,n,t=>{J(e,t,null,i,eh(s),r)}):X(e,n,null,i,s,r,!1,!1)}),el.add(a.SexpOpcodes.InElement,(e,t)=>{let[,n,i,s,o]=t;Q(e,()=>(j(e,i),void 0===o?M(e,void 0):j(e,o),j(e,s),e(r.Op.Dup,r.$sp,0),4),()=>{e(r.Op.PushRemoteElement),V(e,n),e(r.Op.PopRemoteElement)})}),el.add(a.SexpOpcodes.If,(e,t)=>{let[,n,i,s]=t;return Q(e,()=>(j(e,n),e(r.Op.ToBoolean),1),()=>{V(e,i)},s?()=>{V(e,s)}:void 0)}),el.add(a.SexpOpcodes.Each,(e,t)=>{let[,n,i,s,o]=t;return Y(e,()=>(i?j(e,i):M(e,null),j(e,n),2),()=>{e(r.Op.EnterList,b("BODY"),b("ELSE")),e(r.MachineOp.PushFrame),e(r.Op.Dup,r.$fp,1),e(r.MachineOp.ReturnTo,b("ITER")),e(_.Label,"ITER"),e(r.Op.Iterate,b("BREAK")),e(_.Label,"BODY"),W(e,s,2),e(r.Op.Pop,2),e(r.MachineOp.Jump,b("FINALLY")),e(_.Label,"BREAK"),e(r.MachineOp.PopFrame),e(r.Op.ExitList),e(r.MachineOp.Jump,b("FINALLY")),e(_.Label,"ELSE"),o&&V(e,o)})}),el.add(a.SexpOpcodes.Let,(e,t)=>{let[,n,i]=t;W(e,i,z(e,n))}),el.add(a.SexpOpcodes.WithDynamicVars,(e,t)=>{let[,n,i]=t;if(n){let[t,s]=n;z(e,s),function(e,t,n){e(r.Op.PushDynamicScope),e(r.Op.BindDynamicScope,t),n(),e(r.Op.PopDynamicScope)}(e,t,()=>{V(e,i)})}else V(e,i)}),el.add(a.SexpOpcodes.InvokeComponent,(e,t)=>{let[,n,i,s,r]=t;c(n)?e(f.Component,n,t=>{J(e,t,null,i,eh(s),r)}):X(e,n,null,i,s,r,!1,!1)});class em{compiled=null;constructor(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"plain block";this.statements=e,this.meta=t,this.symbolTable=n,this.moduleName=i}compile(e){return function(e,t){if(null!==e.compiled)return e.compiled;e.compiled=-1;let{statements:n,meta:i}=e,s=ef(n,i,t);return e.compiled=s,s}(this,e)}}function eg(e,t){let[n,i,s]=e.block;return new em(n,$(e),{symbols:i,hasEval:s},t)}function ef(e,t,n){let i=ea(n,t),{encoder:s,program:{constants:r,resolver:o}}=i;function a(){for(var e=arguments.length,n=Array(e),i=0;i{t(r.Op.GetComponentTagName,r.$s0),t(r.Op.PrimitiveReference),t(r.Op.Dup,r.$sp,0)}),t(r.Op.JumpUnless,b("BODY")),t(r.Op.Fetch,r.$s1),t(r.Op.PutComponentOperations),t(r.Op.OpenDynamicElement),t(r.Op.DidCreateElement,r.$s0),q(t,i,null),t(r.Op.FlushElement),t(_.Label,"BODY"),V(t,[n.block[0],[]]),t(r.Op.Fetch,r.$s1),t(r.Op.JumpUnless,b("END")),t(r.Op.CloseElement),t(_.Label,"END"),t(r.Op.Load,r.$s1),t(_.StopLabels);let c=o.encoder.commit(s.size);return"number"!=typeof c||(this.compiled=c),c}}let ev=0,ew={cacheHit:0,cacheMiss:0};function ek(e){let{id:t,moduleName:n,block:i,scope:s,isStrictMode:r}=e,o,a=t||"client-"+ev++,l=null,u=new WeakMap,c=e=>{if(void 0===o&&(o=JSON.parse(i)),void 0===e)return null===l?(ew.cacheMiss++,l=new ex({id:a,block:o,moduleName:n,owner:null,scope:s,isStrictMode:r})):ew.cacheHit++,l;let t=u.get(e);return void 0===t?(ew.cacheMiss++,t=new ex({id:a,block:o,moduleName:n,owner:e,scope:s,isStrictMode:r}),u.set(e,t)):ew.cacheHit++,t};return c.__id=a,c.__meta={moduleName:n},c}class ex{result="ok";layout=null;wrappedLayout=null;constructor(e){this.parsedLayout=e}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=eg((0,s.assign)({},this.parsedLayout),this.moduleName)}asWrappedLayout(){return this.wrappedLayout?this.wrappedLayout:this.wrappedLayout=new eb((0,s.assign)({},this.parsedLayout),this.moduleName)}}},39629:(e,t,n)=>{"use strict";n.r(t),n.d(t,{OWNER:()=>i,getOwner:()=>s,setOwner:()=>r});let i=Symbol("OWNER");function s(e){return e[i]}function r(e,t){e[i]=t}},6230:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CompileTimeConstantImpl:()=>d,ConstantsImpl:()=>h,HeapImpl:()=>y,RuntimeConstantsImpl:()=>p,RuntimeHeapImpl:()=>f,RuntimeOpImpl:()=>m,RuntimeProgramImpl:()=>b,artifacts:()=>w,hydrateHeap:()=>_});var i=n(60465),s=n(10010),r=n(58746),o=n(14247);let a={id:"1b32f5c2-7623-43d6-a0ad-9672898920a1",moduleName:"__default__.hbs",block:JSON.stringify([[[n(93549).SexpOpcodes.Yield,1,null]],["&default"],!1,[]]),scope:null,isStrictMode:!0},l=Object.freeze([]),u=(0,r.constants)(l),c=u.indexOf(l);class d{values=(()=>u.slice())();indexMap=(()=>new Map(this.values.map((e,t)=>[e,t])))();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 c;let t=Array(e.length);for(let n=0;n({[c]:l}))();defaultTemplate=(()=>(0,s.templateFactory)(a)())();helperDefinitionCount=0;modifierDefinitionCount=0;componentDefinitionCount=0;helperDefinitionCache=(()=>new WeakMap)();modifierDefinitionCache=(()=>new WeakMap)();componentDefinitionCache=(()=>new WeakMap)();helper(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];let t=arguments.length>2?arguments[2]:void 0,n=this.helperDefinitionCache.get(e);if(void 0===n){let s=(0,i.getInternalHelperManager)(e,t);if(null===s)return this.helperDefinitionCache.set(e,null),null;(0,r.assert)(s,"BUG: expected manager or helper");let o="function"==typeof s?s:s.getHelper(e);n=this.value(o),this.helperDefinitionCache.set(e,n),this.helperDefinitionCount++}return n}modifier(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,s=this.modifierDefinitionCache.get(e);if(void 0===s){let r=(0,i.getInternalModifierManager)(e,n);if(null===r)return this.modifierDefinitionCache.set(e,null),null;s=this.value({resolvedName:t,manager:r,state:e}),this.modifierDefinitionCache.set(e,s),this.modifierDefinitionCount++}return s}component(e,t,n){let s=this.componentDefinitionCache.get(e);if(void 0===s){let a=(0,i.getInternalComponentManager)(e,n);if(null===a)return this.componentDefinitionCache.set(e,null),null;(0,r.assert)(a,"BUG: expected manager");let l,u=(0,i.capabilityFlagsFrom)(a.getCapabilities(e)),c=(0,i.getComponentTemplate)(e),d=null;void 0!==(l=(0,i.managerHasCapability)(a,u,o.InternalComponentCapabilities.dynamicLayout)?c?.(t):c?.(t)??this.defaultTemplate)&&(l=(0,r.unwrapTemplate)(l),d=(0,i.managerHasCapability)(a,u,o.InternalComponentCapabilities.wrapped)?l.asWrappedLayout():l.asLayout()),(s={resolvedName:null,handle:-1,manager:a,capabilities:u,state:e,compilable:d}).handle=this.value(s),this.componentDefinitionCache.set(e,s),this.componentDefinitionCount++}return s}resolvedComponent(e,t){let n=this.componentDefinitionCache.get(e);if(void 0===n){let{manager:s,state:a,template:l}=e,u=(0,i.capabilityFlagsFrom)(s.getCapabilities(e)),c=null;(0,i.managerHasCapability)(s,u,o.InternalComponentCapabilities.dynamicLayout)||(l=l??this.defaultTemplate),null!==l&&(l=(0,r.unwrapTemplate)(l),c=(0,i.managerHasCapability)(s,u,o.InternalComponentCapabilities.wrapped)?l.asWrappedLayout():l.asLayout()),(n={resolvedName:t,handle:-1,manager:s,capabilities:u,state:a,compilable:c}).handle=this.value(n),this.componentDefinitionCache.set(e,n),this.componentDefinitionCount++}return(0,r.expect)(n,"BUG: resolved component definitions cannot be null")}getValue(e){return(0,r.assert)(e>=0,`cannot get value for handle: ${e}`),this.values[e]}getArray(e){let t=this.reifiedArrs,n=t[e];if(void 0===n){let i=this.getValue(e);for(let[e,t]of(n=Array(i.length),(0,r.enumerate)(i)))n[e]=this.getValue(t);t[e]=n}return n}}class m{offset=0;constructor(e){this.heap=e}get size(){return 1+((this.heap.getbyaddr(this.offset)&o.OPERAND_LEN_MASK)>>o.ARG_SHIFT)}get isMachine(){return this.heap.getbyaddr(this.offset)&o.MACHINE_MASK?1:0}get type(){return this.heap.getbyaddr(this.offset)&o.TYPE_MASK}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)}}var g=function(e){return e[e.Allocated=0]="Allocated",e[e.Freed=1]="Freed",e[e.Purged=2]="Purged",e[e.Pointer=3]="Pointer",e}(g||{});class f{heap;table;constructor(e){let{buffer:t,table:n}=e;this.heap=new Int32Array(t),this.table=n}getaddr(e){return(0,r.unwrap)(this.table[e])}getbyaddr(e){return(0,r.expect)(this.heap[e],"Access memory out of bounds of the heap")}sizeof(e){return this.table,-1}}function _(e){return new f(e)}class y{offset=0;heap;handleTable;handleState;handle=0;constructor(){this.heap=new Int32Array(1048576),this.handleTable=[],this.handleState=[]}pushRaw(e){this.sizeCheck(),this.heap[this.offset++]=e}pushOp(e){this.pushRaw(e)}pushMachine(e){this.pushRaw(e|o.MACHINE_MASK)}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(0,r.unwrap)(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(0,r.unwrap)(this.handleTable[e])}sizeof(e){return this.handleTable,-1}free(e){this.handleState[e]=g.Freed}compact(){let e=0,{handleTable:t,handleState:n,heap:i}=this;for(let s=0;s0&&void 0!==arguments[0]?arguments[0]:this.offset,t=function(e,t,n){if(void 0!==e.slice)return e.slice(t,n);let i=new Int32Array(n);for(;t{"use strict";let i;n.r(t),n.d(t,{FALSE_REFERENCE:()=>h,NULL_REFERENCE:()=>d,REFERENCE:()=>a,TRUE_REFERENCE:()=>p,UNDEFINED_REFERENCE:()=>c,childRefFor:()=>S,childRefFromParts:()=>C,createComputeRef:()=>f,createConstRef:()=>m,createDebugAliasRef:()=>i,createInvokableRef:()=>b,createIteratorItemRef:()=>O,createIteratorRef:()=>N,createPrimitiveRef:()=>u,createReadOnlyRef:()=>_,createUnboundRef:()=>g,isConstRef:()=>w,isInvokableRef:()=>y,isUpdatableRef:()=>k,updateRef:()=>T,valueForRef:()=>x});var s=n(24007),r=n(58746),o=n(55336);let a=Symbol("REFERENCE");class l{[a];tag=null;lastRevision=(()=>o.INITIAL)();lastValue;children=null;compute=null;update=null;debugLabel;constructor(e){this[a]=e}}function u(e){let t=new l(2);return t.tag=o.CONSTANT_TAG,t.lastValue=e,t}let c=u(void 0),d=u(null),p=u(!0),h=u(!1);function m(e,t){let n=new l(0);return n.lastValue=e,n.tag=o.CONSTANT_TAG,n}function g(e,t){let n=new l(2);return n.lastValue=e,n.tag=o.CONSTANT_TAG,n}function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;arguments.length>2&&void 0!==arguments[2]&&arguments[2];let n=new l(1);return n.compute=e,n.update=t,n}function _(e){return k(e)?f(()=>x(e),null,e.debugLabel):e}function y(e){return 3===e[a]}function b(e){let t=f(()=>x(e),t=>T(e,t));return t.debugLabel=e.debugLabel,t[a]=3,t}function w(e){return e.tag===o.CONSTANT_TAG}function k(e){return null!==e.update}function x(e){let t;let{tag:n}=e;if(n===o.CONSTANT_TAG)return e.lastValue;let{lastRevision:i}=e;if(null!==n&&(0,o.validateTag)(n,i))t=e.lastValue;else{let{compute:i}=e,s=(0,o.track)(()=>{t=e.lastValue=i()},!1);n=e.tag=s,e.lastRevision=(0,o.valueForTag)(s)}return(0,o.consumeTag)(n),t}function T(e,t){(0,r.expect)(e.update,"called update on a non-updatable reference")(t)}function S(e,t){let n=e[a],i,o=e.children;if(null===o)o=e.children=new Map;else if(void 0!==(i=o.get(t)))return i;if(2===n){let n=x(e);i=(0,r.isDict)(n)?g(n[t],!1):c}else i=f(()=>{let n=x(e);if((0,r.isDict)(n))return(0,s.getProp)(n,t)},n=>{let i=x(e);if((0,r.isDict)(i))return(0,s.setProp)(i,t,n)});return o.set(t,i),i}function C(e,t){let n=e;for(let e of t)n=S(n,e);return n}let E={},A=(e,t)=>t,D=(e,t)=>String(t),I=e=>null===e?E:e;class P{_weakMap;_primitiveMap;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){(0,r.isObject)(e)?this.weakMap.set(e,t):this.primitiveMap.set(e,t)}get(e){return(0,r.isObject)(e)?this.weakMap.get(e):this.primitiveMap.get(e)}}let M=new P;function F(e){let t=new P;return(n,i)=>{let s=e(n,i),r=t.get(s)||0;return t.set(s,r+1),0===r?s:function(e,t){let n=M.get(e);void 0===n&&(n=[],M.set(e,n));let i=n[t];return void 0===i&&(i={value:e,count:t},n[t]=i),i}(s,r)}}function N(e,t){return f(()=>{let n=x(e),i=function(e){switch(e){case"@key":return F(A);case"@index":return F(D);case"@identity":return F(I);default:return function(e){return F(t=>(0,s.getPath)(t,e))}(e)}}(t);if(Array.isArray(n))return new R(n,i);let o=(0,s.toIterator)(n);return null===o?new R(r.EMPTY_ARRAY,()=>null):new L(o,i)})}function O(e){let t=e,n=(0,o.createTag)();return f(()=>((0,o.consumeTag)(n),t),e=>{t!==e&&(t=e,(0,o.dirtyTag)(n))})}class L{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}}class R{current;pos=0;constructor(e,t){this.iterator=e,this.keyFor=t,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}}}},95374:(e,t,n)=>{"use strict";let i;n.r(t),n.d(t,{ConcreteBounds:()=>T,CurriedValue:()=>ey,CursorImpl:()=>x,DOMChanges:()=>ty,DOMTreeConstruction:()=>tp,DynamicAttribute:()=>W,DynamicScopeImpl:()=>h,EMPTY_ARGS:()=>eZ,EMPTY_NAMED:()=>eJ,EMPTY_POSITIONAL:()=>eX,EnvironmentImpl:()=>tT,IDOMChanges:()=>tf,LowLevelVM:()=>t1,NewElementBuilder:()=>ei,PartialScopeImpl:()=>m,RehydrateBuilder:()=>ne,RemoteLiveBlock:()=>er,SERIALIZATION_FIRST_NODE_STRING:()=>t9,SimpleDynamicAttribute:()=>K,TEMPLATE_ONLY_COMPONENT_MANAGER:()=>tn,TemplateOnlyComponent:()=>ti,TemplateOnlyComponentManager:()=>tt,UpdatableBlockImpl:()=>eo,UpdatingVM:()=>tH,array:()=>tA,clear:()=>C,clientBuilder:()=>el,concat:()=>tI,createCapturedArgs:()=>eH,curry:()=>ev,destroy:()=>a.destroy,dynamicAttribute:()=>H,fn:()=>tM,get:()=>tF,hash:()=>tN,inTransaction:()=>tC,invokeHelper:()=>tR,isDestroyed:()=>a.isDestroyed,isDestroying:()=>a.isDestroying,isSerializationFirstNode:()=>t5,isWhitespace:()=>tg,normalizeProperty:()=>M,on:()=>t$,registerDestructor:()=>a.registerDestructor,rehydrationBuilder:()=>nu,reifyArgs:()=>eK,reifyNamed:()=>eV,reifyPositional:()=>eW,renderComponent:()=>t7,renderMain:()=>t4,renderSync:()=>t8,resetDebuggerCallback:()=>e5,runtimeContext:()=>tS,setDebuggerCallback:()=>e9,templateOnlyComponent:()=>ts});var s=n(14247),r=n(29067),o=n(58746),a=n(5268),l=n(24007),u=n(60465),c=n(55336),d=n(6230),p=n(39629);Array(s.Op.Size).fill(null),Array(s.Op.Size).fill(null);class h{bucket;constructor(e){this.bucket=e?(0,o.assign)({},e):{}}get(e){return(0,o.unwrap)(this.bucket[e])}set(e,t){return this.bucket[e]=t}child(){return new h(this.bucket)}}class m{static root(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new m(Array(t+1).fill(r.UNDEFINED_REFERENCE),n,null,null,null).init({self:e})}static sized(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return new m(Array(e+1).fill(r.UNDEFINED_REFERENCE),t,null,null,null)}constructor(e,t,n,i,s){this.slots=e,this.owner=t,this.callerScope=n,this.evalScope=i,this.partialMap=s}init(e){let{self:t}=e;return this.slots[0]=t,this}getSelf(){return this.get(0)}getSymbol(e){return this.get(e)}getBlock(e){let t=this.get(e);return t===r.UNDEFINED_REFERENCE?null:t}getEvalScope(){return this.evalScope}getPartialMap(){return this.partialMap}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)}bindEvalScope(e){this.evalScope=e}bindPartialMap(e){this.partialMap=e}bindCallerScope(e){this.callerScope=e}getCallerScope(){return this.callerScope}child(){return new m(this.slots.slice(),this.owner,this.callerScope,this.evalScope,this.partialMap)}get(e){if(e>=this.slots.length)throw RangeError(`BUG: cannot get $${e} from scope; length=${this.slots.length}`);return this.slots[e]}set(e,t){if(e>=this.slots.length)throw RangeError(`BUG: cannot get $${e} from scope; length=${this.slots.length}`);this.slots[e]=t}}let g=Symbol("INNER_VM"),f=Symbol("DESTROYABLE_STACK"),_=Symbol("STACKS"),y=Symbol("REGISTERS"),b=Symbol("HEAP"),w=Symbol("CONSTANTS"),k=Symbol("ARGS");class x{constructor(e,t){this.element=e,this.nextSibling=t}}class T{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 S(e,t){let n=e.parentElement(),i=e.firstNode(),s=e.lastNode(),r=i;for(;;){let e=r.nextSibling;if(n.insertBefore(r,t),r===s)return e;r=(0,o.expect)(e,"invalid bounds")}}function C(e){let t=e.parentElement(),n=e.firstNode(),i=e.lastNode(),s=n;for(;;){let e=s.nextSibling;if(t.removeChild(s),s===i)return e;s=(0,o.expect)(e,"invalid bounds")}}function E(e){return A(e)?"":String(e)}function A(e){return null==e||"function"!=typeof e.toString}function D(e){return"object"==typeof e&&null!==e&&"function"==typeof e.toHTML}function I(e){return"object"==typeof e&&null!==e&&"number"==typeof e.nodeType}function P(e){return"string"==typeof e}function M(e,t){let n,i;if(t in e)i=t,n="prop";else{let s=t.toLowerCase();s in e?(n="prop",i=s):(n="attr",i=t)}return"prop"!==n||"style"!==i.toLowerCase()&&!function(e,t){let n=F[e.toUpperCase()];return n&&n[t.toLowerCase()]||!1}(e.tagName,i)||(n="attr"),{normalized:i,type:n}}let F={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}},N=["javascript:","vbscript:"],O=["A","BODY","LINK","IMG","IFRAME","BASE","FORM"],L=["EMBED"],R=["href","src","background","action"],U=["src"];function j(e,t){return -1!==e.indexOf(t)}function B(e,t){return(null===e||j(O,e))&&j(R,t)}function z(e,t){return null!==e&&j(L,e)&&j(U,t)}function $(e,t){return B(e,t)||z(e,t)}function q(e,t,n){let s=null;if(null==n)return n;if(D(n))return n.toHTML();s=e?e.tagName.toUpperCase():null;let r=E(n);return B(s,t)&&j(N,(i||(i=function(){if("object"==typeof URL&&null!==URL&&"function"==typeof URL.parse){let e=URL;return t=>{let n=null;return"string"==typeof t&&(n=e.parse(t).protocol),null===n?":":n}}if("function"==typeof URL)return e=>{try{return new URL(e).protocol}catch(e){return":"}};throw Error('@glimmer/runtime needs a valid "globalThis.URL"')}()),i(r)))?`unsafe:${r}`:z(s,t)?`unsafe:${r}`:r}function H(e,t,n){arguments.length>3&&void 0!==arguments[3]&&arguments[3];let{tagName:i,namespaceURI:s}=e,r={element:e,name:t,namespace:n};if(s===o.NS_SVG)return V(i,t,r);let{type:a,normalized:l}=M(e,t);return"attr"===a?V(i,l,r):function(e,t,n){return $(e,t)?new Y(t,n):!function(e,t){return("INPUT"===e||"TEXTAREA"===e)&&"value"===t}(e,t)?!function(e,t){return"OPTION"===e&&"selected"===t}(e,t)?new G(t,n):new X(t,n):new J(t,n)}(i,l,r)}function V(e,t,n){return $(e,t)?new Q(n):new K(n)}class W{constructor(e){this.attribute=e}}class K extends W{set(e,t,n){let i=Z(t);if(null!==i){let{name:t,namespace:n}=this.attribute;e.__setAttribute(t,i,n)}}update(e,t){let n=Z(e),{element:i,name:s}=this.attribute;null===n?i.removeAttribute(s):i.setAttribute(s,n)}}class G extends W{constructor(e,t){super(t),this.normalizedName=e}value;set(e,t,n){null!=t&&(this.value=t,e.__setProperty(this.normalizedName,t))}update(e,t){let{element:n}=this.attribute;this.value!==e&&(n[this.normalizedName]=this.value=e,null==e&&this.removeAttribute())}removeAttribute(){let{element:e,namespace:t}=this.attribute;t?e.removeAttributeNS(t,this.normalizedName):e.removeAttribute(this.normalizedName)}}class Y extends G{set(e,t,n){let{element:i,name:s}=this.attribute,r=q(i,s,t);super.set(e,r,n)}update(e,t){let{element:n,name:i}=this.attribute,s=q(n,i,e);super.update(s,t)}}class Q extends K{set(e,t,n){let{element:i,name:s}=this.attribute,r=q(i,s,t);super.set(e,r,n)}update(e,t){let{element:n,name:i}=this.attribute,s=q(n,i,e);super.update(s,t)}}class J extends G{set(e,t){e.__setProperty("value",E(t))}update(e){let t=(0,o.castToBrowser)(this.attribute.element,["input","textarea"]),n=t.value,i=E(e);n!==i&&(t.value=i)}}class X extends G{set(e,t){null!=t&&!1!==t&&e.__setProperty("selected",!0)}update(e){(0,o.castToBrowser)(this.attribute.element,"option").selected=!!e}}function Z(e){return!1===e||null==e||void 0===e.toString?null:!0===e?"":"function"==typeof e?null:String(e)}class ee{constructor(e){this.node=e}firstNode(){return this.node}}class et{constructor(e){this.node=e}lastNode(){return this.node}}let en=Symbol("CURSOR_STACK");class ei{dom;updateOperations;constructing=null;operations=null;env;[en]=(()=>new o.Stack)();modifierStack=(()=>new o.Stack)();blockStack=(()=>new o.Stack)();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.pushLiveBlock(t),n}constructor(e,t,n){this.pushElement(t,n),this.env=e,this.dom=e.getAppendOperations(),this.updateOperations=e.getDOM()}initialize(){return this.pushSimpleBlock(),this}debugBlocks(){return this.blockStack.toArray()}get element(){return this[en].current.element}get nextSibling(){return this[en].current.nextSibling}get hasBlocks(){return this.blockStack.size>0}block(){return(0,o.expect)(this.blockStack.current,"Expected a current live block")}popElement(){this[en].pop(),(0,o.expect)(this[en].current,"can't pop past the last element")}pushSimpleBlock(){return this.pushLiveBlock(new es(this.element))}pushUpdatableBlock(){return this.pushLiveBlock(new eo(this.element))}pushBlockList(e){return this.pushLiveBlock(new ea(this.element,e))}pushLiveBlock(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],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(),(0,o.expect)(this.blockStack.pop(),"Expected popBlock to return a block")}__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=(0,o.expect)(this.constructing,"flushElement should only be called when constructing an element");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 i=new er(e);return this.pushLiveBlock(i,!0)}popRemoteElement(){let e=this.popBlock();return(0,o.assert)(e instanceof er,"[BUG] expecting a RemoteLiveBlock"),this.popElement(),e}pushElement(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this[en].push(new x(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:i}=this,s=t.createTextNode(e);return t.insertBefore(n,s,i),s}__appendNode(e){return this.dom.insertBefore(this.element,e,this.nextSibling),e}__appendFragment(e){let t=e.firstChild;if(t){let n=new T(this.element,t,e.lastChild);return this.dom.insertBefore(this.element,e,this.nextSibling),n}{let e=this.__appendComment("");return new T(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 T(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:i}=this,s=t.createComment(e);return t.insertBefore(n,s,i),s}__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,i){let s=H(this.constructing,e,i,n);return s.set(this,t,this.env),s}}class es{first=null;last=null;nesting=0;constructor(e){this.parent=e}parentElement(){return this.parent}firstNode(){return(0,o.expect)(this.first,"cannot call `firstNode()` while `SimpleLiveBlock` is still initializing").firstNode()}lastNode(){return(0,o.expect)(this.last,"cannot call `lastNode()` while `SimpleLiveBlock` is still initializing").lastNode()}openElement(e){this.didAppendNode(e),this.nesting++}closeElement(){this.nesting--}didAppendNode(e){0===this.nesting&&(this.first||(this.first=new ee(e)),this.last=new et(e))}didAppendBounds(e){0===this.nesting&&(this.first||(this.first=e),this.last=e)}finalize(e){null===this.first&&e.appendComment("")}}class er extends es{constructor(e){super(e),(0,a.registerDestructor)(this,()=>{this.parentElement()===this.firstNode().parentNode&&C(this)})}}class eo extends es{reset(){(0,a.destroy)(this);let e=C(this);return this.first=null,this.last=null,this.nesting=0,e}}class ea{constructor(e,t){this.parent=e,this.boundList=t,this.parent=e,this.boundList=t}parentElement(){return this.parent}firstNode(){return(0,o.expect)(this.boundList[0],"cannot call `firstNode()` while `LiveBlockList` is still initializing").firstNode()}lastNode(){let e=this.boundList;return(0,o.expect)(e[e.length-1],"cannot call `lastNode()` while `LiveBlockList` is still initializing").lastNode()}openElement(e){(0,o.assert)(!1,"Cannot openElement directly inside a block list")}closeElement(){(0,o.assert)(!1,"Cannot closeElement directly inside a block list")}didAppendNode(e){(0,o.assert)(!1,"Cannot create a new node directly inside a block list")}didAppendBounds(e){}finalize(e){(0,o.assert)(this.boundList.length>0,"boundsList cannot be empty")}}function el(e,t){return ei.forInitialRender(e,t)}let eu=new class{evaluateOpcode=(()=>Array(s.Op.Size).fill(null))();add(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"syscall";this.evaluateOpcode[e]={syscall:"machine"!==n,evaluate:t}}debugBefore(e,t){return{sp:void 0,pc:e.fetchValue(s.$pc),name:void 0,params:void 0,type:t.type,isMachine:t.isMachine,size:t.size,state:void 0}}debugAfter(e,t){}evaluate(e,t,n){let i=(0,o.unwrap)(this.evaluateOpcode[n]);i.syscall?((0,o.assert)(!t.isMachine,`BUG: Mismatch between operation.syscall (${i.syscall}) and opcode.isMachine (${t.isMachine}) for ${t.type}`),i.evaluate(e,t)):((0,o.assert)(t.isMachine,`BUG: Mismatch between operation.syscall (${i.syscall}) and opcode.isMachine (${t.isMachine}) for ${t.type}`),i.evaluate(e[g],t))}},ec=Symbol("TYPE"),ed=Symbol("INNER"),ep=Symbol("OWNER"),eh=Symbol("ARGS"),em=Symbol("RESOLVED"),eg=new WeakSet;function ef(e){return eg.has(e)}function e_(e,t){return ef(e)&&e[ec]===t}class ey{[ec];[ed];[ep];[eh];[em];constructor(e,t,n,i){let s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];eg.add(this),this[ec]=e,this[ed]=t,this[ep]=n,this[eh]=i,this[em]=s}}function eb(e){let t,n,i,s,r,o=e;for(;;){let{[eh]:e,[ed]:a}=o;if(null!==e){let{named:i,positional:s}=e;s.length>0&&(t=void 0===t?s:s.concat(t)),void 0===n&&(n=[]),n.unshift(i)}if(!ef(a)){i=a,s=o[ep],r=o[em];break}o=a}return{definition:i,owner:s,resolved:r,positional:t,named:n}}function ev(e,t,n,i){let s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return new ey(e,t,n,i,s)}function ew(e){return"getDebugCustomRenderTree"in e}eu.add(s.Op.ChildScope,e=>e.pushChildScope()),eu.add(s.Op.PopScope,e=>e.popScope()),eu.add(s.Op.PushDynamicScope,e=>e.pushDynamicScope()),eu.add(s.Op.PopDynamicScope,e=>e.popDynamicScope()),eu.add(s.Op.Constant,(e,t)=>{let{op1:n}=t;e.stack.push(e[w].getValue((0,o.decodeHandle)(n)))}),eu.add(s.Op.ConstantReference,(e,t)=>{let{op1:n}=t;e.stack.push((0,r.createConstRef)(e[w].getValue((0,o.decodeHandle)(n)),!1))}),eu.add(s.Op.Primitive,(e,t)=>{let{op1:n}=t,i=e.stack;if((0,o.isHandle)(n)){let t=e[w].getValue((0,o.decodeHandle)(n));i.push(t)}else i.push((0,o.decodeImmediate)(n))}),eu.add(s.Op.PrimitiveReference,e=>{let t,n=e.stack,i=n.pop();t=void 0===i?r.UNDEFINED_REFERENCE:null===i?r.NULL_REFERENCE:!0===i?r.TRUE_REFERENCE:!1===i?r.FALSE_REFERENCE:(0,r.createPrimitiveRef)(i),n.push(t)}),eu.add(s.Op.Dup,(e,t)=>{let{op1:n,op2:i}=t,s=e.fetchValue(n)-i;e.stack.dup(s)}),eu.add(s.Op.Pop,(e,t)=>{let{op1:n}=t;e.stack.pop(n)}),eu.add(s.Op.Load,(e,t)=>{let{op1:n}=t;e.load(n)}),eu.add(s.Op.Fetch,(e,t)=>{let{op1:n}=t;e.fetch(n)}),eu.add(s.Op.BindDynamicScope,(e,t)=>{let{op1:n}=t,i=e[w].getArray(n);e.bindDynamicScope(i)}),eu.add(s.Op.Enter,(e,t)=>{let{op1:n}=t;e.enter(n)}),eu.add(s.Op.Exit,e=>{e.exit()}),eu.add(s.Op.PushSymbolTable,(e,t)=>{let{op1:n}=t;e.stack.push(e[w].getValue(n))}),eu.add(s.Op.PushBlockScope,e=>{e.stack.push(e.scope())}),eu.add(s.Op.CompileBlock,e=>{let t=e.stack,n=t.pop();n?t.push(e.compile(n)):t.push(null)}),eu.add(s.Op.InvokeYield,e=>{let{stack:t}=e,n=t.pop(),i=t.pop(),s=t.pop();(0,o.assert)(null===s||s&&"object"==typeof s&&Array.isArray(s.parameters),`Expected top of stack to be Option, was ${String(s)}`);let r=t.pop();if(null===s)return e.pushFrame(),void e.pushScope(i??e.scope());let a=(0,o.expect)(i,"BUG: expected scope");{let e=s.parameters,t=e.length;if(t>0){a=a.child();for(let n=0;n{let{op1:n}=t,i=e.stack.pop(),s=!!(0,r.valueForRef)(i);(0,r.isConstRef)(i)?!0===s&&e.goto(n):(!0===s&&e.goto(n),e.updateWith(new ek(i)))}),eu.add(s.Op.JumpUnless,(e,t)=>{let{op1:n}=t,i=e.stack.pop(),s=!!(0,r.valueForRef)(i);(0,r.isConstRef)(i)?!1===s&&e.goto(n):(!1===s&&e.goto(n),e.updateWith(new ek(i)))}),eu.add(s.Op.JumpEq,(e,t)=>{let{op1:n,op2:i}=t;e.stack.peek()===i&&e.goto(n)}),eu.add(s.Op.AssertSame,e=>{let t=e.stack.peek();!1===(0,r.isConstRef)(t)&&e.updateWith(new ek(t))}),eu.add(s.Op.ToBoolean,e=>{let{stack:t}=e,n=t.pop();t.push((0,r.createComputeRef)(()=>(0,l.toBool)((0,r.valueForRef)(n))))});class ek{last;constructor(e){this.ref=e,this.last=(0,r.valueForRef)(e)}evaluate(e){let{last:t,ref:n}=this;t!==(0,r.valueForRef)(n)&&e.throw()}}class ex{last;constructor(e,t){this.ref=e,this.filter=t,this.last=t((0,r.valueForRef)(e))}evaluate(e){let{last:t,ref:n,filter:i}=this;t!==i((0,r.valueForRef)(n))&&e.throw()}}class eT{tag=(()=>c.CONSTANT_TAG)();lastRevision=(()=>c.INITIAL)();target;finalize(e,t){this.target=t,this.didModify(e)}evaluate(e){let{tag:t,target:n,lastRevision:i}=this;!e.alwaysRevalidate&&(0,c.validateTag)(t,i)&&((0,c.consumeTag)(t),e.goto((0,o.expect)(n,"VM BUG: Target must be set before attempting to jump")))}didModify(e){this.tag=e,this.lastRevision=(0,c.valueForTag)(this.tag),(0,c.consumeTag)(e)}}class eS{constructor(e){this.debugLabel=e}evaluate(){(0,c.beginTrackFrame)(this.debugLabel)}}class eC{constructor(e){this.target=e}evaluate(){let e=(0,c.endTrackFrame)();this.target.didModify(e)}}eu.add(s.Op.Text,(e,t)=>{let{op1:n}=t;e.elements().appendText(e[w].getValue(n))}),eu.add(s.Op.Comment,(e,t)=>{let{op1:n}=t;e.elements().appendComment(e[w].getValue(n))}),eu.add(s.Op.OpenElement,(e,t)=>{let{op1:n}=t;e.elements().openElement(e[w].getValue(n))}),eu.add(s.Op.OpenDynamicElement,e=>{let t=(0,r.valueForRef)(e.stack.pop());e.elements().openElement(t)}),eu.add(s.Op.PushRemoteElement,e=>{let t=e.stack.pop(),n=e.stack.pop(),i=e.stack.pop(),s=(0,r.valueForRef)(t),o=(0,r.valueForRef)(n),l=(0,r.valueForRef)(i);(0,r.isConstRef)(t)||e.updateWith(new ek(t)),void 0===o||(0,r.isConstRef)(n)||e.updateWith(new ek(n));let u=e.elements().pushRemoteElement(s,l,o);if(u&&e.associateDestroyable(u),void 0!==e.env.debugRenderTree){let i=eH(void 0===o?{}:{insertBefore:n},[t]);e.env.debugRenderTree.create(u,{type:"keyword",name:"in-element",args:i,instance:null}),(0,a.registerDestructor)(u,()=>{e.env.debugRenderTree?.willDestroy(u)})}}),eu.add(s.Op.PopRemoteElement,e=>{let t=e.elements().popRemoteElement();void 0!==e.env.debugRenderTree&&e.env.debugRenderTree.didRender(t,t)}),eu.add(s.Op.FlushElement,e=>{let t=e.fetchValue(s.$t0),n=null;t&&(n=t.flush(e),e.loadValue(s.$t0,null)),e.elements().flushElement(n)}),eu.add(s.Op.CloseElement,e=>{let t=e.elements().closeElement();null!==t&&t.forEach(t=>{e.env.scheduleInstallModifier(t);let n=t.manager.getDestroyable(t.state);null!==n&&e.associateDestroyable(n)})}),eu.add(s.Op.Modifier,(e,t)=>{let{op1:n}=t;if(!1===e.env.isInteractive)return;let i=e.getOwner(),r=e.stack.pop(),a=e[w].getValue(n),{manager:l}=a,{constructing:u}=e.elements(),d=r.capture(),p=l.create(i,(0,o.expect)(u,"BUG: ElementModifier could not find the element it applies to"),a.state,d),h={manager:l,state:p,definition:a};(0,o.expect)(e.fetchValue(s.$t0),"BUG: ElementModifier could not find operations to append to").addModifier(e,h,d);let m=l.getTag(p);return null!==m?((0,c.consumeTag)(m),e.updateWith(new eE(m,h))):void 0}),eu.add(s.Op.DynamicModifier,e=>{if(!1===e.env.isInteractive)return;let{stack:t}=e,n=t.pop(),i=t.pop().capture(),{positional:a,named:l}=i,{constructing:d}=e.elements(),p=e.getOwner(),h=(0,r.createComputeRef)(()=>{let e,t,c=(0,r.valueForRef)(n);if(!(0,o.isObject)(c))return;if(e_(c,s.CurriedType.Modifier)){let{definition:n,owner:s,positional:r,named:o}=eb(c);t=n,e=s,void 0!==r&&(i.positional=r.concat(a)),void 0!==o&&(i.named=Object.assign({},...o,l))}else t=c,e=p;let h=(0,u.getInternalModifierManager)(t,!0);if(null===h)throw Error("BUG: modifier manager expected");let m={resolvedName:null,manager:h,state:t},g=h.create(e,(0,o.expect)(d,"BUG: ElementModifier could not find the element it applies to"),m.state,i);return{manager:h,state:g,definition:m}}),m=(0,r.valueForRef)(h),g=null;return void 0!==m&&((0,o.expect)(e.fetchValue(s.$t0),"BUG: ElementModifier could not find operations to append to").addModifier(e,m,i),null!==(g=m.manager.getTag(m.state))&&(0,c.consumeTag)(g)),!(0,r.isConstRef)(n)||g?e.updateWith(new eA(g,m,h)):void 0});class eE{lastUpdated;constructor(e,t){this.tag=e,this.modifier=t,this.lastUpdated=(0,c.valueForTag)(e)}evaluate(e){let{modifier:t,tag:n,lastUpdated:i}=this;(0,c.consumeTag)(n),(0,c.validateTag)(n,i)||(e.env.scheduleUpdateModifier(t),this.lastUpdated=(0,c.valueForTag)(n))}}class eA{lastUpdated;constructor(e,t,n){this.tag=e,this.instance=t,this.instanceRef=n,this.lastUpdated=(0,c.valueForTag)(e??c.CURRENT_TAG)}evaluate(e){let{tag:t,lastUpdated:n,instance:i,instanceRef:s}=this,o=(0,r.valueForRef)(s);if(o!==i){if(void 0!==i){let e=i.manager.getDestroyable(i.state);null!==e&&(0,a.destroy)(e)}if(void 0!==o){let{manager:n,state:i}=o,s=n.getDestroyable(i);null!==s&&(0,a.associateDestroyableChild)(this,s),null!==(t=n.getTag(i))&&(this.lastUpdated=(0,c.valueForTag)(t)),this.tag=t,e.env.scheduleInstallModifier(o)}this.instance=o}else null===t||(0,c.validateTag)(t,n)||(e.env.scheduleUpdateModifier(i),this.lastUpdated=(0,c.valueForTag)(t));null!==t&&(0,c.consumeTag)(t)}}eu.add(s.Op.StaticAttr,(e,t)=>{let{op1:n,op2:i,op3:s}=t,r=e[w].getValue(n),o=e[w].getValue(i),a=s?e[w].getValue(s):null;e.elements().setStaticAttribute(r,o,a)}),eu.add(s.Op.DynamicAttr,(e,t)=>{let{op1:n,op2:i,op3:s}=t,o=e[w].getValue(n),a=e[w].getValue(i),l=e.stack.pop(),u=(0,r.valueForRef)(l),c=s?e[w].getValue(s):null,d=e.elements().setDynamicAttribute(o,u,a,c);(0,r.isConstRef)(l)||e.updateWith(new eD(l,d,e.env))});class eD{updateRef;constructor(e,t,n){let i=!1;this.updateRef=(0,r.createComputeRef)(()=>{let s=(0,r.valueForRef)(e);!0===i?t.update(s,n):i=!0}),(0,r.valueForRef)(this.updateRef)}evaluate(){(0,r.valueForRef)(this.updateRef)}}eu.add(s.Op.PushComponentDefinition,(e,t)=>{let{op1:n}=t,i=e[w].getValue(n);(0,o.assert)(!!i,`Missing component for ${n}`);let{manager:s,capabilities:r}=i;e.stack.push({definition:i,manager:s,capabilities:r,state:null,handle:null,table:null,lookup:null})}),eu.add(s.Op.ResolveDynamicComponent,(e,t)=>{let{op1:n}=t,i,a=e.stack,l=(0,r.valueForRef)(a.pop()),u=e[w],c=e.getOwner();if(u.getValue(n),e.loadValue(s.$t1,null),"string"==typeof l){let t=function(e,t,n,i){let s=e.lookupComponent(n,(0,o.expect)(i,"BUG: expected owner when looking up component"));return t.resolvedComponent(s,n)}(e.runtime.resolver,u,l,c);i=(0,o.expect)(t,`Could not find a component named "${l}"`)}else i=ef(l)?l:u.component(l,c);a.push(i)}),eu.add(s.Op.ResolveCurriedComponent,e=>{let t,n=e.stack,i=n.pop(),s=(0,r.valueForRef)(i),o=e[w];t=ef(s)?s:o.component(s,e.getOwner(),!0),n.push(t)}),eu.add(s.Op.PushDynamicComponentInstance,e=>{let t,n,{stack:i}=e,s=i.pop();ef(s)?n=t=null:(n=s.manager,t=s.capabilities),i.push({definition:s,capabilities:t,manager:n,state:null,handle:null,table:null})}),eu.add(s.Op.PushArgs,(e,t)=>{let{op1:n,op2:i,op3:s}=t,r=e.stack,a=e[w].getArray(n),l=7&s?e[w].getArray(i):o.EMPTY_STRING_ARRAY;e[k].setup(r,a,l,s>>4,!!(8&s)),r.push(e[k])}),eu.add(s.Op.PushEmptyArgs,e=>{let{stack:t}=e;t.push(e[k].empty(t))}),eu.add(s.Op.CaptureArgs,e=>{let t=e.stack,n=t.pop().capture();t.push(n)}),eu.add(s.Op.PrepareArgs,(e,t)=>{let{op1:n}=t,i=e.stack,r=e.fetchValue(n),a=i.pop(),{definition:l}=r;if(e_(l,s.CurriedType.Component)){(0,o.assert)(!l.manager,"If the component definition was curried, we don't yet have a manager");let t=e[w],{definition:n,owner:i,resolved:u,positional:c,named:d}=eb(l);if(!0===u)l=n;else if("string"==typeof n){let s=e.runtime.resolver.lookupComponent(n,i);l=t.resolvedComponent((0,o.expect)(s,"BUG: expected resolved component"),n)}else l=t.component(n,i);void 0!==d&&a.named.merge((0,o.assign)({},...d)),void 0!==c&&(a.realloc(c.length),a.positional.prepend(c));let{manager:p}=l;(0,o.assert)(null===r.manager,"component instance manager should not be populated yet"),(0,o.assert)(null===r.capabilities,"component instance manager should not be populated yet"),r.definition=l,r.manager=p,r.capabilities=l.capabilities,e.loadValue(s.$t1,i)}let{manager:c,state:d}=l,p=r.capabilities;if(!(0,u.managerHasCapability)(c,p,s.InternalComponentCapabilities.prepareArgs))return void i.push(a);let h=a.blocks.values,m=a.blocks.names,g=c.prepareArgs(d,a);if(g){a.clear();for(let e=0;e{let{op1:n,op2:i}=t,r=e.fetchValue(i),{definition:o,manager:a,capabilities:l}=r;if(!(0,u.managerHasCapability)(a,l,s.InternalComponentCapabilities.createInstance))return;let c=null;(0,u.managerHasCapability)(a,l,s.InternalComponentCapabilities.dynamicScope)&&(c=e.dynamicScope());let d=null;(0,u.managerHasCapability)(a,l,s.InternalComponentCapabilities.createArgs)&&(d=e.stack.peek());let p=null;(0,u.managerHasCapability)(a,l,s.InternalComponentCapabilities.createCaller)&&(p=e.getSelf());let h=a.create(e.getOwner(),o.state,d,e.env,c,p,!!(1&n));r.state=h,(0,u.managerHasCapability)(a,l,s.InternalComponentCapabilities.updateHook)&&e.updateWith(new eM(h,a,c))}),eu.add(s.Op.RegisterComponentDestructor,(e,t)=>{let{op1:n}=t,{manager:i,state:s,capabilities:r}=e.fetchValue(n),o=i.getDestroyable(s);o&&e.associateDestroyable(o)}),eu.add(s.Op.BeginComponentTransaction,(e,t)=>{let n,{op1:i}=t;e.beginCacheGroup(n),e.elements().pushSimpleBlock()}),eu.add(s.Op.PutComponentOperations,e=>{e.loadValue(s.$t0,new eI)}),eu.add(s.Op.ComponentAttr,(e,t)=>{let{op1:n,op2:i,op3:r}=t,o=e[w].getValue(n),a=e[w].getValue(i),l=e.stack.pop(),u=r?e[w].getValue(r):null;e.fetchValue(s.$t0).setAttribute(o,l,a,u)}),eu.add(s.Op.StaticComponentAttr,(e,t)=>{let{op1:n,op2:i,op3:r}=t,o=e[w].getValue(n),a=e[w].getValue(i),l=r?e[w].getValue(r):null;e.fetchValue(s.$t0).setStaticAttribute(o,a,l)});class eI{attributes=(()=>(0,o.dict)())();classes=[];modifiers=[];setAttribute(e,t,n,i){"class"===e&&this.classes.push(t),this.attributes[e]={value:t,namespace:i,trusting:n}}setStaticAttribute(e,t,n){"class"===e&&this.classes.push(t),this.attributes[e]={value:t,namespace:n}}addModifier(e,t,n){if(this.modifiers.push(t),void 0!==e.env.debugRenderTree){let{manager:i,definition:s,state:r}=t;if(null===r||"object"!=typeof r&&"function"!=typeof r)return;let{element:l,constructing:u}=e.elements(),c=i.getDebugName(s.state),d=i.getDebugInstance(r);(0,o.assert)(u,"Expected a constructing element in addModifier");let p=new T(l,u,u);e.env.debugRenderTree.create(r,{type:"modifier",name:c,args:n,instance:d}),e.env.debugRenderTree.didRender(r,p),e.associateDestroyable(r),e.updateWith(new eN(r)),e.updateWith(new eO(r,p)),(0,a.registerDestructor)(r,()=>{e.env.debugRenderTree?.willDestroy(r)})}}flush(e){let t,n=this.attributes;for(let i in this.attributes){if("type"===i){t=n[i];continue}let s=(0,o.unwrap)(this.attributes[i]);"class"===i?eP(e,"class",function(e){return 0===e.length?"":1===e.length?(0,o.unwrap)(e[0]):!function(e){return e.every(e=>"string"==typeof e)}(e)?(0,r.createComputeRef)(()=>{let t=[];for(let n of e){let e=E("string"==typeof n?n:(0,r.valueForRef)(n));e&&t.push(e)}return 0===t.length?null:t.join(" ")}):e.join(" ")}(this.classes),s.namespace,s.trusting):eP(e,i,s.value,s.namespace,s.trusting)}return void 0!==t&&eP(e,"type",t.value,t.namespace,t.trusting),this.modifiers}}function eP(e,t,n,i){let s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if("string"==typeof n)e.elements().setStaticAttribute(t,n,i);else{let o=e.elements().setDynamicAttribute(t,(0,r.valueForRef)(n),s,i);(0,r.isConstRef)(n)||e.updateWith(new eD(n,o,e.env))}}eu.add(s.Op.DidCreateElement,(e,t)=>{let{op1:n}=t,{definition:i,state:r}=e.fetchValue(n),{manager:a}=i,l=e.fetchValue(s.$t0);a.didCreateElement(r,(0,o.expect)(e.elements().constructing,"Expected a constructing element in DidCreateOpcode"),l)}),eu.add(s.Op.GetComponentSelf,(e,t)=>{let{op1:n,op2:i}=t,{definition:l,state:c}=e.fetchValue(n),{manager:d}=l,p=d.getSelf(c);if(void 0!==e.env.debugRenderTree){let t,l,d=e.fetchValue(n),{definition:h,manager:m}=d;if(e.stack.peek()===e[k])t=e[k].capture();else{let n=e[w].getArray(i);e[k].setup(e.stack,n,[],0,!0),t=e[k].capture()}let g=h.compilable;if(null===g?((0,o.assert)((0,u.managerHasCapability)(m,d.capabilities,s.InternalComponentCapabilities.dynamicLayout),"BUG: No template was found for this component, and the component did not have the dynamic layout capability"),l=null!==(g=m.getDynamicLayout(c,e.runtime.resolver))?g.moduleName:"__default__.hbs"):l=g.moduleName,e.associateDestroyable(d),ew(m))m.getDebugCustomRenderTree(d.definition.state,d.state,t,l).forEach(t=>{let{bucket:n}=t;e.env.debugRenderTree.create(n,t),(0,a.registerDestructor)(d,()=>{e.env.debugRenderTree?.willDestroy(n)}),e.updateWith(new eN(n))});else{let n=h.resolvedName??m.getDebugName(h.state);e.env.debugRenderTree.create(d,{type:"component",name:n,args:t,template:l,instance:(0,r.valueForRef)(p)}),(0,a.registerDestructor)(d,()=>{e.env.debugRenderTree?.willDestroy(d)}),e.updateWith(new eN(d))}}e.stack.push(p)}),eu.add(s.Op.GetComponentTagName,(e,t)=>{let{op1:n}=t,{definition:i,state:s}=e.fetchValue(n),{manager:r}=i,o=r.getTagName(s);e.stack.push(o)}),eu.add(s.Op.GetComponentLayout,(e,t)=>{let{op1:n}=t,i=e.fetchValue(n),{manager:r,definition:a}=i,{stack:l}=e,{compilable:c}=a;if(null===c){let{capabilities:t}=i;(0,o.assert)((0,u.managerHasCapability)(r,t,s.InternalComponentCapabilities.dynamicLayout),"BUG: No template was found for this component, and the component did not have the dynamic layout capability"),null===(c=r.getDynamicLayout(i.state,e.runtime.resolver))&&(c=(0,u.managerHasCapability)(r,t,s.InternalComponentCapabilities.wrapped)?(0,o.unwrapTemplate)(e[w].defaultTemplate).asWrappedLayout():(0,o.unwrapTemplate)(e[w].defaultTemplate).asLayout())}let d=c.compile(e.context);l.push(c.symbolTable),l.push(d)}),eu.add(s.Op.Main,(e,t)=>{let{op1:n}=t,i=e.stack.pop(),s=e.stack.pop(),{manager:r,capabilities:o}=i,a={definition:i,manager:r,capabilities:o,state:null,handle:s.handle,table:s.symbolTable,lookup:null};e.loadValue(n,a)}),eu.add(s.Op.PopulateLayout,(e,t)=>{let{op1:n}=t,{stack:i}=e,s=i.pop(),r=i.pop(),o=e.fetchValue(n);o.handle=s,o.table=r}),eu.add(s.Op.VirtualRootScope,(e,t)=>{let{op1:n}=t,i,{table:r,manager:o,capabilities:a,state:l}=e.fetchValue(n);(0,u.managerHasCapability)(o,a,s.InternalComponentCapabilities.hasSubOwner)?(i=o.getOwner(l),e.loadValue(s.$t1,null)):null===(i=e.fetchValue(s.$t1))?i=e.getOwner():e.loadValue(s.$t1,null),e.pushRootScope(r.symbols.length+1,i)}),eu.add(s.Op.SetupForEval,(e,t)=>{let{op1:n}=t,i=e.fetchValue(n);if(i.table.hasEval){let t=i.lookup=(0,o.dict)();e.scope().bindEvalScope(t)}}),eu.add(s.Op.SetNamedVariables,(e,t)=>{let{op1:n}=t,i=e.fetchValue(n),s=e.scope(),r=e.stack.peek(),a=r.named.atNames;for(let e=a.length-1;e>=0;e--){let t=(0,o.unwrap)(a[e]),n=i.table.symbols.indexOf(t),l=r.named.get(t,!0);-1!==n&&s.bindSymbol(n+1,l),i.lookup&&(i.lookup[t]=l)}}),eu.add(s.Op.SetBlocks,(e,t)=>{let{op1:n}=t,i=e.fetchValue(n),{blocks:s}=e.stack.peek();for(let[t]of(0,o.enumerate)(s.names))(function(e,t,n,i,s){let r=n.table.symbols.indexOf(e),o=i.get(t);-1!==r&&s.scope().bindBlock(r+1,o),n.lookup&&(n.lookup[e]=o)})((0,o.unwrap)(s.symbolNames[t]),(0,o.unwrap)(s.names[t]),i,s,e)}),eu.add(s.Op.InvokeComponentLayout,(e,t)=>{let{op1:n}=t,i=e.fetchValue(n);e.call(i.handle)}),eu.add(s.Op.DidRenderLayout,(e,t)=>{let{op1:n}=t,i=e.fetchValue(n),{manager:r,state:o,capabilities:a}=i,l=e.elements().popBlock();void 0!==e.env.debugRenderTree&&(ew(r)?r.getDebugCustomRenderTree(i.definition.state,o,eZ).reverse().forEach(t=>{let{bucket:n}=t;e.env.debugRenderTree.didRender(n,l),e.updateWith(new eO(n,l))}):(e.env.debugRenderTree.didRender(i,l),e.updateWith(new eO(i,l)))),(0,u.managerHasCapability)(r,a,s.InternalComponentCapabilities.createInstance)&&(r.didRenderLayout(o,l),e.env.didCreate(i),e.updateWith(new eF(i,l)))}),eu.add(s.Op.CommitComponentTransaction,e=>{e.commitCacheGroup()});class eM{constructor(e,t,n){this.component=e,this.manager=t,this.dynamicScope=n}evaluate(e){let{component:t,manager:n,dynamicScope:i}=this;n.update(t,i)}}class eF{constructor(e,t){this.component=e,this.bounds=t}evaluate(e){let{component:t,bounds:n}=this,{manager:i,state:s}=t;i.didUpdateLayout(s,n),e.env.didUpdate(t)}}class eN{constructor(e){this.bucket=e}evaluate(e){e.env.debugRenderTree?.update(this.bucket)}}class eO{constructor(e,t){this.bucket=e,this.bounds=t}evaluate(e){e.env.debugRenderTree?.didRender(this.bucket,this.bounds)}}class eL{stack=null;positional=(()=>new eU)();named=(()=>new ej)();blocks=(()=>new e$)();empty(e){let t=e[y][s.$sp]+1;return this.named.empty(e,t),this.positional.empty(e,t),this.blocks.empty(e,t),this}setup(e,t,n,i,r){this.stack=e;let o=this.named,a=t.length,l=e[y][s.$sp]-a+1;o.setup(e,l,a,t,r);let u=l-i;this.positional.setup(e,u,i);let c=this.blocks,d=n.length;c.setup(e,u-3*d,d,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:i}=this,r=n.base+e;for(let e=n.length+i.length-1;e>=0;e--)t.copy(e+n.base,e+r);n.base+=e,i.base+=e,t[y][s.$sp]+=e}}capture(){let e=0===this.positional.length?eX:this.positional.capture();return{named:0===this.named.length?eJ:this.named.capture(),positional:e}}clear(){let{stack:e,length:t}=this;t>0&&null!==e&&e.pop(t)}}let eR=(0,o.emptyArray)();class eU{base=0;length=0;stack=null;_references=null;empty(e,t){this.stack=e,this.base=t,this.length=0,this._references=eR}setup(e,t,n){this.stack=e,this.base=t,this.length=n,this._references=0===n?eR:null}at(e){let{base:t,length:n,stack:i}=this;return e<0||e>=n?r.UNDEFINED_REFERENCE:i.get(e,t)}capture(){return this.references}prepend(e){let t=e.length;if(t>0){let{base:n,length:i,stack:s}=this;this.base=n-=t,this.length=i+t;for(let i=0;io.EMPTY_STRING_ARRAY)();_atNames=(()=>o.EMPTY_STRING_ARRAY)();empty(e,t){this.stack=e,this.base=t,this.length=0,this._references=eR,this._names=o.EMPTY_STRING_ARRAY,this._atNames=o.EMPTY_STRING_ARRAY}setup(e,t,n,i,s){this.stack=e,this.base=t,this.length=n,0===n?(this._references=eR,this._names=o.EMPTY_STRING_ARRAY,this._atNames=o.EMPTY_STRING_ARRAY):(this._references=null,s?(this._names=null,this._atNames=i):(this._names=i,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){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{base:n,stack:i}=this,s=(t?this.atNames:this.names).indexOf(e);return -1===s?r.UNDEFINED_REFERENCE:i.get(s,n)}capture(){let{names:e,references:t}=this,n=(0,o.dict)();for(let[i,s]of(0,o.enumerate)(e))n[s]=(0,o.unwrap)(t[i]);return n}merge(e){let t=Object.keys(e);if(t.length>0){let{names:n,length:i,stack:s}=this,r=n.slice();for(let n of t)-1===r.indexOf(n)&&(i=r.push(n),s.push(e[n]));this.length=i,this._references=null,this._names=r,this._atNames=null}}get references(){let e=this._references;if(!e){let{base:t,length:n,stack:i}=this;e=this._references=i.slice(t,t+n)}return e}toSyntheticName(e){return e.slice(1)}toAtName(e){return`@${e}`}}function eB(e){return`&${e}`}let ez=(0,o.emptyArray)();class e${internalValues=null;_symbolNames=null;internalTag=null;names=(()=>o.EMPTY_STRING_ARRAY)();length=0;base=0;empty(e,t){this.stack=e,this.names=o.EMPTY_STRING_ARRAY,this.base=t,this.length=0,this._symbolNames=null,this.internalTag=c.CONSTANT_TAG,this.internalValues=ez}setup(e,t,n,i){this.stack=e,this.names=i,this.base=t,this.length=n,this._symbolNames=null,0===n?(this.internalTag=c.CONSTANT_TAG,this.internalValues=ez):(this.internalTag=null,this.internalValues=null)}get values(){let e=this.internalValues;if(!e){let{base:t,length:n,stack:i}=this;e=this.internalValues=i.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:i}=this,s=i.get(3*t,n),r=i.get(3*t+1,n),o=i.get(3*t+2,n);return null===o?null:[o,r,s]}capture(){return new eq(this.names,this.values)}get symbolNames(){let e=this._symbolNames;return null===e&&(e=this._symbolNames=this.names.map(eB)),e}}class eq{length;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 eH(e,t){return{named:e,positional:t}}function eV(e){let t=(0,o.dict)();for(let[n,i]of Object.entries(e))t[n]=(0,r.valueForRef)(i);return t}function eW(e){return e.map(r.valueForRef)}function eK(e){return{named:eV(e.named),positional:eW(e.positional)}}let eG=Symbol("ARGUMENT_ERROR");function eY(e){return null!==e&&"object"==typeof e&&e[eG]}function eQ(e){return{[eG]:!0,error:e}}let eJ=Object.freeze(Object.create(null)),eX=eR,eZ=eH(eJ,eX);function e1(e,t){let n,i=(0,u.getInternalHelperManager)(e,!0);return null===i?n=null:(n="function"==typeof i?i:i.getHelper(e),(0,o.assert)(i,"BUG: expected manager or helper")),n}function e0(e){return(0,o.assert)(Array.isArray(e)||e===r.UNDEFINED_REFERENCE,"a reference other than UNDEFINED_REFERENCE is illegal here"),e===r.UNDEFINED_REFERENCE}eu.add(s.Op.Curry,(e,t)=>{let{op1:n,op2:i}=t,a=e.stack,l=a.pop(),u=a.pop(),c=e.getOwner();e.runtime.resolver,e.loadValue(s.$v0,function(e,t,n,i,a,l){let u,c;return(0,r.createComputeRef)(()=>{let a=(0,r.valueForRef)(t);return a===u||(c=e_(a,e)?i?ev(e,a,n,i):i:e===s.CurriedType.Component&&"string"==typeof a&&a?ev(e,a,n,i):(0,o.isObject)(a)?ev(e,a,n,i):null,u=a),c})}(n,l,c,u,0,0))}),eu.add(s.Op.DynamicHelper,e=>{let t,n=e.stack,i=n.pop(),l=n.pop().capture(),u=e.getOwner(),c=(0,r.createComputeRef)(()=>{void 0!==t&&(0,a.destroy)(t);let e=(0,r.valueForRef)(i);if(e_(e,s.CurriedType.Helper)){let{definition:n,owner:s,positional:r,named:u}=eb(e),d=e1(n,i);void 0!==u&&(l.named=(0,o.assign)({},...u,l.named)),void 0!==r&&(l.positional=r.concat(l.positional)),t=d(l,s),(0,a.associateDestroyableChild)(c,t)}else(0,o.isObject)(e)?(t=e1(e,i)(l,u),(0,a._hasDestroyableChildren)(t)&&(0,a.associateDestroyableChild)(c,t)):t=r.UNDEFINED_REFERENCE}),d=(0,r.createComputeRef)(()=>((0,r.valueForRef)(c),(0,r.valueForRef)(t)));e.associateDestroyable(c),e.loadValue(s.$v0,d)}),eu.add(s.Op.Helper,(e,t)=>{let{op1:n}=t,i=e.stack,r=e[w].getValue(n)(i.pop().capture(),e.getOwner(),e.dynamicScope());(0,a._hasDestroyableChildren)(r)&&e.associateDestroyable(r),e.loadValue(s.$v0,r)}),eu.add(s.Op.GetVariable,(e,t)=>{let{op1:n}=t,i=e.referenceForSymbol(n);e.stack.push(i)}),eu.add(s.Op.SetVariable,(e,t)=>{let{op1:n}=t,i=e.stack.pop();e.scope().bindSymbol(n,i)}),eu.add(s.Op.SetBlock,(e,t)=>{let{op1:n}=t,i=e.stack.pop(),s=e.stack.pop(),r=e.stack.pop();e.scope().bindBlock(n,[i,s,r])}),eu.add(s.Op.ResolveMaybeLocal,(e,t)=>{let{op1:n}=t,i=e[w].getValue(n),s=e.scope().getPartialMap()[i];void 0===s&&(s=(0,r.childRefFor)(e.getSelf(),i)),e.stack.push(s)}),eu.add(s.Op.RootScope,(e,t)=>{let{op1:n}=t;e.pushRootScope(n,e.getOwner())}),eu.add(s.Op.GetProperty,(e,t)=>{let{op1:n}=t,i=e[w].getValue(n),s=e.stack.pop();e.stack.push((0,r.childRefFor)(s,i))}),eu.add(s.Op.GetBlock,(e,t)=>{let{op1:n}=t,{stack:i}=e,s=e.scope().getBlock(n);i.push(s)}),eu.add(s.Op.SpreadBlock,e=>{let{stack:t}=e,n=t.pop();if(n&&!e0(n)){let[e,i,s]=n;t.push(s),t.push(i),t.push(e)}else t.push(null),t.push(null),t.push(null)}),eu.add(s.Op.HasBlock,e=>{let{stack:t}=e,n=t.pop();n&&!e0(n)?t.push(r.TRUE_REFERENCE):t.push(r.FALSE_REFERENCE)}),eu.add(s.Op.HasBlockParams,e=>{e.stack.pop(),e.stack.pop();let t=e.stack.pop(),n=t&&t.parameters.length;e.stack.push(n?r.TRUE_REFERENCE:r.FALSE_REFERENCE)}),eu.add(s.Op.Concat,(e,t)=>{let{op1:n}=t,i=Array(n);for(let t=n;t>0;t--)i[t-1]=e.stack.pop();e.stack.push((0,r.createComputeRef)(()=>{let e=[];for(let t of i){let n=(0,r.valueForRef)(t);null!=n&&e.push(function(e){return"string"==typeof e?e:"function"!=typeof e.toString?"":String(e)}(n))}return e.length>0?e.join(""):null}))}),eu.add(s.Op.IfInline,e=>{let t=e.stack.pop(),n=e.stack.pop(),i=e.stack.pop();e.stack.push((0,r.createComputeRef)(()=>!0===(0,l.toBool)((0,r.valueForRef)(t))?(0,r.valueForRef)(n):(0,r.valueForRef)(i)))}),eu.add(s.Op.Not,e=>{let t=e.stack.pop();e.stack.push((0,r.createComputeRef)(()=>!(0,l.toBool)((0,r.valueForRef)(t))))}),eu.add(s.Op.GetDynamicVar,e=>{let t=e.dynamicScope(),n=e.stack,i=n.pop();n.push((0,r.createComputeRef)(()=>{let e=String((0,r.valueForRef)(i));return(0,r.valueForRef)(t.get(e))}))}),eu.add(s.Op.Log,e=>{let{positional:t}=e.stack.pop().capture();e.loadValue(s.$v0,(0,r.createComputeRef)(()=>{console.log(...eW(t))}))});class e3{constructor(e,t,n){this.node=e,this.reference=t,this.lastValue=n}evaluate(){let e,t=(0,r.valueForRef)(this.reference),{lastValue:n}=this;t!==n&&(e=A(t)?"":P(t)?t:String(t))!==n&&(this.node.nodeValue=this.lastValue=e)}}function e2(e){return!function(e){return P(e)||A(e)||"boolean"==typeof e||"number"==typeof e}(e)?e_(e,s.CurriedType.Component)||(0,u.hasInternalComponentManager)(e)?s.ContentType.Component:e_(e,s.CurriedType.Helper)||(0,u.hasInternalHelperManager)(e)?s.ContentType.Helper:D(e)?s.ContentType.SafeString:!function(e){return I(e)&&11===e.nodeType}(e)?I(e)?s.ContentType.Node:s.ContentType.String:s.ContentType.Fragment:s.ContentType.String}function e8(e){return(0,o.isObject)(e)?e_(e,s.CurriedType.Component)||(0,u.hasInternalComponentManager)(e)?s.ContentType.Component:s.ContentType.Helper:s.ContentType.String}function e4(e,t){console.info("Use `context`, and `get()` to debug this template."),t("this")}eu.add(s.Op.ContentType,e=>{let t=e.stack.peek();e.stack.push(e2((0,r.valueForRef)(t))),(0,r.isConstRef)(t)||e.updateWith(new ex(t,e2))}),eu.add(s.Op.DynamicContentType,e=>{let t=e.stack.peek();e.stack.push(e8((0,r.valueForRef)(t))),(0,r.isConstRef)(t)||e.updateWith(new ex(t,e8))}),eu.add(s.Op.AppendHTML,e=>{let t=e.stack.pop(),n=(0,r.valueForRef)(t),i=A(n)?"":String(n);e.elements().appendDynamicHTML(i)}),eu.add(s.Op.AppendSafeHTML,e=>{let t=e.stack.pop(),n=(0,r.valueForRef)(t).toHTML(),i=A(n)?"":n;e.elements().appendDynamicHTML(i)}),eu.add(s.Op.AppendText,e=>{let t=e.stack.pop(),n=(0,r.valueForRef)(t),i=A(n)?"":String(n),s=e.elements().appendDynamicText(i);(0,r.isConstRef)(t)||e.updateWith(new e3(s,t,i))}),eu.add(s.Op.AppendDocumentFragment,e=>{let t=e.stack.pop(),n=(0,r.valueForRef)(t);e.elements().appendDynamicFragment(n)}),eu.add(s.Op.AppendNode,e=>{let t=e.stack.pop(),n=(0,r.valueForRef)(t);e.elements().appendDynamicNode(n)});let e7=e4;function e9(e){e7=e}function e5(){e7=e4}class e6{locals=(()=>(0,o.dict)())();constructor(e,t,n){for(let i of(this.scope=e,n)){let n=(0,o.unwrap)(t[i-1]),s=e.getSymbol(i);this.locals[n]=s}}get(e){let t,{scope:n,locals:i}=this,s=e.split("."),[a,...l]=e.split("."),u=n.getEvalScope();return"this"===a?t=n.getSelf():i[a]?t=(0,o.unwrap)(i[a]):0===a.indexOf("@")&&u[a]?t=u[a]:(t=this.scope.getSelf(),l=s),l.reduce((e,t)=>(0,r.childRefFor)(e,t),t)}}eu.add(s.Op.Debugger,(e,t)=>{let{op1:n,op2:i}=t,s=e[w].getArray(n),a=e[w].getArray((0,o.decodeHandle)(i)),l=new e6(e.scope(),s,a);e7((0,r.valueForRef)(e.getSelf()),e=>(0,r.valueForRef)(l.get(e)))}),eu.add(s.Op.EnterList,(e,t)=>{let{op1:n,op2:i}=t,s=e.stack,o=s.pop(),a=s.pop(),l=(0,r.valueForRef)(a),u=null===l?"@identity":String(l),c=(0,r.createIteratorRef)(o,u),d=(0,r.valueForRef)(c);e.updateWith(new ex(c,e=>e.isEmpty())),!0===d.isEmpty()?e.goto(i+1):(e.enterList(c,n),e.stack.push(d))}),eu.add(s.Op.ExitList,e=>{e.exitList()}),eu.add(s.Op.Iterate,(e,t)=>{let{op1:n}=t,i=e.stack.peek().next();null!==i?e.registerItem(e.enterItem(i)):e.goto(n)});let te={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};class tt{getCapabilities(){return te}getDebugName(e){let{name:t}=e;return t}getSelf(){return r.NULL_REFERENCE}getDestroyable(){return null}}let tn=new tt;class ti{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"@glimmer/component/template-only",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"(unknown template-only component)";this.moduleName=e,this.name=t}toString(){return this.moduleName}}function ts(e,t){return new ti(e,t)}(0,u.setInternalComponentManager)(tn,ti.prototype);let tr={foreignObject:1,desc:1,title:1},to=Object.create(null);class ta{constructor(e){this.document=e,this.setupUselessElement()}setupUselessElement(){this.uselessElement=this.document.createElement("div")}createElement(e,t){let n,i;if(t?(n=t.namespaceURI===o.NS_SVG||"svg"===e,i=!!tr[t.tagName]):(n="svg"===e,i=!1),n&&!i){if(to[e])throw Error(`Cannot create a ${e} inside an SVG context`);return this.document.createElementNS(o.NS_SVG,e)}return this.document.createElement(e)}insertBefore(e,t,n){e.insertBefore(t,n)}insertHTMLBefore(e,t,n){let i;if(""===n){let n=this.createComment("");return e.insertBefore(n,t),new T(e,n,n)}let s=t?t.previousSibling:e.lastChild;if(null===t)e.insertAdjacentHTML(o.INSERT_BEFORE_END,n),i=(0,o.expect)(e.lastChild,"bug in insertAdjacentHTML?");else if(t instanceof HTMLElement)t.insertAdjacentHTML("beforebegin",n),i=(0,o.expect)(t.previousSibling,"bug in insertAdjacentHTML?");else{let{uselessElement:s}=this;e.insertBefore(s,t),s.insertAdjacentHTML(o.INSERT_BEFORE_BEGIN,n),i=(0,o.expect)(s.previousSibling,"bug in insertAdjacentHTML?"),e.removeChild(s)}let r=(0,o.expect)(s?s.nextSibling:e.firstChild,"bug in insertAdjacentHTML?");return new T(e,r,i)}createTextNode(e){return this.document.createTextNode(e)}createComment(e){return this.document.createComment(e)}}function tl(e,t,n){if(!e||!function(e,t){let n=e.createElementNS(t,"svg");try{n.insertAdjacentHTML(o.INSERT_BEFORE_END,"")}catch(e){}finally{return 1!==n.childNodes.length||(0,o.castToBrowser)((0,o.unwrap)(n.firstChild),"SVG").namespaceURI!==o.NS_SVG}}(e,n))return t;let i=e.createElement("div");return class extends t{insertHTMLBefore(e,t,s){return""===s||e.namespaceURI!==n?super.insertHTMLBefore(e,t,s):function(e,t,n,i){let s;return((0,o.assert)(""!==n,"html cannot be empty"),"FOREIGNOBJECT"===e.tagName.toUpperCase())?((0,o.clearElement)(t),t.insertAdjacentHTML(o.INSERT_AFTER_BEGIN,""),s=t.firstChild.firstChild):((0,o.clearElement)(t),t.insertAdjacentHTML(o.INSERT_AFTER_BEGIN,""),s=t.firstChild),function(e,t,n){let i=(0,o.expect)(e.firstChild,"source is empty"),s=i,r=i;for(;r;){let e=r.nextSibling;t.insertBefore(r,n),s=r,r=e}return new T(t,i,s)}(s,e,i)}(e,i,s,t)}}}function tu(e,t){return e&&function(e){let t=e.createElement("div");return t.appendChild(e.createTextNode("first")),t.insertAdjacentHTML(o.INSERT_BEFORE_END,"second"),2!==t.childNodes.length}(e)?class extends t{uselessComment;constructor(e){super(e),this.uselessComment=e.createComment("")}insertHTMLBefore(e,t,n){if(""===n)return super.insertHTMLBefore(e,t,n);let i=!1,s=t?t.previousSibling:e.lastChild;s&&s instanceof Text&&(i=!0,e.insertBefore(this.uselessComment,t));let r=super.insertHTMLBefore(e,t,n);return i&&e.removeChild(this.uselessComment),r}}:t}let tc="undefined"==typeof document?null:(0,o.castToSimple)(document),td=class extends ta{createElementNS(e,t){return this.document.createElementNS(e,t)}setAttribute(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}};td=tu(tc,td);let tp=td=tl(tc,td,o.NS_SVG);["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=>to[e]=1);let th=/[\t\n\v\f\r \xA0\u{1680}\u{180e}\u{2000}-\u{200a}\u{2028}\u{2029}\u{202f}\u{205f}\u{3000}\u{feff}]/u,tm="undefined"==typeof document?null:(0,o.castToSimple)(document);function tg(e){return th.test(e)}class tf extends ta{namespace;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 t_=tf;t_=tu(tm,t_);let ty=t_=tl(tm,t_,o.NS_SVG),tb=0;class tv{id=(()=>tb++)();value;constructor(e){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 tw{stack=(()=>new o.Stack)();refs=(()=>new WeakMap)();roots=(()=>new Set)();nodes=(()=>new WeakMap)();begin(){this.reset()}create(e,t){let n=(0,o.assign)({},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){(0,o.expect)(this.refs.get(e),"BUG: missing ref").release()}commit(){this.reset()}capture(){return this.captureRefs(this.roots)}reset(){if(0!==this.stack.size){let e=(0,o.expect)(this.stack.toArray()[0],"expected root state when resetting render tree"),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(0,o.expect)(this.nodes.get(e),"BUG: missing node")}appendChild(e,t){let n=this.stack.current,i=new tv(t);if(this.refs.set(t,i),n){let t=this.nodeFor(n);t.refs.add(i),e.parent=t}else this.roots.add(i)}captureRefs(e){let t=[];return e.forEach(n=>{let i=n.get();i?t.push(this.captureNode(`render-node:${n.id}`,i)):e.delete(n)}),t}captureNode(e,t){let n=this.nodeFor(t),{type:i,name:s,args:a,instance:l,refs:u}=n,c=this.captureTemplate(n),d=this.captureBounds(n),p=this.captureRefs(u);return{id:e,type:i,name:s,args:function(e){return{named:function(e){let t=(0,o.dict)();for(let[n,i]of Object.entries(e))try{t[n]=(0,r.valueForRef)(i)}catch(e){t[n]=eQ(e)}return t}(e.named),positional:e.positional.map(e=>{try{return(0,r.valueForRef)(e)}catch(e){return eQ(e)}})}}(a),instance:l,template:c,bounds:d,children:p}}captureTemplate(e){let{template:t}=e;return t||null}captureBounds(e){let t=(0,o.expect)(e.bounds,"BUG: missing bounds");return{parentElement:t.parentElement(),firstNode:t.firstNode(),lastNode:t.lastNode()}}}let tk=Symbol("TRANSACTION");class tx{scheduledInstallModifiers=[];scheduledUpdateModifiers=[];createdComponents=[];updatedComponents=[];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(let{manager:t,state:n}of e)t.didCreate(n);for(let{manager:e,state:n}of t)e.didUpdate(n);let{scheduledInstallModifiers:n,scheduledUpdateModifiers:i}=this;for(let{manager:e,state:t,definition:i}of n){let n=e.getTag(t);if(null!==n){let i=(0,c.track)(()=>e.install(t),!1);(0,c.updateTag)(n,i)}else e.install(t)}for(let{manager:e,state:t,definition:n}of i){let n=e.getTag(t);if(null!==n){let i=(0,c.track)(()=>e.update(t),!1);(0,c.updateTag)(n,i)}else e.update(t)}}}class tT{[tk]=null;updateOperations;isInteractive;isArgumentCaptureError;debugRenderTree;constructor(e,t){(this.delegate=t,this.isInteractive=t.isInteractive,this.debugRenderTree=this.delegate.enableDebugTooling?new tw:void 0,this.isArgumentCaptureError=this.delegate.enableDebugTooling?eY:void 0,e.appendOperations)?(this.appendOperations=e.appendOperations,this.updateOperations=e.updateOperations):e.document&&(this.appendOperations=new tp(e.document),this.updateOperations=new tf(e.document))}getAppendOperations(){return this.appendOperations}getDOM(){return(0,o.expect)(this.updateOperations,"Attempted to get DOM updateOperations, but they were not provided by the environment. You may be attempting to rerender in an environment which does not support rerendering, such as SSR.")}begin(){(0,o.assert)(!this[tk],"A glimmer transaction was begun, but one already exists. You may have a nested transaction, possibly caused by an earlier runtime exception while rendering. Please check your console for the stack trace of any prior exceptions."),this.debugRenderTree?.begin(),this[tk]=new tx}get transaction(){return(0,o.expect)(this[tk],"must be in a transaction")}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[tk]=null,e.commit(),this.debugRenderTree?.commit(),this.delegate.onTransactionCommit()}}function tS(e,t,n,i){return{env:new tT(e,t),program:new d.RuntimeProgramImpl(n.constants,n.heap),resolver:i}}function tC(e,t){if(e[tk])t();else{e.begin();try{t()}finally{e.commit()}}}function tE(e){return(0,u.setInternalHelperManager)(e,{})}let tA=tE(e=>{let{positional:t}=e;return(0,r.createComputeRef)(()=>eW(t),null,"array")}),tD=e=>(e=>null==e||"function"!=typeof e.toString)(e)?"":String(e),tI=tE(e=>{let{positional:t}=e;return(0,r.createComputeRef)(()=>eW(t).map(tD).join(""),null,"concat")}),tP=(0,o.buildUntouchableThis)("`fn` helper"),tM=tE(e=>{let{positional:t}=e,n=t[0];return(0,r.createComputeRef)(()=>function(){let[e,...i]=eW(t);for(var s=arguments.length,o=Array(s),a=0;a0?i[0]:o[0];return(0,r.updateRef)(n,e)}return e.call(tP,...i,...o)},null,"fn")}),tF=tE(e=>{let{positional:t}=e,n=t[0]??r.UNDEFINED_REFERENCE,i=t[1]??r.UNDEFINED_REFERENCE;return(0,r.createComputeRef)(()=>{let e=(0,r.valueForRef)(n);if((0,o.isDict)(e))return(0,l.getPath)(e,String((0,r.valueForRef)(i)))},e=>{let t=(0,r.valueForRef)(n);if((0,o.isDict)(t))return(0,l.setPath)(t,String((0,r.valueForRef)(i)),e)},"get")}),tN=tE(e=>{let{named:t}=e,n=(0,r.createComputeRef)(()=>eV(t),null,"hash"),i=new Map;for(let e in t)i.set(e,t[e]);return n.children=i,n});function tO(e){return(0,c.getValue)(e.argsCache)}class tL{argsCache;constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>eZ,n=(0,c.createCache)(()=>t(e));this.argsCache=n}get named(){return tO(this).named||eJ}get positional(){return tO(this).positional||eX}}function tR(e,t,n){let i=(0,p.getOwner)(e),s=(0,u.getInternalHelperManager)(t).getDelegateFor(i),r,o=new tL(e,n),l=s.createHelper(t,o);if(!(0,u.hasValue)(s))throw Error("TODO: unreachable, to be implemented with hasScheduledEffect");if(r=(0,c.createCache)(()=>s.getValue(l)),(0,a.associateDestroyableChild)(e,r),(0,u.hasDestroyable)(s)){let e=s.getDestroyable(l);(0,a.associateDestroyableChild)(r,e)}return r}(0,o.buildUntouchableThis)("`on` modifier");class tU{tag=(()=>(0,c.createUpdatableTag)())();element;args;listener=null;constructor(e,t){this.element=e,this.args=t,(0,a.registerDestructor)(this,()=>{let{element:e,listener:t}=this;if(t){let{eventName:n,callback:i,options:s}=t;tz(e,n,i,s)}})}updateListener(){let{element:e,args:t,listener:n}=this;(0,o.assert)(t.positional[0],"You must pass a valid DOM event name as the first argument to the `on` modifier");let i=(0,r.valueForRef)(t.positional[0]);(0,o.assert)(t.positional[1],"You must pass a function as the second argument to the `on` modifier");let s,a,l,u=(0,r.valueForRef)(t.positional[1]);{let{once:e,passive:n,capture:i}=t.named;e&&(s=(0,r.valueForRef)(e)),n&&(a=(0,r.valueForRef)(n)),i&&(l=(0,r.valueForRef)(i))}let c,d=!1;(d=null===n||i!==n.eventName||u!==n.userProvidedCallback||s!==n.once||a!==n.passive||l!==n.capture)&&(void 0===s&&void 0===a&&void 0===l||(c={once:s,passive:a,capture:l})),d&&(this.listener={eventName:i,callback:u,userProvidedCallback:u,once:s,passive:a,capture:l,options:c},n&&tz(e,n.eventName,n.callback,n.options),function(e,t,n,i){tj++,e.addEventListener(t,n,i)}(e,i,u,c))}}let tj=0,tB=0;function tz(e,t,n,i){tB++,e.removeEventListener(t,n,i)}let t$=(0,u.setInternalModifierManager)(new class{getDebugName(){return"on"}getDebugInstance(){return null}get counters(){return{adds:tj,removes:tB}}create(e,t,n,i){return new tU(t,i)}getTag(e){let{tag:t}=e;return t}install(e){e.updateListener()}update(e){e.updateListener()}getDestroyable(e){return e}},{});class tq{currentOpSize=0;constructor(e,t,n,i,s){this.stack=e,this.heap=t,this.program=n,this.externs=i,this.registers=s}fetchRegister(e){return this.registers[e]}loadRegister(e,t){this.registers[e]=t}setPc(e){(0,o.assert)("number"==typeof e&&!isNaN(e),"pc is set to a number"),this.registers[s.$pc]=e}pushFrame(){this.stack.push(this.registers[s.$ra]),this.stack.push(this.registers[s.$fp]),this.registers[s.$fp]=this.registers[s.$sp]-1}popFrame(){this.registers[s.$sp]=this.registers[s.$fp]-1,this.registers[s.$ra]=this.stack.get(0),this.registers[s.$fp]=this.stack.get(1)}pushSmallFrame(){this.stack.push(this.registers[s.$ra])}popSmallFrame(){this.registers[s.$ra]=this.stack.pop()}goto(e){this.setPc(this.target(e))}target(e){return this.registers[s.$pc]+e-this.currentOpSize}call(e){(0,o.assert)(e<0xffffffff,"Jumping to placeholder address"),this.registers[s.$ra]=this.registers[s.$pc],this.setPc(this.heap.getaddr(e))}returnTo(e){this.registers[s.$ra]=this.target(e)}return(){this.setPc(this.registers[s.$ra])}nextStatement(){let{registers:e,program:t}=this,n=e[s.$pc];if((0,o.assert)("number"==typeof n,"pc is a number"),-1===n)return null;let i=t.opcode(n),r=this.currentOpSize=i.size;return this.registers[s.$pc]+=r,i}evaluateOuter(e,t){this.evaluateInner(e,t)}evaluateInner(e,t){e.isMachine?this.evaluateMachine(e):this.evaluateSyscall(e,t)}evaluateMachine(e){switch(e.type){case s.MachineOp.PushFrame:return this.pushFrame();case s.MachineOp.PopFrame:return this.popFrame();case s.MachineOp.InvokeStatic:return this.call(e.op1);case s.MachineOp.InvokeVirtual:return this.call(this.stack.pop());case s.MachineOp.Jump:return this.goto(e.op1);case s.MachineOp.Return:return this.return();case s.MachineOp.ReturnTo:return this.returnTo(e.op1)}}evaluateSyscall(e,t){eu.evaluate(t,e,e.type)}}class tH{env;dom;alwaysRevalidate;frameStack=(()=>new o.Stack)();constructor(e,t){let{alwaysRevalidate:n=!1}=t;this.env=e,this.dom=e.getDOM(),this.alwaysRevalidate=n}execute(e,t){this._execute(e,t)}_execute(e,t){let{frameStack:n}=this;for(this.try(e,t);!n.isEmpty();){let e=this.frame.nextStatement();void 0!==e?e.evaluate(this):n.pop()}}get frame(){return(0,o.expect)(this.frameStack.current,"bug: expected a frame")}goto(e){this.frame.goto(e)}try(e,t){this.frameStack.push(new tQ(e,t))}throw(){this.frame.handleException(),this.frameStack.pop()}}class tV{constructor(e,t){this.state=e,this.resumeCallback=t}resume(e,t){return this.resumeCallback(e,this.state,t)}}class tW{children;bounds;constructor(e,t,n,i){this.state=e,this.runtime=t,this.children=i,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 tK extends tW{type="try";evaluate(e){e.try(this.children,this)}handleException(){let{state:e,bounds:t,runtime:n}=this;(0,a.destroyChildren)(this);let i=ei.resume(n.env,t),s=e.resume(n,i),r=[],o=this.children=[],l=s.execute(e=>{e.pushUpdating(r),e.updateWith(this),e.pushUpdating(o)});(0,a.associateDestroyableChild)(this,l.drop)}}class tG extends tK{retained=(()=>!1)();index=(()=>-1)();constructor(e,t,n,i,s,r){super(e,t,n,[]),this.key=i,this.memo=s,this.value=r}updateReferences(e){this.retained=!0,(0,r.updateRef)(this.value,e.value),(0,r.updateRef)(this.memo,e.memo)}shouldRemove(){return!this.retained}reset(){this.retained=!1}}class tY extends tW{type="list-block";opcodeMap=(()=>new Map)();marker=null;lastIterator;constructor(e,t,n,i,s){super(e,t,n,i),this.iterableRef=s,this.lastIterator=(0,r.valueForRef)(s)}initializeChild(e){e.index=this.children.length-1,this.opcodeMap.set(e.key,e)}evaluate(e){let t=(0,r.valueForRef)(this.iterableRef);if(this.lastIterator!==t){let{bounds:n}=this,{dom:i}=e,s=this.marker=i.createComment("");i.insertAfter(n.parentElement(),s,(0,o.expect)(n.lastNode(),"can't insert after an empty bounds")),this.sync(t),this.parentElement().removeChild(s),this.marker=null,this.lastIterator=t}super.evaluate(e)}sync(e){let{opcodeMap:t,children:n}=this,i=0,s=0;for(this.children=this.bounds.boundList=[];;){let r=e.next();if(null===r)break;let a=n[i],{key:l}=r;for(;void 0!==a&&!0===a.retained;)a=n[++i];if(void 0!==a&&a.key===l)this.retainItem(a,r),i++;else if(t.has(l)){let e=t.get(l);if(e.index{t.pushUpdating();let i=t.enterItem(e);i.index=o.length,o.push(i),n.set(l,i),(0,a.associateDestroyableChild)(this,i)})}moveItem(e,t,n){let i,{children:s}=this;(0,r.updateRef)(e.memo,t.memo),(0,r.updateRef)(e.value,t.value),e.retained=!0,void 0===n?S(e,this.marker):e.lastNode().nextSibling!==(i=n.firstNode())&&S(e,i),e.index=s.length,s.push(e)}deleteItem(e){(0,a.destroy)(e),C(e),this.opcodeMap.delete(e.key)}}class tQ{current=0;constructor(e,t){this.ops=e,this.exceptionHandler=t}goto(e){this.current=e}nextStatement(){return this.ops[this.current++]}handleException(){this.exceptionHandler&&this.exceptionHandler.handleException()}}class tJ{constructor(e,t,n,i){this.env=e,this.updating=t,this.bounds=n,this.drop=i,(0,a.associateDestroyableChild)(this,i),(0,a.registerDestructor)(this,()=>C(this.bounds))}rerender(){let{alwaysRevalidate:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{alwaysRevalidate:!1},{env:t,updating:n}=this;new tH(t,{alwaysRevalidate:e}).execute(n,this)}parentElement(){return this.bounds.parentElement()}firstNode(){return this.bounds.firstNode()}lastNode(){return this.bounds.lastNode()}handleException(){throw"this should never happen"}}class tX{static restore(e){return new this(e.slice(),[0,-1,e.length-1,0])}[y];constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;this.stack=e,this[y]=t}push(e){this.stack[++this[y][s.$sp]]=e}dup(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this[y][s.$sp];this.stack[++this[y][s.$sp]]=this.stack[e]}copy(e,t){this.stack[t]=this.stack[e]}pop(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.stack[this[y][s.$sp]];return this[y][s.$sp]-=e,t}peek(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.stack[this[y][s.$sp]-e]}get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this[y][s.$fp];return this.stack[t+e]}set(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this[y][s.$fp];this.stack[n+t]=e}slice(e,t){return this.stack.slice(e,t)}capture(e){let t=this[y][s.$sp]+1;return this.stack.slice(t-e,t)}reset(){this.stack.length=0}toArray(){return this.stack.slice(this[y][s.$fp],this[y][s.$sp]+1)}}class tZ{scope=(()=>new o.Stack)();dynamicScope=(()=>new o.Stack)();updating=(()=>new o.Stack)();cache=(()=>new o.Stack)();list=(()=>new o.Stack)()}class t1{[_]=(()=>new tZ)();[b];destructor;[f]=(()=>new o.Stack)();[w];[k];[g];get stack(){return this[g].stack}get pc(){return this[g].fetchRegister(s.$pc)}s0=null;s1=null;t0=null;t1=null;v0=null;fetch(e){let t=this.fetchValue(e);this.stack.push(t)}load(e){let t=this.stack.pop();this.loadValue(e,t)}fetchValue(e){if((0,s.isLowLevelRegister)(e))return this[g].fetchRegister(e);switch(e){case s.$s0:return this.s0;case s.$s1:return this.s1;case s.$t0:return this.t0;case s.$t1:return this.t1;case s.$v0:return this.v0}}loadValue(e,t){switch((0,s.isLowLevelRegister)(e)&&this[g].loadRegister(e,t),e){case s.$s0:this.s0=t;break;case s.$s1:this.s1=t;break;case s.$t0:this.t0=t;break;case s.$t1:this.t1=t;break;case s.$v0:this.v0=t}}pushFrame(){this[g].pushFrame()}popFrame(){this[g].popFrame()}goto(e){this[g].goto(e)}call(e){this[g].call(e)}returnTo(e){this[g].returnTo(e)}return(){this[g].return()}constructor(e,t,n,i){let{pc:r,scope:a,dynamicScope:l,stack:u}=t;this.runtime=e,this.elementStack=n,this.context=i,this.resume=t3(i);let c=tX.restore(u);(0,o.assert)("number"==typeof r,"pc is a number"),c[y][s.$pc]=r,c[y][s.$sp]=u.length-1,c[y][s.$fp]=-1,this[b]=this.program.heap,this[w]=this.program.constants,this.elementStack=n,this[_].scope.push(a),this[_].dynamicScope.push(l),this[k]=new eL,this[g]=new tq(c,this[b],e.program,{debugBefore:e=>eu.debugBefore(this,e),debugAfter:e=>{eu.debugAfter(this,e)}},c[y]),this.destructor={},this[f].push(this.destructor)}static initial(e,t,n){let{handle:i,self:s,dynamicScope:r,treeBuilder:o,numSymbols:a,owner:l}=n,u=m.root(s,a,l),c=t0(e.program.heap.getaddr(i),u,r),d=t3(t)(e,c,o);return d.pushUpdating(),d}static empty(e,t,n){let{handle:i,treeBuilder:s,dynamicScope:o,owner:a}=t,l=t3(n)(e,t0(e.program.heap.getaddr(i),m.root(r.UNDEFINED_REFERENCE,0,a),o),s);return l.pushUpdating(),l}resume;compile(e){return(0,o.unwrapHandle)(e.compile(this.context))}get program(){return this.runtime.program}get env(){return this.runtime.env}captureState(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this[g].fetchRegister(s.$pc);return{pc:t,scope:this.scope(),dynamicScope:this.dynamicScope(),stack:this.stack.capture(e)}}capture(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this[g].fetchRegister(s.$pc);return new tV(this.captureState(e,t),this.resume)}beginCacheGroup(e){let t=this.updating(),n=new eT;t.push(n),t.push(new eS(e)),this[_].cache.push(n),(0,c.beginTrackFrame)(e)}commitCacheGroup(){let e=this.updating(),t=(0,o.expect)(this[_].cache.pop(),"VM BUG: Expected a cache group"),n=(0,c.endTrackFrame)();e.push(new eC(t)),t.finalize(n,e.length)}enter(e){let t=this.capture(e),n=this.elements().pushUpdatableBlock(),i=new tK(t,this.runtime,n,[]);this.didEnter(i)}enterItem(e){let{key:t,value:n,memo:i}=e,{stack:s}=this,o=(0,r.createIteratorItemRef)(n),a=(0,r.createIteratorItemRef)(i);s.push(o),s.push(a);let l=this.capture(2),u=this.elements().pushUpdatableBlock(),c=new tG(l,this.runtime,u,t,a,o);return this.didEnter(c),c}registerItem(e){this.listBlock().initializeChild(e)}enterList(e,t){let n=[],i=this[g].target(t),s=this.capture(0,i),r=this.elements().pushBlockList(n),o=new tY(s,this.runtime,r,n,e);this[_].list.push(o),this.didEnter(o)}didEnter(e){this.associateDestroyable(e),this[f].push(e),this.updateWith(e),this.pushUpdating(e.children)}exit(){this[f].pop(),this.elements().popBlock(),this.popUpdating()}exitList(){this.exit(),this[_].list.pop()}pushUpdating(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this[_].updating.push(e)}popUpdating(){return(0,o.expect)(this[_].updating.pop(),"can't pop an empty stack")}updateWith(e){this.updating().push(e)}listBlock(){return(0,o.expect)(this[_].list.current,"expected a list block")}associateDestroyable(e){let t=(0,o.expect)(this[f].current,"Expected destructor parent");(0,a.associateDestroyableChild)(t,e)}tryUpdating(){return this[_].updating.current}updating(){return(0,o.expect)(this[_].updating.current,"expected updating opcode on the updating opcode stack")}elements(){return this.elementStack}scope(){return(0,o.expect)(this[_].scope.current,"expected scope on the scope stack")}dynamicScope(){return(0,o.expect)(this[_].dynamicScope.current,"expected dynamic scope on the dynamic scope stack")}pushChildScope(){this[_].scope.push(this.scope().child())}pushDynamicScope(){let e=this.dynamicScope().child();return this[_].dynamicScope.push(e),e}pushRootScope(e,t){let n=m.sized(e,t);return this[_].scope.push(n),n}pushScope(e){this[_].scope.push(e)}popScope(){this[_].scope.pop()}popDynamicScope(){this[_].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,elementStack:n}=this,i=this[g].nextStatement();return null!==i?(this[g].evaluateOuter(i,this),e={done:!1,value:null}):(this.stack.reset(),e={done:!0,value:new tJ(t,this.popUpdating(),n.popBlock(),this.destructor)}),e}bindDynamicScope(e){let t=this.dynamicScope();for(let n of(0,o.reverse)(e))t.set(n,this.stack.pop())}}function t0(e,t,n){return{pc:e,scope:t,dynamicScope:n,stack:[]}}function t3(e){return(t,n,i)=>new t1(t,n,i,e)}class t2{constructor(e){this.vm=e}next(){return this.vm.next()}sync(){return this.vm.execute()}}function t8(e,t){let n;return tC(e,()=>n=t.sync()),n}function t4(e,t,n,i,s,r){let a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:new h,l=(0,o.unwrapHandle)(r.compile(t)),u=r.symbolTable.symbols.length;return new t2(t1.initial(e,t,{self:i,dynamicScope:a,treeBuilder:s,handle:l,numSymbols:u,owner:n}))}function t7(e,t,n,i,s){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:new h;return function(e,t,n,i,s){let r=Object.keys(s).map(e=>[e,s[e]]),a=["main","else","attrs"],l=r.map(e=>{let[t]=e;return`@${t}`}),u=e[w].component(i,n);e.pushFrame();for(let t=0;t<3*a.length;t++)e.stack.push(null);e.stack.push(null),r.forEach(t=>{let[,n]=t;e.stack.push(n)}),e[k].setup(e.stack,l,a,0,!0);let c=(0,o.expect)(u.compilable,"BUG: Expected the root component rendered with renderComponent to have an associated template, set with setComponentTemplate"),d={handle:(0,o.unwrapHandle)(c.compile(t)),symbolTable:c.symbolTable};return e.stack.push(e[k]),e.stack.push(d),e.stack.push(u),new t2(e)}(t1.empty(e,{treeBuilder:t,handle:n.stdlib.main,dynamicScope:l,owner:i},n),n,i,s,function(e){let t=(0,r.createConstRef)(e,"args");return Object.keys(e).reduce((e,n)=>(e[n]=(0,r.childRefFor)(t,n),e),{})}(a))}let t9="%+b:0%";function t5(e){return"%+b:0%"===e.nodeValue}class t6 extends x{candidate=null;openBlockDepth;injectedOmittedNode=(()=>!1)();constructor(e,t,n){super(e,t),this.startingBlockDepth=n,this.openBlockDepth=n-1}}class ne extends ei{unmatchedAttributes=null;blockDepth=0;startingBlockOffset;constructor(e,t,n){if(super(e,t,n),n)throw Error("Rehydration with nextSibling not supported");let i=this.currentCursor.element.firstChild;for(;null!==i&&!nt(i);)i=i.nextSibling;(0,o.assert)(i,"Must have opening comment for rehydration."),this.candidate=i;let s=ni(i);if(0!==s){let e=s-1,t=this.dom.createComment(`%+b:${e}%`);i.parentNode.insertBefore(t,this.candidate);let n=i.nextSibling;for(;null!==n&&(!nn(n)||ni(n)!==s);)n=n.nextSibling;(0,o.assert)(n,"Must have closing comment for starting block comment");let r=this.dom.createComment(`%-b:${e}%`);i.parentNode.insertBefore(r,n.nextSibling),this.candidate=t,this.startingBlockOffset=e}else this.startingBlockOffset=0}get currentCursor(){return this[en].current}get candidate(){return this.currentCursor?this.currentCursor.candidate:null}set candidate(e){this.currentCursor.candidate=e}disableRehydration(e){let t=this.currentCursor;t.candidate=null,t.nextSibling=e}enableRehydration(e){let t=this.currentCursor;t.candidate=e,t.nextSibling=null}pushElement(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=new t6(e,t,this.blockDepth||0);null!==this.candidate&&(n.candidate=e.firstChild,this.candidate=e.nextSibling),this[en].push(n)}clearMismatch(e){let t=e,n=this.currentCursor;if(null!==n){let e=n.openBlockDepth;if(e>=n.startingBlockDepth)for(;t&&!(nn(t)&&e>=ns(t,this.startingBlockOffset));)t=this.remove(t);else for(;null!==t;)t=this.remove(t);this.disableRehydration(t)}}__openBlock(){let{currentCursor:e}=this;if(null===e)return;let t=this.blockDepth;this.blockDepth++;let{candidate:n}=e;if(null===n)return;let{tagName:i}=e.element;nt(n)&&ns(n,this.startingBlockOffset)===t?(this.candidate=this.remove(n),e.openBlockDepth=t):"TITLE"!==i&&"SCRIPT"!==i&&"STYLE"!==i&&this.clearMismatch(n)}__closeBlock(){let{currentCursor:e}=this;if(null===e)return;let t=e.openBlockDepth;this.blockDepth--;let{candidate:n}=e,i=!1;if(null!==n){if(i=!0,nn(n)&&ns(n,this.startingBlockOffset)===t){let t=this.remove(n);this.candidate=t,e.openBlockDepth--}else this.clearMismatch(n),i=!1}if(!1===i){let t=e.nextSibling;if(null!==t&&nn(t)&&ns(t,this.startingBlockOffset)===this.blockDepth){let n=this.remove(t);this.enableRehydration(n),e.openBlockDepth--}}}__appendNode(e){let{candidate:t}=this;return t||super.__appendNode(e)}__appendHTML(e){let t=this.markerBounds();if(t){let e=t.firstNode(),n=t.lastNode(),i=new T(this.element,e.nextSibling,n.previousSibling),s=this.remove(e);return this.remove(n),null!==s&&na(s)&&(this.candidate=this.remove(s),null!==this.candidate&&this.clearMismatch(this.candidate)),i}return super.__appendHTML(e)}remove(e){let t=(0,o.expect)(e.parentNode,"cannot remove a detached node"),n=e.nextSibling;return t.removeChild(e),n}markerBounds(){let e=this.candidate;if(e&&no(e)){let t=(0,o.expect)(e.nextSibling,"BUG: serialization markers must be paired");for(;t&&!no(t);)t=(0,o.expect)(t.nextSibling,"BUG: serialization markers must be paired");return new T(this.element,e,t)}return null}__appendText(e){let{candidate:t}=this;return t?3===t.nodeType?(t.nodeValue!==e&&(t.nodeValue=e),this.candidate=t.nextSibling,t):8===t.nodeType&&"%|%"===t.nodeValue||na(t)&&""===e?(this.candidate=this.remove(t),this.__appendText(e)):(this.clearMismatch(t),super.__appendText(e)):super.__appendText(e)}__appendComment(e){let 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){let t=this.candidate;if(t&&nr(t)&&function(e,t){return e.namespaceURI===o.NS_SVG?e.tagName===t:e.tagName===t.toUpperCase()}(t,e))return this.unmatchedAttributes=[].slice.call(t.attributes),t;if(t){if(nr(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){let i=this.unmatchedAttributes;if(i){let n=nl(i,e);if(n)return n.value!==t&&(n.value=t),void i.splice(i.indexOf(n),1)}return super.__setAttribute(e,t,n)}__setProperty(e,t){let n=this.unmatchedAttributes;if(n){let i=nl(n,e);if(i)return i.value!==t&&(i.value=t),void n.splice(n.indexOf(i),1)}return super.__setProperty(e,t)}__flushElement(e,t){let{unmatchedAttributes:n}=this;if(n){for(let e of n)this.constructing.removeAttribute(e.name);this.unmatchedAttributes=null}else super.__flushElement(e,t)}willCloseElement(){let{candidate:e,currentCursor:t}=this;null!==e&&this.clearMismatch(e),t&&t.injectedOmittedNode&&this.popElement(),super.willCloseElement()}getMarker(e,t){let n=e.querySelector(`script[glmr="${t}"]`);return n?(0,o.castToSimple)(n):null}__pushRemoteElement(e,t,n){let i=this.getMarker((0,o.castToBrowser)(e,"HTML"),t);if((0,o.assert)(!i||i.parentNode===e,"expected remote element marker's parent node to match remote element"),void 0===n){for(;null!==e.firstChild&&e.firstChild!==i;)this.remove(e.firstChild);n=null}let s=new t6(e,null,this.blockDepth);this[en].push(s),null===i?this.disableRehydration(n):this.candidate=this.remove(i);let r=new er(e);return this.pushLiveBlock(r,!0)}didAppendBounds(e){if(super.didAppendBounds(e),this.candidate){let t=e.lastNode();this.candidate=t&&t.nextSibling}return e}}function nt(e){return e.nodeType===o.COMMENT_NODE&&0===e.nodeValue.lastIndexOf("%+b:",0)}function nn(e){return e.nodeType===o.COMMENT_NODE&&0===e.nodeValue.lastIndexOf("%-b:",0)}function ni(e){return parseInt(e.nodeValue.slice(4),10)}function ns(e,t){return ni(e)-t}function nr(e){return 1===e.nodeType}function no(e){return 8===e.nodeType&&"%glmr%"===e.nodeValue}function na(e){return 8===e.nodeType&&"% %"===e.nodeValue}function nl(e,t){for(let n of e)if(n.name===t)return n}function nu(e,t){return ne.forInitialRender(e,t)}},97219:(e,t,n)=>{"use strict";n.r(t),n.d(t,{cached:()=>r,tracked:()=>s.S}),n(24086),n(32581),n(38389),n(5268);var i=n(55336);n(60465);var s=n(47552);n(24691);let r=function(){for(var e=arguments.length,t=Array(e),n=0;n{"use strict";n.r(t),n.d(t,{createCache:()=>i.createCache,getValue:()=>i.getValue,isConst:()=>i.isConst}),n(24086),n(32581),n(38389),n(5268);var i=n(55336);n(60465),n(47552),n(24691)},58746:(e,t,n)=>{"use strict";let i,s,r,o,a;n.r(t),n.d(t,{COMMENT_NODE:()=>q,DOCUMENT_FRAGMENT_NODE:()=>W,DOCUMENT_NODE:()=>H,DOCUMENT_TYPE_NODE:()=>V,ELEMENT_NODE:()=>z,EMPTY_ARRAY:()=>l,EMPTY_NUMBER_ARRAY:()=>d,EMPTY_STRING_ARRAY:()=>c,INSERT_AFTER_BEGIN:()=>ee,INSERT_AFTER_END:()=>en,INSERT_BEFORE_BEGIN:()=>Z,INSERT_BEFORE_END:()=>et,ImmediateConstants:()=>ei,LOCAL_LOGGER:()=>eL,LOGGER:()=>eR,NS_HTML:()=>K,NS_MATHML:()=>G,NS_SVG:()=>Y,NS_XLINK:()=>Q,NS_XML:()=>J,NS_XMLNS:()=>X,RAW_NODE:()=>B,SERIALIZATION_FIRST_NODE_STRING:()=>e_,Stack:()=>R,TEXT_NODE:()=>$,arrayToOption:()=>A,asPresentArray:()=>I,assert:()=>g,assertNever:()=>eU,assertPresent:()=>S,assertPresentArray:()=>D,assign:()=>eb,beginTestSteps:()=>i,buildUntouchableThis:()=>eO,castToBrowser:()=>ex,castToSimple:()=>ek,checkNode:()=>eE,clearElement:()=>j,constants:()=>eo,debugToString:()=>U,decodeHandle:()=>eh,decodeImmediate:()=>eg,decodeNegative:()=>eu,decodePositive:()=>ed,deprecate:()=>f,dict:()=>N,emptyArray:()=>u,encodeHandle:()=>ep,encodeImmediate:()=>em,encodeNegative:()=>el,encodePositive:()=>ec,endTestSteps:()=>s,entries:()=>ew,enumerate:()=>m,exhausted:()=>k,expect:()=>b,extractHandle:()=>eM,getFirst:()=>M,getLast:()=>P,ifPresent:()=>E,intern:()=>ef,isDict:()=>O,isElement:()=>eC,isEmptyArray:()=>p,isErrHandle:()=>eN,isHandle:()=>es,isNonPrimitiveHandle:()=>er,isObject:()=>L,isOkHandle:()=>eF,isPresent:()=>T,isPresentArray:()=>C,isSerializationFirstNode:()=>ey,isSimpleElement:()=>eS,isSmallInt:()=>ea,keys:()=>_,logStep:()=>o,mapPresentArray:()=>F,reverse:()=>h,strip:()=>eD,tuple:()=>x,unreachable:()=>w,unwrap:()=>y,unwrapHandle:()=>eI,unwrapTemplate:()=>eP,values:()=>ev,verifySteps:()=>r});let l=Object.freeze([]);function u(){return l}let c=u(),d=u();function p(e){return e===l}function*h(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function*m(e){let t=0;for(let n of e)yield[t++,n]}function g(e,t){if(!e)throw Error(t||"assertion failure")}function f(e){eL.warn(`DEPRECATION: ${e}`)}function _(e){return Object.keys(e)}function y(e){if(null==e)throw Error("Expected value to be present");return e}function b(e,t){if(null==e)throw Error(t);return e}function w(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"unreachable";return Error(e)}function k(e){throw Error(`Exhausted ${String(e)}`)}let x=function(){for(var e=arguments.length,t=Array(e),n=0;n0}function E(e,t,n){return C(e)?t(e):n()}function A(e){return C(e)?e:null}function D(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"unexpected empty list";if(!C(e))throw Error(t)}function I(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"unexpected empty list";return D(e,t),e}function P(e){return 0===e.length?void 0:e[e.length-1]}function M(e){return 0===e.length?void 0:e[0]}function F(e,t){if(null===e)return null;let n=[];for(let i of e)n.push(t(i));return n}function N(){return Object.create(null)}function O(e){return null!=e}function L(e){return"function"==typeof e||"object"==typeof e&&null!==e}class R{stack;current=null;constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];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=P(this.stack)??null,void 0===e?null:e}nth(e){let t=this.stack.length;return t=0}function er(e){return e>ei.ENCODED_UNDEFINED_HANDLE}function eo(){for(var e=arguments.length,t=Array(e),n=0;n=ei.MIN_INT}function el(e){return e&ei.SIGN_BIT}function eu(e){return e|~ei.SIGN_BIT}function ec(e){return~e}function ed(e){return~e}function ep(e){return e}function eh(e){return e}function em(e){return(e|=0)<0?el(e):ec(e)}function eg(e){return(e|=0)>ei.SIGN_BIT?ed(e):eu(e)}function ef(e){let t={};for(let n in t[e]=1,t)if(n===e)return n;return e}[1,-1].forEach(e=>eg(em(e)));let e_="%+b:0%";function ey(e){return"%+b:0%"===e.nodeValue}let eb=Object.assign;function ev(e){return Object.values(e)}function ew(e){return Object.entries(e)}function ek(e){return eT(e)||eS(e),e}function ex(e,t){if(null==e)return null;if(eT(e))return e;if(e.ownerDocument!==document)throw Error("Attempted to cast to a browser node with a node that was not created from this document");return eE(e,t)}function eT(e){return e.nodeType===H}function eS(e){return e?.nodeType===z}function eC(e){return e?.nodeType===z&&e instanceof Element}function eE(e,t){let n=!1;if(null!==e){if("string"==typeof t)n=eA(e,t);else{if(!Array.isArray(t))throw w();n=t.some(t=>eA(e,t))}}if(n&&e instanceof Node)return e;throw function(e,t){return Error(`cannot cast a ${e} into ${String(t)}`)}(`SimpleElement(${e?.constructor?.name??"null"})`,t)}function eA(e,t){switch(t){case"NODE":return!0;case"HTML":return e instanceof HTMLElement;case"SVG":return e instanceof SVGElement;case"ELEMENT":return e instanceof Element;default:if(t.toUpperCase()===t)throw Error("BUG: this code is missing handling for a generic node type");return e instanceof Element&&e.tagName.toLowerCase()===t}}function eD(e){let t="";for(var n=arguments.length,i=Array(n>1?n-1:0),s=1;s1&&void 0!==arguments[1]?arguments[1]:"unexpected unreachable branch";throw eR.log("unreachable",e),eR.log(`${t} :: ${JSON.stringify(e)} (${e})`),Error("code reached unreachable")}},55336:(e,t,n)=>{"use strict";let i;n.r(t),n.d(t,{ALLOW_CYCLES:()=>i,COMPUTE:()=>d,CONSTANT:()=>o,CONSTANT_TAG:()=>w,CURRENT_TAG:()=>C,CurrentTag:()=>S,INITIAL:()=>a,VOLATILE:()=>l,VOLATILE_TAG:()=>T,VolatileTag:()=>x,beginTrackFrame:()=>U,beginUntrackFrame:()=>B,bump:()=>c,combine:()=>E,consumeTag:()=>H,createCache:()=>Y,createTag:()=>y,createUpdatableTag:()=>b,debug:()=>r,dirtyTag:()=>f,dirtyTagFor:()=>M,endTrackFrame:()=>j,endUntrackFrame:()=>z,getValue:()=>Q,isConst:()=>J,isConstTag:()=>k,isTracking:()=>q,resetTracking:()=>$,tagFor:()=>N,tagMetaFor:()=>F,track:()=>X,trackedData:()=>ee,untrack:()=>Z,updateTag:()=>_,validateTag:()=>h,valueForTag:()=>p});var s=n(24007);n(58746);let r={},o=0,a=1,l=NaN,u=1;function c(){u++}let d=Symbol("TAG_COMPUTE");function p(e){return e[d]()}function h(e,t){return t>=e[d]()}let m=Symbol("TAG_TYPE");class g{static combine(e){switch(e.length){case 0:return w;case 1:return e[0];default:{let t=new g(2);return t.subtag=e,t}}}revision=1;lastChecked=1;lastValue=1;isUpdating=(()=>!1)();subtag=null;subtagBufferCache=null;[m];constructor(e){this[m]=e}[d](){let{lastChecked:e}=this;if(!0===this.isUpdating)this.lastChecked=++u;else if(e!==u){this.isUpdating=!0,this.lastChecked=u;try{let{subtag:e,revision:t}=this;if(null!==e){if(Array.isArray(e))for(let n of e){let e=n[d]();t=Math.max(e,t)}else{let n=e[d]();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){t===w?e.subtag=null:(e.subtagBufferCache=t[d](),e.subtag=t)}static dirtyTag(e,t){e.revision=++u,(0,s.scheduleRevalidate)()}}let f=g.dirtyTag,_=g.updateTag;function y(){return new g(0)}function b(){return new g(1)}let w=new g(3);function k(e){return e===w}class x{[m]=100;[d](){return NaN}}let T=new x;class S{[m]=101;[d](){return u}}let C=new S,E=g.combine,A=b(),D=b(),I=b();p(A),f(A),p(A),_(A,E([D,I])),p(A),f(D),p(A),f(I),p(A),_(A,I),p(A),f(I),p(A);let P=new WeakMap;function M(e,t,n){let i=void 0===n?P.get(e):n;if(void 0===i)return;let s=i.get(t);void 0!==s&&f(s,!0)}function F(e){let t=P.get(e);return void 0===t&&(t=new Map,P.set(e,t)),t}function N(e,t,n){let i=void 0===n?F(e):n,s=i.get(t);return void 0===s&&(s=b(),i.set(t,s)),s}class O{tags=(()=>new Set)();last=null;add(e){e!==w&&(this.tags.add(e),this.last=e)}combine(){let{tags:e}=this;return 0===e.size?w:1===e.size?this.last:E(Array.from(this.tags))}}let L=null,R=[];function U(e){R.push(L),L=new O}function j(){let e=L;return L=R.pop()||null,(function(e){if(null==e)throw Error("Expected value to be present");return e})(e).combine()}function B(){R.push(L),L=null}function z(){L=R.pop()||null}function $(){for(;R.length>0;)R.pop();L=null}function q(){return null!==L}function H(e){null!==L&&L.add(e)}let V=Symbol("FN"),W=Symbol("LAST_VALUE"),K=Symbol("TAG"),G=Symbol("SNAPSHOT");function Y(e,t){return{[V]:e,[W]:void 0,[K]:void 0,[G]:-1}}function Q(e){let t=e[V],n=e[K],i=e[G];if(void 0!==n&&h(n,i))H(n);else{U();try{e[W]=t()}finally{n=j(),e[K]=n,e[G]=p(n),H(n)}}return e[W]}function J(e){return k(e[K])}function X(e,t){let n;U(t);try{e()}finally{n=j()}return n}function Z(e){B();try{return e()}finally{z()}}function ee(e,t){let n=new WeakMap,i="function"==typeof t;return{getter:function(s){let r;return H(N(s,e)),i&&!n.has(s)?(r=t.call(s),n.set(s,r)):r=n.get(s),r},setter:function(t,i){M(t,e),n.set(t,i)}}}Symbol("DEBUG_LABEL");let et=Symbol("GLIMMER_VALIDATOR_REGISTRATION"),en=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw Error("unable to locate global object")}();if(!0===en[et])throw 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.");en[et]=!0},14247:(e,t,n)=>{"use strict";n.r(t),n.d(t,{$fp:()=>y,$pc:()=>f,$ra:()=>_,$s0:()=>w,$s1:()=>k,$sp:()=>b,$t0:()=>x,$t1:()=>T,$v0:()=>S,ARG_SHIFT:()=>o,ContentType:()=>i,CurriedType:()=>s,CurriedTypes:()=>s,InternalComponentCapabilities:()=>r,InternalComponentCapability:()=>r,MACHINE_MASK:()=>d,MAX_SIZE:()=>a,MachineOp:()=>p,MachineRegister:()=>C,OPERAND_LEN_MASK:()=>c,Op:()=>h,SavedRegister:()=>A,TYPE_MASK:()=>u,TYPE_SIZE:()=>l,TemporaryRegister:()=>D,isLowLevelRegister:()=>E,isMachineOp:()=>m,isOp:()=>g});let i={Component:0,Helper:1,String:2,Empty:3,SafeString:4,Fragment:5,Node:6,Other:8},s={Component:0,Helper:1,Modifier:2},r={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},o=8,a=0x7fffffff,l=255,u=255,c=768,d=1024,p={PushFrame:0,PopFrame:1,InvokeVirtual:2,InvokeStatic:3,Jump:4,Return:5,ReturnTo:6,Size:7},h={Helper:16,SetNamedVariables:17,SetBlocks:18,SetVariable:19,SetBlock:20,GetVariable:21,GetProperty:22,GetBlock:23,SpreadBlock:24,HasBlock:25,HasBlockParams:26,Concat:27,Constant:28,ConstantReference:29,Primitive:30,PrimitiveReference:31,ReifyU32:32,Dup:33,Pop:34,Load:35,Fetch:36,RootScope:37,VirtualRootScope:38,ChildScope:39,PopScope:40,Text:41,Comment:42,AppendHTML:43,AppendSafeHTML:44,AppendDocumentFragment:45,AppendNode:46,AppendText:47,OpenElement:48,OpenDynamicElement:49,PushRemoteElement:50,StaticAttr:51,DynamicAttr:52,ComponentAttr:53,FlushElement:54,CloseElement:55,PopRemoteElement:56,Modifier:57,BindDynamicScope:58,PushDynamicScope:59,PopDynamicScope:60,CompileBlock:61,PushBlockScope:62,PushSymbolTable:63,InvokeYield:64,JumpIf:65,JumpUnless:66,JumpEq:67,AssertSame:68,Enter:69,Exit:70,ToBoolean:71,EnterList:72,ExitList:73,Iterate:74,Main:75,ContentType:76,Curry:77,PushComponentDefinition:78,PushDynamicComponentInstance:79,ResolveDynamicComponent:80,ResolveCurriedComponent:81,PushArgs:82,PushEmptyArgs:83,PopArgs:84,PrepareArgs:85,CaptureArgs:86,CreateComponent:87,RegisterComponentDestructor:88,PutComponentOperations:89,GetComponentSelf:90,GetComponentTagName:91,GetComponentLayout:92,BindEvalScope:93,SetupForEval:94,PopulateLayout:95,InvokeComponentLayout:96,BeginComponentTransaction:97,CommitComponentTransaction:98,DidCreateElement:99,DidRenderLayout:100,ResolveMaybeLocal:102,Debugger:103,Size:104,StaticComponentAttr:105,DynamicContentType:106,DynamicHelper:107,DynamicModifier:108,IfInline:109,Not:110,GetDynamicVar:111,Log:112};function m(e){return e>=0&&e<=15}function g(e){return e>=16}let f=0,_=1,y=2,b=3,w=4,k=5,x=6,T=7,S=8,C=function(e){return e[e.pc=0]="pc",e[e.ra=1]="ra",e[e.fp=2]="fp",e[e.sp=3]="sp",e}({});function E(e){return e<=3}let A=function(e){return e[e.s0=4]="s0",e[e.s1=5]="s1",e}({}),D=function(e){return e[e.t0=6]="t0",e[e.t1=7]="t1",e}({})},93549:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SexpOpcodes:()=>i,VariableResolutionContext:()=>s,WellKnownAttrNames:()=>r,WellKnownTagNames:()=>o,getStringFromValue:()=>d,is:()=>a,isArgument:()=>p,isAttribute:()=>u,isFlushElement:()=>l,isGet:()=>m,isHelper:()=>h,isStringLiteral:()=>c});let i={Append:1,TrustingAppend:2,Comment:3,Modifier:4,StrictModifier:5,Block:6,StrictBlock:7,Component:8,OpenElement:10,OpenElementWithSplat:11,FlushElement:12,CloseElement:13,StaticAttr:14,DynamicAttr:15,ComponentAttr:16,AttrSplat:17,Yield:18,DynamicArg:20,StaticArg:21,TrustingDynamicAttr:22,TrustingComponentAttr:23,StaticComponentAttr:24,Debugger:26,Undefined:27,Call:28,Concat:29,GetSymbol:30,GetLexicalSymbol:32,GetStrictKeyword:31,GetFreeAsComponentOrHelperHead:35,GetFreeAsHelperHead:37,GetFreeAsModifierHead:38,GetFreeAsComponentHead:39,InElement:40,If:41,Each:42,Let:44,WithDynamicVars:45,InvokeComponent:46,HasBlock:48,HasBlockParams:49,Curry:50,Not:51,IfInline:52,GetDynamicVar:53,Log:54},s={Strict:0,ResolveAsComponentOrHelperHead:1,ResolveAsHelperHead:5,ResolveAsModifierHead:6,ResolveAsComponentHead:7},r={class:0,id:1,value:2,name:3,type:4,style:5,href:6},o={div:0,span:1,p:2,a:3};function a(e){return function(t){return Array.isArray(t)&&t[0]===e}}let l=a(i.FlushElement);function u(e){return e[0]===i.StaticAttr||e[0]===i.DynamicAttr||e[0]===i.TrustingDynamicAttr||e[0]===i.ComponentAttr||e[0]===i.StaticComponentAttr||e[0]===i.TrustingComponentAttr||e[0]===i.AttrSplat||e[0]===i.Modifier}function c(e){return"string"==typeof e}function d(e){return e}function p(e){return e[0]===i.StaticArg||e[0]===i.DynamicArg}function h(e){return Array.isArray(e)&&e[0]===i.Call}let m=a(i.GetSymbol)},30255:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});let i=[];function s(e,t,n){for(let i=0;i{"use strict";n.r(t),n.d(t,{buildPlatform:()=>o,default:()=>q});let i=setTimeout,s=()=>{};function r(e){if("function"==typeof Promise){let t=Promise.resolve();return()=>t.then(e)}if("function"!=typeof MutationObserver)return()=>i(e,0);{let t=0,n=new MutationObserver(e),i=document.createTextNode("");return n.observe(i,{characterData:!0}),()=>(t=++t%2,i.data=""+t,t)}}function o(e){return{setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),now:()=>Date.now(),next:r(e),clearNext:s}}let a=/\d+/;function l(e){let t=typeof e;return"number"===t&&e==e||"string"===t&&a.test(e)}function u(e){return e.onError||e.onErrorTarget&&e.onErrorTarget[e.onErrorMethod]}function c(e,t,n){let i=-1;for(let s=0,r=n.length;s2&&void 0!==arguments[2]?arguments[2]:0,i=[];for(let s=0;s=t[n=s+i-i%6]?s=n+6:r=n;return e>=t[s]?s+6:s}class m{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this._queueBeingFlushed=[],this.targetQueues=new Map,this.index=0,this._queue=[],this.name=e,this.options=t,this.globalOptions=n}stackFor(e){if(e0){let e=u(this.globalOptions);n=e?this.invokeWithOnError:this.invoke;for(let i=this.index;i0&&this.flush(!0)}hasWork(){return this._queueBeingFlushed.length>0||this._queue.length>0}cancel(e){let{target:t,method:n}=e,i=this._queue,s=this.targetQueues.get(t);void 0!==s&&s.delete(n);let r=c(t,n,i);return!!(r>-1||(r=c(t,n,i=this._queueBeingFlushed))>-1)&&(i[r+1]=null,!0)}push(e,t,n,i){return this._queue.push(e,t,n,i),{queue:this,target:e,method:t}}pushUnique(e,t,n,i){let s=this.targetQueues.get(e);void 0===s&&(s=new Map,this.targetQueues.set(e,s));let r=s.get(t);if(void 0===r){let r=this._queue.push(e,t,n,i)-4;s.set(t,r)}else{let e=this._queue;e[r+2]=n,e[r+3]=i}return{queue:this,target:e,method:t}}_getDebugInfo(e){if(e)return p(this._queue,4)}invoke(e,t,n){void 0===n?t.call(e):t.apply(e,n)}invokeWithOnError(e,t,n,i,s){try{void 0===n?t.call(e):t.apply(e,n)}catch(e){i(e,s)}}}class g{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;this.queues={},this.queueNameIndex=0,this.queueNames=e,e.reduce(function(e,n){return e[n]=new m(n,t[n],t),e},this.queues)}schedule(e,t,n,i,s,r){let o=this.queues[e];if(void 0===o)throw Error(`You attempted to schedule an action in a queue (${e}) that doesn't exist`);if(null==n)throw Error(`You attempted to schedule an action in a queue (${e}) for a method that doesn't exist`);return(this.queueNameIndex=0,s)?o.pushUnique(t,n,i,r):o.push(t,n,i,r)}flush(){let e,t,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this.queueNames.length;for(;this.queueNameIndexs){let t=i-s;e=Array(t);for(let n=0;n{B++,!1!==this._autorun&&(this._autorun=!1,this._autorunStack=null,this._end(!0))};let n=this.options._buildPlatform||o;this._platform=n(this._boundAutorunEnd)}get counters(){return{begin:x,end:T,events:{begin:S,end:0},autoruns:{created:j,completed:B},run:C,join:E,defer:A,schedule:D,scheduleIterable:I,deferOnce:P,scheduleOnce:M,setTimeout:F,later:N,throttle:O,debounce:L,cancelTimers:R,cancel:U,loops:{total:z,nested:$}}}get defaultQueue(){return this._defaultQueue}begin(){let e;x++;let t=this.options,n=this.currentInstance;return!1!==this._autorun?(e=n,this._cancelAutorun()):(null!==n&&($++,this.instanceStack.push(n)),z++,e=this.currentInstance=new g(this.queueNames,t),S++,this._trigger("begin",e,n)),this._onBegin(e,n),e}end(){T++,this._end(!1)}on(e,t){if("function"!=typeof t)throw TypeError("Callback must be a function");let n=this._eventCallbacks[e];if(void 0!==n)n.push(t);else throw TypeError(`Cannot on() event ${e} because it does not exist`)}off(e,t){let n=this._eventCallbacks[e];if(!e||void 0===n)throw TypeError(`Cannot off() event ${e} because it does not exist`);let i=!1;if(t)for(let e=0;e3?i-3:0),r=3;r1?t-1:0),i=1;i3?i-3:0),r=3;r1?t-1:0),i=1;i0&&l(n[s-1])&&(i=parseInt(n.pop(),10)),[e,t,n,i]}(...arguments);return this._later(e,t,n,i)}throttle(){let e;O++;let[t,n,i,s,r=!0]=w(...arguments),o=d(t,n,this._timers);if(-1===o)e=this._later(t,n,r?y:i,s),r&&this._join(t,n,i);else{e=this._timers[o+1];let t=o+4;this._timers[t]!==y&&(this._timers[t]=i)}return e}debounce(){let e;L++;let[t,n,i,s,r=!1]=w(...arguments),o=this._timers,a=d(t,n,o);if(-1===a)e=this._later(t,n,r?y:i,s),r&&this._join(t,n,i);else{let r=this._platform.now()+s,l=a+4;o[l]===y&&(i=y),e=o[a+1];let u=h(r,o);if(a+6===u)o[a]=r,o[l]=i;else{let s=this._timers[a+5];this._timers.splice(u,0,r,e,t,n,i,s),this._timers.splice(a,6)}0===a&&this._reinstallTimerTimeout()}return e}cancelTimers(){R++,this._clearTimerTimeout(),this._timers=[],this._cancelAutorun()}hasTimers(){return this._timers.length>0||this._autorun}cancel(e){if(U++,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:p(this._timers,6,2),instanceStack:[this.currentInstance,...this.instanceStack].map(e=>e&&e._getDebugInfo(this.DEBUG))}}_end(e){let t,n=this.currentInstance,i=null;if(null===n)throw Error("end called without begin");let s=!1;try{t=n.flush(e)}finally{if(!s){if(s=!0,1===t){let e=this.queueNames[n.queueNameIndex];this._scheduleAutorun(e)}else this.currentInstance=null,this.instanceStack.length>0&&(i=this.instanceStack.pop(),this.currentInstance=i),this._trigger("end",n,i),this._onEnd(n,i)}}}_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 i=u(this.options);if(this.begin(),i)try{return t.apply(e,n)}catch(e){i(e)}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,i){let s=this.DEBUG?Error():void 0,r=this._platform.now()+i,o=k++;if(0===this._timers.length)this._timers.push(r,o,e,t,n,s),this._installTimerTimeout();else{let i=h(r,this._timers);this._timers.splice(i,0,r,o,e,t,n,s),this._reinstallTimerTimeout()}return o}_cancelLaterTimer(e){for(let t=1;t0&&(this.begin(),this._scheduleExpiredTimers(),this.end())}_scheduleExpiredTimers(){let e=this._timers,t=0,n=e.length,i=this._defaultQueue,s=this._platform.now();for(;ts);t+=6){let n=e[t+4];if(n!==y){let s=e[t+2],r=e[t+3],o=e[t+5];this.currentInstance.schedule(i,s,r,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=Math.max(0,this._timers[0]-this._platform.now());this._timerTimeoutId=this._platform.setTimeout(this._boundRunExpiredTimers,e)}_ensureInstance(){let e=this.currentInstance;return null===e&&(this._autorunStack=this.DEBUG?Error():void 0,e=this.begin(),this._scheduleAutorun(this.queueNames[0])),e}_scheduleAutorun(e){j++;let t=this._platform.next,n=this.options.flush;n?n(e,t):t(),this._autorun=!0}}q.Queue=m,q.buildPlatform=o,q.buildNext=r},14757:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var i=function(){function e(){this._vertices=new s}return e.prototype.add=function(e,t,n,i){if(!e)throw Error("argument `key` is required");var s=this._vertices,r=s.add(e);if(r.val=t,n){if("string"==typeof n)s.addEdge(r,s.add(n));else for(var o=0;o0){var i="cycle detected: "+t;throw this.each(this.path,function(e){i+=" <- "+e}),Error(i)}}},e.prototype.reset=function(){this.stack.length=0,this.path.length=0,this.result.length=0;for(var e=0,t=this.length;e=0){var o=this[r];if(o.flag)continue;if(o.flag=!0,i.push(r),t===o.key)break;n.push(~r),this.pushIncoming(o)}else i.pop(),s.push(~r)}},e.prototype.pushIncoming=function(e){for(var t=this.stack,n=e.length-1;n>=0;n--){var i=e[n];this[i].flag||t.push(i)}},e.prototype.each=function(e,t){for(var n=0,i=e.length;n{"use strict";n.r(t),n.d(t,{Adapter:()=>o.default,QUnitAdapter:()=>l.default,Test:()=>r.default,setupForTesting:()=>a.default});var i=n(74374),s=n(64014),r=n(750),o=n(44326),a=n(29538),l=n(15172);(0,s.registerTestImplementation)(i.E)},44326:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i=n(70001).default.extend({asyncStart(){},asyncEnd(){},exception(e){throw e}})},15172:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o}),n(38389);var i=n(44326),s=n(15597);function r(e){return null!=e&&"function"==typeof e.stop}let o=i.default.extend({init(){this.doneCallbacks=[]},asyncStart(){r(QUnit)?QUnit.stop():this.doneCallbacks.push(QUnit.config.current?QUnit.config.current.assert.async():null)},asyncEnd(){if(r(QUnit))QUnit.start();else{let e=this.doneCallbacks.pop();e&&e()}},exception(e){QUnit.config.current.assert.ok(!1,(0,s.default)(e))}})},80818:(e,t,n)=>{"use strict";n.r(t);var i=n(8968),s=n(29538),r=n(45368),o=n(14260),a=n(98996),l=n(92900),u=n(20470);function c(e,t){let n=r.helpers[t],i=n.method;return n.meta.wait?function(){for(var t=arguments.length,n=Array(t),s=0;s(0,o.resolve)((0,o.getLastPromise)()));return(0,u.asyncStart)(),r.then(()=>i.apply(e,[e,...n])).finally(u.asyncEnd)}:function(){for(var t=arguments.length,n=Array(t),s=0;s{"use strict";n.r(t),n.d(t,{default:()=>s.R}),n(10441),n(13385),n(52149),n(27784),n(98880),n(92082),n(54401),n(52681);var i=n(42433),s=n(65828);s.R.configure("async",function(e,t){i._backburner.schedule("actions",()=>e(t))})},36973:(e,t,n)=>{"use strict";n.r(t);var i=n(45368),s=n(78913),r=n(74697),o=n(61831),a=n(93601),l=n(75707),u=n(71821),c=n(23473);(0,i.registerAsyncHelper)("visit",u.default),(0,i.registerAsyncHelper)("wait",c.default),(0,i.registerAsyncHelper)("andThen",s.default),(0,i.registerAsyncHelper)("pauseTest",l.pauseTest),(0,i.registerHelper)("currentRouteName",o.default),(0,i.registerHelper)("currentPath",r.default),(0,i.registerHelper)("currentURL",a.default),(0,i.registerHelper)("resumeTest",l.resumeTest)},78913:(e,t,n)=>{"use strict";function i(e,t){return(0,e.testHelpers.wait)(t(e))}n.r(t),n.d(t,{default:()=>i}),n(38389)},74697:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s}),n(70001),n(24086),n(32581),n(38389),n(5268),n(55336),n(60465);var i=n(47552);function s(e){let t=e.__container__.lookup("service:-routing");return(0,i.g)(t,"currentPath")}n(24691),n(18421),n(52352),n(65828),n(62499),n(37332),n(82806)},61831:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s}),n(70001),n(24086),n(32581),n(38389),n(5268),n(55336),n(60465);var i=n(47552);function s(e){let t=e.__container__.lookup("service:-routing");return(0,i.g)(t,"currentRouteName")}n(24691),n(18421),n(52352),n(65828),n(62499),n(37332),n(82806)},93601:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s}),n(70001),n(38389),n(11639);var i=n(47552);function s(e){let t=e.__container__.lookup("router:main");return(0,i.g)(t,"location").getURL()}n(24086),n(32581),n(5268),n(55336),n(60465),n(24691)},75707:(e,t,n)=>{"use strict";let i;n.r(t),n.d(t,{pauseTest:()=>a,resumeTest:()=>o}),n(10441),n(13385),n(52149),n(27784),n(98880),n(92082),n(54401),n(52681);var s=n(38389),r=n(65828);function o(){i(),i=void 0}function a(){return(0,s.info)("Testing paused. Use `resumeTest()` to continue."),new r.R.Promise(e=>{i=e},"TestAdapter paused promise")}},71821:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s}),n(38389),n(11639);var i=n(42433);function s(e,t){let n=e.__container__.lookup("router:main"),s=!1;return e.boot().then(()=>{n.location.setURL(t),s&&(0,i.run)(e.__deprecatedInstance__,"handleURL",t)}),e._readinessDeferrals>0?(n.initialURL=t,(0,i.run)(e,"advanceReadiness"),delete n.initialURL):s=!0,(0,e.testHelpers.wait)()}},23473:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});var i=n(72106);n(10441),n(13385),n(52149),n(27784),n(98880),n(92082),n(54401),n(52681);var s=n(42433),r=n(84795);n(38389),n(11639);var o=n(65828);function a(e,t){return new o.R.Promise(function(n){let o=e.__container__.lookup("router:main"),a=setInterval(()=>{o._routerMicrolib&&o._routerMicrolib.activeTransition||(0,r.pendingRequests)()||(0,s._hasScheduledTimers)()||(0,s._getCurrentRunLoop)()||(0,i.checkWaiters)()||(clearInterval(a),(0,s.run)(null,n,t))},10)})}},94455:(e,t,n)=>{"use strict";n.r(t),n(32581),n(24691),n(38389),n(42433),n(24086),n(5268),n(55336),n(60465),n(47552);var i=n(82471);n(10441),n(13385),n(52149),n(27784),n(98880),n(92082),n(54401),n(52681),n(70001),n(73460),n(76996),n(30576),n(47052),n(55996),n(58564),n(20786),n(46349),n(85013),n(11639),n(99046),n(18421),n(52352),n(65828),n(62499),n(37332),n(82806),n(10010),n(11676),n(64579),n(95374),n(29067),n(8608),n(517);let s="deferReadiness in `testing` mode";(0,i.onLoad)("Ember.Application",function(e){e.initializers[s]||e.initializer({name:s,initialize(e){e.testing&&e.deferReadiness()}})})},69670:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Adapter:()=>s.default,QUnitAdapter:()=>o.default,Test:()=>i.default,setupForTesting:()=>r.default});var i=n(750),s=n(44326),r=n(29538),o=n(15172);n(80818),n(63303),n(36973),n(94455)},29538:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a}),n(38389);var i=n(20470),s=n(44326),r=n(15172),o=n(22325);function a(){(0,o.setTesting)(!0),(0,i.getAdapter)()||(0,i.setAdapter)(void 0===self.QUnit?s.default.create():r.default.create())}},750:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l});var i=n(45368),s=n(92900),r=n(14260),o=n(72106),a=n(20470);let l={_helpers:i.helpers,registerHelper:i.registerHelper,registerAsyncHelper:i.registerAsyncHelper,unregisterHelper:i.unregisterHelper,onInjectHelpers:s.onInjectHelpers,Promise:r.default,promise:r.promise,resolve:r.resolve,registerWaiter:o.registerWaiter,unregisterWaiter:o.unregisterWaiter,checkWaiters:o.checkWaiters};Object.defineProperty(l,"adapter",{get:a.getAdapter,set:a.setAdapter})},20470:(e,t,n)=>{"use strict";let i;n.r(t),n.d(t,{asyncEnd:()=>l,asyncStart:()=>a,getAdapter:()=>r,setAdapter:()=>o});var s=n(68106);function r(){return i}function o(e){i=e,e&&"function"==typeof e.exception?(0,s.setDispatchOverride)(u):(0,s.setDispatchOverride)(null)}function a(){i&&i.asyncStart()}function l(){i&&i.asyncEnd()}function u(e){i.exception(e),console.error(e.stack)}},45368:(e,t,n)=>{"use strict";n.r(t),n.d(t,{helpers:()=>s,registerAsyncHelper:()=>o,registerHelper:()=>r,unregisterHelper:()=>a});var i=n(14260);let s={};function r(e,t){s[e]={method:t,meta:{wait:!1}}}function o(e,t){s[e]={method:t,meta:{wait:!0}}}function a(e){delete s[e],delete i.default.prototype[e]}},92900:(e,t,n)=>{"use strict";n.r(t),n.d(t,{callbacks:()=>i,invokeInjectHelpersCallbacks:()=>r,onInjectHelpers:()=>s});let i=[];function s(e){i.push(e)}function r(e){for(let t of i)t(e)}},84795:(e,t,n)=>{"use strict";n.r(t),n.d(t,{clearPendingRequests:()=>r,decrementPendingRequests:()=>a,incrementPendingRequests:()=>o,pendingRequests:()=>s});let i=[];function s(){return i.length}function r(){i.length=0}function o(e,t){i.push(t)}function a(e,t){setTimeout(function(){for(let e=0;e{"use strict";n.r(t),n.d(t,{default:()=>o,getLastPromise:()=>u,promise:()=>a,resolve:()=>l}),n(10441),n(13385),n(52149),n(27784),n(98880),n(92082),n(54401),n(52681);var i=n(98996),s=n(65828);let r=null;class o extends s.R.Promise{constructor(e,t){super(e,t),r=this}then(e,t,n){let s="function"==typeof e?t=>(function(e,t){r=null;let n=e(t),s=r;return(r=null,n&&n instanceof o||!s)?n:(0,i.default)(()=>l(s).then(()=>n))})(e,t):void 0;return super.then(s,t,n)}}function a(e,t){return new o(e,`Ember.Test.promise: ${t||""}`)}function l(e,t){return o.resolve(e,t)}function u(){return r}},98996:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(42433);function s(e){return(0,i._getCurrentRunLoop)()?e():(0,i.run)(e)}},72106:(e,t,n)=>{"use strict";n.r(t),n.d(t,{checkWaiters:()=>a,registerWaiter:()=>r,unregisterWaiter:()=>o});let i=[],s=[];function r(){let e,t;1==arguments.length?(t=null,e=arguments.length<=0?void 0:arguments[0]):(t=arguments.length<=0?void 0:arguments[0],e=arguments.length<=1?void 0:arguments[1]),l(t,e)>-1||(i.push(t),s.push(e))}function o(e,t){if(!s.length)return;1==arguments.length&&(t=e,e=null);let n=l(e,t);-1!==n&&(i.splice(n,1),s.splice(n,1))}function a(){if(!s.length)return!1;for(let e=0;e{"use strict";let i;n.r(t),n.d(t,{default:()=>eR});var s=n(24691),r=n(32581),o=n(89563),a=n(44249),l=n(64579),u=n(84392),c=n(24086),d=n(47552),p=n(83108),h=n(38389),m=n(55336),g=n(5268),f=n(60465),_=n(8387),y=n(43082),b=n(29080),w=n(39498),k=n(21176),x=n(82806),T=n(54729),S=n(70001);n(30778);var C=n(53067),E=n(13816),A=n(98106),D=n(71121),I=n(70003),P=n(88702),M=n(14829),F=n(29732),N=n(89711),O=n(10441),L=n(13385),R=n(52149),U=n(27784),j=n(98880),B=n(92082);n(54401),n(52681);var z=n(10010),$=n(11676),q=n(2058),H=n(95374),V=n(42433);n(29067);var W=n(84435),K=n(49861),G=n(45857),Y=n(51446),Q=n(76996);n(30576),n(47052),n(55996),n(58564),n(20786),n(46349),n(73460);var J=n(91990),X=n(98647),Z=n(68106),ee=n(50827),et=n(8968),en=n(84301),ei=n(40607),es=n(8608),er=n(18421),eo=n(64096),ea=n(134),el=n(4476),eu=n(43056),ec=n(31384),ed=n(12553),ep=n(80361),eh=n(67748),em=n(49418),eg=n(99046),ef=n(85013),e_=n(11639);n(52352);var ey=n(65828);n(62499),n(37332);var eb=n(44416),ev=n(43883),ew=n(93338),ek=n(23348),ex=n(64014),eT=n(74490),eS=n(82471),eC=n(90941),eE=n(38469),eA=n(16547),eD=n(15597),eI=n(49914),eP=n(94305),eM=n(22325);!function(e){function t(){}e.isNamespace=!0,e.toString=function(){return"Ember"},e.Container=l.C,e.Registry=l.R,e._setComponentManager=W.s,e._componentManagerCapabilities=f.componentCapabilities,e._modifierManagerCapabilities=f.modifierCapabilities,e.meta=c.meta,e._createCache=m.createCache,e._cacheGetValue=m.getValue,e._cacheIsConst=m.isConst,e._descriptor=d.B,e._getPath=d._,e._setClassicDecorator=d.s,e._tracked=d.S,e.beginPropertyChanges=d.m,e.changeProperties=d.T,e.endPropertyChanges=d.l,e.hasListeners=d.x,e.libraries=d.O,e._ContainerProxyMixin=L.default,e._ProxyMixin=j.default,e._RegistryProxyMixin=O.default,e.ActionHandler=U.default,e.Comparable=R.default,e.ComponentLookup=Q.default,e.EventDispatcher=Y.default,e._Cache=a.C,e.GUID_KEY=r.G,e.canInvoke=o.c,e.generateGuid=r.b,e.guidFor=r.g,e.uuid=r.u,e.wrap=r.w,e.getOwner=et.getOwner,e.onLoad=eS.onLoad,e.runLoadHooks=eS.runLoadHooks,e.setOwner=et.setOwner,e.Application=et.default,e.ApplicationInstance=en.default,e.Namespace=ei.default,e.A=N.A,e.Array=N.default,e.NativeArray=N.NativeArray,e.isArray=N.isArray,e.makeArray=eC.default,e.MutableArray=N.MutableArray,e.ArrayProxy=ee.default,e.FEATURES={isEnabled:w.isEnabled,...w.FEATURES},e._Input=$.I,e.Component=$.C,e.Helper=$.H,e.Controller=x.default,e.ControllerMixin=x.ControllerMixin,e._captureRenderTree=eE.default,e.assert=eA.assert,e.warn=h.warn,e.debug=h.debug,e.deprecate=h.deprecate,e.deprecateFunc=h.deprecateFunc,e.runInDebug=h.runInDebug,e.inspect=eD.default,e.Debug={registerDeprecationHandler:eI.registerHandler,registerWarnHandler:eP.registerHandler,isComputed:d.U},e.ContainerDebugAdapter=J.default,e.DataAdapter=X.default,e._assertDestroyablesDestroyed=g.assertDestroyablesDestroyed,e._associateDestroyableChild=g.associateDestroyableChild,e._enableDestroyableTracking=g.enableDestroyableTracking,e._isDestroying=g.isDestroying,e._isDestroyed=g.isDestroyed,e._registerDestructor=ek.registerDestructor,e._unregisterDestructor=ek.unregisterDestructor,e.destroy=g.destroy,e.Engine=es.default,e.EngineInstance=er.default,e.Enumerable=eo.default,e.MutableEnumerable=B.default,e.instrument=u.instrument,e.subscribe=u.subscribe,e.Instrumentation={instrument:u.instrument,subscribe:u.subscribe,unsubscribe:u.unsubscribe,reset:u.reset},e.Object=S.default,e._action=S.action,e.computed=d.c,e.defineProperty=d.d,e.get=d.g,e.getProperties=y.g,e.notifyPropertyChange=d.n,e.observer=S.observer,e.set=_.s,e.trySet=_.t,e.setProperties=y.s,e.cacheFor=p.g,e._dependentKeyCompat=C.dependentKeyCompat,e.ComputedProperty=d.C,e.expandProperties=d.e,e.CoreObject=ea.default,e.Evented=el.default,e.on=d.N,e.addListener=d.G,e.removeListener=d.H,e.sendEvent=d.k,e.Mixin=eu.default,e.mixin=eu.mixin,e.Observable=ec.default,e.addObserver=d.v,e.removeObserver=d.w,e.PromiseProxyMixin=ep.default,e.ObjectProxy=ed.default,e.RouterDSL=ev.default,e.controllerFor=ew.default,e.generateController=eb.default,e.generateControllerFactory=eb.generateControllerFactory,e.HashLocation=eh.default,e.HistoryLocation=em.default,e.NoneLocation=eg.default,e.Route=ef.default,e.Router=e_.default,e.run=V.run,e.Service=T.default,e.compare=F.default,e.isBlank=A.default,e.isEmpty=D.default,e.isEqual=P.default,e.isNone=E.default,e.isPresent=I.default,e.typeOf=M.default,e.VERSION=K.default,e.ViewUtils={getChildViews:G.getChildViews,getElementView:G.getElementView,getRootViews:G.getRootViews,getViewBounds:G.getViewBounds,getViewBoundingClientRect:G.getViewBoundingClientRect,getViewClientRects:G.getViewClientRects,getViewElement:G.getViewElement,isSimpleClick:G.isSimpleClick,isSerializationFirstNode:H.isSerializationFirstNode},e._getComponentTemplate=f.getComponentTemplate,e._helperManagerCapabilities=f.helperCapabilities,e._setComponentTemplate=f.setComponentTemplate,e._setHelperManager=f.setHelperManager,e._setModifierManager=f.setModifierManager,e._templateOnlyComponent=H.templateOnlyComponent,e._invokeHelper=H.invokeHelper,e._hash=H.hash,e._array=H.array,e._concat=H.concat,e._get=H.get,e._on=H.on,e._fn=H.fn,e._Backburner=k.default,e.inject=t,t.controller=x.inject,t.service=T.service,e.__loader={get require(){return globalThis.require},get define(){return globalThis.define},get registry(){let e=globalThis;return e.requirejs?.entries??e.require.entries}}}(i||(i={})),Object.defineProperty(i,"ENV",{get:s.b,enumerable:!1}),Object.defineProperty(i,"lookup",{get:s.a,set:s.s,enumerable:!1}),Object.defineProperty(i,"onerror",{get:Z.getOnerror,set:Z.setOnerror,enumerable:!1}),Object.defineProperty(i,"testing",{get:eM.isTesting,set:eM.setTesting,enumerable:!1}),Object.defineProperty(i,"BOOTED",{configurable:!1,enumerable:!1,get:b.i,set:b.e}),Object.defineProperty(i,"TEMPLATES",{get:q.a,set:q.b,configurable:!1,enumerable:!1}),Object.defineProperty(i,"TEMPLATES",{get:q.a,set:q.b,configurable:!1,enumerable:!1}),Object.defineProperty(i,"testing",{get:eM.isTesting,set:eM.setTesting,enumerable:!1}),(0,eS.runLoadHooks)("Ember.Application",et.default);let eF={template:z.templateFactory,Utils:{escapeExpression:$.e}},eN={template:z.templateFactory};function eO(e){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:()=>(eT.__emberTemplateCompiler&&(eN.precompile=eF.precompile=eT.__emberTemplateCompiler.precompile,eN.compile=eF.compile=eT.compileTemplate,Object.defineProperty(i,"HTMLBars",{configurable:!0,writable:!0,enumerable:!0,value:eN}),Object.defineProperty(i,"Handlebars",{configurable:!0,writable:!0,enumerable:!0,value:eF})),"Handlebars"===e?eF:eN)})}function eL(e){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get(){if(ex._impl){let{Test:t,Adapter:n,QUnitAdapter:s,setupForTesting:r}=ex._impl;return t.Adapter=n,t.QUnitAdapter=s,Object.defineProperty(i,"Test",{configurable:!0,writable:!0,enumerable:!0,value:t}),Object.defineProperty(i,"setupForTesting",{configurable:!0,writable:!0,enumerable:!0,value:r}),"Test"===e?t:r}}})}eO("HTMLBars"),eO("Handlebars"),eL("Test"),eL("setupForTesting"),(0,eS.runLoadHooks)("Ember"),i.RSVP=ey.R;let eR=i},1133:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var i=n(76885);let s=new Proxy(n(11065).default,{get:(e,t,n)=>("string"==typeof t&&(0,i.deprecateUntil)(`importing ${t} from the 'ember' barrel file is deprecated.`,i.DEPRECATIONS.DEPRECATE_IMPORT_EMBER(t)),Reflect.get(e,t,n)),getOwnPropertyDescriptor:(e,t)=>("string"==typeof t&&(0,i.deprecateUntil)(`importing ${t} from the 'ember' barrel file is deprecated.`,i.DEPRECATIONS.DEPRECATE_IMPORT_EMBER(t)),Object.getOwnPropertyDescriptor(e,t))})},49861:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});let i="5.12.0"},52352:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>A});var i=Object.create;function s(){var e=i(null);return e.__=void 0,delete e.__,e}var r=function(e,t,n){this.path=e,this.matcher=t,this.delegate=n};r.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 Error("You must have an argument in the function passed to `to`");this.matcher.addChild(this.path,e,t,this.delegate)}};var o=function(e){this.routes=s(),this.children=s(),this.target=e};function a(e,t,n){return function(i,s){var o=e+i;if(!s)return new r(o,t,n);s(a(o,t,n))}}function l(e){return e.split("/").map(c).join("/")}o.prototype.add=function(e,t){this.routes[e]=t},o.prototype.addChild=function(e,t,n,i){var s=new o(t);this.children[e]=s;var r=a(e,s,i);i&&i.contextEntered&&i.contextEntered(t,r),n(r)};var u=/%|\//g;function c(e){return e.length<3||-1===e.indexOf("%")?e:decodeURIComponent(e).replace(u,encodeURIComponent)}var d=/%(?:2(?:4|6|B|C)|3(?:B|D|A)|40)/g;function p(e){return encodeURIComponent(e).replace(d,decodeURIComponent)}var h=/(\/|\.|\*|\+|\?|\||\(|\)|\[|\]|\{|\}|\\)/g,m=Array.isArray,g=Object.prototype.hasOwnProperty;function f(e,t){if("object"!=typeof e||null===e)throw Error("You must pass an object as the second argument to `generate`.");if(!g.call(e,t))throw Error("You must provide param `"+t+"` to `generate`.");var n=e[t],i="string"==typeof n?n:""+n;if(0===i.length)throw Error("You must provide a param `"+t+"`.");return i}var _=[];_[0]=function(e,t){for(var n=t,i=e.value,s=0;s0&&47===t.charCodeAt(0)&&(t=t.substr(1));for(var i=t.split("/"),s=void 0,r=void 0,o=0;o2&&"[]"===r.slice(o-2)&&(a=!0,n[r=r.slice(0,o-2)]||(n[r]=[])),l=s[1]?E(s[1]):""),a?n[r].push(l):n[r]=l}return n},A.prototype.recognize=function(e){var t,n=[this.rootState],i={},s=!1,r=e.indexOf("#");-1!==r&&(e=e.substr(0,r));var o=e.indexOf("?");if(-1!==o){var a=e.substr(o+1,e.length);e=e.substr(0,o),i=this.parseQueryString(a)}"/"!==e.charAt(0)&&(e="/"+e);var u=e;A.ENCODE_AND_DECODE_PATH_SEGMENTS?e=l(e):(e=decodeURI(e),u=decodeURI(u));var c=e.length;c>1&&"/"===e.charAt(c-1)&&(e=e.substr(0,c-1),u=u.substr(0,u.length-1),s=!0);for(var d=0;d{"use strict";n.r(t),n.d(t,{InternalRouteInfo:()=>i.I,InternalTransition:()=>s.T,PARAMS_SYMBOL:()=>s.P,QUERY_PARAMS_SYMBOL:()=>s.Q,STATE_SYMBOL:()=>s.S,TransitionError:()=>i.a,TransitionState:()=>i.T,default:()=>i.R,logAbort:()=>s.l});var i=n(36951),s=n(62499)},35223:(e,t,n)=>{"use strict";n.r(t),n.d(t,{EventTarget:()=>i.E,Promise:()=>i.P,all:()=>i.e,allSettled:()=>i.f,asap:()=>i.b,async:()=>i.q,cast:()=>i.d,configure:()=>i.c,default:()=>i.a,defer:()=>i.j,denodeify:()=>i.k,filter:()=>i.s,hash:()=>i.h,hashSettled:()=>i.g,map:()=>i.p,off:()=>i.l,on:()=>i.o,race:()=>i.r,reject:()=>i.n,resolve:()=>i.m,rethrow:()=>i.i});var i=n(65828)},72299:(e,t,n)=>{"use strict";n.r(t),n.d(t,{a:()=>l});var i=n(24086);n(38389);var s=n(55336),r=n(47552),o=n(8387),a=n(15597);function l(e){return(0,r.F)(new c(e),u)}class u extends Function{readOnly(){return(0,r.E)(this).readOnly(),this}oneWay(){return(0,r.E)(this).oneWay(),this}meta(e){let t=(0,r.E)(this);if(0==arguments.length)return t._meta||{};t._meta=e}}class c extends r.J{altKey;constructor(e){super(),this.altKey=e}setup(e,t,n,i){super.setup(e,t,n,i),r.K.add(this)}get(e,t){let n;let o=(0,i.meta)(e),a=(0,s.tagMetaFor)(e),l=(0,s.tagFor)(e,t,a);(0,s.untrack)(()=>{n=(0,r.g)(e,this.altKey)});let u=o.revisionFor(t);return void 0!==u&&(0,s.validateTag)(l,u)||((0,s.updateTag)(l,(0,r.L)(e,this.altKey,a,o)),o.setRevisionFor(t,(0,s.valueForTag)(l)),(0,r.M)(o,t,n)),(0,s.consumeTag)(l),n}set(e,t,n){return(0,o.s)(e,this.altKey,n)}readOnly(){this.set=d}oneWay(){this.set=p}}function d(e,t){throw Error(`Cannot set read-only property '${t}' on object: ${(0,a.default)(e)}`)}function p(e,t,n){return(0,r.d)(e,t,null),(0,o.s)(e,t,n)}},77880:(e,t,n)=>{"use strict";n.r(t),n.d(t,{a:()=>l,b:()=>r,c:()=>o,d:()=>d,e:()=>p,r:()=>u}),n(38389);var i=n(24086),s=n(47552);function r(e,t,n,i){return void 0===t?(t=0,n=i=-1):(void 0===n&&(n=-1),void 0===i&&(i=-1)),(0,s.k)(e,"@array:before",[e,t,n,i]),e}function o(e,t,n,r){let o=!(arguments.length>4)||void 0===arguments[4]||arguments[4];void 0===t?(t=0,n=r=-1):(void 0===n&&(n=-1),void 0===r&&(r=-1));let a=(0,i.peekMeta)(e);if(o&&((r<0||n<0||r-n!=0)&&(0,s.n)(e,"length",a),(0,s.n)(e,"[]",a)),(0,s.k)(e,"@array:change",[e,t,n,r]),null!==a){let i=e.length,o=-1===n?0:n,l=i-((-1===r?0:r)-o),u=t<0?l+t:t;void 0!==a.revisionFor("firstObject")&&0===u&&(0,s.n)(e,"firstObject",a),void 0!==a.revisionFor("lastObject")&&l-13&&void 0!==arguments[3]?arguments[3]:a;!function(e){return null!=e&&"function"==typeof e.replace}(e)?u(e,t,n,i):e.replace(t,n,i)}function u(e,t,n,i){if(r(e,t,n,i.length),i.length<=6e4)e.splice(t,n,...i);else{e.splice(t,n);for(let n=0;n{"use strict";let i,s;n.r(t),n.d(t,{$:()=>eL,A:()=>en,B:()=>I,C:()=>em,D:()=>s,E:()=>L,F:()=>F,G:()=>$,H:()=>q,I:()=>es,J:()=>P,K:()=>T,L:()=>E,M:()=>S,N:()=>W,O:()=>eM,P:()=>eS,Q:()=>ea,R:()=>ey,S:()=>eN,T:()=>ep,U:()=>eb,V:()=>eA,W:()=>eP,X:()=>Y,Y:()=>G,Z:()=>x,_:()=>eD,a:()=>w,b:()=>O,c:()=>e_,d:()=>ev,e:()=>B,f:()=>R,g:()=>eE,h:()=>eC,i:()=>D,j:()=>X,k:()=>H,l:()=>ed,m:()=>ec,n:()=>eu,o:()=>y,p:()=>eF,q:()=>eT,r:()=>M,s:()=>U,t:()=>k,u:()=>i,v:()=>Q,w:()=>J,x:()=>V,y:()=>ek,z:()=>ew});var r=n(24086),o=n(32581);n(38389);var a=n(5268),l=n(55336),u=n(60465),c=n(24691),d=n(41849),p=n(79133),h=n(88848),m=n(44249),g=n(49861),f=n(83285),_=n(15597);function y(e,t){return Array.isArray(e)?e[t]:e.objectAt(t)}let b=(0,d.s)("SELF_TAG");function w(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,s=(0,u.getCustomTagFor)(e);return void 0!==s?s(e,t,n):(0,l.tagFor)(e,t,i)}function k(e){return(0,o.e)(e)?(0,l.tagFor)(e,b):l.CONSTANT_TAG}function x(e,t){(0,l.dirtyTagFor)(e,t),(0,l.dirtyTagFor)(e,b)}let T=new WeakSet;function S(e,t,n){let i=e.readableLazyChainsFor(t);if(void 0!==i){if((0,o.e)(n))for(let[e,t]of i)(0,l.updateTag)(e,E(n,t,(0,l.tagMetaFor)(n),(0,r.peekMeta)(n)));i.length=0}}function C(e,t,n,i){let s=[];for(let r of t)A(s,e,r,n,i);return(0,l.combine)(s)}function E(e,t,n,i){return(0,l.combine)(A([],e,t,n,i))}function A(e,t,n,i,s){let a,u,c=t,d=i,p=s,h=n.length,m=-1;for(;;){let t=m+1;if(-1===(m=n.indexOf(".",t))&&(m=h),"@each"===(a=n.slice(t,m))&&m!==h){t=m+1,m=n.indexOf(".",t);let i=c.length;if("number"==typeof i&&(Array.isArray(c)||"objectAt"in c)){if(0===i){e.push(w(c,"[]"));break}}else break;a=-1===m?n.slice(t):n.slice(t,m);for(let t=0;tvoid 0)();_meta=(()=>void 0)();setup(e,t,n,i){i.writeDescriptors(t,this)}teardown(e,t,n){n.removeDescriptors(t)}}let M=new WeakSet;function F(e,t){let n=function(t,n,i,s,o){let a=3==arguments.length?(0,r.meta)(t):s;return e.setup(t,n,i,a),{enumerable:e.enumerable,configurable:e.configurable,get:function(e,t){return function(){return t.get(this,e)}}(n,e),set:function(e,t){let n=function(n){return t.set(this,e,n)};return M.add(n),n}(n,e)}};return U(n,e),Object.setPrototypeOf(n,t.prototype),n}let N=new WeakMap;function O(e,t,n){let i=void 0===n?(0,r.peekMeta)(e):n;if(null!==i)return i.peekDescriptors(t)}function L(e){return N.get(e)}function R(e){return"function"==typeof e&&N.has(e)}function U(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];N.set(e,t)}let j=/\.@each$/;function B(e,t){let n=e.indexOf("{");n<0?t(e.replace(j,".[]")):function e(t,n,i,s){let r=n.indexOf("}"),o=0,a,l,u=n.substring(i+1,r).split(","),c=n.substring(r+1);for(t+=n.substring(0,i),l=u.length;o5)||void 0===arguments[5]||arguments[5];i||"function"!=typeof n||(i=n,n=null),(0,r.meta)(e).addToListeners(t,n,i,!0===s,o)}function q(e,t,n,i){let s,o;"object"==typeof n?(s=n,o=i):(s=null,o=n),(0,r.meta)(e).removeFromListeners(t,s,o)}function H(e,t,n,i,s){if(void 0===i){let n=void 0===s?(0,r.peekMeta)(e):s;i=null!==n?n.matchingListeners(t):void 0}if(void 0===i||0===i.length)return!1;for(let s=i.length-3;s>=0;s-=3){let r=i[s],o=i[s+1],a=i[s+2];if(!o)continue;a&&q(e,t,r,o),r||(r=e);let l=typeof o;("string"===l||"symbol"===l)&&(o=r[o]),o.apply(r,n)}return!0}function V(e,t){let n=(0,r.peekMeta)(e);if(null===n)return!1;let i=n.matchingListeners(t);return void 0!==i&&i.length>0}function W(){for(var e=arguments.length,t=Array(e),n=0;n4&&void 0!==arguments[4]?arguments[4]:K,o=z(t);$(e,o,n,i,!1,s);let a=(0,r.peekMeta)(e);null!==a&&(a.isPrototypeMeta(e)||a.isInitializing())||X(e,o,s)}function J(e,t,n,i){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:K,o=z(t),a=(0,r.peekMeta)(e);null!==a&&(a.isPrototypeMeta(e)||a.isInitializing())||et(e,o,s),q(e,o,n,i)}function X(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=function(e,t){let n=!0===t?G:Y;return n.has(e)||(n.set(e,new Map),(0,a.registerDestructor)(e,()=>(function(e){G.size>0&&G.delete(e),Y.size>0&&Y.delete(e)})(e),!0)),n.get(e)}(e,n);if(i.has(t))i.get(t).count++;else{let n=t.substring(0,t.lastIndexOf(":")),s=E(e,n,(0,l.tagMetaFor)(e),(0,r.peekMeta)(e));i.set(t,{count:1,path:n,tag:s,lastRevision:(0,l.valueForTag)(s),suspended:!1})}}let Z=!1,ee=[];function et(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!0===Z){ee.push([e,t,n]);return}let i=!0===n?G:Y,s=i.get(e);if(void 0!==s){let n=s.get(t);n.count--,0===n.count&&(s.delete(t),0===s.size&&i.delete(e))}}function en(e){Y.has(e)&&Y.get(e).forEach(t=>{t.tag=E(e,t.path,(0,l.tagMetaFor)(e),(0,r.peekMeta)(e)),t.lastRevision=(0,l.valueForTag)(t.tag)}),G.has(e)&&G.get(e).forEach(t=>{t.tag=E(e,t.path,(0,l.tagMetaFor)(e),(0,r.peekMeta)(e)),t.lastRevision=(0,l.valueForTag)(t.tag)})}let ei=0;function es(e){let t=(0,l.valueForTag)(l.CURRENT_TAG);ei!==t&&(ei=t,Y.forEach((t,n)=>{let i=(0,r.peekMeta)(n);t.forEach((t,s)=>{if(!(0,l.validateTag)(t.tag,t.lastRevision)){let o=()=>{try{H(n,s,[n,t.path],void 0,i)}finally{t.tag=E(n,t.path,(0,l.tagMetaFor)(n),(0,r.peekMeta)(n)),t.lastRevision=(0,l.valueForTag)(t.tag)}};e?e("actions",o):o()}})}))}function er(){G.forEach((e,t)=>{let n=(0,r.peekMeta)(t);e.forEach((e,i)=>{if(!e.suspended&&!(0,l.validateTag)(e.tag,e.lastRevision))try{e.suspended=!0,H(t,i,[t,e.path],void 0,n)}finally{e.tag=E(t,e.path,(0,l.tagMetaFor)(t),(0,r.peekMeta)(t)),e.lastRevision=(0,l.valueForTag)(e.tag),e.suspended=!1}})})}function eo(e,t,n){let i=G.get(e);if(!i)return;let s=i.get(z(t));s&&(s.suspended=n)}let ea=Symbol("PROPERTY_DID_CHANGE"),el=0;function eu(e,t,n,i){let s=void 0===n?(0,r.peekMeta)(e):n;!(null!==s&&(s.isInitializing()||s.isPrototypeMeta(e)))&&(x(e,t),el<=0&&er(),ea in e&&(4==arguments.length?e[ea](t,i):e[ea](t)))}function ec(){el++,function(){Z=!0}()}function ed(){--el<=0&&(er(),function(){for(let[e,t,n]of(Z=!1,ee))et(e,t,n);ee=[]}())}function ep(e){ec();try{e()}finally{ed()}}function eh(){}class em extends P{_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();"function"==typeof t?this._getter=t:(this._getter=t.get||eh,this._setter=t.set)}e.length>0&&this._property(...e)}setup(e,t,n,i){if(super.setup(e,t,n,i),!1===this._hasConfig){let{get:e,set:t}=n;void 0!==e&&(this._getter=e),void 0!==t&&(this._setter=function(n,i){let s=t.call(this,i);return void 0!==e&&void 0===s?e.call(this):s})}}_property(){let e=[];function t(t){e.push(t)}for(var n=arguments.length,i=Array(n),s=0;s{n=r.call(e,t)}),void 0!==a&&(0,l.updateTag)(o,C(e,a,s,i)),i.setValueFor(t,n),i.setRevisionFor(t,(0,l.valueForTag)(o)),S(i,t,n)}return(0,l.consumeTag)(o),Array.isArray(n)&&(0,l.consumeTag)((0,l.tagFor)(n,"[]")),n}set(e,t,n){let i;this._readOnly&&this._throwReadOnlyError(e,t);let s=(0,r.meta)(e);s.isInitializing()&&void 0!==this._dependentKeys&&this._dependentKeys.length>0&&"function"==typeof e[ea]&&e.isComponent&&Q(e,t,()=>{e[ea](t)},void 0,!0);try{ec(),i=this._set(e,t,n,s),S(s,t,i);let r=(0,l.tagMetaFor)(e),o=(0,l.tagFor)(e,t,r),{_dependentKeys:a}=this;void 0!==a&&(0,l.updateTag)(o,C(e,a,r,s)),s.setRevisionFor(t,(0,l.valueForTag)(o))}finally{ed()}return i}_throwReadOnlyError(e,t){throw Error(`Cannot set read-only property "${t}" on object: ${(0,_.default)(e)}`)}_set(e,t,n,i){let s,r=void 0!==i.revisionFor(t),o=i.valueFor(t),{_setter:a}=this;eo(e,t,!0);try{s=a.call(e,t,n,o)}finally{eo(e,t,!1)}return r&&o===s||(i.setValueFor(t,s),eu(e,t,i,n)),s}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 eg extends em{get(e,t){let n,i=(0,r.meta)(e),s=(0,l.tagMetaFor)(e),o=(0,l.tagFor)(e,t,s),a=i.revisionFor(t);if(void 0!==a&&(0,l.validateTag)(o,a))n=i.valueFor(t);else{let{_getter:s}=this,r=(0,l.track)(()=>{n=s.call(e,t)});(0,l.updateTag)(o,r),i.setValueFor(t,n),i.setRevisionFor(t,(0,l.valueForTag)(o)),S(i,t,n)}return(0,l.consumeTag)(o),Array.isArray(n)&&(0,l.consumeTag)((0,l.tagFor)(n,"[]",s)),n}}class ef extends Function{readOnly(){return L(this)._readOnly=!0,this}meta(e){let t=L(this);return 0==arguments.length?t._meta||{}:(t._meta=e,this)}get _getter(){return L(this)._getter}set enumerable(e){L(this).enumerable=e}}function e_(){for(var e=arguments.length,t=Array(e),n=0;n4)||void 0===arguments[4]||arguments[4];return!0===i||!1===s?Object.defineProperty(e,t,{configurable:!0,enumerable:s,writable:!0,value:n}):e[t]=n,n}let ex=new m.C(1e3,e=>e.indexOf("."));function eT(e){return"string"==typeof e&&-1!==ex.get(e)}let eS=(0,d.s)("PROXY_CONTENT");function eC(e){return"object"==typeof e&&null!==e&&"function"==typeof e.unknownProperty}function eE(e,t){return eT(t)?eD(e,t):eA(e,t)}function eA(e,t){let n;if(null!=e)return"object"==typeof e||"function"==typeof e?(void 0===(n=e[t])&&"object"==typeof e&&!(t in e)&&eC(e)&&(n=e.unknownProperty(t)),(0,l.isTracking)()&&((0,l.consumeTag)((0,l.tagFor)(e,t)),(Array.isArray(n)||(0,h.isEmberArray)(n))&&(0,l.consumeTag)((0,l.tagFor)(n,"[]")))):n=e[t],n}function eD(e,t,n){for(let i of"string"==typeof t?t.split("."):t){if(null==e||e.isDestroyed||n&&("__proto__"===i||"constructor"===i))return;e=eA(e,i)}return e}eA("foo","a"),eA("foo",1),eA({},"a"),eA({},1),eA({unknownProperty(){}},"a"),eA({unknownProperty(){}},1),eE({},"foo"),eE({},"foo.bar");let eI={};(0,p.s)(eI),(0,l.track)(()=>eA({},"a")),(0,l.track)(()=>eA({},1)),(0,l.track)(()=>eA({a:[]},"a")),(0,l.track)(()=>eA({a:eI},"a"));class eP{_registry;_coreLibIndex;constructor(){this._registry=[],this._coreLibIndex=0}_getLibraryByName(e){for(let t of this._registry)if(t.name===e)return t}register(e,t,n){let i=this._registry.length;this._getLibraryByName(e)||(n&&(i=this._coreLibIndex++),this._registry.splice(i,0,{name:e,version:t}))}registerCoreLibrary(e,t){this.register(e,t,!0)}deRegister(e){let t,n=this._getLibraryByName(e);n&&(t=this._registry.indexOf(n),this._registry.splice(t,1))}isRegistered;logVersions}let eM=new eP;function eF(e){let t,n;for(var i=arguments.length,s=Array(i>1?i-1:0),r=1;ri)}])};return U(s),s}return eO(t)}function eO(e){let[t,n,i]=e,{getter:s,setter:o}=(0,l.trackedData)(n,i?i.initializer:void 0);function a(){let e=s(this);return(Array.isArray(e)||(0,h.isEmberArray)(e))&&(0,l.consumeTag)((0,l.tagFor)(e,"[]")),e}function u(e){o(this,e),(0,l.dirtyTagFor)(this,b)}return M.add(u),(0,r.meta)(t).writeDescriptors(n,new eL(a,u)),{enumerable:!0,configurable:!0,isTracked:!0,get:a,set:u}}eM.registerCoreLibrary("Ember",g.default);class eL{constructor(e,t){this._get=e,this._set=t,T.add(this)}get(e){return this._get.call(e)}set(e,t,n){this._set.call(e,n)}}},44249:(e,t,n)=>{"use strict";n.r(t),n.d(t,{C:()=>i});class i{size=0;misses=0;hits=0;constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]: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}}},31359:(e,t,n)=>{"use strict";n.r(t),n.d(t,{a:()=>l,d:()=>o,i:()=>u});var i=Object.defineProperty;((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})})({},{c:()=>c,f:()=>r,g:()=>o,i:()=>u,m:()=>a,n:()=>l,p:()=>d});var s=new WeakMap;function r(e,t,n,i){return o(e.prototype,t,n,i)}function o(e,t,n,i){let r={configurable:!0,enumerable:!0,writable:!0,initializer:null};for(let s of(i&&(r.initializer=i),n))r=s(e,t,r)||r;void 0===r.initializer?Object.defineProperty(e,t,r):function(e,t,n){let i=s.get(e);i||(i=new Map,s.set(e,i)),i.set(t,n)}(e,t,r)}function a(e,t,n){let{prototype:i}=e;return l(i,t,n)}function l(e,t,n){let i={...Object.getOwnPropertyDescriptor(e,t)};for(let s of n)i=s(e,t,i)||i;void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(e):void 0,i.initializer=void 0),Object.defineProperty(e,t,i)}function u(e,t){let n=function(e,t){let n=e.prototype;for(;n;){let e=s.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 c(e,t){return t.reduce((e,t)=>t(e)||e,e)}function d(e,t){for(let[n,i,s]of t)"field"===n?function(e,t,n){let i={configurable:!0,enumerable:!0,writable:!0,initializer:()=>Object.getOwnPropertyDescriptor(e,t)?.value};for(let s of n)i=s(e,t,i)||i;i.initializer&&(i.value=i.initializer.call(e),delete i.initializer),Object.defineProperty(e,t,i)}(e,i,s):l(e,i,s);return e}},83108:(e,t,n)=>{"use strict";n.r(t),n.d(t,{g:()=>s});var i=n(24086);function s(e,t){let n=(0,i.peekMeta)(e);return n?n.valueFor(t):void 0}},9800:(e,t,n)=>{"use strict";function i(e){let t=Object.create(e);return t._dict=null,delete t._dict,t}n.r(t),n.d(t,{m:()=>i})},24691:(e,t,n)=>{"use strict";function i(e){return e&&e.Object===Object?e:void 0}n.r(t),n.d(t,{E:()=>l,a:()=>o,b:()=>u,c:()=>r,g:()=>s,s:()=>a});let s=i(function(e){return e&&void 0===e.nodeType?e:void 0}("object"==typeof global&&global))||i("object"==typeof self&&self)||i("object"==typeof window&&window)||"undefined"!=typeof mainContext&&mainContext||Function("return this")(),r=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}}(s,s.Ember);function o(){return r.lookup}function a(e){r.lookup=e}let l={ENABLE_OPTIONAL_FEATURES:!1,EXTEND_PROTOTYPES:{Array:!0},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,_NO_IMPLICIT_ROUTE_MODEL:!1,_RERENDER_LOOP_LIMIT:1e3,EMBER_LOAD_HOOKS:{},FEATURES:{}};function u(){return l}(e=>{if("object"!=typeof e||null===e)return;for(let t in e){if(!Object.prototype.hasOwnProperty.call(e,t)||"EXTEND_PROTOTYPES"===t||"EMBER_LOAD_HOOKS"===t)continue;let n=l[t];!0===n?l[t]=!1!==e[t]:!1===n?l[t]=!0===e[t]:l[t]=e[t]}let{EXTEND_PROTOTYPES:t}=e;void 0!==t&&("object"==typeof t&&null!==t?l.EXTEND_PROTOTYPES.Array=!1!==t.Array:l.EXTEND_PROTOTYPES.Array=!1!==t);let{EMBER_LOAD_HOOKS:n}=e;if("object"==typeof n&&null!==n)for(let e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;let t=n[e];Array.isArray(t)&&(l.EMBER_LOAD_HOOKS[e]=t.filter(e=>"function"==typeof e))}let{FEATURES:i}=e;if("object"==typeof i&&null!==i)for(let e in i)Object.prototype.hasOwnProperty.call(i,e)&&(l.FEATURES[e]=!0===i[e])})(s.EmberENV)},73699:(e,t,n)=>{"use strict";n.r(t),n.d(t,{a:()=>l,b:()=>o,e:()=>c,h:()=>i,i:()=>u,l:()=>r,u:()=>a,w:()=>s});let i="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,s=i?self:null,r=i?self.location:null,o=i?self.history:null,a=i?self.navigator.userAgent:"Lynx (textmode)",l=!!i&&"object"==typeof chrome&&"object"!=typeof opera,u=!!i&&/Firefox|FxiOS/.test(a),c=Object.freeze(Object.defineProperty({__proto__:null,hasDOM:i,history:o,isChrome:l,isFirefox:u,location:r,userAgent:a,window:s},Symbol.toStringTag,{value:"Module"}))},11676:(e,t,n)=>{"use strict";let i;n.r(t),n.d(t,{C:()=>e1,H:()=>e2,I:()=>eg,L:()=>eT,O:()=>t8,R:()=>X,S:()=>te,T:()=>eE,_:()=>ne,a:()=>to,b:()=>nr,c:()=>no,e:()=>tr,h:()=>e6,i:()=>ta,r:()=>ni,u:()=>tR});var s=n(10010),r=n(64579),o=n(38389),a=n(95374),l=n(42433),u=n(29067),c=n(55336),d=n(60465),p=n(73699),h=n(70001),m=n(60418);n(24086);var g=n(32581),f=n(5268),_=n(47552),y=n(24691),b=n(83285),w=n(16547),k=n(31359),x=n(45857),T=n(73460);n(76996);var S=n(30576),C=n(47052),E=n(55996),A=n(58564),D=n(20786),I=n(46349),P=n(72649),M=n(84392),F=n(54729);n(15597),n(10441),n(13385),n(52149),n(27784);var N=n(98880);n(92082);var O=n(54401);n(52681),n(51446);var L=n(41849),R=n(58746),U=n(59247),j=n(48971),B=n(76885),z=n(30778),$=n(14247),q=n(6230),H=n(65828);n(18421);var V=n(61274),W=n(8387),K=n(24007),G=n(88848),Y=n(79133),Q=n(89711);n(52352),n(62499),n(37332);var J=n(44416);let X=(0,s.templateFactory)({id:"tjANIXCV",block:'[[[46,[30,0],null,null,null]],[],false,["component"]]',moduleName:"packages/@ember/-internals/glimmer/lib/templates/root.hbs",isStrictMode:!0}),Z=(0,s.templateFactory)({id:"4z3DuGQ3",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"],false,[]]',moduleName:"packages/@ember/-internals/glimmer/lib/templates/input.hbs",scope:()=>[m.on],isStrictMode:!0});function ee(){}class et{static toString(){return"internal component"}constructor(e,t,n){this.owner=e,this.args=t,this.caller=n,(0,b.setOwner)(this,e)}get id(){return(0,g.g)(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?(0,u.valueForRef)(t):void 0}positional(e){let t=this.args.positional[e];return t?(0,u.valueForRef)(t):void 0}listenerFor(e){return this.named(e)||ee}isSupportedArgument(e){return!1}onUnsupportedArgument(e){}toString(){return`<${this.constructor}:${(0,g.g)(this)}>`}}let en=new WeakMap;function ei(e,t){let n={create(){throw(0,w.assert)("Use constructor instead of create")},toString:()=>e.toString()};return en.set(n,e),(0,d.setInternalComponentManager)(eo,n),(0,d.setComponentTemplate)(t,n),n}let es={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};class er{getCapabilities(){return es}create(e,t,n,i,s,r){let o=new(function(e){return en.get(e)}(t))(e,n.capture(),(0,u.valueForRef)(r));return(0,c.untrack)(o.validateArguments.bind(o)),o}didCreate(){}didUpdate(){}didRenderLayout(){}didUpdateLayout(){}getDebugName(e){return e.toString()}getSelf(e){return(0,u.createConstRef)(e,"this")}getDestroyable(e){return e}}let eo=new er,ea=Object.freeze({});function el(e){return function(e){return e.target}(e).value}function eu(e){return void 0===e?new ec(void 0):(0,u.isConstRef)(e)?new ec((0,u.valueForRef)(e)):(0,u.isUpdatableRef)(e)?new ed(e):new ep(e)}class ec{static #e=(()=>(0,k.d)(this.prototype,"value",[_.S]))();#tm=(()=>void(0,k.i)(this,"value"))();constructor(e){this.value=e}get(){return this.value}set(e){this.value=e}}class ed{constructor(e){this.reference=e}get(){return(0,u.valueForRef)(this.reference)}set(e){(0,u.updateRef)(this.reference,e)}}class ep{local;upstream;lastUpstreamValue=(()=>ea)();constructor(e){this.upstream=new ed(e)}get(){let e=this.upstream.get();return e!==this.lastUpstreamValue&&(this.lastUpstreamValue=e,this.local=new ec(e)),this.local.get()}set(e){this.local.set(e)}}class eh extends et{validateArguments(){super.validateArguments()}_value=(()=>eu(this.args.named.value))();get value(){return this._value.get()}set value(e){this._value.set(e)}valueDidChange(e){this.value=el(e)}static #e=(()=>(0,k.a)(this.prototype,"valueDidChange",[h.action]))();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 #n=(()=>(0,k.a)(this.prototype,"keyUp",[h.action]))();listenerFor(e){let t=super.listenerFor(e);return this.isVirtualEventListener(e,t)?function(e){return t=>e(el(t),t)}(t):t}isVirtualEventListener(e,t){return -1!==["enter","insert-newline","escape-press"].indexOf(e)}}if(p.h){let e=Object.create(null),t=document.createElement("input");e[""]=!1,e.text=!0,e.checkbox=!0,i=n=>{let i=e[n];if(void 0===i){try{t.type=n,i=t.type===n}catch(e){i=!1}finally{t.type="text"}e[n]=i}return i}}else i=e=>""!==e;class em extends eh{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":i(e)?e:"text"}get isCheckbox(){return"checkbox"===this.named("type")}_checked=(()=>eu(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 #e=(()=>(0,k.a)(this.prototype,"change",[h.action]))();input(e){this.isCheckbox||super.input(e)}static #n=(()=>(0,k.a)(this.prototype,"input",[h.action]))();checkedDidChange(e){let t=e.target;this.checked=t.checked}static #i=(()=>(0,k.a)(this.prototype,"checkedDidChange",[h.action]))();isSupportedArgument(e){return -1!==["type","value","checked","enter","insert-newline","escape-press"].indexOf(e)||super.isSupportedArgument(e)}}let eg=ei(em,Z),ef=(0,s.templateFactory)({id:"Ub0nir+H",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"],false,["yield"]]',moduleName:"packages/@ember/-internals/glimmer/lib/templates/link-to.hbs",scope:()=>[m.on],isStrictMode:!0}),e_=[],ey={};function eb(e){return null==e}function ev(e){return"object"==typeof e&&null!==e&&!0===e.isQueryParams}(0,o.debugFreeze)(e_),(0,o.debugFreeze)(ey);class ew extends et{static toString(){return"LinkTo"}static #e=(()=>(0,k.d)(this.prototype,"routing",[(0,F.service)("-routing")]))();#fe=(()=>void(0,k.i)(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:i}=this;return(0,c.consumeTag)((0,c.tagFor)(e,"currentState")),e.generateURL(t,n,i)}click(e){if(!(0,x.isSimpleClick)(e))return;let t=e.currentTarget;if(!(""===t.target||"_self"===t.target)||(this.preventDefault(e),this.isDisabled||this.isLoading))return;let{routing:n,route:i,models:s,query:r,replace:o}=this,a={routeName:i,queryParams:r,transition:void 0};(0,M.flaggedInstrument)("interaction.link-to",a,()=>{a.transition=n.transitionTo(i,s,r,o)})}static #n=(()=>(0,k.a)(this.prototype,"click",[h.action]))();get route(){if(!("route"in this.args.named))return this.currentRoute;{let e=this.named("route");return e&&this.namespaceRoute(e)}}currentRouteCache=(()=>(0,c.createCache)(()=>((0,c.consumeTag)((0,c.tagFor)(this.routing,"currentState")),(0,c.untrack)(()=>this.routing.currentRouteName))))();get currentRoute(){return(0,c.getValue)(this.currentRouteCache)}get models(){return"models"in this.args.named?this.named("models"):"model"in this.args.named?[this.named("model")]:e_}get query(){return"query"in this.args.named?{...this.named("query")}:ey}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 eb(this.route)||this.models.some(e=>eb(e))}get isDisabled(){return!!this.named("disabled")}get isEngine(){let e=this.owner;return void 0!==(0,P.getEngineParent)(e)}get engineMountPoint(){return this.owner.mountPoint}classFor(e){let t=this.named(`${e}Class`);return!0===t||eb(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!eb(e)}(e)||this.isLoading)return!1;let t=this.named("current-when");if("boolean"==typeof t)return t;if("string"==typeof t){let{models:n,routing:i}=this;return t.split(" ").some(t=>i.isActiveForRoute(n,void 0,this.namespaceRoute(t),e))}{let{route:t,models:n,query:i,routing:s}=this;return s.isActiveForRoute(n,i,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:ek}=ew,ex=(e,t)=>e?Object.getOwnPropertyDescriptor(e,t)||ex(Object.getPrototypeOf(e),t):null;{let e=ek.onUnsupportedArgument;Object.defineProperty(ek,"onUnsupportedArgument",{configurable:!0,enumerable:!1,value:function(t){"href"===t||e.call(this,t)}})}{let e=ex(ek,"models").get;Object.defineProperty(ek,"models",{configurable:!0,enumerable:!1,get:function(){let t=e.call(this);return t.length>0&&!("query"in this.args.named)&&ev(t[t.length-1])&&(t=t.slice(0,-1)),t}});let t=ex(ek,"query").get;Object.defineProperty(ek,"query",{configurable:!0,enumerable:!1,get:function(){if("query"in this.args.named){let e=t.call(this);return ev(e)?e.values??ey:e}{let t=e.call(this);if(t.length>0){let e=t[t.length-1];if(ev(e)&&null!==e.values)return e.values}return ey}}})}{let e=ek.onUnsupportedArgument;Object.defineProperty(ek,"onUnsupportedArgument",{configurable:!0,enumerable:!1,value:function(t){"params"!==t&&e.call(this,t)}})}let eT=ei(ew,ef),eS=(0,s.templateFactory)({id:"112WKCh2",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"],false,[]]',moduleName:"packages/@ember/-internals/glimmer/lib/templates/textarea.hbs",scope:()=>[m.on],isStrictMode:!0});class eC extends eh{static toString(){return"Textarea"}get class(){return"ember-text-area ember-view"}change(e){super.change(e)}static #e=(()=>(0,k.a)(this.prototype,"change",[h.action]))();input(e){super.input(e)}static #n=(()=>(0,k.a)(this.prototype,"input",[h.action]))();isSupportedArgument(e){return -1!==["type","value","enter","insert-newline","escape-press"].indexOf(e)||super.isSupportedArgument(e)}}let eE=ei(eC,eS);function eA(e){return"function"==typeof e}function eD(e,t){return"attrs"===t[0]&&(t.shift(),1===t.length)?(0,u.childRefFor)(e,t[0]):(0,u.childRefFromParts)(e,t)}function eI(e,t){let n;return(0,u.createComputeRef)(()=>{let i=(0,u.valueForRef)(e);return!0===i?n||(n=(0,U.dasherize)(t)):i||0===i?String(i):null})}function eP(){}class eM{classRef=null;rootRef;argsRevision;constructor(e,t,n,i,s,r){this.component=e,this.args=t,this.argsTag=n,this.finalizer=i,this.hasWrappedElement=s,this.isInteractive=r,this.classRef=null,this.argsRevision=null===t?0:(0,c.valueForTag)(n),this.rootRef=(0,u.createConstRef)(e,"this"),(0,f.registerDestructor)(this,()=>this.willDestroy(),!0),(0,f.registerDestructor)(this,()=>this.component.destroy())}willDestroy(){let{component:e,isInteractive:t}=this;if(t){(0,c.beginUntrackFrame)(),e.trigger("willDestroyElement"),e.trigger("willClearRender"),(0,c.endUntrackFrame)();let t=(0,x.getViewElement)(e);t&&((0,x.clearElementView)(t),(0,x.clearViewElement)(e))}e.renderer.unregister(e)}finalize(){let{finalizer:e}=this;e(),this.finalizer=eP}}function eF(e){return(0,d.setInternalHelperManager)(e,{})}let eN=new WeakSet,eO=eF(e=>{let t;(0,B.deprecateUntil)("Usage of the `(action)` helper is deprecated. Migrate to native functions and function invocation.",B.DEPRECATIONS.DEPRECATE_TEMPLATE_ACTION);let{named:n,positional:i}=e,[s,r,...o]=i,a=r.debugLabel,l="target"in n?n.target:s,c=function(e,t){let n,i;return(t.length>0&&(n=e=>t.map(u.valueForRef).concat(e)),e&&(i=t=>{let n=(0,u.valueForRef)(e);return n&&t.length>0&&(t[0]=(0,_.g)(t[0],n)),t}),n&&i)?e=>i(n(e)):n||i||eL}("value"in n&&n.value||!1,o);return t=(0,u.isInvokableRef)(r)?eR(r,r,eU,c,a):function(e,t,n,i,s){let r=(0,u.valueForRef)(n);return function(){return eR(e,(0,u.valueForRef)(t),r,i,s)(...arguments)}}((0,u.valueForRef)(s),l,r,c,a),eN.add(t),(0,u.createUnboundRef)(t,"(result of an `action` helper)")});function eL(e){return e}function eR(e,t,n,i,s){let r,o;return"string"==typeof n?(r=t,o=t.actions?.[n]):"function"==typeof n&&(r=e,o=n),function(){for(var e=arguments.length,t=Array(e),n=0;n(0,l.join)(r,o,...i(t)))}}function eU(e){(0,u.updateRef)(this,e)}function ej(e){let t=Object.create(null),n=Object.create(null);for(let i in e){let s=e[i],r=(0,u.valueForRef)(s),o="function"==typeof r&&eN.has(r);(0,u.isUpdatableRef)(s)&&!o?t[i]=new ez(s,r):t[i]=r,n[i]=r}return n.attrs=t,n}let eB=Symbol("REF");class ez{value;[j.MUTABLE_CELL];[eB];constructor(e,t){this[j.MUTABLE_CELL]=!0,this[eB]=e,this.value=t}update(e){(0,u.updateRef)(this[eB],e)}}let e$=(0,L.e)("ARGS"),eq=(0,L.e)("HAS_BLOCK"),eH=Symbol("DIRTY_TAG"),eV=Symbol("IS_DISPATCHING_ATTRS"),eW=Symbol("BOUNDS"),eK=(0,u.createPrimitiveRef)("ember-view");(0,o.debugFreeze)([]);class eG{templateFor(e){let t,{layout:n,layoutName:i}=e,s=(0,b.getOwner)(e);if(void 0===n){if(void 0===i)return null;t=s.lookup(`template:${i}`)}else{if(!eA(n))return null;t=n}return(0,R.unwrapTemplate)(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 eJ}prepareArgs(e,t){let n;if(t.named.has("__ARGS__")){let{__ARGS__:e,...n}=t.named.capture(),i=(0,u.valueForRef)(e);return{positional:i.positional,named:{...n,...i.named}}}let{positionalParams:i}=e.class??e;if(null==i||0===t.positional.length)return null;if("string"==typeof i){let e=t.positional.capture();Object.assign(n={[i]:(0,u.createComputeRef)(()=>(0,a.reifyPositional)(e))},t.named.capture())}else{if(!Array.isArray(i)||!(i.length>0))return null;let e=Math.min(i.length,t.positional.length);Object.assign(n={},t.named.capture());for(let s=0;s-1?eD(t,s.split(".")):(0,u.childRefFor)(t,s);i.setAttribute(r,a,!1,null)}(t,n,o,i)),r--}if(-1===s.indexOf("id")){let e=t.elementId?t.elementId:(0,g.g)(t);i.setAttribute("id",(0,u.createPrimitiveRef)(e),!1,null)}}(a,i,o,n);else{let e=i.elementId?i.elementId:(0,g.g)(i);n.setAttribute("id",(0,u.createPrimitiveRef)(e),!1,null)}if(s){let e=eI(s);n.setAttribute("class",e,!1,null)}l&&l.length&&l.forEach(e=>{n.setAttribute("class",(0,u.createPrimitiveRef)(e),!1,null)}),d&&d.length&&d.forEach(e=>{!function(e,t,n){let[i,s,r]=t.split(":");if(""===i)n.setAttribute("class",(0,u.createPrimitiveRef)(s),!0,null);else{let t,o=i.indexOf(".")>-1,a=o?i.split("."):[],l=o?eD(e,a):(0,u.childRefFor)(e,i);t=void 0===s?eI(l,o?a[a.length-1]:i):function(e,t,n){return(0,u.createComputeRef)(()=>(0,u.valueForRef)(e)?t:n)}(l,s,r),n.setAttribute("class",t,!1,null)}}(o,e,n)}),n.setAttribute("class",eK,!1,null),"ariaRole"in i&&n.setAttribute("role",(0,u.childRefFor)(o,"ariaRole"),!1,null),i._transitionTo("hasElement"),r&&((0,c.beginUntrackFrame)(),i.trigger("willInsertElement"),(0,c.endUntrackFrame)())}didRenderLayout(e,t){e.component[eW]=t,e.finalize()}didCreate(e){let{component:t,isInteractive:n}=e;n&&(t._transitionTo("inDOM"),t.trigger("didInsertElement"),t.trigger("didRender"))}update(e){let{component:t,args:n,argsTag:i,argsRevision:s,isInteractive:r}=e;if(e.finalizer=(0,M._instrumentStart)("render.component",eQ,t),(0,c.beginUntrackFrame)(),null!==n&&!(0,c.validateTag)(i,s)){(0,c.beginTrackFrame)();let s=ej(n);i=e.argsTag=(0,c.endTrackFrame)(),e.argsRevision=(0,c.valueForTag)(i),t[eV]=!0,t.setProperties(s),t[eV]=!1,t.trigger("didUpdateAttrs"),t.trigger("didReceiveAttrs")}r&&(t.trigger("willUpdate"),t.trigger("willRender")),(0,c.endUntrackFrame)(),(0,c.consumeTag)(i),(0,c.consumeTag)(t[eH])}didUpdateLayout(e){e.finalize()}didUpdate(e){let{component:t,isInteractive:n}=e;n&&(t.trigger("didUpdate"),t.trigger("didRender"))}getDestroyable(e){return e}}function eY(e){return e.instrumentDetails({initialRender:!0})}function eQ(e){return e.instrumentDetails({initialRender:!1})}let eJ={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},eX=new eG,eZ=new WeakMap;class e1 extends S.default.extend(E.default,A.default,C.default,O.default,I.default,D.default,{didReceiveAttrs(){},didRender(){},didUpdate(){},didUpdateAttrs(){},willRender(){},willUpdate(){}}){isComponent=!0;init(e){super.init(e),this._superRerender=this.rerender,this.rerender=this._rerender,this[eV]=!1,this[eH]=(0,c.createTag)(),this[eW]=null;let t=this._dispatcher;if(t){let e=eZ.get(t);e||(e=new WeakSet,eZ.set(t,e));let n=Object.getPrototypeOf(this);e.has(n)||(t.lazyEvents.forEach((e,n)=>{null!==e&&"function"==typeof this[e]&&t.setupHandlerForBrowserEvent(n)}),e.add(n))}}__dispatcher;get _dispatcher(){if(void 0===this.__dispatcher){let e=(0,b.getOwner)(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(){(0,c.dirtyTag)(this[eH]),this._superRerender()}[_.Q](e,t){if(this[eV])return;let n=this[e$],i=void 0!==n?n[e]:void 0;void 0!==i&&(0,u.isUpdatableRef)(i)&&(0,u.updateRef)(i,2==arguments.length?t:(0,_.g)(this,e))}getAttr(e){return this.get(e)}readDOMAttr(e){let t=(0,x.getViewElement)(this),n="http://www.w3.org/2000/svg"===t.namespaceURI,{type:i,normalized:s}=(0,a.normalizeProperty)(t,e);return n||"attr"===i?t.getAttribute(s):t[s]}static isComponentFactory=!0;static toString(){return"@ember/component"}}e1.reopenClass({positionalParams:[]}),(0,d.setInternalComponentManager)(eX,e1);let e0=Symbol("RECOMPUTE_TAG"),e3=Symbol("IS_CLASSIC_HELPER");class e2 extends z.FrameworkObject{static isHelperFactory=!0;static [e3]=!0;static helper=(()=>e6)();init(e){super.init(e),this[e0]=(0,c.createTag)()}recompute(){(0,l.join)(()=>(0,c.dirtyTag)(this[e0]))}}class e8{capabilities=(()=>(0,d.helperCapabilities)("3.23",{hasValue:!0,hasDestroyable:!0}))();ownerInjection;constructor(e){let t={};(0,b.setOwner)(t,e),this.ownerInjection=t}createHelper(e,t){return{instance:!function(e){return null!=e&&"class"in e}(e)?e.create(this.ownerInjection):e.create(),args:t}}getDestroyable(e){let{instance:t}=e;return t}getValue(e){let{instance:t,args:n}=e,{positional:i,named:s}=n,r=t.compute(i,s);return(0,c.consumeTag)(t[e0]),r}getDebugName(e){return(0,g.a)((e.class||e).prototype)}}(0,d.setHelperManager)(e=>new e8(e),e2);let e4=(0,d.getInternalHelperManager)(e2);class e7{isHelperFactory=!0;constructor(e){this.compute=e}create(){return{compute:this.compute}}}class e9{capabilities=(()=>(0,d.helperCapabilities)("3.23",{hasValue:!0}))();createHelper(e,t){return()=>e.compute.call(null,t.positional,t.named)}getValue(e){return e()}getDebugName(e){return(0,g.a)(e.compute)}}let e5=new e9;function e6(e){return new e7(e)}(0,d.setHelperManager)(()=>e5,e7.prototype);class te{__string;constructor(e){this.__string=e}toString(){return`${this.__string}`}toHTML(){return this.toString()}}let tt={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},tn=/[&<>"'`=]/,ti=/[&<>"'`=]/g;function ts(e){return tt[e]}function tr(e){let t;if("string"!=typeof e){if(ta(e))return e.toHTML();if(null==e)return"";if(!e)return String(e);t=String(e)}else t=e;return tn.test(t)?t.replace(ti,ts):t}function to(e){return null==e?e="":"string"!=typeof e&&(e=String(e)),new te(e)}function ta(e){return null!==e&&"object"==typeof e&&"toHTML"in e&&"function"==typeof e.toHTML}function tl(e){return{object:`${e.name}:main`}}let tu={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};class tc{create(e,t,n,i,s){let r=s.get("outletState"),o=t.ref;s.set("outletState",o);let a={self:(0,u.createConstRef)(t.controller,"this"),finalize:(0,M._instrumentStart)("render.outlet",tl,t)};if(void 0!==i.debugRenderTree){a.outletBucket={};let e=(0,u.valueForRef)(r),t=e&&e.render&&e.render.owner,n=(0,u.valueForRef)(o).render.owner;if(t&&t!==n){let e=n.mountPoint;a.engine=n,e&&(a.engineBucket={mountPoint:e})}}return a}getDebugName(e){let{name:t}=e;return t}getDebugCustomRenderTree(e,t,n){let i=[];return i.push({bucket:t.outletBucket,type:"outlet",name:"main",args:a.EMPTY_ARGS,instance:void 0,template:void 0}),t.engineBucket&&i.push({bucket:t.engineBucket,type:"engine",name:t.engineBucket.mountPoint,args:a.EMPTY_ARGS,instance:t.engine,template:void 0}),i.push({bucket:t,type:"route-template",name:e.name,args:n,instance:e.controller,template:(0,R.unwrapTemplate)(e.template).moduleName}),i}getCapabilities(){return tu}getSelf(e){let{self:t}=e;return t}didCreate(){}didUpdate(){}didRenderLayout(e){e.finalize()}didUpdateLayout(){}getDestroyable(){return null}}let td=new tc;class tp{handle=(()=>-1)();resolvedName;compilable;capabilities;constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:td;this.state=e,this.manager=t;let n=t.getCapabilities();this.capabilities=(0,d.capabilityFlagsFrom)(n),this.compilable=n.wrapped?(0,R.unwrapTemplate)(e.template).asWrappedLayout():(0,R.unwrapTemplate)(e.template).asLayout(),this.resolvedName=e.name}}class th extends eG{component;constructor(e){super(),this.component=e}create(e,t,n,i,s){let{isInteractive:r}=i,o=this.component,a=(0,M._instrumentStart)("render.component",eY,o);s.view=o;let l=""!==o.tagName;!l&&(r&&o.trigger("willRender"),o._transitionTo("hasElement"),r&&o.trigger("willInsertElement"));let u=new eM(o,null,c.CONSTANT_TAG,a,l,r);return(0,c.consumeTag)(o[eH]),u}}let tm={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 tg{handle=(()=>-1)();resolvedName="-top-level";state;manager;capabilities=(()=>(0,d.capabilityFlagsFrom)(tm))();compilable=null;constructor(e){this.manager=new th(e);let t=(0,r.g)(e);this.state=t}}class tf{constructor(e){this.inner=e}}let t_=eF(e=>{let{positional:t}=e,n=t[0];return(0,u.createComputeRef)(()=>{let e=(0,u.valueForRef)(n);return(0,c.consumeTag)((0,_.t)(e)),(0,Y.i)(e)&&(e=(0,N.contentFor)(e)),new tf(e)})});class ty{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),i=this.memoFor(t);return this.position++,{value:n,memo:i}}}class tb extends ty{static from(e){return e.length>0?new this(e):null}static fromForEachable(e){let t=[];return e.forEach(e=>t.push(e)),this.from(t)}constructor(e){super(e.length),this.array=e}valueFor(e){return this.array[e]}}class tv extends ty{static from(e){return e.length>0?new this(e):null}constructor(e){super(e.length),this.array=e}valueFor(e){return(0,_.o)(this.array,e)}}class tw extends ty{static fromIndexable(e){let t=Object.keys(e);if(0===t.length)return null;{let n=[];for(let i of t){let t;t=e[i],(0,c.isTracking)()&&((0,c.consumeTag)((0,c.tagFor)(e,i)),Array.isArray(t)&&(0,c.consumeTag)((0,c.tagFor)(t,"[]"))),n.push(t)}return new this(t,n)}}static fromForEachable(e){let t=[],n=[],i=0,s=!1;return(e.forEach(function(e,r){s=s||arguments.length>=2,s&&t.push(r),n.push(e),i++}),0===i)?null:s?new this(t,n):new tb(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 tk{static from(e){let t=e[Symbol.iterator](),n=t.next(),{done:i}=n;return i?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 i=this.valueFor(t,n),s=this.memoFor(t,n);return this.position++,this.result=e.next(),{value:i,memo:s}}}class tx extends tk{valueFor(e){return e.value}memoFor(e,t){return t}}class tT extends tk{valueFor(e){return e.value[1]}memoFor(e){return e.value[0]}}function tS(e){return null!=e&&"function"==typeof e.forEach}function tC(e){return null!=e&&"function"==typeof e[Symbol.iterator]}(0,K.default)({FEATURES:{DEFAULT_HELPER_MANAGER:!0},scheduleRevalidate(){l._backburner.ensureInstance()},toBool:function(e){return(0,Y.i)(e)?((0,c.consumeTag)((0,_.a)(e,"content")),!!(0,_.g)(e,"isTruthy")):(0,Q.isArray)(e)?((0,c.consumeTag)((0,_.a)(e,"[]")),0!==e.length):ta(e)?!!e.toString():!!e},toIterator:function(e){return e instanceof tf?function(e){return!function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}(e)?null:Array.isArray(e)||(0,G.isEmberArray)(e)?tw.fromIndexable(e):tC(e)?tT.from(e):tS(e)?tw.fromForEachable(e):tw.fromIndexable(e)}(e.inner):function(e){return(0,g.e)(e)?Array.isArray(e)?tb.from(e):(0,G.isEmberArray)(e)?tv.from(e):tC(e)?tx.from(e):tS(e)?tb.fromForEachable(e):null:null}(e)},getProp:_.V,setProp:W._,getPath:_.g,setPath:W.s,scheduleDestroy(e,t){(0,l.schedule)("actions",null,t,e)},scheduleDestroyed(e){(0,l.schedule)("destroy",null,e)},warnIfStyleNotTrusted(e){},assert(e,t,n){},deprecate(e,t,n){}});class tE{enableDebugTooling=(()=>y.E._DEBUG_RENDER_TREE)();constructor(e,t){this.owner=e,this.isInteractive=t}onTransactionCommit(){}}let tA=eF(e=>{let{positional:t,named:n}=e,i=t[0],s=n.type,r=n.loc,o=n.original;return(0,u.valueForRef)(s),(0,u.valueForRef)(r),(0,u.valueForRef)(o),(0,u.createComputeRef)(()=>(0,u.valueForRef)(i))}),tD=eF(e=>e.positional[0]),tI=eF(e=>{let{positional:t}=e;return(0,u.createComputeRef)(()=>{let e=t[0],n=t[1],i=(0,u.valueForRef)(e).split("."),s=i[i.length-1],r=(0,u.valueForRef)(n);return!0===r?(0,U.dasherize)(s):r||0===r?String(r):""})}),tP=eF((e,t)=>{let{positional:n}=e,i=n[0],s=(0,u.valueForRef)(i);return(0,u.createConstRef)(t.factoryFor(s)?.class,`(-resolve "${s}")`)}),tM=eF(e=>{let{positional:t}=e,n=t[0];return(0,u.createComputeRef)(()=>{let e=(0,u.valueForRef)(n);return(0,g.e)(e)&&(0,c.consumeTag)((0,_.a)(e,"[]")),e})}),tF=eF(e=>{let{positional:t}=e,n=t[0];return(0,u.createInvokableRef)(n)}),tN=eF(e=>{let{positional:t}=e,n=t[0];return(0,u.createReadOnlyRef)(n)}),tO=eF(e=>{let{positional:t,named:n}=e;return(0,u.createUnboundRef)((0,u.valueForRef)(t[0]),"(result of an `unbound` helper)")}),tL=eF(()=>(0,u.createConstRef)(tR(),"unique-id"));function tR(){return"30000000-1000-4000-2000-100000000000".replace(/[0-3]/g,e=>(4*e^16*Math.random()>>(2&e)).toString(16))}let tU=["alt","shift","meta","ctrl"],tj=/^click|mouse|touch/,tB={registeredActions:T.default.registeredActions,registerAction(e){let{actionId:t}=e;return T.default.registeredActions[t]=e,t},unregisterAction(e){let{actionId:t}=e;delete T.default.registeredActions[t]}};class tz{element;owner;actionId;actionName;actionArgs;namedArgs;positional;implicitTarget;eventName;tag=(()=>(0,c.createUpdatableTag)())();constructor(e,t,n,i,s,r){this.element=e,this.owner=t,this.actionId=n,this.actionArgs=i,this.namedArgs=s,this.positional=r,this.eventName=this.getEventName(),(0,f.registerDestructor)(this,()=>tB.unregisterAction(this))}getEventName(){let{on:e}=this.namedArgs;return void 0!==e?(0,u.valueForRef)(e):"click"}getActionArgs(){let e=Array(this.actionArgs.length);for(let t=0;t=0)return!0;for(let n=0;n{let e=this.getActionArgs(),n={args:e,target:d,name:null};if((0,u.isInvokableRef)(t)){(0,M.flaggedInstrument)("interaction.ember-action",n,()=>{(0,u.updateRef)(t,e[0])});return}if("function"==typeof t){(0,M.flaggedInstrument)("interaction.ember-action",n,()=>{t.apply(d,e)});return}n.name=t,d.send?(0,M.flaggedInstrument)("interaction.ember-action",n,()=>{d.send.apply(d,[t,...e])}):(0,M.flaggedInstrument)("interaction.ember-action",n,()=>{d[t].apply(d,e)})}),p)}}class t${create(e,t,n,i){let{named:s,positional:r}=i,o=[];for(let e=2;e1&&(i=o[0],n=o[1],t=(0,u.isInvokableRef)(n)?n:(0,u.valueForRef)(n)),e.actionName=t,e.implicitTarget=i,this.ensureEventSetup(e),tB.registerAction(e),s.setAttribute("data-ember-action",""),s.setAttribute(`data-ember-action-${r}`,String(r))}update(e){let{positional:t}=e,n=t[1];(0,u.isInvokableRef)(n)||(e.actionName=(0,u.valueForRef)(n)),e.getEventName()!==e.eventName&&(this.ensureEventSetup(e),e.eventName=e.getEventName())}ensureEventSetup(e){let t=e.owner.lookup("event_dispatcher:main");t?.setupHandlerForEmberEvent(e.eventName)}getTag(e){return e.tag}getDestroyable(e){return e}}let tq=new t$,tH=(0,d.setInternalModifierManager)(tq,{}),tV={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};class tW{getDynamicLayout(e){let t=e.engine.lookup("template:application");return(0,R.unwrapTemplate)(t(e.engine)).asLayout()}getCapabilities(){return tV}getOwner(e){return e.engine}create(e,t,n,i){let s,r,o,a,{name:l}=t,c=e.buildChildEngineInstance(l);c.boot();let d=c.factoryFor("controller:application")||(0,J.generateControllerFactory)(c,"application");if(n.named.has("model")&&(a=n.named.get("model")),void 0===a)s=d.create(),r=(0,u.createConstRef)(s,"this"),o={engine:c,controller:s,self:r,modelRef:a};else{let e=(0,u.valueForRef)(a);s=d.create({model:e}),r=(0,u.createConstRef)(s,"this"),o={engine:c,controller:s,self:r,modelRef:a}}return i.debugRenderTree&&(0,f.associateDestroyableChild)(c,s),o}getDebugName(e){let{name:t}=e;return t}getDebugCustomRenderTree(e,t,n,i){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:i}]}getSelf(e){let{self:t}=e;return t}getDestroyable(e){return e.engine}didCreate(){}didUpdate(){}didRenderLayout(){}didUpdateLayout(){}update(e){let{controller:t,modelRef:n}=e;void 0!==n&&t.set("model",(0,u.valueForRef)(n))}}let tK=new tW;class tG{handle=(()=>-1)();state;manager=(()=>tK)();compilable=null;capabilities=(()=>(0,d.capabilityFlagsFrom)(tV))();constructor(e){this.resolvedName=e,this.state={name:e}}}let tY=eF((e,t)=>{let n,i,s;let r=e.positional[0];return n=(0,a.createCapturedArgs)(e.named,a.EMPTY_POSITIONAL),(0,u.createComputeRef)(()=>{let e=(0,u.valueForRef)(r);return"string"!=typeof e?(s=null,i=null,null):i===e?s:(i=e,s=(0,a.curry)($.CurriedType.Component,new tG(e),t,n,!0))})}),tQ=eF((e,t,n)=>{let i=(0,u.createComputeRef)(()=>{let e=(0,u.valueForRef)(n.get("outletState"));return e?.outlets?.main}),s=null,r=null;return(0,u.createComputeRef)(()=>{let e=(0,u.valueForRef)(i),n=function(e,t){if(void 0===t)return null;let n=t.render;if(void 0===n)return null;let i=n.template;return void 0===i?null:(eA(i)&&(i=i(n.owner)),{ref:e,name:n.name,template:i,controller:n.controller,model:n.model})}(i,e);if(!function(e,t){return null===e?null===t:null!==t&&e.template===t.template&&e.controller===t.controller}(n,s)){if(s=n,null!==n){let o=(0,R.dict)(),l=(0,u.childRefFromParts)(i,["render","model"]),c=(0,u.valueForRef)(l);o.model=(0,u.createComputeRef)(()=>(s===n&&(c=(0,u.valueForRef)(l)),c));let d=(0,a.createCapturedArgs)(o,a.EMPTY_POSITIONAL);r=(0,a.curry)($.CurriedType.Component,new tp(n),e?.render?.owner??t,d,!0)}else r=null}return r})});function tJ(e){return{object:`component:${e}`}}let tX={action:eO,mut:tF,readonly:tN,unbound:tO,"-hash":a.hash,"-each-in":t_,"-normalize-class":tI,"-resolve":tP,"-track-array":tM,"-mount":tY,"-outlet":tQ,"-in-el-null":tD},tZ={...tX,array:a.array,concat:a.concat,fn:a.fn,get:a.get,hash:a.hash,"unique-id":tL};tZ["-disallow-dynamic-resolution"]=tA;let t1={action:tH},t0={...t1,on:a.on};new WeakSet;class t3{componentDefinitionCache=(()=>new Map)();lookupPartial(){return null}lookupHelper(e,t){let n=tZ[e];if(void 0!==n)return n;let i=t.factoryFor(`helper:${e}`);if(void 0===i)return null;let s=i.class;return void 0===s?null:"function"==typeof s&&function(e){return!0===e[e3]}(s)?((0,d.setInternalHelperManager)(e4,i),i):s}lookupBuiltInHelper(e){return tX[e]??null}lookupModifier(e,t){let n=t0[e];if(void 0!==n)return n;let i=t.factoryFor(`modifier:${e}`);return void 0===i?null:i.class||null}lookupBuiltInModifier(e){return t1[e]??null}lookupComponent(e,t){let n,i=function(e,t,n){let i=function(e,t){let n=`component:${e}`;return t.factoryFor(n)||null}(t,e);if((0,b.isFactory)(i)&&i.class){let e=(0,d.getComponentTemplate)(i.class);if(void 0!==e)return{component:i,layout:e}}let s=function(e,t,n){if(B.DEPRECATIONS.DEPRECATE_COMPONENT_TEMPLATE_RESOLVING.isRemoved)return null;let i=`template:components/${e}`,s=t.lookup(i,n)||null;return s&&(0,B.deprecateUntil)(`Components with separately resolved templates are deprecated. Migrate to either co-located js/ts + hbs files or to gjs/gts. Tried to lookup '${i}'.`,B.DEPRECATIONS.DEPRECATE_COMPONENT_TEMPLATE_RESOLVING),s}(t,e,void 0);return null===i&&null===s?null:{component:i,layout:s}}(t,e);if(null===i)return null;let s=null;n=null===i.component?s=i.layout(t):i.component;let r=this.componentDefinitionCache.get(n);if(void 0!==r)return r;null===s&&null!==i.layout&&(s=i.layout(t));let o=(0,M._instrumentStart)("render.getComponentDefinition",tJ,e),l=null;if(null===i.component)l={state:(0,a.templateOnlyComponent)(void 0,e),manager:a.TEMPLATE_ONLY_COMPONENT_MANAGER,template:s};else{let e=i.component,t=e.class,n=(0,d.getInternalComponentManager)(t);l={state:!function(e){return e===eX}(n)?t:e,manager:n,template:s}}return o(),this.componentDefinitionCache.set(n,l),l}}let t2="-top-level";class t8{static extend(e){return class extends t8{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:n,template:i}=e,s=(0,b.getOwner)(e),r=i(s);return new t8(t,s,r,n)}ref;state;constructor(e,t,n,i){this._environment=e,this.owner=t,this.template=n,this.namespace=i;let s=(0,c.createTag)(),r={outlets:{main:void 0},render:{owner:t,into:void 0,outlet:"main",name:t2,controller:void 0,model:void 0,template:n}},o=this.ref=(0,u.createComputeRef)(()=>((0,c.consumeTag)(s),r),e=>{(0,c.dirtyTag)(s),r.outlets.main=e});this.state={ref:o,name:t2,template:n,controller:void 0,model:void 0}}appendTo(e){let t;t=this._environment.hasDOM&&"string"==typeof e?document.querySelector(e):e;let n=this.owner.lookup("renderer:-dom");(0,l.schedule)("render",n,"appendOutletView",this,t)}rerender(){}setOutletState(e){(0,u.updateRef)(this.ref,e)}destroy(){}}class t4{constructor(e,t){this.view=e,this.outletState=t}child(){return new t4(this.view,this.outletState)}get(e){return this.outletState}set(e,t){return this.outletState=t,t}}let t7=()=>{};function t9(e){return e}class t5{id;result;destroyed;render;constructor(e,t,n,i,s,r,o,l,u){this.root=e,this.runtime=t,this.id=e instanceof t8?(0,g.g)(e):(0,x.getViewId)(e),this.result=void 0,this.destroyed=!1,this.render=t9(()=>{let e=(0,R.unwrapTemplate)(s).asLayout(),c=(0,a.renderMain)(t,n,i,r,u(t.env,{element:o,nextSibling:null}),e,l),d=this.result=c.sync();this.render=t9(()=>d.rerender({alwaysRevalidate:!1}))})}isFor(e){return this.root===e}destroy(){let{result:e,runtime:{env:t}}=this;this.destroyed=!0,this.runtime=void 0,this.root=null,this.result=void 0,this.render=void 0,void 0!==e&&(0,a.inTransaction)(t,()=>(0,f.destroy)(e))}}let t6=[];function ne(){t6.length=0}function nt(e){let t=t6.indexOf(e);t6.splice(t,1)}let nn=null;function ni(){return null!==nn||(nn=H.a.defer(),(0,l._getCurrentRunLoop)()||l._backburner.schedule("actions",null,t7)),nn.promise}let ns=0;l._backburner.on("begin",function(){for(let e of t6)e._scheduleRevalidate()}),l._backburner.on("end",function(){for(let e of t6)if(!e._isValid()){if(ns>y.E._RERENDER_LOOP_LIMIT)throw ns=0,e.destroy(),Error("infinite rendering invalidation detected");return ns++,l._backburner.join(null,t7)}ns=0,function(){if(null!==nn){let e=nn.resolve;nn=null,l._backburner.join(null,e)}}()});class nr{_rootTemplate;_viewRegistry;_roots;_removedRoots;_builder;_inRenderTransaction=!1;_owner;_context;_runtime;_lastRevision=(()=>-1)();_destroyed=!1;_isInteractive;_runtimeResolver;static create(e){let{_viewRegistry:t}=e,n=(0,b.getOwner)(e),i=n.lookup("service:-document"),s=n.lookup("-environment:main"),o=n.lookup((0,r.p)`template:-root`),a=n.lookup("service:-dom-builder");return new this(n,i,s,o,t,a)}constructor(e,t,n,i,r){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:a.clientBuilder;this._owner=e,this._rootTemplate=i(e),this._viewRegistry=r||e.lookup("-view-registry:main"),this._roots=[],this._removedRoots=[],this._builder=o,this._isInteractive=n.isInteractive;let l=this._runtimeResolver=new t3,u=(0,q.artifacts)();this._context=(0,s.programCompilationContext)(u,l,e=>new q.RuntimeOpImpl(e));let c=new tE(e,n.isInteractive);this._runtime=(0,a.runtimeContext)({appendOperations:n.hasDOM?new a.DOMTreeConstruction(t):new V.NodeDOMTreeConstruction(t),updateOperations:new a.DOMChanges(t)},c,u,l)}get debugRenderTree(){let{debugRenderTree:e}=this._runtime.env;return e}appendOutletView(e,t){let n=function(e){return new tp(e.state)}(e);this._appendDefinition(e,(0,a.curry)($.CurriedType.Component,n,e.owner,null,!0),t)}appendTo(e,t){let n=new tg(e);this._appendDefinition(e,(0,a.curry)($.CurriedType.Component,n,this._owner,null,!0),t)}_appendDefinition(e,t,n){let i=(0,u.createConstRef)(t,"this"),s=new t4(null,u.UNDEFINED_REFERENCE),r=new t5(e,this._runtime,this._context,this._owner,this._rootTemplate,i,n,s,this._builder);this._renderRoot(r)}rerender(){this._scheduleRevalidate()}register(e){let t=(0,x.getViewId)(e);this._viewRegistry[t]=e}unregister(e){delete this._viewRegistry[x.getViewId(e)]}remove(e){e._transitionTo("destroying"),this.cleanupRootFor(e),this._isInteractive&&e.trigger("didDestroyElement")}cleanupRootFor(e){if(this._destroyed)return;let t=this._roots,n=this._roots.length;for(;n--;){let i=t[n];i.isFor(e)&&(i.destroy(),t.splice(n,1))}}destroy(){this._destroyed||(this._destroyed=!0,this._clearAllRoots())}getElement(e){if(this._isInteractive)return(0,x.getViewElement)(e);throw Error("Accessing `this.element` is not allowed in non-interactive environments (such as FastBoot).")}getBounds(e){let t=e[eW];return{parentElement:t.parentElement(),firstNode:t.firstNode(),lastNode:t.lastNode()}}createElement(e){return this._runtime.env.getAppendOperations().createElement(e)}_renderRoot(e){let{_roots:t}=this;t.push(e),1===t.length&&function(e){t6.push(e)}(this),this._renderRootsTransaction()}_renderRoots(){let e,{_roots:t,_runtime:n,_removedRoots:i}=this;do e=t.length,(0,a.inTransaction)(n.env,()=>{for(let n=0;n=e||s.render()}this._lastRevision=(0,c.valueForTag)(c.CURRENT_TAG)});while(t.length>e)for(;i.length;){let e=i.pop(),n=t.indexOf(e);t.splice(n,1)}0===this._roots.length&&nt(this)}_renderRootsTransaction(){if(this._inRenderTransaction)return;this._inRenderTransaction=!0;let e=!1;try{this._renderRoots(),e=!0}finally{e||(this._lastRevision=(0,c.valueForTag)(c.CURRENT_TAG)),this._inRenderTransaction=!1}}_clearAllRoots(){let e=this._roots;for(let t of e)t.destroy();this._removedRoots.length=0,this._roots=[],e.length&&nt(this)}_scheduleRevalidate(){l._backburner.scheduleOnce("render",this,this._revalidate)}_isValid(){return this._destroyed||0===this._roots.length||(0,c.validateTag)(c.CURRENT_TAG,this._lastRevision)}_revalidate(){this._isValid()||this._renderRootsTransaction()}}let no=(0,s.templateFactory)({id:"2c6+lAmT",block:'[[[46,[28,[32,0],null,null],null,null,null]],[],false,["component"]]',moduleName:"packages/@ember/-internals/glimmer/lib/templates/outlet.hbs",scope:()=>[tQ],isStrictMode:!0})},89563:(e,t,n)=>{"use strict";function i(e,t){return null!=e&&"function"==typeof e[t]}n.r(t),n.d(t,{c:()=>i})},79133:(e,t,n)=>{"use strict";n.r(t),n.d(t,{i:()=>r,s:()=>o});var i=n(32581);let s=new WeakSet;function r(e){return!!(0,i.e)(e)&&s.has(e)}function o(e){(0,i.e)(e)&&s.add(e)}},84435:(e,t,n)=>{"use strict";n.r(t),n.d(t,{s:()=>s});var i=n(60465);function s(e,t){return(0,i.setComponentManager)(e,t)}},32581:(e,t,n)=>{"use strict";let i,s,r,o;function a(e){let t=Object.create(null);for(let n in t[e]=1,t)if(n===e)return n;return e}function l(e){return null!==e&&("object"==typeof e||"function"==typeof e)}n.r(t),n.d(t,{G:()=>m,R:()=>x,a:()=>_,b:()=>g,c:()=>w,d:()=>I,e:()=>l,f:()=>s,g:()=>f,h:()=>o,i:()=>a,l:()=>N,o:()=>A,s:()=>D,t:()=>r,u:()=>c,w:()=>M}),n(38389);let u=0;function c(){return++u}let d="ember",p=new WeakMap,h=new Map,m=a(`__ember${Date.now()}`);function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d,n=t+c().toString();return l(e)&&p.set(e,n),n}function f(e){let t;if(l(e))void 0===(t=p.get(e))&&(t=`${d}${c()}`,p.set(e,t));else if(void 0===(t=h.get(e))){let n=typeof e;t="string"===n?`st${c()}`:"number"===n?`nu${c()}`:"symbol"===n?`sy${c()}`:`(${e})`,h.set(e,t)}return t}let _=i,y=/\.(_super|call\(this|apply\(this)/,b=Function.prototype.toString,w=(()=>b.call(function(){return this}).indexOf("return this")>-1?function(e){return y.test(b.call(e))}:function(){return!0})(),k=new WeakMap,x=Object.freeze(function(){});function T(e){let t=k.get(e);return void 0===t&&(t=w(e),k.set(e,t)),t}k.set(x,!1);class S{listeners=(()=>void 0)();observers=(()=>void 0)()}let C=new WeakMap;function E(e){let t=C.get(e);return void 0===t&&(t=new S,C.set(e,t)),t}function A(e){return C.get(e)}function D(e,t){E(e).observers=t}function I(e,t){E(e).listeners=t}let P=new WeakSet;function M(e,t){return T(e)?!P.has(t)&&T(t)?F(e,F(t,x)):F(e,t):e}function F(e,t){function n(){let n=this._super;this._super=t;let i=e.apply(this,arguments);return this._super=n,i}P.add(n);let i=C.get(e);return void 0!==i&&C.set(n,i),n}function N(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}},13967:(e,t,n)=>{"use strict";n.r(t),n.d(t,{g:()=>o,s:()=>r});var i=n(32581);let s=new WeakMap;function r(e,t){(0,i.e)(e)&&s.set(e,t)}function o(e){return s.get(e)}},29080:(e,t,n)=>{"use strict";n.r(t),n.d(t,{N:()=>u,a:()=>c,b:()=>d,c:()=>h,d:()=>g,e:()=>y,f:()=>m,i:()=>_,p:()=>f,r:()=>p,s:()=>b});var i=n(24691);n(32581);var s=n(13967);let r=Object.prototype.hasOwnProperty,o=!1,a={_set:0,_unprocessedNamespaces:!1,get unprocessedNamespaces(){return this._unprocessedNamespaces},set unprocessedNamespaces(v){this._set++,this._unprocessedNamespaces=v}},l=!1,u=[],c=Object.create(null);function d(e){a.unprocessedNamespaces=!0,u.push(e)}function p(e){let t=(0,s.g)(e);delete c[t],u.splice(u.indexOf(e),1),t in i.c.lookup&&e===i.c.lookup[t]&&(i.c.lookup[t]=void 0)}function h(){if(!a.unprocessedNamespaces)return;let e=i.c.lookup;for(let t of Object.keys(e)){if(!function(e){return e>=65&&e<=90}(t.charCodeAt(0)))continue;let n=function(e,t){try{let n=e[t];return(null!==n&&"object"==typeof n||"function"==typeof n)&&n.isNamespace&&n}catch(e){}}(e,t);n&&(0,s.s)(n,t)}}function m(e){return o||f(),c[e]}function g(e){!function e(t,n,i){let o=t.length,a=t.join(".");for(let l in c[a]=n,(0,s.s)(n,a),n){if(!r.call(n,l))continue;let a=n[l];if(t[o]=l,a&&void 0===(0,s.g)(a))(0,s.s)(a,t.join("."));else if(a&&function(e){return null!=e&&"object"==typeof e&&e.isNamespace}(a)){if(i.has(a))continue;i.add(a),e(t,a,i)}}t.length=o}([e.toString()],e,new Set)}function f(){let e=a.unprocessedNamespaces;if(e&&(h(),a.unprocessedNamespaces=!1),e||l){for(let e of u)g(e);l=!1}}function _(){return o}function y(e){o=!!e}function b(){l=!0}},8387:(e,t,n)=>{"use strict";n.r(t),n.d(t,{_:()=>o,s:()=>r,t:()=>a});var i=n(32581);n(41849),n(38389);var s=n(47552);function r(e,t,n,i){return e.isDestroyed?n:(0,s.q)(t)?function(e,t,n,i){let o=t.split("."),a=o.pop(),l=(0,s._)(e,o,!0);if(null!=l)return r(l,a,n);if(!i)throw Error(`Property set failed: object in path "${o.join(".")}" could not be found.`)}(e,t,n,i):o(e,t,n)}function o(e,t,n){let r,o=(0,i.l)(e,t);return null!==o&&s.r.has(o.set)?e[t]=n:void 0!==(r=e[t])||"object"!=typeof e||t in e||"function"!=typeof e.setUnknownProperty?(e[t]=n,r!==n&&(0,s.n)(e,t)):e.setUnknownProperty(t,n),n}function a(e,t,n){return r(e,t,n,!0)}},74374:(e,t,n)=>{"use strict";n.r(t),n.d(t,{E:()=>a});var i=n(750),s=n(44326),r=n(29538),o=n(15172);n(80818),n(63303),n(36973),n(94455);let a=Object.freeze(Object.defineProperty({__proto__:null,Adapter:s.default,QUnitAdapter:o.default,Test:i.default,setupForTesting:r.default},Symbol.toStringTag,{value:"Module"}))},64579:(e,t,n)=>{"use strict";n.r(t),n.d(t,{C:()=>o,I:()=>p,R:()=>_,g:()=>h,p:()=>w,s:()=>m});var i=n(32581),s=n(9800);n(38389);var r=n(83285);class o{static _leakTracking;owner;registry;cache;factoryManagerCache;validationCache;isDestroyed;isDestroying;constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.registry=e,this.owner=t.owner||null,this.cache=(0,s.m)(t.cache||null),this.factoryManagerCache=(0,s.m)(t.factoryManagerCache||null),this.isDestroyed=!1,this.isDestroying=!1}lookup(e,t){if(this.isDestroyed)throw Error(`Cannot call \`.lookup('${e}')\` after the owner has been destroyed`);return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!0===n.singleton||void 0===n.singleton&&a(e,t)){let n=e.cache[t];if(void 0!==n)return n}return function(e,t,n,i){let s=u(e,t,n);if(void 0!==s){if(function(e,t,n){let{instantiate:i,singleton:s}=n;return!1!==s&&!1!==i&&(!0===s||a(e,t))&&l(e,t)}(e,n,i)){let n=e.cache[t]=s.create();return e.isDestroying&&"function"==typeof n.destroy&&n.destroy(),n}if(function(e,t,n){let{instantiate:i,singleton:s}=n;return!1!==i&&(!1===s||!a(e,t))&&l(e,t)}(e,n,i))return s.create();if(function(e,t,n){let{instantiate:i,singleton:s}=n;return!1!==s&&!i&&a(e,t)&&!l(e,t)}(e,n,i)||function(e,t,n){let{instantiate:i,singleton:s}=n;return!1===i&&(!1===s||!a(e,t))&&!l(e,t)}(e,n,i))return s.class;throw Error("Could not create factory")}}(e,t,t,n)}(this,this.registry.normalize(e),t)}destroy(){this.isDestroying=!0,c(this)}finalizeDestroy(){d(this),this.isDestroyed=!0}reset(e){this.isDestroyed||(void 0===e?(c(this),d(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(0,r.setOwner)(e,this.owner),e}factoryFor(e){if(this.isDestroyed)throw Error(`Cannot call \`.factoryFor('${e}')\` after the owner has been destroyed`);return u(this,this.registry.normalize(e),e)}}function a(e,t){return!1!==e.registry.getOption(t,"singleton")}function l(e,t){return!1!==e.registry.getOption(t,"instantiate")}function u(e,t,n){let i=e.factoryManagerCache[t];if(void 0!==i)return i;let s=e.registry.resolve(t);if(void 0===s)return;let r=new g(e,s,n,t);return e.factoryManagerCache[t]=r,r}function c(e){let t=e.cache;for(let e of Object.keys(t)){let n=t[e];n.destroy&&n.destroy()}}function d(e){e.cache=(0,s.m)(null),e.factoryManagerCache=(0,s.m)(null)}let p=Symbol("INIT_FACTORY");function h(e){return e[p]}function m(e,t){e[p]=t}class g{container;owner;class;fullName;normalizedName;madeToString;injections;constructor(e,t,n,i){this.container=e,this.owner=e.owner,this.class=t,this.fullName=n,this.normalizedName=i,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}create(e){let{container:t}=this;if(t.isDestroyed)throw Error(`Cannot create new instances after the owner has been destroyed (you attempted to create ${this.fullName})`);let n=e?{...e}:{};return(0,r.setOwner)(n,t.owner),m(n,this),this.class.create(n)}}let f=/^[^:]+:[^:]+$/;class _{_failSet;resolver;fallback;registrations;_normalizeCache;_options;_resolveCache;_typeOptions;constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.fallback=e.fallback||null,this.resolver=e.resolver||null,this.registrations=(0,s.m)(e.registrations||null),this._normalizeCache=(0,s.m)(null),this._resolveCache=(0,s.m)(null),this._failSet=new Set,this._options=(0,s.m)(null),this._typeOptions=(0,s.m)(null)}container(e){return new o(this,e)}register(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.normalize(e);this._failSet.delete(i),this.registrations[i]=t,this._options[i]=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,i=e._resolveCache[t];return void 0!==i?i:e._failSet.has(t)?void 0:(e.resolver&&(n=e.resolver.resolve(t)),void 0===n&&(n=e.registrations[t]),void 0===n?e._failSet.add(t):e._resolveCache[t]=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 i=e.split(":")[0];return(n=this._typeOptions[i])&&void 0!==n[t]?n[t]:null!==this.fallback?this.fallback.getOption(e,t):void 0}knownForType(e){let t,n,i=(0,s.m)(null);for(let t of Object.keys(this.registrations))t.split(":")[0]===e&&(i[t]=!0);return null!==this.fallback&&(t=this.fallback.knownForType(e)),null!==this.resolver&&this.resolver.knownForType&&(n=this.resolver.knownForType(e)),Object.assign({},t,i,n)}isValidFullName(e){return f.test(e)}}let y=(0,s.m)(null),b=`${Math.random()}${Date.now()}`.replace(".","");function w(e){let[t]=e,n=y[t];if(n)return n;let[s,r]=t.split(":");return y[t]=(0,i.i)(`${s}:${r}-${b}`)}},36951:(e,t,n)=>{"use strict";n.r(t),n.d(t,{I:()=>c,R:()=>x,T:()=>y,a:()=>b});var i=n(52352),s=n(65828),r=n(62499);let o=new WeakMap;function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{includeAttributes:!1,localizeMapUpdates:!1},i=new WeakMap;return e.map((s,r)=>{let{name:a,params:c,paramNames:d,context:p,route:h}=s;if(o.has(s)&&n.includeAttributes){let e=o.get(s),t=l(e=function(e,t){let n={get metadata(){return u(e)}};return!Object.isExtensible(t)||t.hasOwnProperty("metadata")?Object.freeze(Object.assign({},t,n)):Object.assign(t,n)}(h,e),p);return i.set(s,e),n.localizeMapUpdates||o.set(s,t),t}let m=n.localizeMapUpdates?i:o,g={find(t,n){let i;let s=[];3===t.length&&(s=e.map(e=>m.get(e)));for(let r=0;e.length>r;r++)if(i=m.get(e[r]),t.call(n,i,r,s))return i},get name(){return a},get paramNames(){return d},get metadata(){return u(s.route)},get parent(){let t=e[r-1];if(void 0===t)return null;return m.get(t)},get child(){let t=e[r+1];if(void 0===t)return null;return m.get(t)},get localName(){let e=this.name.split(".");return e[e.length-1]},get params(){return c},get queryParams(){return t}};return n.includeAttributes&&(g=l(g,p)),i.set(s,g),n.localizeMapUpdates||o.set(s,g),g})}function l(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 u(e){return null!=e&&void 0!==e.buildRouteInfoMetadata?e.buildRouteInfoMetadata():null}class c{constructor(e,t,n,i){this._routePromise=void 0,this._route=null,this.params={},this.isResolved=!1,this.name=t,this.paramNames=n,this.router=e,i&&this._processRoute(i)}getModel(e){return s.P.resolve(this.context)}serialize(e){return this.params||{}}resolve(e){return s.P.resolve(this.routePromise).then(t=>((0,r.t)(e),t)).then(()=>this.runBeforeModelHook(e)).then(()=>(0,r.t)(e)).then(()=>this.getModel(e)).then(t=>((0,r.t)(e),t)).then(t=>this.runAfterModelHook(e,t)).then(t=>this.becomeResolved(e,t))}becomeResolved(e,t){let n,i=this.serialize(t);e&&(this.stashResolvedModel(e,t),e[r.P]=e[r.P]||{},e[r.P][this.name]=i);let s=t===this.context;("context"in this||!s)&&(n=t);let a=o.get(this),l=new d(this.router,this.name,this.paramNames,i,this.route,n);return void 0!==a&&o.set(l,a),l}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)),(0,r.i)(t)&&(t=null),s.P.resolve(t)}runAfterModelHook(e,t){let n,i=this.name;return this.stashResolvedModel(e,t),void 0!==this.route&&void 0!==this.route.afterModel&&(n=this.route.afterModel(t,e)),n=(0,r.p)(n),s.P.resolve(n).then(()=>e.resolvedModels[i])}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=s.P.resolve(e),(0,r.a)(e))?(this.routePromise=this.routePromise.then(e=>this.updateRoute(e)),this.route=void 0):e?this.updateRoute(e):void 0}}class d extends c{constructor(e,t,n,i,s,r){super(e,t,n,s),this.params=i,this.isResolved=!0,this.context=r}resolve(e){return e&&e.resolvedModels&&(e.resolvedModels[this.name]=this.context),s.P.resolve(this)}}class p extends c{constructor(e,t,n,i,s){super(e,t,n,s),this.params={},i&&(this.params=i)}getModel(e){let t,n=this.params;e&&e[r.Q]&&(n={},(0,r.m)(n,this.params),n.queryParams=e[r.Q]);let i=this.route;return i.deserialize?t=i.deserialize(n,e):i.model&&(t=i.model(n,e)),t&&(0,r.i)(t)&&(t=void 0),s.P.resolve(t)}}class h extends c{constructor(e,t,n,i){super(e,t,n),this.context=i,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 i={};if((0,r.b)(e))return i[t[0]]=e,i;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 s=t[0];return/_id$/.test(s)?i[s]=e.id:i[s]=e,i}}class m{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.router=e,this.data=t}}function g(e,t,n){let i=e.routeInfos,s=t.resolveIndex>=i.length?i.length-1:t.resolveIndex,r=t.isAborted;throw new b(n,e.routeInfos[s].route,r,e)}function f(e,t){if(t.resolveIndex===e.routeInfos.length)return;let n=e.routeInfos[t.resolveIndex],i=_.bind(null,e,t);return n.resolve(t).then(i,null,e.promiseLabel("Proceed"))}function _(e,t,n){let i=e.routeInfos[t.resolveIndex].isResolved;if(e.routeInfos[t.resolveIndex++]=n,!i){let{route:e}=n;void 0!==e&&e.redirect&&e.redirect(n.context,t)}return(0,r.t)(t),f(e,t)}class y{constructor(){this.routeInfos=[],this.queryParams={},this.params={}}promiseLabel(e){let t="";return(0,r.f)(this.routeInfos,function(e){return""!==t&&(t+="."),t+=e.name,!0}),(0,r.c)("'"+t+"': "+e)}resolve(e){let t=this.params;(0,r.f)(this.routeInfos,e=>(t[e.name]=e.params||{},!0)),e.resolveIndex=0;let n=f.bind(null,this,e),i=g.bind(null,this,e);return s.P.resolve(null,this.promiseLabel("Start transition")).then(n,null,this.promiseLabel("Resolve route")).catch(i,this.promiseLabel("Handle error")).then(()=>this)}}class b{constructor(e,t,n,i){this.error=e,this.route=t,this.wasAborted=n,this.state=i}}class w extends m{constructor(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},r=arguments.length>5?arguments[5]:void 0;super(e,r),this.preTransitionState=void 0,this.name=t,this.pivotHandler=n,this.contexts=i,this.queryParams=s}applyToState(e,t){let n=this.router.recognizer.handlersFor(this.name),i=n[n.length-1].handler;return this.applyToHandlers(e,n,i,t,!1)}applyToHandlers(e,t,n,i,s){let o,a;let l=new y,u=this.contexts.slice(0),c=t.length;if(this.pivotHandler){for(o=0,a=t.length;o=0;--o){let r=t[o],a=r.handler,d=e.routeInfos[o],p=null;if(p=r.names.length>0?o>=c?this.createParamHandlerInfo(a,r.names,u,d):this.getHandlerInfoForDynamicSegment(a,r.names,u,d,n,o):this.createParamHandlerInfo(a,r.names,u,d),s){p=p.becomeResolved(null,p.context);let e=d&&d.context;r.names.length>0&&void 0!==d.context&&p.context===e&&(p.params=d&&d.params),p.context=e}let h=d;(o>=c||p.shouldSupersede(d))&&(c=Math.min(o,c),h=p),i&&!s&&(h=h.becomeResolved(null,h.context)),l.routeInfos.unshift(h)}if(u.length>0)throw Error("More context objects were passed than there are dynamic segments for the route: "+n);return i||this.invalidateChildren(l.routeInfos,c),(0,r.m)(l.queryParams,this.queryParams||{}),i&&e.queryParams&&(0,r.m)(l.queryParams,e.queryParams),l}invalidateChildren(e,t){for(let n=t,i=e.length;n0){if(a=n[n.length-1],(0,r.b)(a))return this.createParamHandlerInfo(e,t,n,i);n.pop()}else{if(i&&i.name===e||!this.preTransitionState)return i;{let e=this.preTransitionState.routeInfos[o];a=null==e?void 0:e.context}}return new h(this.router,e,t,a)}createParamHandlerInfo(e,t,n,i){let s={},o=t.length,a=[];for(;o--;){let l=i&&e===i.name&&i.params||{},u=n[n.length-1],c=t[o];(0,r.b)(u)?s[c]=""+n.pop():l.hasOwnProperty(c)?s[c]=l[c]:a.push(c)}if(a.length>0)throw Error(`You didn't provide enough string/numeric parameters to satisfy all of the dynamic segments for route ${e}. Missing params: ${a}`);return new p(this.router,e,t,s)}}class k extends m{constructor(e,t,n){super(e,n),this.url=t,this.preTransitionState=void 0}applyToState(e){let t=new y,n=this.router.recognizer.recognize(this.url),i,s;if(!n)throw new r.U(this.url);let o=!1,a=this.url;function l(e){if(e&&e.inaccessibleByURL)throw new r.U(a);return e}for(i=0,s=n.length;i=0&&i;--n){let s=t[n],r=s.handler;e.add(t,{as:r}),i="/"===s.path||""===s.path||".index"===r.slice(-6)}})}hasRoute(e){return this.recognizer.hasRoute(e)}queryParamsTransition(e,t,n,i){if(this.fireQueryParamDidChange(i,e),!t&&this.activeTransition)return this.activeTransition;{let e=new r.T(this,void 0,void 0);return e.queryParamsOnly=!0,n.queryParams=this.finalizeQueryParamChange(i.routeInfos,i.queryParams,e),e[r.Q]=i.queryParams,this.toReadOnlyInfos(e,i),this.routeWillChange(e),e.promise=e.promise.then(t=>(e.isAborted||(this._updateURL(e,n),this.didTransition(this.currentRouteInfos),this.toInfos(e,i.routeInfos,!0),this.routeDidChange(e)),t),null,(0,r.c)("Transition complete")),e}}transitionByIntent(e,t){try{return this.getTransitionByIntent(e,t)}catch(t){return new r.T(this,e,void 0,t,void 0)}}recognize(e){let t=new k(this,e),n=this.generateNewState(t);if(null===n)return n;let i=a(n.routeInfos,n.queryParams,{includeAttributes:!1,localizeMapUpdates:!0});return i[i.length-1]}recognizeAndLoad(e){let t=new k(this,e),n=this.generateNewState(t);if(null===n)return s.P.reject(`URL ${e} was not recognized`);let i=new r.T(this,t,n,void 0);return i.then(()=>{let e=a(n.routeInfos,i[r.Q],{includeAttributes:!0,localizeMapUpdates:!1});return e[e.length-1]})}generateNewState(e){try{return e.applyToState(this.state,!1)}catch(e){return null}}getTransitionByIntent(e,t){let n,i=!!this.activeTransition,s=i?this.activeTransition[r.S]:this.state,o=e.applyToState(s,t),a=(0,r.g)(s.queryParams,o.queryParams);if(T(o.routeInfos,s.routeInfos)){if(a){let e=this.queryParamsTransition(a,i,s,o);return e.queryParamsOnly=!0,e}return this.activeTransition||new r.T(this,void 0,void 0)}if(t){let e=new r.T(this,void 0,o);return e.isIntermediate=!0,this.toReadOnlyInfos(e,o),this.setupContexts(o,e),this.routeWillChange(e),this.activeTransition}return n=new r.T(this,e,o,void 0,this.activeTransition),function(e,t){if(e.length!==t.length)return!1;for(let n=0,i=e.length;nthis.finalizeTransition(n,e),null,(0,r.c)("Settle transition promise when transition is finalized")),i||this.notifyExistingHandlers(o,n),this.fireQueryParamDidChange(o,a),n}doTransition(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=n[n.length-1],o={};if(s&&Object.prototype.hasOwnProperty.call(s,"queryParams")&&(o=n.pop().queryParams),void 0===e){(0,r.d)(this,"Updating query params");let{routeInfos:e}=this.state;t=new w(this,e[e.length-1].name,void 0,[],o)}else"/"===e.charAt(0)?((0,r.d)(this,"Attempting URL transition to "+e),t=new k(this,e)):((0,r.d)(this,"Attempting transition to "+e),t=new w(this,e,void 0,n,o));return this.transitionByIntent(t,i)}finalizeTransition(e,t){try{(0,r.d)(e.router,e.sequence,"Resolved all models on destination route; finalizing transition.");let n=t.routeInfos;if(this.setupContexts(t,e),e.isAborted)return this.state.routeInfos=this.currentRouteInfos,s.P.reject((0,r.l)(e));return 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),(0,r.d)(this,e.sequence,"TRANSITION COMPLETE."),n[n.length-1].route}catch(t){if(!(0,r.e)(t)){let n=e[r.S].routeInfos;e.trigger(!0,"error",t,e,n[n.length-1].route),e.abort()}throw t}}setupContexts(e,t){let n,i,s,r=this.partitionRoutes(this.state,e);for(n=0,i=r.exited.length;n=0;--e){let t=i[e];(0,r.m)(o,t.params),t.route.inaccessibleByURL&&(n=null)}if(n){o.queryParams=e._visibleQueryParams||t.queryParams;let i=this.recognizer.generate(s,o),r=e.isCausedByInitialTransition,a="replace"===n&&!e.isCausedByAbortingTransition,l=e.queryParamsOnly&&"replace"===n,u="replace"===n&&e.isCausedByAbortingReplaceTransition;r||a||l||u?this.replaceURL(i):this.updateURL(i)}}finalizeQueryParamChange(e,t,n){for(let e in t)t.hasOwnProperty(e)&&null===t[e]&&delete t[e];let i=[];this.triggerEvent(e,!0,"finalizeQueryParamChange",[t,i,n]),n&&(n._visibleQueryParams={});let s={};for(let e=0,t=i.length;e