designix-uis 1.0.27 → 1.0.28
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/{r5-SrLJV.js → B2rYf0-P.js} +1 -1
- package/dist/public/_app/immutable/chunks/{BHBmAp0t.js → C9162_lF.js} +1 -1
- package/dist/public/_app/immutable/chunks/CBJmzK5-.js +2 -0
- package/dist/public/_app/immutable/chunks/{BsC0KJnE.js → CEi5igkA.js} +1 -1
- package/dist/public/_app/immutable/chunks/CQjbWJoy.js +1 -0
- package/dist/public/_app/immutable/chunks/{CdIMtTB_.js → CTzLJgFn.js} +1 -1
- package/dist/public/_app/immutable/chunks/{hUAl4A9s.js → CgtJ9oav.js} +1 -1
- package/dist/public/_app/immutable/chunks/DbdoZ-jc.js +216 -0
- package/dist/public/_app/immutable/chunks/{Crb22ScH.js → STfePW3F.js} +1 -1
- package/dist/public/_app/immutable/chunks/{CLLMBv3G.js → h6_dS3X8.js} +1 -1
- package/dist/public/_app/immutable/entry/{app.e5mkuYQF.js → app.8UqCQ_tR.js} +2 -2
- package/dist/public/_app/immutable/entry/start.DnQvWv3N.js +1 -0
- package/dist/public/_app/immutable/nodes/{0.CH76o7dk.js → 0.g-5snx6W.js} +1 -1
- package/dist/public/_app/immutable/nodes/1.tZylGp1J.js +1 -0
- package/dist/public/_app/immutable/nodes/2.Bk5PIUDO.js +1 -0
- package/dist/public/_app/immutable/nodes/3.DW5qpCqX.js +10 -0
- package/dist/public/_app/version.json +1 -1
- package/dist/public/gear/gear_bar.html +19 -19
- package/dist/public/gear/gear_epicycloid.html +19 -19
- package/dist/public/gear/gear_ring.html +19 -19
- package/dist/public/gear/gear_wheel.html +19 -19
- package/dist/public/heliostat/base.html +19 -19
- package/dist/public/heliostat/haxis_guidance.html +19 -19
- package/dist/public/heliostat/heliostat.html +19 -19
- package/dist/public/heliostat/heliostat_2.html +19 -19
- package/dist/public/heliostat/pole_static.html +19 -19
- package/dist/public/heliostat/rake.html +19 -19
- package/dist/public/heliostat/rake_stopper.html +19 -19
- package/dist/public/heliostat/ring.html +19 -19
- package/dist/public/heliostat/ring_guidance.html +19 -19
- package/dist/public/heliostat/rod.html +19 -19
- package/dist/public/heliostat/spider.html +19 -19
- package/dist/public/heliostat/surface.html +19 -19
- package/dist/public/heliostat/swing.html +19 -19
- package/dist/public/heliostat/trapeze.html +19 -19
- package/dist/public/heliostat/vaxis.html +19 -19
- package/dist/public/heliostat/vaxis_guidance.html +19 -19
- package/dist/public/heliostat/vaxis_holder.html +19 -19
- package/dist/public/index.html +17 -17
- package/package.json +5 -5
- package/dist/public/_app/immutable/chunks/BvMyOpMW.js +0 -2
- package/dist/public/_app/immutable/chunks/CDPXKizA.js +0 -216
- package/dist/public/_app/immutable/chunks/DWiHY1yh.js +0 -1
- package/dist/public/_app/immutable/entry/start.D_czURb2.js +0 -1
- package/dist/public/_app/immutable/nodes/1.BiA6rY6y.js +0 -1
- package/dist/public/_app/immutable/nodes/2.Bi0HaUO8.js +0 -1
- package/dist/public/_app/immutable/nodes/3.CTvJ8tYy.js +0 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
import{k as g,Z as d,u as c,w as m,_ as i,$ as b,g as p,a0 as k,a1 as v,a2 as h}from"./
|
|
1
|
+
import{k as g,Z as d,u as c,w as m,_ as i,$ as b,g as p,a0 as k,a1 as v,a2 as h}from"./CBJmzK5-.js";function x(n=!1){const s=g,e=s.l.u;if(!e)return;let f=()=>k(s.s);if(n){let a=0,t={};const _=v(()=>{let l=!1;const r=s.s;for(const o in r)r[o]!==t[o]&&(t[o]=r[o],l=!0);return l&&a++,a});f=()=>p(_)}e.b.length&&d(()=>{u(s,f),i(e.b)}),c(()=>{const a=m(()=>e.m.map(b));return()=>{for(const t of a)typeof t=="function"&&t()}}),e.a.length&&c(()=>{u(s,f),i(e.a)})}function u(n,s){if(n.l.s)for(const e of n.l.s)p(e);s()}h();export{x as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const w=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function
|
|
1
|
+
const w=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function v(t){const i=[];return{pattern:t==="/"?/^\/$/:new RegExp(`^${_(t).map(s=>{const o=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(s);if(o)return i.push({name:o[1],matcher:o[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const l=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(s);if(l)return i.push({name:l[1],matcher:l[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!s)return;const r=s.split(/\[(.+?)\](?!\])/);return"/"+r.map((e,a)=>{if(a%2){if(e.startsWith("x+"))return h(String.fromCharCode(parseInt(e.slice(2),16)));if(e.startsWith("u+"))return h(String.fromCharCode(...e.slice(2).split("-").map(d=>parseInt(d,16))));const c=w.exec(e),[,u,p,m,g]=c;return i.push({name:m,matcher:g,optional:!!u,rest:!!p,chained:p?a===1&&r[0]==="":!1}),p?"([^]*?)":u?"([^/]*)?":"([^/]+?)"}return h(e)}).join("")}).join("")}/?$`),params:i}}function $(t){return t!==""&&!/^\([^)]+\)$/.test(t)}function _(t){return t.slice(1).split("/").filter($)}function j(t,i,f){const s={},o=t.slice(1),l=o.filter(n=>n!==void 0);let r=0;for(let n=0;n<i.length;n+=1){const e=i[n];let a=o[n-r];if(e.chained&&e.rest&&r&&(a=o.slice(n-r,n+1).filter(c=>c).join("/"),r=0),a===void 0){e.rest&&(s[e.name]="");continue}if(!e.matcher||f[e.matcher](a)){s[e.name]=a;const c=i[n+1],u=o[n+1];c&&!c.rest&&c.optional&&u&&e.chained&&(r=0),!c&&!u&&Object.keys(s).length===l.length&&(r=0);continue}if(e.optional&&e.chained){r++;continue}return}if(!r)return s}function h(t){return t.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}const x=/\[(\[)?(\.\.\.)?(\w+?)(?:=(\w+))?\]\]?/g;function W(t,i){const f=_(t),s=t!="/"&&t.endsWith("/");return"/"+f.map(o=>o.replace(x,(l,r,n,e)=>{const a=i[e];if(!a){if(r||n&&a!==void 0)return"";throw new Error(`Missing parameter '${e}' in route ${t}`)}if(a.startsWith("/")||a.endsWith("/"))throw new Error(`Parameter '${e}' in route ${t} cannot start or end with a slash -- this would cause an invalid route like foo//bar`);return a})).filter(Boolean).join("/")+(s?"/":"")}const b=globalThis.__sveltekit_xg6won?.base??"",k=globalThis.__sveltekit_xg6won?.assets??b??"";export{k as a,b,j as e,v as p,W as r};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var cn=Array.isArray,_n=Array.prototype.indexOf,dn=Array.from,hn=Object.defineProperty,Ee=Object.getOwnPropertyDescriptor,vn=Object.getOwnPropertyDescriptors,pn=Object.prototype,gn=Array.prototype,bt=Object.getPrototypeOf,ht=Object.isExtensible;const br=()=>{};function Tr(e){return e()}function yn(e){for(var t=0;t<e.length;t++)e[t]()}function Tt(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}function xr(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const n=[];for(const r of e)if(n.push(r),n.length===t)break;return n}const b=2,Ie=4,ke=8,xt=1<<24,W=16,K=32,_e=64,it=128,P=512,x=1024,A=2048,$=4096,L=8192,Z=16384,Ye=32768,xe=65536,Xe=1<<17,At=1<<18,ye=1<<19,St=1<<20,Ar=1<<25,oe=32768,Ze=1<<21,at=1<<22,J=1<<23,ae=Symbol("$state"),Sr=Symbol("legacy props"),kr=Symbol(""),he=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},He=3,Re=8;function wn(e){throw new Error("https://svelte.dev/e/experimental_async_required")}function mn(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function En(){throw new Error("https://svelte.dev/e/missing_context")}function bn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Tn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function xn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function An(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Sn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function kn(){throw new Error("https://svelte.dev/e/fork_discarded")}function Rn(){throw new Error("https://svelte.dev/e/fork_timing")}function Or(){throw new Error("https://svelte.dev/e/get_abort_signal_outside_reaction")}function On(){throw new Error("https://svelte.dev/e/hydration_failed")}function Cr(e){throw new Error("https://svelte.dev/e/lifecycle_legacy_only")}function Nr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Cn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Nn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Dn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Pn(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Dr=1,Pr=2,Ir=4,Mr=8,Fr=16,Lr=1,jr=2,qr=4,Yr=8,Hr=16,In=1,Mn=2,kt="[",Rt="[!",Ot="]",ve={},T=Symbol(),Vr="http://www.w3.org/1999/xhtml";function Br(e){console.warn("https://svelte.dev/e/hydratable_missing_but_expected")}function Ve(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function Ur(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Fn(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let E=!1;function De(e){E=e}let p;function M(e){if(e===null)throw Ve(),ve;return p=e}function Ct(){return M(z(p))}function Gr(e){if(E){if(z(p)!==null)throw Ve(),ve;p=e}}function Ln(e=1){if(E){for(var t=e,n=p;t--;)n=z(n);p=n}}function jn(e=!0){for(var t=0,n=p;;){if(n.nodeType===Re){var r=n.data;if(r===Ot){if(t===0)return n;t-=1}else(r===kt||r===Rt)&&(t+=1)}var s=z(n);e&&n.remove(),n=s}}function Wr(e){if(!e||e.nodeType!==Re)throw Ve(),ve;return e.data}function Nt(e){return e===this.v}function qn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Dt(e){return!qn(e,this.v)}let Be=!1;function Kr(){Be=!0}let y=null;function pe(e){y=e}function $r(){const e={};return[()=>(Vn(e)||En(),Yn(e)),t=>Hn(e,t)]}function Yn(e){return Ue().get(e)}function Hn(e,t){return Ue().set(e,t),t}function Vn(e){return Ue().has(e)}function zr(){return Ue()}function Bn(e,t=!1,n){y={p:y,i:!1,c:null,e:null,s:e,x:null,l:Be&&!t?{s:null,u:null,$:[]}:null}}function Un(e){var t=y,n=t.e;if(n!==null){t.e=null;for(var r of n)Xt(r)}return t.i=!0,y=t.p,{}}function Oe(){return!Be||y!==null&&y.l===null}function Ue(e){return y===null&&mn(),y.c??=new Map(Gn(y)||void 0)}function Gn(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}let re=[];function Pt(){var e=re;re=[],yn(e)}function Ge(e){if(re.length===0&&!be){var t=re;queueMicrotask(()=>{t===re&&Pt()})}re.push(e)}function Wn(){for(;re.length>0;)Pt()}function It(e){var t=v;if(t===null)return h.f|=J,e;if((t.f&Ye)===0){if((t.f&it)===0)throw e;t.b.error(e)}else ge(e,t)}function ge(e,t){for(;t!==null;){if((t.f&it)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e}const Kn=-7169;function w(e,t){e.f=e.f&Kn|t}function ft(e){(e.f&P)!==0||e.deps===null?w(e,x):w(e,$)}function Mt(e){if(e!==null)for(const t of e)(t.f&b)===0||(t.f&oe)===0||(t.f^=oe,Mt(t.deps))}function Ft(e,t,n){(e.f&A)!==0?t.add(e):(e.f&$)!==0&&n.add(e),Mt(e.deps),w(e,x)}const se=new Set;let g=null,ze=null,N=null,C=[],We=null,Je=!1,be=!1;class D{committed=!1;current=new Map;previous=new Map;#t=new Set;#o=new Set;#r=0;#a=0;#s=null;#n=new Set;#e=new Set;skipped_effects=new Set;is_fork=!1;is_deferred(){return this.is_fork||this.#a>0}process(t){C=[],ze=null,this.apply();var n=[],r=[];for(const s of t)this.#i(s,n,r);this.is_fork||this.#l(),this.is_deferred()?(this.#f(r),this.#f(n)):(ze=this,g=null,vt(r),vt(n),ze=null,this.#s?.resolve()),N=null}#i(t,n,r){t.f^=x;for(var s=t.first,i=null;s!==null;){var a=s.f,l=(a&(K|_e))!==0,f=l&&(a&x)!==0,o=f||(a&L)!==0||this.skipped_effects.has(s);if(!o&&s.fn!==null){l?s.f^=x:i!==null&&(a&(Ie|ke|xt))!==0?i.b.defer_effect(s):(a&Ie)!==0?n.push(s):Ne(s)&&((a&W)!==0&&this.#n.add(s),Se(s));var u=s.first;if(u!==null){s=u;continue}}var d=s.parent;for(s=s.next;s===null&&d!==null;)d===i&&(i=null),s=d.next,d=d.parent}}#f(t){for(var n=0;n<t.length;n+=1)Ft(t[n],this.#n,this.#e)}capture(t,n){n!==T&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&J)===0&&(this.current.set(t,t.v),N?.set(t,t.v))}activate(){g=this,this.apply()}deactivate(){g===this&&(g=null,N=null)}flush(){if(this.activate(),C.length>0){if(et(),g!==null&&g!==this)return}else this.#r===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#o)t(this);this.#o.clear()}#l(){if(this.#a===0){for(const t of this.#t)t();this.#t.clear()}this.#r===0&&this.#u()}#u(){if(se.size>1){this.previous.clear();var t=N,n=!0;for(const s of se){if(s===this){n=!1;continue}const i=[];for(const[l,f]of this.current){if(s.current.has(l))if(n&&f!==s.current.get(l))s.current.set(l,f);else continue;i.push(l)}if(i.length===0)continue;const a=[...s.current.keys()].filter(l=>!this.current.has(l));if(a.length>0){var r=C;C=[];const l=new Set,f=new Map;for(const o of i)Lt(o,a,l,f);if(C.length>0){g=s,s.apply();for(const o of C)s.#i(o,[],[]);s.deactivate()}C=r}}g=null,N=t}this.committed=!0,se.delete(this)}increment(t){this.#r+=1,t&&(this.#a+=1)}decrement(t){this.#r-=1,t&&(this.#a-=1),this.revive()}revive(){for(const t of this.#n)this.#e.delete(t),w(t,A),U(t);for(const t of this.#e)w(t,$),U(t);this.flush()}oncommit(t){this.#t.add(t)}ondiscard(t){this.#o.add(t)}settled(){return(this.#s??=Tt()).promise}static ensure(){if(g===null){const t=g=new D;se.add(g),be||D.enqueue(()=>{g===t&&t.flush()})}return g}static enqueue(t){Ge(t)}apply(){}}function Qe(e){var t=be;be=!0;try{var n;for(e&&(g!==null&&et(),n=e());;){if(Wn(),C.length===0&&(g?.flush(),C.length===0))return We=null,n;et()}}finally{be=t}}function et(){var e=fe;Je=!0;var t=null;try{var n=0;for(je(!0);C.length>0;){var r=D.ensure();if(n++>1e3){var s,i;$n()}r.process(C),Q.clear()}}finally{Je=!1,je(e),We=null}}function $n(){try{Sn()}catch(e){ge(e,We)}}let V=null;function vt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(Z|L))===0&&Ne(r)&&(V=new Set,Se(r),r.deps===null&&r.first===null&&r.nodes===null&&(r.teardown===null&&r.ac===null?Qt(r):r.fn=null),V?.size>0)){Q.clear();for(const s of V){if((s.f&(Z|L))!==0)continue;const i=[s];let a=s.parent;for(;a!==null;)V.has(a)&&(V.delete(a),i.push(a)),a=a.parent;for(let l=i.length-1;l>=0;l--){const f=i[l];(f.f&(Z|L))===0&&Se(f)}}V.clear()}}V=null}}function Lt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&b)!==0?Lt(s,t,n,r):(i&(at|W))!==0&&(i&A)===0&&qt(s,t,r)&&(w(s,A),U(s))}}function jt(e,t){if(e.reactions!==null)for(const n of e.reactions){const r=n.f;(r&b)!==0?jt(n,t):(r&Xe)!==0&&(w(n,A),t.add(n))}}function qt(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(t.includes(s))return!0;if((s.f&b)!==0&&qt(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function U(e){for(var t=We=e;t.parent!==null;){t=t.parent;var n=t.f;if(Je&&t===v&&(n&W)!==0&&(n&At)===0)return;if((n&(_e|K))!==0){if((n&x)===0)return;t.f^=x}}C.push(t)}function Xr(e){wn(),g!==null&&Rn();var t=D.ensure();t.is_fork=!0,N=new Map;var n=!1,r=t.settled();Qe(e);for(var[s,i]of t.previous)s.v=i;for(s of t.current.keys())(s.f&b)!==0&&w(s,A);return{commit:async()=>{if(n){await r;return}se.has(t)||kn(),n=!0,t.is_fork=!1;for(var[a,l]of t.current)a.v=l,a.wv=_t();Qe(()=>{var f=new Set;for(var o of t.current.keys())jt(o,f);sr(f),Bt()}),t.revive(),await r},discard:()=>{!n&&se.has(t)&&(se.delete(t),t.discard())}}}function zn(e){let t=0,n=Ce(0),r;return()=>{ut()&&(ie(n),or(()=>(t===0&&(r=pr(()=>e(()=>Te(n)))),t+=1,()=>{Ge(()=>{t-=1,t===0&&(r?.(),r=void 0,Te(n))})})))}}var Xn=xe|ye|it;function Zn(e,t,n){new Jn(e,t,n)}class Jn{parent;is_pending=!1;#t;#o=E?p:null;#r;#a;#s;#n=null;#e=null;#i=null;#f=null;#l=null;#u=0;#c=0;#d=!1;#h=new Set;#v=new Set;#_=null;#m=zn(()=>(this.#_=Ce(this.#u),()=>{this.#_=null}));constructor(t,n,r){this.#t=t,this.#r=n,this.#a=r,this.parent=v.b,this.is_pending=!!this.#r.pending,this.#s=ur(()=>{if(v.b=this,E){const i=this.#o;Ct(),i.nodeType===Re&&i.data===Rt?this.#b():(this.#E(),this.#c===0&&(this.is_pending=!1))}else{var s=this.#y();try{this.#n=te(()=>r(s))}catch(i){this.error(i)}this.#c>0?this.#g():this.is_pending=!1}return()=>{this.#l?.remove()}},Xn),E&&(this.#t=p)}#E(){try{this.#n=te(()=>this.#a(this.#t))}catch(t){this.error(t)}}#b(){const t=this.#r.pending;t&&(this.#e=te(()=>t(this.#t)),D.enqueue(()=>{var n=this.#y();this.#n=this.#p(()=>(D.ensure(),te(()=>this.#a(n)))),this.#c>0?this.#g():(Pe(this.#e,()=>{this.#e=null}),this.is_pending=!1)}))}#y(){var t=this.#t;return this.is_pending&&(this.#l=G(),this.#t.before(this.#l),t=this.#l),t}defer_effect(t){Ft(t,this.#h,this.#v)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#r.pending}#p(t){var n=v,r=h,s=y;q(this.#s),k(this.#s),pe(this.#s.ctx);try{return t()}catch(i){return It(i),null}finally{q(n),k(r),pe(s)}}#g(){const t=this.#r.pending;this.#n!==null&&(this.#f=document.createDocumentFragment(),this.#f.append(this.#l),dr(this.#n,this.#f)),this.#e===null&&(this.#e=te(()=>t(this.#t)))}#w(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#w(t);return}if(this.#c+=t,this.#c===0){this.is_pending=!1;for(const n of this.#h)w(n,A),U(n);for(const n of this.#v)w(n,$),U(n);this.#h.clear(),this.#v.clear(),this.#e&&Pe(this.#e,()=>{this.#e=null}),this.#f&&(this.#t.before(this.#f),this.#f=null)}}update_pending_count(t){this.#w(t),this.#u+=t,this.#_&&Le(this.#_,this.#u)}get_effect_pending(){return this.#m(),ie(this.#_)}error(t){var n=this.#r.onerror;let r=this.#r.failed;if(this.#d||!n&&!r)throw t;this.#n&&(j(this.#n),this.#n=null),this.#e&&(j(this.#e),this.#e=null),this.#i&&(j(this.#i),this.#i=null),E&&(M(this.#o),Ln(),M(jn()));var s=!1,i=!1;const a=()=>{if(s){Fn();return}s=!0,i&&Pn(),D.ensure(),this.#u=0,this.#i!==null&&Pe(this.#i,()=>{this.#i=null}),this.is_pending=this.has_pending_snippet(),this.#n=this.#p(()=>(this.#d=!1,te(()=>this.#a(this.#t)))),this.#c>0?this.#g():this.is_pending=!1};var l=h;try{k(null),i=!0,n?.(t,a),i=!1}catch(f){ge(f,this.#s&&this.#s.parent)}finally{k(l)}r&&Ge(()=>{this.#i=this.#p(()=>{D.ensure(),this.#d=!0;try{return te(()=>{r(this.#t,()=>t,()=>a)})}catch(f){return ge(f,this.#s.parent),null}finally{this.#d=!1}})})}}function Qn(e,t,n,r){const s=Oe()?lt:nr;if(n.length===0&&e.length===0){r(t.map(s));return}var i=g,a=v,l=er();function f(){Promise.all(n.map(o=>tr(o))).then(o=>{l();try{r([...t.map(s),...o])}catch(u){(a.f&Z)===0&&ge(u,a)}i?.deactivate(),Me()}).catch(o=>{ge(o,a)})}e.length>0?Promise.all(e).then(()=>{l();try{return f()}finally{i?.deactivate(),Me()}}):f()}function er(){var e=v,t=h,n=y,r=g;return function(i=!0){q(e),k(t),pe(n),i&&r?.activate()}}function Me(){q(null),k(null),pe(null)}function lt(e){var t=b|A,n=h!==null&&(h.f&b)!==0?h:null;return v!==null&&(v.f|=ye),{ctx:y,deps:null,effects:null,equals:Nt,f:t,fn:e,reactions:null,rv:0,v:T,wv:0,parent:n??v,ac:null}}function tr(e,t,n){let r=v;r===null&&bn();var s=r.b,i=void 0,a=Ce(T),l=!h,f=new Map;return lr(()=>{var o=Tt();i=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).then(()=>{u===g&&u.committed&&u.deactivate(),Me()})}catch(_){o.reject(_),Me()}var u=g;if(l){var d=s.is_rendered();s.update_pending_count(1),u.increment(d),f.get(u)?.reject(he),f.delete(u),f.set(u,o)}const c=(_,m=void 0)=>{if(u.activate(),m)m!==he&&(a.f|=J,Le(a,m));else{(a.f&J)!==0&&(a.f^=J),Le(a,_);for(const[F,H]of f){if(f.delete(F),F===u)break;H.reject(he)}}l&&(s.update_pending_count(-1),u.decrement(d))};o.promise.then(c,_=>c(null,_||"unknown"))}),ct(()=>{for(const o of f.values())o.reject(he)}),new Promise(o=>{function u(d){function c(){d===i?o(a):u(i)}d.then(c,c)}u(i)})}function Zr(e){const t=lt(e);return nn(t),t}function nr(e){const t=lt(e);return t.equals=Dt,t}function Yt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)j(t[n])}}function rr(e){for(var t=e.parent;t!==null;){if((t.f&b)===0)return(t.f&Z)===0?t:null;t=t.parent}return null}function ot(e){var t,n=v;q(rr(e));try{e.f&=~oe,Yt(e),t=an(e)}finally{q(n)}return t}function Ht(e){var t=ot(e);if(!e.equals(t)&&(e.wv=_t(),(!g?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){w(e,x);return}ce||(N!==null?(ut()||g?.is_fork)&&N.set(e,t):ft(e))}let Fe=new Set;const Q=new Map;function sr(e){Fe=e}let Vt=!1;function Ce(e,t){var n={f:0,v:e,reactions:null,equals:Nt,rv:0,wv:0};return n}function X(e,t){const n=Ce(e);return nn(n),n}function Jr(e,t=!1,n=!0){const r=Ce(e);return t||(r.equals=Dt),Be&&n&&y!==null&&y.l!==null&&(y.l.s??=[]).push(r),r}function ne(e,t,n=!1){h!==null&&(!I||(h.f&Xe)!==0)&&Oe()&&(h.f&(b|W|at|Xe))!==0&&!B?.includes(e)&&Dn();let r=n?we(t):t;return Le(e,r)}function Le(e,t){if(!e.equals(t)){var n=e.v;ce?Q.set(e,t):Q.set(e,n),e.v=t;var r=D.ensure();if(r.capture(e,n),(e.f&b)!==0){const s=e;(e.f&A)!==0&&ot(s),ft(s)}e.wv=_t(),Ut(e,A),Oe()&&v!==null&&(v.f&x)!==0&&(v.f&(K|_e))===0&&(O===null?hr([e]):O.push(e)),!r.is_fork&&Fe.size>0&&!Vt&&Bt()}return t}function Bt(){Vt=!1;var e=fe;je(!0);const t=Array.from(Fe);try{for(const n of t)(n.f&x)!==0&&w(n,$),Ne(n)&&Se(n)}finally{je(e)}Fe.clear()}function Te(e){ne(e,e.v+1)}function Ut(e,t){var n=e.reactions;if(n!==null)for(var r=Oe(),s=n.length,i=0;i<s;i++){var a=n[i],l=a.f;if(!(!r&&a===v)){var f=(l&A)===0;if(f&&w(a,t),(l&b)!==0){var o=a;N?.delete(o),(l&oe)===0&&(l&P&&(a.f|=oe),Ut(o,$))}else f&&((l&W)!==0&&V!==null&&V.add(a),U(a))}}}function we(e){if(typeof e!="object"||e===null||ae in e)return e;const t=bt(e);if(t!==pn&&t!==gn)return e;var n=new Map,r=cn(e),s=X(0),i=le,a=l=>{if(le===i)return l();var f=h,o=le;k(null),mt(i);var u=l();return k(f),mt(o),u};return r&&n.set("length",X(e.length)),new Proxy(e,{defineProperty(l,f,o){(!("value"in o)||o.configurable===!1||o.enumerable===!1||o.writable===!1)&&Cn();var u=n.get(f);return u===void 0?u=a(()=>{var d=X(o.value);return n.set(f,d),d}):ne(u,o.value,!0),!0},deleteProperty(l,f){var o=n.get(f);if(o===void 0){if(f in l){const u=a(()=>X(T));n.set(f,u),Te(s)}}else ne(o,T),Te(s);return!0},get(l,f,o){if(f===ae)return e;var u=n.get(f),d=f in l;if(u===void 0&&(!d||Ee(l,f)?.writable)&&(u=a(()=>{var _=we(d?l[f]:T),m=X(_);return m}),n.set(f,u)),u!==void 0){var c=ie(u);return c===T?void 0:c}return Reflect.get(l,f,o)},getOwnPropertyDescriptor(l,f){var o=Reflect.getOwnPropertyDescriptor(l,f);if(o&&"value"in o){var u=n.get(f);u&&(o.value=ie(u))}else if(o===void 0){var d=n.get(f),c=d?.v;if(d!==void 0&&c!==T)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return o},has(l,f){if(f===ae)return!0;var o=n.get(f),u=o!==void 0&&o.v!==T||Reflect.has(l,f);if(o!==void 0||v!==null&&(!u||Ee(l,f)?.writable)){o===void 0&&(o=a(()=>{var c=u?we(l[f]):T,_=X(c);return _}),n.set(f,o));var d=ie(o);if(d===T)return!1}return u},set(l,f,o,u){var d=n.get(f),c=f in l;if(r&&f==="length")for(var _=o;_<d.v;_+=1){var m=n.get(_+"");m!==void 0?ne(m,T):_ in l&&(m=a(()=>X(T)),n.set(_+"",m))}if(d===void 0)(!c||Ee(l,f)?.writable)&&(d=a(()=>X(void 0)),ne(d,we(o)),n.set(f,d));else{c=d.v!==T;var F=a(()=>we(o));ne(d,F)}var H=Reflect.getOwnPropertyDescriptor(l,f);if(H?.set&&H.set.call(u,o),!c){if(r&&typeof f=="string"){var dt=n.get("length"),$e=Number(f);Number.isInteger($e)&&$e>=dt.v&&ne(dt,$e+1)}Te(s)}return!0},ownKeys(l){ie(s);var f=Reflect.ownKeys(l).filter(d=>{var c=n.get(d);return c===void 0||c.v!==T});for(var[o,u]of n)u.v!==T&&!(o in l)&&f.push(o);return f},setPrototypeOf(){Nn()}})}function pt(e){try{if(e!==null&&typeof e=="object"&&ae in e)return e[ae]}catch{}return e}function Qr(e,t){return Object.is(pt(e),pt(t))}var gt,Gt,Wt,Kt;function tt(){if(gt===void 0){gt=window,Gt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Wt=Ee(t,"firstChild").get,Kt=Ee(t,"nextSibling").get,ht(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),ht(n)&&(n.__t=void 0)}}function G(e=""){return document.createTextNode(e)}function ue(e){return Wt.call(e)}function z(e){return Kt.call(e)}function es(e,t){if(!E)return ue(e);var n=ue(p);if(n===null)n=p.appendChild(G());else if(t&&n.nodeType!==He){var r=G();return n?.before(r),M(r),r}return M(n),n}function ts(e,t=!1){if(!E){var n=ue(e);return n instanceof Comment&&n.data===""?z(n):n}if(t&&p?.nodeType!==He){var r=G();return p?.before(r),M(r),r}return p}function ns(e,t=1,n=!1){let r=E?p:e;for(var s;t--;)s=r,r=z(r);if(!E)return r;if(n&&r?.nodeType!==He){var i=G();return r===null?s?.after(i):r.before(i),M(i),i}return M(r),r}function $t(e){e.textContent=""}function rs(){return!1}function ss(e){E&&ue(e)!==null&&$t(e)}let yt=!1;function ir(){yt||(yt=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function is(e,t,n,r=!0){r&&n();for(var s of t)e.addEventListener(s,n);ct(()=>{for(var i of t)e.removeEventListener(i,n)})}function Ke(e){var t=h,n=v;k(null),q(null);try{return e()}finally{k(t),q(n)}}function as(e,t,n,r=n){e.addEventListener(t,()=>Ke(n));const s=e.__on_r;s?e.__on_r=()=>{s(),r(!0)}:e.__on_r=()=>r(!0),ir()}function zt(e){v===null&&(h===null&&An(),xn()),ce&&Tn()}function ar(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Y(e,t,n){var r=v;r!==null&&(r.f&L)!==0&&(e|=L);var s={ctx:y,deps:null,nodes:null,f:e|A|P,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};if(n)try{Se(s),s.f|=Ye}catch(l){throw j(s),l}else t!==null&&U(s);var i=s;if(n&&i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&ye)===0&&(i=i.first,(e&W)!==0&&(e&xe)!==0&&i!==null&&(i.f|=xe)),i!==null&&(i.parent=r,r!==null&&ar(i,r),h!==null&&(h.f&b)!==0&&(e&_e)===0)){var a=h;(a.effects??=[]).push(i)}return s}function ut(){return h!==null&&!I}function ct(e){const t=Y(ke,null,!1);return w(t,x),t.teardown=e,t}function fs(e){zt();var t=v.f,n=!h&&(t&K)!==0&&(t&Ye)===0;if(n){var r=y;(r.e??=[]).push(e)}else return Xt(e)}function Xt(e){return Y(Ie|St,e,!1)}function ls(e){return zt(),Y(ke|St,e,!0)}function fr(e){D.ensure();const t=Y(_e|ye,e,!0);return(n={})=>new Promise(r=>{n.outro?Pe(t,()=>{j(t),r(void 0)}):(j(t),r(void 0))})}function os(e){return Y(Ie,e,!1)}function lr(e){return Y(at|ye,e,!0)}function or(e,t=0){return Y(ke|t,e,!0)}function us(e,t=[],n=[],r=[]){Qn(r,t,n,s=>{Y(ke,()=>e(...s.map(ie)),!0)})}function ur(e,t=0){var n=Y(W|t,e,!0);return n}function te(e){return Y(K|ye,e,!0)}function Zt(e){var t=e.teardown;if(t!==null){const n=ce,r=h;wt(!0),k(null);try{t.call(null)}finally{wt(n),k(r)}}}function Jt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&Ke(()=>{s.abort(he)});var r=n.next;(n.f&_e)!==0?n.parent=null:j(n,t),n=r}}function cr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&K)===0&&j(t),t=n}}function j(e,t=!0){var n=!1;(t||(e.f&At)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(_r(e.nodes.start,e.nodes.end),n=!0),Jt(e,t&&!n),qe(e,0),w(e,Z);var r=e.nodes&&e.nodes.t;if(r!==null)for(const i of r)i.stop();Zt(e);var s=e.parent;s!==null&&s.first!==null&&Qt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function _r(e,t){for(;e!==null;){var n=e===t?null:z(e);e.remove(),e=n}}function Qt(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 Pe(e,t,n=!0){var r=[];en(e,r,!0);var s=()=>{n&&j(e),t&&t()},i=r.length;if(i>0){var a=()=>--i||s();for(var l of r)l.out(a)}else s()}function en(e,t,n){if((e.f&L)===0){e.f^=L;var r=e.nodes&&e.nodes.t;if(r!==null)for(const l of r)(l.is_global||n)&&t.push(l);for(var s=e.first;s!==null;){var i=s.next,a=(s.f&xe)!==0||(s.f&K)!==0&&(e.f&W)!==0;en(s,t,a?n:!1),s=i}}}function cs(e){tn(e,!0)}function tn(e,t){if((e.f&L)!==0){e.f^=L,(e.f&x)===0&&(w(e,A),U(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&xe)!==0||(n.f&K)!==0;tn(n,s?t:!1),n=r}var i=e.nodes&&e.nodes.t;if(i!==null)for(const a of i)(a.is_global||t)&&a.in()}}function dr(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:z(n);t.append(n),n=s}}let fe=!1;function je(e){fe=e}let ce=!1;function wt(e){ce=e}let h=null,I=!1;function k(e){h=e}let v=null;function q(e){v=e}let B=null;function nn(e){h!==null&&(B===null?B=[e]:B.push(e))}let S=null,R=0,O=null;function hr(e){O=e}let rn=1,Ae=0,le=Ae;function mt(e){le=e}function _t(){return++rn}function Ne(e){var t=e.f;if((t&A)!==0)return!0;if(t&b&&(e.f&=~oe),(t&$)!==0){for(var n=e.deps,r=n.length,s=0;s<r;s++){var i=n[s];if(Ne(i)&&Ht(i),i.wv>e.wv)return!0}(t&P)!==0&&N===null&&w(e,x)}return!1}function sn(e,t,n=!0){var r=e.reactions;if(r!==null&&!B?.includes(e))for(var s=0;s<r.length;s++){var i=r[s];(i.f&b)!==0?sn(i,t,!1):t===i&&(n?w(i,A):(i.f&x)!==0&&w(i,$),U(i))}}function an(e){var t=S,n=R,r=O,s=h,i=B,a=y,l=I,f=le,o=e.f;S=null,R=0,O=null,h=(o&(K|_e))===0?e:null,B=null,pe(e.ctx),I=!1,le=++Ae,e.ac!==null&&(Ke(()=>{e.ac.abort(he)}),e.ac=null);try{e.f|=Ze;var u=e.fn,d=u(),c=e.deps;if(S!==null){var _;if(qe(e,R),c!==null&&R>0)for(c.length=R+S.length,_=0;_<S.length;_++)c[R+_]=S[_];else e.deps=c=S;if(ut()&&(e.f&P)!==0)for(_=R;_<c.length;_++)(c[_].reactions??=[]).push(e)}else c!==null&&R<c.length&&(qe(e,R),c.length=R);if(Oe()&&O!==null&&!I&&c!==null&&(e.f&(b|$|A))===0)for(_=0;_<O.length;_++)sn(O[_],e);return s!==null&&s!==e&&(Ae++,O!==null&&(r===null?r=O:r.push(...O))),(e.f&J)!==0&&(e.f^=J),d}catch(m){return It(m)}finally{e.f^=Ze,S=t,R=n,O=r,h=s,B=i,pe(a),I=l,le=f}}function vr(e,t){let n=t.reactions;if(n!==null){var r=_n.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}if(n===null&&(t.f&b)!==0&&(S===null||!S.includes(t))){var i=t;(i.f&P)!==0&&(i.f^=P,i.f&=~oe),ft(i),Yt(i),qe(i,0)}}function qe(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)vr(e,n[r])}function Se(e){var t=e.f;if((t&Z)===0){w(e,x);var n=v,r=fe;v=e,fe=!0;try{(t&(W|xt))!==0?cr(e):Jt(e),Zt(e);var s=an(e);e.teardown=typeof s=="function"?s:null,e.wv=rn;var i}finally{fe=r,v=n}}}async function _s(){await Promise.resolve(),Qe()}function ds(){return D.ensure().settled()}function ie(e){var t=e.f,n=(t&b)!==0;if(h!==null&&!I){var r=v!==null&&(v.f&Z)!==0;if(!r&&!B?.includes(e)){var s=h.deps;if((h.f&Ze)!==0)e.rv<Ae&&(e.rv=Ae,S===null&&s!==null&&s[R]===e?R++:S===null?S=[e]:S.includes(e)||S.push(e));else{(h.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[h]:i.includes(h)||i.push(h)}}}if(ce&&Q.has(e))return Q.get(e);if(n){var a=e;if(ce){var l=a.v;return((a.f&x)===0&&a.reactions!==null||ln(a))&&(l=ot(a)),Q.set(a,l),l}var f=(a.f&P)===0&&!I&&h!==null&&(fe||(h.f&P)!==0),o=a.deps===null;Ne(a)&&(f&&(a.f|=P),Ht(a)),f&&!o&&fn(a)}if(N?.has(e))return N.get(e);if((e.f&J)!==0)throw e.v;return e.v}function fn(e){if(e.deps!==null){e.f|=P;for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&b)!==0&&(t.f&P)===0&&fn(t)}}function ln(e){if(e.v===T)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Q.has(t)||(t.f&b)!==0&&ln(t))return!0;return!1}function pr(e){var t=I;try{return I=!0,e()}finally{I=t}}function hs(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(ae in e)nt(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&ae in n&&nt(n)}}}function nt(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{nt(e[r],t)}catch{}const n=bt(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=vn(n);for(let s in r){const i=r[s].get;if(i)try{i.call(e)}catch{}}}}}const gr=["touchstart","touchmove"];function yr(e){return gr.includes(e)}const on=new Set,rt=new Set;function wr(e,t,n,r={}){function s(i){if(r.capture||me.call(t,i),!i.cancelBubble)return Ke(()=>n?.call(this,i))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Ge(()=>{t.addEventListener(e,s,r)}):t.addEventListener(e,s,r),s}function vs(e,t,n,r,s){var i={capture:r,passive:s},a=wr(e,t,n,i);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&ct(()=>{t.removeEventListener(e,a,i)})}function ps(e){for(var t=0;t<e.length;t++)on.add(e[t]);for(var n of rt)n(e)}let Et=null;function me(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;Et=e;var a=0,l=Et===e&&e.__root;if(l){var f=s.indexOf(l);if(f!==-1&&(t===document||t===window)){e.__root=t;return}var o=s.indexOf(t);if(o===-1)return;f<=o&&(a=f)}if(i=s[a]||e.target,i!==t){hn(e,"currentTarget",{configurable:!0,get(){return i||n}});var u=h,d=v;k(null),q(null);try{for(var c,_=[];i!==null;){var m=i.assignedSlot||i.parentNode||i.host||null;try{var F=i["__"+r];F!=null&&(!i.disabled||e.target===i)&&F.call(i,e)}catch(H){c?_.push(H):c=H}if(e.cancelBubble||m===t||m===null)break;i=m}if(c){for(let H of _)queueMicrotask(()=>{throw H});throw c}}finally{e.__root=t,delete e.currentTarget,k(u),q(d)}}}function mr(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function ee(e,t){var n=v;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function gs(e,t){var n=(t&In)!==0,r=(t&Mn)!==0,s,i=!e.startsWith("<!>");return()=>{if(E)return ee(p,null),p;s===void 0&&(s=mr(i?e:"<!>"+e),n||(s=ue(s)));var a=r||Gt?document.importNode(s,!0):s.cloneNode(!0);if(n){var l=ue(a),f=a.lastChild;ee(l,f)}else ee(a,a);return a}}function ys(e=""){if(!E){var t=G(e+"");return ee(t,t),t}var n=p;return n.nodeType!==He&&(n.before(n=G()),M(n)),ee(n,n),n}function ws(){if(E)return ee(p,null),p;var e=document.createDocumentFragment(),t=document.createComment(""),n=G();return e.append(t,n),ee(t,n),e}function ms(e,t){if(E){var n=v;((n.f&Ye)===0||n.nodes.end===null)&&(n.nodes.end=p),Ct();return}e!==null&&e.before(t)}function Es(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function Er(e,t){return un(e,t)}function bs(e,t){tt(),t.intro=t.intro??!1;const n=t.target,r=E,s=p;try{for(var i=ue(n);i&&(i.nodeType!==Re||i.data!==kt);)i=z(i);if(!i)throw ve;De(!0),M(i);const a=un(e,{...t,anchor:i});return De(!1),a}catch(a){if(a instanceof Error&&a.message.split(`
|
|
2
|
+
`).some(l=>l.startsWith("https://svelte.dev/e/")))throw a;return a!==ve&&console.warn("Failed to hydrate: ",a),t.recover===!1&&On(),tt(),$t(n),De(!1),Er(e,t)}finally{De(r),M(s)}}const de=new Map;function un(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:a=!0}){tt();var l=new Set,f=d=>{for(var c=0;c<d.length;c++){var _=d[c];if(!l.has(_)){l.add(_);var m=yr(_);t.addEventListener(_,me,{passive:m});var F=de.get(_);F===void 0?(document.addEventListener(_,me,{passive:m}),de.set(_,1)):de.set(_,F+1)}}};f(dn(on)),rt.add(f);var o=void 0,u=fr(()=>{var d=n??t.appendChild(G());return Zn(d,{pending:()=>{}},c=>{if(i){Bn({});var _=y;_.c=i}if(s&&(r.$$events=s),E&&ee(c,null),o=e(c,r)||{},E&&(v.nodes.end=p,p===null||p.nodeType!==Re||p.data!==Ot))throw Ve(),ve;i&&Un()}),()=>{for(var c of l){t.removeEventListener(c,me);var _=de.get(c);--_===0?(document.removeEventListener(c,me),de.delete(c)):de.set(c,_)}rt.delete(f),d!==n&&d.parentNode?.removeChild(d)}});return st.set(o,u),o}let st=new WeakMap;function Ts(e,t){const n=st.get(e);return n?(st.delete(e),n(t)):Promise.resolve()}export{Tr as $,zr as A,Yn as B,Vn as C,bs as D,Er as E,Hn as F,ds as G,_s as H,Ts as I,g as J,cs as K,j as L,Pe as M,G as N,te as O,p as P,dr as Q,rs as R,ur as S,Ct as T,mr as U,ee as V,ct as W,xe as X,ue as Y,ls as Z,yn as _,ts as a,vs as a$,hs as a0,lt as a1,Kr as a2,br as a3,Ln as a4,Wr as a5,Rt as a6,jn as a7,M as a8,De as a9,Ot as aA,Le as aB,Ar as aC,Ce as aD,dn as aE,Dr as aF,Fr as aG,Pr as aH,L as aI,z as aJ,Mr as aK,$t as aL,kr as aM,Vr as aN,bt as aO,vn as aP,ir as aQ,as as aR,ze as aS,Ur as aT,Qr as aU,is as aV,Ke as aW,ps as aX,Te as aY,xr as aZ,ss as a_,os as aa,or as ab,Ge as ac,ae as ad,Ee as ae,Nr as af,qr as ag,nr as ah,we as ai,ne as aj,ce as ak,v as al,Z as am,Yr as an,jr as ao,Lr as ap,Hr as aq,Sr as ar,hn as as,Jr as at,X as au,ws as av,Zr as aw,ys as ax,Ir as ay,Re as az,ms as b,gt as b0,qn as b1,Un as c,es as d,Es as e,gs as f,ie as g,wn as h,E as i,Br as j,y as k,mn as l,h as m,Or as n,cn as o,Bn as p,Cr as q,Gr as r,ns as s,us as t,fs as u,Be as v,pr as w,$r as x,Qe as y,Xr as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as D,i as R,T as N,X as Y,a5 as M,a6 as q,a7 as w,a8 as x,a9 as A,aa as U,ab as C,w as O,ac as F,ad as y,ae as $,af as j,ag as z,g as P,a1 as G,ah as H,ai as X,aj as Z,ak as k,al as J,am as K,an as Q,v as V,ao as W,ap as m,aq as p,ar as aa}from"./
|
|
1
|
+
import{S as D,i as R,T as N,X as Y,a5 as M,a6 as q,a7 as w,a8 as x,a9 as A,aa as U,ab as C,w as O,ac as F,ad as y,ae as $,af as j,ag as z,g as P,a1 as G,ah as H,ai as X,aj as Z,ak as k,al as J,am as K,an as Q,v as V,ao as W,ap as m,aq as p,ar as aa}from"./CBJmzK5-.js";import{B as ra}from"./CgtJ9oav.js";function sa(a,r,s=!1){R&&N();var f=new ra(a),n=s?Y:0;function e(u,t){if(R){const S=M(a)===q;if(u===S){var _=w();x(_),f.anchor=_,A(!1),f.ensure(u,t),A(!0);return}}f.ensure(u,t)}D(()=>{var u=!1;r((t,_=!0)=>{u=!0,e(_,t)}),u||e(!1,null)},n)}function I(a,r){return a===r||a?.[y]===r}function ta(a={},r,s,f){return U(()=>{var n,e;return C(()=>{n=e,e=[],O(()=>{a!==s(...e)&&(r(a,...e),n&&I(s(...n),a)&&r(null,...n))})}),()=>{F(()=>{e&&I(s(...e),a)&&r(null,...e)})}}),a}let h=!1;function ea(a){var r=h;try{return h=!1,[a(),h]}finally{h=r}}function fa(a,r,s,f){var n=!V||(s&W)!==0,e=(s&Q)!==0,u=(s&p)!==0,t=f,_=!0,S=()=>(_&&(_=!1,t=u?O(f):f),t),v;if(e){var L=y in a||aa in a;v=$(a,r)?.set??(L&&r in a?i=>a[r]=i:void 0)}var l,E=!1;e?[l,E]=ea(()=>a[r]):l=a[r],l===void 0&&f!==void 0&&(l=S(),v&&(n&&j(),v(l)));var d;if(n?d=()=>{var i=a[r];return i===void 0?S():(_=!0,i)}:d=()=>{var i=a[r];return i!==void 0&&(t=void 0),i===void 0?t:i},n&&(s&z)===0)return d;if(v){var o=a.$$legacy;return(function(i,g){return arguments.length>0?((!n||!g||o||E)&&v(g?d():i),i):d()})}var b=!1,c=((s&m)!==0?G:H)(()=>(b=!1,d()));e&&P(c);var B=J;return(function(i,g){if(arguments.length>0){const T=g?P(c):n&&e?X(i):i;return Z(c,T),b=!0,t!==void 0&&(t=T),i}return k&&b||(B.f&K)!==0?c.v:P(c)})}export{ta as b,sa as i,fa as p};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as qe,s as _t}from"./STfePW3F.js";import{p as mt,e as wt,a as vt,b as x}from"./C9162_lF.js";import{a3 as pe,b1 as yt,au as U,g as P,aj as T,H as ee,G as bt}from"./CBJmzK5-.js";const V=[];function Ee(e,t=pe){let n=null;const a=new Set;function r(s){if(yt(e,s)&&(e=s,n)){const c=!V.length;for(const l of a)l[1](),V.push(l,e);if(c){for(let l=0;l<V.length;l+=2)V[l][0](V[l+1]);V.length=0}}}function i(s){r(s(e))}function o(s,c=pe){const l=[s,c];return a.add(l),a.size===1&&(n=t(r,i)||pe),s(e),()=>{a.delete(l),a.size===0&&n&&(n(),n=null)}}return{set:r,update:i,subscribe:o}}class Se{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Re{constructor(t,n){this.status=t,this.location=n}}class xe extends Error{constructor(t,n,a){super(a),this.status=t,this.text=n}}new URL("sveltekit-internal://");function kt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function Et(e){return e.split("%25").map(decodeURI).join("%25")}function St(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function ge({href:e}){return e.split("#")[0]}function Rt(e,t,n,a=!1){const r=new URL(e);Object.defineProperty(r,"searchParams",{value:new Proxy(r.searchParams,{get(o,s){if(s==="get"||s==="getAll"||s==="has")return(l,...h)=>(n(l),o[s](l,...h));t();const c=Reflect.get(o,s);return typeof c=="function"?c.bind(o):c}}),enumerable:!0,configurable:!0});const i=["href","pathname","search","toString","toJSON"];a&&i.push("hash");for(const o of i)Object.defineProperty(r,o,{get(){return t(),e[o]},enumerable:!0,configurable:!0});return r}function xt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let a=n.length;for(;a;)t=t*33^n.charCodeAt(--a)}else if(ArrayBuffer.isView(n)){const a=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=a.length;for(;r;)t=t*33^a[--r]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;new TextDecoder;function Lt(e){const t=atob(e),n=new Uint8Array(t.length);for(let a=0;a<t.length;a++)n[a]=t.charCodeAt(a);return n}const At=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&Y.delete(Le(e)),At(e,t));const Y=new Map;function Ut(e,t){const n=Le(e,t),a=document.querySelector(n);if(a?.textContent){a.remove();let{body:r,...i}=JSON.parse(a.textContent);const o=a.getAttribute("data-ttl");return o&&Y.set(n,{body:r,init:i,ttl:1e3*Number(o)}),a.getAttribute("data-b64")!==null&&(r=Lt(r)),Promise.resolve(new Response(r,i))}return window.fetch(e,t)}function Pt(e,t,n){if(Y.size>0){const a=Le(e,n),r=Y.get(a);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(a)}}return window.fetch(t,n)}function Le(e,t){let a=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const r=[];t.headers&&r.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&r.push(t.body),a+=`[data-hash="${xt(...r)}"]`}return a}function Tt({nodes:e,server_loads:t,dictionary:n,matchers:a}){const r=new Set(t);return Object.entries(n).map(([s,[c,l,h]])=>{const{pattern:_,params:f}=mt(s),u={id:s,exec:p=>{const w=_.exec(p);if(w)return wt(w,f,a)},errors:[1,...h||[]].map(p=>e[p]),layouts:[0,...l||[]].map(o),leaf:i(c)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function i(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function o(s){return s===void 0?s:[r.has(s),e[s]]}}function ze(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function De(e,t,n=JSON.stringify){const a=n(t);try{sessionStorage[e]=a}catch{}}const Ot="1768650924240",Fe="sveltekit:snapshot",Je="sveltekit:scroll",We="sveltekit:states",It="sveltekit:pageurl",G="sveltekit:history",z="sveltekit:navigation",j={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},le=location.origin;function Ae(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function ue(){return{x:pageXOffset,y:pageYOffset}}function B(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Ve={...j,"":j.hover};function Xe(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Qe(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Xe(e)}}function we(e,t,n){let a;try{if(a=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&a.hash.match(/^#[^/]/)){const s=location.hash.split("#")[1]||"/";a.hash=`#${s}${a.hash}`}}catch{}const r=e instanceof SVGAElement?e.target.baseVal:e.target,i=!a||!!r||fe(a,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=a?.origin===le&&e.hasAttribute("download");return{url:a,external:i,target:r,download:o}}function te(e){let t=null,n=null,a=null,r=null,i=null,o=null,s=e;for(;s&&s!==document.documentElement;)a===null&&(a=B(s,"preload-code")),r===null&&(r=B(s,"preload-data")),t===null&&(t=B(s,"keepfocus")),n===null&&(n=B(s,"noscroll")),i===null&&(i=B(s,"reload")),o===null&&(o=B(s,"replacestate")),s=Xe(s);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Ve[a??"off"],preload_data:Ve[r??"off"],keepfocus:c(t),noscroll:c(n),reload:c(i),replace_state:c(o)}}function Be(e){const t=Ee(e);let n=!0;function a(){n=!0,t.update(o=>o)}function r(o){n=!1,t.set(o)}function i(o){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&o(s=c)})}return{notify:a,set:r,subscribe:i}}const Ze={v:()=>{}};function Ct(){const{set:e,subscribe:t}=Ee(!1);let n;async function a(){clearTimeout(n);try{const r=await fetch(`${vt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const o=(await r.json()).version!==Ot;return o&&(e(!0),Ze.v(),clearTimeout(n)),o}catch{return!1}}return{subscribe:t,check:a}}function fe(e,t,n){return e.origin!==le||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function fn(e){}const et=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...et];const Nt=new Set([...et]);[...Nt];function jt(e){return e.filter(t=>t!=null)}function Ue(e){return e instanceof Se||e instanceof xe?e.status:500}function $t(e){return e instanceof xe?e.text:"Internal Error"}let k,F,_e;const qt=qe.toString().includes("$$")||/function \w+\(\) \{\}/.test(qe.toString());qt?(k={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},F={current:null},_e={current:!1}):(k=new class{#e=U({});get data(){return P(this.#e)}set data(t){T(this.#e,t)}#t=U(null);get form(){return P(this.#t)}set form(t){T(this.#t,t)}#n=U(null);get error(){return P(this.#n)}set error(t){T(this.#n,t)}#a=U({});get params(){return P(this.#a)}set params(t){T(this.#a,t)}#r=U({id:null});get route(){return P(this.#r)}set route(t){T(this.#r,t)}#o=U({});get state(){return P(this.#o)}set state(t){T(this.#o,t)}#s=U(-1);get status(){return P(this.#s)}set status(t){T(this.#s,t)}#i=U(new URL("https://example.com"));get url(){return P(this.#i)}set url(t){T(this.#i,t)}},F=new class{#e=U(null);get current(){return P(this.#e)}set current(t){T(this.#e,t)}},_e=new class{#e=U(!1);get current(){return P(this.#e)}set current(t){T(this.#e,t)}},Ze.v=()=>_e.current=!0);function Dt(e){Object.assign(k,e)}const Ge={spanContext(){return Vt},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}},Vt={traceId:"",spanId:"",traceFlags:0},{onMount:Bt}=_t,Gt=new Set(["icon","shortcut icon","apple-touch-icon"]),q=ze(Je)??{},J=ze(Fe)??{},N={url:Be({}),page:Be({}),navigating:Ee(null),updated:Ct()};function Pe(e){q[e]=ue()}function Ht(e,t){let n=e+1;for(;q[n];)delete q[n],n+=1;for(n=t+1;J[n];)delete J[n],n+=1}function W(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(()=>{})}async function tt(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(x||"/");e&&await e.update()}}function He(){}let Te,ve,ne,O,ye,v;const ae=[],re=[];let L=null;function be(){L?.fork?.then(e=>e?.discard()),L=null}const Z=new Map,nt=new Set,Kt=new Set,H=new Set;let m={branch:[],error:null,url:null},at=!1,oe=!1,Ke=!0,X=!1,M=!1,rt=!1,Oe=!1,ot,y,R,$;const se=new Set,Me=new Map;async function gn(e,t,n){globalThis.__sveltekit_xg6won?.data&&globalThis.__sveltekit_xg6won.data,document.URL!==location.href&&(location.href=location.href),v=e,await e.hooks.init?.(),Te=Tt(e),O=document.documentElement,ye=t,ve=e.nodes[0],ne=e.nodes[1],ve(),ne(),y=history.state?.[G],R=history.state?.[z],y||(y=R=Date.now(),history.replaceState({...history.state,[G]:y,[z]:R},""));const a=q[y];function r(){a&&(history.scrollRestoration="manual",scrollTo(a.x,a.y))}n?(r(),await an(ye,n)):(await K({type:"enter",url:Ae(v.hash?sn(new URL(location.href)):location.href),replace_state:!0}),r()),nn()}function Mt(){ae.length=0,Oe=!1}function st(e){re.some(t=>t?.snapshot)&&(J[e]=re.map(t=>t?.snapshot?.capture()))}function it(e){J[e]?.forEach((t,n)=>{re[n]?.snapshot?.restore(t)})}function Ye(){Pe(y),De(Je,q),st(R),De(Fe,J)}async function ct(e,t,n,a){let r;t.invalidateAll&&be(),await K({type:"goto",url:Ae(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:a,accept:()=>{t.invalidateAll&&(Oe=!0,r=[...Me.keys()]),t.invalidate&&t.invalidate.forEach(tn)}}),t.invalidateAll&&ee().then(ee).then(()=>{Me.forEach(({resource:i},o)=>{r?.includes(o)&&i.refresh?.()})})}async function Yt(e){if(e.id!==L?.id){be();const t={};se.add(t),L={id:e.id,token:t,promise:ft({...e,preload:t}).then(n=>(se.delete(t),n.type==="loaded"&&n.state.error&&be(),n)),fork:null}}return L.promise}async function me(e){const t=(await de(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}async function lt(e,t,n){m=e.state;const a=document.querySelector("style[data-sveltekit]");if(a&&a.remove(),Object.assign(k,e.props.page),ot=new v.root({target:t,props:{...e.props,stores:N,components:re},hydrate:n,sync:!1}),await Promise.resolve(),it(R),n){const r={from:null,to:{params:m.params,route:{id:m.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};H.forEach(i=>i(r))}oe=!0}function ie({url:e,params:t,branch:n,status:a,error:r,route:i,form:o}){let s="never";if(x&&(e.pathname===x||e.pathname===x+"/"))s="always";else for(const u of n)u?.slash!==void 0&&(s=u.slash);e.pathname=kt(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:r,route:i},props:{constructors:jt(n).map(u=>u.node.component),page:$e(k)}};o!==void 0&&(c.props.form=o);let l={},h=!k,_=0;for(let u=0;u<Math.max(n.length,m.branch.length);u+=1){const p=n[u],w=m.branch[u];p?.data!==w?.data&&(h=!0),p&&(l={...l,...p.data},h&&(c.props[`data_${_}`]=l),_+=1)}return(!m.url||e.href!==m.url.href||m.error!==r||o!==void 0&&o!==k.form||h)&&(c.props.page={error:r,params:t,route:{id:i?.id??null},state:{},status:a,url:new URL(e),form:o??null,data:h?l:k.data}),c}async function Ie({loader:e,parent:t,url:n,params:a,route:r,server_data_node:i}){let o=null,s=!0;const c={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},l=await e();if(l.universal?.load){let h=function(...f){for(const u of f){const{href:p}=new URL(u,n);c.dependencies.add(p)}};const _={tracing:{enabled:!1,root:Ge,current:Ge},route:new Proxy(r,{get:(f,u)=>(s&&(c.route=!0),f[u])}),params:new Proxy(a,{get:(f,u)=>(s&&c.params.add(u),f[u])}),data:i?.data??null,url:Rt(n,()=>{s&&(c.url=!0)},f=>{s&&c.search_params.add(f)},v.hash),async fetch(f,u){f instanceof Request&&(u={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:[...f.headers].length>0?f?.headers:void 0,integrity:f.integrity,keepalive:f.keepalive,method:f.method,mode:f.mode,redirect:f.redirect,referrer:f.referrer,referrerPolicy:f.referrerPolicy,signal:f.signal,...u});const{resolved:p,promise:w}=ut(f,u,n);return s&&h(p.href),w},setHeaders:()=>{},depends:h,parent(){return s&&(c.parent=!0),t()},untrack(f){s=!1;try{return f()}finally{s=!0}}};o=await l.universal.load.call(null,_)??null}return{node:l,loader:e,server:i,universal:l.universal?.load?{type:"data",data:o,uses:c}:null,data:o??i?.data??null,slash:l.universal?.trailingSlash??i?.slash}}function ut(e,t,n){let a=e instanceof Request?e.url:e;const r=new URL(a,n);r.origin===n.origin&&(a=r.href.slice(n.origin.length));const i=oe?Pt(a,r.href,t):Ut(a,t);return{resolved:r,promise:i}}function zt(e,t,n,a,r,i){if(Oe)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&n)return!0;for(const o of r.search_params)if(a.has(o))return!0;for(const o of r.params)if(i[o]!==m.params[o])return!0;for(const o of r.dependencies)if(ae.some(s=>s(new URL(o))))return!0;return!1}function Ce(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Ft(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const a of n){const r=e.searchParams.getAll(a),i=t.searchParams.getAll(a);r.every(o=>i.includes(o))&&i.every(o=>r.includes(o))&&n.delete(a)}return n}function Jt({error:e,url:t,route:n,params:a}){return{type:"loaded",state:{error:e,url:t,route:n,params:a,branch:[]},props:{page:$e(k),constructors:[]}}}async function ft({id:e,invalidating:t,url:n,params:a,route:r,preload:i}){if(L?.id===e)return se.delete(L.token),L.promise;const{errors:o,layouts:s,leaf:c}=r,l=[...s,c];o.forEach(g=>g?.().catch(()=>{})),l.forEach(g=>g?.[1]().catch(()=>{}));const h=m.url?e!==ce(m.url):!1,_=m.route?r.id!==m.route.id:!1,f=Ft(m.url,n);let u=!1;const p=l.map(async(g,d)=>{if(!g)return;const E=m.branch[d];return g[1]===E?.loader&&!zt(u,_,h,f,E.universal?.uses,a)?E:(u=!0,Ie({loader:g[1],url:n,params:a,route:r,parent:async()=>{const I={};for(let A=0;A<d;A+=1)Object.assign(I,(await p[A])?.data);return I},server_data_node:Ce(g[0]?{type:"skip"}:null,g[0]?E?.server:void 0)}))});for(const g of p)g.catch(()=>{});const w=[];for(let g=0;g<l.length;g+=1)if(l[g])try{w.push(await p[g])}catch(d){if(d instanceof Re)return{type:"redirect",location:d.location};if(se.has(i))return Jt({error:await Q(d,{params:a,url:n,route:{id:r.id}}),url:n,params:a,route:r});let E=Ue(d),S;if(d instanceof Se)S=d.body;else{if(await N.updated.check())return await tt(),await W(n);S=await Q(d,{params:a,url:n,route:{id:r.id}})}const I=await Wt(g,w,o);return I?ie({url:n,params:a,branch:w.slice(0,I.idx).concat(I.node),status:E,error:S,route:r}):await ht(n,{id:r.id},S,E)}else w.push(void 0);return ie({url:n,params:a,branch:w,status:200,error:null,route:r,form:t?void 0:null})}async function Wt(e,t,n){for(;e--;)if(n[e]){let a=e;for(;!t[a];)a-=1;try{return{idx:a+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function Ne({status:e,error:t,url:n,route:a}){const r={};let i=null;try{const o=await Ie({loader:ve,url:n,params:r,route:a,parent:()=>Promise.resolve({}),server_data_node:Ce(i)}),s={node:await ne(),loader:ne,universal:null,server:null,data:null};return ie({url:n,params:r,branch:[o,s],status:e,error:t,route:null})}catch(o){if(o instanceof Re)return ct(new URL(o.location,location.href),{},0);throw o}}async function Xt(e){const t=e.href;if(Z.has(t))return Z.get(t);let n;try{const a=(async()=>{let r=await v.hooks.reroute({url:new URL(e),fetch:async(i,o)=>ut(i,o,e).promise})??e;if(typeof r=="string"){const i=new URL(e);v.hash?i.hash=r:i.pathname=r,r=i}return r})();Z.set(t,a),n=await a}catch{Z.delete(t);return}return n}async function de(e,t){if(e&&!fe(e,x,v.hash)){const n=await Xt(e);if(!n)return;const a=Qt(n);for(const r of Te){const i=r.exec(a);if(i)return{id:ce(e),invalidating:t,route:r,params:St(i),url:e}}}}function Qt(e){return Et(v.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(x.length))||"/"}function ce(e){return(v.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function dt({url:e,type:t,intent:n,delta:a,event:r}){let i=!1;const o=je(m,n,e,t);a!==void 0&&(o.navigation.delta=a),r!==void 0&&(o.navigation.event=r);const s={...o.navigation,cancel:()=>{i=!0,o.reject(new Error("navigation cancelled"))}};return X||nt.forEach(c=>c(s)),i?null:o}async function K({type:e,url:t,popped:n,keepfocus:a,noscroll:r,replace_state:i,state:o={},redirect_count:s=0,nav_token:c={},accept:l=He,block:h=He,event:_}){const f=$;$=c;const u=await de(t,!1),p=e==="enter"?je(m,u,t,e):dt({url:t,type:e,delta:n?.delta,intent:u,event:_});if(!p){h(),$===c&&($=f);return}const w=y,g=R;l(),X=!0,oe&&p.navigation.type!=="enter"&&N.navigating.set(F.current=p.navigation);let d=u&&await ft(u);if(!d){if(fe(t,x,v.hash))return await W(t,i);d=await ht(t,{id:null},await Q(new xe(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i)}if(t=u?.url||t,$!==c)return p.reject(new Error("navigation aborted")),!1;if(d.type==="redirect"){if(s<20){await K({type:e,url:new URL(d.location,t),popped:n,keepfocus:a,noscroll:r,replace_state:i,state:o,redirect_count:s+1,nav_token:c}),p.fulfil(void 0);return}d=await Ne({status:500,error:await Q(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}})}else d.props.page.status>=400&&await N.updated.check()&&(await tt(),await W(t,i));if(Mt(),Pe(w),st(g),d.props.page.url.pathname!==t.pathname&&(t.pathname=d.props.page.url.pathname),o=n?n.state:o,!n){const b=i?0:1,D={[G]:y+=b,[z]:R+=b,[We]:o};(i?history.replaceState:history.pushState).call(history,D,"",t),i||Ht(y,R)}const E=u&&L?.id===u.id?L.fork:null;L=null,d.props.page.state=o;let S;if(oe){const b=(await Promise.all(Array.from(Kt,C=>C(p.navigation)))).filter(C=>typeof C=="function");if(b.length>0){let C=function(){b.forEach(he=>{H.delete(he)})};b.push(C),b.forEach(he=>{H.add(he)})}m=d.state,d.props.page&&(d.props.page.url=t);const D=E&&await E;D?S=D.commit():(ot.$set(d.props),Dt(d.props.page),S=bt?.()),rt=!0}else await lt(d,ye,!1);const{activeElement:I}=document;await S,await ee(),await ee();let A=n?n.scroll:r?ue():null;if(Ke){const b=t.hash&&document.getElementById(pt(t));if(A)scrollTo(A.x,A.y);else if(b){b.scrollIntoView();const{top:D,left:C}=b.getBoundingClientRect();A={x:pageXOffset+C,y:pageYOffset+D}}else scrollTo(0,0)}const gt=document.activeElement!==I&&document.activeElement!==document.body;!a&&!gt&&on(t,A),Ke=!0,d.props.page&&Object.assign(k,d.props.page),X=!1,e==="popstate"&&it(R),p.fulfil(void 0),H.forEach(b=>b(p.navigation)),N.navigating.set(F.current=null)}async function ht(e,t,n,a,r){return e.origin===le&&e.pathname===location.pathname&&!at?await Ne({status:a,error:n,url:e,route:t}):await W(e,r)}function Zt(){let e,t,n;O.addEventListener("mousemove",s=>{const c=s.target;clearTimeout(e),e=setTimeout(()=>{i(c,j.hover)},20)});function a(s){s.defaultPrevented||i(s.composedPath()[0],j.tap)}O.addEventListener("mousedown",a),O.addEventListener("touchstart",a,{passive:!0});const r=new IntersectionObserver(s=>{for(const c of s)c.isIntersecting&&(me(new URL(c.target.href)),r.unobserve(c.target))},{threshold:0});async function i(s,c){const l=Qe(s,O),h=l===t&&c>=n;if(!l||h)return;const{url:_,external:f,download:u}=we(l,x,v.hash);if(f||u)return;const p=te(l),w=_&&ce(m.url)===ce(_);if(!(p.reload||w))if(c<=p.preload_data){t=l,n=j.tap;const g=await de(_,!1);if(!g)return;Yt(g)}else c<=p.preload_code&&(t=l,n=c,me(_))}function o(){r.disconnect();for(const s of O.querySelectorAll("a")){const{url:c,external:l,download:h}=we(s,x,v.hash);if(l||h)continue;const _=te(s);_.reload||(_.preload_code===j.viewport&&r.observe(s),_.preload_code===j.eager&&me(c))}}H.add(o),o()}function Q(e,t){if(e instanceof Se)return e.body;const n=Ue(e),a=$t(e);return v.hooks.handleError({error:e,event:t,status:n,message:a})??{message:a}}function en(e,t){Bt(()=>(e.add(t),()=>{e.delete(t)}))}function _n(e){en(H,e)}function mn(e,t={}){return e=new URL(Ae(e)),e.origin!==le?Promise.reject(new Error("goto: invalid URL")):ct(e,t,0)}function tn(e){if(typeof e=="function")ae.push(e);else{const{href:t}=new URL(e,location.href);ae.push(n=>n.href===t)}}function nn(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Ye(),!X){const a=je(m,void 0,null,"leave"),r={...a.navigation,cancel:()=>{n=!0,a.reject(new Error("navigation cancelled"))}};nt.forEach(i=>i(r))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ye()}),navigator.connection?.saveData||Zt(),O.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Qe(t.composedPath()[0],O);if(!n)return;const{url:a,external:r,target:i,download:o}=we(n,x,v.hash);if(!a)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const s=te(n);if(!(n instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||o)return;const[l,h]=(v.hash?a.hash.replace(/^#/,""):a.href).split("#"),_=l===ge(location);if(r||s.reload&&(!_||!h)){dt({url:a,type:"link",event:t})?X=!0:t.preventDefault();return}if(h!==void 0&&_){const[,f]=m.url.href.split("#");if(f===h){if(t.preventDefault(),h===""||h==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=n.ownerDocument.getElementById(decodeURIComponent(h));u&&(u.scrollIntoView(),u.focus())}return}if(M=!0,Pe(y),e(a),!s.replace_state)return;M=!1}t.preventDefault(),await new Promise(f=>{requestAnimationFrame(()=>{setTimeout(f,0)}),setTimeout(f,100)}),await K({type:"link",url:a,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??a.href===location.href,event:t})}),O.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),a=t.submitter;if((a?.formTarget||n.target)==="_blank"||(a?.formMethod||n.method)!=="get")return;const o=new URL(a?.hasAttribute("formaction")&&a?.formAction||n.action);if(fe(o,x,!1))return;const s=t.target,c=te(s);if(c.reload)return;t.preventDefault(),t.stopPropagation();const l=new FormData(s,a);o.search=new URLSearchParams(l).toString(),K({type:"form",url:o,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??o.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!ke){if(t.state?.[G]){const n=t.state[G];if($={},n===y)return;const a=q[n],r=t.state[We]??{},i=new URL(t.state[It]??location.href),o=t.state[z],s=m.url?ge(location)===ge(m.url):!1;if(o===R&&(rt||s)){r!==k.state&&(k.state=r),e(i),q[y]=ue(),a&&scrollTo(a.x,a.y),y=n;return}const l=n-y;await K({type:"popstate",url:i,popped:{state:r,scroll:a,delta:l},accept:()=>{y=n,R=o},block:()=>{history.go(-l)},nav_token:$,event:t})}else if(!M){const n=new URL(location.href);e(n),v.hash&&location.reload()}}}),addEventListener("hashchange",()=>{M&&(M=!1,history.replaceState({...history.state,[G]:++y,[z]:R},"",location.href))});for(const t of document.querySelectorAll("link"))Gt.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&N.navigating.set(F.current=null)});function e(t){m.url=k.url=t,N.page.set($e(k)),N.page.notify()}}async function an(e,{status:t=200,error:n,node_ids:a,params:r,route:i,server_route:o,data:s,form:c}){at=!0;const l=new URL(location.href);let h;({params:r={},route:i={id:null}}=await de(l,!1)||{}),h=Te.find(({id:u})=>u===i.id);let _,f=!0;try{const u=a.map(async(w,g)=>{const d=s[g];return d?.uses&&(d.uses=rn(d.uses)),Ie({loader:v.nodes[w],url:l,params:r,route:i,parent:async()=>{const E={};for(let S=0;S<g;S+=1)Object.assign(E,(await u[S]).data);return E},server_data_node:Ce(d)})}),p=await Promise.all(u);if(h){const w=h.layouts;for(let g=0;g<w.length;g++)w[g]||p.splice(g,0,void 0)}_=ie({url:l,params:r,branch:p,status:t,error:n,form:c,route:h??null})}catch(u){if(u instanceof Re){await W(new URL(u.location,location.href));return}_=await Ne({status:Ue(u),error:await Q(u,{url:l,params:r,route:i}),url:l,route:i}),e.textContent="",f=!1}_.props.page&&(_.props.page.state={}),await lt(_,e,f)}function rn(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??[])}}let ke=!1;function on(e,t=null){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const a=pt(e);if(a&&document.getElementById(a)){const{x:i,y:o}=t??ue();setTimeout(()=>{const s=history.state;ke=!0,location.replace(`#${a}`),v.hash&&location.replace(e.hash),history.replaceState(s,"",e.hash),scrollTo(i,o),ke=!1})}else{const i=document.body,o=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),o!==null?i.setAttribute("tabindex",o):i.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const i=[];for(let o=0;o<r.rangeCount;o+=1)i.push(r.getRangeAt(o));setTimeout(()=>{if(r.rangeCount===i.length){for(let o=0;o<r.rangeCount;o+=1){const s=i[o],c=r.getRangeAt(o);if(s.commonAncestorContainer!==c.commonAncestorContainer||s.startContainer!==c.startContainer||s.endContainer!==c.endContainer||s.startOffset!==c.startOffset||s.endOffset!==c.endOffset)return}r.removeAllRanges()}})}}}function je(e,t,n,a){let r,i;const o=new Promise((c,l)=>{r=c,i=l});return o.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n},willUnload:!t,type:a,complete:o},fulfil:r,reject:i}}function $e(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 sn(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function pt(e){let t;if(v.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{Se as H,_n as a,gn as b,mn as g,fn as l,k as p,N as s};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as t,a as z,b as ve,c as xe,i as ue,f as L,d as J,g as B,E as ce,h as G,j as he,k as P,l as le,m as de,n as Pe,o as Y,q as fe,t as Le,u as He,v as Mt,w as we,x as Ze,y as Et,z as _e,A as Be,B as ye,C as me,S as Ae,D as bt}from"./
|
|
1
|
+
import{p as t,a as z,b as ve,c as xe,i as ue,f as L,d as J,g as B,E as ce,h as G,j as he,k as P,l as le,m as de,n as Pe,o as Y,q as fe,t as Le,u as He,v as Mt,w as we,x as Ze,y as Et,z as _e,A as Be,B as ye,C as me,S as Ae,D as bt}from"./DbdoZ-jc.js";var At=class{base_center_x;base_center_y;base_radius;initial_angle;right_nleft;constructor(s,e,S,o,i){this.base_center_x=s,this.base_center_y=e,this.base_radius=S,this.initial_angle=o,this.right_nleft=i}angleSign(){return this.right_nleft?1:-1}lFromU(s){return this.base_radius*Math.sqrt(1+s**2)}wFromU(s){if(s<0)throw`err729: involute parameter au ${s} is negative`;if(Math.abs(s)>Math.PI/2)throw`err730: involute parameter au ${s} is larger than PI/2`;return this.angleSign()*(s-Math.atan(s))}w2FromU(s){return this.initial_angle+this.wFromU(s)}ptc(s){const e=this.lFromU(s),S=this.w2FromU(s),o=this.base_center_x+Math.cos(S)*e,i=this.base_center_y+Math.sin(S)*e;return[o,i]}ptcta(s){return this.initial_angle+this.angleSign()*s}uFromL(s){return Math.sqrt(s**2/this.base_radius**2-1)}uFromWslow(s){let S=Math.PI/3,o=S/2,i=this.wFromU(S),d=0;for(;Math.abs(i-s)>1e-4;)i<s?S+=o:S-=o,i=this.wFromU(S),o=o/2,d+=1;return console.log(`dbg072: uFromWslow itcnt ${d}`),S}laptc(s,e,S,o){if(Math.sign(e)*this.angleSign()<0)throw`err904: Invole.laptc angle-of-pressure ${e} not compatible with right_nleft ${this.right_nleft}`;const i=s+e,d=this.base_center_x+Math.cos(i)*this.base_radius,c=this.base_center_y+Math.sin(i)*this.base_radius,n=i-this.angleSign()*Math.PI/2,l=S*this.base_radius,h=d+Math.cos(n)*l,a=c+Math.sin(n)*l,g=this.lFromU(S)*o,r=S,u=Math.cos(r)*g,f=Math.sin(r)*g;return[h,a,u,f]}};function Me(s,e,S,o,i){return new At(s,e,S,o,i)}var kt=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=Me(0,0,50,0,!0);involuteL=Me(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(s){if(this.initStep+1!==s)throw`err834: incInitStep initStep ${this.initStep} and target ${s} are not compatible`;this.initStep=s}checkInitStep(s,e){if(this.initStep<s)throw`err835: checkInitStep for ${e} initStep ${this.initStep} is too small compare to targetMin ${s}`}set1ModuleToothNumber(s,e){this.incInitStep(1),this.mod=s,this.TN=e,this.pr=this.mod*this.TN/2,this.as=2*Math.PI/this.TN}set2CenterPosition(s,e){this.incInitStep(2),this.cx=s,this.cy=e}set3CircleRadius(s,e,S,o){this.incInitStep(3),this.ar=this.pr+this.mod*s,this.dr=this.pr-this.mod*e,this.br=this.dr-this.mod*S,this.bRound=o}set4BaseCircles(s,e){this.incInitStep(4),this.brr=s,this.blr=e}set5AddendumThickness(s){this.incInitStep(5),this.adt=s/100}set6Angles(s,e){this.incInitStep(6),this.initAngle=s,this.axisAngle=e}set7InvoluteDetails(s,e){this.incInitStep(7),this.involArcPairs=s,this.skinThickness=e}getRefCircles(){return this.checkInitStep(4,"getRefCircles"),[P(this.cx,this.cy,this.ar,"Azure"),P(this.cx,this.cy,this.pr,"Azure"),P(this.cx,this.cy,this.dr,"Azure"),P(this.cx,this.cy,this.br,"Azure"),P(this.cx,this.cy,this.brr,"CornFlowerBlue"),P(this.cx,this.cy,this.blr,"Crimson")]}calcInvoluteAngles(){this.checkInitStep(4,"calcInvoluteAngles"),this.involuteR=Me(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=Me(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(){const s=this.as*this.adt,e=this.rwa-this.rwp,S=Math.abs(this.lwa-this.lwp),o=s-e-S;if(o<0)throw`err554: No remaining Addendum reserve ${L(o)}
|
|
2
2
|
`;const i=this.as*(1-this.adt),d=this.rwp-this.rwd,c=Math.abs(this.lwp-this.lwd),n=i-d-c;if(n<2*Math.atan2(this.bRound,this.br))throw`err555: No remaining Dedendum reserve ${L(n)} compare to bRound ${L(this.bRound)}
|
|
3
3
|
`}getToothRef(){const s=6*this.involArcPairs,e=0;this.checkInitStep(7,"getProfile"),this.calcInvoluteAngles();const S=(this.rua-this.rud)/s,o=(this.lua-this.lud)/s,i=this.initAngle+e*this.as,d=Me(this.cx,this.cy,this.brr,i-this.rwp,!0),[c,n]=d.ptc(this.rud+0*S),l=J(c,n,"Gold");for(let _=0;_<s;_++){const[g,r]=d.ptc(this.rud+(_+1)*S);l.addSegStrokeA(g,r)}const h=i+this.as*this.adt,a=Me(this.cx,this.cy,this.blr,h-this.lwp,!1);for(let _=0;_<s+1;_++){const[g,r]=a.ptc(this.lud+(s-_)*o);l.addSegStrokeA(g,r)}return l.closeSegStroke(),l}getProfile(){this.checkInitStep(7,"getProfile"),this.calcInvoluteAngles(),this.checkProfileConditions();const s=this.rwd-this.rwp,e=this.lwd-this.lwp,S=this.dr>this.brr?this.dr:this.brr,o=this.dr>this.blr?this.dr:this.blr;if(this.bRound>S-this.br)throw`err409: getProfile bRound ${L(this.bRound)} too large for erdr ${L(S)} and br ${L(this.br)}`;if(this.bRound>o-this.br)throw`err408: getProfile bRound ${L(this.bRound)} too large for eldr ${L(o)} and br ${L(this.br)}`;const i=(this.rua-this.rud)/this.involArcPairs,d=(this.lua-this.lud)/this.involArcPairs,c=de(this.cx,this.cy),n=c.translatePolar(this.initAngle+s,this.br),l=J(n.cx,n.cy);for(let h=0;h<this.TN;h++){const a=this.initAngle+h*this.as,_=c.translatePolar(a+s,this.br);l.addSegStrokeA(_.cx,_.cy).addCornerRounded(this.bRound);const g=Me(this.cx,this.cy,this.brr,a-this.rwp,!0),[r,u]=g.ptc(this.rud),f=g.ptcta(this.rud),H=de(r,u).translatePolar(f-Math.PI/2,this.skinThickness);l.addSegStrokeA(H.cx,H.cy);for(let x=0;x<this.involArcPairs;x++){const O=this.rud+x*i,[C,$]=g.ptc(O+i),m=g.ptcta(O),U=g.ptcta(O+i)+Math.PI,F=de(C,$).translatePolar(m-Math.PI/2,this.skinThickness);l.addPointA(F.cx,F.cy).addSeg2Arcs(m,U)}const k=a+this.as*this.adt,M=Me(this.cx,this.cy,this.blr,k-this.lwp,!1),D=this.lud+this.involArcPairs*d,[b,N]=M.ptc(D),R=M.ptcta(D)+Math.PI,v=de(b,N).translatePolar(R-Math.PI/2,this.skinThickness);l.addSegStrokeA(v.cx,v.cy);for(let x=0;x<this.involArcPairs;x++){const O=this.lud+(this.involArcPairs-x)*d,[C,$]=M.ptc(O-d),m=M.ptcta(O)+Math.PI,U=M.ptcta(O-d),F=de(C,$).translatePolar(m-Math.PI/2,this.skinThickness);l.addPointA(F.cx,F.cy).addSeg2Arcs(m,U)}const E=c.translatePolar(k+e,this.br);l.addSegStrokeA(E.cx,E.cy).addCornerRounded(this.bRound)}return l.closeSegStroke(),l}getMsg(){return this.msg}};function Ke(){return new kt}function Rt(s,e,S,o){s.checkInitStep(1,"helper.gw2center-1"),e.checkInitStep(1,"helper.gw2center-2");const i=s.pr+e.pr+o,d=s.cx+i*Math.cos(S),c=s.cy+i*Math.sin(S);return[d,c,i]}function Nt(s,e,S,o,i,d,c,n,l,h,a){s.checkInitStep(3,"helper.baseCircles-1"),e.checkInitStep(3,"helper.baseCircles-2");let _=S,g=i,r=o,u=d;const f=s.pr+e.pr,H=h,k=a;switch(H){case 0:e.TN>s.TN?(_=s.dr,g=_*e.TN/s.TN):(g=e.dr,_=g*s.TN/e.TN);break;case 1:g=_*e.TN/s.TN;break;case 2:_=g*s.TN/e.TN;break;case 3:_=f*s.TN/(s.TN+e.TN)*Math.cos(Pe(c)),g=_*e.TN/s.TN;break;case 4:break;default:console.log(`err337: involROpt2 case ${H} is not implemented!`)}switch(k){case 0:e.TN>s.TN?(r=s.dr,u=r*e.TN/s.TN):(u=e.dr,r=u*s.TN/e.TN);break;case 1:u=r*e.TN/s.TN;break;case 2:r=u*s.TN/e.TN;break;case 3:r=f*s.TN/(s.TN+e.TN)*Math.cos(Pe(n)),u=r*e.TN/s.TN;break;case 4:break;default:console.log(`err358: involLOpt2 case ${k} is not implemented!`)}return l===1&&(r=_,u=g),[_,r,g,u]}var Ct=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(s,e,S,o,i,d){this.gw1=s,this.gw2=e,this.initAngle1=S,this.angleCenterCenter=o,this.interAxis=i,this.rightLeftCenter2=d,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 ${L(this.interAxis)} is too large compare to gw1.ar ${L(this.gw1.ar)} and gw2.ar ${L(this.gw2.ar)}
|
|
4
4
|
`),_e(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} = ${L(this.gw1.TN/this.gw2.TN)} and brr1/brr2 = ${L(this.gw1.brr)}/${L(this.gw2.brr)} = ${L(this.gw1.brr/this.gw2.brr)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{J as d,K as m,L as o,M as v,N as l,O as p,i as u,P as _,Q as b,R as g,S as k,T as w,U as y,V as M,W as A,X as F,Y as R}from"./
|
|
1
|
+
import{J as d,K as m,L as o,M as v,N as l,O as p,i as u,P as _,Q as b,R as g,S as k,T as w,U as y,V as M,W as A,X as F,Y as R}from"./CBJmzK5-.js";class S{anchor;#t=new Map;#s=new Map;#e=new Map;#a=new Set;#i=!0;constructor(s,a=!0){this.anchor=s,this.#i=a}#r=()=>{var s=d;if(this.#t.has(s)){var a=this.#t.get(s),t=this.#s.get(a);if(t)m(t),this.#a.delete(a);else{var e=this.#e.get(a);e&&(this.#s.set(a,e.effect),this.#e.delete(a),e.fragment.lastChild.remove(),this.anchor.before(e.fragment),t=e.effect)}for(const[i,r]of this.#t){if(this.#t.delete(i),i===s)break;const n=this.#e.get(r);n&&(o(n.effect),this.#e.delete(r))}for(const[i,r]of this.#s){if(i===a||this.#a.has(i))continue;const n=()=>{if(Array.from(this.#t.values()).includes(i)){var h=document.createDocumentFragment();b(r,h),h.append(l()),this.#e.set(i,{effect:r,fragment:h})}else o(r);this.#a.delete(i),this.#s.delete(i)};this.#i||!t?(this.#a.add(i),v(r,n,!1)):n()}}};#n=s=>{this.#t.delete(s);const a=Array.from(this.#t.values());for(const[t,e]of this.#e)a.includes(t)||(o(e.effect),this.#e.delete(t))};ensure(s,a){var t=d,e=g();if(a&&!this.#s.has(s)&&!this.#e.has(s))if(e){var i=document.createDocumentFragment(),r=l();i.append(r),this.#e.set(s,{effect:p(()=>a(r)),fragment:i})}else this.#s.set(s,p(()=>a(this.anchor)));if(this.#t.set(t,s),e){for(const[n,f]of this.#s)n===s?t.skipped_effects.delete(f):t.skipped_effects.add(f);for(const[n,f]of this.#e)n===s?t.skipped_effects.delete(f.effect):t.skipped_effects.add(f.effect);t.oncommit(this.#r),t.ondiscard(this.#n)}else u&&(this.anchor=_),this.#r()}}function x(c,s,...a){var t=new S(c);k(()=>{const e=s()??null;t.ensure(e,e&&(i=>e(i,...a)))},F)}function E(c){return(s,...a)=>{var t=c(...a),e;if(u)e=_,w();else{var i=t.render().trim(),r=y(i);e=R(r),s.before(e)}const n=t.setup?.(e);M(e,e),typeof n=="function"&&A(n)}}export{S as B,E as c,x as s};
|