1"use strict";(self.webpackChunknodebb=self.webpackChunknodebb||[]).push([[25285,27810,98088],{22148(X,Y,e){var I,S;I=[e(22410),e(60984),e(8454),e(57642),e(47536),e(96352),e(43349),e(95692),e(52473),e(68636),e(91749),e(49897),e(29930),e(33530),e(57576),e(91722)],S=(function(K,b,L,M,y,f,Q,z,m,k,T,w,O,J,Z,q){const R={};let A="0",W="";$(window).on("action:ajaxify.start",function(n,i){M.removeListeners(),String(i.url).startsWith("topic/")||(f.disable(),m.get("navbar/title").find("span").text("").hide(),O.remove("bookmark"))}),R.init=async function(){const n=A==="0"||String(A)!==String(ajaxify.data.tid);A=String(ajaxify.data.tid),W=ajaxify.currentPage,T.fire("action:topic.loading"),app.enterRoom("topic_"+A),n&&(y.signaturesShown={}),await y.onTopicPageLoad(m.get("post")),f.init('[component="topic"]>[component="post"]',ajaxify.data.postcount,R.toTop,R.toBottom,R.navigatorCallback),L.init(A),b.init(A,$(".topic")),M.init(),Q.handleSort("topicPostSort","topic/"+ajaxify.data.slug),config.usePagination||K.init($('[component="topic"]'),y.loadMorePosts),s(),p(),D(),P(),d(),H(),t(A),a(),l(),$(window).on("scroll",utils.debounce(F,250)),r(),q.addHandlers(),T.fire("action:topic.loaded",ajaxify.data)};function r(){Promise.resolve().then(function(){var n=[e(6411)];(i=>{config.topicSearchEnabled&&e.e(69749).then(function(){var o=[e(69749)];(function(c){i.bind(["command+f","ctrl+f"],function(h){h.preventDefault();let j=$('[component="navbar"] [component="search/form"]');j.length||(j=$('[component="sidebar/right"] [component="search/form"]')),j.find('[component="search/fields"] input[name="query"]').val("in:topic-"+ajaxify.data.tid+" "),c.showAndFocusInput(j)}),T.onPage("action:ajaxify.cleanup",()=>{i.unbind(["command+f","ctrl+f"])})}).apply(null,o)}).catch(e.oe),i.bind("j",o=>{if(o.target.classList.contains("mousetrap"))return;const c=f.getIndex(),h=f.getCount();c!==h&&f.scrollToIndex(c,!0,0)}),i.bind("k",o=>{if(o.target.classList.contains("mousetrap"))return;const c=f.getIndex();c!==1&&f.scrollToIndex(c-2,!0,0)})}).apply(null,n)}).catch(e.oe)}R.toTop=function(){f.scrollTop(0)},R.toBottom=function(){socket.emit("topics.postcount",ajaxify.data.tid,function(n,i){if(n)return O.error(n);f.scrollBottom(i-1)})};function t(n){if(window.location.hash){const c=$(utils.escapeHTML(window.location.hash));if(c.length){const h=c.parents("[data-pid]");return f.scrollToElement(h,!0,0)}}const i=ajaxify.data.bookmark||k.getItem("topic:"+n+":bookmark"),o=ajaxify.data.postIndex;if(B(o),f.shouldScrollToPost(o))return f.scrollToPostIndex(o-1,!0,0);i&&(!config.usePagination||config.usePagination&&ajaxify.data.pagination.currentPage===1)&&ajaxify.data.postcount>ajaxify.data.bookmarkThreshold&&O.alert({alert_id:"bookmark",message:"[[topic:bookmark-instructions]]",timeout:15e3,type:"info",clickfn:function(){f.scrollToIndex(Math.max(0,parseInt(i,10)-1),!0)},closefn:function(){k.removeItem("topic:"+n+":bookmark")}})}function a(){const n=document.querySelector('[component="topic/thumb/list"]');n&&(n.addEventListener("click",async i=>{const o=i.target.closest("a");if(o){let g=function(x){const E=v.find('[component="topic/thumb/select"]');if(E.length){const G=(x%E.length+E.length)%E.length,C=E.eq(G);E.removeClass("border-primary"),C.addClass("border-primary");const U=C.find("img").attr("src");v.find('[component="topic/thumb/current"]').attr("src",U).parent().attr("href",U)}};const c=Array.from(o.parentNode.children).indexOf(o);i.stopPropagation(),i.preventDefault();const h=ajaxify.data.thumbs.map(x=>({...x}));h.forEach((x,E)=>{x.selected=E===c});const j=await app.parseAndTranslate("modals/topic-thumbs-view",{src:o.href,thumbs:h}),v=J.dialog({size:"lg",onEscape:!0,backdrop:!0,message:j});v.on("click",'[component="topic/thumb/select"]',function(){const x=v.find('[component="topic/thumb/select"]');g(x.index(this))});const N=`keydown.topic-thumbs-${Date.now()}`,V=function(x){if(x.key!=="ArrowLeft"&&x.key!=="ArrowRight")return;x.preventDefault();const E=v.find('[component="topic/thumb/select"]'),G=E.index(E.filter(".border-primary").first()),C=G>=0?G:0,U=x.key==="ArrowRight"?1:-1;g(C+U)};$(document).on(N,V),v.on("hidden.bs.modal",function(){$(document).off(N,V)})}}),$('[component="topic/thumb/list/expand"]').on("click",function(){const i=$(this);i.parents('[component="topic/thumb/list"]').removeClass("thumbs-collapsed"),i.remove()}))}function s(){m.get("topic").on("click","blockquote .toggle",function(){const n=$(this).parent("blockquote"),i=$(this);n.toggleClass("uncollapsed");const o=!n.hasClass("uncollapsed");i.find("i").toggleClass("fa-angle-down",o).toggleClass("fa-angle-up",!o)})}function p(){new Z('[component="copy/code/btn"]',{text:function(i){const o=$(i);o.find("i").removeClass("fa-copy").addClass("fa-check"),setTimeout(()=>
1o.find("i").removeClass("fa-check").addClass("fa-copy"),2e3);const c=o.parent().find("code");return c.attr("data-lines")&&c.find(".hljs-ln-code[data-line-number]").length?c.find(".hljs-ln-code[data-line-number]").map((h,j)=>j.textContent).get().join(` 2`):c.text()}});function n(){function i(g){return g.scrollHeight>g.clientHeight}function o(g){if(g.length){if(!g[0].scrollHeight)return setTimeout(o,100,g);i(g.get(0))&&g.parent().parent().find('[component="copy/code/btn"]').css({margin:"0.5rem 1.5rem 0 0"})}}let c=$('[component="topic"] [component="post/content"] code:not([data-button-added])');c=c.filter((g,N)=>$(N).text().includes(` 3`));const h=$('<div class="hover-parent position-relative"></div>'),j=$('<button component="copy/code/btn" class="hover-visible position-absolute top-0 btn btn-sm btn-outline-secondary" style="right: 0px; margin: 0.5rem 0.5rem 0 0;"><i class="fa fa-fw fa-copy"></i></button>'),v=c.parent();v.wrap(h).parent().append(j),v.parent().find('[component="copy/code/btn"]').translateAttr("title","[[topic:copy-code]]"),v.each((g,N)=>{o($(N).find("code"))}),c.attr("data-button-added",1)}T.registerPage("action:posts.loaded",n),T.registerPage("action:topic.loaded",n),T.registerPage("action:posts.edited",n)}function u(n,i){const o=$(`[component="topic"]>[component="post"][data-pid="${i}"]`);if(o.length)return n.preventDefault(),f.scrollToIndex(o.attr("data-index"),!0),!1}function D(){m.get("topic").on("click",'[component="post/parent"]',function(n){const i=$(this),o=i.find('[component="post/parent/content"]');if(o.length){const c=i.attr("data-collapsed")==="true";if(i.attr("data-collapsed",c?"false":"true"),o.toggleClass("line-clamp-1"),i.find(".timeago").toggleClass("hidden"),i.toggleClass("flex-column").toggleClass("flex-row"),c)return!1}else return u(n,i.attr("data-topid"))}),m.get("topic").on("click",'[component="post/parent"] .timeago',function(n){return u(n,$(this).parents("[data-parent-pid]").attr("data-parent-pid"))})}function P(){$('[component="topic"]').on("click",'[component="post/reply-count"]',function(){const n=$(this);e.e(18631).then(function(){var i=[e(18631)];(function(o){o.init(n)}).apply(null,i)}).catch(e.oe)}),$('[component="topic"]').on("click",'[component="post/replies"] .post-header a.timeago',function(n){return u(n,$(this).parents("[data-pid]").attr("data-pid"))})}function d(){if(!ajaxify.data.showPostPreviewsOnHover||utils.isMobile())return;let n=0,i=!1,o=null;const c={};function h(){clearTimeout(n),n=0,$("#post-tooltip").remove(),i=!0}function j(v){$(v.target).closest("#post-tooltip").length||h()}$(window).one("action:ajaxify.start",h),$('[component="topic"]').on("mouseenter",'a[component="post/parent"], [component="post/parent/content"] a,[component="post/content"] a, [component="topic/event"] a',async function(){o=$(this),o.removeAttr("over-tooltip"),o.one("mouseleave",function(){clearTimeout(n),n=0,setTimeout(()=>{!o.attr("over-tooltip")&&!n&&h()},100)}),clearTimeout(n),i=!1,n=setTimeout(async()=>{async function v(C){const U=c[C]||await w.get(`/posts/${encodeURIComponent(C)}/summary`);if($("#post-tooltip").remove(),U&&ajaxify.data.template.topic){c[C]=U;const _=await app.parseAndTranslate("partials/topic/post-preview",{post:U});if(i)return;_.hide().find(".timeago").timeago(),_.appendTo($("body")).fadeIn(300);const ot=o.parents('[component="topic"]').find('[component="post/content"]').first(),et=ot.offset(),it=ot.width(),{top:tt}=o.get(0).getBoundingClientRect(),at=tt>window.innerHeight/2;_.on("mouseenter",function(){o.attr("over-tooltip",1)}),_.one("mouseleave",h),$(window).off("click",j).one("click",j);const nt={left:et.left,width:it};at?nt.bottom=window.innerHeight-tt-window.scrollY+5:nt.top=tt+window.scrollY+30,_.css(nt)}}const g=o.attr("href"),N=utils.urlToLocation(g),V=N.pathname,x=g&&g!=="#"&&window.location.hostname===N.hostname;$("#post-tooltip").remove();const E=x&&V&&V.match(/\/post\/([\d]+|(?:[\w_.~!$&'()*+,;=:@-]|%[\dA-F]{2})+)/),G=x&&V&&V.match(/\/topic\/([\da-z-]+)/);if(E){const C=E[1];if(encodeURIComponent(o.parents('[component="post"]').attr("data-pid"))===encodeURIComponent(C))return;v(C)}else if(G){const C=G[1],U=await w.get("/topics/"+C,{});v(U.mainPid)}},300)})}function l(){const n=document.getElementById("show-crossposts");n&&n.addEventListener("click",async()=>{const{crossposts:i}=ajaxify.data,o=await app.parseAndTranslate("modals/crossposts",{crossposts:i});J.dialog({onEscape:!0,backdrop:!0,title:"[[global:crossposts]]",message:o})})}function H(){(config.enableQuickReply||config.theme&&config.theme.enableQuickReply)&&z.init({route:`/topics/${ajaxify.data.tid}`,body:{tid:ajaxify.data.tid}})}function F(){const n=m.get("navbar/title").find("span");$(window).scrollTop()>50&&n.hasClass("hidden")?n.html(ajaxify.data.title).removeClass("hidden"):$(window).scrollTop()<=50&&!n.hasClass("hidden")&&n.html("").addClass("hidden"),$(window).scrollTop()>300&&O.remove("bookmark")}
3R.navigatorCallback=function(n,i){if(!ajaxify.data.template.topic||f.scrollActive)return;const o="topic/"+ajaxify.data.slug+(n>1?"/"+n:"");if(o!==W&&(W=o,n>=i&&app.user.uid&&w.put(`/topics/${ajaxify.data.tid}/read`),B(n),ajaxify.data.updateUrlWithPostIndex&&history.replaceState)){let c=window.location.search||"";config.usePagination||(c=c&&!/^\?page=\d+$/.test(c)?c:""),history.replaceState({url:o+c},null,window.location.protocol+"//"+window.location.host+config.relative_path+"/"+o+c)}};function B(n){const i="topic:"+ajaxify.data.tid+":bookmark",o=ajaxify.data.bookmark||k.getItem(i);config.topicPostSort==="newest_to_oldest"&&(n=Math.max(1,ajaxify.data.postcount-n+2)),ajaxify.data.postcount>ajaxify.data.bookmarkThreshold&&(!o||parseInt(n,10)>parseInt(o,10)||ajaxify.data.postcount<parseInt(o,10))&&(app.user.uid?(ajaxify.data.bookmark=Math.min(n,ajaxify.data.postcount),socket.emit("topics.bookmark",{tid:ajaxify.data.tid,index:ajaxify.data.bookmark},function(c){if(c)return ajaxify.data.bookmark=o,O.error(c)})):k.setItem(i,n)),(!o||parseInt(n,10)>=parseInt(o,10))&&O.remove("bookmark")}return R}).apply(Y,I),S!==void 0&&(X.exports=S)},57642(X,Y,e){var I,S;I=[e(8454),e(60984),e(47536),e(2269),e(52473),e(17459),e(91749),e(30076)],S=(function(K,b,L,M,y,f,Q,z){const m={},k={"event:user_status_change":T,"event:voted":w,"event:bookmarked":O,"event:topic_deleted":b.setDeleteState,"event:topic_restored":b.setDeleteState,"event:topic_purged":J,"event:topic_locked":b.setLockedState,"event:topic_unlocked":b.setLockedState,"event:topic_pinned":b.setPinnedState,"event:topic_unpinned":b.setPinnedState,"event:topic_moved":Z,"event:post_edited":q,"event:post_purged":R,"event:post_deleted":A,"event:post_restored":A,"posts.bookmark":W,"posts.unbookmark":W,"posts.upvote":r,"posts.downvote":r,"posts.unvote":r,"event:new_post":L.onNewPost};m.init=function(){m.removeListeners();for(const[t,a]of Object.entries(k))socket.on(t,a)},m.removeListeners=function(){for(const[t,a]of Object.entries(k))socket.removeListener(t,a)};function T(t){app.updateUserStatus($('[data-uid="'+t.uid+'"] [component="user/status"]'),t.status)}function w(t){const a=$('[data-pid="'+t.post.pid+'"] [component="post/vote-count"]').filter(function(p,u){return $(u).closest("[data-pid]").attr("data-pid")===String(t.post.pid)}),s=$('.reputation[data-uid="'+t.post.uid+'"]');a.html(t.post.votes).attr("data-votes",t.post.votes),s.html(t.user.reputation).attr("data-reputation",t.user.reputation)}function O(t){$('[data-pid="'+t.post.pid+'"] .bookmarkCount').filter(function(a,s){return $(s).closest("[data-pid]").attr("data-pid")===String(t.post.pid)}).html(t.post.bookmarks).attr("data-bookmarks",t.post.bookmarks)}function J(t){ajaxify.data.category&&ajaxify.data.category.slug&&String(t.tid)===String(ajaxify.data.tid)&&ajaxify.go("category/"+ajaxify.data.category.slug,null,!0)}function Z(t){t&&t.slug&&String(t.tid)===String(ajaxify.data.tid)&&ajaxify.go("topic/"+t.slug,null,!0)}function q(t){if(!t||!t.post||String(t.post.tid)!==String(ajaxify.data.tid))return;const a=y.get("post/content",t.post.pid).filter(function(d,l){return String($(l).closest("[data-pid]").attr("data-pid"))===String(t.post.pid)}),s=$(`[data-pid="${t.post.pid}"]`),p=s.find('[component="post/editor"]').filter(function(d,l){return String($(l).closest("[data-pid]").attr("data-pid"))===String(t.post.pid)}),u=y.get("topic/title"),D=y.get("navbar/title").find("span"),P=y.get("breadcrumb/current");if(t.topic.rescheduled)return ajaxify.go("topic/"+t.topic.slug,null,!0);if(u.length&&t.topic.title&&t.topic.renamed){ajaxify.data.title=t.topic.title;const d="topic/"+t.topic.slug+(window.location.search?window.location.search:"");history.replaceState({url:d},null,window.location.protocol+"//"+window.location.host+config.relative_path+"/"+d),u.fadeOut(250,function(){u.html(t.topic.title).fadeIn(250)}),P.fadeOut(250,function(){P.html(t.topic.title).fadeIn(250)}),D.fadeOut(250,function(){D.html(t.topic.title).fadeIn(250)})}if(t.post.changed){a.fadeOut(250,function(){if(a.html(f.unescape(t.post.content)),a.find("img:not(.not-responsive)").addClass("img-fluid"),M.wrapImagesInLinks(a.parent()),L.addBlockquoteEllipses(a.parent()),a.fadeIn(250),t.post.edited){const l={editor:t.editor,editedISO:utils.toISOString(t.post.edited)};app.parseAndTranslate("partials/topic/post-editor",l,function(H){p.replaceWith(H),s.find('[component="post/edit-indicator"]').removeClass("hidden").translateAttr("title",`[[global:edited-timestamp, ${z.isoTimeToLocaleStr
3ing(l.editedISO,config.userLang)}]]`),s.find('[component="post/editor"] .timeago').timeago(),Q.fire("action:posts.edited",t)})}});const d=$(`[component="post/parent"][data-parent-pid="${t.post.pid}"]`);d.length&&(d.find('[component="post/parent/content"]').html(f.unescape(t.post.content)),d.find("img:not(.not-responsive)").addClass("img-fluid"),d.find('[component="post/parent/content"] img:not(.emoji)').each(function(){M.wrapImageInLink($(this))}))}else Q.fire("action:posts.edited",t);t.topic.tags&&t.topic.tagsupdated&&Promise.all([e.e(20056),e.e(63)]).then(function(){var d=[e(63)];(function(l){l.updateTopicTags([t.topic])}).apply(null,d)}).catch(e.oe),t.topic.thumbsupdated&&Promise.all([e.e(23662),e.e(65285),e.e(36159)]).then(function(){var d=[e(36159)];(function(l){l.updateTopicThumbs(t.topic.tid)}).apply(null,d)}).catch(e.oe),K.removeMenu(y.get("post","pid",t.post.pid))}function R(t){!t||String(t.tid)!==String(ajaxify.data.tid)||(y.get("post","pid",t.pid).fadeOut(500,function(){$(this).remove(),L.showBottomPostBar()}),ajaxify.data.postcount-=1,K.updatePostCount(ajaxify.data.postcount),e.e(18631).then(function(){var a=[e(18631)];(function(s){s.onPostPurged(t)}).apply(null,a)}).catch(e.oe),$(`[component="post/parent"][data-parent-pid="${t.pid}"]`).remove())}function A(t){const a=y.get("post","pid",t.pid),{isAdminOrMod:s}=ajaxify.data.privileges,p=String(t.uid)===String(app.user.uid),u=!!t.deleted;a.length&&(a.toggleClass("deleted"),K.toggle(t.pid,u),!s&&!p&&(a.find('[component="post/tools"]').toggleClass("hidden",u),u?a.find('[component="post/content"]').translateHtml("[[topic:post-is-deleted]]"):a.find('[component="post/content"]').html(f.unescape(t.content))));const D=$(`[component="post/parent"][data-parent-pid="${t.pid}"]`);D.length&&D.each((P,d)=>{const l=$(d);u?l.find('[component="post/parent/content"]').translateHtml("[[topic:post-is-deleted]]"):l.find('[component="post/parent/content"]').html(f.unescape(t.content))})}function W(t){const a=$('[data-pid="'+t.post.pid+'"] [component="post/bookmark"]').filter(function(s,p){return $(p).closest("[data-pid]").attr("data-pid")===String(t.post.pid)});a.length&&(a.attr("data-bookmarked",t.isBookmarked),a.find('[component="post/bookmark/on"]').toggleClass("hidden",!t.isBookmarked),a.find('[component="post/bookmark/off"]').toggleClass("hidden",t.isBookmarked))}function r(t){const a=$('[data-pid="'+t.post.pid+'"]');a.find('[component="post/upvote"]').filter(function(s,p){return $(p).closest("[data-pid]").attr("data-pid")===String(t.post.pid)}).toggleClass("upvoted",t.upvote),a.find('[component="post/downvote"]').filter(function(s,p){return $(p).closest("[data-pid]").attr("data-pid")===String(t.post.pid)}).toggleClass("downvoted",t.downvote)}return m}).apply(Y,I),S!==void 0&&(X.exports=S)},91722(X,Y,e){e.r(Y),e.d(Y,{addHandlers:()=>R,list:()=>w,refresh:()=>J,register:()=>Z,save:()=>O,trigger:()=>W});var I=e(33530),S=e.n(I),K=e(49897),b=e(68636),L=e.n(b),M=e(17459),y=e.n(M),f=e(29930);const Q="ap:intents:handles";function z(){try{return L().getItem(Q)}catch{return null}}function m(r){try{L().setItem(Q,r)}catch{}}const k={create:"[[intents:display.create]]",like:"[[intents:display.like]]",dislike:"[[intents:display.dislike]]",follow:"[[intents:display.follow]]",object:"[[intents:display.object]]"};async function T(r){return await(0,M.translateKeys)(Object.keys(r).map(t=>`${k[t.toLowerCase()]}`))}function w(){const r=z();if(!r)return new Map;let t;try{t=JSON.parse(r)}catch{return new Map}const a=new Map;return Array.isArray(t)&&t.forEach(s=>{s&&s.handle&&typeof s.intents=="object"&&!Array.isArray(s.intents)&&a.set(s.handle,s.intents)}),a}function O(r,t){if(typeof r!="string"||!r.trim()||(r=r.trim(),!t||typeof t!="object"||Array.isArray(t)))return;const a=w();a.set(r,t);const s=Array.from(a.entries()).map(([p,u])=>({handle:p,intents:u}));m(JSON.stringify(s))}async function J(r){if(typeof r!="string"||!r.trim())return null;r=r.trim().replace(/^@/,"");const t=await(0,K.get)(`/api/v3/intents/query/${r}`);return t&&t.intents&&typeof t.intents=="object"?(O(r,t.intents),{intents:Object.keys(t.intents)}):null}async function Z(){let r=w(),t=await Promise.all(Array.from(r.entries()).map(async([a,s])=>({handle:a,intents:(await T(s)).join(", ")})));app.parseAndTranslate("modals/intents/register",{description:"[[intents:description]]",handles:t},a=>{const s=(0,I.dialog)({title:"[[intents:title]]",message:a}),p=s.find("#intents-handle-input"),u=s.find("#intents-register-btn"),D=()=>{const P=p.val().trim(),d=/^@?[\w.-]+@[\w.-]+\.[\w]{2,}$/.test(P);u.prop("disabled",!d)};p.on("input",D),D(),s.find("#intents-register-form").on("submit",async P=>{P.preventDefault();const d=p.val().trim();u.prop("disabled",!0);try{await J(d),r=w(),t=await Promise.all(Array.from(r.entries()).map(async([H,F])=>({handle:H,intents:(await T(F)).join(", ")})));const l=await app.parseAndTranslate("modals/intents/register","handles",{handles:t});s.find("#intents-registered-list").html(l)}catch(l){f.error(l.message)}finally{p.val(""),u.prop("disabled",!1)}}),s.on("click",'[data-action="remove"]',function(){const P=$(this).attr("data-handle"),d=w();d.delete(P);const l=Array.from(d.entries()).map(([H,F])=>({handle:H,intents:F}));m(JSON.stringify(l)),$(this).closest("li").remove(),d.size||(s.find("#intents-registered-list").closest("hr").next("h6, p").remove(),s.find("#intents-registered-list").closest("hr").prev("p").after('<p class="text-muted mt-3">[[intents:no-handles]]</p>'))})})}const q='[component="topic/reply/guest"], [component="category/post/guest"]';function R(){document.removeEventListener("click",A),document.addEventListener("click",A,!0)}function A(r){if(r.target.closest(q)){r.preventDefault(),r.stopPropagation();const a=ajaxify.data.tid,s=ajaxify.data.cid,p={};a?(p.inReplyTo=utils.isNumber(ajaxify.data.mainPid)?`${config.url}/post/${ajaxify.data.mainPid}`:ajaxify.data.mainPid,p.content=`@${ajaxify.data.author.userslug}`):s&&(p.content=`@${ajaxify.data.handleFull}`),W("create",p)}}async function W(r,t){const a=w(),s=r.toLowerCase(),p=k[s],u=await(0,M.translate)(`${p||r}`),D=Array.from(a.entries()).filter(([,d])=>d&&typeof d=="object"&&s in d).map(([d,l])=>({handle:d,intents:l})),P=await Promise.all(D.map(async({handle:d,intents:l})=>({handle:d,intents:(await T(l)).join(", ")})));app.parseAndTranslate("modals/intents/trigger",{displayIntent:u,matchingHandles:P,hasAnyHandles:a.size>0},d=>{const l=(0,I.dialog)({title:`[[intents:trigger-title, ${u}]]`,message:d});l.on("click",'[data-action="execute-intent"]',function(){const H=$(this).attr("data-handle"),F=a.get(H);let B=F&&F[s];if(B&&t&&typeof t=="object"&&Object.keys(t).forEach(n=>{const i=t[n],o=`{${n}}`;B.includes(o)&&(B=B.replaceAll(o,encodeURIComponent(i)))}),B=B?.replaceAll(/\{[^}]+\}/g,""),B)try{const n=new URL(B);(n.protocol==="http:"||n.protocol==="https:")&&(window.location.href=B)}catch{}}),l.on("click",'[data-action="open-register"]',function(){l.modal("hide"),setTimeout(()=>Z(),300)}),l.on("click",'[data-action="go-login"]',function(){l.modal("hide"),aja
3xify.go("login")})})}},43349(X,Y,e){var I,S;I=[e(52473)],S=(function(K){const b={};return b.handleSort=function(L,M){const y=K.get("thread/sort");y.find("i").removeClass("fa-check");const f=ajaxify.data.sortOption||config[L];y.find('a[data-sort="'+f+'"]').find("i").addClass("fa-check"),$("body").off("click",'[component="thread/sort"] a[data-sort]').on("click",'[component="thread/sort"] a[data-sort]',function(){const z=$(this).attr("data-sort"),m=utils.params();m.sort=z;const k=$.param(m);ajaxify.go(M+(k?"?"+k:""))})},b}).apply(Y,I),S!==void 0&&(X.exports=S)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.