@turnipxenon/pineapple 2.4.2 → 2.4.4

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.
Files changed (104) hide show
  1. package/.idea/pineapple.iml +1 -0
  2. package/.idea/workspace.xml +79 -76
  3. package/.svelte-kit/__package__/components/Card.svelte +5 -4
  4. package/.svelte-kit/__package__/components/Chip.svelte +1 -1
  5. package/.svelte-kit/__package__/template/SeaweedTemplate.svelte +1 -1
  6. package/.svelte-kit/ambient.d.ts +2 -4
  7. package/.svelte-kit/generated/server/internal.js +1 -1
  8. package/.svelte-kit/output/client/.vite/manifest.json +94 -94
  9. package/.svelte-kit/output/client/_app/immutable/assets/{ProgressBar.DmpmGWm6.css → 0.BIZ0IPOt.css} +1 -1
  10. package/.svelte-kit/output/client/_app/immutable/assets/ProgressBar.Cirlo5Z8.css +1 -0
  11. package/.svelte-kit/output/client/_app/immutable/assets/SeaweedTemplate.pOPCzkb2.css +1 -0
  12. package/.svelte-kit/output/{server/_app/immutable/assets/ProgressBar.CaHExdkQ.css → client/_app/immutable/assets/_layout.m4xJvVt-.css} +1 -1
  13. package/.svelte-kit/output/client/_app/immutable/chunks/{DialogManagerStore.CGTbGbVf.js → DialogManagerStore.CauD3dIa.js} +1 -1
  14. package/.svelte-kit/output/client/_app/immutable/chunks/{PineappleBaseLayout.BEmcdUbJ.js → PineappleBaseLayout.SSm4gITf.js} +1 -1
  15. package/.svelte-kit/output/client/_app/immutable/chunks/{ProgressBar.svelte_svelte_type_style_lang.CmgCUata.js → ProgressBar.svelte_svelte_type_style_lang.sh-s555A.js} +1 -1
  16. package/.svelte-kit/output/client/_app/immutable/chunks/{SeaweedTemplate.Dn5ajBSa.js → SeaweedTemplate.BmvpbSLb.js} +21 -21
  17. package/.svelte-kit/output/client/_app/immutable/chunks/entry.CQQG-dzn.js +3 -0
  18. package/.svelte-kit/output/client/_app/immutable/chunks/{index.DcUpu3_h.js → index.BgUXYai5.js} +1 -1
  19. package/.svelte-kit/output/client/_app/immutable/chunks/{index.Duksw40K.js → index.DM9YwQfI.js} +1 -1
  20. package/.svelte-kit/output/client/_app/immutable/chunks/{scheduler.DXwjFp5a.js → scheduler.DJdG0Qxb.js} +1 -1
  21. package/.svelte-kit/output/client/_app/immutable/chunks/{store.lTf0RalW.js → store.CzGlMZaJ.js} +1 -1
  22. package/.svelte-kit/output/client/_app/immutable/chunks/{transitions.BzalH0R-.js → transitions.DM45rqx4.js} +1 -1
  23. package/.svelte-kit/output/client/_app/immutable/entry/{app.gjWLgY1c.js → app.oi3PnWPJ.js} +2 -2
  24. package/.svelte-kit/output/client/_app/immutable/entry/start.Dazgoa1N.js +1 -0
  25. package/.svelte-kit/output/client/_app/immutable/nodes/{0.Dp97myFE.js → 0.Bay8_8oq.js} +1 -1
  26. package/.svelte-kit/output/client/_app/immutable/nodes/{1.I7DMxkG1.js → 1.D3OJXEpT.js} +1 -1
  27. package/.svelte-kit/output/client/_app/immutable/nodes/{2.BDQ3d4fl.js → 2.B9XiR3AU.js} +1 -1
  28. package/.svelte-kit/output/client/_app/immutable/nodes/{3.IkK-Vp1t.js → 3.DFl_-mE9.js} +1 -1
  29. package/.svelte-kit/output/client/_app/immutable/nodes/{4.C0MZnSyC.js → 4.Is9K1FIL.js} +1 -1
  30. package/.svelte-kit/output/client/_app/immutable/nodes/{5.BjbBqeg5.js → 5.YVruzYx6.js} +1 -1
  31. package/.svelte-kit/output/client/_app/immutable/nodes/{6.ifg4QDG7.js → 6.drIpFDQq.js} +1 -1
  32. package/.svelte-kit/output/client/_app/version.json +1 -1
  33. package/.svelte-kit/output/prerendered/pages/portfolio.html +37 -37
  34. package/.svelte-kit/output/server/.vite/manifest.json +6 -6
  35. package/.svelte-kit/output/server/_app/immutable/assets/ProgressBar.Cirlo5Z8.css +1 -0
  36. package/.svelte-kit/output/server/_app/immutable/assets/SeaweedTemplate.pOPCzkb2.css +1 -0
  37. package/.svelte-kit/output/{client/_app/immutable/assets/ProgressBar.CaHExdkQ.css → server/_app/immutable/assets/_layout.m4xJvVt-.css} +1 -1
  38. package/.svelte-kit/output/server/chunks/SeaweedTemplate.js +3 -3
  39. package/.svelte-kit/output/server/chunks/internal.js +1 -1
  40. package/.svelte-kit/output/server/entries/pages/_layout.svelte.js +1 -1
  41. package/.svelte-kit/output/server/manifest-full.js +1 -1
  42. package/.svelte-kit/output/server/manifest.js +1 -1
  43. package/.svelte-kit/output/server/nodes/0.js +2 -2
  44. package/.svelte-kit/output/server/nodes/1.js +1 -1
  45. package/.svelte-kit/output/server/nodes/2.js +2 -2
  46. package/.svelte-kit/output/server/nodes/3.js +2 -2
  47. package/.svelte-kit/output/server/nodes/4.js +1 -1
  48. package/.svelte-kit/output/server/nodes/5.js +2 -2
  49. package/.svelte-kit/output/server/nodes/6.js +2 -2
  50. package/dist/components/Card.svelte +5 -4
  51. package/dist/components/Chip.svelte +1 -1
  52. package/dist/template/SeaweedTemplate.svelte +1 -1
  53. package/package.json +1 -1
  54. package/src/lib/components/Card.svelte +3 -2
  55. package/src/lib/components/Chip.svelte +1 -1
  56. package/src/lib/template/SeaweedTemplate.svelte +1 -1
  57. package/src/routes/portfolio/+page.svelte +2 -1
  58. package/vite.config.ts.timestamp-1710279492121-6e9193760fb1c.mjs +10 -0
  59. package/.svelte-kit/__package__/assets/game_dev/footage-depreciation.webm +0 -0
  60. package/.svelte-kit/__package__/assets/game_dev/footage-thinking-of-flowers.webm +0 -0
  61. package/.svelte-kit/__package__/assets/game_dev/screenshot-game-jam-mama.png +0 -0
  62. package/.svelte-kit/__package__/assets/game_dev/screenshot-string-hop.png +0 -0
  63. package/.svelte-kit/__package__/assets/game_dev/screenshot-wet-ass-road.png +0 -0
  64. package/.svelte-kit/__package__/assets/temp/background-image.jpg +0 -0
  65. package/.svelte-kit/__package__/assets/temp/bitbucket-logo.png +0 -0
  66. package/.svelte-kit/__package__/assets/temp/github-logo.png +0 -0
  67. package/.svelte-kit/__package__/assets/temp/header-hep-cat.ogg +0 -0
  68. package/.svelte-kit/__package__/assets/temp/header-hep-cat.webm +0 -0
  69. package/.svelte-kit/__package__/assets/temp/header-pengi.webm +0 -0
  70. package/.svelte-kit/__package__/assets/temp/header-soulwork.ogg +0 -0
  71. package/.svelte-kit/__package__/assets/temp/header-soulwork.webm +0 -0
  72. package/.svelte-kit/output/client/_app/immutable/assets/0.B_SY1GJM.css +0 -0
  73. package/.svelte-kit/output/client/_app/immutable/assets/SeaweedTemplate.DNE9SdPz.css +0 -1
  74. package/.svelte-kit/output/client/_app/immutable/assets/_layout.B_SY1GJM.css +0 -0
  75. package/.svelte-kit/output/client/_app/immutable/chunks/entry.DjOrlFF-.js +0 -3
  76. package/.svelte-kit/output/client/_app/immutable/entry/start.D1fQHQ70.js +0 -1
  77. package/.svelte-kit/output/server/_app/immutable/assets/SeaweedTemplate.DNE9SdPz.css +0 -1
  78. package/.svelte-kit/output/server/_app/immutable/assets/_layout.B_SY1GJM.css +0 -0
  79. package/dist/assets/game_dev/footage-depreciation.webm +0 -0
  80. package/dist/assets/game_dev/footage-thinking-of-flowers.webm +0 -0
  81. package/dist/assets/game_dev/screenshot-game-jam-mama.png +0 -0
  82. package/dist/assets/game_dev/screenshot-string-hop.png +0 -0
  83. package/dist/assets/game_dev/screenshot-wet-ass-road.png +0 -0
  84. package/dist/assets/temp/background-image.jpg +0 -0
  85. package/dist/assets/temp/bitbucket-logo.png +0 -0
  86. package/dist/assets/temp/github-logo.png +0 -0
  87. package/dist/assets/temp/header-hep-cat.ogg +0 -0
  88. package/dist/assets/temp/header-hep-cat.webm +0 -0
  89. package/dist/assets/temp/header-pengi.webm +0 -0
  90. package/dist/assets/temp/header-soulwork.ogg +0 -0
  91. package/dist/assets/temp/header-soulwork.webm +0 -0
  92. package/src/lib/assets/game_dev/footage-depreciation.webm +0 -0
  93. package/src/lib/assets/game_dev/footage-thinking-of-flowers.webm +0 -0
  94. package/src/lib/assets/game_dev/screenshot-game-jam-mama.png +0 -0
  95. package/src/lib/assets/game_dev/screenshot-string-hop.png +0 -0
  96. package/src/lib/assets/game_dev/screenshot-wet-ass-road.png +0 -0
  97. package/src/lib/assets/temp/background-image.jpg +0 -0
  98. package/src/lib/assets/temp/bitbucket-logo.png +0 -0
  99. package/src/lib/assets/temp/github-logo.png +0 -0
  100. package/src/lib/assets/temp/header-hep-cat.ogg +0 -0
  101. package/src/lib/assets/temp/header-hep-cat.webm +0 -0
  102. package/src/lib/assets/temp/header-pengi.webm +0 -0
  103. package/src/lib/assets/temp/header-soulwork.ogg +0 -0
  104. package/src/lib/assets/temp/header-soulwork.webm +0 -0
@@ -1,3 +1,3 @@
1
- var q=Object.defineProperty;var G=(r,e,t)=>e in r?q(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var s=(r,e,t)=>(G(r,typeof e!="symbol"?e+"":e,t),t);import{w as b}from"./index.Duksw40K.js";import{a3 as $,w as H}from"./scheduler.DXwjFp5a.js";import{n as J,l as Q}from"./index.DcUpu3_h.js";import{c as Y}from"./index.CvmYViMX.js";const z=!0,V=z,K=()=>localStorage;var w=(r=>(r[r.Invisible=0]="Invisible",r[r.Visible=1]="Visible",r[r.Busy=2]="Busy",r))(w||{});function _(r){return Object.prototype.toString.call(r)==="[object Date]"}function y(r,e){if(r===e||r!==r)return()=>r;const t=typeof r;if(t!==typeof e||Array.isArray(r)!==Array.isArray(e))throw new Error("Cannot interpolate values of different type");if(Array.isArray(r)){const i=e.map((a,u)=>y(r[u],a));return a=>i.map(u=>u(a))}if(t==="object"){if(!r||!e)throw new Error("Object cannot be null");if(_(r)&&_(e)){r=r.getTime(),e=e.getTime();const u=e-r;return n=>new Date(r+n*u)}const i=Object.keys(e),a={};return i.forEach(u=>{a[u]=y(r[u],e[u])}),u=>{const n={};return i.forEach(f=>{n[f]=a[f](u)}),n}}if(t==="number"){const i=e-r;return a=>r+a*i}throw new Error(`Cannot interpolate ${t} values`)}function X(r,e={}){const t=b(r);let i,a=r;function u(n,f){if(r==null)return t.set(r=n),Promise.resolve();a=n;let m=i,x=!1,{delay:h=0,duration:g=400,easing:c=H,interpolate:v=y}=$($({},e),f);if(g===0)return m&&(m.abort(),m=null),t.set(r=a),Promise.resolve();const I=J()+h;let O;return i=Q(D=>{if(D<I)return!0;x||(O=v(r,n),typeof g=="function"&&(g=g(r,n)),x=!0),m&&(m.abort(),m=null);const E=D-I;return E>g?(t.set(r=n),!1):(t.set(r=O(c(E/g))),!0)}),i.promise}return{set:u,update:(n,f)=>u(n(a,r),f),subscribe:t.subscribe}}var k=(r=>(r.AresHappy="AresHappy",r.AresDisappointed="AresDisappointed",r.AresBlushing="AresBlushing",r.AresLetsGo="AresLetsGo",r.AresMad="AresMad",r.AresNeutral="AresNeutral",r.AresSlightlyMad="AresSlightlyMad",r.AresSurprised="AresSurprised",r.AresYay="AresYay",r))(k||{});const F=""+new URL("../assets/ares_happy.Cz9WhdwO.webp",import.meta.url).href,Z=""+new URL("../assets/ares_blushing.B6Q0SsBp.webp",import.meta.url).href,A=""+new URL("../assets/ares_disappointed.LOpkh7Q7.webp",import.meta.url).href,ee=""+new URL("../assets/ares_lets_go.BxjJjKUv.webp",import.meta.url).href,te=""+new URL("../assets/ares_mad.DofDLDmM.webp",import.meta.url).href,re=""+new URL("../assets/ares_neutral.Hp923t8N.webp",import.meta.url).href,se=""+new URL("../assets/ares_slightly_mad.DdwOp6J5.webp",import.meta.url).href,ie=""+new URL("../assets/ares_surprised.BxbNH_w8.webp",import.meta.url).href,ne=""+new URL("../assets/ares_yay.EM2SNr0e.webp",import.meta.url).href;var l=(r=>(r[r.Search=0]="Search",r[r.Ignore=1]="Ignore",r[r.Evaluated=2]="Evaluated",r[r.EvaluateNext=3]="EvaluateNext",r))(l||{});class j{constructor(){s(this,"ifModeStack",[l.Search]);s(this,"ignoreJumps",!1)}}var o=(r=>(r[r.Running=0]="Running",r[r.Success=1]="Success",r[r.Failure=2]="Failure",r))(o||{}),d=(r=>(r[r.Unary=0]="Unary",r[r.Binary=1]="Binary",r))(d||{});class S{process(e){const t=[];switch(this.getOperatorType()){case 0:t.unshift(e.initState.operandStack.pop());break;case 1:t.unshift(e.initState.operandStack.pop()),t.unshift(e.initState.operandStack.pop());break;default:console.error(`Unimplemented operator type: ${this.getOperatorType()}`);break}return this.doOperation(t,e),{nextState:e.initState,status:o.Success}}}class ae extends S{constructor(){super(...arguments);s(this,"doOperation",(t,i)=>{i.initState.operandStack.push(String(t[0]===t[1]))});s(this,"getOperatorType",()=>d.Binary);s(this,"getToken",()=>"==")}}class oe extends S{constructor(){super(...arguments);s(this,"doOperation",(t,i)=>{i.initState.operandStack.push(String(t[0]!==t[1]))});s(this,"getOperatorType",()=>d.Binary);s(this,"getToken",()=>"!=")}}class ue extends S{constructor(){super(...arguments);s(this,"doOperation",(t,i)=>{i.initState.operandStack.push(String(Number(t[0])>Number(t[1])))});s(this,"getOperatorType",()=>d.Binary);s(this,"getToken",()=>">")}}class ce extends S{constructor(){super(...arguments);s(this,"doOperation",(t,i)=>{i.initState.operandStack.push(String(Number(t[0])>=Number(t[1])))});s(this,"getOperatorType",()=>d.Binary);s(this,"getToken",()=>">=")}}class le extends S{constructor(){super(...arguments);s(this,"doOperation",(t,i)=>{i.initState.operandStack.push(String(Number(t[0])<Number(t[1])))});s(this,"getOperatorType",()=>d.Binary);s(this,"getToken",()=>"<")}}class pe extends S{constructor(){super(...arguments);s(this,"doOperation",(t,i)=>{i.initState.operandStack.push(String(Number(t[0])<=Number(t[1])))});s(this,"getOperatorType",()=>d.Binary);s(this,"getToken",()=>"<=")}}class he{constructor(){s(this,"peek",e=>e[e.length-1]);s(this,"removeQuotes",e=>e.replace(/^"/,"").replace(/"$/,""));s(this,"simplifyToken",e=>{if(e[0]=="$"){const t=localStorage.getItem(e);return t||(console.error(`Value obtained in local storage false: ${e}`),"")}return p.removeQuotes(e)});s(this,"isTrue",e=>e.trim().toLowerCase()==="true");s(this,"isFalse",e=>e.trim().toLowerCase()==="false")}}const p=new he;class de extends S{constructor(){super(...arguments);s(this,"doOperation",(t,i)=>{i.initState.operandStack.push(String(!p.isTrue(t[0])))});s(this,"getOperatorType",()=>d.Unary);s(this,"getToken",()=>"!")}}class Se extends S{constructor(){super(...arguments);s(this,"doOperation",(t,i)=>{i.initState.operandStack.push(String(p.isTrue(t[0])&&p.isTrue(t[1])))});s(this,"getOperatorType",()=>d.Binary);s(this,"getToken",()=>"&&")}}class fe extends S{constructor(){super(...arguments);s(this,"doOperation",(t,i)=>{i.initState.operandStack.push(String(p.isTrue(t[0])||p.isTrue(t[1])))});s(this,"getOperatorType",()=>d.Binary);s(this,"getToken",()=>"||")}}class me extends S{constructor(){super(...arguments);s(this,"doOperation",(t,i)=>{const a=p.isTrue(t[0]),u=p.isTrue(t[1]);i.initState.operandStack.push(String(!(a&&u||a||u)))});s(this,"getOperatorType",()=>d.Binary);s(this,"getToken",()=>"^")}}class ge extends S{constructor(){super(...arguments);s(this,"doOperation",(t,i)=>{i.initState.operandStack.push(String(Number(t[0])+Number(t[1])))});s(this,"getOperatorType",()=>d.Binary);s(this,"getToken",()=>"+")}}class ke extends S{constructor(){super(...arguments);s(this,"doOperation",(t,i)=>{i.initState.operandStack.push(String(Number(t[0])-Number(t[1])))});s(this,"getOperatorType",()=>d.Binary);s(this,"getToken",()=>"-")}}class xe extends S{constructor(){super(...arguments);s(this,"doOperation",(t,i)=>{i.initState.operandStack.push(String(Number(t[0])*Number(t[1])))});s(this,"getOperatorType",()=>d.Binary);s(this,"getToken",()=>"*")}}class Me extends S{constructor(){super(...arguments);s(this,"doOperation",(t,i)=>{i.initState.operandStack.push(String(Number(t[0])/Number(t[1])))});s(this,"getOperatorType",()=>d.Binary);s(this,"getToken",()=>"/")}}class we extends S{constructor(){super(...arguments);s(this,"doOperation",(t,i)=>{i.initState.operandStack.push(String(Number(t[0])%Number(t[1])))});s(this,"getOperatorType",()=>d.Binary);s(this,"getToken",()=>"%")}}class be{constructor(){s(this,"_operatorLogicMap",new Map);s(this,"get",e=>this._operatorLogicMap.get(e));s(this,"exists",e=>this.get(e)!==void 0);[new ae,new oe,new ue,new ce,new le,new pe,new de,new Se,new fe,new me,new ge,new ke,new xe,new Me,new we].forEach(e=>{this._operatorLogicMap.set(e.getToken(),e)})}}const B=new be;class Ne{process(e){if(!B.exists(e.token))return{nextState:e.initState,status:o.Failure};const t=B.get(e.token);return t===void 0?(console.error(`Unimplemented operator: ${e.token}`),{nextState:e.initState,status:o.Failure}):(t.process(e),{nextState:e.initState,status:o.Success})}}class ye{process(e){return e.initState.operandStack.push(p.simplifyToken(e.token)),{nextState:e.initState,status:o.Success}}}class W{constructor(e){s(this,"nodeList");this.nodeList=e}process(e){let t=this.defaultResult();for(const i of this.nodeList){const a=i.process(e);if(a.status!==o.Failure){t=a;break}}return t}}class Te extends W{constructor(t){super(t);s(this,"defaultResult",()=>({nextState:{operandStack:[]},status:o.Failure}))}}class T{process(e){const t=e.initState.operandStack.slice(e.initState.operandStack.length-this.getArgumentCount(),e.initState.operandStack.length);return e.initState.operandStack=e.initState.operandStack.slice(0,e.initState.operandStack.length-this.getArgumentCount()),t.length!==this.getArgumentCount()?(console.error(`Insufficient operands/arguments found for command ${this.getToken()}`),console.error(`Arguments found instead: ${t}`),console.error(`Error occurred at token: ${e.token}`)):this.doOperation(t,e),{nextState:e.initState,status:o.Success}}}class Ce extends T{constructor(){super(...arguments);s(this,"getRandomInt",(t,i)=>(t=Math.ceil(t),i=Math.floor(i),Math.floor(Math.random()*(i-t+1))+t));s(this,"doOperation",(t,i)=>{i.initState.operandStack.push(String(this.getRandomInt(Number(t[0]),Number(t[1]))))});s(this,"getArgumentCount",()=>2);s(this,"getToken",()=>"#random_range")}}class P extends T{constructor(){super(...arguments);s(this,"doOperation",(t,i)=>{const a=Number(M.getItem(`+${t[0]}`));isNaN(a)||a===0?i.initState.operandStack.push("0"):i.initState.operandStack.push(String(a))});s(this,"getArgumentCount",()=>1);s(this,"getToken",()=>"#visited_count")}}class Le extends T{constructor(){super(...arguments);s(this,"visitedCountCommand",new P);s(this,"doOperation",(t,i)=>{this.visitedCountCommand.process(i);const a=Number(i.initState.operandStack.pop());isNaN(a)||a===0?i.initState.operandStack.push("false"):i.initState.operandStack.push("true")});s(this,"getArgumentCount",()=>0);s(this,"getToken",()=>"#visited")}}class ve{constructor(){s(this,"_commandMap",new Map);s(this,"get",e=>this._commandMap.get(e));s(this,"exists",e=>this.get(e)!==void 0);[new Ce,new P,new Le].forEach(e=>{this._commandMap.set(e.getToken(),e)})}}const Ie=new ve;class Oe{process(e){const t=Ie.get(e.token);return t===void 0?(e.token.startsWith("#")&&console.error(`Unimplemented command: ${e.token}`),{nextState:e.initState,status:o.Failure}):(t.process(e),{nextState:e.initState,status:o.Success})}}class De{constructor(){s(this,"evaluatorTree",new Te([new Ne,new Oe,new ye]));s(this,"isNumeric",e=>!isNaN(e)&&!isNaN(parseFloat(e)));s(this,"getPrecedence",e=>{switch(e){case"&&":case"||":case"^":return 1;case"==":case"!=":return 2;case"<":case">":case">=":case"<=":return 3;case"+":case"-":return 4;case"*":case"/":case"%":return 3;case"!":return 4;case"(":case")":return 0;default:return-1}});s(this,"evaluateFreeform",(e,t)=>{const i=[],a=e.split("//")[0].trim().slice(t===""?0:t.trim().length+1,e.length-2),u="+-*/%!<>=&|^";let n="",f=!1,m=!1;for(const c of a)f?(n+=c,c==='"'&&(i.push(n),n="",f=!1)):m?u.includes(c)?n+=c:"()".includes(c)?(n!==""&&i.push(n),i.push(c),n="",m=!1):(m=!1,i.push(n),c!==" "?n=c:n=""):c===","||c===" "?n!==""&&(i.push(n),n=""):c==='"'?(n+=c,f=!0):u.includes(c)?(n!==""&&i.push(n),n=c,m=!0):"()".includes(c)?(n!==""&&(n[0]!=="$"&&n[0]!=='"'&&!this.isNumeric(n[0])&&(n=`#${n}`),i.push(n)),i.push(c),n=""):n+=c;n!==""&&i.push(n);const x=[],h=[];for(i.forEach(c=>{if(c.startsWith("#"))h.push(c);else if(c==="(")h.push("(");else if(c===")"){for(;p.peek(h)!=="(";){if(h.length===0)throw console.error("Assumption was made in postfix conversion that stack will not be empty! It was wrong!"),new Error("Wrong postfix conversion!");x.push(h.pop())}h.pop(),h.length>0&&p.peek(h).startsWith("#")&&x.push(h.pop())}else if([-1,5].includes(this.getPrecedence(c)))x.push(c);else{for(;h.length>0&&this.getPrecedence(p.peek(h))>=this.getPrecedence(c);)x.push(h.pop());h.push(c)}});h.length>0;)x.push(h.pop());let g={operandStack:[]};return x.forEach(c=>{g=this.evaluatorTree.process({initState:g,token:c}).nextState}),g.operandStack});s(this,"evaluate",(e,t)=>String(p.peek(this.evaluateFreeform(e,t)))==="true")}}const C=new De;class Ee{process(e){if(!e.line.startsWith("<<if"))return{renderedLine:"",nextState:e.initState,status:o.Failure};const t=p.peek(e.initState.ifModeStack);return[l.EvaluateNext,l.Ignore].includes(t)?(console.log("Skipping if node because"),e.initState.ifModeStack.push(l.Ignore),{renderedLine:"",nextState:e.initState,status:o.Success}):(C.evaluate(e.line,"<<if")?e.initState.ifModeStack.push(l.Evaluated):e.initState.ifModeStack.push(l.EvaluateNext),{renderedLine:"",nextState:e.initState,status:o.Success})}}class $e{process(e){return e.line.startsWith("<<endif>>")?(e.initState.ifModeStack.pop(),{nextState:e.initState,renderedLine:"",status:o.Success}):{nextState:e.initState,renderedLine:"",status:o.Failure}}}class _e{process(e){if(!e.line.startsWith("<<else>>"))return{nextState:e.initState,renderedLine:"",status:o.Failure};switch(p.peek(e.initState.ifModeStack)){case l.Search:console.error("Syntax error found in yarn dialog!"),console.error(`Check out line ${e.lineIndex+1}: ${e.line}`);break;case l.Ignore:break;case l.Evaluated:e.initState.ifModeStack.pop(),e.initState.ifModeStack.push(l.Ignore);break;case l.EvaluateNext:e.initState.ifModeStack.pop(),e.initState.ifModeStack.push(l.Evaluated);break;default:console.error("Unimplemented if state!"),console.error(`Check out line ${e.lineIndex+1}: ${e.line}`);break}return{nextState:e.initState,renderedLine:"",status:o.Success}}}class Fe{process(e){if(!e.line.startsWith("<<elseif"))return{nextState:e.initState,renderedLine:"",status:o.Failure};switch(p.peek(e.initState.ifModeStack)){case l.Search:console.error("Syntax error found in yarn dialog!"),console.error(`Check out line ${e.lineIndex+1}: ${e.line}`);break;case l.Ignore:break;case l.Evaluated:e.initState.ifModeStack.pop(),e.initState.ifModeStack.push(l.Ignore);break;case l.EvaluateNext:C.evaluate(e.line,"<<elseif")&&(e.initState.ifModeStack.pop(),e.initState.ifModeStack.push(l.Evaluated));break;default:console.error("Unimplemented if state!"),console.error(`Check out line ${e.lineIndex+1}: ${e.line}`);break}return{nextState:e.initState,renderedLine:"",status:o.Success}}}class L{process(e){if(!e.line.startsWith("<<set"))return{nextState:e.initState,renderedLine:"",status:o.Failure};const t=e.line.split("="),i=t[0].slice(6).trim();t.shift();const a=t.join("=").trim(),u=C.evaluateFreeform(a,"");return M.setItem(i,p.peek(u)),{nextState:e.initState,renderedLine:"",status:o.Success}}}class Be{process(e){const t=p.peek(e.initState.ifModeStack);return[l.Ignore,l.EvaluateNext].includes(t)?{nextState:e.initState,renderedLine:"",status:o.Success}:{nextState:e.initState,renderedLine:"",status:o.Failure}}}class Re{process(e){const t=e.line.split("{$").map((i,a)=>a==0?i:i.split("}").map((u,n)=>{if(n==0&&V){const f=localStorage.getItem(`$${u}`);if(f!==null)return f;console.warn(`Null variable in yarn: ${u}. Make sure that all variables were set before using them.`)}return u}).join("")).join("");return{nextState:e.initState,renderedLine:t,status:o.Success}}}class Ue extends W{constructor(t){super(t);s(this,"defaultResult",()=>({nextState:new j,renderedLine:"",status:o.Failure}))}}class Ve{process(e){return e.line.startsWith("//")?{renderedLine:"",nextState:e.initState,status:o.Success}:{renderedLine:"",nextState:e.initState,status:o.Failure}}}class je{constructor(){s(this,"setVariableNode",new L)}process(e){if(!e.line.startsWith("<<declare"))return{renderedLine:"",nextState:e.initState,status:o.Failure};const t=e.line.split("="),i=t[0].slice(10).trim();if(localStorage.getItem(i)!==null)return{renderedLine:"",nextState:e.initState,status:o.Success};t.shift();const a=t.join("=").split(" as ");a.pop();const u=a.join(" as ");return{nextState:this.setVariableNode.process({initState:e.initState,line:`<<set ${i} = ${u}>>`,lineIndex:e.lineIndex}).nextState,renderedLine:"",status:o.Success}}}class We{constructor(){s(this,"setVariableNode",new L)}process(e){if(!e.line.startsWith("<<jump"))return{renderedLine:"",nextState:e.initState,status:o.Failure};if(e.initState.ignoreJumps)return{nextState:e.initState,renderedLine:"",status:o.Success};const t=e.line.slice(7,e.line.length-2).replace(/^\{/,"").replace(/}$/,""),i=U.dialogMessageMap.get(p.simplifyToken(t));return i!==void 0?U.setDialogChoice(i):console.error(`Unknown jump node at line ${e.lineIndex+1}: ${t} or ${p.simplifyToken(t)}`),{nextState:e.initState,renderedLine:"",status:o.Success}}}class Pe{process(e){return e.line.startsWith("// ignore jumps")?(e.initState.ignoreJumps=!0,{renderedLine:"",nextState:e.initState,status:o.Success}):{renderedLine:"",nextState:e.initState,status:o.Failure}}}class qe{process(e){if(!e.line.startsWith("<<unvisit")||!V)return{renderedLine:"",nextState:e.initState,status:o.Failure};const i=`+${e.line.slice(10,e.line.length-2).replace(/^\{/,"").replace(/}$/,"")}`;return M.removeItem(i),{nextState:e.initState,renderedLine:"",status:o.Success}}}class Ge{constructor(){s(this,"processingTree",new Ue([new Pe,new Ve,new $e,new Fe,new _e,new Ee,new Be,new L,new je,new We,new qe,new Re]));s(this,"processDialog",e=>{let t=new j;return e.textContent.trim().split(`
1
+ var q=Object.defineProperty;var G=(r,e,t)=>e in r?q(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var s=(r,e,t)=>(G(r,typeof e!="symbol"?e+"":e,t),t);import{w as b}from"./index.DM9YwQfI.js";import{a3 as $,w as H}from"./scheduler.DJdG0Qxb.js";import{n as J,l as Q}from"./index.BgUXYai5.js";import{c as Y}from"./index.CvmYViMX.js";const z=!0,V=z,K=()=>localStorage;var w=(r=>(r[r.Invisible=0]="Invisible",r[r.Visible=1]="Visible",r[r.Busy=2]="Busy",r))(w||{});function _(r){return Object.prototype.toString.call(r)==="[object Date]"}function y(r,e){if(r===e||r!==r)return()=>r;const t=typeof r;if(t!==typeof e||Array.isArray(r)!==Array.isArray(e))throw new Error("Cannot interpolate values of different type");if(Array.isArray(r)){const i=e.map((a,u)=>y(r[u],a));return a=>i.map(u=>u(a))}if(t==="object"){if(!r||!e)throw new Error("Object cannot be null");if(_(r)&&_(e)){r=r.getTime(),e=e.getTime();const u=e-r;return n=>new Date(r+n*u)}const i=Object.keys(e),a={};return i.forEach(u=>{a[u]=y(r[u],e[u])}),u=>{const n={};return i.forEach(f=>{n[f]=a[f](u)}),n}}if(t==="number"){const i=e-r;return a=>r+a*i}throw new Error(`Cannot interpolate ${t} values`)}function X(r,e={}){const t=b(r);let i,a=r;function u(n,f){if(r==null)return t.set(r=n),Promise.resolve();a=n;let m=i,x=!1,{delay:h=0,duration:g=400,easing:c=H,interpolate:v=y}=$($({},e),f);if(g===0)return m&&(m.abort(),m=null),t.set(r=a),Promise.resolve();const I=J()+h;let O;return i=Q(D=>{if(D<I)return!0;x||(O=v(r,n),typeof g=="function"&&(g=g(r,n)),x=!0),m&&(m.abort(),m=null);const E=D-I;return E>g?(t.set(r=n),!1):(t.set(r=O(c(E/g))),!0)}),i.promise}return{set:u,update:(n,f)=>u(n(a,r),f),subscribe:t.subscribe}}var k=(r=>(r.AresHappy="AresHappy",r.AresDisappointed="AresDisappointed",r.AresBlushing="AresBlushing",r.AresLetsGo="AresLetsGo",r.AresMad="AresMad",r.AresNeutral="AresNeutral",r.AresSlightlyMad="AresSlightlyMad",r.AresSurprised="AresSurprised",r.AresYay="AresYay",r))(k||{});const F=""+new URL("../assets/ares_happy.Cz9WhdwO.webp",import.meta.url).href,Z=""+new URL("../assets/ares_blushing.B6Q0SsBp.webp",import.meta.url).href,A=""+new URL("../assets/ares_disappointed.LOpkh7Q7.webp",import.meta.url).href,ee=""+new URL("../assets/ares_lets_go.BxjJjKUv.webp",import.meta.url).href,te=""+new URL("../assets/ares_mad.DofDLDmM.webp",import.meta.url).href,re=""+new URL("../assets/ares_neutral.Hp923t8N.webp",import.meta.url).href,se=""+new URL("../assets/ares_slightly_mad.DdwOp6J5.webp",import.meta.url).href,ie=""+new URL("../assets/ares_surprised.BxbNH_w8.webp",import.meta.url).href,ne=""+new URL("../assets/ares_yay.EM2SNr0e.webp",import.meta.url).href;var l=(r=>(r[r.Search=0]="Search",r[r.Ignore=1]="Ignore",r[r.Evaluated=2]="Evaluated",r[r.EvaluateNext=3]="EvaluateNext",r))(l||{});class j{constructor(){s(this,"ifModeStack",[l.Search]);s(this,"ignoreJumps",!1)}}var o=(r=>(r[r.Running=0]="Running",r[r.Success=1]="Success",r[r.Failure=2]="Failure",r))(o||{}),d=(r=>(r[r.Unary=0]="Unary",r[r.Binary=1]="Binary",r))(d||{});class S{process(e){const t=[];switch(this.getOperatorType()){case 0:t.unshift(e.initState.operandStack.pop());break;case 1:t.unshift(e.initState.operandStack.pop()),t.unshift(e.initState.operandStack.pop());break;default:console.error(`Unimplemented operator type: ${this.getOperatorType()}`);break}return this.doOperation(t,e),{nextState:e.initState,status:o.Success}}}class ae extends S{constructor(){super(...arguments);s(this,"doOperation",(t,i)=>{i.initState.operandStack.push(String(t[0]===t[1]))});s(this,"getOperatorType",()=>d.Binary);s(this,"getToken",()=>"==")}}class oe extends S{constructor(){super(...arguments);s(this,"doOperation",(t,i)=>{i.initState.operandStack.push(String(t[0]!==t[1]))});s(this,"getOperatorType",()=>d.Binary);s(this,"getToken",()=>"!=")}}class ue extends S{constructor(){super(...arguments);s(this,"doOperation",(t,i)=>{i.initState.operandStack.push(String(Number(t[0])>Number(t[1])))});s(this,"getOperatorType",()=>d.Binary);s(this,"getToken",()=>">")}}class ce extends S{constructor(){super(...arguments);s(this,"doOperation",(t,i)=>{i.initState.operandStack.push(String(Number(t[0])>=Number(t[1])))});s(this,"getOperatorType",()=>d.Binary);s(this,"getToken",()=>">=")}}class le extends S{constructor(){super(...arguments);s(this,"doOperation",(t,i)=>{i.initState.operandStack.push(String(Number(t[0])<Number(t[1])))});s(this,"getOperatorType",()=>d.Binary);s(this,"getToken",()=>"<")}}class pe extends S{constructor(){super(...arguments);s(this,"doOperation",(t,i)=>{i.initState.operandStack.push(String(Number(t[0])<=Number(t[1])))});s(this,"getOperatorType",()=>d.Binary);s(this,"getToken",()=>"<=")}}class he{constructor(){s(this,"peek",e=>e[e.length-1]);s(this,"removeQuotes",e=>e.replace(/^"/,"").replace(/"$/,""));s(this,"simplifyToken",e=>{if(e[0]=="$"){const t=localStorage.getItem(e);return t||(console.error(`Value obtained in local storage false: ${e}`),"")}return p.removeQuotes(e)});s(this,"isTrue",e=>e.trim().toLowerCase()==="true");s(this,"isFalse",e=>e.trim().toLowerCase()==="false")}}const p=new he;class de extends S{constructor(){super(...arguments);s(this,"doOperation",(t,i)=>{i.initState.operandStack.push(String(!p.isTrue(t[0])))});s(this,"getOperatorType",()=>d.Unary);s(this,"getToken",()=>"!")}}class Se extends S{constructor(){super(...arguments);s(this,"doOperation",(t,i)=>{i.initState.operandStack.push(String(p.isTrue(t[0])&&p.isTrue(t[1])))});s(this,"getOperatorType",()=>d.Binary);s(this,"getToken",()=>"&&")}}class fe extends S{constructor(){super(...arguments);s(this,"doOperation",(t,i)=>{i.initState.operandStack.push(String(p.isTrue(t[0])||p.isTrue(t[1])))});s(this,"getOperatorType",()=>d.Binary);s(this,"getToken",()=>"||")}}class me extends S{constructor(){super(...arguments);s(this,"doOperation",(t,i)=>{const a=p.isTrue(t[0]),u=p.isTrue(t[1]);i.initState.operandStack.push(String(!(a&&u||a||u)))});s(this,"getOperatorType",()=>d.Binary);s(this,"getToken",()=>"^")}}class ge extends S{constructor(){super(...arguments);s(this,"doOperation",(t,i)=>{i.initState.operandStack.push(String(Number(t[0])+Number(t[1])))});s(this,"getOperatorType",()=>d.Binary);s(this,"getToken",()=>"+")}}class ke extends S{constructor(){super(...arguments);s(this,"doOperation",(t,i)=>{i.initState.operandStack.push(String(Number(t[0])-Number(t[1])))});s(this,"getOperatorType",()=>d.Binary);s(this,"getToken",()=>"-")}}class xe extends S{constructor(){super(...arguments);s(this,"doOperation",(t,i)=>{i.initState.operandStack.push(String(Number(t[0])*Number(t[1])))});s(this,"getOperatorType",()=>d.Binary);s(this,"getToken",()=>"*")}}class Me extends S{constructor(){super(...arguments);s(this,"doOperation",(t,i)=>{i.initState.operandStack.push(String(Number(t[0])/Number(t[1])))});s(this,"getOperatorType",()=>d.Binary);s(this,"getToken",()=>"/")}}class we extends S{constructor(){super(...arguments);s(this,"doOperation",(t,i)=>{i.initState.operandStack.push(String(Number(t[0])%Number(t[1])))});s(this,"getOperatorType",()=>d.Binary);s(this,"getToken",()=>"%")}}class be{constructor(){s(this,"_operatorLogicMap",new Map);s(this,"get",e=>this._operatorLogicMap.get(e));s(this,"exists",e=>this.get(e)!==void 0);[new ae,new oe,new ue,new ce,new le,new pe,new de,new Se,new fe,new me,new ge,new ke,new xe,new Me,new we].forEach(e=>{this._operatorLogicMap.set(e.getToken(),e)})}}const B=new be;class Ne{process(e){if(!B.exists(e.token))return{nextState:e.initState,status:o.Failure};const t=B.get(e.token);return t===void 0?(console.error(`Unimplemented operator: ${e.token}`),{nextState:e.initState,status:o.Failure}):(t.process(e),{nextState:e.initState,status:o.Success})}}class ye{process(e){return e.initState.operandStack.push(p.simplifyToken(e.token)),{nextState:e.initState,status:o.Success}}}class W{constructor(e){s(this,"nodeList");this.nodeList=e}process(e){let t=this.defaultResult();for(const i of this.nodeList){const a=i.process(e);if(a.status!==o.Failure){t=a;break}}return t}}class Te extends W{constructor(t){super(t);s(this,"defaultResult",()=>({nextState:{operandStack:[]},status:o.Failure}))}}class T{process(e){const t=e.initState.operandStack.slice(e.initState.operandStack.length-this.getArgumentCount(),e.initState.operandStack.length);return e.initState.operandStack=e.initState.operandStack.slice(0,e.initState.operandStack.length-this.getArgumentCount()),t.length!==this.getArgumentCount()?(console.error(`Insufficient operands/arguments found for command ${this.getToken()}`),console.error(`Arguments found instead: ${t}`),console.error(`Error occurred at token: ${e.token}`)):this.doOperation(t,e),{nextState:e.initState,status:o.Success}}}class Ce extends T{constructor(){super(...arguments);s(this,"getRandomInt",(t,i)=>(t=Math.ceil(t),i=Math.floor(i),Math.floor(Math.random()*(i-t+1))+t));s(this,"doOperation",(t,i)=>{i.initState.operandStack.push(String(this.getRandomInt(Number(t[0]),Number(t[1]))))});s(this,"getArgumentCount",()=>2);s(this,"getToken",()=>"#random_range")}}class P extends T{constructor(){super(...arguments);s(this,"doOperation",(t,i)=>{const a=Number(M.getItem(`+${t[0]}`));isNaN(a)||a===0?i.initState.operandStack.push("0"):i.initState.operandStack.push(String(a))});s(this,"getArgumentCount",()=>1);s(this,"getToken",()=>"#visited_count")}}class Le extends T{constructor(){super(...arguments);s(this,"visitedCountCommand",new P);s(this,"doOperation",(t,i)=>{this.visitedCountCommand.process(i);const a=Number(i.initState.operandStack.pop());isNaN(a)||a===0?i.initState.operandStack.push("false"):i.initState.operandStack.push("true")});s(this,"getArgumentCount",()=>0);s(this,"getToken",()=>"#visited")}}class ve{constructor(){s(this,"_commandMap",new Map);s(this,"get",e=>this._commandMap.get(e));s(this,"exists",e=>this.get(e)!==void 0);[new Ce,new P,new Le].forEach(e=>{this._commandMap.set(e.getToken(),e)})}}const Ie=new ve;class Oe{process(e){const t=Ie.get(e.token);return t===void 0?(e.token.startsWith("#")&&console.error(`Unimplemented command: ${e.token}`),{nextState:e.initState,status:o.Failure}):(t.process(e),{nextState:e.initState,status:o.Success})}}class De{constructor(){s(this,"evaluatorTree",new Te([new Ne,new Oe,new ye]));s(this,"isNumeric",e=>!isNaN(e)&&!isNaN(parseFloat(e)));s(this,"getPrecedence",e=>{switch(e){case"&&":case"||":case"^":return 1;case"==":case"!=":return 2;case"<":case">":case">=":case"<=":return 3;case"+":case"-":return 4;case"*":case"/":case"%":return 3;case"!":return 4;case"(":case")":return 0;default:return-1}});s(this,"evaluateFreeform",(e,t)=>{const i=[],a=e.split("//")[0].trim().slice(t===""?0:t.trim().length+1,e.length-2),u="+-*/%!<>=&|^";let n="",f=!1,m=!1;for(const c of a)f?(n+=c,c==='"'&&(i.push(n),n="",f=!1)):m?u.includes(c)?n+=c:"()".includes(c)?(n!==""&&i.push(n),i.push(c),n="",m=!1):(m=!1,i.push(n),c!==" "?n=c:n=""):c===","||c===" "?n!==""&&(i.push(n),n=""):c==='"'?(n+=c,f=!0):u.includes(c)?(n!==""&&i.push(n),n=c,m=!0):"()".includes(c)?(n!==""&&(n[0]!=="$"&&n[0]!=='"'&&!this.isNumeric(n[0])&&(n=`#${n}`),i.push(n)),i.push(c),n=""):n+=c;n!==""&&i.push(n);const x=[],h=[];for(i.forEach(c=>{if(c.startsWith("#"))h.push(c);else if(c==="(")h.push("(");else if(c===")"){for(;p.peek(h)!=="(";){if(h.length===0)throw console.error("Assumption was made in postfix conversion that stack will not be empty! It was wrong!"),new Error("Wrong postfix conversion!");x.push(h.pop())}h.pop(),h.length>0&&p.peek(h).startsWith("#")&&x.push(h.pop())}else if([-1,5].includes(this.getPrecedence(c)))x.push(c);else{for(;h.length>0&&this.getPrecedence(p.peek(h))>=this.getPrecedence(c);)x.push(h.pop());h.push(c)}});h.length>0;)x.push(h.pop());let g={operandStack:[]};return x.forEach(c=>{g=this.evaluatorTree.process({initState:g,token:c}).nextState}),g.operandStack});s(this,"evaluate",(e,t)=>String(p.peek(this.evaluateFreeform(e,t)))==="true")}}const C=new De;class Ee{process(e){if(!e.line.startsWith("<<if"))return{renderedLine:"",nextState:e.initState,status:o.Failure};const t=p.peek(e.initState.ifModeStack);return[l.EvaluateNext,l.Ignore].includes(t)?(console.log("Skipping if node because"),e.initState.ifModeStack.push(l.Ignore),{renderedLine:"",nextState:e.initState,status:o.Success}):(C.evaluate(e.line,"<<if")?e.initState.ifModeStack.push(l.Evaluated):e.initState.ifModeStack.push(l.EvaluateNext),{renderedLine:"",nextState:e.initState,status:o.Success})}}class $e{process(e){return e.line.startsWith("<<endif>>")?(e.initState.ifModeStack.pop(),{nextState:e.initState,renderedLine:"",status:o.Success}):{nextState:e.initState,renderedLine:"",status:o.Failure}}}class _e{process(e){if(!e.line.startsWith("<<else>>"))return{nextState:e.initState,renderedLine:"",status:o.Failure};switch(p.peek(e.initState.ifModeStack)){case l.Search:console.error("Syntax error found in yarn dialog!"),console.error(`Check out line ${e.lineIndex+1}: ${e.line}`);break;case l.Ignore:break;case l.Evaluated:e.initState.ifModeStack.pop(),e.initState.ifModeStack.push(l.Ignore);break;case l.EvaluateNext:e.initState.ifModeStack.pop(),e.initState.ifModeStack.push(l.Evaluated);break;default:console.error("Unimplemented if state!"),console.error(`Check out line ${e.lineIndex+1}: ${e.line}`);break}return{nextState:e.initState,renderedLine:"",status:o.Success}}}class Fe{process(e){if(!e.line.startsWith("<<elseif"))return{nextState:e.initState,renderedLine:"",status:o.Failure};switch(p.peek(e.initState.ifModeStack)){case l.Search:console.error("Syntax error found in yarn dialog!"),console.error(`Check out line ${e.lineIndex+1}: ${e.line}`);break;case l.Ignore:break;case l.Evaluated:e.initState.ifModeStack.pop(),e.initState.ifModeStack.push(l.Ignore);break;case l.EvaluateNext:C.evaluate(e.line,"<<elseif")&&(e.initState.ifModeStack.pop(),e.initState.ifModeStack.push(l.Evaluated));break;default:console.error("Unimplemented if state!"),console.error(`Check out line ${e.lineIndex+1}: ${e.line}`);break}return{nextState:e.initState,renderedLine:"",status:o.Success}}}class L{process(e){if(!e.line.startsWith("<<set"))return{nextState:e.initState,renderedLine:"",status:o.Failure};const t=e.line.split("="),i=t[0].slice(6).trim();t.shift();const a=t.join("=").trim(),u=C.evaluateFreeform(a,"");return M.setItem(i,p.peek(u)),{nextState:e.initState,renderedLine:"",status:o.Success}}}class Be{process(e){const t=p.peek(e.initState.ifModeStack);return[l.Ignore,l.EvaluateNext].includes(t)?{nextState:e.initState,renderedLine:"",status:o.Success}:{nextState:e.initState,renderedLine:"",status:o.Failure}}}class Re{process(e){const t=e.line.split("{$").map((i,a)=>a==0?i:i.split("}").map((u,n)=>{if(n==0&&V){const f=localStorage.getItem(`$${u}`);if(f!==null)return f;console.warn(`Null variable in yarn: ${u}. Make sure that all variables were set before using them.`)}return u}).join("")).join("");return{nextState:e.initState,renderedLine:t,status:o.Success}}}class Ue extends W{constructor(t){super(t);s(this,"defaultResult",()=>({nextState:new j,renderedLine:"",status:o.Failure}))}}class Ve{process(e){return e.line.startsWith("//")?{renderedLine:"",nextState:e.initState,status:o.Success}:{renderedLine:"",nextState:e.initState,status:o.Failure}}}class je{constructor(){s(this,"setVariableNode",new L)}process(e){if(!e.line.startsWith("<<declare"))return{renderedLine:"",nextState:e.initState,status:o.Failure};const t=e.line.split("="),i=t[0].slice(10).trim();if(localStorage.getItem(i)!==null)return{renderedLine:"",nextState:e.initState,status:o.Success};t.shift();const a=t.join("=").split(" as ");a.pop();const u=a.join(" as ");return{nextState:this.setVariableNode.process({initState:e.initState,line:`<<set ${i} = ${u}>>`,lineIndex:e.lineIndex}).nextState,renderedLine:"",status:o.Success}}}class We{constructor(){s(this,"setVariableNode",new L)}process(e){if(!e.line.startsWith("<<jump"))return{renderedLine:"",nextState:e.initState,status:o.Failure};if(e.initState.ignoreJumps)return{nextState:e.initState,renderedLine:"",status:o.Success};const t=e.line.slice(7,e.line.length-2).replace(/^\{/,"").replace(/}$/,""),i=U.dialogMessageMap.get(p.simplifyToken(t));return i!==void 0?U.setDialogChoice(i):console.error(`Unknown jump node at line ${e.lineIndex+1}: ${t} or ${p.simplifyToken(t)}`),{nextState:e.initState,renderedLine:"",status:o.Success}}}class Pe{process(e){return e.line.startsWith("// ignore jumps")?(e.initState.ignoreJumps=!0,{renderedLine:"",nextState:e.initState,status:o.Success}):{renderedLine:"",nextState:e.initState,status:o.Failure}}}class qe{process(e){if(!e.line.startsWith("<<unvisit")||!V)return{renderedLine:"",nextState:e.initState,status:o.Failure};const i=`+${e.line.slice(10,e.line.length-2).replace(/^\{/,"").replace(/}$/,"")}`;return M.removeItem(i),{nextState:e.initState,renderedLine:"",status:o.Success}}}class Ge{constructor(){s(this,"processingTree",new Ue([new Pe,new Ve,new $e,new Fe,new _e,new Ee,new Be,new L,new je,new We,new qe,new Re]));s(this,"processDialog",e=>{let t=new j;return e.textContent.trim().split(`
2
2
  `).map((i,a)=>{const u=this.processingTree.process({initState:t,line:i.trim(),lineIndex:a});return t=u.nextState,u.renderedLine}).join(`
3
3
  `)})}}class He{constructor(){s(this,"dialogMessageMap",new Map);s(this,"dialogMessageList",[]);s(this,"fullCurrentMessage",N[0].textContent);s(this,"currentMessageMeta",N[0]);s(this,"currentMessage",b(""));s(this,"currentIndex",0);s(this,"previousTimestamp",0);s(this,"isDoneTransition",!1);s(this,"currentPortrait",b());s(this,"portraitMap",new Map);s(this,"currentState",w.Visible);s(this,"hidePercent",X(100,{duration:400,easing:Y}));s(this,"skipNextActiveTime",0);s(this,"dialogProcessor",new Ge);s(this,"_setDialogChoiceQueue",[]);s(this,"_setDialogChoiceMutex",!1);s(this,"onSetDialogListeners",[]);s(this,"skipAnimation",()=>{this.previousTimestamp>this.skipNextActiveTime&&this.currentState==w.Visible&&!this.isDoneTransition&&(this.currentIndex=this.fullCurrentMessage.length-1,this.currentMessage.update(()=>this.fullCurrentMessage.slice(0,this.currentIndex)))});s(this,"enableDialog",e=>{R.update(()=>e)});s(this,"setDialogTree",e=>{this.dialogMessageList=e,this.dialogMessageMap.clear(),e.map(t=>{t.dialogId&&this.dialogMessageMap.set(t.dialogId,t)}),this.portraitMap.size==0&&(this.portraitMap.set(k.AresHappy.toString(),F),this.portraitMap.set(k.AresBlushing.toString(),Z),this.portraitMap.set(k.AresDisappointed.toString(),A),this.portraitMap.set(k.AresLetsGo.toString(),ee),this.portraitMap.set(k.AresMad.toString(),te),this.portraitMap.set(k.AresNeutral.toString(),re),this.portraitMap.set(k.AresSlightlyMad.toString(),se),this.portraitMap.set(k.AresSurprised.toString(),ie),this.portraitMap.set(k.AresYay.toString(),ne)),this.setDialogChoice(e[0])});s(this,"subscribeToSetDialogChoice",e=>{this.onSetDialogListeners.push(e)});s(this,"unsubscribeToSetDialogChoice",e=>{const t=this.onSetDialogListeners.indexOf(e);t>-1&&this.onSetDialogListeners.splice(t,1)});s(this,"setDialogChoice",e=>{!e||!e.textContent||(this._setDialogChoiceQueue.push(e),this._setDialogChoiceMutex||(this._setDialogChoiceMutex=!0,this._setDialogChoice()))});s(this,"_setDialogChoice",()=>{const e=this._setDialogChoiceQueue.shift();if(e===void 0){this._setDialogChoiceMutex=!1,this.onSetDialogListeners.forEach(i=>{i(this.currentMessageMeta)});return}this.currentMessageMeta=e;let t=F;if(this.currentMessageMeta.portraitType&&(t=this.portraitMap.get(this.currentMessageMeta.portraitType)),t&&this.currentPortrait.update(()=>t),this.fullCurrentMessage=this.dialogProcessor.processDialog(this.currentMessageMeta),this.currentMessage.update(()=>""),this.currentIndex=0,this.skipNextActiveTime=this.previousTimestamp+1e3,this.isDoneTransition=!1,this.currentMessageMeta.dialogId){const i=`+${this.currentMessageMeta.dialogId}`,a=Number(M.getItem(i));isNaN(a)?M.setItem(i,"1"):M.setItem(i,`${a+1}`)}this._setDialogChoice()});s(this,"setDialogToDefault",()=>{this.setDialogTree(N)});s(this,"update",e=>{if(this.currentState==w.Invisible||this.currentState==w.Busy){window.requestAnimationFrame(this.update);return}if(!this.isDoneTransition&&this.currentIndex>this.fullCurrentMessage.length){const t=document.getElementsByClassName("dialog-choice");for(const i of t)i.addEventListener("click",a=>{const u=i.classList[0].split("-")[1];this.setDialogChoice(this.dialogMessageMap.get(u))});this.isDoneTransition=!0}if(this.currentIndex>this.fullCurrentMessage.length||this.previousTimestamp+Je>e){window.requestAnimationFrame(this.update);return}for(this.previousTimestamp=e;this.fullCurrentMessage[this.currentIndex]=="<"&&this.currentIndex+1<this.fullCurrentMessage.length;)this.currentIndex=this.fullCurrentMessage.indexOf(">",this.currentIndex)+1,this.currentIndex=Math.min(this.currentIndex,this.fullCurrentMessage.length-1);this.currentMessage.update(()=>this.fullCurrentMessage.slice(0,this.currentIndex)),++this.currentIndex,window.requestAnimationFrame(this.update)});R.subscribe(e=>{e?(this.hidePercent.set(0),this.setDialogToDefault()):(this.hidePercent.set(100),this.setDialogTree([{textContent:""}]))})}}const R=b(!0),M=K(),Je=40/1e3,N=[{textContent:`<p>Have you drank water? Or perhaps, you've checked out <a target="_blank" class="external-link" href="http://crouton.net">one of the best webpages</a> out there?`}],U=new He;export{F as A,k as P,U as d,R as e};
@@ -1 +1 @@
1
- import{s as U,e as d,a as y,I as N,c as g,p as k,b as C,m as W,J as z,d as p,K as B,f as m,B as H,i as _,g as b,q as ee,n as S,A as te,y as E,h as le,L as se,M as ae,j as R,u as G,k as J,l as K,C as Q,D as Z,E as F}from"./scheduler.DXwjFp5a.js";import{S as X,i as Y,c as L,a as P,m as D,t as w,b as A,d as I,g as re,e as ne}from"./index.DcUpu3_h.js";import{A as ie,e as oe,R as ce,a as ue,p as fe,b as T,L as pe}from"./store.lTf0RalW.js";import{a as me}from"./ProgressBar.svelte_svelte_type_style_lang.CmgCUata.js";import{d as M,A as _e,e as he}from"./DialogManagerStore.CGTbGbVf.js";function de(u){let e,i,t,a,l,n,c='<p class="svelte-1jg12vw"><b class="svelte-1jg12vw">Turnip</b></p>',o,s,r,f,$;return{c(){e=d("div"),i=d("img"),a=y(),l=d("div"),n=d("div"),n.innerHTML=c,o=y(),s=d("section"),r=new N(!1),this.h()},l(h){e=g(h,"DIV",{class:!0,style:!0});var v=k(e);i=g(v,"IMG",{src:!0,alt:!0,class:!0}),a=C(v),l=g(v,"DIV",{class:!0});var j=k(l);n=g(j,"DIV",{class:!0,"data-svelte-h":!0}),W(n)!=="svelte-1dw2qcy"&&(n.innerHTML=c),o=C(j),s=g(j,"SECTION",{class:!0});var V=k(s);r=z(V,!1),V.forEach(p),j.forEach(p),v.forEach(p),this.h()},h(){B(i.src,t=u[1])||m(i,"src",t),m(i,"alt","Ares"),m(i,"class","dialog-portrait svelte-1jg12vw"),m(n,"class","card dialog-name svelte-1jg12vw"),r.a=null,m(s,"class","dialog-padding svelte-1jg12vw"),m(l,"class","card dialog-box variant-ghost-primary svelte-1jg12vw"),m(e,"class","dialog-elements svelte-1jg12vw"),H(e,"--hidePercentWidth","-"+u[2]+"vw"),H(e,"--hidePercentHeight",u[2]+"vh")},m(h,v){_(h,e,v),b(e,i),b(e,a),b(e,l),b(l,n),b(l,o),b(l,s),r.m(u[0],s),f||($=ee(l,"click",u[3]),f=!0)},p(h,[v]){v&2&&!B(i.src,t=h[1])&&m(i,"src",t),v&1&&r.p(h[0]),v&4&&H(e,"--hidePercentWidth","-"+h[2]+"vw"),v&4&&H(e,"--hidePercentHeight",h[2]+"vh")},i:S,o:S,d(h){h&&p(e),f=!1,$()}}}function ge(u,e,i){let t="";M.currentMessage.subscribe(c=>{i(0,t=c)});let a=_e;M.currentPortrait.subscribe(c=>{c&&i(1,a=c)}),te(()=>{M.update(0)});let l=100;return M.hidePercent.subscribe(c=>{i(2,l=c*.4)}),[t,a,l,()=>{M.skipAnimation()}]}class x extends X{constructor(e){super(),Y(this,e,ge,de,U,{})}}const $e=""+new URL("../assets/ares_logo.C_a3ZQAP.webp",import.meta.url).href;function q(u,e,i){const t=u.slice();return t[7]=e[i],t[9]=i,t}function be(u){let e,i,t;e=new x({});const a=u[4].default,l=R(a,u,u[5],null);return{c(){L(e.$$.fragment),i=y(),l&&l.c()},l(n){P(e.$$.fragment,n),i=C(n),l&&l.l(n)},m(n,c){D(e,n,c),_(n,i,c),l&&l.m(n,c),t=!0},p(n,c){l&&l.p&&(!t||c&32)&&G(l,a,n,n[5],t?K(a,n[5],c,null):J(n[5]),null)},i(n){t||(w(e.$$.fragment,n),w(l,n),t=!0)},o(n){A(e.$$.fragment,n),A(l,n),t=!1},d(n){n&&p(i),I(e,n),l&&l.d(n)}}}function ve(u){let e,i,t,a,l,n;const c=u[4].default,o=R(c,u,u[5],null);return l=new x({}),{c(){e=d("div"),o&&o.c(),i=y(),t=d("div"),a=y(),L(l.$$.fragment),this.h()},l(s){e=g(s,"DIV",{class:!0});var r=k(e);o&&o.l(r),i=C(r),t=g(r,"DIV",{class:!0}),k(t).forEach(p),r.forEach(p),a=C(s),P(l.$$.fragment,s),this.h()},h(){m(t,"class","footer-space"),m(e,"class","default-page-container svelte-di7xp1")},m(s,r){_(s,e,r),o&&o.m(e,null),b(e,i),b(e,t),_(s,a,r),D(l,s,r),n=!0},p(s,r){o&&o.p&&(!n||r&32)&&G(o,c,s,s[5],n?K(c,s[5],r,null):J(s[5]),null)},i(s){n||(w(o,s),w(l.$$.fragment,s),n=!0)},o(s){A(o,s),A(l.$$.fragment,s),n=!1},d(s){s&&(p(e),p(a)),o&&o.d(s),I(l,s)}}}function ke(u){let e,i,t,a,l,n;e=new ce({props:{enable:u[1]}});const c=[ve,be],o=[];function s(r,f){return r[2]?0:1}return t=s(u),a=o[t]=c[t](u),{c(){L(e.$$.fragment),i=y(),a.c(),l=E()},l(r){P(e.$$.fragment,r),i=C(r),a.l(r),l=E()},m(r,f){D(e,r,f),_(r,i,f),o[t].m(r,f),_(r,l,f),n=!0},p(r,f){const $={};f&2&&($.enable=r[1]),e.$set($);let h=t;t=s(r),t===h?o[t].p(r,f):(re(),A(o[h],1,1,()=>{o[h]=null}),ne(),a=o[t],a?a.p(r,f):(a=o[t]=c[t](r),a.c()),w(a,1),a.m(l.parentNode,l))},i(r){n||(w(e.$$.fragment,r),w(a),n=!0)},o(r){A(e.$$.fragment,r),A(a),n=!1},d(r){r&&(p(i),p(l)),I(e,r),o[t].d(r)}}}function we(u){let e,i=u[7].name.charAt(0).toUpperCase()+u[7].name.slice(1)+"",t;return{c(){e=d("li"),t=Q(i),this.h()},l(a){e=g(a,"LI",{class:!0});var l=k(e);t=Z(l,i),l.forEach(p),this.h()},h(){m(e,"class","crumb svelte-di7xp1")},m(a,l){_(a,e,l),b(e,t)},p(a,l){l&1&&i!==(i=a[7].name.charAt(0).toUpperCase()+a[7].name.slice(1)+"")&&F(t,i)},d(a){a&&p(e)}}}function Ae(u){let e,i,t=u[7].name.charAt(0).toUpperCase()+u[7].name.slice(1)+"",a,l,n,c,o="›";return{c(){e=d("li"),i=d("a"),a=Q(t),n=y(),c=d("li"),c.textContent=o,this.h()},l(s){e=g(s,"LI",{class:!0});var r=k(e);i=g(r,"A",{href:!0});var f=k(i);a=Z(f,t),f.forEach(p),r.forEach(p),n=C(s),c=g(s,"LI",{class:!0,"aria-hidden":!0,"data-svelte-h":!0}),W(c)!=="svelte-i818qf"&&(c.textContent=o),this.h()},h(){m(i,"href",l=u[7].path),m(e,"class","crumb svelte-di7xp1"),m(c,"class","crumb-separator svelte-di7xp1"),m(c,"aria-hidden","true")},m(s,r){_(s,e,r),b(e,i),b(i,a),_(s,n,r),_(s,c,r)},p(s,r){r&1&&t!==(t=s[7].name.charAt(0).toUpperCase()+s[7].name.slice(1)+"")&&F(a,t),r&1&&l!==(l=s[7].path)&&m(i,"href",l)},d(s){s&&(p(e),p(n),p(c))}}}function O(u){let e;function i(l,n){return l[9]<l[0].length-1?Ae:we}let t=i(u),a=t(u);return{c(){a.c(),e=E()},l(l){a.l(l),e=E()},m(l,n){a.m(l,n),_(l,e,n)},p(l,n){t===(t=i(l))&&a?a.p(l,n):(a.d(1),a=t(l),a&&(a.c(),a.m(e.parentNode,e)))},d(l){l&&p(e),a.d(l)}}}function ye(u){let e,i,t,a,l,n,c=T(u[0]),o=[];for(let s=0;s<c.length;s+=1)o[s]=O(q(u,c,s));return{c(){e=d("img"),t=y(),a=d("span"),l=y(),n=d("ol");for(let s=0;s<o.length;s+=1)o[s].c();this.h()},l(s){e=g(s,"IMG",{alt:!0,class:!0,src:!0}),t=C(s),a=g(s,"SPAN",{class:!0}),k(a).forEach(p),l=C(s),n=g(s,"OL",{class:!0});var r=k(n);for(let f=0;f<o.length;f+=1)o[f].l(r);r.forEach(p),this.h()},h(){m(e,"alt","Ares's head titled towards the left with his tongue out and winking"),m(e,"class","ares-logo svelte-di7xp1"),B(e.src,i=$e)||m(e,"src",i),m(a,"class","mr-2"),m(n,"class","breadcrumb svelte-di7xp1")},m(s,r){_(s,e,r),_(s,t,r),_(s,a,r),_(s,l,r),_(s,n,r);for(let f=0;f<o.length;f+=1)o[f]&&o[f].m(n,null)},p(s,r){if(r&1){c=T(s[0]);let f;for(f=0;f<c.length;f+=1){const $=q(s,c,f);o[f]?o[f].p($,r):(o[f]=O($),o[f].c(),o[f].m(n,null))}for(;f<o.length;f+=1)o[f].d(1);o.length=c.length}},d(s){s&&(p(e),p(t),p(a),p(l),p(n)),ae(o,s)}}}function Ce(u){let e,i;return e=new pe({props:{bgLight:"bg-surface-400"}}),{c(){L(e.$$.fragment)},l(t){P(e.$$.fragment,t)},m(t,a){D(e,t,a),i=!0},p:S,i(t){i||(w(e.$$.fragment,t),i=!0)},o(t){A(e.$$.fragment,t),i=!1},d(t){I(e,t)}}}function Ee(u){let e,i;return e=new ue({props:{slotDefault:"place-content-start",slotTrail:"place-content-end",$$slots:{trail:[Ce],lead:[ye]},$$scope:{ctx:u}}}),{c(){L(e.$$.fragment)},l(t){P(e.$$.fragment,t)},m(t,a){D(e,t,a),i=!0},p(t,a){const l={};a&33&&(l.$$scope={dirty:a,ctx:t}),e.$set(l)},i(t){i||(w(e.$$.fragment,t),i=!0)},o(t){A(e.$$.fragment,t),i=!1},d(t){I(e,t)}}}function Le(u){let e,i=`<script>${me.toString()} autoModeWatcher();<\/script>`,t,a,l,n;return l=new ie({props:{$$slots:{header:[Ee],default:[ke]},$$scope:{ctx:u}}}),{c(){e=new N(!1),t=E(),a=y(),L(l.$$.fragment),this.h()},l(c){const o=le("svelte-19or0ga",document.head);e=z(o,!1),t=E(),o.forEach(p),a=C(c),P(l.$$.fragment,c),this.h()},h(){e.a=t},m(c,o){e.m(i,document.head),b(document.head,t),_(c,a,o),D(l,c,o),n=!0},p(c,[o]){const s={};o&39&&(s.$$scope={dirty:o,ctx:c}),l.$set(s)},i(c){n||(w(l.$$.fragment,c),n=!0)},o(c){A(l.$$.fragment,c),n=!1},d(c){c&&(e.d(),p(a)),p(t),I(l,c)}}}function Pe(u,e,i){let t;se(u,fe,r=>i(3,t=r));let{$$slots:a={},$$scope:l}=e,n=[];const c=r=>{i(0,n=[]);let f="";r.split("/").forEach(($,h)=>{if(h===0){f="/",n.push({path:"/",name:"Home"});return}$!==""&&(f+=$+"/",n.push({path:f,name:$}))}),i(0,n)};let o=!0;oe.subscribe(r=>{i(1,o=r)});let s=!0;return he.subscribe(r=>{i(2,s=r)}),u.$$set=r=>{"$$scope"in r&&i(5,l=r.$$scope)},u.$$.update=()=>{u.$$.dirty&8&&c(t.url.pathname)},[n,o,s,t,a,l]}class Be extends X{constructor(e){super(),Y(this,e,Pe,Le,U,{})}}export{Be as P};
1
+ import{s as O,e as d,a as y,J as U,c as g,p as k,b as C,m as W,K as z,d as p,L as B,f as m,B as H,i as _,g as b,q as ee,n as S,A as te,y as E,h as le,M as se,N as ae,j as R,u as G,k as J,l as K,C as Q,D as Z,E as F}from"./scheduler.DJdG0Qxb.js";import{S as X,i as Y,c as L,a as P,m as D,t as w,b as A,d as I,g as re,e as ne}from"./index.BgUXYai5.js";import{A as ie,e as oe,R as ce,a as ue,p as fe,b as T,L as pe}from"./store.CzGlMZaJ.js";import{a as me}from"./ProgressBar.svelte_svelte_type_style_lang.sh-s555A.js";import{d as M,A as _e,e as he}from"./DialogManagerStore.CauD3dIa.js";function de(u){let e,i,t,a,l,n,c='<p class="svelte-1jg12vw"><b class="svelte-1jg12vw">Turnip</b></p>',o,s,r,f,$;return{c(){e=d("div"),i=d("img"),a=y(),l=d("div"),n=d("div"),n.innerHTML=c,o=y(),s=d("section"),r=new U(!1),this.h()},l(h){e=g(h,"DIV",{class:!0,style:!0});var v=k(e);i=g(v,"IMG",{src:!0,alt:!0,class:!0}),a=C(v),l=g(v,"DIV",{class:!0});var j=k(l);n=g(j,"DIV",{class:!0,"data-svelte-h":!0}),W(n)!=="svelte-1dw2qcy"&&(n.innerHTML=c),o=C(j),s=g(j,"SECTION",{class:!0});var V=k(s);r=z(V,!1),V.forEach(p),j.forEach(p),v.forEach(p),this.h()},h(){B(i.src,t=u[1])||m(i,"src",t),m(i,"alt","Ares"),m(i,"class","dialog-portrait svelte-1jg12vw"),m(n,"class","card dialog-name svelte-1jg12vw"),r.a=null,m(s,"class","dialog-padding svelte-1jg12vw"),m(l,"class","card dialog-box variant-ghost-primary svelte-1jg12vw"),m(e,"class","dialog-elements svelte-1jg12vw"),H(e,"--hidePercentWidth","-"+u[2]+"vw"),H(e,"--hidePercentHeight",u[2]+"vh")},m(h,v){_(h,e,v),b(e,i),b(e,a),b(e,l),b(l,n),b(l,o),b(l,s),r.m(u[0],s),f||($=ee(l,"click",u[3]),f=!0)},p(h,[v]){v&2&&!B(i.src,t=h[1])&&m(i,"src",t),v&1&&r.p(h[0]),v&4&&H(e,"--hidePercentWidth","-"+h[2]+"vw"),v&4&&H(e,"--hidePercentHeight",h[2]+"vh")},i:S,o:S,d(h){h&&p(e),f=!1,$()}}}function ge(u,e,i){let t="";M.currentMessage.subscribe(c=>{i(0,t=c)});let a=_e;M.currentPortrait.subscribe(c=>{c&&i(1,a=c)}),te(()=>{M.update(0)});let l=100;return M.hidePercent.subscribe(c=>{i(2,l=c*.4)}),[t,a,l,()=>{M.skipAnimation()}]}class x extends X{constructor(e){super(),Y(this,e,ge,de,O,{})}}const $e=""+new URL("../assets/ares_logo.C_a3ZQAP.webp",import.meta.url).href;function q(u,e,i){const t=u.slice();return t[7]=e[i],t[9]=i,t}function be(u){let e,i,t;e=new x({});const a=u[4].default,l=R(a,u,u[5],null);return{c(){L(e.$$.fragment),i=y(),l&&l.c()},l(n){P(e.$$.fragment,n),i=C(n),l&&l.l(n)},m(n,c){D(e,n,c),_(n,i,c),l&&l.m(n,c),t=!0},p(n,c){l&&l.p&&(!t||c&32)&&G(l,a,n,n[5],t?K(a,n[5],c,null):J(n[5]),null)},i(n){t||(w(e.$$.fragment,n),w(l,n),t=!0)},o(n){A(e.$$.fragment,n),A(l,n),t=!1},d(n){n&&p(i),I(e,n),l&&l.d(n)}}}function ve(u){let e,i,t,a,l,n;const c=u[4].default,o=R(c,u,u[5],null);return l=new x({}),{c(){e=d("div"),o&&o.c(),i=y(),t=d("div"),a=y(),L(l.$$.fragment),this.h()},l(s){e=g(s,"DIV",{class:!0});var r=k(e);o&&o.l(r),i=C(r),t=g(r,"DIV",{class:!0}),k(t).forEach(p),r.forEach(p),a=C(s),P(l.$$.fragment,s),this.h()},h(){m(t,"class","footer-space"),m(e,"class","default-page-container svelte-di7xp1")},m(s,r){_(s,e,r),o&&o.m(e,null),b(e,i),b(e,t),_(s,a,r),D(l,s,r),n=!0},p(s,r){o&&o.p&&(!n||r&32)&&G(o,c,s,s[5],n?K(c,s[5],r,null):J(s[5]),null)},i(s){n||(w(o,s),w(l.$$.fragment,s),n=!0)},o(s){A(o,s),A(l.$$.fragment,s),n=!1},d(s){s&&(p(e),p(a)),o&&o.d(s),I(l,s)}}}function ke(u){let e,i,t,a,l,n;e=new ce({props:{enable:u[1]}});const c=[ve,be],o=[];function s(r,f){return r[2]?0:1}return t=s(u),a=o[t]=c[t](u),{c(){L(e.$$.fragment),i=y(),a.c(),l=E()},l(r){P(e.$$.fragment,r),i=C(r),a.l(r),l=E()},m(r,f){D(e,r,f),_(r,i,f),o[t].m(r,f),_(r,l,f),n=!0},p(r,f){const $={};f&2&&($.enable=r[1]),e.$set($);let h=t;t=s(r),t===h?o[t].p(r,f):(re(),A(o[h],1,1,()=>{o[h]=null}),ne(),a=o[t],a?a.p(r,f):(a=o[t]=c[t](r),a.c()),w(a,1),a.m(l.parentNode,l))},i(r){n||(w(e.$$.fragment,r),w(a),n=!0)},o(r){A(e.$$.fragment,r),A(a),n=!1},d(r){r&&(p(i),p(l)),I(e,r),o[t].d(r)}}}function we(u){let e,i=u[7].name.charAt(0).toUpperCase()+u[7].name.slice(1)+"",t;return{c(){e=d("li"),t=Q(i),this.h()},l(a){e=g(a,"LI",{class:!0});var l=k(e);t=Z(l,i),l.forEach(p),this.h()},h(){m(e,"class","crumb svelte-di7xp1")},m(a,l){_(a,e,l),b(e,t)},p(a,l){l&1&&i!==(i=a[7].name.charAt(0).toUpperCase()+a[7].name.slice(1)+"")&&F(t,i)},d(a){a&&p(e)}}}function Ae(u){let e,i,t=u[7].name.charAt(0).toUpperCase()+u[7].name.slice(1)+"",a,l,n,c,o="›";return{c(){e=d("li"),i=d("a"),a=Q(t),n=y(),c=d("li"),c.textContent=o,this.h()},l(s){e=g(s,"LI",{class:!0});var r=k(e);i=g(r,"A",{href:!0});var f=k(i);a=Z(f,t),f.forEach(p),r.forEach(p),n=C(s),c=g(s,"LI",{class:!0,"aria-hidden":!0,"data-svelte-h":!0}),W(c)!=="svelte-i818qf"&&(c.textContent=o),this.h()},h(){m(i,"href",l=u[7].path),m(e,"class","crumb svelte-di7xp1"),m(c,"class","crumb-separator svelte-di7xp1"),m(c,"aria-hidden","true")},m(s,r){_(s,e,r),b(e,i),b(i,a),_(s,n,r),_(s,c,r)},p(s,r){r&1&&t!==(t=s[7].name.charAt(0).toUpperCase()+s[7].name.slice(1)+"")&&F(a,t),r&1&&l!==(l=s[7].path)&&m(i,"href",l)},d(s){s&&(p(e),p(n),p(c))}}}function N(u){let e;function i(l,n){return l[9]<l[0].length-1?Ae:we}let t=i(u),a=t(u);return{c(){a.c(),e=E()},l(l){a.l(l),e=E()},m(l,n){a.m(l,n),_(l,e,n)},p(l,n){t===(t=i(l))&&a?a.p(l,n):(a.d(1),a=t(l),a&&(a.c(),a.m(e.parentNode,e)))},d(l){l&&p(e),a.d(l)}}}function ye(u){let e,i,t,a,l,n,c=T(u[0]),o=[];for(let s=0;s<c.length;s+=1)o[s]=N(q(u,c,s));return{c(){e=d("img"),t=y(),a=d("span"),l=y(),n=d("ol");for(let s=0;s<o.length;s+=1)o[s].c();this.h()},l(s){e=g(s,"IMG",{alt:!0,class:!0,src:!0}),t=C(s),a=g(s,"SPAN",{class:!0}),k(a).forEach(p),l=C(s),n=g(s,"OL",{class:!0});var r=k(n);for(let f=0;f<o.length;f+=1)o[f].l(r);r.forEach(p),this.h()},h(){m(e,"alt","Ares's head titled towards the left with his tongue out and winking"),m(e,"class","ares-logo svelte-di7xp1"),B(e.src,i=$e)||m(e,"src",i),m(a,"class","mr-2"),m(n,"class","breadcrumb svelte-di7xp1")},m(s,r){_(s,e,r),_(s,t,r),_(s,a,r),_(s,l,r),_(s,n,r);for(let f=0;f<o.length;f+=1)o[f]&&o[f].m(n,null)},p(s,r){if(r&1){c=T(s[0]);let f;for(f=0;f<c.length;f+=1){const $=q(s,c,f);o[f]?o[f].p($,r):(o[f]=N($),o[f].c(),o[f].m(n,null))}for(;f<o.length;f+=1)o[f].d(1);o.length=c.length}},d(s){s&&(p(e),p(t),p(a),p(l),p(n)),ae(o,s)}}}function Ce(u){let e,i;return e=new pe({props:{bgLight:"bg-surface-400"}}),{c(){L(e.$$.fragment)},l(t){P(e.$$.fragment,t)},m(t,a){D(e,t,a),i=!0},p:S,i(t){i||(w(e.$$.fragment,t),i=!0)},o(t){A(e.$$.fragment,t),i=!1},d(t){I(e,t)}}}function Ee(u){let e,i;return e=new ue({props:{slotDefault:"place-content-start",slotTrail:"place-content-end",$$slots:{trail:[Ce],lead:[ye]},$$scope:{ctx:u}}}),{c(){L(e.$$.fragment)},l(t){P(e.$$.fragment,t)},m(t,a){D(e,t,a),i=!0},p(t,a){const l={};a&33&&(l.$$scope={dirty:a,ctx:t}),e.$set(l)},i(t){i||(w(e.$$.fragment,t),i=!0)},o(t){A(e.$$.fragment,t),i=!1},d(t){I(e,t)}}}function Le(u){let e,i=`<script>${me.toString()} autoModeWatcher();<\/script>`,t,a,l,n;return l=new ie({props:{$$slots:{header:[Ee],default:[ke]},$$scope:{ctx:u}}}),{c(){e=new U(!1),t=E(),a=y(),L(l.$$.fragment),this.h()},l(c){const o=le("svelte-19or0ga",document.head);e=z(o,!1),t=E(),o.forEach(p),a=C(c),P(l.$$.fragment,c),this.h()},h(){e.a=t},m(c,o){e.m(i,document.head),b(document.head,t),_(c,a,o),D(l,c,o),n=!0},p(c,[o]){const s={};o&39&&(s.$$scope={dirty:o,ctx:c}),l.$set(s)},i(c){n||(w(l.$$.fragment,c),n=!0)},o(c){A(l.$$.fragment,c),n=!1},d(c){c&&(e.d(),p(a)),p(t),I(l,c)}}}function Pe(u,e,i){let t;se(u,fe,r=>i(3,t=r));let{$$slots:a={},$$scope:l}=e,n=[];const c=r=>{i(0,n=[]);let f="";r.split("/").forEach(($,h)=>{if(h===0){f="/",n.push({path:"/",name:"Home"});return}$!==""&&(f+=$+"/",n.push({path:f,name:$}))}),i(0,n)};let o=!0;oe.subscribe(r=>{i(1,o=r)});let s=!0;return he.subscribe(r=>{i(2,s=r)}),u.$$set=r=>{"$$scope"in r&&i(5,l=r.$$scope)},u.$$.update=()=>{u.$$.dirty&8&&c(t.url.pathname)},[n,o,s,t,a,l]}class Be extends X{constructor(e){super(),Y(this,e,Pe,Le,O,{})}}export{Be as P};
@@ -1 +1 @@
1
- import{w as M,r as S}from"./index.Duksw40K.js";import{N as L}from"./scheduler.DXwjFp5a.js";const l={};function h(e){return e==="local"?localStorage:sessionStorage}function i(e,s,t){const r=(t==null?void 0:t.serializer)??JSON,a=(t==null?void 0:t.storage)??"local";function u(c,d){h(a).setItem(c,r.stringify(d))}if(!l[e]){const c=M(s,o=>{const n=h(a).getItem(e);n&&o(r.parse(n));{const g=m=>{m.key===e&&o(m.newValue?r.parse(m.newValue):null)};return window.addEventListener("storage",g),()=>window.removeEventListener("storage",g)}}),{subscribe:d,set:f}=c;l[e]={set(o){u(e,o),f(o)},update(o){const n=o(L(c));u(e,n),f(n)},subscribe:d}}return l[e]}const P=i("modeOsPrefers",!1),E=i("modeUserPrefers",void 0),p=i("modeCurrent",!1);function b(){const e=window.matchMedia("(prefers-color-scheme: light)").matches;return P.set(e),e}function I(e){E.set(e)}function O(e){const s=document.documentElement.classList,t="dark";e===!0?s.remove(t):s.add(t),p.set(e)}function H(){const e=document.documentElement.classList,s=localStorage.getItem("modeUserPrefers")==="false",t=!("modeUserPrefers"in localStorage),r=window.matchMedia("(prefers-color-scheme: dark)").matches;s||t&&r?e.add("dark"):e.remove("dark")}function R(){const e=window.matchMedia("(prefers-color-scheme: light)");function s(t){const r=document.documentElement.classList,a="dark";t===!0?r.remove(a):r.add(a)}s(e.matches),e.onchange=()=>{s(e.matches)}}const w="(prefers-reduced-motion: reduce)";function v(){return window.matchMedia(w).matches}const k=S(v(),e=>{{const s=r=>{e(r.matches)},t=window.matchMedia(w);return t.addEventListener("change",s),()=>{t.removeEventListener("change",s)}}});export{R as a,O as b,I as c,b as g,p as m,k as p,H as s};
1
+ import{w as M,r as S}from"./index.DM9YwQfI.js";import{I as L}from"./scheduler.DJdG0Qxb.js";const l={};function h(e){return e==="local"?localStorage:sessionStorage}function i(e,s,t){const r=(t==null?void 0:t.serializer)??JSON,a=(t==null?void 0:t.storage)??"local";function u(c,d){h(a).setItem(c,r.stringify(d))}if(!l[e]){const c=M(s,o=>{const n=h(a).getItem(e);n&&o(r.parse(n));{const g=m=>{m.key===e&&o(m.newValue?r.parse(m.newValue):null)};return window.addEventListener("storage",g),()=>window.removeEventListener("storage",g)}}),{subscribe:d,set:f}=c;l[e]={set(o){u(e,o),f(o)},update(o){const n=o(L(c));u(e,n),f(n)},subscribe:d}}return l[e]}const P=i("modeOsPrefers",!1),E=i("modeUserPrefers",void 0),p=i("modeCurrent",!1);function b(){const e=window.matchMedia("(prefers-color-scheme: light)").matches;return P.set(e),e}function I(e){E.set(e)}function O(e){const s=document.documentElement.classList,t="dark";e===!0?s.remove(t):s.add(t),p.set(e)}function H(){const e=document.documentElement.classList,s=localStorage.getItem("modeUserPrefers")==="false",t=!("modeUserPrefers"in localStorage),r=window.matchMedia("(prefers-color-scheme: dark)").matches;s||t&&r?e.add("dark"):e.remove("dark")}function R(){const e=window.matchMedia("(prefers-color-scheme: light)");function s(t){const r=document.documentElement.classList,a="dark";t===!0?r.remove(a):r.add(a)}s(e.matches),e.onchange=()=>{s(e.matches)}}const w="(prefers-reduced-motion: reduce)";function v(){return window.matchMedia(w).matches}const k=S(v(),e=>{{const s=r=>{e(r.matches)},t=window.matchMedia(w);return t.addEventListener("change",s),()=>{t.removeEventListener("change",s)}}});export{R as a,O as b,I as c,b as g,p as m,k as p,H as s};