designix-uis 1.0.23 → 1.0.24
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/BRtc5fva.js +2 -0
- package/dist/public/_app/immutable/chunks/C1tBwDTv.js +1 -0
- package/dist/public/_app/immutable/chunks/{BAJXIW7S.js → CDnh3uYF.js} +1 -1
- package/dist/public/_app/immutable/chunks/{CSTDUB7c.js → CNKnrsqO.js} +1 -1
- package/dist/public/_app/immutable/chunks/CXSxHcOb.js +1 -0
- package/dist/public/_app/immutable/chunks/DniPkIYg.js +3 -0
- package/dist/public/_app/immutable/chunks/{Ro4-rfrB.js → DoZzvuZq.js} +2 -2
- package/dist/public/_app/immutable/chunks/DsnmJJEf.js +1 -0
- package/dist/public/_app/immutable/chunks/WuaXWmRv.js +216 -0
- package/dist/public/_app/immutable/chunks/xuOdSSey.js +1 -0
- package/dist/public/_app/immutable/chunks/z6S__Qk1.js +1 -0
- package/dist/public/_app/immutable/entry/app.FGtBRmw5.js +2 -0
- package/dist/public/_app/immutable/entry/start.DTms_daA.js +1 -0
- package/dist/public/_app/immutable/nodes/{0.Dk1NZOJ4.js → 0.gcZo6tIT.js} +2 -2
- package/dist/public/_app/immutable/nodes/{1.BXpOc_LD.js → 1.Dok56Iwa.js} +1 -1
- package/dist/public/_app/immutable/nodes/2.B6tp6eTf.js +1 -0
- package/dist/public/_app/immutable/nodes/3.DIUv_Rqj.js +10 -0
- package/dist/public/_app/version.json +1 -1
- package/dist/public/gear/gear_bar.html +20 -20
- package/dist/public/gear/gear_epicycloid.html +20 -20
- package/dist/public/gear/gear_ring.html +20 -20
- package/dist/public/gear/gear_wheel.html +20 -20
- package/dist/public/heliostat/base.html +20 -20
- package/dist/public/heliostat/haxis_guidance.html +20 -20
- package/dist/public/heliostat/heliostat.html +20 -20
- package/dist/public/heliostat/heliostat_2.html +20 -20
- package/dist/public/heliostat/pole_static.html +20 -20
- package/dist/public/heliostat/rake.html +20 -20
- package/dist/public/heliostat/rake_stopper.html +20 -20
- package/dist/public/heliostat/ring.html +20 -20
- package/dist/public/heliostat/ring_guidance.html +20 -20
- package/dist/public/heliostat/rod.html +20 -20
- package/dist/public/heliostat/spider.html +20 -20
- package/dist/public/heliostat/surface.html +20 -20
- package/dist/public/heliostat/swing.html +20 -20
- package/dist/public/heliostat/trapeze.html +20 -20
- package/dist/public/heliostat/vaxis.html +20 -20
- package/dist/public/heliostat/vaxis_guidance.html +20 -20
- package/dist/public/heliostat/vaxis_holder.html +20 -20
- package/dist/public/index.html +18 -18
- package/package.json +6 -6
- package/dist/public/_app/immutable/chunks/BV-6sV8s.js +0 -1
- package/dist/public/_app/immutable/chunks/BZKKtHJm.js +0 -1
- package/dist/public/_app/immutable/chunks/CvbaRLDH.js +0 -3
- package/dist/public/_app/immutable/chunks/NZTpNUN0.js +0 -1
- package/dist/public/_app/immutable/chunks/em6s37JS.js +0 -1
- package/dist/public/_app/immutable/chunks/gQGuvN5u.js +0 -216
- package/dist/public/_app/immutable/chunks/p-bDl7sE.js +0 -1
- package/dist/public/_app/immutable/chunks/vFk_Fhzd.js +0 -1
- package/dist/public/_app/immutable/entry/app.BWJ0nM3W.js +0 -2
- package/dist/public/_app/immutable/entry/start.hgv5ZWWK.js +0 -1
- package/dist/public/_app/immutable/nodes/2.DbkECoJr.js +0 -1
- package/dist/public/_app/immutable/nodes/3.BVAP6CmT.js +0 -10
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var ht=Array.isArray,Qt=Array.prototype.indexOf,en=Array.from,je=Object.defineProperty,ve=Object.getOwnPropertyDescriptor,tn=Object.getOwnPropertyDescriptors,nn=Object.prototype,rn=Array.prototype,pt=Object.getPrototypeOf,st=Object.isExtensible;const tr=()=>{};function nr(e){return e()}function wt(e){for(var t=0;t<e.length;t++)e[t]()}function sn(){var e,t,n=new Promise((r,a)=>{e=r,t=a});return{promise:n,resolve:e,reject:t}}function rr(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 S=2,Ke=4,Oe=8,ye=16,L=32,ne=64,yt=128,R=256,xe=512,m=1024,N=2048,B=4096,H=8192,le=16384,ze=32768,gt=65536,at=1<<17,an=1<<18,Xe=1<<19,Ze=1<<20,Ye=1<<21,Je=1<<22,G=1<<23,K=Symbol("$state"),sr=Symbol("legacy props"),ar=Symbol(""),Qe=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},Ne=3,Ae=8;function ln(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function fn(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function un(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function on(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function cn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function _n(e){throw new Error("https://svelte.dev/e/effect_orphan")}function vn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function lr(){throw new Error("https://svelte.dev/e/get_abort_signal_outside_reaction")}function dn(){throw new Error("https://svelte.dev/e/hydration_failed")}function fr(e){throw new Error("https://svelte.dev/e/lifecycle_legacy_only")}function ur(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function hn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function pn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function wn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}const or=1,cr=2,_r=4,vr=8,dr=16,hr=1,pr=2,wr=4,yr=8,gr=16,yn=1,gn=2,Et="[",En="[!",mt="]",se={},E=Symbol(),Er="http://www.w3.org/1999/xhtml";function Ce(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function mr(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}let T=!1;function be(e){T=e}let w;function M(e){if(e===null)throw Ce(),se;return w=e}function bt(){return M(W(w))}function br(e){if(T){if(W(w)!==null)throw Ce(),se;w=e}}function Tr(e=1){if(T){for(var t=e,n=w;t--;)n=W(n);w=n}}function xr(){for(var e=0,t=w;;){if(t.nodeType===Ae){var n=t.data;if(n===mt){if(e===0)return t;e-=1}else(n===Et||n===En)&&(e+=1)}var r=W(t);t.remove(),t=r}}function Ar(e){if(!e||e.nodeType!==Ae)throw Ce(),se;return e.data}function Tt(e){return e===this.v}function mn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function xt(e){return!mn(e,this.v)}let Ie=!1;function Sr(){Ie=!0}let g=null;function Se(e){g=e}function kr(e){return Pe().get(e)}function Rr(e,t){return Pe().set(e,t),t}function Or(e){return Pe().has(e)}function Nr(){return Pe()}function bn(e,t=!1,n){g={p:g,c:null,e:null,s:e,x:null,l:Ie&&!t?{s:null,u:null,$:[]}:null}}function Tn(e){var t=g,n=t.e;if(n!==null){t.e=null;for(var r of n)jt(r)}return g=t.p,{}}function ge(){return!Ie||g!==null&&g.l===null}function Pe(e){return g===null&&fn(),g.c??=new Map(xn(g)||void 0)}function xn(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}const An=new WeakMap;function Sn(e){var t=d;if(t===null)return h.f|=G,e;if((t.f&ze)===0){if((t.f&yt)===0)throw!t.parent&&e instanceof Error&&At(e),e;t.b.error(e)}else et(e,t)}function et(e,t){for(;t!==null;){if((t.f&yt)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e instanceof Error&&At(e),e}function At(e){const t=An.get(e);t&&(je(e,"message",{value:t.message}),je(e,"stack",{value:t.stack}))}const kn=typeof requestIdleCallback>"u"?e=>setTimeout(e,1):requestIdleCallback;let he=[],pe=[];function St(){var e=he;he=[],wt(e)}function kt(){var e=pe;pe=[],wt(e)}function Rn(e){he.length===0&&queueMicrotask(St),he.push(e)}function Cr(e){pe.length===0&&kn(kt),pe.push(e)}function On(){he.length>0&&St(),pe.length>0&&kt()}function Nn(){for(var e=d.b;e!==null&&!e.has_pending_snippet();)e=e.parent;return e===null&&ln(),e}function tt(e){var t=S|N,n=h!==null&&(h.f&S)!==0?h:null;return d===null||n!==null&&(n.f&R)!==0?t|=R:d.f|=Xe,{ctx:g,deps:null,effects:null,equals:Tt,f:t,fn:e,reactions:null,rv:0,v:E,wv:0,parent:n??d,ac:null}}function Cn(e,t){let n=d;n===null&&un();var r=n.b,a=void 0,s=rt(E),i=null,u=!h;return Hn(()=>{try{var l=e()}catch(c){l=Promise.reject(c)}var f=()=>l;a=i?.then(f,f)??Promise.resolve(l),i=a;var o=y,_=r.pending;u&&(r.update_pending_count(1),_||o.increment());const v=(c,p=void 0)=>{i=null,_||o.activate(),p?p!==Qe&&(s.f|=G,Ve(s,p)):((s.f&G)!==0&&(s.f^=G),Ve(s,c)),u&&(r.update_pending_count(-1),_||o.decrement()),Nt()};if(a.then(v,c=>v(null,c||"unknown")),o)return()=>{queueMicrotask(()=>o.neuter())}}),new Promise(l=>{function f(o){function _(){o===a?l(s):f(a)}o.then(_,_)}f(a)})}function Ir(e){const t=tt(e);return Wt(t),t}function In(e){const t=tt(e);return t.equals=xt,t}function Rt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)te(t[n])}}function Pn(e){for(var t=e.parent;t!==null;){if((t.f&S)===0)return t;t=t.parent}return null}function nt(e){var t,n=d;V(Pn(e));try{Rt(e),t=zt(e)}finally{V(n)}return t}function Ot(e){var t=nt(e);if(e.equals(t)||(e.v=t,e.wv=Gt()),!fe)if(ie!==null)ie.set(e,e.v);else{var n=(j||(e.f&R)!==0)&&e.deps!==null?B:m;x(e,n)}}function Dn(e,t,n){const r=ge()?tt:In;if(t.length===0){n(e.map(r));return}var a=y,s=d,i=Mn(),u=Nn();Promise.all(t.map(l=>Cn(l))).then(l=>{a?.activate(),i();try{n([...e.map(r),...l])}catch(f){(s.f&le)===0&&et(f,s)}a?.deactivate(),Nt()}).catch(l=>{u.error(l)})}function Mn(){var e=d,t=h,n=g;return function(){V(e),I(t),Se(n)}}function Nt(){V(null),I(null),Se(null)}const ue=new Set;let y=null,Fe=null,ie=null,it=new Set,ke=[];function Ct(){const e=ke.shift();ke.length>0&&queueMicrotask(Ct),e()}let Z=[],De=null,He=!1,Te=!1;class J{current=new Map;#s=new Map;#a=new Set;#e=0;#u=null;#o=!1;#n=[];#i=[];#r=[];#t=[];#l=[];#c=[];#_=[];skipped_effects=new Set;process(t){Z=[],Fe=null;var n=null;if(ue.size>1){n=new Map,ie=new Map;for(const[s,i]of this.current)n.set(s,{v:s.v,wv:s.wv}),s.v=i;for(const s of ue)if(s!==this)for(const[i,u]of s.#s)n.has(i)||(n.set(i,{v:i.v,wv:i.wv}),i.v=u)}for(const s of t)this.#d(s);if(this.#n.length===0&&this.#e===0){this.#v();var r=this.#r,a=this.#t;this.#r=[],this.#t=[],this.#l=[],Fe=y,y=null,lt(r),lt(a),y===null?y=this:ue.delete(this),this.#u?.resolve()}else this.#f(this.#r),this.#f(this.#t),this.#f(this.#l);if(n){for(const[s,{v:i,wv:u}]of n)s.wv<=u&&(s.v=i);ie=null}for(const s of this.#n)de(s);for(const s of this.#i)de(s);this.#n=[],this.#i=[]}#d(t){t.f^=m;for(var n=t.first;n!==null;){var r=n.f,a=(r&(L|ne))!==0,s=a&&(r&m)!==0,i=s||(r&H)!==0||this.skipped_effects.has(n);if(!i&&n.fn!==null){if(a)n.f^=m;else if((r&m)===0)if((r&Ke)!==0)this.#t.push(n);else if((r&Je)!==0){var u=n.b?.pending?this.#i:this.#n;u.push(n)}else Le(n)&&((n.f&ye)!==0&&this.#l.push(n),de(n));var l=n.first;if(l!==null){n=l;continue}}var f=n.parent;for(n=n.next;n===null&&f!==null;)n=f.next,f=f.parent}}#f(t){for(const n of t)((n.f&N)!==0?this.#c:this.#_).push(n),x(n,m);t.length=0}capture(t,n){this.#s.has(t)||this.#s.set(t,n),this.current.set(t,t.v)}activate(){y=this}deactivate(){y=null,Fe=null;for(const t of it)if(it.delete(t),t(),y!==null)break}neuter(){this.#o=!0}flush(){Z.length>0?Ue():this.#v(),y===this&&(this.#e===0&&ue.delete(this),this.deactivate())}#v(){if(!this.#o)for(const t of this.#a)t();this.#a.clear()}increment(){this.#e+=1}decrement(){if(this.#e-=1,this.#e===0){for(const t of this.#c)x(t,N),Q(t);for(const t of this.#_)x(t,B),Q(t);this.#r=[],this.#t=[],this.flush()}else this.deactivate()}add_callback(t){this.#a.add(t)}settled(){return(this.#u??=sn()).promise}static ensure(){if(y===null){const t=y=new J;ue.add(y),Te||J.enqueue(()=>{y===t&&t.flush()})}return y}static enqueue(t){ke.length===0&&queueMicrotask(Ct),ke.unshift(t)}}function Ln(e){var t=Te;Te=!0;try{var n;for(e&&(Ue(),n=e());;){if(On(),Z.length===0&&(y?.flush(),Z.length===0))return De=null,n;Ue()}}finally{Te=t}}function Ue(){var e=ae;He=!0;try{var t=0;for(ct(!0);Z.length>0;){var n=J.ensure();if(t++>1e3){var r,a;Fn()}n.process(Z),z.clear()}}finally{He=!1,ct(e),De=null}}function Fn(){try{vn()}catch(e){et(e,De)}}function lt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(le|H))===0&&Le(r)){var a=y?y.current.size:0;if(de(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?Ut(r):r.fn=null),y!==null&&y.current.size>a&&(r.f&Ze)!==0)break}}for(;n<t;)Q(e[n++])}}function Q(e){for(var t=De=e;t.parent!==null;){t=t.parent;var n=t.f;if(He&&t===d&&(n&ye)!==0)return;if((n&(ne|L))!==0){if((n&m)===0)return;t.f^=m}}Z.push(t)}const z=new Map;function rt(e,t){var n={f:0,v:e,reactions:null,equals:Tt,rv:0,wv:0};return n}function q(e,t){const n=rt(e);return Wt(n),n}function Pr(e,t=!1,n=!0){const r=rt(e);return t||(r.equals=xt),Ie&&n&&g!==null&&g.l!==null&&(g.l.s??=[]).push(r),r}function $(e,t,n=!1){h!==null&&(!C||(h.f&at)!==0)&&ge()&&(h.f&(S|ye|Je|at))!==0&&!D?.includes(e)&&wn();let r=n?oe(t):t;return Ve(e,r)}function Ve(e,t){if(!e.equals(t)){var n=e.v;fe?z.set(e,t):z.set(e,n),e.v=t;var r=J.ensure();r.capture(e,n),(e.f&S)!==0&&((e.f&N)!==0&&nt(e),x(e,(e.f&R)===0?m:B)),e.wv=Gt(),It(e,N),ge()&&d!==null&&(d.f&m)!==0&&(d.f&(L|ne))===0&&(k===null?Gn([e]):k.push(e))}return t}function qe(e){$(e,e.v+1)}function It(e,t){var n=e.reactions;if(n!==null)for(var r=ge(),a=n.length,s=0;s<a;s++){var i=n[s],u=i.f;if(!(!r&&i===d)){var l=(u&N)===0;l&&x(i,t),(u&S)!==0?It(i,B):l&&Q(i)}}}function oe(e){if(typeof e!="object"||e===null||K in e)return e;const t=pt(e);if(t!==nn&&t!==rn)return e;var n=new Map,r=ht(e),a=q(0),s=X,i=u=>{if(X===s)return u();var l=h,f=X;I(null),vt(s);var o=u();return I(l),vt(f),o};return r&&n.set("length",q(e.length)),new Proxy(e,{defineProperty(u,l,f){(!("value"in f)||f.configurable===!1||f.enumerable===!1||f.writable===!1)&&hn();var o=n.get(l);return o===void 0?o=i(()=>{var _=q(f.value);return n.set(l,_),_}):$(o,f.value,!0),!0},deleteProperty(u,l){var f=n.get(l);if(f===void 0){if(l in u){const o=i(()=>q(E));n.set(l,o),qe(a)}}else $(f,E),qe(a);return!0},get(u,l,f){if(l===K)return e;var o=n.get(l),_=l in u;if(o===void 0&&(!_||ve(u,l)?.writable)&&(o=i(()=>{var c=oe(_?u[l]:E),p=q(c);return p}),n.set(l,o)),o!==void 0){var v=ce(o);return v===E?void 0:v}return Reflect.get(u,l,f)},getOwnPropertyDescriptor(u,l){var f=Reflect.getOwnPropertyDescriptor(u,l);if(f&&"value"in f){var o=n.get(l);o&&(f.value=ce(o))}else if(f===void 0){var _=n.get(l),v=_?.v;if(_!==void 0&&v!==E)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return f},has(u,l){if(l===K)return!0;var f=n.get(l),o=f!==void 0&&f.v!==E||Reflect.has(u,l);if(f!==void 0||d!==null&&(!o||ve(u,l)?.writable)){f===void 0&&(f=i(()=>{var v=o?oe(u[l]):E,c=q(v);return c}),n.set(l,f));var _=ce(f);if(_===E)return!1}return o},set(u,l,f,o){var _=n.get(l),v=l in u;if(r&&l==="length")for(var c=f;c<_.v;c+=1){var p=n.get(c+"");p!==void 0?$(p,E):c in u&&(p=i(()=>q(E)),n.set(c+"",p))}if(_===void 0)(!v||ve(u,l)?.writable)&&(_=i(()=>q(void 0)),$(_,oe(f)),n.set(l,_));else{v=_.v!==E;var O=i(()=>oe(f));$(_,O)}var Ee=Reflect.getOwnPropertyDescriptor(u,l);if(Ee?.set&&Ee.set.call(o,f),!v){if(r&&typeof l=="string"){var me=n.get("length"),F=Number(l);Number.isInteger(F)&&F>=me.v&&$(me,F+1)}qe(a)}return!0},ownKeys(u){ce(a);var l=Reflect.ownKeys(u).filter(_=>{var v=n.get(_);return v===void 0||v.v!==E});for(var[f,o]of n)o.v!==E&&!(f in u)&&l.push(f);return l},setPrototypeOf(){pn()}})}function ft(e){try{if(e!==null&&typeof e=="object"&&K in e)return e[K]}catch{}return e}function Dr(e,t){return Object.is(ft(e),ft(t))}var ut,Pt,Dt,Mt;function Be(){if(ut===void 0){ut=window,Pt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Dt=ve(t,"firstChild").get,Mt=ve(t,"nextSibling").get,st(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),st(n)&&(n.__t=void 0)}}function U(e=""){return document.createTextNode(e)}function ee(e){return Dt.call(e)}function W(e){return Mt.call(e)}function Mr(e,t){if(!T)return ee(e);var n=ee(w);if(n===null)n=w.appendChild(U());else if(t&&n.nodeType!==Ne){var r=U();return n?.before(r),M(r),r}return M(n),n}function Lr(e,t){if(!T){var n=ee(e);return n instanceof Comment&&n.data===""?W(n):n}if(t&&w?.nodeType!==Ne){var r=U();return w?.before(r),M(r),r}return w}function Fr(e,t=1,n=!1){let r=T?w:e;for(var a;t--;)a=r,r=W(r);if(!T)return r;if(n&&r?.nodeType!==Ne){var s=U();return r===null?a?.after(s):r.before(s),M(s),s}return M(r),r}function Lt(e){e.textContent=""}function qr(){return!1}function jr(e){T&&ee(e)!==null&&Lt(e)}let ot=!1;function qn(){ot||(ot=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t.__on_r?.()})},{capture:!0}))}function Yr(e,t,n,r=!0){r&&n();for(var a of t)e.addEventListener(a,n);qt(()=>{for(var s of t)e.removeEventListener(s,n)})}function Me(e){var t=h,n=d;I(null),V(null);try{return e()}finally{I(t),V(n)}}function Hr(e,t,n,r=n){e.addEventListener(t,()=>Me(n));const a=e.__on_r;a?e.__on_r=()=>{a(),r(!0)}:e.__on_r=()=>r(!0),qn()}function Ft(e){d===null&&h===null&&_n(),h!==null&&(h.f&R)!==0&&d===null&&cn(),fe&&on()}function jn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function P(e,t,n,r=!0){var a=d;a!==null&&(a.f&H)!==0&&(e|=H);var s={ctx:g,deps:null,nodes_start:null,nodes_end:null,f:e|N,first:null,fn:t,last:null,next:null,parent:a,b:a&&a.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{de(s),s.f|=ze}catch(l){throw te(s),l}else t!==null&&Q(s);var i=n&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&Xe)===0;if(!i&&r&&(a!==null&&jn(s,a),h!==null&&(h.f&S)!==0&&(e&ne)===0)){var u=h;(u.effects??=[]).push(s)}return s}function qt(e){const t=P(Oe,null,!1);return x(t,m),t.teardown=e,t}function Ur(e){Ft();var t=d.f,n=!h&&(t&L)!==0&&(t&ze)===0;if(n){var r=g;(r.e??=[]).push(e)}else return jt(e)}function jt(e){return P(Ke|Ze,e,!1)}function Vr(e){return Ft(),P(Oe|Ze,e,!0)}function Yn(e){J.ensure();const t=P(ne,e,!0);return(n={})=>new Promise(r=>{n.outro?Wn(t,()=>{te(t),r(void 0)}):(te(t),r(void 0))})}function Br(e){return P(Ke,e,!1)}function Hn(e){return P(Je|Xe,e,!0)}function Wr(e,t=0){return P(Oe|t,e,!0)}function $r(e,t=[],n=[]){Dn(t,n,r=>{P(Oe,()=>e(...r.map(ce)),!0)})}function Gr(e,t=0){var n=P(ye|t,e,!0);return n}function Un(e,t=!0){return P(L,e,!0,t)}function Yt(e){var t=e.teardown;if(t!==null){const n=fe,r=h;_t(!0),I(null);try{t.call(null)}finally{_t(n),I(r)}}}function Ht(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const a=n.ac;a!==null&&Me(()=>{a.abort(Qe)});var r=n.next;(n.f&ne)!==0?n.parent=null:te(n,t),n=r}}function Vn(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&L)===0&&te(t),t=n}}function te(e,t=!0){var n=!1;(t||(e.f&an)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(Bn(e.nodes_start,e.nodes_end),n=!0),Ht(e,t&&!n),Re(e,0),x(e,le);var r=e.transitions;if(r!==null)for(const s of r)s.stop();Yt(e);var a=e.parent;a!==null&&a.first!==null&&Ut(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function Bn(e,t){for(;e!==null;){var n=e===t?null:W(e);e.remove(),e=n}}function Ut(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 Wn(e,t){var n=[];Vt(e,n,!0),$n(n,()=>{te(e),t&&t()})}function $n(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var a of e)a.out(r)}else t()}function Vt(e,t,n){if((e.f&H)===0){if(e.f^=H,e.transitions!==null)for(const i of e.transitions)(i.is_global||n)&&t.push(i);for(var r=e.first;r!==null;){var a=r.next,s=(r.f>)!==0||(r.f&L)!==0;Vt(r,t,s?n:!1),r=a}}}function Kr(e){Bt(e,!0)}function Bt(e,t){if((e.f&H)!==0){e.f^=H,(e.f&m)===0&&(x(e,N),Q(e));for(var n=e.first;n!==null;){var r=n.next,a=(n.f>)!==0||(n.f&L)!==0;Bt(n,a?t:!1),n=r}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let ae=!1;function ct(e){ae=e}let fe=!1;function _t(e){fe=e}let h=null,C=!1;function I(e){h=e}let d=null;function V(e){d=e}let D=null;function Wt(e){h!==null&&(D===null?D=[e]:D.push(e))}let b=null,A=0,k=null;function Gn(e){k=e}let $t=1,we=0,X=we;function vt(e){X=e}let j=!1;function Gt(){return++$t}function Le(e){var t=e.f;if((t&N)!==0)return!0;if((t&B)!==0){var n=e.deps,r=(t&R)!==0;if(n!==null){var a,s,i=(t&xe)!==0,u=r&&d!==null&&!j,l=n.length;if((i||u)&&(d===null||(d.f&le)===0)){var f=e,o=f.parent;for(a=0;a<l;a++)s=n[a],(i||!s?.reactions?.includes(f))&&(s.reactions??=[]).push(f);i&&(f.f^=xe),u&&o!==null&&(o.f&R)===0&&(f.f^=R)}for(a=0;a<l;a++)if(s=n[a],Le(s)&&Ot(s),s.wv>e.wv)return!0}(!r||d!==null&&!j)&&x(e,m)}return!1}function Kt(e,t,n=!0){var r=e.reactions;if(r!==null&&!D?.includes(e))for(var a=0;a<r.length;a++){var s=r[a];(s.f&S)!==0?Kt(s,t,!1):t===s&&(n?x(s,N):(s.f&m)!==0&&x(s,B),Q(s))}}function zt(e){var t=b,n=A,r=k,a=h,s=j,i=D,u=g,l=C,f=X,o=e.f;b=null,A=0,k=null,j=(o&R)!==0&&(C||!ae||h===null),h=(o&(L|ne))===0?e:null,D=null,Se(e.ctx),C=!1,X=++we,e.ac!==null&&(Me(()=>{e.ac.abort(Qe)}),e.ac=null);try{e.f|=Ye;var _=e.fn,v=_(),c=e.deps;if(b!==null){var p;if(Re(e,A),c!==null&&A>0)for(c.length=A+b.length,p=0;p<b.length;p++)c[A+p]=b[p];else e.deps=c=b;if(!j||(o&S)!==0&&e.reactions!==null)for(p=A;p<c.length;p++)(c[p].reactions??=[]).push(e)}else c!==null&&A<c.length&&(Re(e,A),c.length=A);if(ge()&&k!==null&&!C&&c!==null&&(e.f&(S|B|N))===0)for(p=0;p<k.length;p++)Kt(k[p],e);return a!==null&&a!==e&&(we++,k!==null&&(r===null?r=k:r.push(...k))),(e.f&G)!==0&&(e.f^=G),v}catch(O){return Sn(O)}finally{e.f^=Ye,b=t,A=n,k=r,h=a,j=s,D=i,Se(u),C=l,X=f}}function Kn(e,t){let n=t.reactions;if(n!==null){var r=Qt.call(n,e);if(r!==-1){var a=n.length-1;a===0?n=t.reactions=null:(n[r]=n[a],n.pop())}}n===null&&(t.f&S)!==0&&(b===null||!b.includes(t))&&(x(t,B),(t.f&(R|xe))===0&&(t.f^=xe),Rt(t),Re(t,0))}function Re(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Kn(e,n[r])}function de(e){var t=e.f;if((t&le)===0){x(e,m);var n=d,r=ae;d=e,ae=!0;try{(t&ye)!==0?Vn(e):Ht(e),Yt(e);var a=zt(e);e.teardown=typeof a=="function"?a:null,e.wv=$t;var s}finally{ae=r,d=n}}}async function zr(){await Promise.resolve(),Ln()}function Xr(){return J.ensure().settled()}function ce(e){var t=e.f,n=(t&S)!==0;if(h!==null&&!C){var r=d!==null&&(d.f&le)!==0;if(!r&&!D?.includes(e)){var a=h.deps;if((h.f&Ye)!==0)e.rv<we&&(e.rv=we,b===null&&a!==null&&a[A]===e?A++:b===null?b=[e]:(!j||!b.includes(e))&&b.push(e));else{(h.deps??=[]).push(e);var s=e.reactions;s===null?e.reactions=[h]:s.includes(h)||s.push(h)}}}else if(n&&e.deps===null&&e.effects===null){var i=e,u=i.parent;u!==null&&(u.f&R)===0&&(i.f^=R)}if(fe){if(z.has(e))return z.get(e);if(n){i=e;var l=i.v;return((i.f&m)===0&&i.reactions!==null||Xt(i))&&(l=nt(i)),z.set(i,l),l}}else if(n){if(i=e,ie?.has(i))return ie.get(i);Le(i)&&Ot(i)}if((e.f&G)!==0)throw e.v;return e.v}function Xt(e){if(e.v===E)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(z.has(t)||(t.f&S)!==0&&Xt(t))return!0;return!1}function Zr(e){var t=C;try{return C=!0,e()}finally{C=t}}const zn=-7169;function x(e,t){e.f=e.f&zn|t}function Jr(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(K in e)We(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&K in n&&We(n)}}}function We(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{We(e[r],t)}catch{}const n=pt(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=tn(n);for(let a in r){const s=r[a].get;if(s)try{s.call(e)}catch{}}}}}const Xn=["touchstart","touchmove"];function Zn(e){return Xn.includes(e)}const Zt=new Set,$e=new Set;function Jn(e,t,n,r={}){function a(s){if(r.capture||_e.call(t,s),!s.cancelBubble)return Me(()=>n?.call(this,s))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Rn(()=>{t.addEventListener(e,a,r)}):t.addEventListener(e,a,r),a}function Qr(e,t,n,r,a){var s={capture:r,passive:a},i=Jn(e,t,n,s);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&qt(()=>{t.removeEventListener(e,i,s)})}function es(e){for(var t=0;t<e.length;t++)Zt.add(e[t]);for(var n of $e)n(e)}let dt=null;function _e(e){var t=this,n=t.ownerDocument,r=e.type,a=e.composedPath?.()||[],s=a[0]||e.target;dt=e;var i=0,u=dt===e&&e.__root;if(u){var l=a.indexOf(u);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var f=a.indexOf(t);if(f===-1)return;l<=f&&(i=l)}if(s=a[i]||e.target,s!==t){je(e,"currentTarget",{configurable:!0,get(){return s||n}});var o=h,_=d;I(null),V(null);try{for(var v,c=[];s!==null;){var p=s.assignedSlot||s.parentNode||s.host||null;try{var O=s["__"+r];if(O!=null&&(!s.disabled||e.target===s))if(ht(O)){var[Ee,...me]=O;Ee.apply(s,[e,...me])}else O.call(s,e)}catch(F){v?c.push(F):v=F}if(e.cancelBubble||p===t||p===null)break;s=p}if(v){for(let F of c)queueMicrotask(()=>{throw F});throw v}}finally{e.__root=t,delete e.currentTarget,I(o),V(_)}}}function Qn(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Y(e,t){var n=d;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function ts(e,t){var n=(t&yn)!==0,r=(t&gn)!==0,a,s=!e.startsWith("<!>");return()=>{if(T)return Y(w,null),w;a===void 0&&(a=Qn(s?e:"<!>"+e),n||(a=ee(a)));var i=r||Pt?document.importNode(a,!0):a.cloneNode(!0);if(n){var u=ee(i),l=i.lastChild;Y(u,l)}else Y(i,i);return i}}function ns(e=""){if(!T){var t=U(e+"");return Y(t,t),t}var n=w;return n.nodeType!==Ne&&(n.before(n=U()),M(n)),Y(n,n),n}function rs(){if(T)return Y(w,null),w;var e=document.createDocumentFragment(),t=document.createComment(""),n=U();return e.append(t,n),Y(t,n),e}function ss(e,t){if(T){d.nodes_end=w,bt();return}e!==null&&e.before(t)}function as(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 Jt(e,t)}function is(e,t){Be(),t.intro=t.intro??!1;const n=t.target,r=T,a=w;try{for(var s=ee(n);s&&(s.nodeType!==Ae||s.data!==Et);)s=W(s);if(!s)throw se;be(!0),M(s),bt();const i=Jt(e,{...t,anchor:s});if(w===null||w.nodeType!==Ae||w.data!==mt)throw Ce(),se;return be(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
|
|
2
|
+
`).some(u=>u.startsWith("https://svelte.dev/e/")))throw i;return i!==se&&console.warn("Failed to hydrate: ",i),t.recover===!1&&dn(),Be(),Lt(n),be(!1),er(e,t)}finally{be(r),M(a)}}const re=new Map;function Jt(e,{target:t,anchor:n,props:r={},events:a,context:s,intro:i=!0}){Be();var u=new Set,l=_=>{for(var v=0;v<_.length;v++){var c=_[v];if(!u.has(c)){u.add(c);var p=Zn(c);t.addEventListener(c,_e,{passive:p});var O=re.get(c);O===void 0?(document.addEventListener(c,_e,{passive:p}),re.set(c,1)):re.set(c,O+1)}}};l(en(Zt)),$e.add(l);var f=void 0,o=Yn(()=>{var _=n??t.appendChild(U());return Un(()=>{if(s){bn({});var v=g;v.c=s}a&&(r.$$events=a),T&&Y(_,null),f=e(_,r)||{},T&&(d.nodes_end=w),s&&Tn()}),()=>{for(var v of u){t.removeEventListener(v,_e);var c=re.get(v);--c===0?(document.removeEventListener(v,_e),re.delete(v)):re.set(v,c)}$e.delete(l),_!==n&&_.parentNode?.removeChild(_)}});return Ge.set(f,o),f}let Ge=new WeakMap;function ls(e,t){const n=Ge.get(e);return n?(Ge.delete(e),n(t)):Promise.resolve()}export{be as $,Xr as A,zr as B,ls as C,Gr as D,T as E,bt as F,Qn as G,Y as H,qt as I,gt as J,Un as K,tr as L,te as M,w as N,ee as O,Sr as P,ce as Q,Vr as R,wt as S,nr as T,Jr as U,tt as V,Tr as W,Ar as X,En as Y,xr as Z,M as _,Lr as a,ut as a$,U as a0,y as a1,E as a2,qr as a3,Kr as a4,Wn as a5,Br as a6,Wr as a7,Rn as a8,K as a9,rt as aA,en as aB,dr as aC,H as aD,vr as aE,W as aF,Vt as aG,Lt as aH,$n as aI,ar as aJ,Er as aK,pt as aL,tn as aM,Cr as aN,qn as aO,Hr as aP,mr as aQ,Dr as aR,ge as aS,Fe as aT,Yr as aU,Me as aV,es as aW,qe as aX,rr as aY,jr as aZ,Qr as a_,ve as aa,ur as ab,wr as ac,In as ad,oe as ae,$ as af,fe as ag,d as ah,le as ai,yr as aj,pr as ak,hr as al,gr as am,sr as an,je as ao,Pr as ap,q as aq,rs as ar,Ir as as,ns as at,_r as au,Ae as av,mt as aw,or as ax,cr as ay,Ve as az,ss as b,mn as b0,Tn as c,Mr as d,as as e,ts as f,g,h,lr as i,ht as j,fr as k,fn as l,Ie as m,Zr as n,Ln as o,bn as p,Nr as q,br as r,Fr as s,$r as t,Ur as u,kr as v,Or as w,is as x,er as y,Rr as z};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{D as L,E as A,F as Y,J as x,X as B,Y as F,Z as U,_ as q,$ as D,a0 as C,K as N,a1 as M,a2 as Z,a3 as $,a4 as k,a5 as j,N as w,a6 as z,a7 as G,n as m,a8 as H,a9 as y,aa as J,ab as K,ac as Q,Q as R,V,ad as X,ae as p,af as W,ag as aa,ah as ea,ai as ra,aj as ia,m as na,ak as ta,al as sa,am as fa,an as ua}from"./BRtc5fva.js";function la(a,r,u=!1){A&&Y();var s=a,n=null,e=null,_=Z,c=u?x:0,o=!1;const b=(d,t=!0)=>{o=!0,v(t,d)};var f=null;function E(){f!==null&&(f.lastChild.remove(),s.before(f),f=null);var d=_?n:e,t=_?e:n;d&&k(d),t&&j(t,()=>{_?e=null:n=null})}const v=(d,t)=>{if(_===(_=d))return;let I=!1;if(A){const P=B(s)===F;!!_===P&&(s=U(),q(s),D(!1),I=!0)}var S=$(),l=s;if(S&&(f=document.createDocumentFragment(),f.append(l=C())),_?n??=t&&N(()=>t(l)):e??=t&&N(()=>t(l)),S){var g=M,i=_?n:e,h=_?e:n;i&&g.skipped_effects.delete(i),h&&g.skipped_effects.add(h),g.add_callback(E)}else E();I&&D(!0)};L(()=>{o=!1,r(b),o||v(null,null)},c),A&&(s=w)}function O(a,r){return a===r||a?.[y]===r}function ca(a={},r,u,s){return z(()=>{var n,e;return G(()=>{n=e,e=[],m(()=>{a!==u(...e)&&(r(a,...e),n&&O(u(...n),a)&&r(null,...n))})}),()=>{H(()=>{e&&O(u(...e),a)&&r(null,...e)})}}),a}let T=!1;function _a(a){var r=T;try{return T=!1,[a(),T]}finally{T=r}}function va(a,r,u,s){var n=!na||(u&ta)!==0,e=(u&ia)!==0,_=(u&fa)!==0,c=s,o=!0,b=()=>(o&&(o=!1,c=_?m(s):s),c),f;if(e){var E=y in a||ua in a;f=J(a,r)?.set??(E&&r in a?i=>a[r]=i:void 0)}var v,d=!1;e?[v,d]=_a(()=>a[r]):v=a[r],v===void 0&&s!==void 0&&(v=b(),f&&(n&&K(),f(v)));var t;if(n?t=()=>{var i=a[r];return i===void 0?b():(o=!0,i)}:t=()=>{var i=a[r];return i!==void 0&&(c=void 0),i===void 0?c:i},n&&(u&Q)===0)return t;if(f){var I=a.$$legacy;return(function(i,h){return arguments.length>0?((!n||!h||I||d)&&f(h?t():i),i):t()})}var S=!1,l=((u&sa)!==0?V:X)(()=>(S=!1,t()));e&&R(l);var g=ea;return(function(i,h){if(arguments.length>0){const P=h?R(l):n&&e?p(i):i;return W(l,P),S=!0,c!==void 0&&(c=P),i}return aa&&S||(g.f&ra)!==0?l.v:R(l)})}export{ca as b,la as i,va as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as _,
|
|
1
|
+
import{g as _,R as m,u as i,n as h,S as l,T as k,Q as g,U as b,V as v}from"./BRtc5fva.js";import{s as x,p as c}from"./DniPkIYg.js";function R(r=!1){const t=_,e=t.l.u;if(!e)return;let a=()=>b(t.s);if(r){let n=0,s={};const d=v(()=>{let u=!1;const f=t.s;for(const o in f)f[o]!==s[o]&&(s[o]=f[o],u=!0);return u&&n++,n});a=()=>g(d)}e.b.length&&m(()=>{p(t,a),l(e.b)}),i(()=>{const n=h(()=>e.m.map(k));return()=>{for(const s of n)typeof s=="function"&&s()}}),e.a.length&&i(()=>{p(t,a),l(e.a)})}function p(r,t){if(r.l.s)for(const e of r.l.s)g(e);t()}const y={get error(){return c.error},get status(){return c.status},get url(){return c.url}};x.updated.check;const S=y;export{R as i,S as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{D as c,E as f,F as _,G as d,H as l,I as u,J as h,K as m,L as v,M as y,N as o,O as g}from"./BRtc5fva.js";function b(r,s,...n){var t=r,e=v,a;c(()=>{e!==(e=s())&&(a&&(y(a),a=null),a=m(()=>e(t,...n)))},h),f&&(t=o)}function F(r){return(s,...n)=>{var t=r(...n),e;if(f)e=o,_();else{var a=t.render().trim(),p=d(a);e=g(p),s.before(e)}const i=t.setup?.(e);l(e,e),typeof i=="function"&&u(i)}}export{F as c,b as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{P as a}from"./BRtc5fva.js";a();
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{o as Be,s as vt}from"./xuOdSSey.js";import{L as me,b0 as bt,aq as T,Q as x,af as P,B as Fe}from"./BRtc5fva.js";import{a as kt,b as U}from"./z6S__Qk1.js";const q=[];function Re(e,t=me){let n=null;const r=new Set;function a(o){if(bt(e,o)&&(e=o,n)){const c=!q.length;for(const l of r)l[1](),q.push(l,e);if(c){for(let l=0;l<q.length;l+=2)q[l][0](q[l+1]);q.length=0}}}function s(o){a(o(e))}function i(o,c=me){const l=[o,c];return r.add(l),r.size===1&&(n=t(a,s)||me),o(e),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:a,update:s,subscribe:i}}class fe{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 Ie{constructor(t,n){this.status=t,this.location=n}}class Ue extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}new URL("sveltekit-internal://");function At(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 ye({href:e}){return e.split("#")[0]}function Rt(e,t,n,r=!1){const a=new URL(e);Object.defineProperty(a,"searchParams",{value:new Proxy(a.searchParams,{get(i,o){if(o==="get"||o==="getAll"||o==="has")return l=>(n(l),i[o](l));t();const c=Reflect.get(i,o);return typeof c=="function"?c.bind(i):c}}),enumerable:!0,configurable:!0});const s=["href","pathname","search","toString","toJSON"];r&&s.push("hash");for(const i of s)Object.defineProperty(a,i,{get(){return t(),e[i]},enumerable:!0,configurable:!0});return a}function It(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;const Ut=new TextDecoder;function Lt(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}const Tt=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&K.delete(Le(e)),Tt(e,t));const K=new Map;function xt(e,t){const n=Le(e,t),r=document.querySelector(n);if(r?.textContent){r.remove();let{body:a,...s}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&K.set(n,{body:a,init:s,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=Lt(a)),Promise.resolve(new Response(a,s))}return window.fetch(e,t)}function Pt(e,t,n){if(K.size>0){const r=Le(e,n),a=K.get(r);if(a){if(performance.now()<a.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(a.body,a.init);K.delete(r)}}return window.fetch(t,n)}function Le(e,t){let r=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const a=[];t.headers&&a.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&a.push(t.body),r+=`[data-hash="${It(...a)}"]`}return r}const Ct=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/;function Nt(e){const t=[];return{pattern:e==="/"?/^\/$/:new RegExp(`^${jt(e).map(r=>{const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const s=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(s)return t.push({name:s[1],matcher:s[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return we(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return we(String.fromCharCode(...c.slice(2).split("-").map(w=>parseInt(w,16))));const d=Ct.exec(c),[,h,u,f,p]=d;return t.push({name:f,matcher:p,optional:!!h,rest:!!u,chained:u?l===1&&i[0]==="":!1}),u?"([^]*?)":h?"([^/]*)?":"([^/]+?)"}return we(c)}).join("")}).join("")}/?$`),params:t}}function Ot(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function jt(e){return e.slice(1).split("/").filter(Ot)}function $t(e,t,n){const r={},a=e.slice(1),s=a.filter(o=>o!==void 0);let i=0;for(let o=0;o<t.length;o+=1){const c=t[o];let l=a[o-i];if(c.chained&&c.rest&&i&&(l=a.slice(o-i,o+1).filter(d=>d).join("/"),i=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const d=t[o+1],h=a[o+1];d&&!d.rest&&d.optional&&h&&c.chained&&(i=0),!d&&!h&&Object.keys(r).length===s.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function we(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Dt({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([o,[c,l,d]])=>{const{pattern:h,params:u}=Nt(o),f={id:o,exec:p=>{const w=h.exec(p);if(w)return $t(w,u,r)},errors:[1,...d||[]].map(p=>e[p]),layouts:[0,...l||[]].map(i),leaf:s(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function s(o){const c=o<0;return c&&(o=~o),[c,e[o]]}function i(o){return o===void 0?o:[a.has(o),e[o]]}}function Qe(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ve(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const qt="1755078554252",Ze="sveltekit:snapshot",et="sveltekit:scroll",tt="sveltekit:states",Bt="sveltekit:pageurl",F="sveltekit:history",z="sveltekit:navigation",j={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},Z=location.origin;function Te(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 Me={...j,"":j.hover};function nt(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function rt(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=nt(e)}}function ke(e,t,n){let r;try{if(r=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&r.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";r.hash=`#${o}${r.hash}`}}catch{}const a=e instanceof SVGAElement?e.target.baseVal:e.target,s=!r||!!a||de(r,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),i=r?.origin===Z&&e.hasAttribute("download");return{url:r,external:s,target:a,download:i}}function ne(e){let t=null,n=null,r=null,a=null,s=null,i=null,o=e;for(;o&&o!==document.documentElement;)r===null&&(r=B(o,"preload-code")),a===null&&(a=B(o,"preload-data")),t===null&&(t=B(o,"keepfocus")),n===null&&(n=B(o,"noscroll")),s===null&&(s=B(o,"reload")),i===null&&(i=B(o,"replacestate")),o=nt(o);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Me[r??"off"],preload_data:Me[a??"off"],keepfocus:c(t),noscroll:c(n),reload:c(s),replace_state:c(i)}}function Ge(e){const t=Re(e);let n=!0;function r(){n=!0,t.update(i=>i)}function a(i){n=!1,t.set(i)}function s(i){let o;return t.subscribe(c=>{(o===void 0||n&&c!==o)&&i(o=c)})}return{notify:r,set:a,subscribe:s}}const at={v:()=>{}};function Ft(){const{set:e,subscribe:t}=Re(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${kt}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==qt;return i&&(e(!0),at.v(),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:r}}function de(e,t,n){return e.origin!==Z||!e.pathname.startsWith(t)?!0:n?!(e.pathname===t+"/"||e.pathname===t+"/index.html"||e.protocol==="file:"&&e.pathname.replace(/\/[^/]+\.html?$/,"")===t):!1}function Ln(e){}function He(e){const t=Mt(e),n=new ArrayBuffer(t.length),r=new DataView(n);for(let a=0;a<n.byteLength;a++)r.setUint8(a,t.charCodeAt(a));return n}const Vt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Mt(e){e.length%4===0&&(e=e.replace(/==?$/,""));let t="",n=0,r=0;for(let a=0;a<e.length;a++)n<<=6,n|=Vt.indexOf(e[a]),r+=6,r===24&&(t+=String.fromCharCode((n&16711680)>>16),t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255),n=r=0);return r===12?(n>>=4,t+=String.fromCharCode(n)):r===18&&(n>>=2,t+=String.fromCharCode((n&65280)>>8),t+=String.fromCharCode(n&255)),t}const Gt=-1,Ht=-2,Kt=-3,Wt=-4,Yt=-5,zt=-6;function Jt(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function a(s,i=!1){if(s===Gt)return;if(s===Kt)return NaN;if(s===Wt)return 1/0;if(s===Yt)return-1/0;if(s===zt)return-0;if(i)throw new Error("Invalid input");if(s in r)return r[s];const o=n[s];if(!o||typeof o!="object")r[s]=o;else if(Array.isArray(o))if(typeof o[0]=="string"){const c=o[0],l=t?.[c];if(l)return r[s]=l(a(o[1]));switch(c){case"Date":r[s]=new Date(o[1]);break;case"Set":const d=new Set;r[s]=d;for(let f=1;f<o.length;f+=1)d.add(a(o[f]));break;case"Map":const h=new Map;r[s]=h;for(let f=1;f<o.length;f+=2)h.set(a(o[f]),a(o[f+1]));break;case"RegExp":r[s]=new RegExp(o[1],o[2]);break;case"Object":r[s]=Object(o[1]);break;case"BigInt":r[s]=BigInt(o[1]);break;case"null":const u=Object.create(null);r[s]=u;for(let f=1;f<o.length;f+=2)u[o[f]]=a(o[f+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const f=globalThis[c],p=o[1],w=He(p),_=new f(w);r[s]=_;break}case"ArrayBuffer":{const f=o[1],p=He(f);r[s]=p;break}default:throw new Error(`Unknown type ${c}`)}}else{const c=new Array(o.length);r[s]=c;for(let l=0;l<o.length;l+=1){const d=o[l];d!==Ht&&(c[l]=a(d))}}else{const c={};r[s]=c;for(const l in o){const d=o[l];c[l]=a(d)}}return r[s]}return a(0)}const ot=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...ot];const Xt=new Set([...ot]);[...Xt];function Qt(e){return e.filter(t=>t!=null)}const Zt="x-sveltekit-invalidated",en="x-sveltekit-trailing-slash";function re(e){return e instanceof fe||e instanceof Ue?e.status:500}function tn(e){return e instanceof Ue?e.text:"Internal Error"}let E,J,ve;const nn=Be.toString().includes("$$")||/function \w+\(\) \{\}/.test(Be.toString());nn?(E={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL("https://example.com")},J={current:null},ve={current:!1}):(E=new class{#e=T({});get data(){return x(this.#e)}set data(t){P(this.#e,t)}#t=T(null);get form(){return x(this.#t)}set form(t){P(this.#t,t)}#n=T(null);get error(){return x(this.#n)}set error(t){P(this.#n,t)}#r=T({});get params(){return x(this.#r)}set params(t){P(this.#r,t)}#a=T({id:null});get route(){return x(this.#a)}set route(t){P(this.#a,t)}#o=T({});get state(){return x(this.#o)}set state(t){P(this.#o,t)}#s=T(-1);get status(){return x(this.#s)}set status(t){P(this.#s,t)}#i=T(new URL("https://example.com"));get url(){return x(this.#i)}set url(t){P(this.#i,t)}},J=new class{#e=T(null);get current(){return x(this.#e)}set current(t){P(this.#e,t)}},ve=new class{#e=T(!1);get current(){return x(this.#e)}set current(t){P(this.#e,t)}},at.v=()=>ve.current=!0);function rn(e){Object.assign(E,e)}const an="/__data.json",on=".html__data.json";function sn(e){return e.endsWith(".html")?e.replace(/\.html$/,on):e.replace(/\/$/,"")+an}const{onMount:cn,tick:ln}=vt,fn=new Set(["icon","shortcut icon","apple-touch-icon"]),D=Qe(et)??{},X=Qe(Ze)??{},O={url:Ge({}),page:Ge({}),navigating:Re(null),updated:Ft()};function xe(e){D[e]=ue()}function un(e,t){let n=e+1;for(;D[n];)delete D[n],n+=1;for(n=t+1;X[n];)delete X[n],n+=1}function G(e){return location.href=e.href,new Promise(()=>{})}async function st(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(U||"/");e&&await e.update()}}function Ke(){}let Pe,Ae,ae,C,Ee,v;globalThis.__sveltekit_1x98ikd.data;const oe=[],se=[];let N=null;const te=new Map,it=new Set,dn=new Set,V=new Set;let y={branch:[],error:null,url:null},Ce=!1,ie=!1,We=!0,Q=!1,H=!1,ct=!1,Ne=!1,lt,k,R,$;const W=new Set,Ye=new Map;async function Cn(e,t,n){document.URL!==location.href&&(location.href=location.href),v=e,await e.hooks.init?.(),Pe=Dt(e),C=document.documentElement,Ee=t,Ae=e.nodes[0],ae=e.nodes[1],Ae(),ae(),k=history.state?.[F],R=history.state?.[z],k||(k=R=Date.now(),history.replaceState({...history.state,[F]:k,[z]:R},""));const r=D[k];function a(){r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y))}n?(a(),await An(Ee,n)):(await Y({type:"enter",url:Te(v.hash?Sn(new URL(location.href)):location.href),replace_state:!0}),a()),kn()}function hn(){oe.length=0,Ne=!1}function ft(e){se.some(t=>t?.snapshot)&&(X[e]=se.map(t=>t?.snapshot?.capture()))}function ut(e){X[e]?.forEach((t,n)=>{se[n]?.snapshot?.restore(t)})}function ze(){xe(k),Ve(et,D),ft(R),Ve(Ze,X)}async function Oe(e,t,n,r){let a;const s=await Y({type:"goto",url:Te(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(Ne=!0,a=[...Ye.keys()]),t.invalidate&&t.invalidate.forEach(bn)}});return t.invalidateAll&&Fe().then(Fe).then(()=>{Ye.forEach(({resource:i},o)=>{a?.includes(o)&&i.refresh?.()})}),s}async function pn(e){if(e.id!==N?.id){const t={};W.add(t),N={id:e.id,token:t,promise:pt({...e,preload:t}).then(n=>(W.delete(t),n.type==="loaded"&&n.state.error&&(N=null),n))}}return N.promise}async function be(e){const t=(await pe(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}function dt(e,t,n){y=e.state;const r=document.querySelector("style[data-sveltekit]");if(r&&r.remove(),Object.assign(E,e.props.page),lt=new v.root({target:t,props:{...e.props,stores:O,components:se},hydrate:n,sync:!1}),ut(R),n){const a={from:null,to:{params:y.params,route:{id:y.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};V.forEach(s=>s(a))}ie=!0}function ce({url:e,params:t,branch:n,status:r,error:a,route:s,form:i}){let o="never";if(U&&(e.pathname===U||e.pathname===U+"/"))o="always";else for(const f of n)f?.slash!==void 0&&(o=f.slash);e.pathname=At(e.pathname,o),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:s},props:{constructors:Qt(n).map(f=>f.node.component),page:qe(E)}};i!==void 0&&(c.props.form=i);let l={},d=!E,h=0;for(let f=0;f<Math.max(n.length,y.branch.length);f+=1){const p=n[f],w=y.branch[f];p?.data!==w?.data&&(d=!0),p&&(l={...l,...p.data},d&&(c.props[`data_${h}`]=l),h+=1)}return(!y.url||e.href!==y.url.href||y.error!==a||i!==void 0&&i!==E.form||d)&&(c.props.page={error:a,params:t,route:{id:s?.id??null},state:{},status:r,url:new URL(e),form:i??null,data:d?l:E.data}),c}async function je({loader:e,parent:t,url:n,params:r,route:a,server_data_node:s}){let i=null,o=!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 d=function(...u){for(const f of u){const{href:p}=new URL(f,n);c.dependencies.add(p)}};const h={route:new Proxy(a,{get:(u,f)=>(o&&(c.route=!0),u[f])}),params:new Proxy(r,{get:(u,f)=>(o&&c.params.add(f),u[f])}),data:s?.data??null,url:Rt(n,()=>{o&&(c.url=!0)},u=>{o&&c.search_params.add(u)},v.hash),async fetch(u,f){u instanceof Request&&(f={body:u.method==="GET"||u.method==="HEAD"?void 0:await u.blob(),cache:u.cache,credentials:u.credentials,headers:[...u.headers].length>0?u?.headers:void 0,integrity:u.integrity,keepalive:u.keepalive,method:u.method,mode:u.mode,redirect:u.redirect,referrer:u.referrer,referrerPolicy:u.referrerPolicy,signal:u.signal,...f});const{resolved:p,promise:w}=ht(u,f,n);return o&&d(p.href),w},setHeaders:()=>{},depends:d,parent(){return o&&(c.parent=!0),t()},untrack(u){o=!1;try{return u()}finally{o=!0}}};i=await l.universal.load.call(null,h)??null}return{node:l,loader:e,server:s,universal:l.universal?.load?{type:"data",data:i,uses:c}:null,data:i??s?.data??null,slash:l.universal?.trailingSlash??s?.slash}}function ht(e,t,n){let r=e instanceof Request?e.url:e;const a=new URL(r,n);a.origin===n.origin&&(r=a.href.slice(n.origin.length));const s=ie?Pt(r,a.href,t):xt(r,t);return{resolved:a,promise:s}}function Je(e,t,n,r,a,s){if(Ne)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(s[i]!==y.params[i])return!0;for(const i of a.dependencies)if(oe.some(o=>o(new URL(i))))return!0;return!1}function $e(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function gn(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),s=t.searchParams.getAll(r);a.every(i=>s.includes(i))&&s.every(i=>a.includes(i))&&n.delete(r)}return n}function Xe({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:qe(E),constructors:[]}}}async function pt({id:e,invalidating:t,url:n,params:r,route:a,preload:s}){if(N?.id===e)return W.delete(N.token),N.promise;const{errors:i,layouts:o,leaf:c}=a,l=[...o,c];i.forEach(g=>g?.().catch(()=>{})),l.forEach(g=>g?.[1]().catch(()=>{}));let d=null;const h=y.url?e!==le(y.url):!1,u=y.route?a.id!==y.route.id:!1,f=gn(y.url,n);let p=!1;const w=l.map((g,m)=>{const b=y.branch[m],A=!!g?.[0]&&(b?.loader!==g[1]||Je(p,u,h,f,b.server?.uses,r));return A&&(p=!0),A});if(w.some(Boolean)){try{d=await mt(n,w)}catch(g){const m=await M(g,{url:n,params:r,route:{id:e}});return W.has(s)?Xe({error:m,url:n,params:r,route:a}):he({status:re(g),error:m,url:n,route:a})}if(d.type==="redirect")return d}const _=d?.nodes;let S=!1;const L=l.map(async(g,m)=>{if(!g)return;const b=y.branch[m],A=_?.[m];if((!A||A.type==="skip")&&g[1]===b?.loader&&!Je(S,u,h,f,b.universal?.uses,r))return b;if(S=!0,A?.type==="error")throw A;return je({loader:g[1],url:n,params:r,route:a,parent:async()=>{const ge={};for(let _e=0;_e<m;_e+=1)Object.assign(ge,(await L[_e])?.data);return ge},server_data_node:$e(A===void 0&&g[0]?{type:"skip"}:A??null,g[0]?b?.server:void 0)})});for(const g of L)g.catch(()=>{});const I=[];for(let g=0;g<l.length;g+=1)if(l[g])try{I.push(await L[g])}catch(m){if(m instanceof Ie)return{type:"redirect",location:m.location};if(W.has(s))return Xe({error:await M(m,{params:r,url:n,route:{id:a.id}}),url:n,params:r,route:a});let b=re(m),A;if(_?.includes(m))b=m.status??b,A=m.error;else if(m instanceof fe)A=m.body;else{if(await O.updated.check())return await st(),await G(n);A=await M(m,{params:r,url:n,route:{id:a.id}})}const ee=await _n(g,I,i);return ee?ce({url:n,params:r,branch:I.slice(0,ee.idx).concat(ee.node),status:b,error:A,route:a}):await _t(n,{id:a.id},A,b)}else I.push(void 0);return ce({url:n,params:r,branch:I,status:200,error:null,route:a,form:t?void 0:null})}async function _n(e,t,n){for(;e--;)if(n[e]){let r=e;for(;!t[r];)r-=1;try{return{idx:r+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function he({status:e,error:t,url:n,route:r}){const a={};let s=null;if(v.server_loads[0]===0)try{const o=await mt(n,[!0]);if(o.type!=="data"||o.nodes[0]&&o.nodes[0].type!=="data")throw 0;s=o.nodes[0]??null}catch{(n.origin!==Z||n.pathname!==location.pathname||Ce)&&await G(n)}try{const o=await je({loader:Ae,url:n,params:a,route:r,parent:()=>Promise.resolve({}),server_data_node:$e(s)}),c={node:await ae(),loader:ae,universal:null,server:null,data:null};return ce({url:n,params:a,branch:[o,c],status:e,error:t,route:null})}catch(o){if(o instanceof Ie)return Oe(new URL(o.location,location.href),{},0);throw o}}async function mn(e){const t=e.href;if(te.has(t))return te.get(t);let n;try{const r=(async()=>{let a=await v.hooks.reroute({url:new URL(e),fetch:async(s,i)=>ht(s,i,e).promise})??e;if(typeof a=="string"){const s=new URL(e);v.hash?s.hash=a:s.pathname=a,a=s}return a})();te.set(t,r),n=await r}catch{te.delete(t);return}return n}async function pe(e,t){if(e&&!de(e,U,v.hash)){const n=await mn(e);if(!n)return;const r=yn(n);for(const a of Pe){const s=a.exec(r);if(s)return{id:le(e),invalidating:t,route:a,params:St(s),url:e}}}}function yn(e){return Et(v.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(U.length))||"/"}function le(e){return(v.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function gt({url:e,type:t,intent:n,delta:r}){let a=!1;const s=De(y,n,e,t);r!==void 0&&(s.navigation.delta=r);const i={...s.navigation,cancel:()=>{a=!0,s.reject(new Error("navigation cancelled"))}};return Q||it.forEach(o=>o(i)),a?null:s}async function Y({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:s,state:i={},redirect_count:o=0,nav_token:c={},accept:l=Ke,block:d=Ke}){const h=$;$=c;const u=await pe(t,!1),f=e==="enter"?De(y,u,t,e):gt({url:t,type:e,delta:n?.delta,intent:u});if(!f){d(),$===c&&($=h);return}const p=k,w=R;l(),Q=!0,ie&&f.navigation.type!=="enter"&&O.navigating.set(J.current=f.navigation);let _=u&&await pt(u);if(!_){if(de(t,U,v.hash))return await G(t);_=await _t(t,{id:null},await M(new Ue(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=u?.url||t,$!==c)return f.reject(new Error("navigation aborted")),!1;if(_.type==="redirect")if(o>=20)_=await he({status:500,error:await M(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return await Oe(new URL(_.location,t).href,{},o+1,c),!1;else _.props.page.status>=400&&await O.updated.check()&&(await st(),await G(t));if(hn(),xe(p),ft(w),_.props.page.url.pathname!==t.pathname&&(t.pathname=_.props.page.url.pathname),i=n?n.state:i,!n){const g=s?0:1,m={[F]:k+=g,[z]:R+=g,[tt]:i};(s?history.replaceState:history.pushState).call(history,m,"",t),s||un(k,R)}if(N=null,_.props.page.state=i,ie){const g=(await Promise.all(Array.from(dn,m=>m(f.navigation)))).filter(m=>typeof m=="function");if(g.length>0){let m=function(){g.forEach(b=>{V.delete(b)})};g.push(m),g.forEach(b=>{V.add(b)})}y=_.state,_.props.page&&(_.props.page.url=t),lt.$set(_.props),rn(_.props.page),ct=!0}else dt(_,Ee,!1);const{activeElement:S}=document;await ln();const L=n?n.scroll:a?ue():null;if(We){const g=t.hash&&document.getElementById(wt(t));L?scrollTo(L.x,L.y):g?g.scrollIntoView():scrollTo(0,0)}const I=document.activeElement!==S&&document.activeElement!==document.body;!r&&!I&&En(t),We=!0,_.props.page&&Object.assign(E,_.props.page),Q=!1,e==="popstate"&&ut(R),f.fulfil(void 0),V.forEach(g=>g(f.navigation)),O.navigating.set(J.current=null)}async function _t(e,t,n,r){return e.origin===Z&&e.pathname===location.pathname&&!Ce?await he({status:r,error:n,url:e,route:t}):await G(e)}function wn(){let e,t,n;C.addEventListener("mousemove",o=>{const c=o.target;clearTimeout(e),e=setTimeout(()=>{s(c,j.hover)},20)});function r(o){o.defaultPrevented||s(o.composedPath()[0],j.tap)}C.addEventListener("mousedown",r),C.addEventListener("touchstart",r,{passive:!0});const a=new IntersectionObserver(o=>{for(const c of o)c.isIntersecting&&(be(new URL(c.target.href)),a.unobserve(c.target))},{threshold:0});async function s(o,c){const l=rt(o,C),d=l===t&&c>=n;if(!l||d)return;const{url:h,external:u,download:f}=ke(l,U,v.hash);if(u||f)return;const p=ne(l),w=h&&le(y.url)===le(h);if(!(p.reload||w))if(c<=p.preload_data){t=l,n=j.tap;const _=await pe(h,!1);if(!_)return;pn(_)}else c<=p.preload_code&&(t=l,n=c,be(h))}function i(){a.disconnect();for(const o of C.querySelectorAll("a")){const{url:c,external:l,download:d}=ke(o,U,v.hash);if(l||d)continue;const h=ne(o);h.reload||(h.preload_code===j.viewport&&a.observe(o),h.preload_code===j.eager&&be(c))}}V.add(i),i()}function M(e,t){if(e instanceof fe)return e.body;const n=re(e),r=tn(e);return v.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function vn(e,t){cn(()=>(e.add(t),()=>{e.delete(t)}))}function Nn(e){vn(V,e)}function On(e,t={}){return e=new URL(Te(e)),e.origin!==Z?Promise.reject(new Error("goto: invalid URL")):Oe(e,t,0)}function bn(e){if(typeof e=="function")oe.push(e);else{const{href:t}=new URL(e,location.href);oe.push(n=>n.href===t)}}function kn(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(ze(),!Q){const r=De(y,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};it.forEach(s=>s(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&ze()}),navigator.connection?.saveData||wn(),C.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=rt(t.composedPath()[0],C);if(!n)return;const{url:r,external:a,target:s,download:i}=ke(n,U,v.hash);if(!r)return;if(s==="_parent"||s==="_top"){if(window.parent!==window)return}else if(s&&s!=="_self")return;const o=ne(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||i)return;const[l,d]=(v.hash?r.hash.replace(/^#/,""):r.href).split("#"),h=l===ye(location);if(a||o.reload&&(!h||!d)){gt({url:r,type:"link"})?Q=!0:t.preventDefault();return}if(d!==void 0&&h){const[,u]=y.url.href.split("#");if(u===d){if(t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null)window.scrollTo({top:0});else{const f=n.ownerDocument.getElementById(decodeURIComponent(d));f&&(f.scrollIntoView(),f.focus())}return}if(H=!0,xe(k),e(r),!o.replace_state)return;H=!1}t.preventDefault(),await new Promise(u=>{requestAnimationFrame(()=>{setTimeout(u,0)}),setTimeout(u,100)}),await Y({type:"link",url:r,keepfocus:o.keepfocus,noscroll:o.noscroll,replace_state:o.replace_state??r.href===location.href})}),C.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formTarget||n.target)==="_blank"||(r?.formMethod||n.method)!=="get")return;const i=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(de(i,U,!1))return;const o=t.target,c=ne(o);if(c.reload)return;t.preventDefault(),t.stopPropagation();const l=new FormData(o),d=r?.getAttribute("name");d&&l.append(d,r?.getAttribute("value")??""),i.search=new URLSearchParams(l).toString(),Y({type:"form",url:i,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??i.href===location.href})}),addEventListener("popstate",async t=>{if(!Se){if(t.state?.[F]){const n=t.state[F];if($={},n===k)return;const r=D[n],a=t.state[tt]??{},s=new URL(t.state[Bt]??location.href),i=t.state[z],o=y.url?ye(location)===ye(y.url):!1;if(i===R&&(ct||o)){a!==E.state&&(E.state=a),e(s),D[k]=ue(),r&&scrollTo(r.x,r.y),k=n;return}const l=n-k;await Y({type:"popstate",url:s,popped:{state:a,scroll:r,delta:l},accept:()=>{k=n,R=i},block:()=>{history.go(-l)},nav_token:$})}else if(!H){const n=new URL(location.href);e(n),v.hash&&location.reload()}}}),addEventListener("hashchange",()=>{H&&(H=!1,history.replaceState({...history.state,[F]:++k,[z]:R},"",location.href))});for(const t of document.querySelectorAll("link"))fn.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&O.navigating.set(J.current=null)});function e(t){y.url=E.url=t,O.page.set(qe(E)),O.page.notify()}}async function An(e,{status:t=200,error:n,node_ids:r,params:a,route:s,server_route:i,data:o,form:c}){Ce=!0;const l=new URL(location.href);let d;({params:a={},route:s={id:null}}=await pe(l,!1)||{}),d=Pe.find(({id:f})=>f===s.id);let h,u=!0;try{const f=r.map(async(w,_)=>{const S=o[_];return S?.uses&&(S.uses=yt(S.uses)),je({loader:v.nodes[w],url:l,params:a,route:s,parent:async()=>{const L={};for(let I=0;I<_;I+=1)Object.assign(L,(await f[I]).data);return L},server_data_node:$e(S)})}),p=await Promise.all(f);if(d){const w=d.layouts;for(let _=0;_<w.length;_++)w[_]||p.splice(_,0,void 0)}h=ce({url:l,params:a,branch:p,status:t,error:n,form:c,route:d??null})}catch(f){if(f instanceof Ie){await G(new URL(f.location,location.href));return}h=await he({status:re(f),error:await M(f,{url:l,params:a,route:s}),url:l,route:s}),e.textContent="",u=!1}h.props.page&&(h.props.page.state={}),dt(h,e,u)}async function mt(e,t){const n=new URL(e);n.pathname=sn(e.pathname),e.pathname.endsWith("/")&&n.searchParams.append(en,"1"),n.searchParams.append(Zt,t.map(s=>s?"1":"0").join(""));const r=window.fetch,a=await r(n.href,{});if(!a.ok){let s;throw a.headers.get("content-type")?.includes("application/json")?s=await a.json():a.status===404?s="Not Found":a.status===500&&(s="Internal Error"),new fe(a.status,s)}return new Promise(async s=>{const i=new Map,o=a.body.getReader();function c(d){return Jt(d,{...v.decoders,Promise:h=>new Promise((u,f)=>{i.set(h,{fulfil:u,reject:f})})})}let l="";for(;;){const{done:d,value:h}=await o.read();if(d&&!l)break;for(l+=!h&&l?`
|
|
2
|
+
`:Ut.decode(h,{stream:!0});;){const u=l.indexOf(`
|
|
3
|
+
`);if(u===-1)break;const f=JSON.parse(l.slice(0,u));if(l=l.slice(u+1),f.type==="redirect")return s(f);if(f.type==="data")f.nodes?.forEach(p=>{p?.type==="data"&&(p.uses=yt(p.uses),p.data=c(p.data))}),s(f);else if(f.type==="chunk"){const{id:p,data:w,error:_}=f,S=i.get(p);i.delete(p),_?S.reject(c(_)):S.fulfil(c(w))}}}})}function yt(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 Se=!1;function En(e){const t=document.querySelector("[autofocus]");if(t)t.focus();else{const n=wt(e);if(n&&document.getElementById(n)){const{x:a,y:s}=ue();setTimeout(()=>{const i=history.state;Se=!0,location.replace(`#${n}`),v.hash&&location.replace(e.hash),history.replaceState(i,"",e.hash),scrollTo(a,s),Se=!1})}else{const a=document.body,s=a.getAttribute("tabindex");a.tabIndex=-1,a.focus({preventScroll:!0,focusVisible:!1}),s!==null?a.setAttribute("tabindex",s):a.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let s=0;s<r.rangeCount;s+=1)a.push(r.getRangeAt(s));setTimeout(()=>{if(r.rangeCount===a.length){for(let s=0;s<r.rangeCount;s+=1){const i=a[s],o=r.getRangeAt(s);if(i.commonAncestorContainer!==o.commonAncestorContainer||i.startContainer!==o.startContainer||i.endContainer!==o.endContainer||i.startOffset!==o.startOffset||i.endOffset!==o.endOffset)return}r.removeAllRanges()}})}}}function De(e,t,n,r){let a,s;const i=new Promise((c,l)=>{a=c,s=l});return i.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:r,complete:i},fulfil:a,reject:s}}function qe(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 wt(e){let t;if(v.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{fe as H,Nn as a,Cn as b,On as g,Ln as l,E as p,O 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,r as he,j as P,k as le,l as de,m as Pe,n as Y,o as fe,q as Le,t as He,u as Mt,v as we,w as Ze,x as Et,y as _e,z as Be,A as ye,B as me,S as Ae,C 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,r as he,j as P,k as le,l as de,m as Pe,n as Y,o as fe,q as Le,t as He,u as Mt,v as we,w as Ze,x as Et,y as _e,z as Be,A as ye,B as me,S as Ae,C as bt}from"./WuaXWmRv.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)}
|
|
@@ -30,7 +30,7 @@ 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
|
|
|
30
30
|
`,o.calcErr=!1}catch(d){o.logstr+=d,console.log(d)}return o}var zt={pTitle:"Gear-epicycloid",pDescription:"The epicycloid gear system",pDef:st,pGeom:mt};function Gt(s){let e="";const S=s.PHD1/2,o=s.PHD5/2,i=2*Math.asin(s.PHR4/S),d=2*Math.asin(s.PHL2/(2*o)),c=2*Math.PI/s.PHN1-d,n=s.PHL2/2,l=Math.sqrt(o**2-n**2)-S,h=Math.sqrt(n**2+l**2),a=Math.acos(l/h),_=Math.acos(s.PHR4/h),g=Math.PI-a-_;if(o<S+s.PHR4)throw`err211: PHD5 ${s.PHD5} too small compare to PHD1 ${s.PHD1} or PHR4 ${s.PHR4}`;if(c<d)throw`err212: PHL2 ${s.PHL2} too large compare to PHN1 ${s.PHN1}`;if(s.PHD3>2*s.PHR4)throw`err213: PHD3 ${s.PHD3} too large compare to PHR4 ${s.PHR4}`;g>Math.PI/2-i&&(e+=`warn345: PHL2 is quiet small ${L(s.PHL2)} mm
|
|
31
31
|
`),e+=`petal angle: ${L(he(d))} degree
|
|
32
32
|
`,e+=`hollow angle: ${L(he(c))} degree
|
|
33
|
-
`;const r=de(0,0),f=de(o,0).rotate(r,-d/2),H=de(S,0),k=de(S-s.PHR4,0),M=k.rotate(H,g),D=k.rotate(H,-g),b=J(f.cx,f.cy).addCornerRounded(s.PHR6).addSegStrokeA(M.cx,M.cy).addPointA(S-s.PHR4,0).addPointA(D.cx,D.cy).addSegArc2().addSegStrokeAP(d/2,o).addCornerRounded(s.PHR6).addPointAP(d/2+c/2,o).addPointAP(d/2+c,o).addSegArc2(),N=J(f.cx,f.cy),R=[...Array(s.PHN1).keys()].map(v=>v*(d+c));for(const v of R)N.addPartial(b.rotate(0,0,v));return[e,N,R]}function it(s){const
|
|
33
|
+
`;const r=de(0,0),f=de(o,0).rotate(r,-d/2),H=de(S,0),k=de(S-s.PHR4,0),M=k.rotate(H,g),D=k.rotate(H,-g),b=J(f.cx,f.cy).addCornerRounded(s.PHR6).addSegStrokeA(M.cx,M.cy).addPointA(S-s.PHR4,0).addPointA(D.cx,D.cy).addSegArc2().addSegStrokeAP(d/2,o).addCornerRounded(s.PHR6).addPointAP(d/2+c/2,o).addPointAP(d/2+c,o).addSegArc2(),N=J(f.cx,f.cy),R=[...Array(s.PHN1).keys()].map(v=>v*(d+c));for(const v of R)N.addPartial(b.rotate(0,0,v));return[e,N,R]}function it(s){const S=s.D1/2,o=s.D2/2,i=s.D4/2,d=2*Math.PI/s.N1,c=s.L1/2,n=Math.sqrt(o**2-c**2),l=Math.asin(c/o),h=S-n,a=Math.atan2(c,h),_=Math.sqrt(c**2+h**2),g=Math.acos(i/_),r=a+g,u=(d-2*l)/2;if(u<0)throw`err464: N1 ${s.N1} is too large compare to D2 ${s.D2}, L1 ${s.L1}`;if(S<o)throw`err465: D2 ${s.D2} is too large compare to D1 ${s.D1}`;const f=J(n,-c),H=de(0,0),k=de(o,0),M=de(S,0),b=de(S-i,0).rotate(M,r),N=k.rotate(H,l+u),R=k.rotate(H,d-l),v=J(n,-c).addCornerRounded(s.R5).addSegStrokeA(b.cx,b.cy).addPointA(S+i,0).addPointA(b.cx,-b.cy).addSegArc2().addSegStrokeA(n,c).addCornerRounded(s.R5).addPointA(N.cx,N.cy).addPointA(R.cx,R.cy).addSegArc2();for(let E=0;E<s.N1;E++)f.addPartial(v.rotate(0,0,E*d));return["",f,d]}function Oe(s,e){let S="";const o=s.SD2/2,i=o+s.SE1,d=2*i;let c=!1,n=-o,l=-i;if(e&&(c=!0,n=i,l=o),s.SL2<i)throw`err421: SL2 ${s.SL2} is too small compare to SD2 ${s.SD2} and SE1 ${s.SE1}`;S+=`info309: spring height: ${L(s.SL1+d)} length: ${L(s.SN1*2*(s.SD2+s.SE1))}
|
|
34
34
|
`;const h=J(0,0);for(let a=0;a<s.SN1;a++)h.addSegStrokeR(0,-s.SL1).addPointR(2*n,0).addSegArc(Math.abs(n),!1,c),a<s.SN1-1?h.addSegStrokeR(0,s.SL1).addPointR(2*l,0).addSegArc(Math.abs(l),!1,!c):s.Send===1?h.addSegStrokeR(0,s.SL2):h.addSegStrokeR(0,s.SL2-i).addPointR(2*l,0).addSegArc(Math.abs(l),!1,!c);s.Send===1?h.addSegStrokeR(-s.SE1,0):h.addSegStrokeR(s.SE1,0);for(let a=0;a<s.SN1;a++)a>0?h.addPointR(-2*n,0).addSegArc(Math.abs(n),!1,c).addSegStrokeR(0,-s.SL1):s.Send===1?h.addSegStrokeR(0,-s.SL2):h.addPointR(-2*n,0).addSegArc(Math.abs(n),!1,c).addSegStrokeR(0,-s.SL2+i),h.addPointR(-2*l,0).addSegArc(Math.abs(l),!1,!c).addSegStrokeR(0,s.SL1);return[S,h]}function Ut(s){let e="";const S=s.D6/2,o=2*Math.PI/s.N2,i=s.E2/2,d=2*Math.asin(i/S),c=(o-d)/2,l=(s.N2<3?0:Math.PI/s.N2)+Pe(s.SA1),h=Math.PI/2-l,a=-Math.PI/2+l,_=s.SD1/2;if(c<0)throw`err564: N2 ${s.N2} is too large compare to D6 ${s.D6}, E2 ${s.E2}`;if(s.orientation===2&&s.N2%2===1)throw`err565: N2 ${s.N2} is odd and orientation is alt`;const[g,r]=Oe(s,!1),[,u]=Oe(s,!0);e+=g;const f=de(0,-S),H=de(0,0),k=f.rotate(H,d),M=f.translate(0,s.L2),D=M.translate(-_,0),b=D.translate(0,_),N=D.translate(0,_+s.SE1),R=N.rotate(D,h),v=M.translate(0,_+s.SE1).translate(s.SE1,0),E=f.rotate(H,-d),x=M.translate(_,0),O=x.translate(0,_),C=O.rotate(x,a),$=x.translate(0,_+s.SE1),m=M.translate(0,_+s.SE1).translate(-s.SE1,0),U=J(k.cx,k.cy).addSegStrokeA(v.cx,v.cy).addSegStrokeA(N.cx,N.cy),F=J(N.cx,N.cy).addPointA(R.cx,R.cy).addSegArc(_+s.SE1,!1,!0);F.addPartial(r.rotate(0,0,-l).translate(R.cx,R.cy)),F.addPointA(b.cx,b.cy).addPointA(M.cx,M.cy).addSegArc2().addSegStrokeA(f.cx,f.cy),U.addPartial(F);const T=J(f.cx,f.cy).addSegStrokeA(M.cx,M.cy).addPointA(O.cx,O.cy).addPointA(C.cx,C.cy).addSegArc2();T.addPartial(u.rotate(0,0,l).translate(C.cx,C.cy)),T.addPointA($.cx,$.cy).addSegArc(_+s.SE1,!1,!0);const p=J($.cx,$.cy).addSegStrokeA(m.cx,m.cy).addSegStrokeA(E.cx,E.cy),W=J(f.cx,f.cy).addPartial(T).addPartial(p),I=J(S,0);if(s.orientation===2)for(let Z=0;Z<s.N2/2;Z++){I.addPointAP(-2*Z*o-2*c,S).addPointAP(-2*Z*o-4*c,S).addSegArc2(),I.addCornerRounded(s.R7);const se=Math.PI/2-(2*Z+2)*o,V=se+2*d;I.addPartial(T.rotate(0,0,V));const ee=F.rotate(0,0,se),w=ee.getFirstPoint();I.addCornerRounded(s.R7),I.addSegStrokeA(w.cx,w.cy),I.addCornerRounded(s.R7),I.addPartial(ee),I.addCornerRounded(s.R7)}else for(let Z=0;Z<s.N2;Z++)I.addPointAP(-Z*o-c,S).addPointAP(-Z*o-2*c,S).addSegArc2().addCornerRounded(s.R7),s.orientation===0?I.addPartial(W.rotate(0,0,Math.PI/2-(Z+1)*o+d)):s.orientation===1&&I.addPartial(U.rotate(0,0,Math.PI/2-(Z+1)*o)),I.addCornerRounded(s.R7);return[e,I]}var nt={partName:"vaxis_holder",params:[t("PHD1","mm",700,1,2e3,1),t("PHD2","mm",900,1,4e3,1),t("PHD5","mm",800,1,4e3,1),t("PHN1","holes",6,1,24,1),z("screw holes"),t("PHD3","mm",40,1,100,1),t("PHR4","mm",40,1,100,1),t("PHL2","mm",120,1,400,1),t("PHR6","mm",20,0,400,1),z("section"),t("PHE1","mm",10,1,80,1),t("PHH1","mm",50,1,200,1),t("PHA","degree",5,-45,45,.1),t("PHL1","mm",300,1,500,1),t("PHE2","mm",10,1,80,1),t("PHE3","mm",10,1,80,1),z("for reuse"),ve("withOuterCone",!0)],paramSvg:{PHD1:"vaxis_holder_top.svg",PHD2:"vaxis_holder_top.svg",PHD5:"vaxis_holder_top.svg",PHD3:"vaxis_holder_top.svg",PHR4:"vaxis_holder_top.svg",PHN1:"vaxis_holder_top.svg",PHL2:"vaxis_holder_top.svg",PHR6:"vaxis_holder_top.svg",PHE1:"vaxis_holder_section.svg",PHH1:"vaxis_holder_section.svg",PHA:"vaxis_holder_section.svg",PHL1:"vaxis_holder_section.svg",PHE2:"vaxis_holder_section.svg",PHE3:"vaxis_holder_top.svg",withOuterCone:"vaxis_holder_section.svg"},sim:{tMax:180,tStep:.5,tUpdate:500}};function qt(s,e,S=""){const o=ue(nt.partName+S),i=B(),d=B(),c=B(),n=B(),l=B();o.logstr+=`${o.partName} simTime: ${s}
|
|
35
35
|
`;try{const h=Pe(e.PHA),a=e.PHD1/2,_=e.PHD2/2,g=e.PHD3/2,r=e.PHD5/2,u=_+e.PHL1/2*Math.sin(h),f=_-e.PHL1/2*Math.sin(h),H=e.PHL1*Math.cos(h),k=_-e.PHE2/Math.cos(h)+e.PHE1/2*Math.tan(h),M=_-e.PHE2/Math.cos(h)-e.PHE1/2*Math.tan(h),D=Math.min(k,M),b=(e.PHL1-e.PHE1/Math.cos(h))/2,N=_-e.PHE2/Math.cos(h);if(D<r)throw`err210: PHD5 ${e.PHD5} too large compare to PHE2 ${e.PHE2} or PHA ${e.PHA}`;o.logstr+=`vaxis_holder's height: ${L(H)} mm
|
|
36
36
|
`,o.logstr+=`vaxis_holder outerD1: ${L(2*u)} mm
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
typeof window<"u"&&((window.__svelte??={}).v??=new Set).add("5");
|