diff --git a/build/bundle.js b/build/bundle.js index 31e6ce5..3f598c2 100644 --- a/build/bundle.js +++ b/build/bundle.js @@ -1,2 +1,2 @@ -var app=function(){"use strict";function e(){}function t(e,t){for(const n in t)e[n]=t[n];return e}function n(e){return e()}function r(){return Object.create(null)}function a(e){e.forEach(n)}function o(e){return"function"==typeof e}function s(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let l,i;function d(e,t){return l||(l=document.createElement("a")),l.href=t,e===l.href}function c(t,...n){if(null==t)return e;const r=t.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}function u(e,t,n){e.$$.on_destroy.push(c(t,n))}function g(e,t,n,r){if(e){const a=p(e,t,n,r);return e[0](a)}}function p(e,n,r,a){return e[1]&&a?t(r.ctx.slice(),e[1](a(n))):r.ctx}function m(e,t,n,r){if(e[2]&&r){const a=e[2](r(n));if(void 0===t.dirty)return a;if("object"==typeof a){const e=[],n=Math.max(t.dirty.length,a.length);for(let r=0;r32){const t=[],n=e.ctx.length/32;for(let e=0;ee.removeEventListener(t,n,r)}function P(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function F(e,t){t=""+t,e.data!==t&&(e.data=t)}function D(e,t){return new e(t)}function _(e){i=e}function M(){if(!i)throw new Error("Function called outside component initialization");return i}function R(e,t){return M().$$.context.set(e,t),t}function E(e){return M().$$.context.get(e)}const I=[],j=[];let H=[];const B=[],L=Promise.resolve();let G=!1;function C(e){H.push(e)}const O=new Set;let U=0;function z(){if(0!==U)return;const e=i;do{try{for(;U{W.delete(e),r&&(n&&e.d(1),r())})),e.o(t)}else r&&r()}function J(e){return"object"==typeof e&&null!==e?e:{}}function Q(e){e&&e.c()}function X(e,t,r,s){const{fragment:l,after_update:i}=e.$$;l&&l.m(t,r),s||C((()=>{const t=e.$$.on_mount.map(n).filter(o);e.$$.on_destroy?e.$$.on_destroy.push(...t):a(t),e.$$.on_mount=[]})),i.forEach(C)}function Z(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];H.forEach((r=>-1===e.indexOf(r)?t.push(r):n.push(r))),n.forEach((e=>e())),H=t}(n.after_update),a(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ee(e,t){-1===e.$$.dirty[0]&&(I.push(e),G||(G=!0,L.then(z)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const a=r.length?r[0]:n;return p.ctx&&l(p.ctx[e],p.ctx[e]=a)&&(!p.skip_bound&&p.bound[e]&&p.bound[e](a),m&&ee(t,e)),n})):[],p.update(),m=!0,a(p.before_update),p.fragment=!!s&&s(p.ctx),n.target){if(n.hydrate){const e=function(e){return Array.from(e.childNodes)}(n.target);p.fragment&&p.fragment.l(e),e.forEach(v)}else p.fragment&&p.fragment.c();n.intro&&Y(t.$$.fragment),X(t,n.target,n.anchor,n.customElement),z()}_(g)}class ne{$destroy(){Z(this,1),this.$destroy=e}$on(t,n){if(!o(n))return e;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const e=r.indexOf(n);-1!==e&&r.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const re=[];function ae(t,n=e){let r;const a=new Set;function o(e){if(s(t,e)&&(t=e,r)){const e=!re.length;for(const e of a)e[1](),re.push(e,t);if(e){for(let e=0;e{a.delete(i),0===a.size&&r&&(r(),r=null)}}}}function oe(t,n,r){const s=!Array.isArray(t),l=s?[t]:t,i=n.length<2;return d=t=>{let r=!1;const d=[];let u=0,g=e;const p=()=>{if(u)return;g();const r=n(s?d[0]:d,t);i?t(r):g=o(r)?r:e},m=l.map(((e,t)=>c(e,(e=>{d[t]=e,u&=~(1<{u|=1<{r=ie(e),t({location:r,action:"POP"})};return e.addEventListener("popstate",a),()=>{e.removeEventListener("popstate",a);const r=n.indexOf(t);n.splice(r,1)}},navigate(t,{state:a,replace:o=!1}={}){a={...a,key:Date.now()+""};try{o?e.history.replaceState(a,null,t):e.history.pushState(a,null,t)}catch(n){e.location[o?"replace":"assign"](t)}r=ie(e),n.forEach((e=>e({location:r,action:"PUSH"})))}}}(Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)?window:function(e="/"){let t=0;const n=[{pathname:e,search:""}],r=[];return{get location(){return n[t]},addEventListener(e,t){},removeEventListener(e,t){},history:{get entries(){return n},get index(){return t},get state(){return r[t]},pushState(e,a,o){const[s,l=""]=o.split("?");t++,n.push({pathname:s,search:l}),r.push(e)},replaceState(e,a,o){const[s,l=""]=o.split("?");n[t]={pathname:s,search:l},r[t]=e}}}}()),{navigate:ce}=de,ue=/^:(.+)/,ge=4,pe=3,me=2,fe=1,be=1;function he(e){return"*"===e[0]}function ye(e){return e.replace(/(^\/+|\/+$)/g,"").split("/")}function xe(e){return e.replace(/(^\/+|\/+$)/g,"")}function ve(e,t){return{route:e,score:e.default?0:ye(e.path).reduce(((e,t)=>(e+=ge,!function(e){return""===e}(t)?!function(e){return ue.test(e)}(t)?he(t)?e-=ge+fe:e+=pe:e+=me:e+=be,e)),0),index:t}}function we(e,t){let n,r;const[a]=t.split("?"),o=ye(a),s=""===o[0],l=function(e){return e.map(ve).sort(((e,t)=>e.scoret.score?-1:e.index-t.index))}(e);for(let e=0,a=l.length;en(6,a=e)));const m=ae(null);let f=!1;const b=c||ae(d?{pathname:d}:de.location);u(e,b,(e=>n(5,r=e)));const h=g?g.routerBase:ae({path:i,uri:i});u(e,h,(e=>n(7,o=e)));const y=oe([h,m],(([e,t])=>{if(null===t)return e;const{path:n}=e,{route:r,uri:a}=t;return{path:r.default?n:r.path.replace(/\*.*$/,""),uri:a}}));var x;return c||(x=()=>de.listen((e=>{b.set(e.location)})),M().$$.on_mount.push(x),R(se,b)),R(le,{activeRoute:m,base:h,routerBase:y,registerRoute:function(e){const{path:t}=o;let{path:n}=e;if(e._path=n,e.path=$e(t,n),"undefined"==typeof window){if(f)return;const t=function(e,t){return we([e],t)}(e,r.pathname);t&&(m.set(t),f=!0)}else p.update((t=>(t.push(e),t)))},unregisterRoute:function(e){p.update((t=>{const n=t.indexOf(e);return t.splice(n,1),t}))}}),e.$$set=e=>{"basepath"in e&&n(3,i=e.basepath),"url"in e&&n(4,d=e.url),"$$scope"in e&&n(8,l=e.$$scope)},e.$$.update=()=>{if(128&e.$$.dirty){const{path:e}=o;p.update((t=>(t.forEach((t=>t.path=$e(e,t._path))),t)))}if(96&e.$$.dirty){const e=we(a,r.pathname);m.set(e)}},[p,b,h,i,d,r,a,o,l,s]}class Se extends ne{constructor(e){super(),te(this,e,Ae,ke,s,{basepath:3,url:4})}}const Pe=e=>({params:4&e,location:16&e}),Fe=e=>({params:e[2],location:e[4]});function De(e){let t,n,r,a;const o=[Me,_e],s=[];function l(e,t){return null!==e[0]?0:1}return t=l(e),n=s[t]=o[t](e),{c(){n.c(),r=A()},m(e,n){s[t].m(e,n),x(e,r,n),a=!0},p(e,a){let i=t;t=l(e),t===i?s[t].p(e,a):(K(),q(s[i],1,1,(()=>{s[i]=null})),N(),n=s[t],n?n.p(e,a):(n=s[t]=o[t](e),n.c()),Y(n,1),n.m(r.parentNode,r))},i(e){a||(Y(n),a=!0)},o(e){q(n),a=!1},d(e){s[t].d(e),e&&v(r)}}}function _e(e){let t;const n=e[10].default,r=g(n,e,e[9],Fe);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,a){r&&r.p&&(!t||532&a)&&f(r,n,e,e[9],t?m(n,e[9],a,Pe):b(e[9]),Fe)},i(e){t||(Y(r,e),t=!0)},o(e){q(r,e),t=!1},d(e){r&&r.d(e)}}}function Me(e){let n,r,a;const o=[{location:e[4]},e[2],e[3]];var s=e[0];function l(e){let n={};for(let e=0;e{Z(e,1)})),N()}s?(n=D(s,l()),Q(n.$$.fragment),Y(n.$$.fragment,1),X(n,r.parentNode,r)):n=null}else s&&n.$set(a)},i(e){a||(n&&Y(n.$$.fragment,e),a=!0)},o(e){n&&q(n.$$.fragment,e),a=!1},d(e){e&&v(r),n&&Z(n,e)}}}function Re(e){let t,n,r=null!==e[1]&&e[1].route===e[7]&&De(e);return{c(){r&&r.c(),t=A()},m(e,a){r&&r.m(e,a),x(e,t,a),n=!0},p(e,[n]){null!==e[1]&&e[1].route===e[7]?r?(r.p(e,n),2&n&&Y(r,1)):(r=De(e),r.c(),Y(r,1),r.m(t.parentNode,t)):r&&(K(),q(r,1,1,(()=>{r=null})),N())},i(e){n||(Y(r),n=!0)},o(e){q(r),n=!1},d(e){r&&r.d(e),e&&v(t)}}}function Ee(e,n,r){let a,o,{$$slots:s={},$$scope:l}=n,{path:i=""}=n,{component:d=null}=n;const{registerRoute:c,unregisterRoute:g,activeRoute:p}=E(le);u(e,p,(e=>r(1,a=e)));const m=E(se);u(e,m,(e=>r(4,o=e)));const f={path:i,default:""===i};let b={},y={};var x;return c(f),"undefined"!=typeof window&&(x=()=>{g(f)},M().$$.on_destroy.push(x)),e.$$set=e=>{r(13,n=t(t({},n),h(e))),"path"in e&&r(8,i=e.path),"component"in e&&r(0,d=e.component),"$$scope"in e&&r(9,l=e.$$scope)},e.$$.update=()=>{2&e.$$.dirty&&a&&a.route===f&&r(2,b=a.params);{const{path:e,component:t,...a}=n;r(3,y=a)}},n=h(n),[d,a,b,y,o,p,m,f,i,l,s]}class Ie extends ne{constructor(e){super(),te(this,e,Ee,Re,s,{path:8,component:0})}}function je(e){function t(e){const t=e.currentTarget;""===t.target&&function(e){const t=location.host;return e.host==t||0===e.href.indexOf(`https://${t}`)||0===e.href.indexOf(`http://${t}`)}(t)&&function(e){return!e.defaultPrevented&&0===e.button&&!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)&&(e.preventDefault(),ce(t.pathname+t.search,{replace:t.hasAttribute("replace")}))}return e.addEventListener("click",t),{destroy(){e.removeEventListener("click",t)}}}function He(t){let n,r,s,l,i,d,c,u,g,p,m,f,b,h;return{c(){n=w("nav"),r=w("div"),s=w("div"),l=w("a"),i=w("span"),i.textContent="Unturned",d=w("span"),d.textContent="Guard",c=k(),u=w("button"),u.innerHTML='',g=k(),p=w("div"),m=w("ul"),m.innerHTML='
  • \n Docs
  • ',P(i,"class","text-ug-green"),P(d,"class","text-ug-black"),P(l,"class","text-white text-sm font-bold leading-relaxed inline-block mr-4 py-2 whitespace-nowrap uppercase"),P(l,"href",t[1]),P(u,"class","cursor-pointer text-xl leading-none px-3 py-1 border border-solid border-transparent rounded bg-transparent block lg:hidden outline-none focus:outline-none"),P(u,"type","button"),P(s,"class","w-full relative flex justify-between lg:w-auto lg:static lg:block lg:justify-start"),P(m,"class","flex flex-col lg:flex-row list-none mr-auto"),P(p,"class",f="lg:flex flex-grow items-center bg-white lg:bg-opacity-0 lg:shadow-none rounded shadow-lg "+(t[0]?"block":"hidden")),P(p,"id","example-navbar-warning"),P(r,"class","container px-4 mx-auto flex flex-wrap items-center justify-between"),P(n,"class","top-0 absolute z-50 w-full flex flex-wrap items-center justify-between px-2 py-3 navbar-expand-lg")},m(a,f){var v;x(a,n,f),y(n,r),y(r,s),y(s,l),y(l,i),y(l,d),y(s,c),y(s,u),y(r,g),y(r,p),y(p,m),b||(h=[(v=je.call(null,l),v&&o(v.destroy)?v.destroy:e),S(u,"click",t[2])],b=!0)},p(e,[t]){1&t&&f!==(f="lg:flex flex-grow items-center bg-white lg:bg-opacity-0 lg:shadow-none rounded shadow-lg "+(e[0]?"block":"hidden"))&&P(p,"class",f)},i:e,o:e,d(e){e&&v(n),b=!1,a(h)}}}function Be(e,t,n){let r=E("installFolder"),a=!1;return[a,r,function(){n(0,a=!a)}]}class Le extends ne{constructor(e){super(),te(this,e,Be,He,s,{})}}function Ge(t){let n;return{c(){n=w("footer"),n.innerHTML='

    \n
    Copyright © \";\n unsubscribe = listen(window, 'message', (event) => {\n if (event.source === iframe.contentWindow)\n fn();\n });\n }\n else {\n iframe.src = 'about:blank';\n iframe.onload = () => {\n unsubscribe = listen(iframe.contentWindow, 'resize', fn);\n // make sure an initial resize event is fired _after_ the iframe is loaded (which is asynchronous)\n // see https://github.com/sveltejs/svelte/issues/4233\n fn();\n };\n }\n append(node, iframe);\n return () => {\n if (crossorigin) {\n unsubscribe();\n }\n else if (unsubscribe && iframe.contentWindow) {\n unsubscribe();\n }\n detach(iframe);\n };\n}\nconst resize_observer_content_box = /* @__PURE__ */ new ResizeObserverSingleton({ box: 'content-box' });\nconst resize_observer_border_box = /* @__PURE__ */ new ResizeObserverSingleton({ box: 'border-box' });\nconst resize_observer_device_pixel_content_box = /* @__PURE__ */ new ResizeObserverSingleton({ box: 'device-pixel-content-box' });\nfunction toggle_class(element, name, toggle) {\n element.classList[toggle ? 'add' : 'remove'](name);\n}\nfunction custom_event(type, detail, { bubbles = false, cancelable = false } = {}) {\n const e = document.createEvent('CustomEvent');\n e.initCustomEvent(type, bubbles, cancelable, detail);\n return e;\n}\nfunction query_selector_all(selector, parent = document.body) {\n return Array.from(parent.querySelectorAll(selector));\n}\nfunction head_selector(nodeId, head) {\n const result = [];\n let started = 0;\n for (const node of head.childNodes) {\n if (node.nodeType === 8 /* comment node */) {\n const comment = node.textContent.trim();\n if (comment === `HEAD_${nodeId}_END`) {\n started -= 1;\n result.push(node);\n }\n else if (comment === `HEAD_${nodeId}_START`) {\n started += 1;\n result.push(node);\n }\n }\n else if (started > 0) {\n result.push(node);\n }\n }\n return result;\n}\nclass HtmlTag {\n constructor(is_svg = false) {\n this.is_svg = false;\n this.is_svg = is_svg;\n this.e = this.n = null;\n }\n c(html) {\n this.h(html);\n }\n m(html, target, anchor = null) {\n if (!this.e) {\n if (this.is_svg)\n this.e = svg_element(target.nodeName);\n /** #7364 target for