forked from unimatrix/web
2 lines
No EOL
49 KiB
JavaScript
2 lines
No EOL
49 KiB
JavaScript
(function(){"use strict";var e={7664:function(e,t,o){o.d(t,{A:function(){return l}});var s=function(){var e=this,t=e._self._c;return t("main",{staticClass:"notfound"},[t("section",{staticClass:"hero"},[t("div",{staticClass:"hero-content"},[t("font-awesome",{attrs:{icon:"exclamation-circle"}}),t("h1",[e._v(e._s(e.$t("notFound.title")))]),t("div",{staticClass:"error"},[t("i18n",{attrs:{path:"notFound.message",tag:"p"},scopedSlots:e._u([{key:"path",fn:function(){return[t("code",[e._v(e._s(e.$route.path))])]},proxy:!0}])})],1)],1)])])},r=[],n={name:"NotFound",metaInfo:{title:"404"}},i=n,a=o(845),d=(0,a.A)(i,s,r,!1,null,null,null),l=d.exports},8198:function(e,t,o){o.r(t)},672:function(e,t,o){var s=o(5471),r=o(4765),n=o(3292),i=o.n(n),a=o(5681),d=o.n(a),l=o(7845),c=o(649),u=o(173),p=function(){var e=this,t=e._self._c;return t("main",{staticClass:"home"},[t("section",{staticClass:"hero"},[t("div",{staticClass:"container"},[t("div",{class:{logo:!0,selfhosted:e.config.selfHosted}},[t("img",{attrs:{alt:"LuckPerms logo",src:o(3935)}}),t("div",[t("h1",[e._v("LuckPerms")]),t("p",[e._v(e._s(e.$t("description")))])])]),e.config.selfHosted?e._e():t("div",{staticClass:"download"},[t("router-link",{attrs:{to:"/download"}},[t("span",[t("font-awesome",{attrs:{icon:"arrow-alt-circle-down"}}),e._v(" "+e._s(e.$t("links.download"))+" ")],1),t("small",[e._v(" v"+e._s(e.version)+" "),e.version?e._e():t("font-awesome",{attrs:{icon:"asterisk",spin:!0}})],1)]),t("small",[e._v(" "+e._s(e.$t("home.supported"))+" ")])],1)])]),e.config.selfHosted?t("div",{staticClass:"container selfhosted"},[t("section",{staticClass:"resources"},[t("div",[t("div",{staticClass:"tools"},[t("router-link",{attrs:{to:"/editor",alt:"Web Editor"}},[t("font-awesome",{attrs:{icon:"edit"}}),e._v(" "+e._s(e.$t("links.editor"))+" ")],1),t("router-link",{attrs:{to:"/verbose",alt:"Verbose Viewer"}},[t("font-awesome",{attrs:{icon:"comment-alt"}}),e._v(" "+e._s(e.$t("links.verbose"))+" ")],1),t("router-link",{attrs:{to:"/treeview",alt:"Tree Viewer"}},[t("font-awesome",{attrs:{icon:"sitemap"}}),e._v(" "+e._s(e.$t("links.tree"))+" ")],1)],1)])])]):t("div",{staticClass:"container"},[t("section",{staticClass:"resources"},[t("div",[t("h2",[e._v(e._s(e.$t("home.why.title")))]),t("p",[e._v(e._s(e.$t("home.why.description")))]),t("p",[e._v(e._s(e.$t("home.why.its")))]),t("ul",[t("li",{domProps:{innerHTML:e._s(e.$t("home.why.fast"))}}),t("li",{domProps:{innerHTML:e._s(e.$t("home.why.reliable"))}}),t("li",{domProps:{innerHTML:e._s(e.$t("home.why.easy"))}}),t("li",{domProps:{innerHTML:e._s(e.$t("home.why.flexible"))}}),t("li",{domProps:{innerHTML:e._s(e.$t("home.why.extensive"))}}),t("li",{domProps:{innerHTML:e._s(e.$t("home.why.free"))}})]),t("i18n",{attrs:{path:"home.why.more",tag:"p"},scopedSlots:e._u([{key:"wiki",fn:function(){return[t("router-link",{attrs:{to:"/wiki/Why-LuckPerms"}},[e._v(e._s(e.$t("home.why.why")))])]},proxy:!0}],null,!1,2720492971)}),t("h2",[e._v(e._s(e.$t("home.apps.title")))]),t("p",[e._v(e._s(e.$t("home.apps.description1")))]),t("p",[e._v(e._s(e.$t("home.apps.description2")))]),t("div",{staticClass:"tools"},[t("router-link",{attrs:{to:"/editor",alt:"Web Editor"}},[t("font-awesome",{attrs:{icon:"edit"}}),e._v(" "+e._s(e.$t("links.editor"))+" ")],1),t("router-link",{attrs:{to:"/verbose",alt:"Verbose Viewer"}},[t("font-awesome",{attrs:{icon:"comment-alt"}}),e._v(" "+e._s(e.$t("links.verbose"))+" ")],1),t("router-link",{attrs:{to:"/treeview",alt:"Tree Viewer"}},[t("font-awesome",{attrs:{icon:"sitemap"}}),e._v(" "+e._s(e.$t("links.tree"))+" ")],1)],1)],1),t("div",[t("router-link",{staticClass:"resource",attrs:{to:"/wiki"}},[t("span",[t("font-awesome",{attrs:{icon:"book"}}),e._v(" "+e._s(e.$t("links.wiki"))+" ")],1),t("small",[e._v(e._s(e.$t("home.wiki")))])]),t("a",{staticClass:"resource",attrs:{href:"https://github.com/LuckPerms/LuckPerms"}},[t("span",[t("font-awesome",{attrs:{icon:["fab","github"]}}),e._v(" GitHub ")],1),t("small",[e._v(e._s(e.$t("home.github")))])]),t("a",{staticClass:"resource",attrs:{href:"https://discord.gg/luckperms"}},[t("span",[t("font-awesome",{attrs:{icon:["fab","discord"]}}),e._v(" Discord ")],1),t("small",[e._v(e._s(e.$t("home.discord",{count:e.discordUserCount})))])]),t("router-link",{staticClass:"resource",attrs:{to:"/sponsor"}},[t("span",[t("font-awesome",{attrs:{icon:"server"}}),e._v(" "+e._s(e.$t("home.partner.title"))+" ")],1),t("small",[e._v(e._s(e.$t("home.partner.description")))])])],1)])])])},m=[],f={name:"Home",metaInfo:{title:"LuckPerms",titleTemplate:null},data(){return{}},computed:{version(){return this.$store.getters.version},config(){return this.$store.getters.config},discordUserCount(){return this.$store.getters.discordUserCount}}},h=f,g=o(845),v=(0,g.A)(h,p,m,!1,null,null,null),y=v.exports,w=o(7664);const k=o(8272);s["default"].use(u.Ay);let b=[{path:"/",name:"home",component:y},{path:"*",name:"not-found",component:w.A},{path:"/editor",name:"editor-home",component:()=>Promise.all([o.e(740),o.e(8)]).then(o.bind(o,9109))},{path:"/editor/:id",name:"editor",component:()=>Promise.all([o.e(740),o.e(8)]).then(o.bind(o,9109))},{path:"/verbose",name:"verbose-home",component:()=>Promise.all([o.e(740),o.e(671)]).then(o.bind(o,6146))},{path:"/verbose/:id",name:"verbose",component:()=>Promise.all([o.e(740),o.e(671)]).then(o.bind(o,6146))},{path:"/treeview",name:"tree-home",component:()=>o.e(623).then(o.bind(o,7770))},{path:"/treeview/:id",name:"tree",component:()=>o.e(623).then(o.bind(o,7770))}];if(!k.selfHosted){const e=[{path:"/download",name:"download",component:()=>o.e(467).then(o.bind(o,4882))},{path:"/sponsor",name:"sponsor",component:()=>o.e(603).then(o.bind(o,2963))},{path:"/wiki",name:"wiki",component:()=>o.e(419).then(o.bind(o,5777)),redirect:"/wiki/Home",children:[{path:":page",name:"wiki-article",component:()=>o.e(419).then(o.bind(o,4450))}]}];b=[...b,...e]}var x=new u.Ay({mode:"history",base:k.base,routes:b}),S=o(8747),L=o(6429),C=o(1273),_=o(2630),P=o(2403);L.Yv.add(_.hSh,_.U23,_.yek,_.tUE,_.OQW,_.GRI,_.s0Q,_.DqM,_.kZq,_.QLR,_.OtC,_.LBj,_.mwg,_.CeG,_.fU5,_.MT7,_.e68,_.v02,_.wXH,_.nsx,_.mh,_.EZy,_.FFg,_.jkA,_.xbI,_.Ni$,_.wRm,_.ckx,_.Xbc,_.$3n,_.rhE,_.MjD,_.D6w,_.qcK,_.vh1,P.Vz1,P._2G);const E={install(e){e.component("font-awesome",C.gc),e.component("font-awesome-layers",C.Vg)}};var N=E,T=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"app"}},[t("nav",{attrs:{id:"nav"}},[t("div",[t("router-link",{staticClass:"logo",attrs:{to:"/"}},[t("img",{attrs:{alt:"LuckPerms logo",src:o(3935)}}),t("span",[e._v("LuckPerms · DuneRealms")])]),t("transition",{attrs:{name:"fade"}},[e.config.selfHosted||e.isSponsorRoute?e._e():t("div",{staticClass:"nav-message"},[t("router-link",{attrs:{to:"/sponsor"}},[t("hr"),t("img",{attrs:{src:o(3992),alt:"Bisect Hosting"}}),t("span",{domProps:{innerHTML:e._s(e.$t("sponsor"))}})])],1)])],1),t("ul",{class:{active:e.menu,"top-level":!0}},[e.config.selfHosted?e._e():[t("li",{directives:[{name:"show",rawName:"v-show",value:e.showSearchBar,expression:"showSearchBar"}],staticClass:"search-container"},[t("div",{attrs:{id:"docsearch"}})]),t("li",[t("router-link",{attrs:{to:"/download"}},[t("font-awesome",{attrs:{icon:"arrow-alt-circle-down","fixed-width":""}}),e._v(" "+e._s(e.$t("links.download"))+" ")],1)],1),t("li",{staticClass:"overlap"},[t("router-link",{attrs:{to:"/wiki"}},[t("font-awesome",{attrs:{icon:"book","fixed-width":""}}),e._v(" "+e._s(e.$t("wiki"))+" ")],1)],1)],t("li",[t("span",{class:{"router-link-active":e.isToolsRoute,tools:!0}},[t("font-awesome",{attrs:{icon:"tools","fixed-width":""}}),e._v(" "+e._s(e.$t("links.tools.name"))+" ")],1),t("ul",[t("li",[t("router-link",{attrs:{to:"/editor"}},[t("font-awesome",{attrs:{icon:"edit","fixed-width":""}}),e._v(" "+e._s(e.$t("links.tools.editor"))+" ")],1)],1),t("li",[t("router-link",{attrs:{to:"/verbose"}},[t("font-awesome",{attrs:{icon:"comment-alt","fixed-width":""}}),e._v(" "+e._s(e.$t("links.tools.verbose"))+" ")],1)],1),t("li",[t("router-link",{attrs:{to:"/treeview"}},[t("font-awesome",{attrs:{icon:"sitemap","fixed-width":""}}),e._v(" "+e._s(e.$t("links.tools.tree"))+" ")],1)],1)])]),e.config.selfHosted?e._e():[t("li",{staticClass:"external overlap"},[t("a",{staticClass:"github",attrs:{href:"https://github.com/LuckPerms/LuckPerms",target:"_blank"}},[t("font-awesome",{attrs:{icon:["fab","github"],"fixed-width":""}}),t("span",[e._v("GitHub")])],1)]),t("li",{staticClass:"external"},[t("a",{staticClass:"discord",attrs:{href:"https://discord.gg/luckperms",target:"_blank"}},[t("font-awesome",{attrs:{icon:["fab","discord"],"fixed-width":""}}),t("span",[e._v("Discord")])],1)])],e.locale?t("li",{on:{click:function(t){e.localeMenu=!e.localeMenu}}},[t("span",{staticClass:"locale"},[t("font-awesome",{attrs:{icon:"language","fixed-width":""}}),t("span",{staticClass:"locale-label"},[e._v(e._s(e.$t("links.language")))])],1),t("ul",{class:["locale-menu",{open:!!e.localeMenu}]},e._l(e.locales,(function(o){return t("li",{key:o.code,class:[{selected:o===e.locale}],on:{click:function(t){return e.setLocale(o.code)}}},[t("span",[t("span",{class:["fi","fi-"+o.countryCode],attrs:{alt:o.name}}),e._v(" "+e._s(o.name)+" ")])])})),0)]):e._e()],2),t("button",{attrs:{id:"nav-menu-toggle"},on:{click:function(t){e.menu=!e.menu}}},[t("font-awesome",{attrs:{icon:"bars"}})],1),t("transition",{attrs:{name:"fade"}},[e.menu?t("div",{staticClass:"overlay-focus",attrs:{id:"nav-focus"},on:{click:function(t){e.menu=!e.menu}}}):e._e()])],1),t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1),t("footer",[t("div",{staticClass:"footer"},[t("ul",[t("li",[t("font-awesome",{attrs:{icon:"code-branch","fixed-width":""}}),t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPermsWeb",target:"_blank"}},[e._v("LuckPermsWeb")]),e._v(" @ "),t("a",{attrs:{href:"https://github.com/LuckPerms/LuckPermsWeb/commit/"+e.commitHash,target:"_blank"}},[e._v(e._s(e.commitHash))])],1),t("li",[e.config.selfHosted?t("a",{attrs:{href:"https://luckperms.net/wiki/Credits",target:"_blank"}},[e._v(" Copyright © 2017-"+e._s((new Date).getFullYear().toString())+" LuckPerms contributors ")]):t("router-link",{attrs:{to:"/wiki/Credits",target:"_blank"}},[e._v(" Copyright © 2017-"+e._s((new Date).getFullYear().toString())+" LuckPerms contributors ")])],1)])])])],1)},A=[],$=o(2664),D={metaInfo:{titleTemplate:"%s | LuckPerms",meta:[{property:"og:title",content:"LuckPerms"},{property:"og:description",content:"Website & online apps for the LuckPerms plugin."},{property:"og:type",content:"product"},{property:"og:image",content:"https://luckperms.net/logo.png"},{property:"og:url",content:"https://luckperms.net/"},{property:"og:site_name",content:"LuckPerms - A permissions plugin for Minecraft servers."}]},data(){return{menu:!1,localeMenu:!1}},computed:{commitHash(){return"5e99c72"},locale(){return this.$store.getters.userLocale},locales(){return this.$store.getters.supportedLanguages},version(){return this.$store.getters.version},config(){return this.$store.getters.config},showSearchBar(){const e=["editor","editor-home"];return!e.includes(this.$route.name)},isToolsRoute(){return["editor","editor-home","verbose","verbose-home","tree","tree-home"].includes(this.$route.name)},isSponsorRoute(){return"sponsor"===this.$route.name}},created(){this.$store.dispatch("getAppData")},mounted(){(0,$.A)({container:"#docsearch",appId:"ZXKCPO8F1T",indexName:"luckperms",apiKey:"a37e3bc32993f2eb764d0c84dbd526e9"})},methods:{setLocale(e){this.$store.dispatch("setUserLocale",e)}},watch:{$route(){this.menu=!1}}},I=D,U=(0,g.A)(I,T,A,!1,null,null,null),V=U.exports;o(8198),s["default"].use(d()),s["default"].use(l.A),s["default"].use(r.A),s["default"].use(N),s["default"].use(S["default"]),s["default"].directive("autofocus",i()),s["default"].config.productionTip=!1,s["default"].config.performance=!0,new s["default"]({router:x,store:c.A,i18n:S["default"],render:e=>e(V)}).$mount("#app")},649:function(e,t,o){o.d(t,{A:function(){return _}});o(4114),o(7642),o(8004),o(3853),o(5876),o(2475),o(5024),o(1698),o(4603),o(7566),o(8721);var s=o(5471),r=o(5353),n=o(2505),i=o.n(n),a=o(406),d=o(2416),l=o.n(d);const c=Promise.resolve().then(o.bind(o,8747));function u({name:e=""},{name:t=""}){return e.localeCompare(t)}var p={state:()=>({userLocale:"",supportedLanguages:[],loadedLanguages:[]}),getters:{userLocale:e=>{const{userLocale:t}=e;return e.supportedLanguages.find((({code:e})=>e===t))},supportedLanguages:e=>e.supportedLanguages.sort(u)},mutations:{setUserLocale(e,t){e.userLocale=t},setSupportedLanguages(e,t){e.supportedLanguages=t||[]},addLoadedLanguage(e,t){e.loadedLanguages.push(t)}},actions:{async setUserLocale({state:e,commit:t,dispatch:o},s){var r;if(s)return o("fetchLanguage",s),void t("setUserLocale",s);if(e.userLocale)return void o("fetchLanguage",e.userLocale);const n=[navigator.language,...navigator.languages||[]],i=(null===(r=e.supportedLanguages)||void 0===r?void 0:r.map((({code:e})=>e)))||[];let a="en";const d=n.find((e=>{if(i.includes(e))return!0;const{"iso639-1":t}=l().getByTag(e);return i.includes(t)}));d&&(a=i.includes(d)?d:l().getByTag(d)["iso639-1"]),o("fetchLanguage",a),t("setUserLocale",a)},async fetchLanguages({commit:e,dispatch:t}){const{data:{languages:o}}=await i().get("https://metadata.luckperms.net/data/translations");o.en={code:"en",name:"English",localeTag:"en_GB",progressWeb:100};const s=e=>{const t=o[e];return!(null===t||void 0===t||!t.progressWeb)&&t.progressWeb},r=e=>{const{name:t,localeTag:s}=o[e];let[,r]=s.split("_");return r=r.toLowerCase(),"cs"===r&&(r="rs"),{code:e,name:t,countryCode:r}},n=Object.keys(o),a=n.filter(s).map(r);e("setSupportedLanguages",a),t("setUserLocale")},async fetchLanguage(e,t){const o=(await c).default;if("en"===t)return void(o.locale=t);const{data:s}=await i().get(`https://metadata.luckperms.net/translation/web/${t}`);o.locale=t,o.setLocaleMessage(t,s)}}},m=o(1668),f=o.n(m);function h(e,t){return t["Content-Encoding"]="gzip",f().gzip(e)}var g=Object.assign({transformRequest:i().defaults.transformRequest.concat(h)}),v=(o(6573),o(8100),o(7936),o(7467),o(4732),o(9577),o(6257)),y=o(4590);function w(){return new Worker(o.p+"js/worker.50c79144.worker.js")}async function k(e,t,o,s,r){const n=new b(e),i=await n.loadKeys()||await n.generateKeys(),a=await n.importKey("spki",s,["verify"]),{userAgent:d}=window.navigator,{href:l}=window.location,c=(0,y.LV)(new w);return await c.socketConnect(t,o,n.signVerifyAlgorithm,i,a,d,l,(0,y.BX)({connect:(0,y.BX)((()=>{r.connect({socket:c})})),trust:(0,y.BX)((e=>{r.trust({nonce:e})})),trusted:(0,y.BX)((()=>{r.trusted()})),reused:(0,y.BX)((()=>{r.reused()})),close:(0,y.BX)((()=>{r.close()}))})),c}class b{constructor(e){if(1===e)this.publicKeyVariable="editor-public-key",this.privateKeyVariable="editor-private-key",this.importAlgorithm={name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},this.generateAlgorithm={name:"RSASSA-PKCS1-v1_5",hash:"SHA-256",modulusLength:4096,publicExponent:new Uint8Array([1,0,1])},this.signVerifyAlgorithm={name:"RSASSA-PKCS1-v1_5"};else{if(2!==e)throw new Error(`Unsupported protocol version: ${e}`);this.publicKeyVariable="editor-public-key-v2",this.privateKeyVariable="editor-private-key-v2",this.importAlgorithm={name:"ECDSA",namedCurve:"P-256"},this.generateAlgorithm={name:"ECDSA",namedCurve:"P-256"},this.signVerifyAlgorithm={name:"ECDSA",hash:"SHA-256"}}}async loadKeys(){const e=localStorage.getItem(this.publicKeyVariable),t=localStorage.getItem(this.privateKeyVariable);if(e&&t){const o=await this.importKey("spki",e,[]),s=await this.importKey("pkcs8",t,["sign"]);return{publicKey:o,privateKey:s,encodedPublicKey:e,encodedPrivateKey:t}}return null}importKey(e,t,o){return crypto.subtle.importKey(e,(0,v.D)(t),this.importAlgorithm,!1,o)}async exportKey(e,t,o){const s=await crypto.subtle.exportKey(e,t),r=(0,v.l)(s);return localStorage.setItem(o,r),r}async generateKeys(){const{publicKey:e,privateKey:t}=await crypto.subtle.generateKey(this.generateAlgorithm,!0,["sign"]),o=await this.exportKey("spki",e,this.publicKeyVariable),s=await this.exportKey("pkcs8",t,this.privateKeyVariable);return{publicKey:e,privateKey:t,encodedPublicKey:o,encodedPrivateKey:s}}}var x=o(2419);const S=o(2550),L=o(8272);s["default"].use(r.Ay);const C=(0,a.A)({paths:["language"]});var _=new r.Ay.Store({modules:{language:p},plugins:[C],state:{version:null,versionTimestamp:null,changeLog:[],config:null,downloads:{bukkit:null,"bukkit-legacy":null,bungee:null,nukkit:null,sponge:null,velocity:null,fabric:null,forge:null,neoforge:null},extensions:{"extension-legacy-api":null,"extension-default-assignments":null},additionalPlugins:{extracontexts:null},placeholderExpansions:{"luckperms-mvdw-hook":null,"luckperms-papi-expansion":null},discordUserCount:null,editor:{sessionId:null,socket:null,errors:{load:!1,unsupported:!1}},verbose:{status:0,sessionId:null,metadata:null,data:null,errors:{load:!1,unsupported:!1}},tree:{sessionId:null,metadata:null,data:null,errors:{load:!1,unsupported:!1}}},getters:{version:e=>e.version,versionTimestamp:e=>e.versionTimestamp,changeLog:e=>e.changeLog,config:e=>e.config,downloads:e=>e.downloads,extensions:e=>e.extensions,additionalPlugins:e=>e.additionalPlugins,placeholderExpansions:e=>e.placeholderExpansions,discordUserCount:e=>e.discordUserCount,editorSessionId:e=>e.editor.sessionId,verbose:e=>e.verbose,tree:e=>e.tree,editorSocket:e=>e.editor.socket,editorSocketStatus:e=>e.editor.socketStatus,metaData:e=>e.editor.metaData,sessionList:e=>e.editor.sessionList,sessionSet:e=>{var t;return null===(t=e.editor.sessionList)||void 0===t?void 0:t.map((t=>e.editor.sessions[t]))},currentSession:e=>e.editor.sessions[e.editor.currentSession],currentSessionId:e=>e.editor.currentSession,currentNodes:e=>{var t;return null===(t=e.editor.nodes)||void 0===t?void 0:t.filter((t=>t.sessionId===e.editor.currentSession))},allNodes:e=>e.editor.nodes,tracks:e=>e.editor.tracks,selectedNodeIds:e=>e.editor.selectedNodes,selectedNodes:(e,t)=>t.selectedNodeIds.map((e=>t.allNodes.find((({id:t})=>e===t)))),potentialContexts:e=>e.editor.potentialContexts,modifiedSessions:(e,t)=>t.sessionSet.filter((e=>e.new||e.modified)).map((e=>e.id)),weightNodes:e=>{var t;return null===(t=e.editor.nodes)||void 0===t?void 0:t.filter((e=>e.key.startsWith("weight")))},saveStatus:e=>{var t;return null===(t=e.editor.save)||void 0===t?void 0:t.status},saveKey:e=>{var t;return null===(t=e.editor.save)||void 0===t?void 0:t.key}},mutations:{setVersion:(e,t)=>{e.version=t},setVersionTimestamp:(e,t)=>{e.versionTimestamp=t},setChangeLog:(e,t)=>{e.changeLog=t},setConfig:(e,t)=>{e.config=t},setDownloads:(e,t)=>{e.downloads=t},setExtensions:(e,t)=>{e.extensions=t},setAdditionalPlugins:(e,t)=>{e.additionalPlugins=t},setPlaceholderExpansions:(e,t)=>{e.placeholderExpansions=t},setDiscordUserCount:(e,t)=>{e.discordUserCount=t},initEditorData(e,t){var o,s;e.editor={sessionId:t,socket:null===e||void 0===e||null===(o=e.editor)||void 0===o?void 0:o.socket,socketStatus:null===e||void 0===e||null===(s=e.editor)||void 0===s?void 0:s.socketStatus,sessions:{},sessionList:[],nodes:[],metaData:{},tracks:[],deletedTracks:[],deletedGroups:[],deletedUsers:[],knownPermissions:[],potentialContexts:[],currentSession:null,selectedNodes:[],modal:{type:null,object:null},errors:{load:!1,unsupported:!1},save:{status:null,key:null}}},setEditorSocket(e,t){e.editor.socket=t},setEditorSocketStatus(e,t){e.editor.socketStatus=t},setMetaData(e,t){e.editor.metaData=t},setKnownPermissions(e,t){e.editor.knownPermissions=t},setTracks(e,t){e.editor.tracks=t},addTrack(e,t){e.editor.tracks.push(t)},updateTrack(e,{id:t,newTrack:o}){const s=e.editor.tracks.find((e=>e.id===t));s.groups=o.groups},deleteTrack(e,t){const o=e.editor.tracks.findIndex((e=>e.id===t));e.editor.tracks.splice(o,1),e.editor.deletedTracks.push(t)},updateTrackOrder(e,t){e.editor.tracks=t},deleteSession(e,t){const{type:o}=e.editor.sessions[t],s=e.editor.sessionList.findIndex((e=>e===t));e.editor.sessionList.splice(s,1),delete e.editor.sessions[t],"group"===o?(e.editor.deletedGroups.push(t),e.editor.tracks=e.editor.tracks.map((e=>e.groups.includes(t)?{...e,groups:e.groups.filter((e=>e!==t))}:e))):"user"===o&&e.editor.deletedUsers.push(t),e.editor.currentSession===t&&(e.editor.currentSession=null),e.editor.nodes=e.editor.nodes.filter((e=>e.sessionId!==t))},setPotentialContexts(e,t){const o=[];for(const[s,r]of Object.entries(t))o.push({key:s,values:Array.isArray(r)?r:[r]});e.editor.potentialContexts=o},addEditorSession(e,{id:t,type:o,displayName:r,isNew:n=!1}){s["default"].set(e.editor.sessions,t,{id:t,type:o,displayName:r,new:n,modified:!1}),e.editor.sessionList.push(t);const{deletedGroups:i}=e.editor;i.includes(t)&&i.splice(i.findIndex((e=>e===t)),1)},addEditorNode(e,t){const o=t;t.expiry instanceof Date&&(o.expiry=t.expiry.getTime()),e.editor.nodes.push(o),t.isNew&&e.editor.sessions[t.sessionId]&&(e.editor.sessions[t.sessionId].modified=!0)},deleteNode(e,t){const o=e.editor.nodes.find((e=>e.id===t));e.editor.selectedNodes.includes(t)&&e.editor.selectedNodes.splice(e.editor.selectedNodes.indexOf(t),1),e.editor.nodes=e.editor.nodes.filter((e=>e.id!==t)),e.editor.sessions[o.sessionId].modified=!0},setCurrentSession(e,t){e.editor.currentSession=t},setModal(e,{type:t,object:o}){e.editor.modal.type=t||null,e.editor.modal.object=o||null},closeModal(e){e.editor.modal.type=null,e.editor.modal.object=null},toggleNodeValue(e,t){const o=e.editor.nodes.find((e=>e.id===t.id));o.value=!t.value,o.modified=!0,e.editor.sessions[t.sessionId].modified=!0},updateNode(e,{node:t,type:o,data:s}){"expiry"===o?t[o]=s.value?s.value.getTime():null:("sessionId"===o&&(e.editor.sessions[t.sessionId].modified=!0),t[o]=s.value),t.modified=!0,e.editor.sessions[t.sessionId].modified=!0},bulkUpdateNode(e,{node:t,payload:o}){const{value:r,expiry:n,replace:i,contexts:a}=o;if(null!==r&&(t.value=r),n&&(t.expiry=n),i)t.context=a;else{const e={...t.context,...a};Object.keys(e).forEach((o=>{e[o]=[...new Set([...(0,x.Fw)(t.context[o]),...(0,x.Fw)(a[o])])]})),s["default"].set(t,"context",e)}t.modified=!0,e.editor.sessions[t.sessionId].modified=!0},updateNodeContext(e,{node:t,data:o}){t.context=o,t.modified=!0,e.editor.sessions[t.sessionId].modified=!0},addNodeToSession(e,t){e.editor.nodes.push(t)},toggleNodeSelect(e,t){e.editor.selectedNodes.includes(t.id)?e.editor.selectedNodes.splice(e.editor.selectedNodes.indexOf(t.id),1):e.editor.selectedNodes.push(t.id)},selectAllSessionNodes(e,t){t.forEach((t=>{-1===e.editor.selectedNodes.indexOf(t.id)&&e.editor.selectedNodes.push(t.id)}))},deselectAllSessionNodes(e,t){t.forEach((t=>{e.editor.selectedNodes.indexOf(t.id)>=0&&e.editor.selectedNodes.splice(e.editor.selectedNodes.indexOf(t.id),1)}))},deselectAllSelectedNodes(e){e.editor.selectedNodes.splice(0,e.editor.selectedNodes.length)},addKnownPermission(e,t){e.editor.knownPermissions.push(t)},setLoadError(e,t=!0){e.editor.errors.load=t},setUnsupportedError(e,t=!0){e.editor.errors.unsupported=t},setSaveStatus(e,t){e.editor.save.status=t},setBytebinKey(e,t){e.editor.save.key=t},setVerboseData(e,{data:t,status:o}){if(e.verbose.status=o,t){if(!t.data)throw new Error("Invalid verbose data");e.verbose.data=t.data.map((e=>({...e,id:S()}))),e.verbose.metadata=t.metadata,e.verbose.sessionId=t.sessionId}},setVerboseLoadError(e,t=!0){e.verbose.errors.load=t},setVerboseUnsupportedError(e,t=!0){e.verbose.errors.unsupported=t},setTreeData(e,t){e.tree.data=t.data,e.tree.metadata=t.metadata,e.tree.sessionId=t.sessionId},setTreeLoadError(e,t=!0){e.tree.errors.load=t},setTreeUnsupportedError(e,t=!0){e.tree.errors.unsupported=t}},actions:{getAppData:async({commit:e,dispatch:t})=>{e("setConfig",L);try{const t=await i().get(`${L.apiUrl}data/all`);e("setVersion",t.data.version),e("setVersionTimestamp",t.data.versionTimestamp),e("setChangeLog",t.data.changeLog),e("setDownloads",t.data.downloads),e("setExtensions",t.data.extensions),e("setAdditionalPlugins",t.data.additionalPlugins),e("setPlaceholderExpansions",t.data.placeholderExpansions),e("setDiscordUserCount",t.data.discordUserCount)}catch(o){console.error("Error getting data, trying again in 10 seconds..."),setTimeout((async()=>{await t("getAppData")}),1e4)}},async getEditorData({commit:e,getters:t,dispatch:s},r){if(e("setLoadError",!1),e("setUnsupportedError",!1),!r)throw e("setLoadError"),new Error("Invalid session ID");const n=t.currentSessionId;n||e("initEditorData",r);const[a]=r;if(["?","#"].includes(a))throw e("setUnsupportedError"),new Error("Unsupported version");try{var d;if("demo"===r){const{default:e}=await o.e(233).then(o.t.bind(o,5233,19));return void await s("setEditorData",e)}const a=new URL(L.bytebinUrl,window.location.href),{data:l}=await i().get(`${a}${r}`);null!==(d=l.socket)&&void 0!==d&&d.channelId&&k(l.socket.protocolVersion,l.socket.channelId,r,l.socket.publicKey,{connect:({socket:t})=>{e("setEditorSocket",t),e("setEditorSocketStatus",!0)},trust:({nonce:t})=>{e("setModal",{type:"trustPrompt",object:{nonce:t}})},trusted:()=>{e("closeModal")},reused:()=>{e("setModal",{type:"reusedSessionWarning"})},close:()=>{e("setEditorSocketStatus",!1)}}).catch((e=>console.log(e))),n&&e("initEditorData",r),await s("setEditorData",l,r),n&&t.sessionList.includes(n)&&e("setCurrentSession",n)}catch(l){throw e("setLoadError"),console.log(l),new Error(`Error loading data from bytebin - session ID: ${r}`)}},setEditorData({commit:e,dispatch:t},o){e("setMetaData",o.metadata),o.permissionHolders.forEach((o=>{o.nodes.forEach((e=>{const s=e.expiry?1e3*e.expiry:null;t("addNodes",[{sessionId:o.id,key:e.key,value:e.value,expiry:s,context:e.context}])})),e("addEditorSession",o)})),e("setKnownPermissions",o.knownPermissions),e("setPotentialContexts",o.potentialContexts),e("setTracks",o.tracks)},addKnownPermission({commit:e},t){e("addKnownPermission",t)},addNodes({commit:e},t){t.forEach((t=>{const o=t;o.id=S(),o.expiry=t.expiry,o.context=t.context||{},o.selected=!1,e("addEditorNode",o)}))},changeCurrentSession({commit:e},t){e("setCurrentSession",t)},addGroup({commit:e,dispatch:t},o){const s={id:o.name,displayName:o.displayName||o.name,type:"group",isNew:!0};""!==o.displayName&&t("addNodes",[{sessionId:s.id,type:"display_name",key:`displayname.${o.displayName}`,value:!0,isNew:!0}]),0!==o.parent&&t("addNodes",[{sessionId:s.id,type:"inheritance",key:`group.${o.parent}`,value:!0,isNew:!0}]),0!==o.weight&&t("addNodes",[{sessionId:s.id,type:"weight",key:`weight.${o.weight}`,value:!0,isNew:!0}]),""!==o.prefix&&t("addNodes",[{sessionId:s.id,type:"prefix",key:`prefix.${o.weight}.${o.prefix}`,value:!0,isNew:!0}]),""!==o.suffix&&t("addNodes",[{sessionId:s.id,type:"suffix",key:`suffix.${o.weight}.${o.suffix}`,value:!0,isNew:!0}]),e("addEditorSession",s),e("setCurrentSession",s.id),e("setModal",{type:null,object:null})},addTrack({commit:e},t){e("addTrack",t),e("setModal",{type:null,object:null})},updateTrack({commit:e},{id:t,newTrack:o}){t===o.id?e("updateTrack",{id:t,newTrack:o}):(e("deleteTrack",t),e("addTrack",o)),e("setModal",{type:null,object:null})},deleteTrack({commit:e},t){e("deleteTrack",t)},copyNodes({getters:e,dispatch:t,commit:o},s){const{selectedNodes:r}=e;r.forEach((e=>{const o=[];s.forEach((t=>{o.push({...e,sessionId:t,isNew:!0})})),t("addNodes",o)})),o("closeModal"),o("deselectAllSelectedNodes")},moveNodes({state:e,getters:t,commit:o},s){const{selectedNodes:r}=t;r.forEach((e=>{o("updateNode",{type:"sessionId",data:{value:s},node:e})})),o("deselectAllSelectedNodes"),o("closeModal")},deleteNodes({getters:e,commit:t}){const o=e.selectedNodeIds.map((e=>e));o.forEach((e=>{t("deleteNode",e)})),t("closeModal")},updateNodes({getters:e,commit:t},o){const{selectedNodes:s}=e;s.forEach((e=>{t("bulkUpdateNode",{node:e,payload:o})}))},saveData({state:e,getters:t,dispatch:o,commit:s}){s("setSaveStatus","saving");const r={sessionId:e.editor.sessionId,changes:[],groupDeletions:e.editor.deletedGroups,trackDeletions:e.editor.deletedTracks,userDeletions:e.editor.deletedUsers};t.modifiedSessions.forEach((t=>{const o=e.editor.sessions[t],s=e.editor.nodes.filter((e=>e.sessionId===o.id)),n=[];s.forEach((e=>n.push({key:e.key,value:e.value,...e.expiry&&{expiry:Math.floor(e.expiry/1e3)},...Object.entries(e.context).length&&{context:e.context}}))),r.changes.push({type:o.type,id:o.id,nodes:n})})),t.tracks.forEach((e=>{r.changes.push({type:"track",id:e.id,groups:e.groups})}));const n=new URL(L.bytebinUrl,window.location.href);i().post(`${n}post`,r,g).then((r=>{const{key:n}=r.data,{socket:i}=e.editor;i?i.sendChangesViaSocket(n).then((e=>{s("setSaveStatus","saved"),o("getEditorData",e)})).catch((e=>{console.log(e),s("setBytebinKey",n),s("setSaveStatus","saved"),s("setModal",{type:"savedChanges",object:{saveKey:t.saveKey}})})):(s("setBytebinKey",n),s("setSaveStatus","saved"),s("setModal",{type:"savedChanges",object:{saveKey:t.saveKey}}))})).catch(console.error)},async getVerboseData({commit:e},t){if(e("setVerboseLoadError",!1),e("setVerboseUnsupportedError",!1),!t)throw e("setVerboseLoadError"),new Error("Invalid session ID");const[s]=t;if(["?","#"].includes(s))throw e("setVerboseUnsupportedError"),e("setVerboseData",{data:null,status:3}),new Error("Unsupported version");try{if(e("setVerboseData",{data:null,status:0}),"demo"===t){e("setVerboseData",{data:null,status:1});const{default:t}=await o.e(940).then(o.t.bind(o,940,19));e("setVerboseData",{data:t,status:2})}else{e("setVerboseData",{data:null,status:1});const o=new URL(L.bytebinUrl,window.location.href),s=await i().get(`${o}${t}`),r={...s.data,sessionId:t};e("setVerboseData",{data:r,status:2})}}catch(r){throw console.error(`${r.message} - session ID: ${t}`),e("setVerboseLoadError"),e("setVerboseData",{data:null,status:3}),new Error("Loading error")}},async getTreeData({commit:e},t){if(e("setTreeLoadError",!1),e("setTreeUnsupportedError",!1),!t)throw e("setTreeLoadError"),new Error("Invalid session ID");const[s]=t;if(["?","#"].includes(s))throw e("setTreeUnsupportedError"),new Error("Unsupported version");try{if("demo"===t){const{default:t}=await o.e(414).then(o.t.bind(o,414,19));return void e("setTreeData",t)}const s=new URL(L.bytebinUrl,window.location.href),r=await i().get(`${s}${t}`),n={...r.data,sessionId:t};e("setTreeData",n)}catch(r){throw console.error(`${r.message} - session ID: ${t}`),e("setTreeLoadError"),new Error("Loading error")}}}})},2419:function(e,t,o){function s(e){return Array.isArray(e)?e||[]:e?[e]:[]}function r(e){if(e.startsWith("group."))return{type:"inheritance",groupName:e.substring(6)};if(e.startsWith("prefix.")){const t=e.substring(7).match(/^(\d+)\.(.+)$/);if(t)return{type:"prefix",weight:t[1],prefix:a(t[2])}}if(e.startsWith("suffix.")){const t=e.substring(7).match(/^(\d+)\.(.+)$/);if(t)return{type:"suffix",weight:t[1],suffix:a(t[2])}}if(e.startsWith("meta.")){const t=e.substring(5),o=d(t);if(o&&2===o.length)return{type:"meta",key:a(o[0]),value:a(o[1])}}return e.startsWith("weight.")?{type:"weight",weight:e.substring(7)}:e.startsWith("displayname.")?{type:"displayname",displayName:e.substring(12)}:{type:"permission",permission:e}}function n(e,t){switch(e){case"inheritance":return`group.${t.groupName||""}`;case"prefix":return`prefix.${t.weight||"0"}.${i(t.prefix||"")}`;case"suffix":return`suffix.${t.weight||"0"}.${i(t.suffix||"")}`;case"meta":return`meta.${i(t.key||"")}.${i(t.value||"")}`;case"weight":return`weight.${t.weight||"0"}`;case"displayname":return`displayname.${t.displayName||""}`;case"permission":default:return t.permission||""}}function i(e){return e.replace(/\./g,"\\.")}function a(e){return e.replace(/\\\./g,".")}function d(e){return e.split(/(?<!\\)\./,2)}o.d(t,{Fw:function(){return s},I1:function(){return r},k2:function(){return n}})},8747:function(e,t,o){o.r(t),o.d(t,{default:function(){return d}});var s=o(5471),r=o(4765),n=o(649),i=JSON.parse('{"description":"A permissions plugin for Minecraft servers.","close":"Close","copy":"Copy","wiki":"Wiki","wikiLocaleWarning":"Note: the wiki is only available in English.","localeUpdate":"New! Use the LuckPerms website in your preferred language. See our Discord for more info.","avatar":"{name}\'s avatar","sponsor":"Proudly sponsored by <strong>BisectHosting</strong>.<br/>Create your own Minecraft server today!","links":{"home":"Home","download":"Download","editor":"Web Editor","verbose":"Verbose Viewer","tree":"Tree Viewer","wiki":"Wiki","tools":{"name":"Tools","editor":"Editor","verbose":"Verbose","tree":"Tree"},"language":"Language"},"home":{"name":"Home","supported":"Supports Bukkit/Spigot/Paper, BungeeCord, Sponge, Fabric, Forge, NeoForge, Nukkit and Velocity servers","why":{"title":"Why LuckPerms?","description":"LuckPerms is a permissions plugin for Minecraft servers. It allows server admins to control what features players can use by creating groups and assigning permissions.","its":"It is:","fast":"<b>fast</b> - written with performance and scalability in mind.","reliable":"<b>reliable</b> - trusted by thousands of server admins, and the largest of server networks.","easy":"<b>easy to use</b> - setup permissions using commands, directly in config files, or using the web editor.","flexible":"<b>flexible</b> - supports a variety of data storage options, and works on lots of different server types.","extensive":"<b>extensive</b> - a plethora of customization options and settings which can be changed to suit your server.","free":"<b>free</b> - available for download and usage at no cost, and permissively licensed so it can remain free forever.","more":"For more information, see the wiki article on {wiki}","why":"Why LuckPerms?"},"apps":{"title":"Web Apps","description1":"This site hosts a number of extra web applications which work with the plugin.","description2":"These applications are designed to work for all users, even those without the ability to install/host an application on their own web server."},"wiki":"Learn how to install, setup, configure and effectively use LuckPerms","github":"Browse the source code, report issues and contribute to the project","discord":"Join {count} others to discuss the project and ask/answer questions","partner":{"title":"Create your own Minecraft Server","description":"Easily create your very own Minecraft Server with our hosting partner, Bisect Hosting!"}},"download":{"title":"Download LuckPerms","build":"Latest, built {time}","typeHelp":"Not sure which type?","typeChoose":"Choose your server type","bukkit":"Paper, Spigot etc. ({version})","bungee":"BungeeCord, Waterfall etc. (latest only)","sponge":"Sponge ({version})","fabric":"Fabric ({version})","forge":"Forge ({version})","neoforge":"NeoForge ({version})","nukkit":"NukkitX","velocity":"Velocity ({version})","hytale":"Hytale ({version})","bukkitLegacy":"Paper, Spigot etc. (1.7.10 only)","changelog":"Recent Changelog","install":{"title":"How to install","add":"Add the downloaded plugin <code>.jar</code> file into your server\'s <code>plugins</code> or <code>mods</code> folder.","restart":"Start or restart your server - <strong>do not reload!</strong>","config":"Locate the plugin\'s configuration file (usually found within <code>/plugins/LuckPerms/</code>) and adjust any settings to your liking.","setup":"Start setting up your permissions! Check out the {wiki} guide for more info.","wiki":"Getting Started"},"trouble":{"title":"Having trouble installing?","console":"Make sure to check your console for any error messages - especially during start up","read":"Check the more detailed {wiki} wiki page to see if you need to perform any additional steps.","wiki":"Installation","support":"If all else fails, get in touch with us on {discord} and we\'ll be happy to help."},"extensions":{"title":"Extensions","description":"Extensions can modify the behaviour of LuckPerms, you can read more about them on {wiki}.","descriptionWiki":"the wiki","legacy":"Legacy API Extension","legacyInfo":"Allows some common API methods to be used by plugins that haven\'t upgraded to v5 version of the API yet.","more":"Check out the {wiki} for more information!","wiki":"wiki section","defaultAssignments":"Default Assignments Extension","defaultAssignmentsInfo":"Provides an alternate approach for assigning {wiki} if the recommended way is impractical.","groups":"default groups","version":"LuckPerms 5.0 and above"}},"editor":{"description":"Web Permissions Editor","start":"To start a new editor session, use one of the following commands:","loading":"Loading data...","permissions":"Node","key":"Key","value":"Value","expiry":"Expiry","contexts":"Contexts","search":"Search","add":"Add","copy":"Copy","move":"Move","replace":"Replace","delete":"Delete","cancel":"Cancel","update":"Update","save":"Save","apply":"Apply","saveAndGenerate":"Save and generate code","saving":"Saving...","saved":"Data was saved!","command":"Run this command on your server to apply the changes:","copied":"Command copied to clipboard","clipboardCopy":"Copy to clipboard","clearFilters":"Clear filter","noResults":"No results found","applyNote":"<strong>Note:</strong> after running the <code>applyedits</code> command, you should generate another editor URL to continue editing your server\'s permissions.","nav":{"tracks":"Tracks","groups":"Groups","users":"Users"},"reusedsession":{"title":"Reused Session","desc":"This session has been used (opened & saved) already!","desc2":"Therefore, it may contain outdated data that no longer reflects the plugin storage. The recommended course of action is to create a new editor session and start afresh."},"trust":{"title":"Editor Connection","prompt":"In order to trust this web browser and allow it to apply changes directly to your server, please run the following command in-game:","note":"<strong>Note:</strong> You only have to do this once! The server will remember this browser for future sessions."},"groups":{"create":"Create a group","name":"Group name","choose":"Choose a group or user from the side bar","toggle":"Show/hide groups","delete":"Are you sure you want to delete group: <code>{group}</code>","deleteConfirm":"All {count} of its permissions will be deleted. This currently can not be undone.","displayName":"Display name","parent":"Parent","weight":"Weight","prefix":"Prefix","suffix":"Suffix","add":"Add group","edit":"Edit group","none":"None"},"users":{"delete":"Are you sure you want to delete user: {user}","deleteConfirm":"All {count} of its permissions will be deleted. This currently can not be undone.","edit":"Edit user","toggleUsers":"Show/hide users"},"nodes":{"add":"Add nodes","update":"Update nodes","permissionsCount":"Nodes <span>({count})</span>","nodeType":"Node Type","types":{"permission":"Permission","inheritance":"Inheritance","prefix":"Prefix","suffix":"Suffix","meta":"Meta","weight":"Weight","displayname":"Display Name"},"labels":{"permissions":"Permissions","groupName":"Group Name","weight":"Weight","prefixText":"Prefix Text","suffixText":"Suffix Text","key":"Key","value":"Value","weightValue":"Weight Value","displayName":"Display Name"},"weightLabel":"weight","permissionPlaceholder":"Enter permissions or paste many","groupNamePlaceholder":"Group name","weightPlaceholder":"Weight (priority)","prefixPlaceholder":"Prefix text","suffixPlaceholder":"Suffix text","metaKeyPlaceholder":"Meta key","metaValuePlaceholder":"Meta value","weightValuePlaceholder":"Weight value","displayNamePlaceholder":"Display name","displayNameWarning":"Display Name nodes are frequently misused and should ideally only be used to add aliases (eg default -> member) or change capitalization (eg admin -> Admin).","addContext":"Add context","addContexts":"Add contexts","deselect":"Deselect all nodes","select":"Select node for mass operations","selectAll":"Select node for mass operations","replace":"Replace contexts instead of adding?","edit":"Click to edit the permission","toggle":"Click to toggle true/false","expiry":"Click to choose an expiry","never":"never","deleteExpiry":"Delete expiry","contexts":"Click to edit the contexts for this node","enterToSelect":"Press enter to select","contextsCount":"Contexts <span>({count})</span>","selected":"<span>{count}</span> selected node | <span>{count}</span> selected nodes","copy":"Copy {count} node to... | Copy {count} nodes to...","move":"Move {count} node to... | Move {count} nodes to...","delete":"Delete {count} node? | Delete {count} nodes?","deleteConfirm":"Are you sure you want to delete {count} permission node? | Are you sure you want to delete {count} permission nodes?","selection":{"true":"Change all values to TRUE","false":"Change all values to FALSE","keep":"Keep values unchanged"},"sort":{"permission":"Sort nodes by permission","value":"Sort nodes by true/false","expiry":"Sort nodes by expiry","contexts":"Sort nodes by contexts"}},"tracks":{"create":"Create a track","groups":"Groups","tip":"Tip: click and drag to re-order the track","addGroups":"Add groups","edit":"Edit track","name":"Track name","add":"Add track","save":"Save track","delete":"Delete track","filter":"Filter tracks, groups and users","toggle":"Show/hide tracks","toggleGroups":"Show/hide track groups"},"meta":{"add":"Add a group to {id}","parents":"Parent groups","weight":"Weight: ","gotoParent":"Go to the {parent} group","removeParent":"Remove {parent} as a parent"},"error":{"title":"Loading error","info":"Either the URL was copied wrong or the session has expired.","new":"Please generate another editor session with {command}."},"unsupported":{"title":"Unsupported version","info":"Please {download} the latest version of LuckPerms to use the Web Editor","download":"download"}},"tree":{"title":"Permission Tree Viewer","generate":"To generate a permission tree, do the following in game or from the console:","uploaded":"Uploaded by","user":"Reference user","time":"Time","started":"When the recording started","expand":"Expand","collapse":"Collapse","home":{"generate":"To generate a permission tree, do the following in game or from the console:","scope":"scope","player":"player","url":"Follow the URL that is generated"}},"verbose":{"title":"Verbose viewer","uploaded":"Uploaded by","start":"Start time","started":"When the recording started","end":"End time","ended":"When the recording ended","duration":"Duration","recording":"How long the plugin was recording for","count":"Count","values":"How many values matched and how many checks were made in total","filter":"Filter","filterLabel":"Filter nodes by username or permission:","filterDesc":"The string used to filter the output","truncated":"Truncated","truncatedDesc":"If the data was truncated (limited in size) when uploaded","filterPlaceholder":"Enter filter here","context":"Context","origin":"Origin","processor":"Processor","cause":"Cause Node","thread":"Thread","trace":"Trace","exclude":"Exclude","home":{"generate":"To generate a verbose report, do the following in game or from the console:","performActions":"Perform a series of actions that require permissions","filter":"filter","url":"Follow the URL that is generated"}},"tools":{"demo":"View Demo"},"quiz":{"choose":"Do you run a single server, or a network?","single":"Single server","network":"Network of servers","type":"What type of server are you running?","note":"Note: LuckPerms is still required on all backend servers.","version":"What version of {serverType} are you running?","older":"{version} or older","newer":"{version} or newer","result":"You need LuckPerms for {serverType}","resultLegacy":"You need LuckPerms Legacy for {serverType}","travertine":"Your version of BungeeCord is not supported, consider switching to Travertine if you want to use LuckPerms.","outdated":"Your version of {serverType} is not supported, you must upgrade if you want to use LuckPerms."},"notFound":{"title":"Not found!","message":"The page {path} doesn\'t exist"}}');s["default"].use(r.A),n.A.dispatch("fetchLanguages");const a=new r.A({messages:{en:i},locale:"en",fallbackLocale:"en"});var d=a},3992:function(e,t,o){e.exports=o.p+"img/bisect.93442122.svg"},3935:function(e,t,o){e.exports=o.p+"img/logo.a4ca2166.svg"},8272:function(e){e.exports=JSON.parse('{"base":"/luckperms-editor/","selfHosted":true,"bytebinUrl":"https://usercontent.luckperms.net/","bytesocksUrl":"wss://usersockets.luckperms.net/","apiUrl":"https://metadata.luckperms.net/"}')}},t={};function o(s){var r=t[s];if(void 0!==r)return r.exports;var n=t[s]={id:s,loaded:!1,exports:{}};return e[s].call(n.exports,n,n.exports,o),n.loaded=!0,n.exports}o.m=e,function(){var e=[];o.O=function(t,s,r,n){if(!s){var i=1/0;for(c=0;c<e.length;c++){s=e[c][0],r=e[c][1],n=e[c][2];for(var a=!0,d=0;d<s.length;d++)(!1&n||i>=n)&&Object.keys(o.O).every((function(e){return o.O[e](s[d])}))?s.splice(d--,1):(a=!1,n<i&&(i=n));if(a){e.splice(c--,1);var l=r();void 0!==l&&(t=l)}}return t}n=n||0;for(var c=e.length;c>0&&e[c-1][2]>n;c--)e[c]=e[c-1];e[c]=[s,r,n]}}(),function(){o.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return o.d(t,{a:t}),t}}(),function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};o.t=function(s,r){if(1&r&&(s=this(s)),8&r)return s;if("object"===typeof s&&s){if(4&r&&s.__esModule)return s;if(16&r&&"function"===typeof s.then)return s}var n=Object.create(null);o.r(n);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&s;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((function(e){i[e]=function(){return s[e]}}));return i["default"]=function(){return s},o.d(n,i),n}}(),function(){o.d=function(e,t){for(var s in t)o.o(t,s)&&!o.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}}(),function(){o.f={},o.e=function(e){return Promise.all(Object.keys(o.f).reduce((function(t,s){return o.f[s](e,t),t}),[]))}}(),function(){o.u=function(e){return"js/"+({8:"editor",419:"wiki",467:"download",603:"sponsor",623:"tree",671:"verbose"}[e]||e)+"."+{8:"e617f96d",233:"8912ac39",414:"855759e9",419:"48345197",467:"b91d41c6",603:"129dd9d1",623:"89b15ee3",671:"92996850",678:"a9134929",740:"78e44f80",940:"e77eb47a"}[e]+".js"}}(),function(){o.miniCssF=function(e){return"css/"+({8:"editor",419:"wiki",467:"download",603:"sponsor",623:"tree",671:"verbose"}[e]||e)+"."+{8:"715764f0",419:"e6cbcd80",467:"b76bfe71",603:"bff124d8",623:"4e880d68",671:"1fc0af3a",678:"18111fa0"}[e]+".css"}}(),function(){o.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){var e={},t="luckperms-web:";o.l=function(s,r,n,i){if(e[s])e[s].push(r);else{var a,d;if(void 0!==n)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var u=l[c];if(u.getAttribute("src")==s||u.getAttribute("data-webpack")==t+n){a=u;break}}a||(d=!0,a=document.createElement("script"),a.charset="utf-8",a.timeout=120,o.nc&&a.setAttribute("nonce",o.nc),a.setAttribute("data-webpack",t+n),a.src=s),e[s]=[r];var p=function(t,o){a.onerror=a.onload=null,clearTimeout(m);var r=e[s];if(delete e[s],a.parentNode&&a.parentNode.removeChild(a),r&&r.forEach((function(e){return e(o)})),t)return t(o)},m=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),d&&document.head.appendChild(a)}}}(),function(){o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){o.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),function(){o.p="/luckperms-editor/"}(),function(){if("undefined"!==typeof document){var e=function(e,t,s,r,n){var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",o.nc&&(i.nonce=o.nc);var a=function(o){if(i.onerror=i.onload=null,"load"===o.type)r();else{var s=o&&o.type,a=o&&o.target&&o.target.href||t,d=new Error("Loading CSS chunk "+e+" failed.\n("+s+": "+a+")");d.name="ChunkLoadError",d.code="CSS_CHUNK_LOAD_FAILED",d.type=s,d.request=a,i.parentNode&&i.parentNode.removeChild(i),n(d)}};return i.onerror=i.onload=a,i.href=t,s?s.parentNode.insertBefore(i,s.nextSibling):document.head.appendChild(i),i},t=function(e,t){for(var o=document.getElementsByTagName("link"),s=0;s<o.length;s++){var r=o[s],n=r.getAttribute("data-href")||r.getAttribute("href");if("stylesheet"===r.rel&&(n===e||n===t))return r}var i=document.getElementsByTagName("style");for(s=0;s<i.length;s++){r=i[s],n=r.getAttribute("data-href");if(n===e||n===t)return r}},s=function(s){return new Promise((function(r,n){var i=o.miniCssF(s),a=o.p+i;if(t(i,a))return r();e(s,a,null,r,n)}))},r={524:0};o.f.miniCss=function(e,t){var o={8:1,419:1,467:1,603:1,623:1,671:1,678:1};r[e]?t.push(r[e]):0!==r[e]&&o[e]&&t.push(r[e]=s(e).then((function(){r[e]=0}),(function(t){throw delete r[e],t})))}}}(),function(){var e={524:0};o.f.j=function(t,s){var r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)s.push(r[2]);else{var n=new Promise((function(o,s){r=e[t]=[o,s]}));s.push(r[2]=n);var i=o.p+o.u(t),a=new Error,d=function(s){if(o.o(e,t)&&(r=e[t],0!==r&&(e[t]=void 0),r)){var n=s&&("load"===s.type?"missing":s.type),i=s&&s.target&&s.target.src;a.message="Loading chunk "+t+" failed.\n("+n+": "+i+")",a.name="ChunkLoadError",a.type=n,a.request=i,r[1](a)}};o.l(i,d,"chunk-"+t,t)}},o.O.j=function(t){return 0===e[t]};var t=function(t,s){var r,n,i=s[0],a=s[1],d=s[2],l=0;if(i.some((function(t){return 0!==e[t]}))){for(r in a)o.o(a,r)&&(o.m[r]=a[r]);if(d)var c=d(o)}for(t&&t(s);l<i.length;l++)n=i[l],o.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return o.O(c)},s=self["webpackChunkluckperms_web"]=self["webpackChunkluckperms_web"]||[];s.forEach(t.bind(null,0)),s.push=t.bind(null,s.push.bind(s))}();var s=o.O(void 0,[504],(function(){return o(672)}));s=o.O(s)})();
|
|
//# sourceMappingURL=app.5e0b3663.js.map
|

Staff