mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-14 10:09:31 -07:00
1 line
22 KiB
JavaScript
1 line
22 KiB
JavaScript
const e={},t=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const t=document.querySelector("meta[property=csp-nonce]"),r=(null==t?void 0:t.nonce)||(null==t?void 0:t.getAttribute("nonce"));o=Promise.all(n.map((t=>{if((t=function(e){return"/"+e}(t))in e)return;e[t]=!0;const n=t.endsWith(".css"),o=n?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${t}"]${o}`))return;const s=document.createElement("link");return s.rel=n?"stylesheet":"modulepreload",n||(s.as="script",s.crossOrigin=""),s.href=t,r&&s.setAttribute("nonce",r),document.head.appendChild(s),n?new Promise(((e,n)=>{s.addEventListener("load",e),s.addEventListener("error",(()=>n(new Error(`Unable to preload CSS for ${t}`))))})):void 0})))}return o.then((()=>t())).catch((e=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}))},n={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return r(this.context.count)},getNextContextId(){return r(this.context.count++)}};function r(e){const t=String(e),r=t.length-1;return n.context.id+(r?String.fromCharCode(96+r):"")+t}function o(e){n.context=e}const s=Symbol("solid-proxy"),l="function"==typeof Proxy,i=Symbol("solid-track"),u={equals:(e,t)=>e===t};let c=D;const a=1,f=2,d={owned:null,cleanups:null,context:null,owner:null},h={};var p=null;let g,v=null,y=null,m=null,b=null,w=0;function x(e,t){const n=y,r=p,o=0===e.length,s=void 0===t?r:t,l=o?d:{owned:null,cleanups:null,context:s?s.context:null,owner:s},i=o?e:()=>e((()=>$((()=>F(l)))));p=l,y=null;try{return V(i,!0)}finally{y=n,p=r}}function A(e,t){const n={value:e,observers:null,observerSlots:null,comparator:(t=t?Object.assign({},u,t):u).equals||void 0};return[C.bind(n),e=>("function"==typeof e&&(e=e(n.value)),I(n,e))]}function S(e,t,n){M(q(e,t,!1,a))}function E(e,t,n){c=U;const r=q(e,t,!1,a);r.user=!0,b?b.push(r):M(r)}function T(e,t,n){n=n?Object.assign({},u,n):u;const r=q(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,M(r),C.bind(r)}function k(e,t,r){let o,s,l;o=!0,s=e,l={};let i=null,u=h,c=null,f=!1,d="initialValue"in l;const p=new Set,[v,m]=(l.storage||A)(l.initialValue),[b,w]=A(void 0),[x,S]=A(void 0,{equals:!1}),[E,T]=A(d?"ready":"unresolved");function k(e,t,n,r){return i===e&&(i=null,void 0!==r&&(d=!0),e!==u&&t!==u||!l.onHydrated||queueMicrotask((()=>l.onHydrated(r,{value:t}))),u=h,function(e,t){V((()=>{void 0===t&&m((()=>e)),T(void 0!==t?"errored":d?"ready":"unresolved"),w(t);for(const e of p.keys())e.decrement();p.clear()}),!1)}(t,n)),t}function O(){const e=g,t=v(),n=b();if(void 0!==n&&!i)throw n;return y&&!y.user&&e&&function(e,t){M(q(e,t,!0,a))}((()=>{x(),i&&(e.resolved||p.has(e)||(e.increment(),p.add(e)))})),t}function N(e=!0){if(!1!==e&&f)return;f=!1;const t=!0,n=u!==h?u:$((()=>s(t,{value:v(),refetching:e})));return(r=n)&&"object"==typeof r&&"then"in r?(i=n,"value"in n?("success"===n.status?k(i,n.value,void 0,t):k(i,void 0,G(n.value),t),n):(f=!0,queueMicrotask((()=>f=!1)),V((()=>{T(d?"refreshing":"pending"),S()}),!1),n.then((e=>k(n,e,void 0,t)),(e=>k(n,void 0,G(e),t))))):(k(i,n,void 0,t),n);var r}return n.context&&(c=n.getNextContextId(),"initial"===l.ssrLoadFrom?u=l.initialValue:n.load&&n.has(c)&&(u=n.load(c))),Object.defineProperties(O,{state:{get:()=>E()},error:{get:()=>b()},loading:{get(){const e=E();return"pending"===e||"refreshing"===e}},latest:{get(){if(!d)return O();const e=b();if(e&&!i)throw e;return v()}}}),N(!1),[O,{refetch:N,mutate:m}]}function O(e){return V(e,!1)}function $(e){if(null===y)return e();const t=y;y=null;try{return e()}finally{y=t}}function N(e,t,n){const r=Array.isArray(e);let o,s=n&&n.defer;return n=>{let l;if(r){l=Array(e.length);for(let t=0;t<e.length;t++)l[t]=e[t]()}else l=e();if(s)return s=!1,n;const i=$((()=>t(l,o,n)));return o=l,i}}function L(e){E((()=>$(e)))}function j(e){return null===p||(null===p.cleanups?p.cleanups=[e]:p.cleanups.push(e)),e}function P(){return y}function _(e){const t=T(e),n=T((()=>X(t())));return n.toArray=()=>{const e=n();return Array.isArray(e)?e:null!=e?[e]:[]},n}function C(){if(this.sources&&this.state)if(this.state===a)M(this);else{const e=m;m=null,V((()=>H(this)),!1),m=e}if(y){const e=this.observers?this.observers.length:0;y.sources?(y.sources.push(this),y.sourceSlots.push(e)):(y.sources=[this],y.sourceSlots=[e]),this.observers?(this.observers.push(y),this.observerSlots.push(y.sources.length-1)):(this.observers=[y],this.observerSlots=[y.sources.length-1])}return this.value}function I(e,t,n){let r=e.value;return e.comparator&&e.comparator(r,t)||(e.value=t,e.observers&&e.observers.length&&V((()=>{for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t],r=v&&v.running;r&&v.disposed.has(n),(r?n.tState:n.state)||(n.pure?m.push(n):b.push(n),n.observers&&R(n)),r||(n.state=a)}if(m.length>1e6)throw m=[],new Error}),!1)),t}function M(e){if(!e.fn)return;F(e);const t=w;!function(e,t,n){let r;const o=p,s=y;y=p=e;try{r=e.fn(t)}catch(l){return e.pure&&(e.state=a,e.owned&&e.owned.forEach(F),e.owned=null),e.updatedAt=n+1,W(l)}finally{y=s,p=o}(!e.updatedAt||e.updatedAt<=n)&&(null!=e.updatedAt&&"observers"in e?I(e,r):e.value=r,e.updatedAt=n)}(e,e.value,t)}function q(e,t,n,r=a,o){const s={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:p,context:p?p.context:null,pure:n};return null===p||p!==d&&(p.owned?p.owned.push(s):p.owned=[s]),s}function B(e){if(0===e.state)return;if(e.state===f)return H(e);if(e.suspense&&$(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<w);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if((e=t[n]).state===a)M(e);else if(e.state===f){const n=m;m=null,V((()=>H(e,t[0])),!1),m=n}}function V(e,t){if(m)return e();let n=!1;t||(m=[]),b?n=!0:b=[],w++;try{const t=e();return function(e){if(m&&(D(m),m=null),e)return;const t=b;b=null,t.length&&V((()=>c(t)),!1)}(n),t}catch(r){n||(b=null),m=null,W(r)}}function D(e){for(let t=0;t<e.length;t++)B(e[t])}function U(e){let t,r=0;for(t=0;t<e.length;t++){const n=e[t];n.user?e[r++]=n:B(n)}if(n.context){if(n.count)return n.effects||(n.effects=[]),void n.effects.push(...e.slice(0,r));o()}for(!n.effects||!n.done&&n.count||(e=[...n.effects,...e],r+=n.effects.length,delete n.effects),t=0;t<r;t++)B(e[t])}function H(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const r=e.sources[n];if(r.sources){const e=r.state;e===a?r!==t&&(!r.updatedAt||r.updatedAt<w)&&B(r):e===f&&H(r,t)}}}function R(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=f,n.pure?m.push(n):b.push(n),n.observers&&R(n))}}function F(e){let t;if(e.sources)for(;e.sources.length;){const t=e.sources.pop(),n=e.sourceSlots.pop(),r=t.observers;if(r&&r.length){const e=r.pop(),o=t.observerSlots.pop();n<r.length&&(e.sourceSlots[o]=n,r[n]=e,t.observerSlots[n]=o)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)F(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)F(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function G(e){return e instanceof Error?e:new Error("string"==typeof e?e:"Unknown error",{cause:e})}function W(e,t=p){throw G(e)}function X(e){if("function"==typeof e&&!e.length)return X(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=X(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function z(e,t){return function(t){let n;return S((()=>n=$((()=>(p.context={...p.context,[e]:t.value},_((()=>t.children)))))),void 0),n}}const K=Symbol("fallback");function Y(e){for(let t=0;t<e.length;t++)e[t]()}let J=!1;function Q(e,t){if(J&&n.context){const r=n.context;o({...n.context,id:n.getNextContextId(),count:0});const s=$((()=>e(t||{})));return o(r),s}return $((()=>e(t||{})))}function Z(){return!0}const ee={get:(e,t,n)=>t===s?n:e.get(t),has:(e,t)=>t===s||e.has(t),set:Z,deleteProperty:Z,getOwnPropertyDescriptor:(e,t)=>({configurable:!0,enumerable:!0,get:()=>e.get(t),set:Z,deleteProperty:Z}),ownKeys:e=>e.keys()};function te(e){return(e="function"==typeof e?e():e)?e:{}}function ne(){for(let e=0,t=this.length;e<t;++e){const t=this[e]();if(void 0!==t)return t}}function re(...e){let t=!1;for(let l=0;l<e.length;l++){const n=e[l];t=t||!!n&&s in n,e[l]="function"==typeof n?(t=!0,T(n)):n}if(l&&t)return new Proxy({get(t){for(let n=e.length-1;n>=0;n--){const r=te(e[n])[t];if(void 0!==r)return r}},has(t){for(let n=e.length-1;n>=0;n--)if(t in te(e[n]))return!0;return!1},keys(){const t=[];for(let n=0;n<e.length;n++)t.push(...Object.keys(te(e[n])));return[...new Set(t)]}},ee);const n={},r=Object.create(null);for(let s=e.length-1;s>=0;s--){const t=e[s];if(!t)continue;const o=Object.getOwnPropertyNames(t);for(let e=o.length-1;e>=0;e--){const s=o[e];if("__proto__"===s||"constructor"===s)continue;const l=Object.getOwnPropertyDescriptor(t,s);if(r[s]){const e=n[s];e&&(l.get?e.push(l.get.bind(t)):void 0!==l.value&&e.push((()=>l.value)))}else r[s]=l.get?{enumerable:!0,configurable:!0,get:ne.bind(n[s]=[l.get.bind(t)])}:void 0!==l.value?l:void 0}}const o={},i=Object.keys(r);for(let s=i.length-1;s>=0;s--){const e=i[s],t=r[e];t&&t.get?Object.defineProperty(o,e,t):o[e]=t?t.value:void 0}return o}function oe(e){let t,r;const s=s=>{const l=n.context;if(l){const[s,i]=A();n.count||(n.count=0),n.count++,(r||(r=e())).then((e=>{!n.done&&o(l),n.count--,i((()=>e.default)),o()})),t=s}else if(!t){const[n]=k((()=>(r||(r=e())).then((e=>e.default))));t=n}let i;return T((()=>(i=t())?$((()=>{if(!l||n.done)return i(s);const e=n.context;o(l);const t=i(s);return o(e),t})):""))};return s.preload=()=>r||((r=e()).then((e=>t=()=>e.default)),r),s}const se=e=>`Stale read from <${e}>.`;function le(e){const t="fallback"in e&&{fallback:()=>e.fallback};return T(function(e,t,n={}){let r=[],o=[],s=[],l=0,u=t.length>1?[]:null;return j((()=>Y(s))),()=>{let c,a,f=e()||[],d=f.length;return f[i],$((()=>{let e,t,i,p,g,v,y,m,b;if(0===d)0!==l&&(Y(s),s=[],r=[],o=[],l=0,u&&(u=[])),n.fallback&&(r=[K],o[0]=x((e=>(s[0]=e,n.fallback()))),l=1);else if(0===l){for(o=new Array(d),a=0;a<d;a++)r[a]=f[a],o[a]=x(h);l=d}else{for(i=new Array(d),p=new Array(d),u&&(g=new Array(d)),v=0,y=Math.min(l,d);v<y&&r[v]===f[v];v++);for(y=l-1,m=d-1;y>=v&&m>=v&&r[y]===f[m];y--,m--)i[m]=o[y],p[m]=s[y],u&&(g[m]=u[y]);for(e=new Map,t=new Array(m+1),a=m;a>=v;a--)b=f[a],c=e.get(b),t[a]=void 0===c?-1:c,e.set(b,a);for(c=v;c<=y;c++)b=r[c],a=e.get(b),void 0!==a&&-1!==a?(i[a]=o[c],p[a]=s[c],u&&(g[a]=u[c]),a=t[a],e.set(b,a)):s[c]();for(a=v;a<d;a++)a in i?(o[a]=i[a],s[a]=p[a],u&&(u[a]=g[a],u[a](a))):o[a]=x(h);o=o.slice(0,l=d),r=f.slice(0)}return o}));function h(e){if(s[a]=e,u){const[e,n]=A(a);return u[a]=n,t(f[a],e)}return t(f[a])}}}((()=>e.each),e.children,t||void 0))}function ie(e){const t=e.keyed,n=T((()=>e.when),void 0,{equals:(e,n)=>t?e===n:!e==!n});return T((()=>{const r=n();if(r){const o=e.children;return"function"==typeof o&&o.length>0?$((()=>o(t?r:()=>{if(!$(n))throw se("Show");return e.when}))):o}return e.fallback}),void 0,void 0)}function ue(e){let t=!1;const n=_((()=>e.children)),r=T((()=>{let e=n();Array.isArray(e)||(e=[e]);for(let n=0;n<e.length;n++){const r=e[n].when;if(r)return t=!!e[n].keyed,[n,r,e[n]]}return[-1]}),void 0,{equals:(e,n)=>(t?e[1]===n[1]:!e[1]==!n[1])&&e[2]===n[2]});return T((()=>{const[n,o,s]=r();if(n<0)return e.fallback;const l=s.children;return"function"==typeof l&&l.length>0?$((()=>l(t?o:()=>{if($(r)[0]!==n)throw se("Match");return s.when}))):l}),void 0,void 0)}function ce(e){return e}const ae=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline","allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"]),fe=new Set(["innerHTML","textContent","innerText","children"]),de=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),he=Object.assign(Object.create(null),{class:"className",formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}}),pe=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),ge="_$DX_DELEGATE";function ve(e,t,n){let r;const o=()=>(r||(r=(()=>{const t=document.createElement("template");return t.innerHTML=e,t.content.firstChild})())).cloneNode(!0);return o.cloneNode=o,o}function ye(e,t=window.document){const n=t[ge]||(t[ge]=new Set);for(let r=0,o=e.length;r<o;r++){const o=e[r];n.has(o)||(n.add(o),t.addEventListener(o,Te))}}function me(e,t,n){Ae(e)||(null==n?e.removeAttribute(t):e.setAttribute(t,n))}function be(e,t={},n,r){const o={};return S((()=>o.children=ke(e,t.children,o.children))),S((()=>"function"==typeof t.ref&&we(t.ref,e))),S((()=>function(e,t,n,r,o={},s=!1){t||(t={});for(const l in o)if(!(l in t)){if("children"===l)continue;o[l]=Ee(e,l,null,o[l],0,s,t)}for(const l in t){if("children"===l)continue;const n=t[l];o[l]=Ee(e,l,n,o[l],0,s,t)}}(e,t,0,0,o,!0))),o}function we(e,t,n){return $((()=>e(t,n)))}function xe(e,t,n,r){if(void 0===n||r||(r=[]),"function"!=typeof t)return ke(e,t,r,n);S((r=>ke(e,t(),r,n)),r)}function Ae(e){return!!n.context&&!n.done&&(!e||e.isConnected)}function Se(e,t,n){const r=t.trim().split(/\s+/);for(let o=0,s=r.length;o<s;o++)e.classList.toggle(r[o],n)}function Ee(e,t,n,r,o,s,l){let i,u,c,a,f;if("style"===t)return function(e,t,n){if(!t)return n?me(e,"style"):t;const r=e.style;if("string"==typeof t)return r.cssText=t;let o,s;for(s in"string"==typeof n&&(r.cssText=n=void 0),n||(n={}),t||(t={}),n)null==t[s]&&r.removeProperty(s),delete n[s];for(s in t)o=t[s],o!==n[s]&&(r.setProperty(s,o),n[s]=o);return n}(e,n,r);if("classList"===t)return function(e,t,n={}){const r=Object.keys(t||{}),o=Object.keys(n);let s,l;for(s=0,l=o.length;s<l;s++){const r=o[s];r&&"undefined"!==r&&!t[r]&&(Se(e,r,!1),delete n[r])}for(s=0,l=r.length;s<l;s++){const o=r[s],l=!!t[o];o&&"undefined"!==o&&n[o]!==l&&l&&(Se(e,o,!0),n[o]=l)}return n}(e,n,r);if(n===r)return r;if("ref"===t)s||n(e);else if("on:"===t.slice(0,3)){const o=t.slice(3);r&&e.removeEventListener(o,r,"function"!=typeof r&&r),n&&e.addEventListener(o,n,"function"!=typeof n&&n)}else if("oncapture:"===t.slice(0,10)){const o=t.slice(10);r&&e.removeEventListener(o,r,!0),n&&e.addEventListener(o,n,!0)}else if("on"===t.slice(0,2)){const o=t.slice(2).toLowerCase(),s=pe.has(o);if(!s&&r){const t=Array.isArray(r)?r[0]:r;e.removeEventListener(o,t)}(s||n)&&(function(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const r=n[0];e.addEventListener(t,n[0]=t=>r.call(e,n[1],t))}else e.addEventListener(t,n,"function"!=typeof n&&n)}(e,o,n,s),s&&ye([o]))}else if("attr:"===t.slice(0,5))me(e,t.slice(5),n);else if("bool:"===t.slice(0,5))!function(e,t,n){Ae(e)||(n?e.setAttribute(t,""):e.removeAttribute(t))}(e,t.slice(5),n);else if((f="prop:"===t.slice(0,5))||(c=fe.has(t))||(a=function(e,t){const n=he[e];return"object"==typeof n?n[t]?n.$:void 0:n}(t,e.tagName))||(u=ae.has(t))||(i=e.nodeName.includes("-")||"is"in l)){if(f)t=t.slice(5),u=!0;else if(Ae(e))return n;"class"===t||"className"===t?function(e,t){Ae(e)||(null==t?e.removeAttribute("class"):e.className=t)}(e,n):!i||u||c?e[a||t]=n:e[(d=t,d.toLowerCase().replace(/-([a-z])/g,((e,t)=>t.toUpperCase())))]=n}else me(e,de[t]||t,n);var d;return n}function Te(e){if(n.registry&&n.events&&n.events.find((([t,n])=>n===e)))return;let t=e.target;const r=`$$${e.type}`,o=e.target,s=e.currentTarget,l=t=>Object.defineProperty(e,"target",{configurable:!0,value:t}),i=()=>{const n=t[r];if(n&&!t.disabled){const o=t[`${r}Data`];if(void 0!==o?n.call(t,o,e):n.call(t,e),e.cancelBubble)return}return t.host&&"string"!=typeof t.host&&!t.host._$host&&t.contains(e.target)&&l(t.host),!0},u=()=>{for(;i()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get:()=>t||document}),n.registry&&!n.done&&(n.done=_$HY.done=!0),e.composedPath){const n=e.composedPath();l(n[0]);for(let e=0;e<n.length-2&&(t=n[e],i());e++){if(t._$host){t=t._$host,u();break}if(t.parentNode===s)break}}else u();l(o)}function ke(e,t,n,r,o){const s=Ae(e);if(s){!n&&(n=[...e.childNodes]);let t=[];for(let e=0;e<n.length;e++){const r=n[e];8===r.nodeType&&"!$"===r.data.slice(0,2)?r.remove():t.push(r)}n=t}for(;"function"==typeof n;)n=n();if(t===n)return n;const l=typeof t,i=void 0!==r;if(e=i&&n[0]&&n[0].parentNode||e,"string"===l||"number"===l){if(s)return n;if("number"===l&&(t=t.toString())===n)return n;if(i){let o=n[0];o&&3===o.nodeType?o.data!==t&&(o.data=t):o=document.createTextNode(t),n=Ne(e,n,r,o)}else n=""!==n&&"string"==typeof n?e.firstChild.data=t:e.textContent=t}else if(null==t||"boolean"===l){if(s)return n;n=Ne(e,n,r)}else{if("function"===l)return S((()=>{let o=t();for(;"function"==typeof o;)o=o();n=ke(e,o,n,r)})),()=>n;if(Array.isArray(t)){const l=[],u=n&&Array.isArray(n);if(Oe(l,t,n,o))return S((()=>n=ke(e,l,n,r,!0))),()=>n;if(s){if(!l.length)return n;if(void 0===r)return n=[...e.childNodes];let t=l[0];if(t.parentNode!==e)return n;const o=[t];for(;(t=t.nextSibling)!==r;)o.push(t);return n=o}if(0===l.length){if(n=Ne(e,n,r),i)return n}else u?0===n.length?$e(e,l,r):function(e,t,n){let r=n.length,o=t.length,s=r,l=0,i=0,u=t[o-1].nextSibling,c=null;for(;l<o||i<s;)if(t[l]!==n[i]){for(;t[o-1]===n[s-1];)o--,s--;if(o===l){const t=s<r?i?n[i-1].nextSibling:n[s-i]:u;for(;i<s;)e.insertBefore(n[i++],t)}else if(s===i)for(;l<o;)c&&c.has(t[l])||t[l].remove(),l++;else if(t[l]===n[s-1]&&n[i]===t[o-1]){const r=t[--o].nextSibling;e.insertBefore(n[i++],t[l++].nextSibling),e.insertBefore(n[--s],r),t[o]=n[s]}else{if(!c){c=new Map;let e=i;for(;e<s;)c.set(n[e],e++)}const r=c.get(t[l]);if(null!=r)if(i<r&&r<s){let u,a=l,f=1;for(;++a<o&&a<s&&null!=(u=c.get(t[a]))&&u===r+f;)f++;if(f>r-i){const o=t[l];for(;i<r;)e.insertBefore(n[i++],o)}else e.replaceChild(n[i++],t[l++])}else l++;else t[l++].remove()}}else l++,i++}(e,n,l):(n&&Ne(e),$e(e,l));n=l}else if(t.nodeType){if(s&&t.parentNode)return n=i?[t]:t;if(Array.isArray(n)){if(i)return n=Ne(e,n,r,t);Ne(e,n,null,t)}else null!=n&&""!==n&&e.firstChild?e.replaceChild(t,e.firstChild):e.appendChild(t);n=t}}return n}function Oe(e,t,n,r){let o=!1;for(let s=0,l=t.length;s<l;s++){let l,i=t[s],u=n&&n[e.length];if(null==i||!0===i||!1===i);else if("object"==(l=typeof i)&&i.nodeType)e.push(i);else if(Array.isArray(i))o=Oe(e,i,u)||o;else if("function"===l)if(r){for(;"function"==typeof i;)i=i();o=Oe(e,Array.isArray(i)?i:[i],Array.isArray(u)?u:[u])||o}else e.push(i),o=!0;else{const t=String(i);u&&3===u.nodeType&&u.data===t?e.push(u):e.push(document.createTextNode(t))}}return o}function $e(e,t,n=null){for(let r=0,o=t.length;r<o;r++)e.insertBefore(t[r],n)}function Ne(e,t,n,r){if(void 0===n)return e.textContent="";const o=r||document.createTextNode("");if(t.length){let r=!1;for(let s=t.length-1;s>=0;s--){const l=t[s];if(o!==l){const t=l.parentNode===e;r||s?t&&l.remove():t?e.replaceChild(o,l):e.insertBefore(o,n)}else r=!0}}else e.insertBefore(o,n);return[o]}async function Le(){if("404"===document.title.split(" | ")[0])return[];try{const e=await fetch(`${window.location.href}index.json`,{headers:{Accept:"application/json"}});return(await e.json()).sort(((e,t)=>e.index<t.index?-1:1))}catch(e){return[]}}var je="Invariant failed";function Pe(e,t){if(!e)throw new Error(je)}function _e(e,t){return(e+1)%t}function Ce(e,t){return(e+t-1)%t}function Ie(e){return("0000"+e.toString()).slice(-4)}async function Me(){return(await t((()=>import("./CqsBem.js")),[])).gsap}function qe(){const e=sessionStorage.getItem("thresholdsIndex");return null===e?2:parseInt(e)}const Be=[{threshold:20,trailLength:20},{threshold:40,trailLength:10},{threshold:80,trailLength:5},{threshold:140,trailLength:5},{threshold:200,trailLength:5}],Ve=(e,t)=>[e,{setIndex:e=>{t((t=>({...t,index:e})))},incIndex:()=>{t((e=>({...e,index:_e(e.index,e.length)})))},decIndex:()=>{t((e=>({...e,index:Ce(e.index,e.length)})))},incThreshold:()=>{t((e=>({...e,...Ue(e.threshold,Be,1)})))},decThreshold:()=>{t((e=>({...e,...Ue(e.threshold,Be,-1)})))}}],De=function(){const e=Symbol("context");return{id:e,Provider:z(e),defaultValue:void 0}}();function Ue(e,t,n){const r=t.findIndex((t=>t.threshold===e))+n;return r<0||r>=t.length?t[r-n]:(sessionStorage.setItem("thresholdsIndex",r.toString()),t[r])}function He(e){const t={index:-1,length:e.length,threshold:Be[qe()].threshold,trailLength:Be[qe()].trailLength},[n,r]=A(t),o=Ve(n,r);return Q(De.Provider,{value:o,get children(){return e.children}})}function Re(){const e=function(e){let t;return p&&p.context&&void 0!==(t=p.context[e.id])?t:e.defaultValue}(De);return Pe(e),e}var Fe=ve("<div>Error");const Ge=document.getElementsByClassName("container")[0],We=oe((async()=>await t((()=>import("./BSNAnE.js")),[]))),Xe=oe((async()=>await t((()=>import("./BPtQtF.js")),[])));function ze(){const[e]=k(Le),t=window.matchMedia("(hover: none)").matches&&!window.navigator.userAgent.includes("Win"),[n,r]=A(!0);return E((()=>{n()?Ge.classList.remove("disableScroll"):Ge.classList.add("disableScroll")})),Q(ie,{get when(){return"ready"===e.state},get children(){return Q(He,{get length(){var t;return(null==(t=e())?void 0:t.length)??0},get children(){return Q(ue,{get fallback(){return Fe()},get children(){return[Q(ce,{when:t,get children(){return Q(Xe,{get ijs(){return e()??[]},get closeText(){return Ge.dataset.close},get loadingText(){return Ge.dataset.loading},setScrollable:r})}}),Q(ce,{when:!t,get children(){return Q(We,{get ijs(){return e()??[]},get prevText(){return Ge.dataset.prev},get closeText(){return Ge.dataset.close},get nextText(){return Ge.dataset.next},get loadingText(){return Ge.dataset.loading}})}})]}})}})}})}!function(e,t,n,r={}){let o;x((r=>{o=r,t===document?e():xe(t,e(),t.firstChild?null:void 0,n)}),r.owner)}((()=>Q(ze,{})),Ge);export{s as $,le as F,ie as S,t as _,j as a,S as b,A as c,E as d,Ie as e,N as f,Q as g,we as h,xe as i,ye as j,Ce as k,Me as l,_e as m,T as n,L as o,i as p,P as q,O as r,me as s,ve as t,Re as u,be as v,re as w,Pe as x}; |