designix-uis 1.0.34 → 1.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/public/_app/immutable/chunks/0lig8UxQ.js +1 -0
- package/dist/public/_app/immutable/chunks/BkVLPnKR.js +3 -0
- package/dist/public/_app/immutable/chunks/ByOhoOPK.js +1 -0
- package/dist/public/_app/immutable/chunks/{Cqu6Anc-.js → Dn5S8cZ1.js} +1 -1
- package/dist/public/_app/immutable/chunks/Za7VFBJZ.js +216 -0
- package/dist/public/_app/immutable/entry/{app.B6-MtQXu.js → app.BxcBvp19.js} +2 -2
- package/dist/public/_app/immutable/entry/start.CrsuYSWI.js +1 -0
- package/dist/public/_app/immutable/nodes/{0.DY8Z2FWu.js → 0.BKSGrXQd.js} +1 -1
- package/dist/public/_app/immutable/nodes/{1.C0eqdL1v.js → 1.BtN9I_5r.js} +1 -1
- package/dist/public/_app/immutable/nodes/{2.DzDjUhFb.js → 2.PqG_U8_w.js} +1 -1
- package/dist/public/_app/immutable/nodes/{3.BvrNFoaU.js → 3.BBspsss6.js} +3 -3
- package/dist/public/_app/version.json +1 -1
- package/dist/public/gear/gear_bar.html +20 -19
- package/dist/public/gear/gear_epicycloid.html +20 -19
- package/dist/public/gear/gear_ring.html +20 -19
- package/dist/public/gear/gear_wheel.html +20 -19
- package/dist/public/heliostat/base.html +20 -19
- package/dist/public/heliostat/haxis_guidance.html +20 -19
- package/dist/public/heliostat/heliostat.html +20 -19
- package/dist/public/heliostat/heliostat_2.html +20 -19
- package/dist/public/heliostat/pole_static.html +20 -19
- package/dist/public/heliostat/rake.html +20 -19
- package/dist/public/heliostat/rake_stopper.html +20 -19
- package/dist/public/heliostat/ring.html +20 -19
- package/dist/public/heliostat/ring_guidance.html +20 -19
- package/dist/public/heliostat/rod.html +20 -19
- package/dist/public/heliostat/spider.html +20 -19
- package/dist/public/heliostat/surface.html +20 -19
- package/dist/public/heliostat/swing.html +20 -19
- package/dist/public/heliostat/trapeze.html +20 -19
- package/dist/public/heliostat/vaxis.html +20 -19
- package/dist/public/heliostat/vaxis_guidance.html +20 -19
- package/dist/public/heliostat/vaxis_holder.html +20 -19
- package/dist/public/index.html +19 -18
- package/package.json +7 -7
- package/dist/public/_app/env.js +0 -1
- package/dist/public/_app/immutable/chunks/B04yfOmj.js +0 -1
- package/dist/public/_app/immutable/chunks/BGFub8HW.js +0 -216
- package/dist/public/_app/immutable/chunks/Bc4MrHmR.js +0 -1
- package/dist/public/_app/immutable/chunks/CtuE7-7B.js +0 -3
- package/dist/public/_app/immutable/entry/start.BYRgEfei.js +0 -1
- /package/dist/public/_app/immutable/chunks/{DEDqjojZ.js → xihTtKlq.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{K as e,M as t,N as n,P as r,Y as i,i as a,n as o,q as s}from"./BkVLPnKR.js";var c=class{constructor(e,t){this.status=e,typeof t==`string`?this.body={message:t}:t?this.body=t:this.body={message:`Error: ${e}`}}toString(){return JSON.stringify(this.body)}},l=class{constructor(e,t){try{new Headers({location:t})}catch{throw Error(`Invalid redirect location ${JSON.stringify(t)}: this string contains characters that cannot be used in HTTP headers`)}this.status=e,this.location=t}},u=class extends Error{constructor(e,t,n){super(n),this.status=e,this.text=t}};new URL(`sveltekit-internal://`);function d(e,t){return e===`/`||t===`ignore`?e:t===`never`?e.endsWith(`/`)?e.slice(0,-1):e:t===`always`&&!e.endsWith(`/`)?e+`/`:e}function f(e){return e.split(`%25`).map(decodeURI).join(`%25`)}function p(e){for(let t in e)e[t]=decodeURIComponent(e[t]);return e}function m({href:e}){return e.split(`#`)[0]}function h(e,t,n,r=!1){let i=new URL(e);Object.defineProperty(i,"searchParams",{value:new Proxy(i.searchParams,{get(e,r){if(r===`get`||r===`getAll`||r===`has`)return(t,...i)=>(n(t),e[r](t,...i));t();let i=Reflect.get(e,r);return typeof i==`function`?i.bind(e):i}}),enumerable:!0,configurable:!0});let a=[`href`,`pathname`,`search`,`toString`,`toJSON`];r&&a.push(`hash`);for(let n of a)Object.defineProperty(i,n,{get(){return t(),e[n]},enumerable:!0,configurable:!0});return i}function g(){}function _(...e){let t=5381;for(let n of e)if(typeof n==`string`){let e=n.length;for(;e;)t=t*33^n.charCodeAt(--e)}else if(ArrayBuffer.isView(n)){let e=new Uint8Array(n.buffer,n.byteOffset,n.byteLength),r=e.length;for(;r;)t=t*33^e[--r]}else throw TypeError(`value must be a string or TypedArray`);return(t>>>0).toString(36)}new TextEncoder;function v(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var ee=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||`GET`)!==`GET`&&y.delete(S(e)),ee(e,t));var y=new Map;function b(e,t){let n=S(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:e,...t}=JSON.parse(r.textContent),i=r.getAttribute(`data-ttl`);return i&&y.set(n,{body:e,init:t,ttl:1e3*Number(i)}),r.getAttribute(`data-b64`)!==null&&(e=v(e)),Promise.resolve(new Response(e,t))}return window.fetch(e,t)}function x(e,t,n){if(y.size>0){let t=S(e,n),r=y.get(t);if(r){if(performance.now()<r.ttl&&[`default`,`force-cache`,`only-if-cached`,void 0].includes(n?.cache))return new Response(r.body,r.init);y.delete(t)}}return window.fetch(t,n)}function S(e,t){let n=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){let e=[];t.headers&&e.push([...new Headers(t.headers)].join(`,`)),t.body&&(typeof t.body==`string`||ArrayBuffer.isView(t.body))&&e.push(t.body),n+=`[data-hash="${_(...e)}"]`}return n}var te=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,C=/^\/\((?:[^)]+)\)$/;function ne(e){let t=[];return{pattern:e===`/`||C.test(e)?/^\/$/:RegExp(`^${ie(e).map(e=>{let n=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(e);if(n)return t.push({name:n[1],matcher:n[2],optional:!1,rest:!0,chained:!0}),`(?:/([^]*))?`;let r=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(e);if(r)return t.push({name:r[1],matcher:r[2],optional:!0,rest:!1,chained:!0}),`(?:/([^/]+))?`;if(!e)return;let i=e.split(/\[(.+?)\](?!\])/);return`/`+i.map((e,n)=>{if(n%2){if(e.startsWith(`x+`))return oe(String.fromCharCode(parseInt(e.slice(2),16)));if(e.startsWith(`u+`))return oe(String.fromCharCode(...e.slice(2).split(`-`).map(e=>parseInt(e,16))));let[,r,a,o,s]=te.exec(e);return t.push({name:o,matcher:s,optional:!!r,rest:!!a,chained:a?n===1&&i[0]===``:!1}),a?`([^]*?)`:r?`([^/]*)?`:`([^/]+?)`}return oe(e)}).join(``)}).join(``)}/?$`),params:t}}function re(e){return e!==``&&!/^\([^)]+\)$/.test(e)}function ie(e){return e.slice(1).split(`/`).filter(re)}function ae(e,t,n){let r={},i=e.slice(1),a=i.filter(e=>e!==void 0),o=0;for(let e=0;e<t.length;e+=1){let s=t[e],c=i[e-o];if(s.chained&&s.rest&&o&&(c=i.slice(e-o,e+1).filter(e=>e).join(`/`),o=0),c===void 0)if(s.rest)c=``;else continue;if(!s.matcher||n[s.matcher](c)){r[s.name]=c;let n=t[e+1],l=i[e+1];n&&!n.rest&&n.optional&&l&&s.chained&&(o=0),!n&&!l&&Object.keys(r).length===a.length&&(o=0);continue}if(s.optional&&s.chained){o++;continue}return}if(!o)return r}function oe(e){return e.normalize().replace(/[[\]]/g,`\\$&`).replace(/%/g,`%25`).replace(/\//g,`%2[Ff]`).replace(/\?/g,`%3[Ff]`).replace(/#/g,`%23`).replace(/[.*+?^${}()|\\]/g,`\\$&`)}var se=/\[(\[)?(\.\.\.)?(\w+?)(?:=(\w+))?\]\]?/g;function ce(e,t){let n=ie(e),r=e!=`/`&&e.endsWith(`/`);return`/`+n.map(n=>n.replace(se,(n,r,i,a)=>{let o=t[a];if(!o){if(r||i&&o!==void 0)return``;throw Error(`Missing parameter '${a}' in route ${e}`)}if(o.startsWith(`/`)||o.endsWith(`/`))throw Error(`Parameter '${a}' in route ${e} cannot start or end with a slash -- this would cause an invalid route like foo//bar`);return o})).filter(Boolean).join(`/`)+(r?`/`:``)}function le({nodes:e,server_loads:t,dictionary:n,matchers:r}){let i=new Set(t);return Object.entries(n).map(([t,[n,i,s]])=>{let{pattern:c,params:l}=ne(t),u={id:t,exec:e=>{let t=c.exec(e);if(t)return ae(t,l,r)},errors:[1,...s||[]].map(t=>e[t]),layouts:[0,...i||[]].map(o),leaf:a(n)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function a(t){let n=t<0;return n&&(t=~t),[n,e[t]]}function o(t){return t===void 0?t:[i.has(t),e[t]]}}function ue(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function de(e,t,n=JSON.stringify){let r=n(t);try{sessionStorage[e]=r}catch{}}var w=globalThis.__sveltekit_10k4q3c?.base??``,fe=globalThis.__sveltekit_10k4q3c?.assets??w??``;function pe(e){return(fe||w)+e}var me=``;function he(...e){if(!e[0].startsWith(`/`))throw Error(`Cannot use \`resolve(...)\` with a non-absolute pathname or route ID (got "${e[0]}"). \`resolve\` is only for internal pathnames and route IDs; external URLs should be used directly.`);return w+me+ce(e[0],e[1])}var ge=`1781208108032`,_e=`sveltekit:snapshot`,ve=`sveltekit:scroll`,ye=`sveltekit:states`,T=`sveltekit:history`,E=`sveltekit:navigation`,D={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},O=location.origin;function be(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){let e=document.getElementsByTagName(`base`);t=e.length?e[0].href:document.URL}return new URL(e,t)}function k(){return{x:pageXOffset,y:pageYOffset}}function A(e,t){return e.getAttribute(`data-sveltekit-${t}`)}var xe={...D,"":D.hover};function Se(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Ce(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()===`A`&&e.hasAttribute(`href`))return e;e=Se(e)}}function we(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){let e=location.hash.split(`#`)[1]||`/`;r.hash=`#${e}${r.hash}`}}catch{}let i=e instanceof SVGAElement?e.target.baseVal:e.target,a=!r||!!i||ke(r,t,n)||(e.getAttribute(`rel`)||``).split(/\s+/).includes(`external`),o=r?.origin===O&&e.hasAttribute(`download`);return{url:r,external:a,target:i,download:o}}function Te(e){let t=null,n=null,r=null,i=null,a=null,o=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=A(s,`preload-code`)),i===null&&(i=A(s,`preload-data`)),t===null&&(t=A(s,`keepfocus`)),n===null&&(n=A(s,`noscroll`)),a===null&&(a=A(s,`reload`)),o===null&&(o=A(s,`replacestate`)),s=Se(s);function c(e){switch(e){case``:case`true`:return!0;case`off`:case`false`:return!1;default:return}}return{preload_code:xe[r??`off`],preload_data:xe[i??`off`],keepfocus:c(t),noscroll:c(n),reload:c(a),replace_state:c(o)}}function Ee(e){let t=i(e),n=!0;function r(){n=!0,t.update(e=>e)}function a(e){n=!1,t.set(e)}function o(e){let r;return t.subscribe(t=>{(r===void 0||n&&t!==r)&&e(r=t)})}return{notify:r,set:a,subscribe:o}}var De={v:g};function Oe(){let{set:e,subscribe:t}=i(!1);async function n(){clearTimeout(void 0);try{let t=await fetch(`${fe}/_app/version.json`,{headers:{pragma:`no-cache`,"cache-control":`no-cache`}});if(!t.ok)return!1;let n=(await t.json()).version!==ge;return n&&(e(!0),De.v(),clearTimeout(void 0)),n}catch{return!1}}return{subscribe:t,check:n}}function ke(e,t,n){return e.origin!==O||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function Ae(e){}var je=new Set([`load`,`prerender`,`csr`,`ssr`,`trailingSlash`,`config`]);new Set([...je,`entries`]);var Me=new Set([...je]);new Set([...Me,`actions`,`entries`]),new Set([`GET`,`POST`,`PATCH`,`PUT`,`DELETE`,`OPTIONS`,`HEAD`,`fallback`,`prerender`,`trailingSlash`,`config`,`entries`]);function Ne(e){return e.filter(e=>e!=null)}function Pe(e,t){return e+`/`+t}function Fe(e){return e instanceof c||e instanceof u?e.status:500}function Ie(e){return e instanceof u?e.text:`Internal Error`}var j,M,Le,Re=a.toString().includes(`$$`)||/function \w+\(\) \{\}/.test(a.toString()),ze=`a:`;Re?(j={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(ze)},M={current:null},Le={current:!1}):(j=new class{#e=s({});get data(){return t(this.#e)}set data(t){e(this.#e,t)}#t=s(null);get form(){return t(this.#t)}set form(t){e(this.#t,t)}#n=s(null);get error(){return t(this.#n)}set error(t){e(this.#n,t)}#r=s({});get params(){return t(this.#r)}set params(t){e(this.#r,t)}#i=s({id:null});get route(){return t(this.#i)}set route(t){e(this.#i,t)}#a=s({});get state(){return t(this.#a)}set state(t){e(this.#a,t)}#o=s(-1);get status(){return t(this.#o)}set status(t){e(this.#o,t)}#s=s(new URL(ze));get url(){return t(this.#s)}set url(t){e(this.#s,t)}},M=new class{#e=s(null);get current(){return t(this.#e)}set current(t){e(this.#e,t)}},Le=new class{#e=s(!1);get current(){return t(this.#e)}set current(t){e(this.#e,t)}},De.v=()=>Le.current=!0);function Be(e){Object.assign(j,e)}var Ve={spanContext(){return He},setAttribute(){return this},setAttributes(){return this},addEvent(){return this},setStatus(){return this},updateName(){return this},end(){return this},isRecording(){return!1},recordException(){return this},addLink(){return this},addLinks(){return this}},He={traceId:``,spanId:``,traceFlags:0},{onMount:Ue,tick:We}=o,Ge=new Set([`icon`,`shortcut icon`,`apple-touch-icon`]),N=null,P=ue(`sveltekit:scroll`)??{},F=ue(`sveltekit:snapshot`)??{},I={url:Ee({}),page:Ee({}),navigating:i(null),updated:Oe()};function Ke(e){P[e]=k()}function qe(e,t){let n=e+1;for(;P[n];)delete P[n],n+=1;for(n=t+1;F[n];)delete F[n],n+=1}function L(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(g)}async function Je(){if(`serviceWorker`in navigator){let e=await navigator.serviceWorker.getRegistration(w||`/`);e&&await e.update()}}var Ye,Xe,R,z,Ze,B,Qe={},$e={},V=[],H=[],U=null;function et(){U?.fork?.then(e=>e?.discard()),U=null,Q={element:void 0,href:void 0}}var tt=new Map,nt=new Set,rt=new Set,W=new Set,G={branch:[],error:null,url:null,nav:null},it=!1,at=!1,ot=!0,K=!1,q=!1,st=!1,ct=!1,lt,J,Y,X,ut=new Set,dt=new Map,ft=new Map;async function pt(e,t,n){if(globalThis.__sveltekit_10k4q3c.data){let{q:e={},p:t={},l:n={},f:r={}}=globalThis.__sveltekit_10k4q3c.data;for(let t in e)Qe[t]=e[t];for(let e in n)Qe[e]=n[e];for(let e in r)Qe[e]=r[e];for(let e in t)$e[e]=t[e]}document.URL!==location.href&&(location.href=location.href),B=e,await e.hooks.init?.(),Ye=le(e),z=document.documentElement,Ze=t,Xe=e.nodes[0],R=e.nodes[1],Xe(),R(),J=history.state?.[T],Y=history.state?.[E],J||(J=Y=Date.now(),history.replaceState({...history.state,[T]:J,[E]:Y},``));let r=P[J];function i(){r&&(history.scrollRestoration=`manual`,scrollTo(r.x,r.y))}n?(i(),await Wt(Ze,n)):(await Z({type:`enter`,url:be(B.hash?Xt(new URL(location.href)):location.href),replace_state:!0}),i()),Ut()}function mt(){V.length=0,ct=!1}function ht(e){H.some(e=>e?.snapshot)&&(F[e]=H.map(e=>e?.snapshot?.capture()))}function gt(e){F[e]?.forEach((e,t)=>{H[t]?.snapshot?.restore(e)})}function _t(){Ke(J),de(ve,P),ht(Y),de(_e,F)}async function vt(e,t,n,i){let a,o;t.invalidateAll&&et(),await Z({type:`goto`,url:be(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:i,accept:()=>{if(t.invalidateAll){ct=!0,a=new Set;for(let[e,t]of dt)for(let n of t.keys())a.add(Pe(e,n));o=new Set;for(let[e,t]of ft)for(let n of t.keys())o.add(Pe(e,n))}t.invalidate&&t.invalidate.forEach(Ht)}}),t.invalidateAll&&r().then(r).then(()=>{for(let[e,t]of dt)for(let[n,{resource:r}]of t)a?.has(Pe(e,n))&&r.refresh();for(let[e,t]of ft)for(let[n,{resource:r}]of t)o?.has(Pe(e,n))&&r.reconnect()})}async function yt(e){if(e.id!==U?.id){et();let t={};ut.add(t),U={id:e.id,token:t,promise:kt({...e,preload:t}).then(e=>(ut.delete(t),e.type===`loaded`&&e.state.error&&et(),e)),fork:null}}return U.promise}async function bt(e){let t=(await Nt(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(e=>e[1]()))}async function xt(e,t,n){let r={params:G.params,route:{id:G.route?.id??null},url:new URL(location.href)};if(G={...e.state,nav:r},Be(e.props.page),lt=new B.root({target:t,props:{...e.props,stores:I,components:H},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),gt(Y),n){let e={from:null,to:{...r,scroll:P[J]??k()},willUnload:!1,type:`enter`,complete:Promise.resolve()};W.forEach(t=>t(e))}at=!0}async function St({url:e,params:t,branch:n,errors:r,status:i,error:a,route:o,form:s}){let c=`never`;if(w&&(e.pathname===w||e.pathname===w+`/`))c=`always`;else for(let e of n)e?.slash!==void 0&&(c=e.slash);e.pathname=d(e.pathname,c),e.search=e.search;let l={type:`loaded`,state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:Ne(n).map(e=>e.node.component),page:Yt(j)}};s!==void 0&&(l.props.form=s);let u={},f=!j,p=0;for(let e=0;e<Math.max(n.length,G.branch.length);e+=1){let t=n[e],r=G.branch[e];t?.data!==r?.data&&(f=!0),t&&(u={...u,...t.data},f&&(l.props[`data_${p}`]=u),p+=1)}return(!G.url||e.href!==G.url.href||G.error!==a||s!==void 0&&s!==j.form||f)&&(l.props.page={error:a,params:t,route:{id:o?.id??null},state:{},status:i,url:new URL(e),form:s??null,data:f?u:j.data}),l}async function Ct({loader:e,parent:t,url:n,params:r,route:i,server_data_node:a}){let o=null,s=!0,c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if(l.universal?.load){function e(...e){for(let t of e){let{href:e}=new URL(t,n);c.dependencies.add(e)}}let u={tracing:{enabled:!1,root:Ve,current:Ve},route:new Proxy(i,{get:(e,t)=>(s&&(c.route=!0),e[t])}),params:new Proxy(r,{get:(e,t)=>(s&&c.params.add(t),e[t])}),data:a?.data??null,url:h(n,()=>{s&&(c.url=!0)},e=>{s&&c.search_params.add(e)},B.hash),async fetch(t,r){t instanceof Request&&(r={body:t.method===`GET`||t.method===`HEAD`?void 0:await t.blob(),cache:t.cache,credentials:t.credentials,headers:[...t.headers].length>0?t?.headers:void 0,integrity:t.integrity,keepalive:t.keepalive,method:t.method,mode:t.mode,redirect:t.redirect,referrer:t.referrer,referrerPolicy:t.referrerPolicy,signal:t.signal,...r});let{resolved:i,promise:a}=wt(t,r,n);return s&&e(i.href),a},setHeaders:g,depends:e,parent(){return s&&(c.parent=!0),t()},untrack(e){s=!1;try{return e()}finally{s=!0}}};o=await l.universal.load.call(null,u)??null}return{node:l,loader:e,server:a,universal:l.universal?.load?{type:`data`,data:o,uses:c}:null,data:o??a?.data??null,slash:l.universal?.trailingSlash??a?.slash}}function wt(e,t,n){let r=e instanceof Request?e.url:e,i=new URL(r,n);return i.origin===n.origin&&(r=i.href.slice(n.origin.length)),{resolved:i,promise:at?x(r,i.href,t):b(r,t)}}function Tt(e,t,n,r,i,a){if(ct)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&n)return!0;for(let e of i.search_params)if(r.has(e))return!0;for(let e of i.params)if(a[e]!==G.params[e])return!0;for(let e of i.dependencies)if(V.some(t=>t(new URL(e))))return!0;return!1}function Et(e,t){return e?.type===`data`?e:e?.type===`skip`?t??null:null}function Dt(e,t){if(!e)return new Set(t.searchParams.keys());let n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(let r of n){let i=e.searchParams.getAll(r),a=t.searchParams.getAll(r);i.every(e=>a.includes(e))&&a.every(e=>i.includes(e))&&n.delete(r)}return n}function Ot({error:e,url:t,route:n,params:r}){return{type:`loaded`,state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:Yt(j),constructors:[]}}}async function kt({id:e,invalidating:t,url:n,params:r,route:i,preload:a}){if(U?.id===e)return ut.delete(U.token),U.promise;let{errors:o,layouts:s,leaf:u}=i,d=[...s,u];o.forEach(e=>e?.().catch(g)),d.forEach(e=>e?.[1]().catch(g));let f=G.url?e!==Ft(G.url):!1,p=G.route?i.id!==G.route.id:!1,m=Dt(G.url,n),h=!1,_=d.map(async(e,t)=>{if(!e)return;let a=G.branch[t];return e[1]===a?.loader&&!Tt(h,p,f,m,a.universal?.uses,r)?a:(h=!0,Ct({loader:e[1],url:n,params:r,route:i,parent:async()=>{let e={};for(let n=0;n<t;n+=1)Object.assign(e,(await _[n])?.data);return e},server_data_node:Et(e[0]?{type:`skip`}:null,e[0]?a?.server:void 0)}))});for(let e of _)e.catch(g);let v=[];for(let e=0;e<d.length;e+=1)if(d[e])try{v.push(await _[e])}catch(t){if(t instanceof l)return{type:`redirect`,location:t.location};if(ut.has(a))return Ot({error:await $(t,{params:r,url:n,route:{id:i.id}}),url:n,params:r,route:i});let s=Fe(t),u;if(t instanceof c)u=t.body;else{if(await I.updated.check())return await Je(),await L(n);u=await $(t,{params:r,url:n,route:{id:i.id}})}let d=await At(e,v,o);return d?St({url:n,params:r,branch:v.slice(0,d.idx).concat(d.node),errors:o,status:s,error:u,route:i}):await Lt(n,{id:i.id},u,s)}else v.push(void 0);return St({url:n,params:r,branch:v,errors:o,status:200,error:null,route:i,form:t?void 0:null})}async function At(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)--r;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function jt({status:e,error:t,url:n,route:r}){let i={};try{return St({url:n,params:i,branch:[await Ct({loader:Xe,url:n,params:i,route:r,parent:()=>Promise.resolve({}),server_data_node:Et(null)}),{node:await R(),loader:R,universal:null,server:null,data:null}],status:e,error:t,errors:[],route:null})}catch(e){if(e instanceof l)return vt(new URL(e.location,location.href),{},0);throw e}}async function Mt(e){let t=e.href;if(tt.has(t))return tt.get(t);let n;try{let r=(async()=>{let t=await B.hooks.reroute({url:new URL(e),fetch:async(t,n)=>wt(t,n,e).promise})??e;if(typeof t==`string`){let n=new URL(e);B.hash?n.hash=t:n.pathname=t,t=n}return t})();tt.set(t,r),n=await r}catch{tt.delete(t);return}return n}async function Nt(e,t){if(e&&!ke(e,w,B.hash)){let n=await Mt(e);if(!n)return;let r=Pt(n);for(let n of Ye){let i=n.exec(r);if(i)return{id:Ft(e),invalidating:t,route:n,params:p(i),url:e}}}}function Pt(e){return f(B.hash?e.hash.replace(/^#/,``).replace(/[?#].+/,``):e.pathname.slice(w.length))||`/`}function Ft(e){return(B.hash?e.hash.replace(/^#/,``):e.pathname)+e.search}function It({url:e,type:t,intent:n,delta:r,event:i,scroll:a}){let o=!1,s=Jt(G,n,e,t,a??null);r!==void 0&&(s.navigation.delta=r),i!==void 0&&(s.navigation.event=i);let c={...s.navigation,cancel:()=>{o=!0,s.reject(Error(`navigation cancelled`))}};return K||nt.forEach(e=>e(c)),o?null:s}async function Z({type:e,url:t,popped:i,keepfocus:a,noscroll:o,replace_state:s,state:c={},redirect_count:l=0,nav_token:d={},accept:f=g,block:p=g,event:m}){let h=X;X=d;let _=await Nt(t,!1),v=e===`enter`?Jt(G,_,t,e):It({url:t,type:e,delta:i?.delta,intent:_,scroll:i?.scroll,event:m});if(!v){p(),X===d&&(X=h);return}let ee=J,y=Y;f(),K=!0,at&&v.navigation.type!==`enter`&&I.navigating.set(M.current=v.navigation);let b=_&&await kt(_);if(!b){if(ke(t,w,B.hash))return await L(t,s);b=await Lt(t,{id:null},await $(new u(404,`Not Found`,`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,s)}if(t=_?.url||t,X!==d)return v.reject(Error(`navigation aborted`)),!1;if(b.type===`redirect`){if(l<20){await Z({type:e,url:new URL(b.location,t),popped:i,keepfocus:a,noscroll:o,replace_state:s,state:c,redirect_count:l+1,nav_token:d}),v.fulfil(void 0);return}b=await jt({status:500,error:await $(Error(`Redirect loop`),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else b.props.page.status>=400&&await I.updated.check()&&(await Je(),await L(t,s));if(mt(),Ke(ee),ht(y),b.props.page.url.pathname!==t.pathname&&(t.pathname=b.props.page.url.pathname),c=i?i.state:c,!i){let e=+!s,n={[T]:J+=e,[E]:Y+=e,[ye]:c};(s?history.replaceState:history.pushState).call(history,n,``,t),s||qe(J,Y)}let x=_&&U?.id===_.id?U.fork:null;U?.fork&&!x?et():(U=null,Q={element:void 0,href:void 0}),b.props.page.state=c;let S;if(at){let e=(await Promise.all(Array.from(rt,e=>e(v.navigation)))).filter(e=>typeof e==`function`);if(e.length>0){function t(){e.forEach(e=>{W.delete(e)})}e.push(t),e.forEach(e=>{W.add(e)})}let r=v.navigation.to;G={...b.state,nav:{params:r.params,route:r.route,url:r.url}},b.props.page&&(b.props.page.url=t);let i=x&&await x;i?S=i.commit():(N=null,lt.$set(b.props),N&&Object.assign(b.props.page,N),Be(b.props.page),S=n?.()),st=!0}else await xt(b,Ze,!1);let{activeElement:te}=document;if(await S,await r(),await r(),X!==d)return v.reject(Error(`navigation aborted`)),!1;b.props.page&&N&&Object.assign(b.props.page,N);let C=null;if(ot){let e=i?i.scroll:o?k():null;e?scrollTo(e.x,e.y):(C=t.hash&&document.getElementById(Zt(t)))?C.scrollIntoView():scrollTo(0,0)}let ne=document.activeElement!==te&&document.activeElement!==document.body;!a&&!ne&&qt(t,!C),ot=!0,K=!1,e===`popstate`&>(Y),v.fulfil(void 0),v.navigation.to&&(v.navigation.to.scroll=k()),W.forEach(e=>e(v.navigation)),I.navigating.set(M.current=null)}async function Lt(e,t,n,r,i){return e.origin===O&&e.pathname===location.pathname&&!it?await jt({status:r,error:n,url:e,route:t}):await L(e,i)}var Q={element:void 0,href:void 0};function Rt(){let e,t;z.addEventListener(`mousemove`,t=>{let n=t.target;clearTimeout(e),e=setTimeout(()=>{i(n,D.hover)},20)});function n(e){e.defaultPrevented||i(e.composedPath()[0],D.tap)}z.addEventListener(`mousedown`,n),z.addEventListener(`touchstart`,n,{passive:!0});let r=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&(bt(new URL(t.target.href)),r.unobserve(t.target))},{threshold:0});async function i(e,n){let r=Ce(e,z),i=r===Q.element&&r?.href===Q.href&&n>=t;if(!r||i)return;let{url:a,external:o,download:s}=we(r,w,B.hash);if(o||s)return;let c=Te(r),l=a&&Ft(G.url)===Ft(a);if(!(c.reload||l))if(n<=c.preload_data){Q={element:r,href:r.href},t=D.tap;let e=await Nt(a,!1);if(!e)return;yt(e)}else n<=c.preload_code&&(Q={element:r,href:r.href},t=n,bt(a))}function a(){r.disconnect();for(let e of z.querySelectorAll(`a`)){let{url:t,external:n,download:i}=we(e,w,B.hash);if(n||i)continue;let a=Te(e);a.reload||(a.preload_code===D.viewport&&r.observe(e),a.preload_code===D.eager&&bt(t))}}W.add(a),a()}function $(e,t){if(e instanceof c)return e.body;let n=Fe(e),r=Ie(e);return B.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function zt(e,t){Ue(()=>(e.add(t),()=>{e.delete(t)}))}function Bt(e){zt(W,e)}function Vt(e,t={}){return e=new URL(be(e)),e.origin===O?vt(e,t,0):Promise.reject(Error(`goto: invalid URL`))}function Ht(e){if(typeof e==`function`)V.push(e);else{let{href:t}=new URL(e,location.href);V.push(e=>e.href===t)}}function Ut(){history.scrollRestoration=`manual`,addEventListener(`beforeunload`,e=>{let t=!1;if(_t(),!K){let e=Jt(G,void 0,null,`leave`),n={...e.navigation,cancel:()=>{t=!0,e.reject(Error(`navigation cancelled`))}};nt.forEach(e=>e(n))}t?(e.preventDefault(),e.returnValue=``):history.scrollRestoration=`auto`}),addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&_t()}),navigator.connection?.saveData||Rt(),z.addEventListener(`click`,async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;let n=Ce(t.composedPath()[0],z);if(!n)return;let{url:r,external:i,target:a,download:o}=we(n,w,B.hash);if(!r)return;if(a===`_parent`||a===`_top`){if(window.parent!==window)return}else if(a&&a!==`_self`)return;let s=Te(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol===`https:`||r.protocol===`http:`)||o)return;let[c,l]=(B.hash?r.hash.replace(/^#/,``):r.href).split(`#`),u=c===m(location);if(i||s.reload&&(!u||!l)){It({url:r,type:`link`,event:t})?K=!0:t.preventDefault();return}if(l!==void 0&&u){let[,i]=G.url.href.split(`#`);if(i===l){if(t.preventDefault(),l===``||l===`top`&&n.ownerDocument.getElementById(`top`)===null)scrollTo({top:0});else{let e=n.ownerDocument.getElementById(decodeURIComponent(l));e&&(e.scrollIntoView(),e.focus())}return}if(q=!0,Ke(J),e(r),!s.replace_state)return;q=!1}t.preventDefault(),await new Promise(e=>{requestAnimationFrame(()=>{setTimeout(e,0)}),setTimeout(e,100)}),await Z({type:`link`,url:r,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??r.href===location.href,event:t})}),z.addEventListener(`submit`,e=>{if(e.defaultPrevented)return;let t=HTMLFormElement.prototype.cloneNode.call(e.target),n=e.submitter;if((n?.formTarget||t.target)===`_blank`||(n?.formMethod||t.method)!==`get`)return;let r=new URL(n?.hasAttribute(`formaction`)&&n?.formAction||t.action);if(ke(r,w,!1))return;let i=e.target,a=Te(i);if(a.reload)return;e.preventDefault(),e.stopPropagation();let o=new FormData(i,n);r.search=new URLSearchParams(o).toString(),Z({type:`form`,url:r,keepfocus:a.keepfocus,noscroll:a.noscroll,replace_state:a.replace_state??r.href===location.href,event:e})}),addEventListener(`popstate`,async t=>{if(!Kt)if(t.state?.[`sveltekit:history`]){let n=t.state[T];if(X={},n===J)return;let r=P[n],i=t.state[`sveltekit:states`]??{},a=new URL(t.state[`sveltekit:pageurl`]??location.href),o=t.state[E],s=G.url?m(location)===m(G.url):!1;if(o===Y&&(st||s)){i!==j.state&&(j.state=i),e(a),P[J]=k(),r&&scrollTo(r.x,r.y),J=n;return}let c=n-J;await Z({type:`popstate`,url:a,popped:{state:i,scroll:r,delta:c},accept:()=>{J=n,Y=o},block:()=>{history.go(-c)},nav_token:X,event:t})}else q||(e(new URL(location.href)),B.hash&&location.reload())}),addEventListener(`hashchange`,()=>{q&&(q=!1,history.replaceState({...history.state,[T]:++J,[E]:Y},``,location.href))});for(let e of document.querySelectorAll(`link`))Ge.has(e.rel)&&(e.href=e.href);addEventListener(`pageshow`,e=>{e.persisted&&I.navigating.set(M.current=null)});function e(e){G.url=j.url=e,I.page.set(Yt(j)),I.page.notify()}}async function Wt(e,{status:t=200,error:n,node_ids:r,params:i,route:a,server_route:o,data:s,form:c}){it=!0;let u=new URL(location.href),d;({params:i={},route:a={id:null}}=await Nt(u,!1)||{}),d=Ye.find(({id:e})=>e===a.id);let f,p=!0;try{let e=r.map(async(t,n)=>{let r=s[n];return r?.uses&&(r.uses=Gt(r.uses)),Ct({loader:B.nodes[t],url:u,params:i,route:a,parent:async()=>{let t={};for(let r=0;r<n;r+=1)Object.assign(t,(await e[r]).data);return t},server_data_node:Et(r)})}),o=await Promise.all(e);if(d){let e=d.layouts;for(let t=0;t<e.length;t++)e[t]||o.splice(t,0,void 0)}f=await St({url:u,params:i,branch:o,status:t,error:n,errors:d?.errors,form:c,route:d??null})}catch(t){if(t instanceof l){await L(new URL(t.location,location.href));return}f=await jt({status:Fe(t),error:await $(t,{url:u,params:i,route:a}),url:u,route:a}),e.textContent=``,p=!1}f.props.page&&(f.props.page.state={}),await xt(f,e,p)}function Gt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}var Kt=!1;function qt(e,t=!0){let n=document.querySelector(`[autofocus]`);if(n)n.focus();else{let n=Zt(e);if(n&&document.getElementById(n)){let{x:r,y:i}=k();setTimeout(()=>{let a=history.state;Kt=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(a,``,e),t&&scrollTo(r,i),Kt=!1})}else{let e=document.body,t=e.getAttribute(`tabindex`);e.tabIndex=-1,e.focus({preventScroll:!0,focusVisible:!1}),t===null?e.removeAttribute(`tabindex`):e.setAttribute(`tabindex`,t)}let r=getSelection();if(r&&r.type!==`None`){let e=[];for(let t=0;t<r.rangeCount;t+=1)e.push(r.getRangeAt(t));setTimeout(()=>{if(r.rangeCount===e.length){for(let t=0;t<r.rangeCount;t+=1){let n=e[t],i=r.getRangeAt(t);if(n.commonAncestorContainer!==i.commonAncestorContainer||n.startContainer!==i.startContainer||n.endContainer!==i.endContainer||n.startOffset!==i.startOffset||n.endOffset!==i.endOffset)return}r.removeAllRanges()}})}}}function Jt(e,t,n,r,i=null){let a,o,s=new Promise((e,t)=>{a=e,o=t});return s.catch(g),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:k()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:i},willUnload:!t,type:r,complete:s},fulfil:a,reject:o}}function Yt(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function Xt(e){let t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function Zt(e){let t;if(B.hash){let[,,n]=e.hash.split(`#`,3);t=n??``}else t=e.hash.slice(1);return decodeURIComponent(t)}export{M as a,Ae as c,c as d,I as i,pe as l,Vt as n,j as o,pt as r,Le as s,Bt as t,he as u};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),u=Array.isArray,d=Array.prototype.indexOf,f=Array.prototype.includes,p=Array.from,m=Object.defineProperty,h=Object.getOwnPropertyDescriptor,g=Object.getOwnPropertyDescriptors,_=Object.prototype,v=Array.prototype,y=Object.getPrototypeOf,b=Object.isExtensible,x=()=>{};function S(e){return e()}function ee(e){for(var t=0;t<e.length;t++)e[t]()}function te(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function ne(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}var C=1024,w=2048,re=4096,ie=8192,ae=16384,oe=32768,se=1<<25,ce=65536,le=1<<19,ue=1<<20,de=1<<25,fe=65536,pe=1<<21,me=1<<22,he=1<<23,ge=Symbol(`$state`),_e=Symbol(`legacy props`),ve=Symbol(``),ye=Symbol(`proxy path`),be=Symbol(`attributes`),xe=Symbol(`class`),Se=Symbol(`style`),Ce=Symbol(`text`),we=Symbol(`form reset`),Te=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ee=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function De(e){throw Error(`https://svelte.dev/e/experimental_async_required`)}function Oe(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function ke(){throw Error(`https://svelte.dev/e/missing_context`)}function Ae(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function je(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function Me(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function Ne(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function Pe(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function Fe(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function Ie(){throw Error(`https://svelte.dev/e/fork_discarded`)}function Le(){throw Error(`https://svelte.dev/e/fork_timing`)}function Re(){throw Error(`https://svelte.dev/e/get_abort_signal_outside_reaction`)}function ze(){throw Error(`https://svelte.dev/e/hydration_failed`)}function Be(e){throw Error(`https://svelte.dev/e/lifecycle_legacy_only`)}function Ve(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function He(){throw Error(`https://svelte.dev/e/set_context_after_init`)}function Ue(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function We(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Ge(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Ke(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var qe={},T=Symbol(`uninitialized`),Je=`http://www.w3.org/1999/xhtml`;function Ye(){console.warn(`https://svelte.dev/e/derived_inert`)}function Xe(e){console.warn(`https://svelte.dev/e/hydratable_missing_but_expected`)}function Ze(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Qe(){console.warn(`https://svelte.dev/e/select_multiple_invalid_value`)}function $e(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var E=!1;function D(e){E=e}var O;function k(e){if(e===null)throw Ze(),qe;return O=e}function et(){return k(z(O))}function tt(e){if(E){if(z(O)!==null)throw Ze(),qe;O=e}}function nt(e=1){if(E){for(var t=e,n=O;t--;)n=z(n);O=n}}function rt(e=!0){for(var t=0,n=O;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=z(n);e&&n.remove(),n=i}}function it(e){if(!e||e.nodeType!==8)throw Ze(),qe;return e.data}function at(e){return e===this.v}function ot(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function st(e){return!ot(e,this.v)}var A=!1,ct=!1;function lt(){ct=!0}function ut(e,t){return e.label=t,dt(e.v,t),e}function dt(e,t){return e?.[ye]?.(t),e}var j=null;function ft(e){j=e}function pt(){let e={};return[()=>(gt(e)||ke(),mt(e)),t=>ht(e,t)]}function mt(e){return xt(`getContext`).get(e)}function ht(e,t){let n=xt(`setContext`);if(A){var r=K.f;!U&&r&32&&!j.i||He()}return n.set(e,t),t}function gt(e){return xt(`hasContext`).has(e)}function _t(){return xt(`getAllContexts`)}function vt(e,t=!1,n){j={p:j,i:!1,c:null,e:null,s:e,x:null,r:K,l:ct&&!t?{s:null,u:null,$:[]}:null}}function yt(e){var t=j,n=t.e;if(n!==null){t.e=null;for(var r of n)sr(r)}return e!==void 0&&(t.x=e),t.i=!0,j=t.p,e??{}}function bt(){return!ct||j!==null&&j.l===null}function xt(e){return j===null&&Oe(e),j.c??=new Map(St(j)||void 0)}function St(e){let t=e.p;for(;t!==null;){let e=t.c;if(e!==null)return e;t=t.p}return null}var Ct=[];function wt(){var e=Ct;Ct=[],ee(e)}function Tt(e){if(Ct.length===0&&!sn){var t=Ct;queueMicrotask(()=>{t===Ct&&wt()})}Ct.push(e)}function Et(){for(;Ct.length>0;)wt()}function Dt(e){var t=K;if(t===null)return U.f|=he,e;if(!(t.f&32768)&&!(t.f&4))throw e;Ot(e,t)}function Ot(e,t){if(!(t!==null&&t.f&16384)){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}}var kt=~(w|re|C);function M(e,t){e.f=e.f&kt|t}function At(e){e.f&512||e.deps===null?M(e,C):M(e,re)}function jt(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=fe,jt(t.deps))}function Mt(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),jt(e.deps),M(e,C)}var Nt=[];function Pt(e,t=x){let n=null,r=new Set;function i(t){if(ot(e,t)&&(e=t,n)){let t=!Nt.length;for(let t of r)t[1](),Nt.push(t,e);if(t){for(let e=0;e<Nt.length;e+=2)Nt[e][0](Nt[e+1]);Nt.length=0}}}function a(t){i(t(e))}function o(o,s=x){let c=[o,s];return r.add(c),r.size===1&&(n=t(i,a)||x),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}var Ft=!1,It=!1;function Lt(e){var t=It;try{return It=!1,[e(),It]}finally{It=t}}function Rt(e){let t=0,n=On(0),r;return()=>{ir()&&(Q(n),fr(()=>(t===0&&(r=$(()=>e(()=>Nn(n)))),t+=1,()=>{Tt(()=>{--t,t===0&&(r?.(),r=void 0,Nn(n))})})))}}var zt=ce|le;function Bt(e,t,n,r){new Vt(e,t,n,r)}var Vt=class{parent;is_pending=!1;transform_error;#e;#t=E?O:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=Rt(()=>(this.#m=On(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=K;t.b=this,t.f|=128,n(e)},this.parent=K.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=mr(()=>{if(E){let e=this.#t;et();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},zt),E&&(this.#e=O)}#g(){try{this.#a=V(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=V(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=V(()=>e(this.#e)),Tt(()=>{var e=this.#c=document.createDocumentFragment(),t=L();e.append(t),this.#a=this.#x(()=>V(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,br(this.#o,()=>{this.#o=null}),this.#b(N))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=V(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();wr(this.#a,e);let t=this.#n.pending;this.#o=V(()=>t(this.#e))}else this.#b(N)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){Mt(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=K,n=U,r=j;q(this.#i),G(this.#i),ft(this.#i.ctx);try{return pn.ensure(),e()}catch(e){return Dt(e),null}finally{q(t),G(n),ft(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&br(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Tt(()=>{this.#d=!1,this.#m&&jn(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),Q(this.#m)}error(e){if(!this.#n.onerror&&!this.#n.failed)throw e;N?.is_fork?(this.#a&&N.skip_effect(this.#a),this.#o&&N.skip_effect(this.#o),this.#s&&N.skip_effect(this.#s),N.oncommit(()=>{this.#C(e)})):this.#C(e)}#C(e){this.#a&&=(H(this.#a),null),this.#o&&=(H(this.#o),null),this.#s&&=(H(this.#s),null),E&&(k(this.#t),nt(),k(rt()));var t=this.#n.onerror;let n=this.#n.failed;var r=!1,i=!1;let a=()=>{if(r){$e();return}r=!0,i&&Ke(),this.#s!==null&&br(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){Ot(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return V(()=>{var t=K;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return Ot(e,this.#i.parent),null}}))};Tt(()=>{var t;try{t=this.transform_error(e)}catch(e){Ot(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>Ot(e,this.#i&&this.#i.parent)):o(t)})}};function Ht(e,t,n,r){let i=bt()?Kt:Xt;var a=e.filter(e=>!e.settled),o=t.map(i);if(n.length===0&&a.length===0){r(o);return}var s=K,c=Ut(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function u(e){if(!(s.f&16384)){c();try{r([...o,...e])}catch(e){Ot(e,s)}Wt()}}var d=Gt();if(n.length===0){l.then(()=>u([])).finally(d);return}function f(){Promise.all(n.map(e=>Jt(e))).then(u).catch(e=>Ot(e,s)).finally(d)}l?l.then(()=>{c(),f(),Wt()}):f()}function Ut(){var e=K,t=U,n=j,r=N;return function(i=!0){q(e),G(t),ft(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Wt(e=!0){q(null),G(null),ft(null),e&&N?.deactivate()}function Gt(){var e=K,t=e.b,n=N,r=!!t?.is_rendered();return t?.update_pending_count(1,n),n.increment(r,e),()=>{t?.update_pending_count(-1,n),n.decrement(r,e)}}function Kt(e){var t=2|w;return K!==null&&(K.f|=le),{ctx:j,deps:null,effects:null,equals:at,f:t,fn:e,reactions:null,rv:0,v:T,wv:0,parent:K,ac:null}}var qt=Symbol(`obsolete`);function Jt(e,t,n){let r=K;r===null&&Ae();var i=void 0,a=On(T),o=!U,s=new Set;return dr(()=>{var t=K,n=te();i=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==Te&&n.reject(e)}).finally(Wt)}catch(e){n.reject(e),Wt()}var c=N;if(o){if(t.f&32768)var l=Gt();if(r.b?.is_rendered())c.async_deriveds.get(t)?.reject(qt);else for(let e of s.values())e.reject(qt);s.add(n),c.async_deriveds.set(t,n)}let u=(e,t=void 0)=>{l?.(),s.delete(n),t!==qt&&(c.activate(),t?(a.f|=he,jn(a,t)):(a.f&8388608&&(a.f^=he),jn(a,e)),c.deactivate())};n.promise.then(u,e=>u(null,e||`unknown`))}),ar(()=>{for(let e of s)e.reject(qt)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function Yt(e){let t=Kt(e);return A||kr(t),t}function Xt(e){let t=Kt(e);return t.equals=st,t}function Zt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)H(t[n])}}function Qt(e){var t,n=K,r=e.parent;if(!Dr&&r!==null&&e.v!==T&&r.f&24576)return Ye(),e.v;q(r);try{e.f&=~fe,Zt(e),t=Rr(e)}finally{q(n)}return t}function $t(e){var t=Qt(e);if(!e.equals(t)&&(e.wv=Fr(),(!N?.is_fork||e.deps===null)&&(N===null?e.v=t:(N.capture(e,t,!0),an?.capture(e,t,!0)),e.deps===null))){M(e,C);return}Dr||(P===null?At(e):(ir()||N?.is_fork)&&P.set(e,t))}function en(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(Te),t.fn!==null&&(t.teardown=x),t.ac=null,Br(t,0),gr(t))}function tn(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&t.fn!==null&&Vr(t)}var nn=null,rn=null,N=null,an=null,P=null,on=null,sn=!1,cn=!1,ln=null,un=null,dn=0,fn=1,pn=class e{id=fn++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;#r=new Set;#i=new Set;#a=0;#o=new Map;#s=null;#c=[];#l=[];#u=new Set;#d=new Set;#f=new Map;#p=new Set;is_fork=!1;#m=!1;constructor(){rn===null?nn=rn=this:(rn.#n=this,this.#t=rn),rn=this}#h(){if(this.is_fork)return!0;for(let n of this.#o.keys()){for(var e=n,t=!1;e.parent!==null;){if(this.#f.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#f.has(e)||this.#f.set(e,{d:[],m:[]}),this.#p.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#f.get(e);if(n){this.#f.delete(e);for(var r of n.d)M(r,w),t(r);for(r of n.m)M(r,re),t(r)}this.#p.add(e)}#g(){this.#e=!0,dn++>1e3&&(this.#S(),hn());for(let e of this.#u)this.#d.delete(e),M(e,w),this.schedule(e);for(let e of this.#d)M(e,re),this.schedule(e);let t=this.#c;this.#c=[],this.apply();var n=ln=[],r=[],i=un=[];for(let e of t)try{this.#_(e,n,r)}catch(t){throw Sn(e),this.#h()||this.discard(),t}if(N=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(ln=null,un=null,this.#h()){this.#b(r),this.#b(n);for(let[e,t]of this.#f)xn(e,t);i.length>0&&N.#g();return}let o=this.#v();if(o){this.#b(r),this.#b(n),o.#y(this);return}this.#u.clear(),this.#d.clear();for(let e of this.#r)e(this);this.#r.clear(),an=this,gn(r),gn(n),an=null,this.#s?.resolve();var s=N;if(this.#a===0&&(this.#c.length===0||s!==null)&&(this.#S(),A&&(this.#x(),N=s)),this.#c.length>0)if(s!==null){let e=s;e.#c.push(...this.#c.filter(t=>!e.#c.includes(t)))}else s=this;s!==null&&s.#g()}#_(e,t,n){e.f^=C;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#f.has(r))&&r.fn!==null){a?r.f^=C:i&4?t.push(r):A&&i&16777224?n.push(r):Ir(r)&&(i&16&&this.#d.add(r),Vr(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#v(){for(var e=this.#t;e!==null;){if(!e.is_fork){for(let[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e}e=e.#t}return null}#y(e){for(let[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(let[t,n]of e.async_deriveds){let e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve).catch(e.reject)}e.async_deriveds.clear(),this.transfer_effects(e.#u,e.#d);let t=e=>{var n=e.reactions;if(n!==null)for(let e of n){var r=e.f;if(r&2)t(e);else{var i=e;r&4194320&&!this.async_deriveds.has(i)&&(this.#d.delete(i),M(i,w),this.schedule(i))}}};for(let e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#S(),N=this,this.#g()}#b(e){for(var t=0;t<e.length;t+=1)Mt(e[t],this.#u,this.#d)}capture(e,t,n=!1){e.v!==T&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),P?.set(e,t)),this.is_fork||(e.v=t)}activate(){N=this}deactivate(){N=null,P=null}flush(){try{cn=!0,N=this,this.#g()}finally{dn=0,on=null,ln=null,un=null,cn=!1,N=null,P=null,Tn.clear()}}discard(){for(let e of this.#i)e(this);this.#i.clear();for(let e of this.async_deriveds.values())e.reject(qt);this.#S(),this.#s?.resolve()}register_created_effect(e){this.#l.push(e)}#x(){for(let u=nn;u!==null;u=u.#n){var e=u.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(u.current.has(r)){var n=u.current.get(r)[0];if(e&&i!==n)u.current.set(r,[i,a]);else continue}t.push(r)}if(e)for(let[e,t]of this.async_deriveds){let n=u.async_deriveds.get(e);n&&t.promise.then(n.resolve).catch(n.reject)}var r=[...u.current.keys()].filter(e=>!u.current.get(e)[1]);if(!(!u.#e||r.length===0)){var i=r.filter(e=>!this.current.has(e));if(i.length===0)e&&u.discard();else if(t.length>0){if(e)for(let e of this.#p)u.unskip_effect(e,e=>{e.f&4194320?u.schedule(e):u.#b([e])});u.activate();var a=new Set,o=new Map;for(var s of t)_n(s,i,a,o);o=new Map;var c=[...u.current].filter(([e,t])=>{let n=this.current.get(e);return n?n[0]!==t[0]||n[1]!==t[1]:!0}).map(([e])=>e);if(c.length>0)for(let e of this.#l)!(e.f&155648)&&yn(e,c,o)&&(e.f&4194320?(M(e,w),u.schedule(e)):u.#u.add(e));if(u.#c.length>0&&!u.#m){u.apply();for(var l of u.#c)u.#_(l,[],[]);u.#c=[]}u.deactivate()}}}}increment(e,t){if(this.#a+=1,e){let e=this.#o.get(t)??0;this.#o.set(t,e+1)}}decrement(e,t){if(--this.#a,e){let e=this.#o.get(t)??0;e===1?this.#o.delete(t):this.#o.set(t,e-1)}this.#m||(this.#m=!0,Tt(()=>{this.#m=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(let t of e)this.#u.add(t);for(let e of t)this.#d.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#i.add(e)}settled(){return(this.#s??=te()).promise}static ensure(){if(N===null){let t=N=new e;!cn&&!sn&&Tt(()=>{t.#e||t.flush()})}return N}apply(){if(!A||!this.is_fork&&this.#t===null&&this.#n===null){P=null;return}P=new Map;for(let[e,[t]]of this.current)P.set(e,t);for(let t=nn;t!==null;t=t.#n)if(!(t===this||t.is_fork)){var e=!1;if(t.id<this.id){for(let[n,[,r]]of t.current)if(!r&&this.current.has(n)){e=!0;break}}if(!e)for(let[e,n]of t.previous)P.has(e)||P.set(e,n)}}schedule(e){if(on=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(ln!==null&&t===K&&(A||(U===null||!(U.f&2))&&!Ft))return;if(n&96){if(!(n&1024))return;t.f^=C}}this.#c.push(t)}#S(){if(this.linked){var e=this.#t,t=this.#n;e===null?nn=t:e.#n=t,t===null?rn=e:t.#t=e,this.linked=!1}}};function mn(e){var t=sn;sn=!0;try{var n;for(e&&(N!==null&&!N.is_fork&&N.flush(),n=e());;){if(Et(),N===null)return n;N.flush()}}finally{sn=t}}function hn(){try{Fe()}catch(e){Ot(e,on)}}var F=null;function gn(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Ir(r)&&(F=new Set,Vr(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&yr(r),F?.size>0)){Tn.clear();for(let e of F){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)F.has(n)&&(F.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||Vr(n)}}F.clear()}}F=null}}function _n(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?_n(i,t,n,r):e&4194320&&!(e&2048)&&yn(i,t,r)&&(M(i,w),bn(i))}}function vn(e,t){if(e.reactions!==null)for(let n of e.reactions){let e=n.f;e&2?vn(n,t):e&131072&&(M(n,w),t.add(n))}}function yn(e,t,n){let r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(let r of e.deps){if(f.call(t,r))return!0;if(r.f&2&&yn(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function bn(e){N.schedule(e)}function xn(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),M(e,C);for(var n=e.first;n!==null;)xn(n,t),n=n.next}}function Sn(e){M(e,C);for(var t=e.first;t!==null;)Sn(t),t=t.next}function Cn(e){A||De(`fork`),N!==null&&Le();var t=pn.ensure();t.is_fork=!0,P=new Map;var n=!1,r=t.settled();return mn(e),{commit:async()=>{if(n){await r;return}t.linked||Ie(),n=!0,t.is_fork=!1;for(var[e,[i]]of t.current)e.v=i,e.wv=Fr();mn(()=>{var e=new Set;for(var n of t.current.keys())vn(n,e);En(e),Mn()}),t.flush(),await r},discard:()=>{for(var e of t.current.keys())e.wv=Fr();!n&&t.linked&&t.discard()}}}var wn=new Set,Tn=new Map;function En(e){wn=e}var Dn=!1;function On(e,t){return{f:0,v:e,reactions:null,equals:at,rv:0,wv:0}}function kn(e,t){let n=On(e,t);return kr(n),n}function An(e,t=!1,n=!0){let r=On(e);return t||(r.equals=st),ct&&n&&j!==null&&j.l!==null&&(j.l.s??=[]).push(r),r}function I(e,t,n=!1){return U!==null&&(!W||U.f&131072)&&bt()&&U.f&4325394&&(J===null||!J.has(e))&&Ge(),jn(e,n?Fn(t):t,un)}function jn(e,t,n=null){if(!e.equals(t)){Tn.set(e,Dr?t:e.v);var r=pn.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&Qt(t),P===null&&At(t)}e.wv=Fr(),Pn(e,w,n),bt()&&K!==null&&K.f&1024&&!(K.f&96)&&(Z===null?Ar([e]):Z.push(e)),!r.is_fork&&wn.size>0&&!Dn&&Mn()}return t}function Mn(){Dn=!1;for(let e of wn){e.f&1024&&M(e,re);let t;try{t=Ir(e)}catch{t=!0}t&&Vr(e)}wn.clear()}function Nn(e){I(e,e.v+1)}function Pn(e,t,n){var r=e.reactions;if(r!==null)for(var i=bt(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===K)){var l=(c&w)===0;if(l&&M(s,t),c&131072)wn.add(s);else if(c&2){var u=s;P?.delete(u),c&65536||(c&512&&(K===null||!(K.f&2097152))&&(s.f|=fe),Pn(u,re,n))}else if(l){var d=s;c&16&&F!==null&&F.add(d),n===null?bn(d):n.push(d)}}}}function Fn(e){if(typeof e!=`object`||!e||ge in e)return e;let t=y(e);if(t!==_&&t!==v)return e;var n=new Map,r=u(e),i=kn(0),a=null,o=Nr,s=e=>{if(Nr===o)return e();var t=U,n=Nr;G(null),Pr(o);var r=e();return G(t),Pr(n),r};return r&&n.set(`length`,kn(e.length,a)),new Proxy(e,{defineProperty(e,t,r){(!(`value`in r)||r.configurable===!1||r.enumerable===!1||r.writable===!1)&&Ue();var i=n.get(t);return i===void 0?s(()=>{var e=kn(r.value,a);return n.set(t,e),e}):I(i,r.value,!0),!0},deleteProperty(e,t){var r=n.get(t);if(r===void 0){if(t in e){let e=s(()=>kn(T,a));n.set(t,e),Nn(i)}}else I(r,T),Nn(i);return!0},get(t,r,i){if(r===ge)return e;var o=n.get(r),c=r in t;if(o===void 0&&(!c||h(t,r)?.writable)&&(o=s(()=>kn(Fn(c?t[r]:T),a)),n.set(r,o)),o!==void 0){var l=Q(o);return l===T?void 0:l}return Reflect.get(t,r,i)},getOwnPropertyDescriptor(e,t){var r=Reflect.getOwnPropertyDescriptor(e,t);if(r&&`value`in r){var i=n.get(t);i&&(r.value=Q(i))}else if(r===void 0){var a=n.get(t),o=a?.v;if(a!==void 0&&o!==T)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return r},has(e,t){if(t===ge)return!0;var r=n.get(t),i=r!==void 0&&r.v!==T||Reflect.has(e,t);return(r!==void 0||K!==null&&(!i||h(e,t)?.writable))&&(r===void 0&&(r=s(()=>kn(i?Fn(e[t]):T,a)),n.set(t,r)),Q(r)===T)?!1:i},set(e,t,o,c){var l=n.get(t),u=t in e;if(r&&t===`length`)for(var d=o;d<l.v;d+=1){var f=n.get(d+``);f===void 0?d in e&&(f=s(()=>kn(T,a)),n.set(d+``,f)):I(f,T)}if(l===void 0)(!u||h(e,t)?.writable)&&(l=s(()=>kn(void 0,a)),I(l,Fn(o)),n.set(t,l));else{u=l.v!==T;var p=s(()=>Fn(o));I(l,p)}var m=Reflect.getOwnPropertyDescriptor(e,t);if(m?.set&&m.set.call(c,o),!u){if(r&&typeof t==`string`){var g=n.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&I(g,_+1)}Nn(i)}return!0},ownKeys(e){Q(i);var t=Reflect.ownKeys(e).filter(e=>{var t=n.get(e);return t===void 0||t.v!==T});for(var[r,a]of n)a.v!==T&&!(r in e)&&t.push(r);return t},setPrototypeOf(){We()}})}function In(e){try{if(typeof e==`object`&&e&&ge in e)return e[ge]}catch{}return e}function Ln(e,t){return Object.is(In(e),In(t))}new Set([`copyWithin`,`fill`,`pop`,`push`,`reverse`,`shift`,`sort`,`splice`,`unshift`]);var Rn,zn,Bn,Vn;function Hn(){if(Rn===void 0){Rn=window,zn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Bn=h(t,`firstChild`).get,Vn=h(t,`nextSibling`).get,b(e)&&(e[xe]=void 0,e[be]=null,e[Se]=void 0,e.__e=void 0),b(n)&&(n[Ce]=void 0)}}function L(e=``){return document.createTextNode(e)}function R(e){return Bn.call(e)}function z(e){return Vn.call(e)}function Un(e,t){if(!E)return R(e);var n=R(O);if(n===null)n=O.appendChild(L());else if(t&&n.nodeType!==3){var r=L();return n?.before(r),k(r),r}return t&&Yn(n),k(n),n}function Wn(e,t=!1){if(!E){var n=R(e);return n instanceof Comment&&n.data===``?z(n):n}if(t){if(O?.nodeType!==3){var r=L();return O?.before(r),k(r),r}Yn(O)}return O}function Gn(e,t=1,n=!1){let r=E?O:e;for(var i;t--;)i=r,r=z(r);if(!E)return r;if(n){if(r?.nodeType!==3){var a=L();return r===null?i?.after(a):r.before(a),k(a),a}Yn(r)}return k(r),r}function Kn(e){e.textContent=``}function qn(){return!A||F!==null?!1:(K.f&oe)!==0}function Jn(e,t,n){return t==null||t===`http://www.w3.org/1999/xhtml`?n?document.createElement(e,{is:n}):document.createElement(e):n?document.createElementNS(t,e,{is:n}):document.createElementNS(t,e)}function Yn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Xn(e){E&&R(e)!==null&&Kn(e)}var Zn=!1;function Qn(){Zn||(Zn=!0,document.addEventListener(`reset`,e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(let t of e.target.elements)t[we]?.()})},{capture:!0}))}function $n(e,t,n,r=!0){r&&n();for(var i of t)e.addEventListener(i,n);ar(()=>{for(var r of t)e.removeEventListener(r,n)})}function er(e){var t=U,n=K;G(null),q(null);try{return e()}finally{G(t),q(n)}}function tr(e,t,n,r=n){e.addEventListener(t,()=>er(n));let i=e[we];i?e[we]=()=>{i(),r(!0)}:e[we]=()=>r(!0),Qn()}function nr(e){K===null&&(U===null&&Pe(e),Ne()),Dr&&Me(e)}function rr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function B(e,t){var n=K;n!==null&&n.f&8192&&(e|=ie);var r={ctx:j,deps:null,nodes:null,f:e|w|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};N?.register_created_effect(r);var i=r;if(e&4)ln===null?pn.ensure().schedule(r):ln.push(r);else if(t!==null){try{Vr(r)}catch(e){throw H(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ce))}if(i!==null&&(i.parent=n,n!==null&&rr(i,n),U!==null&&U.f&2&&!(e&64))){var a=U;(a.effects??=[]).push(i)}return r}function ir(){return U!==null&&!W}function ar(e){let t=B(8,null);return M(t,C),t.teardown=e,t}function or(e){nr(`$effect`);var t=K.f;if(!U&&t&32&&j!==null&&!j.i){var n=j;(n.e??=[]).push(e)}else return sr(e)}function sr(e){return B(4|ue,e)}function cr(e){return nr(`$effect.pre`),B(8|ue,e)}function lr(e){pn.ensure();let t=B(64|le,e);return(e={})=>new Promise(n=>{e.outro?br(t,()=>{H(t),n(void 0)}):(H(t),n(void 0))})}function ur(e){return B(4,e)}function dr(e){return B(me|le,e)}function fr(e,t=0){return B(8|t,e)}function pr(e,t=[],n=[],r=[]){Ht(r,t,n,t=>{B(8,()=>{e(...t.map(Q))})})}function mr(e,t=0){return B(16|t,e)}function V(e){return B(32|le,e)}function hr(e){var t=e.teardown;if(t!==null){let e=Dr,n=U;Or(!0),G(null);try{t.call(null)}finally{Or(e),G(n)}}}function gr(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&er(()=>{e.abort(Te)});var r=n.next;n.f&64?n.parent=null:H(n,t),n=r}}function _r(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||H(t),t=n}}function H(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(vr(e.nodes.start,e.nodes.end),n=!0),e.f|=se,gr(e,t&&!n),Br(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();hr(e),e.f^=se,e.f|=ae;var i=e.parent;i!==null&&i.first!==null&&yr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function vr(e,t){for(;e!==null;){var n=e===t?null:z(e);e.remove(),e=n}}function yr(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function br(e,t,n=!0){var r=[];xr(e,r,!0);var i=()=>{n&&H(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function xr(e,t,n){if(!(e.f&8192)){e.f^=ie;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next;if(!(i.f&64)){var o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;xr(i,t,o?n:!1)}i=a}}}function Sr(e){Cr(e,!0)}function Cr(e,t){if(e.f&8192){e.f^=ie,e.f&1024||(M(e,w),pn.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;Cr(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function wr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:z(n);t.append(n),n=i}}var Tr=null,Er=!1,Dr=!1;function Or(e){Dr=e}var U=null,W=!1;function G(e){U=e}var K=null;function q(e){K=e}var J=null;function kr(e){U!==null&&(!A||U.f&2)&&(J??=new Set).add(e)}var Y=null,X=0,Z=null;function Ar(e){Z=e}var jr=1,Mr=0,Nr=Mr;function Pr(e){Nr=e}function Fr(){return++jr}function Ir(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~fe),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Ir(a)&&$t(a),a.wv>e.wv)return!0}t&512&&P===null&&M(e,C)}return!1}function Lr(e,t,n=!0){var r=e.reactions;if(r!==null&&!(!A&&J!==null&&J.has(e)))for(var i=0;i<r.length;i++){var a=r[i];a.f&2?Lr(a,t,!1):t===a&&(n?M(a,w):a.f&1024&&M(a,re),bn(a))}}function Rr(e){var t=Y,n=X,r=Z,i=U,a=J,o=j,s=W,c=Nr,l=e.f;Y=null,X=0,Z=null,U=l&96?null:e,J=null,ft(e.ctx),W=!1,Nr=++Mr,e.ac!==null&&(er(()=>{e.ac.abort(Te)}),e.ac=null);try{e.f|=pe;var u=e.fn,d=u();e.f|=oe;var f=e.deps,p=N?.is_fork;if(Y!==null){var m;if(p||Br(e,X),f!==null&&X>0)for(f.length=X+Y.length,m=0;m<Y.length;m++)f[X+m]=Y[m];else e.deps=f=Y;if(ir()&&e.f&512)for(m=X;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&X<f.length&&(Br(e,X),f.length=X);if(bt()&&Z!==null&&!W&&f!==null&&!(e.f&6146))for(m=0;m<Z.length;m++)Lr(Z[m],e);if(i!==null&&i!==e){if(Mr++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Mr;if(t!==null)for(let e of t)e.rv=Mr;Z!==null&&(r===null?r=Z:r.push(...Z))}return e.f&8388608&&(e.f^=he),d}catch(e){return Dt(e)}finally{e.f^=pe,Y=t,X=n,Z=r,U=i,J=a,ft(o),W=s,Nr=c}}function zr(e,t){let n=t.reactions;if(n!==null){var r=d.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(n===null&&t.f&2&&(Y===null||!f.call(Y,t))){var a=t;a.f&512&&(a.f^=512,a.f&=~fe),a.v!==T&&At(a),en(a),Br(a,0)}}function Br(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)zr(e,n[r])}function Vr(e){var t=e.f;if(!(t&16384)){M(e,C);var n=K,r=Er;K=e,Er=!0;try{t&16777232?_r(e):gr(e),hr(e);var i=Rr(e);e.teardown=typeof i==`function`?i:null,e.wv=jr}finally{Er=r,K=n}}}async function Hr(){if(A)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),mn()}function Ur(){return pn.ensure().settled()}function Q(e){var t=(e.f&2)!=0;if(Tr?.add(e),U!==null&&!W&&!(K!==null&&K.f&16384)&&(J===null||!J.has(e))){var n=U.deps;if(U.f&2097152)e.rv<Mr&&(e.rv=Mr,Y===null&&n!==null&&n[X]===e?X++:Y===null?Y=[e]:Y.push(e));else{U.deps??=[],f.call(U.deps,e)||U.deps.push(e);var r=e.reactions;r===null?e.reactions=[U]:f.call(r,U)||r.push(U)}}if(Dr&&Tn.has(e))return Tn.get(e);if(t){var i=e;if(Dr){var a=i.v;return(!(i.f&1024)&&i.reactions!==null||Gr(i))&&(a=Qt(i)),Tn.set(i,a),a}var o=(i.f&512)==0&&!W&&U!==null&&(Er||(U.f&512)!=0),s=(i.f&oe)===0;Ir(i)&&(o&&(i.f|=512),$t(i)),o&&!s&&(tn(i),Wr(i))}if(P?.has(e))return P.get(e);if(e.f&8388608)throw e.v;return e.v}function Wr(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(tn(t),Wr(t))}function Gr(e){if(e.v===T)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Tn.has(t)||t.f&2&&Gr(t))return!0;return!1}function $(e){var t=W;try{return W=!0,e()}finally{W=t}}function Kr(e){if(!(typeof e!=`object`||!e||e instanceof EventTarget)){if(ge in e)qr(e);else if(!Array.isArray(e))for(let t in e){let n=e[t];typeof n==`object`&&n&&ge in n&&qr(n)}}}function qr(e,t=new Set){if(typeof e==`object`&&e&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{qr(e[n],t)}catch{}let n=y(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){let t=g(n);for(let n in t){let r=t[n].get;if(r)try{r.call(e)}catch{}}}}}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var Jr=[`touchstart`,`touchmove`];function Yr(e){return Jr.includes(e)}var Xr=Symbol(`events`),Zr=new Set,Qr=new Set;function $r(e,t,n,r={}){function i(e){if(r.capture||ii.call(t,e),!e.cancelBubble)return er(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Tt(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function ei(e,t,n,r,i){var a={capture:r,passive:i},o=$r(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&ar(()=>{t.removeEventListener(e,o,a)})}function ti(e,t,n){(t[Xr]??={})[e]=n}function ni(e){for(var t=0;t<e.length;t++)Zr.add(e[t]);for(var n of Qr)n(e)}var ri=null;function ii(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;ri=e;var o=0,s=ri===e&&e[Xr];if(s){var c=i.indexOf(s);if(c!==-1&&(t===document||t===window)){e[Xr]=t;return}var l=i.indexOf(t);if(l===-1)return;c<=l&&(o=c)}if(a=i[o]||e.target,a!==t){m(e,`currentTarget`,{configurable:!0,get(){return a||n}});var u=U,d=K;G(null),q(null);try{for(var f,p=[];a!==null&&a!==t;){try{var h=a[Xr]?.[r];h!=null&&(!a.disabled||e.target===a)&&h.call(a,e)}catch(e){f?p.push(e):f=e}if(e.cancelBubble)break;o++,a=o<i.length?i[o]:null}if(f){for(let e of p)queueMicrotask(()=>{throw e});throw f}}finally{e[Xr]=t,delete e.currentTarget,G(u),q(d)}}}var ai=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function oi(e){return ai?.createHTML(e)??e}function si(e){var t=Jn(`template`);return t.innerHTML=oi(e.replaceAll(`<!>`,`<!---->`)),t.content}function ci(e,t){var n=K;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function li(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(E)return ci(O,null),O;i===void 0&&(i=si(a?e:`<!>`+e),n||(i=R(i)));var t=r||zn?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=R(t),s=t.lastChild;ci(o,s)}else ci(t,t);return t}}function ui(e=``){if(!E){var t=L(e+``);return ci(t,t),t}var n=O;return n.nodeType===3?Yn(n):(n.before(n=L()),k(n)),ci(n,n),n}function di(){if(E)return ci(O,null),O;var e=document.createDocumentFragment(),t=document.createComment(``),n=L();return e.append(t,n),ci(t,n),e}function fi(e,t){if(E){var n=K;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=O),et();return}e!==null&&e.before(t)}function pi(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e[Ce]??=e.nodeValue)&&(e[Ce]=n,e.nodeValue=`${n}`)}function mi(e,t){return _i(e,t)}function hi(e,t){Hn(),t.intro=t.intro??!1;let n=t.target,r=E,i=O;try{for(var a=R(n);a&&(a.nodeType!==8||a.data!==`[`);)a=z(a);if(!a)throw qe;D(!0),k(a);let r=_i(e,{...t,anchor:a});return D(!1),r}catch(r){if(r instanceof Error&&r.message.split(`
|
|
2
|
+
`).some(e=>e.startsWith(`https://svelte.dev/e/`)))throw r;return r!==qe&&console.warn(`Failed to hydrate: `,r),t.recover===!1&&ze(),Hn(),Kn(n),D(!1),mi(e,t)}finally{D(r),k(i)}}var gi=new Map;function _i(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0,transformError:s}){Hn();var c=void 0,l=lr(()=>{var o=n??t.appendChild(L());Bt(o,{pending:()=>{}},t=>{vt({});var n=j;if(a&&(n.c=a),i&&(r.$$events=i),E&&ci(t,null),c=e(t,r)||{},E&&(K.nodes.end=O,O===null||O.nodeType!==8||O.data!==`]`))throw Ze(),qe;yt()},s);var l=new Set,u=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!l.has(r)){l.add(r);var i=Yr(r);for(let e of[t,document]){var a=gi.get(e);a===void 0&&(a=new Map,gi.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,ii,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return u(p(Zr)),Qr.add(u),()=>{for(var e of l)for(let n of[t,document]){var r=gi.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,ii),r.delete(e),r.size===0&&gi.delete(n)):r.set(e,i)}Qr.delete(u),o!==n&&o.parentNode?.removeChild(o)}});return vi.set(c,l),c}var vi=new WeakMap;function yi(e,t){let n=vi.get(e);return n?(vi.delete(e),n(t)):Promise.resolve()}var bi=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)Sr(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(Sr(r.effect),this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(H(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();wr(r,t),t.append(L()),this.#n.set(e,{effect:r,fragment:t})}else H(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),br(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(H(n.effect),this.#n.delete(e))};ensure(e,t){var n=N,r=qn();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=L();i.append(a),this.#n.set(e,{effect:V(()=>t(a)),fragment:i})}else this.#t.set(e,V(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else E&&(this.anchor=O),this.#a(n)}};function xi(e,t,n=!1){var r;E&&(r=O,et());var i=new bi(e),a=n?ce:0;function o(e,t){if(E){var n=it(r);if(e!==parseInt(n.substring(1))){var a=rt();k(a),i.anchor=a,D(!1),i.ensure(e,t),D(!0);return}}i.ensure(e,t)}mr(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function Si(e,t,n){for(var r=[],i=t.length,a,o=t.length,s=0;s<i;s++){let n=t[s];br(n,()=>{if(a){if(a.pending.delete(n),a.done.add(n),a.pending.size===0){var t=e.outrogroups;Ci(e,p(a.done)),t.delete(a),t.size===0&&(e.outrogroups=null)}}else --o},!1)}if(o===0){var c=r.length===0&&n!==null;if(c){var l=n,u=l.parentNode;Kn(u),u.append(l),e.items.clear()}Ci(e,t,!c)}else a={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(a)}function Ci(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=de,wr(a,document.createDocumentFragment())):H(t[i],n)}}var wi;function Ti(e,t,n,r,i,a=null){var o=e,s=new Map;if(t&4){var c=e;o=E?k(R(c)):c.appendChild(L())}E&&et();var l=null,d=Xt(()=>{var e=n();return u(e)?e:e==null?[]:p(e)}),f,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=l,Di(v,f,o,t,r),l!==null&&(f.length===0?l.f&33554432?(l.f^=de,ki(l,null,o)):Sr(l):br(l,()=>{l=null})))}function _(e){v.pending.delete(e)}var v={effect:mr(()=>{f=Q(d);var e=f.length;let c=!1;E&&it(o)===`[!`!=(e===0)&&(o=rt(),k(o),D(!1),c=!0);for(var u=new Set,p=N,v=qn(),y=0;y<e;y+=1){E&&O.nodeType===8&&O.data===`]`&&(o=O,c=!0,D(!1));var b=f[y],x=r(b,y),S=h?null:s.get(x);S?(S.v&&jn(S.v,b),S.i&&jn(S.i,y),v&&p.unskip_effect(S.e)):(S=Oi(s,h?o:wi??=L(),b,x,y,i,t,n),h||(S.e.f|=de),s.set(x,S)),u.add(x)}if(e===0&&a&&!l&&(h?l=V(()=>a(o)):(l=V(()=>a(wi??=L())),l.f|=de)),e>u.size&&je(``,``,``),E&&e>0&&k(rt()),!h)if(m.set(p,u),v){for(let[e,t]of s)u.has(e)||p.skip_effect(t.e);p.oncommit(g),p.ondiscard(_)}else g(p);c&&D(!0),Q(d)}),flags:t,items:s,pending:m,outrogroups:null,fallback:l};h=!1,E&&(o=O)}function Ei(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Di(e,t,n,r,i){var a=(r&8)!=0,o=t.length,s=e.items,c=Ei(e.effect.first),l,u=null,d,f=[],m=[],h,g,_,v;if(a)for(v=0;v<o;v+=1)h=t[v],g=i(h,v),_=s.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(d??=new Set).add(_));for(v=0;v<o;v+=1){if(h=t[v],g=i(h,v),_=s.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&8192&&(Sr(_),a&&(_.nodes?.a?.unfix(),(d??=new Set).delete(_))),_.f&33554432)if(_.f^=de,_===c)ki(_,null,n);else{var y=u?u.next:c;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Ai(e,u,_),Ai(e,_,y),ki(_,y,n),u=_,f=[],m=[],c=Ei(u.next);continue}if(_!==c){if(l!==void 0&&l.has(_)){if(f.length<m.length){var b=m[0],x;u=b.prev;var S=f[0],ee=f[f.length-1];for(x=0;x<f.length;x+=1)ki(f[x],b,n);for(x=0;x<m.length;x+=1)l.delete(m[x]);Ai(e,S.prev,ee.next),Ai(e,u,S),Ai(e,ee,b),c=b,u=ee,--v,f=[],m=[]}else l.delete(_),ki(_,c,n),Ai(e,_.prev,_.next),Ai(e,_,u===null?e.effect.first:u.next),Ai(e,u,_),u=_;continue}for(f=[],m=[];c!==null&&c!==_;)(l??=new Set).add(c),m.push(c),c=Ei(c.next);if(c===null)continue}_.f&33554432||f.push(_),u=_,c=Ei(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(Ci(e,p(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(c!==null||l!==void 0){var te=[];if(l!==void 0)for(_ of l)_.f&8192||te.push(_);for(;c!==null;)!(c.f&8192)&&c!==e.fallback&&te.push(c),c=Ei(c.next);var ne=te.length;if(ne>0){var C=r&4&&o===0?n:null;if(a){for(v=0;v<ne;v+=1)te[v].nodes?.a?.measure();for(v=0;v<ne;v+=1)te[v].nodes?.a?.fix()}Si(e,te,C)}}a&&Tt(()=>{if(d!==void 0)for(_ of d)_.nodes?.a?.apply()})}function Oi(e,t,n,r,i,a,o,s){var c=o&1?o&16?On(n):An(n,!1,!1):null,l=o&2?On(i):null;return{v:c,i:l,e:V(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function ki(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=z(r);if(a.before(r),r===i)return;r=o}}function Ai(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function ji(e,t,...n){var r=new bi(e);mr(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},ce)}function Mi(e){return(t,...n)=>{var r=e(...n),i;E?(i=O,et()):(i=R(si(r.render().trim())),t.before(i));let a=r.setup?.(i);ci(i,i),typeof a==`function`&&ar(a)}}function Ni(e,t,n){var r;E&&(r=O,et());var i=new bi(e);mr(()=>{var e=t()??null;if(E&&it(r)===`[`!=(e!==null)){var a=rt();k(a),i.anchor=a,D(!1),i.ensure(e,e&&(t=>n(t,e))),D(!0);return}i.ensure(e,e&&(t=>n(t,e)))},ce)}function Pi(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Pi(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Fi(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Pi(e))&&(r&&(r+=` `),r+=t);return r}function Ii(e){return typeof e==`object`?Fi(e):e??``}var Li=[...`
|
|
3
|
+
\r\f\xA0\v`];function Ri(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Li.includes(r[o-1]))&&(s===r.length||Li.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function zi(e,t,n,r,i,a){var o=e[xe];if(E||o!==n||o===void 0){var s=Ri(n,r,a);(!E||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e[xe]=n}else if(a&&i!==a)for(var c in a){var l=!!a[c];(i==null||l!==!!i[c])&&e.classList.toggle(c,l)}return a}function Bi(e,t,n=!1){if(e.multiple){if(t==null)return;if(!u(t))return Qe();for(var r of e.options)r.selected=t.includes(Ui(r));return}for(r of e.options)if(Ln(Ui(r),t)){r.selected=!0;return}(!n||t!==void 0)&&(e.selectedIndex=-1)}function Vi(e){var t=new MutationObserver(()=>{Bi(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`value`]}),ar(()=>{t.disconnect()})}function Hi(e,t,n=t){var r=new WeakSet,i=!0;tr(e,`change`,t=>{var i=t?`[selected]`:`:checked`,a;if(e.multiple)a=[].map.call(e.querySelectorAll(i),Ui);else{var o=e.querySelector(i)??e.querySelector(`option:not([disabled])`);a=o&&Ui(o)}n(a),e.__value=a,N!==null&&r.add(N)}),ur(()=>{var a=t();if(e===document.activeElement){var o=A?an:N;if(r.has(o))return}if(Bi(e,a,i),i&&a===void 0){var s=e.querySelector(`:checked`);s!==null&&(a=Ui(s),n(a))}e.__value=a,i=!1}),Vi(e)}function Ui(e){return`__value`in e?e.__value:e.value}var Wi=Symbol(`is custom element`),Gi=Symbol(`is html`),Ki=Ee?`link`:`LINK`,qi=Ee?`progress`:`PROGRESS`;function Ji(e){if(E){var t=!1,n=()=>{if(!t){if(t=!0,e.hasAttribute(`value`)){var n=e.value;Zi(e,`value`,null),e.value=n}if(e.hasAttribute(`checked`)){var r=e.checked;Zi(e,`checked`,null),e.checked=r}}};e[we]=n,Tt(n),Qn()}}function Yi(e,t){var n=Qi(e);n.value===(n.value=t??void 0)||e.value===t&&(t!==0||e.nodeName!==qi)||(e.value=t??``)}function Xi(e,t){var n=Qi(e);n.checked!==(n.checked=t??void 0)&&(e.checked=t)}function Zi(e,t,n,r){var i=Qi(e);E&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Ki)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[ve]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&ea(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Qi(e){return e[be]??={[Wi]:e.nodeName.includes(`-`),[Gi]:e.namespaceURI===Je}}var $i=new Map;function ea(e){var t=e.getAttribute(`is`)||e.nodeName,n=$i.get(t);if(n)return n;$i.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=g(i),r)r[o].set&&o!==`innerHTML`&&o!==`textContent`&&o!==`innerText`&&n.push(o);i=y(i)}return n}function ta(e,t,n=t){var r=new WeakSet;tr(e,`input`,async i=>{var a=i?e.defaultValue:e.value;if(a=ra(e)?ia(a):a,n(a),N!==null&&r.add(N),await Hr(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,c=e.value.length;if(e.value=a??``,s!==null){var l=e.value.length;o===s&&s===c&&l>c?(e.selectionStart=l,e.selectionEnd=l):(e.selectionStart=o,e.selectionEnd=Math.min(s,l))}}}),(E&&e.defaultValue!==e.value||$(t)==null&&e.value)&&(n(ra(e)?ia(e.value):e.value),N!==null&&r.add(N)),fr(()=>{var n=t();if(e===document.activeElement){var i=A?an:N;if(r.has(i))return}ra(e)&&n===ia(e.value)||e.type===`date`&&!n&&!e.value||n!==e.value&&(e.value=n??``)})}function na(e,t,n=t){tr(e,`change`,t=>{n(t?e.defaultChecked:e.checked)}),(E&&e.defaultChecked!==e.checked||$(t)==null)&&n(e.checked),fr(()=>{e.checked=!!t()})}function ra(e){var t=e.type;return t===`number`||t===`range`}function ia(e){return e===``?null:+e}function aa(e,t){return e===t||e?.[ge]===t}function oa(e={},t,n,r){var i=j.r,a=K;return ur(()=>{var o,s;return fr(()=>{o=s,s=r?.()||[],$(()=>{aa(n(...s),e)||(t(e,...s),o&&aa(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&aa(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function sa(e,t){$n(window,[`resize`],()=>er(()=>t(window[e])))}function ca(e=!1){let t=j,n=t.l.u;if(!n)return;let r=()=>Kr(t.s);if(e){let e=0,n={},i=Kt(()=>{let r=!1,i=t.s;for(let e in i)i[e]!==n[e]&&(n[e]=i[e],r=!0);return r&&e++,e});r=()=>Q(i)}n.b.length&&cr(()=>{la(t,r),ee(n.b)}),or(()=>{let e=$(()=>n.m.map(S));return()=>{for(let t of e)typeof t==`function`&&t()}}),n.a.length&&or(()=>{la(t,r),ee(n.a)})}function la(e,t){if(e.l.s)for(let t of e.l.s)Q(t);t()}function ua(e){var t=On(0);return function(){return arguments.length===1?(I(t,Q(t)+1),arguments[0]):(Q(t),e())}}function da(e,t,n,r){var i=!ct||(n&2)!=0,a=(n&8)!=0,o=(n&16)!=0,s=r,c=!0,l=void 0,u=()=>o&&i?(l??=Kt(r),Q(l)):(c&&(c=!1,s=o?$(r):r),s);let d;if(a){var f=ge in e||_e in e;d=h(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=Lt(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=u(),d&&(i&&Ve(t),d(p)));var g=i?()=>{var n=e[t];return n===void 0?u():(c=!0,n)}:()=>{var n=e[t];return n!==void 0&&(s=void 0),n===void 0?s:n};if(i&&!(n&4))return g;if(d){var _=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||_||m)&&d(t?g():e),e):g()})}var v=!1,y=(n&1?Kt:Xt)(()=>(v=!1,g()));a&&Q(y);var b=K;return(function(e,t){if(arguments.length>0){let n=t?Q(y):i&&a?Fn(e):e;return I(y,n),v=!0,s!==void 0&&(s=n),e}return Dr&&v||b.f&16384?y.v:Q(y)})}function fa(e){return class extends pa{constructor(t){super({component:e,...t})}}}var pa=class{#e;#t;constructor(e){var t=new Map,n=(e,n)=>{var r=An(n,!1,!1);return t.set(e,r),r};let r=new Proxy({...e.props||{},$$events:{}},{get(e,r){return Q(t.get(r)??n(r,Reflect.get(e,r)))},has(e,r){return r===_e?!0:(Q(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r))},set(e,r,i){return I(t.get(r)??n(r,i),i),Reflect.set(e,r,i)}});this.#t=(e.hydrate?hi:mi)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),!A&&(!e?.props?.$$host||e.sync===!1)&&mn(),this.#e=r.$$events;for(let e of Object.keys(this.#t))e===`$set`||e===`$destroy`||e===`$on`||m(this,e,{get(){return this.#t[e]},set(t){this.#t[e]=t},enumerable:!0});this.#t.$set=e=>{Object.assign(r,e)},this.#t.$destroy=()=>{yi(this.#t)}}$set(e){this.#t.$set(e)}$on(e,t){this.#e[e]=this.#e[e]||[];let n=(...e)=>t.call(this,...e);return this.#e[e].push(n),()=>{this.#e[e]=this.#e[e].filter(e=>e!==n)}}$destroy(){this.#t.$destroy()}};function ma(e,t){if(A||De(`hydratable`),E){let t=window.__svelte?.h;if(t?.has(e))return t.get(e);Xe(e)}return t()}var ha=s({afterUpdate:()=>Sa,beforeUpdate:()=>xa,createContext:()=>pt,createEventDispatcher:()=>ba,createRawSnippet:()=>Mi,flushSync:()=>mn,fork:()=>Cn,getAbortSignal:()=>ga,getAllContexts:()=>_t,getContext:()=>mt,hasContext:()=>gt,hydratable:()=>ma,hydrate:()=>hi,mount:()=>mi,onDestroy:()=>va,onMount:()=>_a,setContext:()=>ht,settled:()=>Ur,tick:()=>Hr,unmount:()=>yi,untrack:()=>$});function ga(){return U===null&&Re(),(U.ac??=new AbortController).signal}function _a(e){j===null&&Oe(`onMount`),ct&&j.l!==null?Ca(j).m.push(e):or(()=>{let t=$(e);if(typeof t==`function`)return t})}function va(e){j===null&&Oe(`onDestroy`),_a(()=>()=>$(e))}function ya(e,t,{bubbles:n=!1,cancelable:r=!1}={}){return new CustomEvent(e,{detail:t,bubbles:n,cancelable:r})}function ba(){let e=j;return e===null&&Oe(`createEventDispatcher`),(t,n,r)=>{let i=e.s.$$events?.[t];if(i){let a=u(i)?i.slice():[i],o=ya(t,n,r);for(let t of a)t.call(e.x,o);return!o.defaultPrevented}return!0}}function xa(e){j===null&&Oe(`beforeUpdate`),j.l===null&&Be(`beforeUpdate`),Ca(j).b.push(e)}function Sa(e){j===null&&Oe(`afterUpdate`),j.l===null&&Be(`afterUpdate`),Ca(j).a.push(e)}function Ca(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}var wa=`modulepreload`,Ta=function(e,t){return new URL(e,t).href},Ea={},Da=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=Ta(t,n),t in Ea)return;Ea[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:wa,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};export{ht as $,ti as A,Rn as B,xi as C,li as D,di as E,$ as F,Nn as G,Wn as H,pr as I,Yt as J,I as K,or as L,Q as M,Ur as N,ui as O,Hr as P,vt as Q,cr as R,Ti as S,fi as T,Gn as U,Un as V,Fn as W,mt as X,Pt as Y,yt as Z,Hi as _,fa as a,ne as at,Ni as b,ca as c,l as ct,na as d,ut as et,ta as f,Yi as g,Xi as h,_a as i,x as it,ei as j,ni as k,sa as l,Zi as m,ha as n,nt,da as o,o as ot,Ji as p,kn as q,va as r,tt as rt,ua as s,s as st,Da as t,lt as tt,oa as u,zi as v,pi as w,ji as x,Ii as y,Xn as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./BkVLPnKR.js";import{i as e,o as t}from"./0lig8UxQ.js";var n={get data(){return t.data},get error(){return t.error},get form(){return t.form},get params(){return t.params},get route(){return t.route},get state(){return t.state},get status(){return t.status},get url(){return t.url}};e.updated.check;var r=n;export{r as t};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{tt as e}from"./
|
|
1
|
+
import{tt as e}from"./BkVLPnKR.js";import{B as t,C as n,D as r,E as i,F as a,G as o,H as s,J as c,K as l,L as u,O as d,Q as f,S as p,T as m,V as h,Y as g,Z as _,_ as v,a as y,h as b,k as x,n as S,o as C,q as w,t as T,v as E,w as D,x as O,z as k}from"./Za7VFBJZ.js";e();var A=class{base_center_x;base_center_y;base_radius;initial_angle;right_nleft;constructor(e,t,n,r,i){this.base_center_x=e,this.base_center_y=t,this.base_radius=n,this.initial_angle=r,this.right_nleft=i}angleSign(){return this.right_nleft?1:-1}lFromU(e){return this.base_radius*Math.sqrt(1+e**2)}wFromU(e){if(e<0)throw`err729: involute parameter au ${e} is negative`;if(Math.abs(e)>Math.PI/2)throw`err730: involute parameter au ${e} is larger than PI/2`;return this.angleSign()*(e-Math.atan(e))}w2FromU(e){return this.initial_angle+this.wFromU(e)}ptc(e){let t=this.lFromU(e),n=this.w2FromU(e);return[this.base_center_x+Math.cos(n)*t,this.base_center_y+Math.sin(n)*t]}ptcta(e){return this.initial_angle+this.angleSign()*e}uFromL(e){return Math.sqrt(e**2/this.base_radius**2-1)}uFromWslow(e){let t=10**-4,n=Math.PI/3,r=n/2,i=this.wFromU(n),a=0;for(;Math.abs(i-e)>t;)i<e?n+=r:n-=r,i=this.wFromU(n),r/=2,a+=1;return console.log(`dbg072: uFromWslow itcnt ${a}`),n}laptc(e,t,n,r){if(Math.sign(t)*this.angleSign()<0)throw`err904: Invole.laptc angle-of-pressure ${t} not compatible with right_nleft ${this.right_nleft}`;let i=e+t,a=this.base_center_x+Math.cos(i)*this.base_radius,o=this.base_center_y+Math.sin(i)*this.base_radius,s=i-this.angleSign()*Math.PI/2,c=n*this.base_radius,l=a+Math.cos(s)*c,u=o+Math.sin(s)*c,d=this.lFromU(n)*r,f=n;return[l,u,Math.cos(f)*d,Math.sin(f)*d]}};function j(e,t,n,r,i){return new A(e,t,n,r,i)}var M=class{mod=1;TN=23;as=1;cx=0;cy=0;brr=50;blr=50;ar=54;pr=53;dr=52;br=51;bRound=1;adt=.5;initAngle=0;axisAngle=0;involArcPairs=1;skinThickness=0;involuteR=j(0,0,50,0,!0);involuteL=j(0,0,50,0,!1);rud=0;rup=0;rua=0;rwd=0;rwp=0;rwa=0;lud=0;lup=0;lua=0;lwd=0;lwp=0;lwa=0;msg;initStep=0;constructor(){this.mod=1,this.msg=``,this.initStep=0}incInitStep(e){if(this.initStep+1!==e)throw`err834: incInitStep initStep ${this.initStep} and target ${e} are not compatible`;this.initStep=e}checkInitStep(e,t){if(this.initStep<e)throw`err835: checkInitStep for ${t} initStep ${this.initStep} is too small compare to targetMin ${e}`}set1ModuleToothNumber(e,t){this.incInitStep(1),this.mod=e,this.TN=t,this.pr=this.mod*this.TN/2,this.as=2*Math.PI/this.TN}set2CenterPosition(e,t){this.incInitStep(2),this.cx=e,this.cy=t}set3CircleRadius(e,t,n,r){this.incInitStep(3),this.ar=this.pr+this.mod*e,this.dr=this.pr-this.mod*t,this.br=this.dr-this.mod*n,this.bRound=r}set4BaseCircles(e,t){this.incInitStep(4),this.brr=e,this.blr=t}set5AddendumThickness(e){this.incInitStep(5),this.adt=e/100}set6Angles(e,t){this.incInitStep(6),this.initAngle=e,this.axisAngle=t}set7InvoluteDetails(e,t){this.incInitStep(7),this.involArcPairs=e,this.skinThickness=t}getRefCircles(){return this.checkInitStep(4,`getRefCircles`),[E(this.cx,this.cy,this.ar,`Azure`),E(this.cx,this.cy,this.pr,`Azure`),E(this.cx,this.cy,this.dr,`Azure`),E(this.cx,this.cy,this.br,`Azure`),E(this.cx,this.cy,this.brr,`CornFlowerBlue`),E(this.cx,this.cy,this.blr,`Crimson`)]}calcInvoluteAngles(){this.checkInitStep(4,`calcInvoluteAngles`),this.involuteR=j(this.cx,this.cy,this.brr,0,!0),this.dr>this.brr?this.rud=this.involuteR.uFromL(this.dr):this.rud=0,this.rup=this.involuteR.uFromL(this.pr),this.rua=this.involuteR.uFromL(this.ar),this.rwd=this.involuteR.wFromU(this.rud),this.rwp=this.involuteR.wFromU(this.rup),this.rwa=this.involuteR.wFromU(this.rua),this.involuteL=j(this.cx,this.cy,this.blr,0,!1),this.dr>this.blr?this.lud=this.involuteL.uFromL(this.dr):this.lud=0,this.lup=this.involuteL.uFromL(this.pr),this.lua=this.involuteL.uFromL(this.ar),this.lwd=this.involuteL.wFromU(this.lud),this.lwp=this.involuteL.wFromU(this.lup),this.lwa=this.involuteL.wFromU(this.lua)}checkProfileConditions(){let e=this.as*this.adt,t=this.rwa-this.rwp,n=Math.abs(this.lwa-this.lwp),r=e-t-n;if(r<0)throw`err554: No remaining Addendum reserve ${d(r)}
|
|
2
2
|
`;let i=this.as*(1-this.adt),a=this.rwp-this.rwd,o=Math.abs(this.lwp-this.lwd),s=i-a-o;if(s<2*Math.atan2(this.bRound,this.br))throw`err555: No remaining Dedendum reserve ${d(s)} compare to bRound ${d(this.bRound)}
|
|
3
3
|
`}getToothRef(){let e=6*this.involArcPairs;this.checkInitStep(7,`getProfile`),this.calcInvoluteAngles();let t=(this.rua-this.rud)/e,n=(this.lua-this.lud)/e,r=this.initAngle+0*this.as,i=j(this.cx,this.cy,this.brr,r-this.rwp,!0),[a,o]=i.ptc(this.rud+0*t),s=v(a,o,`Gold`);for(let n=0;n<e;n++){let[e,r]=i.ptc(this.rud+(n+1)*t);s.addSegStrokeA(e,r)}let c=r+this.as*this.adt,l=j(this.cx,this.cy,this.blr,c-this.lwp,!1);for(let t=0;t<e+1;t++){let[r,i]=l.ptc(this.lud+(e-t)*n);s.addSegStrokeA(r,i)}return s.closeSegStroke(),s}getProfile(){this.checkInitStep(7,`getProfile`),this.calcInvoluteAngles(),this.checkProfileConditions();let e=this.rwd-this.rwp,t=this.lwd-this.lwp,n=this.dr>this.brr?this.dr:this.brr,r=this.dr>this.blr?this.dr:this.blr;if(this.bRound>n-this.br)throw`err409: getProfile bRound ${d(this.bRound)} too large for erdr ${d(n)} and br ${d(this.br)}`;if(this.bRound>r-this.br)throw`err408: getProfile bRound ${d(this.bRound)} too large for eldr ${d(r)} and br ${d(this.br)}`;let i=(this.rua-this.rud)/this.involArcPairs,a=(this.lua-this.lud)/this.involArcPairs,s=o(this.cx,this.cy),c=s.translatePolar(this.initAngle+e,this.br),l=v(c.cx,c.cy);for(let n=0;n<this.TN;n++){let r=this.initAngle+n*this.as,c=s.translatePolar(r+e,this.br);l.addSegStrokeA(c.cx,c.cy).addCornerRounded(this.bRound);let u=j(this.cx,this.cy,this.brr,r-this.rwp,!0),[d,f]=u.ptc(this.rud),p=u.ptcta(this.rud),m=o(d,f).translatePolar(p-Math.PI/2,this.skinThickness);l.addSegStrokeA(m.cx,m.cy);for(let e=0;e<this.involArcPairs;e++){let t=this.rud+e*i,[n,r]=u.ptc(t+i),a=u.ptcta(t),s=u.ptcta(t+i)+Math.PI,c=o(n,r).translatePolar(a-Math.PI/2,this.skinThickness);l.addPointA(c.cx,c.cy).addSeg2Arcs(a,s)}let h=r+this.as*this.adt,g=j(this.cx,this.cy,this.blr,h-this.lwp,!1),_=this.lud+this.involArcPairs*a,[v,y]=g.ptc(_),b=g.ptcta(_)+Math.PI,x=o(v,y).translatePolar(b-Math.PI/2,this.skinThickness);l.addSegStrokeA(x.cx,x.cy);for(let e=0;e<this.involArcPairs;e++){let t=this.lud+(this.involArcPairs-e)*a,[n,r]=g.ptc(t-a),i=g.ptcta(t)+Math.PI,s=g.ptcta(t-a),c=o(n,r).translatePolar(i-Math.PI/2,this.skinThickness);l.addPointA(c.cx,c.cy).addSeg2Arcs(i,s)}let S=s.translatePolar(h+t,this.br);l.addSegStrokeA(S.cx,S.cy).addCornerRounded(this.bRound)}return l.closeSegStroke(),l}getMsg(){return this.msg}};function N(){return new M}function P(e,t,n,r){e.checkInitStep(1,`helper.gw2center-1`),t.checkInitStep(1,`helper.gw2center-2`);let i=e.pr+t.pr+r;return[e.cx+i*Math.cos(n),e.cy+i*Math.sin(n),i]}function F(e,t,n,r,a,o,s,c,l,u,d){e.checkInitStep(3,`helper.baseCircles-1`),t.checkInitStep(3,`helper.baseCircles-2`);let f=n,p=a,m=r,h=o,g=e.pr+t.pr,_=u,v=d;switch(_){case 0:t.TN>e.TN?(f=e.dr,p=f*t.TN/e.TN):(p=t.dr,f=p*e.TN/t.TN);break;case 1:p=f*t.TN/e.TN;break;case 2:f=p*e.TN/t.TN;break;case 3:f=g*e.TN/(e.TN+t.TN)*Math.cos(i(s)),p=f*t.TN/e.TN;break;case 4:break;default:console.log(`err337: involROpt2 case ${_} is not implemented!`)}switch(v){case 0:t.TN>e.TN?(m=e.dr,h=m*t.TN/e.TN):(h=t.dr,m=h*e.TN/t.TN);break;case 1:h=m*t.TN/e.TN;break;case 2:m=h*e.TN/t.TN;break;case 3:m=g*e.TN/(e.TN+t.TN)*Math.cos(i(c)),h=m*t.TN/e.TN;break;case 4:break;default:console.log(`err358: involLOpt2 case ${v} is not implemented!`)}return l===1&&(m=f,h=p),[f,m,p,h]}var I=class{gw1;gw2;initAngle1;angleCenterCenter;interAxis;rightLeftCenter2;msg;apr;apl;lBDr=0;lBDl=0;laStartRr1=0;laStartRr2=0;laStartRl1=0;laStartRl2=0;aFODr1=0;aFODr2=0;aFODl1=0;aFODl2=0;lasr1=0;lasr2=0;lasl1=0;lasl2=0;firstToothUr1=0;firstToothUl1=0;ftdr1=0;ftdl1=0;constructor(e,t,n,r,i,a){this.gw1=e,this.gw2=t,this.initAngle1=n,this.angleCenterCenter=r,this.interAxis=i,this.rightLeftCenter2=a,this.msg=``,this.apr=0,this.apl=0}check1(){this.gw1.checkInitStep(4,`ActionLine.check1-1`),this.gw2.checkInitStep(4,`ActionLine.check1-2`),this.interAxis>this.gw1.ar+this.gw2.ar&&(this.msg+=`warn333: initAngle2 interAxis ${d(this.interAxis)} is too large compare to gw1.ar ${d(this.gw1.ar)} and gw2.ar ${d(this.gw2.ar)}
|
|
4
4
|
`),c(this.gw1.brr*this.gw2.TN-this.gw2.brr*this.gw1.TN)!==0&&(this.msg+=`warn407: right ratios differ N1/N2 = ${this.gw1.TN} / ${this.gw2.TN} = ${d(this.gw1.TN/this.gw2.TN)} and brr1/brr2 = ${d(this.gw1.brr)}/${d(this.gw2.brr)} = ${d(this.gw1.brr/this.gw2.brr)}
|