lido-player 0.0.2-alpha-59-dev → 0.0.2-alpha-60-dev

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 (72) hide show
  1. package/dist/cjs/index.cjs.js +1 -1
  2. package/dist/cjs/lido-avatar_22.cjs.entry.js +5 -3
  3. package/dist/cjs/{utils-03573882.js → utils-28faa755.js} +3 -3
  4. package/dist/collection/components/container/lido-container.js +4 -2
  5. package/dist/collection/stories/Templates/imageMatch/imageMatch.stories.js +79 -0
  6. package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaMultiOption.stories.js +2 -2
  7. package/dist/collection/stories/Templates/palEgmaCalculateSum/palEgmaSumTogether.stories.js +2 -4
  8. package/dist/collection/stories/Templates/palEgraOptionWithAudio/palEgraOptionWithAudio.stories.js +98 -0
  9. package/dist/collection/stories/Templates/palEgra_arrange_pictures/palEgra_arrange_pictures.stories.js +78 -0
  10. package/dist/collection/stories/Templates/palEgra_build_word/palEgra_build_word.stories.js +78 -0
  11. package/dist/collection/stories/Templates/palStorytale/palStorytale.stories.js +35 -0
  12. package/dist/collection/stories/Templates/pictureClues/pictureClues.stories.js +2 -2
  13. package/dist/collection/utils/utilsHandlers/dragDropHandler.js +1 -1
  14. package/dist/collection/utils/utilsHandlers/highlightHandler.js +2 -2
  15. package/dist/components/index.js +1 -1
  16. package/dist/components/lido-avatar.js +1 -1
  17. package/dist/components/lido-balance.js +1 -1
  18. package/dist/components/lido-calculator.js +1 -1
  19. package/dist/components/lido-canvas.js +1 -1
  20. package/dist/components/lido-cell.js +1 -1
  21. package/dist/components/lido-col.js +1 -1
  22. package/dist/components/lido-container.js +1 -1
  23. package/dist/components/lido-flash-card.js +1 -1
  24. package/dist/components/lido-float.js +1 -1
  25. package/dist/components/lido-home.js +1 -1
  26. package/dist/components/lido-image.js +1 -1
  27. package/dist/components/lido-keyboard.js +1 -1
  28. package/dist/components/lido-math-matrix.js +1 -1
  29. package/dist/components/lido-pos.js +1 -1
  30. package/dist/components/lido-random.js +1 -1
  31. package/dist/components/lido-root.js +22 -22
  32. package/dist/components/lido-row.js +1 -1
  33. package/dist/components/lido-shape.js +1 -1
  34. package/dist/components/lido-slide-fill.js +1 -1
  35. package/dist/components/lido-text.js +1 -1
  36. package/dist/components/lido-trace.js +1 -1
  37. package/dist/components/lido-wrap.js +1 -1
  38. package/dist/components/{p-5eeaccab.js → p-06cecca5.js} +1 -1
  39. package/dist/components/{p-84302365.js → p-16604098.js} +1 -1
  40. package/dist/components/{p-3513b1f3.js → p-235091a1.js} +3 -3
  41. package/dist/components/{p-49ccf573.js → p-32c89979.js} +1 -1
  42. package/dist/components/{p-ad0f335e.js → p-354f7b19.js} +2 -2
  43. package/dist/components/{p-2bb1f74d.js → p-37c86a94.js} +1 -1
  44. package/dist/components/{p-33b83222.js → p-3acada8c.js} +1 -1
  45. package/dist/components/{p-d9b17242.js → p-3acd9a2e.js} +1 -1
  46. package/dist/components/{p-99fcbae4.js → p-4d01394c.js} +1 -1
  47. package/dist/components/{p-f9426cbe.js → p-57400ebc.js} +1 -1
  48. package/dist/components/{p-e8e9250e.js → p-5e7c6afa.js} +1 -1
  49. package/dist/components/{p-4d9462ab.js → p-74c270d2.js} +2 -2
  50. package/dist/components/{p-de62d08e.js → p-8a32f7cb.js} +1 -1
  51. package/dist/components/{p-9b35082a.js → p-8c0667eb.js} +1 -1
  52. package/dist/components/{p-6819005f.js → p-8f082c62.js} +1 -1
  53. package/dist/components/{p-6bbad90f.js → p-93acfbb2.js} +1 -1
  54. package/dist/components/{p-356e56bd.js → p-a182c9a2.js} +1 -1
  55. package/dist/components/{p-5c990168.js → p-b151457d.js} +6 -4
  56. package/dist/components/{p-f238004e.js → p-b867548e.js} +1 -1
  57. package/dist/components/{p-5aa24314.js → p-c90d92db.js} +1 -1
  58. package/dist/components/{p-aff68c41.js → p-db2a05f5.js} +3 -3
  59. package/dist/components/{p-73e4bb01.js → p-de45dcab.js} +21 -21
  60. package/dist/esm/index.js +1 -1
  61. package/dist/esm/lido-avatar_22.entry.js +5 -3
  62. package/dist/esm/{utils-3995d2d5.js → utils-2edeb213.js} +3 -3
  63. package/dist/lido-player/index.esm.js +1 -1
  64. package/dist/lido-player/lido-player.esm.js +1 -1
  65. package/dist/lido-player/{p-75daccb0.entry.js → p-280e3d34.entry.js} +1 -1
  66. package/dist/lido-player/{p-aee89fba.js → p-add7f36e.js} +1 -1
  67. package/dist/types/stories/Templates/imageMatch/imageMatch.stories.d.ts +4 -0
  68. package/dist/types/stories/Templates/palEgraOptionWithAudio/palEgraOptionWithAudio.stories.d.ts +4 -0
  69. package/dist/types/stories/Templates/palEgra_arrange_pictures/palEgra_arrange_pictures.stories.d.ts +4 -0
  70. package/dist/types/stories/Templates/palEgra_build_word/palEgra_build_word.stories.d.ts +4 -0
  71. package/dist/types/stories/Templates/palStorytale/palStorytale.stories.d.ts +4 -0
  72. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import{g as e}from"./p-9a9d5339.js";const r="lidoDragMap",t="lidoSelectedValues",n="lidoActivityScore",i="lidoActivityEnd",a="lidoLessonEnd",o="lidoNextContainer",u="lidoPrevContainer",s="lidoActivityChange",c="lidoGameCompleted",f="lidoGameExit",l="lidoElementDrop",m="dropLength",d="drop-to",p="drop-time",h="lido-container",v="__LIDO_COMMON_AUDIO_PATH__",y="lidoCommonAudioPathReady",g="template-id";var x,b,w;!function(e){e.NoFlow="noFlow",e.ShowFlow="showFlow",e.FreeTrace="freeTrace",e.BlindTracing="blindTracing",e.BlindFreeTrace="blindFreeTrace"}(x||(x={})),function(e){e.Diagonal="diagonal",e.Stretch="stretch",e.InfiniteDrop="infinite-drop",e.EnableAnimation="enableanimation"}(b||(b={})),function(e){e.InfiniteDrop="infinite-drop",e.Move="move",e.Hide="hide"}(w||(w={}));const D="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/Navbar-buttons/Close.svg",N="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/Navbar-buttons/Previous.svg",A="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/Navbar-buttons/Next.svg",M="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/Navbar-buttons/audio.png",C="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/trace/Tracing-hand.svg";function E(e,r){console.log("👍Event Name : ",e,"Detail : ",r.toString());const t=new CustomEvent(e,{detail:r});window.dispatchEvent(t)}function S(){E(c,{})}function F(){E(f,{})}function B(e){E(s,{index:e})}function q(e,r){E("lidoElementClick",{element:e,isCorrect:r,createdAt:(new Date).toISOString()})}class T{constructor(){}static getInstance(){return T.instance||(T.instance=new T),T.instance}setRiveInstance(e){this.riveInstance=e}getRiveInstance(){return this.riveInstance}}function O(){const e=document.querySelector("lido-balance");if(!e)return;const r=Array.from(document.querySelectorAll('[drop-to^="lefthandle"]')),t=Array.from(document.querySelectorAll('[drop-to^="righthandle"]'));e.leftVal=k(r,e.operation),e.rightVal=k(t,e.operation),console.log("leftpan:",e.leftVal,"rightpan:",e.rightVal),e.updateTilt&&e.updateTilt(e.leftVal,e.rightVal)}function k(e,r){if(0===e.length)return 0;if("count"===r)return e.length;const t=e.map((e=>e.getAttribute("value")||"0")).join(["add","+"].includes(r)?" + ":["subtract","-"].includes(r)?" - ":["multiply","*"].includes(r)?" * ":["divide","/"].includes(r)?" / ":" + ");try{const e=YA(t);return"number"==typeof e?e:"boolean"==typeof e?e?1:0:parseFloat(t)||0}catch(e){return console.warn("invalid exp",t),0}}function z(e,r){var t,n,i,a,o,u;if(!e.getAttribute("equationCheck"))return!1;const s=document.querySelector("lido-balance");if(!s)return!1;const c=Number(null!==(i=null!==(t=s.leftVal)&&void 0!==t?t:null===(n=s.dataset)||void 0===n?void 0:n.leftVal)&&void 0!==i?i:0),f=Number(null!==(u=null!==(a=s.rightVal)&&void 0!==a?a:null===(o=s.dataset)||void 0===o?void 0:o.rightVal)&&void 0!==u?u:0),l=!isNaN(c),m=!isNaN(f);if(!l||!m)return!1;const d=r===(c>f?">":c<f?"<":"=");return console.log("Result:",d),d}const I=[];function R(e,r,n){e.style.pointerEvents="none",setTimeout((()=>{var i,a,u;const s=document.createElement("div");e.append(s),s.classList.add("after-drop-popup-container"),r.style.scale="1",n.style.scale="1";const c=e.querySelectorAll('[type="drag"]'),f=Array.from(c).map((e=>e.parentElement)).every((e=>e===r.parentElement));JSON.parse(null!==(i=e.getAttribute(t))&&void 0!==i?i:"[]");const l=null!==(a=r.getAttribute("value"))&&void 0!==a?a:null===(u=r.textContent)||void 0===u?void 0:u.trim();l&&I.push(l),f?(r.remove(),n.remove()):(r.parentElement.parentElement.remove(),n.parentElement.parentElement.remove()),r.classList.add("zoom-fade-in","after-drop-popup-drag-element"),n.classList.add("zoom-fade-in","after-drop-popup-drop-element"),s.appendChild(r),s.appendChild(n),n.classList.remove("empty"),setTimeout((()=>{r.classList.remove("zoom-fade-in"),n.classList.remove("zoom-fade-in"),r.classList.add("zoom-fade-out"),n.classList.add("zoom-fade-out"),setTimeout((()=>{s.remove(),e.style.pointerEvents="auto";const r=e.getAttribute("objective");r&&I.map((e=>e.trim())).sort().join(",")===r.split(",").map((e=>e.trim())).sort().join(",")&&(async()=>{const r=(null==e?void 0:e.getAttribute("onCorrect"))||"";await TA(r,e),window.dispatchEvent(new CustomEvent(o)),UA(),I.length=0})()}),800)}),2e3)}),250)}function j(){const e={};return document.querySelectorAll("[type='drop']").forEach((r=>{const t=r.getAttribute("tab-index")||r.id,n=!!document.querySelector(`[${d}="${r.id}"]`);r.setAttribute("is-full",String(n)),e[t]={drop:r.id,isFull:n}})),e}const U=e=>{e.style.animation="unset";const r=window.getComputedStyle(e).transform;if("none"===r)return 1;{const e=r.match(/matrix\(([^)]+)\)/);if(e){const r=e[1].split(", ");return parseFloat(r[0])}}return 1};let $=!1;const P=e=>{console.log("Setting dragging disabled to:",e),$=e},L=(e,r)=>{const t=e.getBoundingClientRect(),n=document.querySelectorAll(`[type="${r}"]`);let i=null,a=0;return n.forEach((n=>{if(n===e)return;const o=n.getBoundingClientRect(),u=Math.max(0,Math.min(t.right,o.right)-Math.max(t.left,o.left))*Math.max(0,Math.min(t.bottom,o.bottom)-Math.max(t.top,o.top));0!==u&&("slide"===r?u>=.1*Math.min(t.width*t.height,o.width*o.height)&&u>a&&(a=u,i=n):u>a&&(a=u,i=n))})),i};function _(e,r,t){if(!r||!e||!t)return;const n=r.getBoundingClientRect(),i=e.getBoundingClientRect(),a=window.getComputedStyle(e),o=new DOMMatrixReadOnly(a.transform),u=o.m42||0,s=n.top-i.top,c=(o.m41||0)+(n.left-i.left)*(1/aM()),f=u+s*(1/aM());e.style.transition="transform 0.5s ease",e.style.transform=`translate(${c}px, ${f}px)`}function J(e,r,n,i,a){var o;e.classList.remove("dropped");const u=document.getElementById(h),s=u.querySelectorAll(`#${e.id}`),c=Array.from(s).find((r=>e!==r&&!r.classList.contains("dropped")));e.style.transition="transform 0.5s ease",c?(_(e,c,u),setTimeout((()=>{u.getAttribute("drop-action")===w.InfiniteDrop?(e.removeAttribute("hasDummy"),e.style.width=c.style.width,e.style.height=c.style.height):(c.style.width=e.style.width,c.style.height=e.style.height),e.style.transform="translate(0,0)",e.style.position="unset",c.replaceWith(e)}),500)):e.style.transform="translate(0,0)";let f=Z.get(e);if(f){if(Z.delete(e),V(f),(null===(o=null==f?void 0:f.getAttribute("drop-attr"))||void 0===o?void 0:o.toLowerCase())===b.Stretch){const e=f.getAttribute("data-original-width");e?(f.style.width=e,f.removeAttribute("data-original-width")):(f.style.width="",f.removeAttribute("data-original-width"))}let r=Object.values(n).find((e=>document.getElementById(e.drop)===f));if(r){r.isFull=!1,ee();const e=document.getElementById(r.drop);e&&e.removeAttribute("is-full")}Z.delete(e)}if(i){let r=JSON.parse(i);r=r.filter((r=>r!=e.value)),u.setAttribute(t,JSON.stringify(r))}if(a){let r=JSON.parse(a);const t=u.querySelector(`#${e.getAttribute(d)}`);t&&delete r[t.getAttribute("tab-index")],e.removeAttribute(d),V(f),O()}document.querySelectorAll("[type='drop']").forEach((e=>{var r;const t=FA();Object.keys(t).map(Number).includes(JSON.parse(e.getAttribute("tab-index")))?(null===(r=e.getAttribute("dropAttr"))||void 0===r?void 0:r.toLowerCase())!==b.Diagonal&&(e.tagName.toLowerCase(),"lido-image"===e.tagName.toLowerCase()&&(e.style.opacity="0",e.style.backgroundColor="transparent")):(e.tagName.toLowerCase(),"lido-image"===e.tagName.toLowerCase()&&(e.style.opacity="1",e.style.backgroundColor="transparent"))})),LA(),ee()}async function W(e,r){var n,i,a,o,u,s,c,f;const v=document.getElementById(h),y=null!==(n=v.getAttribute(t))&&void 0!==n?n:"[]",g=JSON.stringify(FA()),x=FA();JSON.stringify(x),console.log("dragggedddd elem",{value:e.getAttribute("value")});let w=j();r||J(e,0,w,y,g);const D=r.getAttribute("tab-index"),N="false"===r.getAttribute("is-allow-only-one-drop");if((null===(i=w[D])||void 0===i?void 0:i.isFull)&&!N)return void J(e,0,w,y,g);if("true"===v.getAttribute("is-allow-only-correct")){if(!r)return e.style.transition="transform 0.5s ease",e.style.transform="translate(0, 0)",void J(e,0,w,y,g);let t;const n=(null===(a=e.getAttribute("value"))||void 0===a?void 0:a.trim())||"",i=(null===(o=r.getAttribute("value"))||void 0===o?void 0:o.trim())||"";if(Number(n)){const e=Number(n);t=i.includes(",")?i.split(",").some((r=>Number(r)===e)):Number(i)===e}else t=i.toLowerCase().includes(n.toLowerCase());if(!t){e.style.transition="transform 0.5s ease",_(e,r,v);const t=r.getAttribute("onInCorrect");return console.log("onincorrectttt",t),await TA(t,r,e),setTimeout((()=>{e.style.transform="translate(0, 0)",jA(!1),J(e,0,w,y,g)}),500),void("option"===e.type&&Array.from(v.querySelectorAll(`[value="${e.value}"]`)).forEach((r=>{r!==e&&r.getAttribute("value")===e.getAttribute("value")&&r.replaceWith(e)})))}{const t=v.getAttribute("dropAttr");t&&t.toLowerCase()===b.EnableAnimation.toLowerCase()&&R(v,e,r)}}else{const t=v.getAttribute("dropAttr");t&&t.toLowerCase()===b.EnableAnimation.toLowerCase()&&R(v,e,r)}if(r){let n=JSON.parse(null!==(u=v.getAttribute(t))&&void 0!==u?u:"[]");const i=e.getAttribute("value");if(i&&!n.includes(i)&&n.push(i),v.setAttribute(t,JSON.stringify(n)),"stretch"===r.getAttribute("drop-attr")){if(!r.hasAttribute("data-original-width")){const e=window.getComputedStyle(r);r.setAttribute("data-original-width",e.width)}r.style.width=`${e.offsetWidth}px`}if((null===(s=r.getAttribute("dropAttr"))||void 0===s?void 0:s.toLowerCase())!==b.Diagonal&&("1"===r.getAttribute("minDrops")||!r.getAttribute("minDrops"))){const t=Object.values(w).find((e=>document.getElementById(e.drop)===r));if("true"===r.getAttribute("is-allow-only-one-drop")&&t?(t.isFull=!0,r.setAttribute("is-full","true"),ee()):console.warn("No matching drop item found for",r),g){let r=JSON.parse(g);for(const t in r)if(r[t].includes(e.value)&&e.classList.contains("dropped")){const t=e.getAttribute("drop-to"),n=v.querySelector(`#${t}`).getAttribute("tab-index");n&&delete r[n]}}if(e.classList.add("dropped"),e&&(r?e.setAttribute(d,null==r?void 0:r.id):e.removeAttribute(d),e.setAttribute(p,(new Date).getTime().toString())),r&&!(null===(c=w[D])||void 0===c?void 0:c.isFull)){let t=L(e,"drag");if("true"===r.getAttribute("is-allow-only-one-drop")&&t)return e.style.transform="translate(0,0)",e.style.transition="transform 0.5s ease",void document.querySelectorAll("[type='drop']").forEach((e=>{var r;const t=FA();Object.keys(t).map(Number).includes(JSON.parse(e.getAttribute("tab-index")))?(null===(r=e.getAttribute("dropAttr"))||void 0===r?void 0:r.toLowerCase())!==b.Diagonal&&(e.tagName.toLowerCase(),"lido-image"===e.tagName.toLowerCase()&&(e.style.opacity="0")):(e.tagName.toLowerCase(),e.tagName.toLowerCase(),e.style.opacity="1")}))}}}if(!r)return void J(e,0,w,y,g);if(O(),g){let r=Z.get(e);if(r){let e=Object.values(w).find((e=>document.getElementById(e.drop)===r));e&&(e.isFull=!1,X())}}let A=parseInt(null!==(f=v.getAttribute(m))&&void 0!==f?f:"0");if(A+=1,v.setAttribute(m,String(A)),A===IA(r.value)){const e=Object.values(w).find((e=>document.getElementById(e.drop)===r));e?e.isFull=!0:console.warn("No matching drop item found for",r),A=0,v.setAttribute(m,String(A))}Z.set(e,r);const M=r.value.toLowerCase().includes(e.value.toLowerCase());!function(e,r,t){E(l,{dragElement:e,dropElement:r,isCorrect:t,createdAt:(new Date).toISOString()})}(e,r,M),e.style.opacity="1",document.querySelectorAll(".drop-element").forEach((e=>V(e))),ee(),await $A(e,r)}function V(e){if(!e||!e.classList.contains("drop-element"))return;const r=document.getElementById(h);r&&"true"===r.getAttribute("show-drop-border")&&(document.querySelectorAll(`[${d}="${e.id}"]`).length>0?(e.classList.add("filled"),e.classList.remove("empty")):(e.classList.contains("math-matrix")||e.classList.add("empty"),e.classList.remove("filled")))}async function H(e,r){if(document.querySelectorAll(`[type='${r}']`).forEach((e=>{Q(e)})),!document.querySelector("#dynamic-highlight-style")){const e=document.createElement("style");e.id="dynamic-highlight-style",e.innerHTML="\n .highlight {\n // border: 4px solid #e74c3c; /* Thicker red border for more visibility */\n // border-radius: 12px; /* Larger rounded corners */\n // background-color: rgba(231, 76, 60, 0.3); /* Stronger, more noticeable background */\n // box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 12px 40px rgba(0, 0, 0, 0.2); /* Stronger shadow */\n // outline: 4px solid rgba(231, 76, 60, 0.6); /* Glow effect */\n }\n ",document.head.appendChild(e)}null==e||e.classList.add("highlight-element"),e.ariaPressed="true";const t="drop"===r?e:document.querySelector("[type='drop'].highlight-element"),n="drag"===r?e:document.querySelector("[type='drag'].highlight-element");if(t||async function(e){const r=e.getAttribute("audio");r&&r.trim().length>0&&re.getI().stop();const t=j(),n=e;if(!n)return void console.error("Element not found");const i=getComputedStyle(n).transform;if(Q(e),i&&"none"!==i&&"matrix(1, 0, 0, 1, 0, 0)"!==i)return void W(n,null);let a=Object.values(t).find((e=>!e.isFull));if(a){const e=document.querySelector(`#${a.drop}`);n.style.transition="transform 0.5s ease",W(n,e)}}(e),t&&n){if(n.getAttribute("drop-to"))return;n.style.transition="transform 0.5s ease",n.style.transform="";const e=document.getElementById(h),r=U(e);console.log("🚀 ~ onClickDropOrDragElement ~ containerScale:",r);const i=t.getBoundingClientRect(),a=n.getBoundingClientRect();n.style.transform=`translate(${(i.left-a.left)/r}px, ${(i.top-a.top)/r}px)`,document.querySelectorAll("*").forEach((e=>{Q(e)})),await W(n,t)}}const Z=new Map,G=document.getElementById(h),X=()=>{const e=document.querySelectorAll("[type='drop']");let r=FA();e&&G&&r&&e&&e.forEach((e=>{var t;const n=e,i=n.getAttribute("tab-index");if((null===(t=null==n?void 0:n.getAttribute("drop-attr"))||void 0===t?void 0:t.toLowerCase())===b.Stretch&&!1===r[i].isFull){const r=n.getAttribute("data-original-width");e.removeAttribute("is-full"),r&&(n.style.width=r,n.removeAttribute("data-original-width"))}}))};function Q(e){e.classList.remove("highlight-element"),e.ariaPressed="false"}function Y(e){if(!e)return;e.classList.add("speaking-highlight");const r="#speaking-highlight-style";if(!document.querySelector(r)){const t=document.createElement("style");t.id=r,t.innerHTML=`\n .speaking-highlight {\n --base-transform: ${e.style.transform};\n box-shadow: 0 0 20px 10px rgba(255, 165, 0, 0.9) !important; /* Stronger orange glow effect */\n // border: 3px solid green !important;\n // transition: box-shadow 0.5s ease-in-out, transform 0.5s ease-in-out;\n // transform: scale(1.05); /* Subtle scale effect to pop the element */\n // animation: pulseEffect 1.5s infinite; /* Pulsing animation */\n \n }\n\n @keyframes pulseEffect {\n 0% {\n box-shadow: 0 0 20px 10px rgba(255, 165, 0, 0.9);\n // transform: var(--base-transform) scale(1.05);\n // background-color: #FFFF0B;\n }\n 50% {\n box-shadow: 0 0 30px 15px rgba(255, 165, 0, 1);\n // transform: var(--base-transform) scale(1.1);\n // background-color: #FFFF0B;\n }\n 100% {\n box-shadow: 0 0 20px 10px rgba(255, 165, 0, 0.9);\n // transform: var(--base-transform) scale(1.05);\n // background-color: #FFFF0B;\n }\n }\n `,document.head.appendChild(t)}}function K(e){e&&e.classList.remove("speaking-highlight")}function ee(){const e=document.querySelector(h);if(!e)return;const r=j();let t=Object.values(r).find((e=>!e.isFull));if(t){e.querySelectorAll('[type="drop"]').forEach((e=>{e.classList.remove("highlight-element")}));const r=e.querySelector(`#${t.drop}`);r&&r.classList.add("highlight-element");e.querySelectorAll('[type="drag"]').forEach(RA>2?e=>{e.classList.remove("highlight-element"),e.getAttribute("value")===r.getAttribute("value")&&(e.classList.add("highlight-element"),e.classList.remove("drag-element"))}:e=>{e.classList.remove("highlight-element"),e.classList.add("drag-element")})}else{if(RA<=2)return;e.querySelectorAll("[type='click']").forEach((r=>{r.getAttribute("value")===e.getAttribute("objective")&&(r.classList.contains("highlight-element")||r.classList.add("highlight-element"))}))}}class re{constructor(){this.audioElement=document.createElement("audio"),this.audioElement.id="audio",document.body.appendChild(this.audioElement),this.registerGlobalStopEvents()}static getI(){return re.instance||(re.instance=new re),re.instance}stop(){(null===window||void 0===window?void 0:window.speechSynthesis)&&window.speechSynthesis.cancel(),this.audioElement.pause(),this.audioElement.currentTime=0,this.audioElement.src="",document.querySelectorAll(".speaking-highlight").forEach((e=>K(e)));const e=document.querySelector("#play"),r=document.querySelector("#pause");e&&r&&(e.style.visibility="visible",r.style.visibility="hidden")}async play(e){try{await re.getI().stop()}catch(e){console.error("Error stopping audio before speak action:",e)}let r=e.getAttribute("audio")||"";if(!r){const t=e.children;for(let e=0;e<t.length;e++){const n=t[e].getAttribute("audio");if(n){r=n;break}}}if(r){r=ZA(r),this.audioElement.src=r,console.log("🚀 Playing audio:",this.audioElement.src);try{P(!0),Y(e),await this.audioElement.play(),await new Promise((e=>{this.audioElement.onended=()=>{e()}}))}catch(e){console.log("🎧 Audio play error:",e)}finally{this.audioElement.onended=null,P(!1),K(e)}}else if(e.textContent)try{Y(e),await async function(e,r){return new Promise(((t,n)=>{if(!("speechSynthesis"in window))return void n(new Error("Speech synthesis is not supported in this browser."));const i=window.speechSynthesis;setTimeout((()=>{const n=new SpeechSynthesisUtterance(e);n.onend=()=>{t(!0)},i.speak(n),i.speaking||K(r)}),50)}))}(e.textContent,e),document.querySelectorAll(".speaking-highlight").forEach((e=>K(e)))}catch(e){console.log("🎧 TTS Error:",e)}finally{P(!1)}}registerGlobalStopEvents(){[o,u,a,s,i,c,f].forEach((e=>{window.addEventListener(e,(()=>this.stop()))}))}destroy(){console.log("AudioPlayer destroyed (hot-reload safe)"),this.stop(),this.audioElement.parentNode&&this.audioElement.parentNode.removeChild(this.audioElement),re.instance=void 0}}let te;const ne=e=>{const r=document.createElement("div");if("option"===e.getAttribute("type"))return r.style.width=e.style.width,r.style.height=e.style.height,r;const t=e.style.width,n=e.style.padding;return e.style.width="auto",e.style.padding="0 20px",r.style.width=`${e.offsetWidth+20}px`,r.style.height=`${e.offsetHeight+20}px`,r.style.border="1px solid",r.style.backgroundColor="#00000021",r.style.borderRadius="10px",e.style.width=t,e.style.padding=n,r.setAttribute("value",`${e.getAttribute("value")}`),r};const ie=e=>{e.style.opacity="",e.style.cursor="move",e.style.zIndex="",e.style.transform="",e.style.position="",e.style.left="",e.style.top=""};function ae(e,r){const t=Array.from(document.querySelectorAll(`[type="${r}"]`));let n=0,i=null;const a=e.getBoundingClientRect();for(const r of t){if(r===e)continue;const t=ue(a,r.getBoundingClientRect());t>n&&(n=t,i=r)}return i}function oe(e){return e instanceof MouseEvent?{clientX:e.clientX,clientY:e.clientY}:{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}}function ue(e,r){return Math.max(0,Math.min(e.right,r.right)-Math.max(e.left,r.left))*Math.max(0,Math.min(e.bottom,r.bottom)-Math.max(e.top,r.top))}const se=(e,r)=>{var n;console.log("worddrop");const i=document.getElementById(h),a=i.getAttribute("objective").split(",");let o=JSON.parse(null!==(n=i.getAttribute(t))&&void 0!==n?n:"[]");o=Array.from(e.children).map((e=>e.getAttribute("value"))),i.setAttribute(t,JSON.stringify(o));const u=o.indexOf(r.value);if(u>=0){const e=zA(r.value,[a[u].trim()]);!e&&i.getAttribute("is-allow-only-correct")&&Array.from(i.querySelectorAll(`[value="${r.value}"]`)).find((e=>e!==r)).replaceWith(r),jA(e),LA()}};async function ce(e,r){e.classList.add("dropped");let t=FA(),n=t[r.getAttribute("tab-index")];if(!Array.isArray(n)||!n.includes(e.value)){for(const r in t){const n=t[r].indexOf(e.value);-1!==n&&t[r].splice(n,1)}(null==r?void 0:r.id)&&e.setAttribute(d,r.id),await $A(e,r)}}const fe=e=>new Promise((r=>setTimeout(r,e))),le=async()=>{const e=document.getElementById(h);if(!e)return;e.style.pointerEvents="none";const r=Array.from(e.querySelectorAll('[type="slide"]')),t=U(e),n=r.length,i=n%2==0?n:n-1;for(let e=0;e<i;e+=2){const n=r[e],i=r[e+1],a=n.getBoundingClientRect(),o=i.getBoundingClientRect(),u=(o.left+o.width/2-(a.left+a.width/2))/t,s=(o.top+o.height/2-(a.top+a.height/2))/t;n.style.transition=i.style.transition="transform 0.5s ease",n.style.transform=`translate(${u}px, ${s}px)`,i.style.transform=`translate(${-u}px, ${-s}px)`}await fe(800);for(let e=0;e<i;e++)r[e].style.transform="translate(0, 0)";await fe(500);for(let e=0;e<i;e++)r[e].style.transition="";e.style.pointerEvents=""};var me="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function de(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pe={exports:{}};pe.exports=function(){function e(r){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(r)}var r=/^\s+/,t=/\s+$/;function n(i,a){if(a=a||{},(i=i||"")instanceof n)return i;if(!(this instanceof n))return new n(i,a);var o=function(n){var i={r:0,g:0,b:0},a=1,o=null,u=null,s=null,c=!1,f=!1;return"string"==typeof n&&(n=function(e){e=e.replace(r,"").replace(t,"").toLowerCase();var n,i=!1;if(b[e])e=b[e],i=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(n=O.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=O.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=O.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=O.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=O.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=O.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=O.hex8.exec(e))?{r:M(n[1]),g:M(n[2]),b:M(n[3]),a:F(n[4]),format:i?"name":"hex8"}:(n=O.hex6.exec(e))?{r:M(n[1]),g:M(n[2]),b:M(n[3]),format:i?"name":"hex"}:(n=O.hex4.exec(e))?{r:M(n[1]+""+n[1]),g:M(n[2]+""+n[2]),b:M(n[3]+""+n[3]),a:F(n[4]+""+n[4]),format:i?"name":"hex8"}:!!(n=O.hex3.exec(e))&&{r:M(n[1]+""+n[1]),g:M(n[2]+""+n[2]),b:M(n[3]+""+n[3]),format:i?"name":"hex"}}(n)),"object"==e(n)&&(k(n.r)&&k(n.g)&&k(n.b)?(l=n.r,m=n.g,d=n.b,i={r:255*N(l,255),g:255*N(m,255),b:255*N(d,255)},c=!0,f="%"===String(n.r).substr(-1)?"prgb":"rgb"):k(n.h)&&k(n.s)&&k(n.v)?(o=E(n.s),u=E(n.v),i=function(e,r,t){e=6*N(e,360),r=N(r,100),t=N(t,100);var n=Math.floor(e),i=e-n,a=t*(1-r),o=t*(1-i*r),u=t*(1-(1-i)*r),s=n%6;return{r:255*[t,o,a,a,u,t][s],g:255*[u,t,t,o,a,a][s],b:255*[a,a,u,t,t,o][s]}}(n.h,o,u),c=!0,f="hsv"):k(n.h)&&k(n.s)&&k(n.l)&&(o=E(n.s),s=E(n.l),i=function(e,r,t){var n,i,a;function o(e,r,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+6*(r-e)*t:t<.5?r:t<2/3?e+(r-e)*(2/3-t)*6:e}if(e=N(e,360),r=N(r,100),t=N(t,100),0===r)n=i=a=t;else{var u=t<.5?t*(1+r):t+r-t*r,s=2*t-u;n=o(s,u,e+1/3),i=o(s,u,e),a=o(s,u,e-1/3)}return{r:255*n,g:255*i,b:255*a}}(n.h,o,s),c=!0,f="hsl"),n.hasOwnProperty("a")&&(a=n.a)),a=D(a),{ok:c,format:n.format||f,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a};var l,m,d}(i);this._originalInput=i,this._r=o.r,this._g=o.g,this._b=o.b,this._a=o.a,this._roundA=Math.round(100*this._a)/100,this._format=a.format||o.format,this._gradientType=a.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=o.ok}function i(e,r,t){e=N(e,255),r=N(r,255),t=N(t,255);var n,i,a=Math.max(e,r,t),o=Math.min(e,r,t),u=(a+o)/2;if(a==o)n=i=0;else{var s=a-o;switch(i=u>.5?s/(2-a-o):s/(a+o),a){case e:n=(r-t)/s+(r<t?6:0);break;case r:n=(t-e)/s+2;break;case t:n=(e-r)/s+4}n/=6}return{h:n,s:i,l:u}}function a(e,r,t){e=N(e,255),r=N(r,255),t=N(t,255);var n,i,a=Math.max(e,r,t),o=Math.min(e,r,t),u=a,s=a-o;if(i=0===a?0:s/a,a==o)n=0;else{switch(a){case e:n=(r-t)/s+(r<t?6:0);break;case r:n=(t-e)/s+2;break;case t:n=(e-r)/s+4}n/=6}return{h:n,s:i,v:u}}function o(e,r,t,n){var i=[C(Math.round(e).toString(16)),C(Math.round(r).toString(16)),C(Math.round(t).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function u(e,r,t,n){return[C(S(n)),C(Math.round(e).toString(16)),C(Math.round(r).toString(16)),C(Math.round(t).toString(16))].join("")}function s(e,r){r=0===r?0:r||10;var t=n(e).toHsl();return t.s-=r/100,t.s=A(t.s),n(t)}function c(e,r){r=0===r?0:r||10;var t=n(e).toHsl();return t.s+=r/100,t.s=A(t.s),n(t)}function f(e){return n(e).desaturate(100)}function l(e,r){r=0===r?0:r||10;var t=n(e).toHsl();return t.l+=r/100,t.l=A(t.l),n(t)}function m(e,r){r=0===r?0:r||10;var t=n(e).toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(-r/100*255))),t.g=Math.max(0,Math.min(255,t.g-Math.round(-r/100*255))),t.b=Math.max(0,Math.min(255,t.b-Math.round(-r/100*255))),n(t)}function d(e,r){r=0===r?0:r||10;var t=n(e).toHsl();return t.l-=r/100,t.l=A(t.l),n(t)}function p(e,r){var t=n(e).toHsl(),i=(t.h+r)%360;return t.h=i<0?360+i:i,n(t)}function h(e){var r=n(e).toHsl();return r.h=(r.h+180)%360,n(r)}function v(e,r){if(isNaN(r)||r<=0)throw new Error("Argument to polyad must be a positive number");for(var t=n(e).toHsl(),i=[n(e)],a=360/r,o=1;o<r;o++)i.push(n({h:(t.h+o*a)%360,s:t.s,l:t.l}));return i}function y(e){var r=n(e).toHsl(),t=r.h;return[n(e),n({h:(t+72)%360,s:r.s,l:r.l}),n({h:(t+216)%360,s:r.s,l:r.l})]}function g(e,r,t){r=r||6,t=t||30;var i=n(e).toHsl(),a=360/t,o=[n(e)];for(i.h=(i.h-(a*r>>1)+720)%360;--r;)i.h=(i.h+a)%360,o.push(n(i));return o}function x(e,r){r=r||6;for(var t=n(e).toHsv(),i=t.h,a=t.s,o=t.v,u=[],s=1/r;r--;)u.push(n({h:i,s:a,v:o})),o=(o+s)%1;return u}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,r,t,n=this.toRgb();return r=n.g/255,t=n.b/255,.2126*((e=n.r/255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))},setAlpha:function(e){return this._a=D(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=a(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=a(this._r,this._g,this._b),r=Math.round(360*e.h),t=Math.round(100*e.s),n=Math.round(100*e.v);return 1==this._a?"hsv("+r+", "+t+"%, "+n+"%)":"hsva("+r+", "+t+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=i(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=i(this._r,this._g,this._b),r=Math.round(360*e.h),t=Math.round(100*e.s),n=Math.round(100*e.l);return 1==this._a?"hsl("+r+", "+t+"%, "+n+"%)":"hsla("+r+", "+t+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return o(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,r,t,n,i){var a=[C(Math.round(e).toString(16)),C(Math.round(r).toString(16)),C(Math.round(t).toString(16)),C(S(n))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*N(this._r,255))+"%",g:Math.round(100*N(this._g,255))+"%",b:Math.round(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*N(this._r,255))+"%, "+Math.round(100*N(this._g,255))+"%, "+Math.round(100*N(this._b,255))+"%)":"rgba("+Math.round(100*N(this._r,255))+"%, "+Math.round(100*N(this._g,255))+"%, "+Math.round(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(w[o(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var r="#"+u(this._r,this._g,this._b,this._a),t=r,i=this._gradientType?"GradientType = 1, ":"";if(e){var a=n(e);t="#"+u(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+r+",endColorstr="+t+")"},toString:function(e){var r=!!e;e=e||this._format;var t=!1;return r||!(this._a<1&&this._a>=0)||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(t=this.toRgbString()),"prgb"===e&&(t=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(t=this.toHexString()),"hex3"===e&&(t=this.toHexString(!0)),"hex4"===e&&(t=this.toHex8String(!0)),"hex8"===e&&(t=this.toHex8String()),"name"===e&&(t=this.toName()),"hsl"===e&&(t=this.toHslString()),"hsv"===e&&(t=this.toHsvString()),t||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return n(this.toString())},_applyModification:function(e,r){var t=e.apply(null,[this].concat([].slice.call(r)));return this._r=t._r,this._g=t._g,this._b=t._b,this.setAlpha(t._a),this},lighten:function(){return this._applyModification(l,arguments)},brighten:function(){return this._applyModification(m,arguments)},darken:function(){return this._applyModification(d,arguments)},desaturate:function(){return this._applyModification(s,arguments)},saturate:function(){return this._applyModification(c,arguments)},greyscale:function(){return this._applyModification(f,arguments)},spin:function(){return this._applyModification(p,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(g,arguments)},complement:function(){return this._applyCombination(h,arguments)},monochromatic:function(){return this._applyCombination(x,arguments)},splitcomplement:function(){return this._applyCombination(y,arguments)},triad:function(){return this._applyCombination(v,[3])},tetrad:function(){return this._applyCombination(v,[4])}},n.fromRatio=function(r,t){if("object"==e(r)){var i={};for(var a in r)r.hasOwnProperty(a)&&(i[a]="a"===a?r[a]:E(r[a]));r=i}return n(r,t)},n.equals=function(e,r){return!(!e||!r)&&n(e).toRgbString()==n(r).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},n.mix=function(e,r,t){t=0===t?0:t||50;var i=n(e).toRgb(),a=n(r).toRgb(),o=t/100;return n({r:(a.r-i.r)*o+i.r,g:(a.g-i.g)*o+i.g,b:(a.b-i.b)*o+i.b,a:(a.a-i.a)*o+i.a})},n.readability=function(e,r){var t=n(e),i=n(r);return(Math.max(t.getLuminance(),i.getLuminance())+.05)/(Math.min(t.getLuminance(),i.getLuminance())+.05)},n.isReadable=function(e,r,t){var i,a,o=n.readability(e,r);switch(a=!1,(i=function(e){var r,t;return"AA"!==(r=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==r&&(r="AA"),"small"!==(t=(e.size||"small").toLowerCase())&&"large"!==t&&(t="small"),{level:r,size:t}}(t)).level+i.size){case"AAsmall":case"AAAlarge":a=o>=4.5;break;case"AAlarge":a=o>=3;break;case"AAAsmall":a=o>=7}return a},n.mostReadable=function(e,r,t){var i,a,o,u,s=null,c=0;a=(t=t||{}).includeFallbackColors,o=t.level,u=t.size;for(var f=0;f<r.length;f++)(i=n.readability(e,r[f]))>c&&(c=i,s=n(r[f]));return n.isReadable(e,s,{level:o,size:u})||!a?s:(t.includeFallbackColors=!1,n.mostReadable(e,["#fff","#000"],t))};var b=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},w=n.hexNames=function(e){var r={};for(var t in e)e.hasOwnProperty(t)&&(r[e[t]]=t);return r}(b);function D(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,r){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var t=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(r,Math.max(0,parseFloat(e))),t&&(e=parseInt(e*r,10)/100),Math.abs(e-r)<1e-6?1:e%r/parseFloat(r)}function A(e){return Math.min(1,Math.max(0,e))}function M(e){return parseInt(e,16)}function C(e){return 1==e.length?"0"+e:""+e}function E(e){return e<=1&&(e=100*e+"%"),e}function S(e){return Math.round(255*parseFloat(e)).toString(16)}function F(e){return M(e)/255}var B,q,T,O=(q="[\\s|\\(]+("+(B="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",T="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",{CSS_UNIT:new RegExp(B),rgb:new RegExp("rgb"+q),rgba:new RegExp("rgba"+T),hsl:new RegExp("hsl"+q),hsla:new RegExp("hsla"+T),hsv:new RegExp("hsv"+q),hsva:new RegExp("hsva"+T),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function k(e){return!!O.CSS_UNIT.exec(e)}return n}();const he=pe.exports;var ve={exports:{}};!function(e){function r(){return e.exports=r=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,r.apply(null,arguments)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(ve);const ye=de(ve.exports);var ge={relTol:1e-12,absTol:1e-15,matrix:"Matrix",number:"number",numberFallback:"number",precision:64,predictable:!1,randomSeed:null};function xe(e,r){if(we(e,r))return e[r];if("function"==typeof e[r]&&De(e,r))throw new Error('Cannot access method "'+r+'" as a property');throw new Error('No access to property "'+r+'"')}function be(e,r,t){if(we(e,r))return e[r]=t,t;throw new Error('No access to property "'+r+'"')}function we(e,r){return!(!function(e){return"object"==typeof e&&e&&e.constructor===Object}(e)&&!Array.isArray(e)||!Dr(Ne,r)&&(r in Object.prototype||r in Function.prototype))}function De(e,r){return!(null==e||"function"!=typeof e[r]||Dr(e,r)&&Object.getPrototypeOf&&r in Object.getPrototypeOf(e)||!Dr(Ae,r)&&(r in Object.prototype||r in Function.prototype))}var Ne={length:!0,name:!0},Ae={toString:!0,valueOf:!0,toLocaleString:!0};class Me{constructor(e){this.wrappedObject=e,this[Symbol.iterator]=this.entries}keys(){return Object.keys(this.wrappedObject).filter((e=>this.has(e))).values()}get(e){return xe(this.wrappedObject,e)}set(e,r){return be(this.wrappedObject,e,r),this}has(e){return we(this.wrappedObject,e)&&e in this.wrappedObject}entries(){return Ee(this.keys(),(e=>[e,this.get(e)]))}forEach(e){for(var r of this.keys())e(this.get(r),r,this)}delete(e){we(this.wrappedObject,e)&&delete this.wrappedObject[e]}clear(){for(var e of this.keys())this.delete(e)}get size(){return Object.keys(this.wrappedObject).length}}class Ce{constructor(e,r,t){this.a=e,this.b=r,this.bKeys=t,this[Symbol.iterator]=this.entries}get(e){return this.bKeys.has(e)?this.b.get(e):this.a.get(e)}set(e,r){return this.bKeys.has(e)?this.b.set(e,r):this.a.set(e,r),this}has(e){return this.b.has(e)||this.a.has(e)}keys(){return new Set([...this.a.keys(),...this.b.keys()])[Symbol.iterator]()}entries(){return Ee(this.keys(),(e=>[e,this.get(e)]))}forEach(e){for(var r of this.keys())e(this.get(r),r,this)}delete(e){return this.bKeys.has(e)?this.b.delete(e):this.a.delete(e)}clear(){this.a.clear(),this.b.clear()}get size(){return[...this.keys()].length}}function Ee(e,r){return{next:()=>{var t=e.next();return t.done?t:{value:r(t.value),done:!1}}}}function Se(){return new Map}function Fe(e){if(!e)return Se();if(Qe(e))return e;if(Xe(e))return new Me(e);throw new Error("createMap can create maps from objects or Maps")}function Be(e){return"number"==typeof e}function qe(e){return!(!e||"object"!=typeof e||"function"!=typeof e.constructor)&&(!0===e.isBigNumber&&"object"==typeof e.constructor.prototype&&!0===e.constructor.prototype.isBigNumber||"function"==typeof e.constructor.isDecimal&&!0===e.constructor.isDecimal(e))}function Te(e){return"bigint"==typeof e}function Oe(e){return e&&"object"==typeof e&&!0===Object.getPrototypeOf(e).isComplex||!1}function ke(e){return e&&"object"==typeof e&&!0===Object.getPrototypeOf(e).isFraction||!1}function ze(e){return e&&!0===e.constructor.prototype.isUnit||!1}function Ie(e){return"string"==typeof e}var Re=Array.isArray;function je(e){return e&&!0===e.constructor.prototype.isMatrix||!1}function Ue(e){return Array.isArray(e)||je(e)}function $e(e){return e&&e.isDenseMatrix&&!0===e.constructor.prototype.isMatrix||!1}function Pe(e){return e&&e.isSparseMatrix&&!0===e.constructor.prototype.isMatrix||!1}function Le(e){return e&&!0===e.constructor.prototype.isRange||!1}function _e(e){return e&&!0===e.constructor.prototype.isIndex||!1}function Je(e){return"boolean"==typeof e}function We(e){return e&&!0===e.constructor.prototype.isResultSet||!1}function Ve(e){return e&&!0===e.constructor.prototype.isHelp||!1}function He(e){return"function"==typeof e}function Ze(e){return e instanceof Date}function Ge(e){return e instanceof RegExp}function Xe(e){return!(!e||"object"!=typeof e||e.constructor!==Object||Oe(e)||ke(e))}function Qe(e){return!!e&&(e instanceof Map||e instanceof Me||"function"==typeof e.set&&"function"==typeof e.get&&"function"==typeof e.keys&&"function"==typeof e.has)}function Ye(e){return null===e}function Ke(e){return void 0===e}function er(e){return e&&!0===e.isAccessorNode&&!0===e.constructor.prototype.isNode||!1}function rr(e){return e&&!0===e.isArrayNode&&!0===e.constructor.prototype.isNode||!1}function tr(e){return e&&!0===e.isAssignmentNode&&!0===e.constructor.prototype.isNode||!1}function nr(e){return e&&!0===e.isBlockNode&&!0===e.constructor.prototype.isNode||!1}function ir(e){return e&&!0===e.isConditionalNode&&!0===e.constructor.prototype.isNode||!1}function ar(e){return e&&!0===e.isConstantNode&&!0===e.constructor.prototype.isNode||!1}function or(e){return ar(e)||mr(e)&&1===e.args.length&&ar(e.args[0])&&"-+~".includes(e.op)}function ur(e){return e&&!0===e.isFunctionAssignmentNode&&!0===e.constructor.prototype.isNode||!1}function sr(e){return e&&!0===e.isFunctionNode&&!0===e.constructor.prototype.isNode||!1}function cr(e){return e&&!0===e.isIndexNode&&!0===e.constructor.prototype.isNode||!1}function fr(e){return e&&!0===e.isNode&&!0===e.constructor.prototype.isNode||!1}function lr(e){return e&&!0===e.isObjectNode&&!0===e.constructor.prototype.isNode||!1}function mr(e){return e&&!0===e.isOperatorNode&&!0===e.constructor.prototype.isNode||!1}function dr(e){return e&&!0===e.isParenthesisNode&&!0===e.constructor.prototype.isNode||!1}function pr(e){return e&&!0===e.isRangeNode&&!0===e.constructor.prototype.isNode||!1}function hr(e){return e&&!0===e.isRelationalNode&&!0===e.constructor.prototype.isNode||!1}function vr(e){return e&&!0===e.isSymbolNode&&!0===e.constructor.prototype.isNode||!1}function yr(e){return e&&!0===e.constructor.prototype.isChain||!1}function gr(e){var r=typeof e;return"object"===r?null===e?"null":qe(e)?"BigNumber":e.constructor&&e.constructor.name?e.constructor.name:"Object":r}function xr(e){var r=typeof e;if("number"===r||"bigint"===r||"string"===r||"boolean"===r||null==e)return e;if("function"==typeof e.clone)return e.clone();if(Array.isArray(e))return e.map((function(e){return xr(e)}));if(e instanceof Date)return new Date(e.valueOf());if(qe(e))return e;if(Xe(e))return function(e,r){var t={};for(var n in e)Dr(e,n)&&(t[n]=r(e[n]));return t}(e,xr);if("function"===r)return e;throw new TypeError("Cannot clone: unknown type of value (value: ".concat(e,")"))}function br(e,r){for(var t in r)Dr(r,t)&&(e[t]=r[t]);return e}function wr(e,r){var t,n,i;if(Array.isArray(e)){if(!Array.isArray(r))return!1;if(e.length!==r.length)return!1;for(n=0,i=e.length;n<i;n++)if(!wr(e[n],r[n]))return!1;return!0}if("function"==typeof e)return e===r;if(e instanceof Object){if(Array.isArray(r)||!(r instanceof Object))return!1;for(t in e)if(!(t in r)||!wr(e[t],r[t]))return!1;for(t in r)if(!(t in e))return!1;return!0}return e===r}function Dr(e,r){return e&&Object.hasOwnProperty.call(e,r)}var Nr=function(e){if(e)throw new Error("The global config is readonly. \nPlease create a mathjs instance if you want to change the default configuration. \nExample:\n\n import { create, all } from 'mathjs';\n const mathjs = create(all);\n mathjs.config({ number: 'BigNumber' });\n");return Object.freeze(ge)};ye(Nr,ge,{MATRIX_OPTIONS:["Matrix","Array"],NUMBER_OPTIONS:["number","BigNumber","Fraction"]});var Ar={exports:{}};Ar.exports=function(){function e(){return!0}function r(){return!1}function t(){}const n="Argument is not a typed-function.";var i=function i(){function a(e){return"object"==typeof e&&null!==e&&e.constructor===Object}const o=[{name:"number",test:function(e){return"number"==typeof e}},{name:"string",test:function(e){return"string"==typeof e}},{name:"boolean",test:function(e){return"boolean"==typeof e}},{name:"Function",test:function(e){return"function"==typeof e}},{name:"Array",test:Array.isArray},{name:"Date",test:function(e){return e instanceof Date}},{name:"RegExp",test:function(e){return e instanceof RegExp}},{name:"Object",test:a},{name:"null",test:function(e){return null===e}},{name:"undefined",test:function(e){return void 0===e}}],u={name:"any",test:e,isAny:!0};let s,c,f=0,l={createCount:0};function m(e){const r=s.get(e);if(r)return r;let t='Unknown type "'+e+'"';const n=e.toLowerCase();let i;for(i of c)if(i.toLowerCase()===n){t+='. Did you mean "'+i+'" ?';break}throw new TypeError(t)}function d(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"any";const t=r?m(r).index:c.length,n=[];for(let r=0;r<e.length;++r){if(!e[r]||"string"!=typeof e[r].name||"function"!=typeof e[r].test)throw new TypeError("Object with properties {name: string, test: function} expected");const i=e[r].name;if(s.has(i))throw new TypeError('Duplicate type name "'+i+'"');n.push(i),s.set(i,{name:i,test:e[r].test,isAny:e[r].isAny,index:t+r,conversionsTo:[]})}const i=c.slice(t);c=c.slice(0,t).concat(n).concat(i);for(let e=t+n.length;e<c.length;++e)s.get(c[e]).index=e}function p(){s=new Map,c=[],f=0,d([u],!1)}function h(e){const r=c.filter((r=>{const t=s.get(r);return!t.isAny&&t.test(e)}));return r.length?r:["any"]}function v(e){return e&&"function"==typeof e&&"_typedFunctionData"in e}function y(e,r,t){if(!v(e))throw new TypeError(n);const i=t&&t.exact,a=D(Array.isArray(r)?r.join(","):r),o=g(a);if(!i||o in e.signatures){const r=e._typedFunctionData.signatureMap.get(o);if(r)return r}const u=a.length;let s,c;if(i){let r;for(r in s=[],e.signatures)s.push(e._typedFunctionData.signatureMap.get(r))}else s=e._typedFunctionData.signatures;for(let e=0;e<u;++e){const r=a[e],t=[];let n;for(n of s){const i=C(n.params,e);if(i&&(!r.restParam||i.restParam)){if(!i.hasAny){const e=w(i);if(r.types.some((r=>!e.has(r.name))))continue}t.push(n)}}if(s=t,0===s.length)break}for(c of s)if(c.params.length<=u)return c;throw new TypeError("Signature not found (signature: "+(e.name||"unnamed")+"("+g(a,", ")+"))")}function g(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";return e.map((e=>e.name)).join(r)}function x(e){const r=0===e.indexOf("..."),t=(r?e.length>3?e.slice(3):"any":e).split("|").map((e=>m(e.trim())));let n=!1,i=r?"...":"";return{types:t.map((function(e){return n=e.isAny||n,i+=e.name+"|",{name:e.name,typeIndex:e.index,test:e.test,isAny:e.isAny,conversion:null,conversionIndex:-1}})),name:i.slice(0,-1),hasAny:n,hasConversion:!1,restParam:r}}function b(e){const r=function(e){if(0===e.length)return[];const r=e.map(m);e.length>1&&r.sort(((e,r)=>e.index-r.index));let t=r[0].conversionsTo;if(1===e.length)return t;t=t.concat([]);const n=new Set(e);for(let e=1;e<r.length;++e){let i;for(i of r[e].conversionsTo)n.has(i.from)||(t.push(i),n.add(i.from))}return t}(e.types.map((e=>e.name)));let t=e.hasAny,n=e.name;const i=r.map((function(e){const r=m(e.from);return t=r.isAny||t,n+="|"+e.from,{name:e.from,typeIndex:r.index,test:r.test,isAny:r.isAny,conversion:e,conversionIndex:e.index}}));return{types:e.types.concat(i),name:n,hasAny:t,hasConversion:i.length>0,restParam:e.restParam}}function w(e){return e.typeSet||(e.typeSet=new Set,e.types.forEach((r=>e.typeSet.add(r.name)))),e.typeSet}function D(e){const r=[];if("string"!=typeof e)throw new TypeError("Signatures must be strings");const t=e.trim();if(""===t)return r;const n=t.split(",");for(let e=0;e<n.length;++e){const t=x(n[e].trim());if(t.restParam&&e!==n.length-1)throw new SyntaxError('Unexpected rest parameter "'+n[e]+'": only allowed for the last parameter');if(0===t.types.length)return null;r.push(t)}return r}function N(e){const r=J(e);return!!r&&r.restParam}function A(r){if(r&&0!==r.types.length){if(1===r.types.length)return m(r.types[0].name).test;if(2===r.types.length){const e=m(r.types[0].name).test,t=m(r.types[1].name).test;return function(r){return e(r)||t(r)}}{const e=r.types.map((function(e){return m(e.name).test}));return function(r){for(let t=0;t<e.length;t++)if(e[t](r))return!0;return!1}}}return e}function M(e){let r,t,n;if(N(e)){r=_(e).map(A);const t=r.length,n=A(J(e)),i=function(e){for(let r=t;r<e.length;r++)if(!n(e[r]))return!1;return!0};return function(e){for(let t=0;t<r.length;t++)if(!r[t](e[t]))return!1;return i(e)&&e.length>=t+1}}return 0===e.length?function(e){return 0===e.length}:1===e.length?(t=A(e[0]),function(e){return t(e[0])&&1===e.length}):2===e.length?(t=A(e[0]),n=A(e[1]),function(e){return t(e[0])&&n(e[1])&&2===e.length}):(r=e.map(A),function(e){for(let t=0;t<r.length;t++)if(!r[t](e[t]))return!1;return e.length===r.length})}function C(e,r){return r<e.length?e[r]:N(e)?J(e):null}function E(e,r){const t=C(e,r);return t?w(t):new Set}function S(e){return null==e.conversion}function F(e,r){const t=new Set;return e.forEach((e=>{const n=E(e.params,r);let i;for(i of n)t.add(i)})),t.has("any")?["any"]:Array.from(t)}function B(e,r,t){let n,i;const a=e||"unnamed";let o,u=t;for(o=0;o<r.length;o++){const e=[];if(u.forEach((t=>{const n=A(C(t.params,o));(o<t.params.length||N(t.params))&&n(r[o])&&e.push(t)})),0===e.length){if(i=F(u,o),i.length>0){const e=h(r[o]);return n=new TypeError("Unexpected type of argument in function "+a+" (expected: "+i.join(" or ")+", actual: "+e.join(" | ")+", index: "+o+")"),n.data={category:"wrongType",fn:a,index:o,actual:e,expected:i},n}}else u=e}const s=u.map((function(e){return N(e.params)?1/0:e.params.length}));if(r.length<Math.min.apply(null,s))return i=F(u,o),n=new TypeError("Too few arguments in function "+a+" (expected: "+i.join(" or ")+", index: "+r.length+")"),n.data={category:"tooFewArgs",fn:a,index:r.length,expected:i},n;const c=Math.max.apply(null,s);if(r.length>c)return n=new TypeError("Too many arguments in function "+a+" (expected: "+c+", actual: "+r.length+")"),n.data={category:"tooManyArgs",fn:a,index:r.length,expectedLength:c},n;const f=[];for(let e=0;e<r.length;++e)f.push(h(r[e]).join("|"));return n=new TypeError('Arguments of type "'+f.join(", ")+'" do not match any of the defined signatures of function '+a+"."),n.data={category:"mismatch",actual:f},n}function q(e){let r=c.length+1;for(let t=0;t<e.types.length;t++)S(e.types[t])&&(r=Math.min(r,e.types[t].typeIndex));return r}function T(e){let r=f+1;for(let t=0;t<e.types.length;t++)S(e.types[t])||(r=Math.min(r,e.types[t].conversionIndex));return r}function O(e,r){if(e.hasAny){if(!r.hasAny)return 1}else if(r.hasAny)return-1;if(e.restParam){if(!r.restParam)return 1}else if(r.restParam)return-1;if(e.hasConversion){if(!r.hasConversion)return 1}else if(r.hasConversion)return-1;const t=q(e)-q(r);if(t<0)return-1;if(t>0)return 1;const n=T(e)-T(r);return n<0?-1:n>0?1:0}function k(e,r){const t=e.params,n=r.params,i=J(t),a=J(n),o=N(t),u=N(n);if(o&&i.hasAny){if(!u||!a.hasAny)return 1}else if(u&&a.hasAny)return-1;let s,c=0,f=0;for(s of t)s.hasAny&&++c,s.hasConversion&&++f;let l=0,m=0;for(s of n)s.hasAny&&++l,s.hasConversion&&++m;if(c!==l)return c-l;if(o&&i.hasConversion){if(!u||!a.hasConversion)return 1}else if(u&&a.hasConversion)return-1;if(f!==m)return f-m;if(o){if(!u)return 1}else if(u)return-1;const d=(t.length-n.length)*(o?-1:1);if(0!==d)return d;const p=[];let h,v=0;for(let e=0;e<t.length;++e){const r=O(t[e],n[e]);p.push(r),v+=r}if(0!==v)return v;for(h of p)if(0!==h)return h;return 0}function z(e,r){let t=r;if(e.some((e=>e.hasConversion))){const n=N(e),i=e.map(I);t=function(){const e=[],t=n?arguments.length-1:arguments.length;for(let r=0;r<t;r++)e[r]=i[r](arguments[r]);return n&&(e[t]=arguments[t].map(i[t])),r.apply(this,e)}}let n=t;if(N(e)){const r=e.length-1;n=function(){return t.apply(this,W(arguments,0,r).concat([W(arguments,r)]))}}return n}function I(e){let r,t,n,i;const a=[],o=[];switch(e.types.forEach((function(e){e.conversion&&(a.push(m(e.conversion.from).test),o.push(e.conversion.convert))})),o.length){case 0:return function(e){return e};case 1:return r=a[0],n=o[0],function(e){return r(e)?n(e):e};case 2:return r=a[0],t=a[1],n=o[0],i=o[1],function(e){return r(e)?n(e):t(e)?i(e):e};default:return function(e){for(let r=0;r<o.length;r++)if(a[r](e))return o[r](e);return e}}}function R(e){return function e(r,t,n){if(t<r.length){const i=r[t];let a=[];if(i.restParam){const e=i.types.filter(S);e.length<i.types.length&&a.push({types:e,name:"..."+e.map((e=>e.name)).join("|"),hasAny:e.some((e=>e.isAny)),hasConversion:!1,restParam:!0}),a.push(i)}else a=i.types.map((function(e){return{types:[e],name:e.name,hasAny:e.isAny,hasConversion:e.conversion,restParam:!1}}));return Array.prototype.concat.apply([],a.map((function(i){return e(r,t+1,n.concat([i]))})))}return[n]}(e,0,[])}function j(e,r){const t=Math.max(e.length,r.length);for(let n=0;n<t;n++){const t=E(e,n),i=E(r,n);let a,o=!1;for(a of i)if(t.has(a)){o=!0;break}if(!o)return!1}const n=e.length,i=r.length,a=N(e),o=N(r);return a?o?n===i:i>=n:o?n>=i:n===i}function U(e,r,t){const n=[];let i;for(i of e){let e=t[i];if("number"!=typeof e)throw new TypeError('No definition for referenced signature "'+i+'"');if(e=r[e],"function"!=typeof e)return!1;n.push(e)}return n}function $(e,r,t){const n=function(e){return e.map((e=>G(e)?H(e.referToSelf.callback):Z(e)?V(e.referTo.references,e.referTo.callback):e))}(e),i=new Array(n.length).fill(!1);let a=!0;for(;a;){a=!1;let e=!0;for(let o=0;o<n.length;++o){if(i[o])continue;const u=n[o];if(G(u))n[o]=u.referToSelf.callback(t),n[o].referToSelf=u.referToSelf,i[o]=!0,e=!1;else if(Z(u)){const t=U(u.referTo.references,n,r);t?(n[o]=u.referTo.callback.apply(this,t),n[o].referTo=u.referTo,i[o]=!0,e=!1):a=!0}}if(e&&a)throw new SyntaxError("Circular reference detected in resolving typed.referTo")}return n}function P(e,n){if(l.createCount++,0===Object.keys(n).length)throw new SyntaxError("No signatures provided");l.warnAgainstDeprecatedThis&&function(e){const r=/\bthis(\(|\.signatures\b)/;Object.keys(e).forEach((t=>{if(r.test(e[t].toString()))throw new SyntaxError("Using `this` to self-reference a function is deprecated since typed-function@3. Use typed.referTo and typed.referToSelf instead.")}))}(n);const i=[],a=[],o={},u=[];let s;for(s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;const e=D(s);if(!e)continue;i.forEach((function(r){if(j(r,e))throw new TypeError('Conflicting signatures "'+g(r)+'" and "'+g(e)+'".')})),i.push(e);const r=a.length;a.push(n[s]);const t=e.map(b);let c;for(c of R(t)){const e=g(c);u.push({params:c,name:e,fn:r}),c.every((e=>!e.hasConversion))&&(o[e]=r)}}u.sort(k);const c=$(a,o,ue);let f;for(f in o)Object.prototype.hasOwnProperty.call(o,f)&&(o[f]=c[o[f]]);const m=[],d=new Map;for(f of u)d.has(f.name)||(f.fn=c[f.fn],m.push(f),d.set(f.name,f));const p=m[0]&&m[0].params.length<=2&&!N(m[0].params),h=m[1]&&m[1].params.length<=2&&!N(m[1].params),v=m[2]&&m[2].params.length<=2&&!N(m[2].params),y=m[3]&&m[3].params.length<=2&&!N(m[3].params),x=m[4]&&m[4].params.length<=2&&!N(m[4].params),w=m[5]&&m[5].params.length<=2&&!N(m[5].params),C=p&&h&&v&&y&&x&&w;for(let e=0;e<m.length;++e)m[e].test=M(m[e].params);const E=p?A(m[0].params[0]):r,S=h?A(m[1].params[0]):r,F=v?A(m[2].params[0]):r,B=y?A(m[3].params[0]):r,q=x?A(m[4].params[0]):r,T=w?A(m[5].params[0]):r,O=p?A(m[0].params[1]):r,I=h?A(m[1].params[1]):r,U=v?A(m[2].params[1]):r,P=y?A(m[3].params[1]):r,L=x?A(m[4].params[1]):r,_=w?A(m[5].params[1]):r;for(let e=0;e<m.length;++e)m[e].implementation=z(m[e].params,m[e].fn);const J=p?m[0].implementation:t,W=h?m[1].implementation:t,V=v?m[2].implementation:t,H=y?m[3].implementation:t,Z=x?m[4].implementation:t,G=w?m[5].implementation:t,X=p?m[0].params.length:-1,Q=h?m[1].params.length:-1,Y=v?m[2].params.length:-1,K=y?m[3].params.length:-1,ee=x?m[4].params.length:-1,re=w?m[5].params.length:-1,te=C?6:0,ne=m.length,ie=m.map((e=>e.test)),ae=m.map((e=>e.implementation)),oe=function(){for(let e=te;e<ne;e++)if(ie[e](arguments))return ae[e].apply(this,arguments);return l.onMismatch(e,arguments,m)};function ue(e,r){return arguments.length===X&&E(e)&&O(r)?J.apply(this,arguments):arguments.length===Q&&S(e)&&I(r)?W.apply(this,arguments):arguments.length===Y&&F(e)&&U(r)?V.apply(this,arguments):arguments.length===K&&B(e)&&P(r)?H.apply(this,arguments):arguments.length===ee&&q(e)&&L(r)?Z.apply(this,arguments):arguments.length===re&&T(e)&&_(r)?G.apply(this,arguments):oe.apply(this,arguments)}try{Object.defineProperty(ue,"name",{value:e})}catch(e){}return ue.signatures=o,ue._typedFunctionData={signatures:m,signatureMap:d},ue}function L(e,r,t){throw B(e,r,t)}function _(e){return W(e,0,e.length-1)}function J(e){return e[e.length-1]}function W(e,r,t){return Array.prototype.slice.call(e,r,t)}function V(e,r){return{referTo:{references:e,callback:r}}}function H(e){if("function"!=typeof e)throw new TypeError("Callback function expected as first argument");return{referToSelf:{callback:e}}}function Z(e){return e&&"object"==typeof e.referTo&&Array.isArray(e.referTo.references)&&"function"==typeof e.referTo.callback}function G(e){return e&&"object"==typeof e.referToSelf&&"function"==typeof e.referToSelf.callback}function X(e,r){if(!e)return r;if(r&&r!==e){const t=new Error("Function names do not match (expected: "+e+", actual: "+r+")");throw t.data={actual:r,expected:e},t}return e}function Q(e){let r;for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(v(e[t])||"string"==typeof e[t].signature)&&(r=X(r,e[t].name));return r}function Y(e,r){let t;for(t in r)if(Object.prototype.hasOwnProperty.call(r,t)){if(t in e&&r[t]!==e[t]){const n=new Error('Signature "'+t+'" is defined twice');throw n.data={signature:t,sourceFunction:r[t],destFunction:e[t]},n}e[t]=r[t]}}p(),d(o);const K=l;function ee(e){if(!e||"string"!=typeof e.from||"string"!=typeof e.to||"function"!=typeof e.convert)throw new TypeError("Object with properties {from: string, to: string, convert: function} expected");if(e.to===e.from)throw new SyntaxError('Illegal to define conversion from "'+e.from+'" to itself.')}return l=function(e){const r="string"==typeof e;let t=r?e:"";const n={};for(let e=r?1:0;e<arguments.length;++e){const i=arguments[e];let o,u={};if("function"==typeof i?(o=i.name,"string"==typeof i.signature?u[i.signature]=i:v(i)&&(u=i.signatures)):a(i)&&(u=i,r||(o=Q(i))),0===Object.keys(u).length){const r=new TypeError("Argument to 'typed' at index "+e+" is not a (typed) function, nor an object with signatures as keys and functions as values.");throw r.data={index:e,argument:i},r}r||(t=X(t,o)),Y(n,u)}return P(t||"",n)},l.create=i,l.createCount=K.createCount,l.onMismatch=L,l.throwMismatchError=L,l.createError=B,l.clear=p,l.clearConversions=function(){let e;for(e of c)s.get(e).conversionsTo=[];f=0},l.addTypes=d,l._findType=m,l.referTo=function(){const e=_(arguments).map((e=>g(D(e)))),r=J(arguments);if("function"!=typeof r)throw new TypeError("Callback function expected as last argument");return V(e,r)},l.referToSelf=H,l.convert=function(e,r){const t=m(r);if(t.test(e))return e;const n=t.conversionsTo;if(0===n.length)throw new Error("There are no conversions to "+r+" defined.");for(let r=0;r<n.length;r++)if(m(n[r].from).test(e))return n[r].convert(e);throw new Error("Cannot convert "+e+" to "+r)},l.findSignature=y,l.find=function(e,r,t){return y(e,r,t).implementation},l.isTypedFunction=v,l.warnAgainstDeprecatedThis=!0,l.addType=function(e,r){let t="any";!1!==r&&s.has("Object")&&(t="Object"),l.addTypes([e],t)},l.addConversion=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{override:!1};ee(e);const t=m(e.to),n=t.conversionsTo.find((r=>r.from===e.from));if(n){if(!r||!r.override)throw new Error('There is already a conversion from "'+e.from+'" to "'+t.name+'"');l.removeConversion({from:n.from,to:e.to,convert:n.convert})}t.conversionsTo.push({from:e.from,convert:e.convert,index:f++})},l.addConversions=function(e,r){e.forEach((e=>l.addConversion(e,r)))},l.removeConversion=function(e){ee(e);const r=m(e.to),t=function(e,r){for(let t=0;t<e.length;t++)if(r(e[t]))return e[t]}(r.conversionsTo,(r=>r.from===e.from));if(!t)throw new Error("Attempt to remove nonexistent conversion from "+e.from+" to "+e.to);if(t.convert!==e.convert)throw new Error("Conversion to remove does not match existing conversion");const n=r.conversionsTo.indexOf(t);r.conversionsTo.splice(n,1)},l.resolve=function(e,r){if(!v(e))throw new TypeError(n);const t=e._typedFunctionData.signatures;for(let e=0;e<t.length;++e)if(t[e].test(r))return t[e];return null},l}();return i}();const Mr=Ar.exports;function Cr(e,r,t,n){function i(n){var i=function(e,r){for(var t={},n=0;n<r.length;n++){var i=r[n],a=e[i];void 0!==a&&(t[i]=a)}return t}(n,r.map(Er));return function(e,r,t){if(!r.filter((e=>!function(e){return e&&"?"===e[0]}(e))).every((e=>void 0!==t[e]))){var n=r.filter((e=>void 0===t[e]));throw new Error('Cannot create function "'.concat(e,'", ')+"some dependencies are missing: ".concat(n.map((e=>'"'.concat(e,'"'))).join(", "),"."))}}(e,r,n),t(i)}return i.isFactory=!0,i.fn=e,i.dependencies=r.slice().sort(),n&&(i.meta=n),i}function Er(e){return e&&"?"===e[0]?e.slice(1):e}function Sr(e){return"boolean"==typeof e||!!isFinite(e)&&e===Math.round(e)}function Fr(e,r){if("bigint"===r.number)try{BigInt(e)}catch(e){return r.numberFallback}return r.number}var Br=Math.sign||function(e){return e>0?1:e<0?-1:0},qr=Math.log2||function(e){return Math.log(e)/Math.LN2},Tr=Math.log10||function(e){return Math.log(e)/Math.LN10},Or=Math.log1p||function(e){return Math.log(e+1)},kr=Math.cbrt||function(e){if(0===e)return e;var r,t=e<0;return t&&(e=-e),r=isFinite(e)?(e/((r=Math.exp(Math.log(e)/3))*r)+2*r)/3:e,t?-r:r},zr=Math.expm1||function(e){return e>=2e-4||e<=-2e-4?Math.exp(e)-1:e+e*e/2+e*e*e/6};function Ir(e,r,t){var n={2:"0b",8:"0o",16:"0x"}[r],i="";if(t){if(t<1)throw new Error("size must be in greater than 0");if(!Sr(t))throw new Error("size must be an integer");if(e>2**(t-1)-1||e<-(2**(t-1)))throw new Error("Value must be in range [-2^".concat(t-1,", 2^").concat(t-1,"-1]"));if(!Sr(e))throw new Error("Value must be an integer");e<0&&(e+=2**t),i="i".concat(t)}var a="";return e<0&&(e=-e,a="-"),"".concat(a).concat(n).concat(e.toString(r)).concat(i)}function Rr(e,r){if("function"==typeof r)return r(e);if(e===1/0)return"Infinity";if(e===-1/0)return"-Infinity";if(isNaN(e))return"NaN";var{notation:t,precision:n,wordSize:i}=jr(r);switch(t){case"fixed":return $r(e,n);case"exponential":return Pr(e,n);case"engineering":return function(e,r){if(isNaN(e)||!isFinite(e))return String(e);var t=Lr(Ur(e),r),n=t.exponent,i=t.coefficients,a=n%3==0?n:n<0?n-3-n%3:n-n%3;if(Be(r))for(;r>i.length||n-a+1>i.length;)i.push(0);else for(var o=Math.abs(n-a)-(i.length-1),u=0;u<o;u++)i.push(0);for(var s=Math.abs(n-a),c=1;s>0;)c++,s--;var f=i.slice(c).join(""),l=Be(r)&&f.length||f.match(/[1-9]/)?"."+f:"",m=i.slice(0,c).join("")+l+"e"+(n>=0?"+":"")+a.toString();return t.sign+m}(e,n);case"bin":return Ir(e,2,i);case"oct":return Ir(e,8,i);case"hex":return Ir(e,16,i);case"auto":return function(e,r,t){if(isNaN(e)||!isFinite(e))return String(e);var n=Yr(null==t?void 0:t.lowerExp,-3),i=Yr(null==t?void 0:t.upperExp,5),a=Ur(e),o=r?Lr(a,r):a;if(o.exponent<n||o.exponent>=i)return Pr(e,r);var u=o.coefficients,s=o.exponent;u.length<r&&(u=u.concat(_r(r-u.length))),u=u.concat(_r(s-u.length+1+(u.length<r?r-u.length:0)));var c=s>0?s:0;return c<(u=_r(-s).concat(u)).length-1&&u.splice(c+1,0,"."),o.sign+u.join("")}(e,n,r).replace(/((\.\d*?)(0+))($|e)/,(function(){var e=arguments[2],r=arguments[4];return"."!==e?e+r:r}));default:throw new Error('Unknown notation "'+t+'". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.')}}function jr(e){var r,t,n="auto";if(void 0!==e)if(Be(e))r=e;else if(qe(e))r=e.toNumber();else{if(!Xe(e))throw new Error("Unsupported type of options, number, BigNumber, or object expected");void 0!==e.precision&&(r=Qr(e.precision,(()=>{throw new Error('Option "precision" must be a number or BigNumber')}))),void 0!==e.wordSize&&(t=Qr(e.wordSize,(()=>{throw new Error('Option "wordSize" must be a number or BigNumber')}))),e.notation&&(n=e.notation)}return{notation:n,precision:r,wordSize:t}}function Ur(e){var r=String(e).toLowerCase().match(/^(-?)(\d+\.?\d*)(e([+-]?\d+))?$/);if(!r)throw new SyntaxError("Invalid number "+e);var t=r[1],n=r[2],i=parseFloat(r[4]||"0"),a=n.indexOf(".");i+=-1!==a?a-1:n.length-1;var o=n.replace(".","").replace(/^0*/,(function(e){return i-=e.length,""})).replace(/0*$/,"").split("").map((function(e){return parseInt(e)}));return 0===o.length&&(o.push(0),i++),{sign:t,coefficients:o,exponent:i}}function $r(e,r){if(isNaN(e)||!isFinite(e))return String(e);var t=Ur(e),n="number"==typeof r?Lr(t,t.exponent+1+r):t,i=n.coefficients,a=n.exponent+1,o=a+(r||0);return i.length<o&&(i=i.concat(_r(o-i.length))),a<0&&(i=_r(1-a).concat(i),a=1),a<i.length&&i.splice(a,0,0===a?"0.":"."),n.sign+i.join("")}function Pr(e,r){if(isNaN(e)||!isFinite(e))return String(e);var t=Ur(e),n=r?Lr(t,r):t,i=n.coefficients,a=n.exponent;i.length<r&&(i=i.concat(_r(r-i.length)));var o=i.shift();return n.sign+o+(i.length>0?"."+i.join(""):"")+"e"+(a>=0?"+":"")+a}function Lr(e,r){for(var t={sign:e.sign,coefficients:e.coefficients,exponent:e.exponent},n=t.coefficients;r<=0;)n.unshift(0),t.exponent++,r++;if(n.length>r&&n.splice(r,n.length-r)[0]>=5){var i=r-1;for(n[i]++;10===n[i];)n.pop(),0===i&&(n.unshift(0),t.exponent++,i++),n[--i]++}return t}function _r(e){for(var r=[],t=0;t<e;t++)r.push(0);return r}function Jr(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e-8,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(t<=0)throw new Error("Relative tolerance must be greater than 0");if(n<0)throw new Error("Absolute tolerance must be at least 0");return!isNaN(e)&&!isNaN(r)&&(isFinite(e)&&isFinite(r)?e===r||Math.abs(e-r)<=Math.max(t*Math.max(Math.abs(e),Math.abs(r)),n):e===r)}var Wr=Math.acosh||function(e){return Math.log(Math.sqrt(e*e-1)+e)},Vr=Math.asinh||function(e){return Math.log(Math.sqrt(e*e+1)+e)},Hr=Math.atanh||function(e){return Math.log((1+e)/(1-e))/2},Zr=Math.cosh||function(e){return(Math.exp(e)+Math.exp(-e))/2},Gr=Math.sinh||function(e){return(Math.exp(e)-Math.exp(-e))/2},Xr=Math.tanh||function(e){var r=Math.exp(2*e);return(r-1)/(r+1)};function Qr(e,r){return Be(e)?e:qe(e)?e.toNumber():void r()}function Yr(e,r){return Be(e)?e:qe(e)?e.toNumber():r}var Kr=function(){return Kr=Mr.create,Mr},et=Cr("typed",["?BigNumber","?Complex","?DenseMatrix","?Fraction"],(function(e){var{BigNumber:r,Complex:t,DenseMatrix:n,Fraction:i}=e,a=Kr();return a.clear(),a.addTypes([{name:"number",test:Be},{name:"Complex",test:Oe},{name:"BigNumber",test:qe},{name:"bigint",test:Te},{name:"Fraction",test:ke},{name:"Unit",test:ze},{name:"identifier",test:e=>Ie&&/^(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDD4A-\uDD65\uDD6F-\uDD85\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC4\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDDD0-\uDDED\uDDF0\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDD4A-\uDD65\uDD6F-\uDD85\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC4\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDDD0-\uDDED\uDDF0\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])*$/.test(e)},{name:"string",test:Ie},{name:"Chain",test:yr},{name:"Array",test:Re},{name:"Matrix",test:je},{name:"DenseMatrix",test:$e},{name:"SparseMatrix",test:Pe},{name:"Range",test:Le},{name:"Index",test:_e},{name:"boolean",test:Je},{name:"ResultSet",test:We},{name:"Help",test:Ve},{name:"function",test:He},{name:"Date",test:Ze},{name:"RegExp",test:Ge},{name:"null",test:Ye},{name:"undefined",test:Ke},{name:"AccessorNode",test:er},{name:"ArrayNode",test:rr},{name:"AssignmentNode",test:tr},{name:"BlockNode",test:nr},{name:"ConditionalNode",test:ir},{name:"ConstantNode",test:ar},{name:"FunctionNode",test:sr},{name:"FunctionAssignmentNode",test:ur},{name:"IndexNode",test:cr},{name:"Node",test:fr},{name:"ObjectNode",test:lr},{name:"OperatorNode",test:mr},{name:"ParenthesisNode",test:dr},{name:"RangeNode",test:pr},{name:"RelationalNode",test:hr},{name:"SymbolNode",test:vr},{name:"Map",test:Qe},{name:"Object",test:Xe}]),a.addConversions([{from:"number",to:"BigNumber",convert:function(e){if(r||rt(e),e.toExponential().replace(/e.*$/,"").replace(/^0\.?0*|\./,"").length>15)throw new TypeError("Cannot implicitly convert a number with >15 significant digits to BigNumber (value: "+e+"). Use function bignumber(x) to convert to BigNumber.");return new r(e)}},{from:"number",to:"Complex",convert:function(e){return t||tt(e),new t(e,0)}},{from:"BigNumber",to:"Complex",convert:function(e){return t||tt(e),new t(e.toNumber(),0)}},{from:"bigint",to:"number",convert:function(e){if(e>Number.MAX_SAFE_INTEGER)throw new TypeError("Cannot implicitly convert bigint to number: value exceeds the max safe integer value (value: "+e+")");return Number(e)}},{from:"bigint",to:"BigNumber",convert:function(e){return r||rt(e),new r(e.toString())}},{from:"bigint",to:"Fraction",convert:function(e){return i||nt(e),new i(e)}},{from:"Fraction",to:"BigNumber",convert:function(){throw new TypeError("Cannot implicitly convert a Fraction to BigNumber or vice versa. Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.")}},{from:"Fraction",to:"Complex",convert:function(e){return t||tt(e),new t(e.valueOf(),0)}},{from:"number",to:"Fraction",convert:function(e){i||nt(e);var r=new i(e);if(r.valueOf()!==e)throw new TypeError("Cannot implicitly convert a number to a Fraction when there will be a loss of precision (value: "+e+"). Use function fraction(x) to convert to Fraction.");return r}},{from:"string",to:"number",convert:function(e){var r=Number(e);if(isNaN(r))throw new Error('Cannot convert "'+e+'" to a number');return r}},{from:"string",to:"BigNumber",convert:function(e){r||rt(e);try{return new r(e)}catch(r){throw new Error('Cannot convert "'+e+'" to BigNumber')}}},{from:"string",to:"bigint",convert:function(e){try{return BigInt(e)}catch(r){throw new Error('Cannot convert "'+e+'" to BigInt')}}},{from:"string",to:"Fraction",convert:function(e){i||nt(e);try{return new i(e)}catch(r){throw new Error('Cannot convert "'+e+'" to Fraction')}}},{from:"string",to:"Complex",convert:function(e){t||tt(e);try{return new t(e)}catch(r){throw new Error('Cannot convert "'+e+'" to Complex')}}},{from:"boolean",to:"number",convert:function(e){return+e}},{from:"boolean",to:"BigNumber",convert:function(e){return r||rt(e),new r(+e)}},{from:"boolean",to:"bigint",convert:function(e){return BigInt(+e)}},{from:"boolean",to:"Fraction",convert:function(e){return i||nt(e),new i(+e)}},{from:"boolean",to:"string",convert:function(e){return String(e)}},{from:"Array",to:"Matrix",convert:function(e){return n||function(){throw new Error("Cannot convert array into a Matrix: no class 'DenseMatrix' provided")}(),new n(e)}},{from:"Matrix",to:"Array",convert:function(e){return e.valueOf()}}]),a.onMismatch=(e,r,t)=>{var n=a.createError(e,r,t);if(["wrongType","mismatch"].includes(n.data.category)&&1===r.length&&Ue(r[0])&&t.some((e=>!e.params.includes(",")))){var i=new TypeError("Function '".concat(e,"' doesn't apply to matrices. To call it ")+"elementwise on a matrix 'M', try 'map(M, ".concat(e,")'."));throw i.data=n.data,i}throw n},a.onMismatch=(e,r,t)=>{var n=a.createError(e,r,t);if(["wrongType","mismatch"].includes(n.data.category)&&1===r.length&&Ue(r[0])&&t.some((e=>!e.params.includes(",")))){var i=new TypeError("Function '".concat(e,"' doesn't apply to matrices. To call it ")+"elementwise on a matrix 'M', try 'map(M, ".concat(e,")'."));throw i.data=n.data,i}throw n},a}));function rt(e){throw new Error("Cannot convert value ".concat(e," into a BigNumber: no class 'BigNumber' provided"))}function tt(e){throw new Error("Cannot convert value ".concat(e," into a Complex number: no class 'Complex' provided"))}function nt(e){throw new Error("Cannot convert value ".concat(e," into a Fraction, no class 'Fraction' provided."))}var it,at=Cr("ResultSet",[],(()=>{function e(r){if(!(this instanceof e))throw new SyntaxError("Constructor must be called with the new operator");this.entries=r||[]}return e.prototype.type="ResultSet",e.prototype.isResultSet=!0,e.prototype.valueOf=function(){return this.entries},e.prototype.toString=function(){return"["+this.entries.map(String).join(", ")+"]"},e.prototype.toJSON=function(){return{mathjs:"ResultSet",entries:this.entries}},e.fromJSON=function(r){return new e(r.entries)},e}),{isClass:!0}),ot={exports:{}};it=ot,function(e){
1
+ import{g as e}from"./p-9a9d5339.js";const r="lidoDragMap",t="lidoSelectedValues",n="lidoActivityScore",i="lidoActivityEnd",a="lidoLessonEnd",o="lidoNextContainer",u="lidoPrevContainer",s="lidoActivityChange",c="lidoGameCompleted",f="lidoGameExit",l="lidoElementDrop",m="dropLength",d="drop-to",p="drop-time",h="lido-container",v="__LIDO_COMMON_AUDIO_PATH__",y="lidoCommonAudioPathReady",g="template-id";var x,b,w;!function(e){e.NoFlow="noFlow",e.ShowFlow="showFlow",e.FreeTrace="freeTrace",e.BlindTracing="blindTracing",e.BlindFreeTrace="blindFreeTrace"}(x||(x={})),function(e){e.Diagonal="diagonal",e.Stretch="stretch",e.InfiniteDrop="infinite-drop",e.EnableAnimation="enableanimation"}(b||(b={})),function(e){e.InfiniteDrop="infinite-drop",e.Move="move",e.Hide="hide"}(w||(w={}));const D="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/Navbar-buttons/Close.svg",N="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/Navbar-buttons/Previous.svg",A="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/Navbar-buttons/Next.svg",M="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/Navbar-buttons/audio.png",C="https://aeakbcdznktpsbrfsgys.supabase.co/storage/v1/object/public/template-assets/trace/Tracing-hand.svg";function E(e,r){console.log("👍Event Name : ",e,"Detail : ",r.toString());const t=new CustomEvent(e,{detail:r});window.dispatchEvent(t)}function S(){E(c,{})}function F(){E(f,{})}function B(e){E(s,{index:e})}function q(e,r){E("lidoElementClick",{element:e,isCorrect:r,createdAt:(new Date).toISOString()})}class T{constructor(){}static getInstance(){return T.instance||(T.instance=new T),T.instance}setRiveInstance(e){this.riveInstance=e}getRiveInstance(){return this.riveInstance}}function O(){const e=document.querySelector("lido-balance");if(!e)return;const r=Array.from(document.querySelectorAll('[drop-to^="lefthandle"]')),t=Array.from(document.querySelectorAll('[drop-to^="righthandle"]'));e.leftVal=k(r,e.operation),e.rightVal=k(t,e.operation),console.log("leftpan:",e.leftVal,"rightpan:",e.rightVal),e.updateTilt&&e.updateTilt(e.leftVal,e.rightVal)}function k(e,r){if(0===e.length)return 0;if("count"===r)return e.length;const t=e.map((e=>e.getAttribute("value")||"0")).join(["add","+"].includes(r)?" + ":["subtract","-"].includes(r)?" - ":["multiply","*"].includes(r)?" * ":["divide","/"].includes(r)?" / ":" + ");try{const e=YA(t);return"number"==typeof e?e:"boolean"==typeof e?e?1:0:parseFloat(t)||0}catch(e){return console.warn("invalid exp",t),0}}function z(e,r){var t,n,i,a,o,u;if(!e.getAttribute("equationCheck"))return!1;const s=document.querySelector("lido-balance");if(!s)return!1;const c=Number(null!==(i=null!==(t=s.leftVal)&&void 0!==t?t:null===(n=s.dataset)||void 0===n?void 0:n.leftVal)&&void 0!==i?i:0),f=Number(null!==(u=null!==(a=s.rightVal)&&void 0!==a?a:null===(o=s.dataset)||void 0===o?void 0:o.rightVal)&&void 0!==u?u:0),l=!isNaN(c),m=!isNaN(f);if(!l||!m)return!1;const d=r===(c>f?">":c<f?"<":"=");return console.log("Result:",d),d}const I=[];function R(e,r,n){e.style.pointerEvents="none",setTimeout((()=>{var i,a,u;const s=document.createElement("div");e.append(s),s.classList.add("after-drop-popup-container"),r.style.scale="1",n.style.scale="1";const c=e.querySelectorAll('[type="drag"]'),f=Array.from(c).map((e=>e.parentElement)).every((e=>e===r.parentElement));JSON.parse(null!==(i=e.getAttribute(t))&&void 0!==i?i:"[]");const l=null!==(a=r.getAttribute("value"))&&void 0!==a?a:null===(u=r.textContent)||void 0===u?void 0:u.trim();l&&I.push(l),f?(r.remove(),n.remove()):(r.parentElement.parentElement.remove(),n.parentElement.parentElement.remove()),r.classList.add("zoom-fade-in","after-drop-popup-drag-element"),n.classList.add("zoom-fade-in","after-drop-popup-drop-element"),s.appendChild(r),s.appendChild(n),n.classList.remove("empty"),setTimeout((()=>{r.classList.remove("zoom-fade-in"),n.classList.remove("zoom-fade-in"),r.classList.add("zoom-fade-out"),n.classList.add("zoom-fade-out"),setTimeout((()=>{s.remove(),e.style.pointerEvents="auto";const r=e.getAttribute("objective");r&&I.map((e=>e.trim())).sort().join(",")===r.split(",").map((e=>e.trim())).sort().join(",")&&(async()=>{const r=(null==e?void 0:e.getAttribute("onCorrect"))||"";await TA(r,e),window.dispatchEvent(new CustomEvent(o)),UA(),I.length=0})()}),800)}),2e3)}),250)}function j(){const e={};return document.querySelectorAll("[type='drop']").forEach((r=>{const t=r.getAttribute("tab-index")||r.id,n=!!document.querySelector(`[${d}="${r.id}"]`);r.setAttribute("is-full",String(n)),e[t]={drop:r.id,isFull:n}})),e}const U=e=>{e.style.animation="unset";const r=window.getComputedStyle(e).transform;if("none"===r)return 1;{const e=r.match(/matrix\(([^)]+)\)/);if(e){const r=e[1].split(", ");return parseFloat(r[0])}}return 1};let $=!1;const P=e=>{console.log("Setting dragging disabled to:",e),$=e},L=(e,r)=>{const t=e.getBoundingClientRect(),n=document.querySelectorAll(`[type="${r}"]`);let i=null,a=0;return n.forEach((n=>{if(n===e)return;const o=n.getBoundingClientRect(),u=Math.max(0,Math.min(t.right,o.right)-Math.max(t.left,o.left))*Math.max(0,Math.min(t.bottom,o.bottom)-Math.max(t.top,o.top));0!==u&&("slide"===r?u>=.1*Math.min(t.width*t.height,o.width*o.height)&&u>a&&(a=u,i=n):u>a&&(a=u,i=n))})),i};function _(e,r,t){if(!r||!e||!t)return;const n=r.getBoundingClientRect(),i=e.getBoundingClientRect(),a=window.getComputedStyle(e),o=new DOMMatrixReadOnly(a.transform),u=o.m42||0,s=n.top-i.top,c=(o.m41||0)+(n.left-i.left)*(1/aM()),f=u+s*(1/aM());e.style.transition="transform 0.5s ease",e.style.transform=`translate(${c}px, ${f}px)`}function J(e,r,n,i,a){var o;e.classList.remove("dropped");const u=document.getElementById(h),s=u.querySelectorAll(`#${e.id}`),c=Array.from(s).find((r=>e!==r&&!r.classList.contains("dropped")));e.style.transition="transform 0.5s ease",c?(_(e,c,u),setTimeout((()=>{u.getAttribute("drop-action")===w.InfiniteDrop?(e.removeAttribute("hasDummy"),e.style.width=c.style.width,e.style.height=c.style.height):(c.style.width=e.style.width,c.style.height=e.style.height),e.style.transform="translate(0,0)",e.style.position="unset",c.replaceWith(e)}),500)):e.style.transform="translate(0,0)";let f=Z.get(e);if(f){if(Z.delete(e),V(f),(null===(o=null==f?void 0:f.getAttribute("drop-attr"))||void 0===o?void 0:o.toLowerCase())===b.Stretch){const e=f.getAttribute("data-original-width");e?(f.style.width=e,f.removeAttribute("data-original-width")):(f.style.width="",f.removeAttribute("data-original-width"))}let r=Object.values(n).find((e=>document.getElementById(e.drop)===f));if(r){r.isFull=!1,ee();const e=document.getElementById(r.drop);e&&e.removeAttribute("is-full")}Z.delete(e)}if(i){let r=JSON.parse(i);r=r.filter((r=>r!=e.value)),u.setAttribute(t,JSON.stringify(r))}if(a){let r=JSON.parse(a);const t=u.querySelector(`#${e.getAttribute(d)}`);t&&delete r[t.getAttribute("tab-index")],e.removeAttribute(d),V(f),O()}document.querySelectorAll("[type='drop']").forEach((e=>{var r;const t=FA();Object.keys(t).map(Number).includes(JSON.parse(e.getAttribute("tab-index")))?(null===(r=e.getAttribute("dropAttr"))||void 0===r?void 0:r.toLowerCase())!==b.Diagonal&&(e.tagName.toLowerCase(),"lido-image"===e.tagName.toLowerCase()&&(e.style.opacity="0",e.style.backgroundColor="transparent")):(e.tagName.toLowerCase(),"lido-image"===e.tagName.toLowerCase()&&(e.style.opacity="1",e.style.backgroundColor="transparent"))})),LA(),ee()}async function W(e,r){var n,i,a,o,u,s,c,f;const v=document.getElementById(h),y=null!==(n=v.getAttribute(t))&&void 0!==n?n:"[]",g=JSON.stringify(FA()),x=FA();JSON.stringify(x);let w=j();r||J(e,0,w,y,g);const D=r.getAttribute("tab-index"),N="false"===r.getAttribute("is-allow-only-one-drop");if((null===(i=w[D])||void 0===i?void 0:i.isFull)&&!N)return void J(e,0,w,y,g);if("true"===v.getAttribute("is-allow-only-correct")){if(!r)return e.style.transition="transform 0.5s ease",e.style.transform="translate(0, 0)",void J(e,0,w,y,g);let t;const n=(null===(a=e.getAttribute("value"))||void 0===a?void 0:a.trim())||"",i=(null===(o=r.getAttribute("value"))||void 0===o?void 0:o.trim())||"";if(Number(n)){const e=Number(n);t=i.includes(",")?i.split(",").some((r=>Number(r)===e)):Number(i)===e}else t=i.toLowerCase().includes(n.toLowerCase());if(!t){e.style.transition="transform 0.5s ease",_(e,r,v);const t=r.getAttribute("onInCorrect");return console.log("onincorrectttt",t),await TA(t,r,e),setTimeout((()=>{e.style.transform="translate(0, 0)",jA(!1),J(e,0,w,y,g)}),500),void("option"===e.type&&Array.from(v.querySelectorAll(`[value="${e.value}"]`)).forEach((r=>{r!==e&&r.getAttribute("value")===e.getAttribute("value")&&r.replaceWith(e)})))}{const t=v.getAttribute("dropAttr");t&&t.toLowerCase()===b.EnableAnimation.toLowerCase()&&R(v,e,r)}}else{const t=v.getAttribute("dropAttr");t&&t.toLowerCase()===b.EnableAnimation.toLowerCase()&&R(v,e,r)}if(r){let n=JSON.parse(null!==(u=v.getAttribute(t))&&void 0!==u?u:"[]");const i=e.getAttribute("value");if(i&&!n.includes(i)&&n.push(i),v.setAttribute(t,JSON.stringify(n)),"stretch"===r.getAttribute("drop-attr")){if(!r.hasAttribute("data-original-width")){const e=window.getComputedStyle(r);r.setAttribute("data-original-width",e.width)}r.style.width=`${e.offsetWidth}px`}if((null===(s=r.getAttribute("dropAttr"))||void 0===s?void 0:s.toLowerCase())!==b.Diagonal&&("1"===r.getAttribute("minDrops")||!r.getAttribute("minDrops"))){const t=Object.values(w).find((e=>document.getElementById(e.drop)===r));if("true"===r.getAttribute("is-allow-only-one-drop")&&t?(t.isFull=!0,r.setAttribute("is-full","true"),ee()):console.warn("No matching drop item found for",r),g){let r=JSON.parse(g);for(const t in r)if(r[t].includes(e.value)&&e.classList.contains("dropped")){const t=e.getAttribute("drop-to"),n=v.querySelector(`#${t}`).getAttribute("tab-index");n&&delete r[n]}}if(e.classList.add("dropped"),e&&(r?e.setAttribute(d,null==r?void 0:r.id):e.removeAttribute(d),e.setAttribute(p,(new Date).getTime().toString())),r&&!(null===(c=w[D])||void 0===c?void 0:c.isFull)){let t=L(e,"drag");if("true"===r.getAttribute("is-allow-only-one-drop")&&t)return e.style.transform="translate(0,0)",e.style.transition="transform 0.5s ease",void document.querySelectorAll("[type='drop']").forEach((e=>{var r;const t=FA();Object.keys(t).map(Number).includes(JSON.parse(e.getAttribute("tab-index")))?(null===(r=e.getAttribute("dropAttr"))||void 0===r?void 0:r.toLowerCase())!==b.Diagonal&&(e.tagName.toLowerCase(),"lido-image"===e.tagName.toLowerCase()&&(e.style.opacity="0")):(e.tagName.toLowerCase(),e.tagName.toLowerCase(),e.style.opacity="1")}))}}}if(!r)return void J(e,0,w,y,g);if(O(),g){let r=Z.get(e);if(r){let e=Object.values(w).find((e=>document.getElementById(e.drop)===r));e&&(e.isFull=!1,X())}}let A=parseInt(null!==(f=v.getAttribute(m))&&void 0!==f?f:"0");if(A+=1,v.setAttribute(m,String(A)),A===IA(r.value)){const e=Object.values(w).find((e=>document.getElementById(e.drop)===r));e?e.isFull=!0:console.warn("No matching drop item found for",r),A=0,v.setAttribute(m,String(A))}Z.set(e,r);const M=r.value.toLowerCase().includes(e.value.toLowerCase());!function(e,r,t){E(l,{dragElement:e,dropElement:r,isCorrect:t,createdAt:(new Date).toISOString()})}(e,r,M),e.style.opacity="1",document.querySelectorAll(".drop-element").forEach((e=>V(e))),ee(),await $A(e,r)}function V(e){if(!e||!e.classList.contains("drop-element"))return;const r=document.getElementById(h);r&&"true"===r.getAttribute("show-drop-border")&&(document.querySelectorAll(`[${d}="${e.id}"]`).length>0?(e.classList.add("filled"),e.classList.remove("empty"),e.classList.remove("highlight-element")):(e.classList.contains("math-matrix")||e.classList.add("empty"),e.classList.remove("filled")))}async function H(e,r){if(document.querySelectorAll(`[type='${r}']`).forEach((e=>{Q(e)})),!document.querySelector("#dynamic-highlight-style")){const e=document.createElement("style");e.id="dynamic-highlight-style",e.innerHTML="\n .highlight {\n // border: 4px solid #e74c3c; /* Thicker red border for more visibility */\n // border-radius: 12px; /* Larger rounded corners */\n // background-color: rgba(231, 76, 60, 0.3); /* Stronger, more noticeable background */\n // box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 12px 40px rgba(0, 0, 0, 0.2); /* Stronger shadow */\n // outline: 4px solid rgba(231, 76, 60, 0.6); /* Glow effect */\n }\n ",document.head.appendChild(e)}null==e||e.classList.add("highlight-element"),e.ariaPressed="true";const t="drop"===r?e:document.querySelector("[type='drop'].highlight-element"),n="drag"===r?e:document.querySelector("[type='drag'].highlight-element");if(t||async function(e){const r=e.getAttribute("audio");r&&r.trim().length>0&&re.getI().stop();const t=j(),n=e;if(!n)return void console.error("Element not found");const i=getComputedStyle(n).transform;if(Q(e),i&&"none"!==i&&"matrix(1, 0, 0, 1, 0, 0)"!==i)return void W(n,null);let a=Object.values(t).find((e=>!e.isFull));if(a){const e=document.querySelector(`#${a.drop}`);n.style.transition="transform 0.5s ease",W(n,e)}}(e),t&&n){if(n.getAttribute("drop-to"))return;n.style.transition="transform 0.5s ease",n.style.transform="";const e=document.getElementById(h),r=U(e);console.log("🚀 ~ onClickDropOrDragElement ~ containerScale:",r);const i=t.getBoundingClientRect(),a=n.getBoundingClientRect();n.style.transform=`translate(${(i.left-a.left)/r}px, ${(i.top-a.top)/r}px)`,document.querySelectorAll("*").forEach((e=>{Q(e)})),await W(n,t)}}const Z=new Map,G=document.getElementById(h),X=()=>{const e=document.querySelectorAll("[type='drop']");let r=FA();e&&G&&r&&e&&e.forEach((e=>{var t;const n=e,i=n.getAttribute("tab-index");if((null===(t=null==n?void 0:n.getAttribute("drop-attr"))||void 0===t?void 0:t.toLowerCase())===b.Stretch&&!1===r[i].isFull){const r=n.getAttribute("data-original-width");e.removeAttribute("is-full"),r&&(n.style.width=r,n.removeAttribute("data-original-width"))}}))};function Q(e){e.classList.remove("highlight-element"),e.ariaPressed="false"}function Y(e){if(!e)return;e.classList.add("speaking-highlight");const r="#speaking-highlight-style";if(!document.querySelector(r)){const t=document.createElement("style");t.id=r,t.innerHTML=`\n .speaking-highlight {\n --base-transform: ${e.style.transform};\n box-shadow: 0 0 20px 10px rgba(255, 165, 0, 0.9) !important; /* Stronger orange glow effect */\n // border: 3px solid green !important;\n // transition: box-shadow 0.5s ease-in-out, transform 0.5s ease-in-out;\n // transform: scale(1.05); /* Subtle scale effect to pop the element */\n // animation: pulseEffect 1.5s infinite; /* Pulsing animation */\n \n }\n\n @keyframes pulseEffect {\n 0% {\n box-shadow: 0 0 20px 10px rgba(255, 165, 0, 0.9);\n // transform: var(--base-transform) scale(1.05);\n // background-color: #FFFF0B;\n }\n 50% {\n box-shadow: 0 0 30px 15px rgba(255, 165, 0, 1);\n // transform: var(--base-transform) scale(1.1);\n // background-color: #FFFF0B;\n }\n 100% {\n box-shadow: 0 0 20px 10px rgba(255, 165, 0, 0.9);\n // transform: var(--base-transform) scale(1.05);\n // background-color: #FFFF0B;\n }\n }\n `,document.head.appendChild(t)}}function K(e){e&&e.classList.remove("speaking-highlight")}function ee(){const e=document.querySelector(h);if(!e)return;const r=j();let t=Object.values(r).find((e=>!e.isFull));if(t){e.querySelectorAll('[type="drop"]').forEach((e=>{e.classList.remove("highlight-element")}));const r=e.querySelector(`#${t.drop}`);r&&r.classList.add("highlight-element");const n=e.querySelectorAll('[type="drag"]');RA>2&&"true"===e.getAttribute("is-continue-on-correct")?n.forEach((e=>{e.classList.remove("highlight-element"),e.getAttribute("value")===r.getAttribute("value")&&(e.classList.add("highlight-element"),e.classList.remove("drag-element"))})):n.forEach((e=>{e.classList.remove("highlight-element"),e.classList.add("drag-element")}))}else{if(RA<=2||"false"===e.getAttribute("is-continue-on-correct"))return;e.querySelectorAll("[type='click']").forEach((r=>{r.getAttribute("value")===e.getAttribute("objective")&&(r.classList.contains("highlight-element")||r.classList.add("highlight-element"))}))}}class re{constructor(){this.audioElement=document.createElement("audio"),this.audioElement.id="audio",document.body.appendChild(this.audioElement),this.registerGlobalStopEvents()}static getI(){return re.instance||(re.instance=new re),re.instance}stop(){(null===window||void 0===window?void 0:window.speechSynthesis)&&window.speechSynthesis.cancel(),this.audioElement.pause(),this.audioElement.currentTime=0,this.audioElement.src="",document.querySelectorAll(".speaking-highlight").forEach((e=>K(e)));const e=document.querySelector("#play"),r=document.querySelector("#pause");e&&r&&(e.style.visibility="visible",r.style.visibility="hidden")}async play(e){try{await re.getI().stop()}catch(e){console.error("Error stopping audio before speak action:",e)}let r=e.getAttribute("audio")||"";if(!r){const t=e.children;for(let e=0;e<t.length;e++){const n=t[e].getAttribute("audio");if(n){r=n;break}}}if(r){r=ZA(r),this.audioElement.src=r,console.log("🚀 Playing audio:",this.audioElement.src);try{P(!0),Y(e),await this.audioElement.play(),await new Promise((e=>{this.audioElement.onended=()=>{e()}}))}catch(e){console.log("🎧 Audio play error:",e)}finally{this.audioElement.onended=null,P(!1),K(e)}}else if(e.textContent)try{Y(e),await async function(e,r){return new Promise(((t,n)=>{if(!("speechSynthesis"in window))return void n(new Error("Speech synthesis is not supported in this browser."));const i=window.speechSynthesis;setTimeout((()=>{const n=new SpeechSynthesisUtterance(e);n.onend=()=>{t(!0)},i.speak(n),i.speaking||K(r)}),50)}))}(e.textContent,e),document.querySelectorAll(".speaking-highlight").forEach((e=>K(e)))}catch(e){console.log("🎧 TTS Error:",e)}finally{P(!1)}}registerGlobalStopEvents(){[o,u,a,s,i,c,f].forEach((e=>{window.addEventListener(e,(()=>this.stop()))}))}destroy(){console.log("AudioPlayer destroyed (hot-reload safe)"),this.stop(),this.audioElement.parentNode&&this.audioElement.parentNode.removeChild(this.audioElement),re.instance=void 0}}let te;const ne=e=>{const r=document.createElement("div");if("option"===e.getAttribute("type"))return r.style.width=e.style.width,r.style.height=e.style.height,r;const t=e.style.width,n=e.style.padding;return e.style.width="auto",e.style.padding="0 20px",r.style.width=`${e.offsetWidth+20}px`,r.style.height=`${e.offsetHeight+20}px`,r.style.border="1px solid",r.style.backgroundColor="#00000021",r.style.borderRadius="10px",e.style.width=t,e.style.padding=n,r.setAttribute("value",`${e.getAttribute("value")}`),r};const ie=e=>{e.style.opacity="",e.style.cursor="move",e.style.zIndex="",e.style.transform="",e.style.position="",e.style.left="",e.style.top=""};function ae(e,r){const t=Array.from(document.querySelectorAll(`[type="${r}"]`));let n=0,i=null;const a=e.getBoundingClientRect();for(const r of t){if(r===e)continue;const t=ue(a,r.getBoundingClientRect());t>n&&(n=t,i=r)}return i}function oe(e){return e instanceof MouseEvent?{clientX:e.clientX,clientY:e.clientY}:{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}}function ue(e,r){return Math.max(0,Math.min(e.right,r.right)-Math.max(e.left,r.left))*Math.max(0,Math.min(e.bottom,r.bottom)-Math.max(e.top,r.top))}const se=(e,r)=>{var n;console.log("worddrop");const i=document.getElementById(h),a=i.getAttribute("objective").split(",");let o=JSON.parse(null!==(n=i.getAttribute(t))&&void 0!==n?n:"[]");o=Array.from(e.children).map((e=>e.getAttribute("value"))),i.setAttribute(t,JSON.stringify(o));const u=o.indexOf(r.value);if(u>=0){const e=zA(r.value,[a[u].trim()]);!e&&i.getAttribute("is-allow-only-correct")&&Array.from(i.querySelectorAll(`[value="${r.value}"]`)).find((e=>e!==r)).replaceWith(r),jA(e),LA()}};async function ce(e,r){e.classList.add("dropped");let t=FA(),n=t[r.getAttribute("tab-index")];if(!Array.isArray(n)||!n.includes(e.value)){for(const r in t){const n=t[r].indexOf(e.value);-1!==n&&t[r].splice(n,1)}(null==r?void 0:r.id)&&e.setAttribute(d,r.id),await $A(e,r)}}const fe=e=>new Promise((r=>setTimeout(r,e))),le=async()=>{const e=document.getElementById(h);if(!e)return;e.style.pointerEvents="none";const r=Array.from(e.querySelectorAll('[type="slide"]')),t=U(e),n=r.length,i=n%2==0?n:n-1;for(let e=0;e<i;e+=2){const n=r[e],i=r[e+1],a=n.getBoundingClientRect(),o=i.getBoundingClientRect(),u=(o.left+o.width/2-(a.left+a.width/2))/t,s=(o.top+o.height/2-(a.top+a.height/2))/t;n.style.transition=i.style.transition="transform 0.5s ease",n.style.transform=`translate(${u}px, ${s}px)`,i.style.transform=`translate(${-u}px, ${-s}px)`}await fe(800);for(let e=0;e<i;e++)r[e].style.transform="translate(0, 0)";await fe(500);for(let e=0;e<i;e++)r[e].style.transition="";e.style.pointerEvents=""};var me="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function de(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pe={exports:{}};pe.exports=function(){function e(r){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(r)}var r=/^\s+/,t=/\s+$/;function n(i,a){if(a=a||{},(i=i||"")instanceof n)return i;if(!(this instanceof n))return new n(i,a);var o=function(n){var i={r:0,g:0,b:0},a=1,o=null,u=null,s=null,c=!1,f=!1;return"string"==typeof n&&(n=function(e){e=e.replace(r,"").replace(t,"").toLowerCase();var n,i=!1;if(b[e])e=b[e],i=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(n=O.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=O.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=O.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=O.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=O.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=O.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=O.hex8.exec(e))?{r:M(n[1]),g:M(n[2]),b:M(n[3]),a:F(n[4]),format:i?"name":"hex8"}:(n=O.hex6.exec(e))?{r:M(n[1]),g:M(n[2]),b:M(n[3]),format:i?"name":"hex"}:(n=O.hex4.exec(e))?{r:M(n[1]+""+n[1]),g:M(n[2]+""+n[2]),b:M(n[3]+""+n[3]),a:F(n[4]+""+n[4]),format:i?"name":"hex8"}:!!(n=O.hex3.exec(e))&&{r:M(n[1]+""+n[1]),g:M(n[2]+""+n[2]),b:M(n[3]+""+n[3]),format:i?"name":"hex"}}(n)),"object"==e(n)&&(k(n.r)&&k(n.g)&&k(n.b)?(l=n.r,m=n.g,d=n.b,i={r:255*N(l,255),g:255*N(m,255),b:255*N(d,255)},c=!0,f="%"===String(n.r).substr(-1)?"prgb":"rgb"):k(n.h)&&k(n.s)&&k(n.v)?(o=E(n.s),u=E(n.v),i=function(e,r,t){e=6*N(e,360),r=N(r,100),t=N(t,100);var n=Math.floor(e),i=e-n,a=t*(1-r),o=t*(1-i*r),u=t*(1-(1-i)*r),s=n%6;return{r:255*[t,o,a,a,u,t][s],g:255*[u,t,t,o,a,a][s],b:255*[a,a,u,t,t,o][s]}}(n.h,o,u),c=!0,f="hsv"):k(n.h)&&k(n.s)&&k(n.l)&&(o=E(n.s),s=E(n.l),i=function(e,r,t){var n,i,a;function o(e,r,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+6*(r-e)*t:t<.5?r:t<2/3?e+(r-e)*(2/3-t)*6:e}if(e=N(e,360),r=N(r,100),t=N(t,100),0===r)n=i=a=t;else{var u=t<.5?t*(1+r):t+r-t*r,s=2*t-u;n=o(s,u,e+1/3),i=o(s,u,e),a=o(s,u,e-1/3)}return{r:255*n,g:255*i,b:255*a}}(n.h,o,s),c=!0,f="hsl"),n.hasOwnProperty("a")&&(a=n.a)),a=D(a),{ok:c,format:n.format||f,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a};var l,m,d}(i);this._originalInput=i,this._r=o.r,this._g=o.g,this._b=o.b,this._a=o.a,this._roundA=Math.round(100*this._a)/100,this._format=a.format||o.format,this._gradientType=a.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=o.ok}function i(e,r,t){e=N(e,255),r=N(r,255),t=N(t,255);var n,i,a=Math.max(e,r,t),o=Math.min(e,r,t),u=(a+o)/2;if(a==o)n=i=0;else{var s=a-o;switch(i=u>.5?s/(2-a-o):s/(a+o),a){case e:n=(r-t)/s+(r<t?6:0);break;case r:n=(t-e)/s+2;break;case t:n=(e-r)/s+4}n/=6}return{h:n,s:i,l:u}}function a(e,r,t){e=N(e,255),r=N(r,255),t=N(t,255);var n,i,a=Math.max(e,r,t),o=Math.min(e,r,t),u=a,s=a-o;if(i=0===a?0:s/a,a==o)n=0;else{switch(a){case e:n=(r-t)/s+(r<t?6:0);break;case r:n=(t-e)/s+2;break;case t:n=(e-r)/s+4}n/=6}return{h:n,s:i,v:u}}function o(e,r,t,n){var i=[C(Math.round(e).toString(16)),C(Math.round(r).toString(16)),C(Math.round(t).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function u(e,r,t,n){return[C(S(n)),C(Math.round(e).toString(16)),C(Math.round(r).toString(16)),C(Math.round(t).toString(16))].join("")}function s(e,r){r=0===r?0:r||10;var t=n(e).toHsl();return t.s-=r/100,t.s=A(t.s),n(t)}function c(e,r){r=0===r?0:r||10;var t=n(e).toHsl();return t.s+=r/100,t.s=A(t.s),n(t)}function f(e){return n(e).desaturate(100)}function l(e,r){r=0===r?0:r||10;var t=n(e).toHsl();return t.l+=r/100,t.l=A(t.l),n(t)}function m(e,r){r=0===r?0:r||10;var t=n(e).toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(-r/100*255))),t.g=Math.max(0,Math.min(255,t.g-Math.round(-r/100*255))),t.b=Math.max(0,Math.min(255,t.b-Math.round(-r/100*255))),n(t)}function d(e,r){r=0===r?0:r||10;var t=n(e).toHsl();return t.l-=r/100,t.l=A(t.l),n(t)}function p(e,r){var t=n(e).toHsl(),i=(t.h+r)%360;return t.h=i<0?360+i:i,n(t)}function h(e){var r=n(e).toHsl();return r.h=(r.h+180)%360,n(r)}function v(e,r){if(isNaN(r)||r<=0)throw new Error("Argument to polyad must be a positive number");for(var t=n(e).toHsl(),i=[n(e)],a=360/r,o=1;o<r;o++)i.push(n({h:(t.h+o*a)%360,s:t.s,l:t.l}));return i}function y(e){var r=n(e).toHsl(),t=r.h;return[n(e),n({h:(t+72)%360,s:r.s,l:r.l}),n({h:(t+216)%360,s:r.s,l:r.l})]}function g(e,r,t){r=r||6,t=t||30;var i=n(e).toHsl(),a=360/t,o=[n(e)];for(i.h=(i.h-(a*r>>1)+720)%360;--r;)i.h=(i.h+a)%360,o.push(n(i));return o}function x(e,r){r=r||6;for(var t=n(e).toHsv(),i=t.h,a=t.s,o=t.v,u=[],s=1/r;r--;)u.push(n({h:i,s:a,v:o})),o=(o+s)%1;return u}n.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,r,t,n=this.toRgb();return r=n.g/255,t=n.b/255,.2126*((e=n.r/255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))},setAlpha:function(e){return this._a=D(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=a(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=a(this._r,this._g,this._b),r=Math.round(360*e.h),t=Math.round(100*e.s),n=Math.round(100*e.v);return 1==this._a?"hsv("+r+", "+t+"%, "+n+"%)":"hsva("+r+", "+t+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=i(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=i(this._r,this._g,this._b),r=Math.round(360*e.h),t=Math.round(100*e.s),n=Math.round(100*e.l);return 1==this._a?"hsl("+r+", "+t+"%, "+n+"%)":"hsla("+r+", "+t+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return o(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,r,t,n,i){var a=[C(Math.round(e).toString(16)),C(Math.round(r).toString(16)),C(Math.round(t).toString(16)),C(S(n))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*N(this._r,255))+"%",g:Math.round(100*N(this._g,255))+"%",b:Math.round(100*N(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*N(this._r,255))+"%, "+Math.round(100*N(this._g,255))+"%, "+Math.round(100*N(this._b,255))+"%)":"rgba("+Math.round(100*N(this._r,255))+"%, "+Math.round(100*N(this._g,255))+"%, "+Math.round(100*N(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(w[o(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var r="#"+u(this._r,this._g,this._b,this._a),t=r,i=this._gradientType?"GradientType = 1, ":"";if(e){var a=n(e);t="#"+u(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+r+",endColorstr="+t+")"},toString:function(e){var r=!!e;e=e||this._format;var t=!1;return r||!(this._a<1&&this._a>=0)||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(t=this.toRgbString()),"prgb"===e&&(t=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(t=this.toHexString()),"hex3"===e&&(t=this.toHexString(!0)),"hex4"===e&&(t=this.toHex8String(!0)),"hex8"===e&&(t=this.toHex8String()),"name"===e&&(t=this.toName()),"hsl"===e&&(t=this.toHslString()),"hsv"===e&&(t=this.toHsvString()),t||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return n(this.toString())},_applyModification:function(e,r){var t=e.apply(null,[this].concat([].slice.call(r)));return this._r=t._r,this._g=t._g,this._b=t._b,this.setAlpha(t._a),this},lighten:function(){return this._applyModification(l,arguments)},brighten:function(){return this._applyModification(m,arguments)},darken:function(){return this._applyModification(d,arguments)},desaturate:function(){return this._applyModification(s,arguments)},saturate:function(){return this._applyModification(c,arguments)},greyscale:function(){return this._applyModification(f,arguments)},spin:function(){return this._applyModification(p,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(g,arguments)},complement:function(){return this._applyCombination(h,arguments)},monochromatic:function(){return this._applyCombination(x,arguments)},splitcomplement:function(){return this._applyCombination(y,arguments)},triad:function(){return this._applyCombination(v,[3])},tetrad:function(){return this._applyCombination(v,[4])}},n.fromRatio=function(r,t){if("object"==e(r)){var i={};for(var a in r)r.hasOwnProperty(a)&&(i[a]="a"===a?r[a]:E(r[a]));r=i}return n(r,t)},n.equals=function(e,r){return!(!e||!r)&&n(e).toRgbString()==n(r).toRgbString()},n.random=function(){return n.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},n.mix=function(e,r,t){t=0===t?0:t||50;var i=n(e).toRgb(),a=n(r).toRgb(),o=t/100;return n({r:(a.r-i.r)*o+i.r,g:(a.g-i.g)*o+i.g,b:(a.b-i.b)*o+i.b,a:(a.a-i.a)*o+i.a})},n.readability=function(e,r){var t=n(e),i=n(r);return(Math.max(t.getLuminance(),i.getLuminance())+.05)/(Math.min(t.getLuminance(),i.getLuminance())+.05)},n.isReadable=function(e,r,t){var i,a,o=n.readability(e,r);switch(a=!1,(i=function(e){var r,t;return"AA"!==(r=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase())&&"AAA"!==r&&(r="AA"),"small"!==(t=(e.size||"small").toLowerCase())&&"large"!==t&&(t="small"),{level:r,size:t}}(t)).level+i.size){case"AAsmall":case"AAAlarge":a=o>=4.5;break;case"AAlarge":a=o>=3;break;case"AAAsmall":a=o>=7}return a},n.mostReadable=function(e,r,t){var i,a,o,u,s=null,c=0;a=(t=t||{}).includeFallbackColors,o=t.level,u=t.size;for(var f=0;f<r.length;f++)(i=n.readability(e,r[f]))>c&&(c=i,s=n(r[f]));return n.isReadable(e,s,{level:o,size:u})||!a?s:(t.includeFallbackColors=!1,n.mostReadable(e,["#fff","#000"],t))};var b=n.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},w=n.hexNames=function(e){var r={};for(var t in e)e.hasOwnProperty(t)&&(r[e[t]]=t);return r}(b);function D(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function N(e,r){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var t=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(r,Math.max(0,parseFloat(e))),t&&(e=parseInt(e*r,10)/100),Math.abs(e-r)<1e-6?1:e%r/parseFloat(r)}function A(e){return Math.min(1,Math.max(0,e))}function M(e){return parseInt(e,16)}function C(e){return 1==e.length?"0"+e:""+e}function E(e){return e<=1&&(e=100*e+"%"),e}function S(e){return Math.round(255*parseFloat(e)).toString(16)}function F(e){return M(e)/255}var B,q,T,O=(q="[\\s|\\(]+("+(B="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",T="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",{CSS_UNIT:new RegExp(B),rgb:new RegExp("rgb"+q),rgba:new RegExp("rgba"+T),hsl:new RegExp("hsl"+q),hsla:new RegExp("hsla"+T),hsv:new RegExp("hsv"+q),hsva:new RegExp("hsva"+T),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function k(e){return!!O.CSS_UNIT.exec(e)}return n}();const he=pe.exports;var ve={exports:{}};!function(e){function r(){return e.exports=r=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,r.apply(null,arguments)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(ve);const ye=de(ve.exports);var ge={relTol:1e-12,absTol:1e-15,matrix:"Matrix",number:"number",numberFallback:"number",precision:64,predictable:!1,randomSeed:null};function xe(e,r){if(we(e,r))return e[r];if("function"==typeof e[r]&&De(e,r))throw new Error('Cannot access method "'+r+'" as a property');throw new Error('No access to property "'+r+'"')}function be(e,r,t){if(we(e,r))return e[r]=t,t;throw new Error('No access to property "'+r+'"')}function we(e,r){return!(!function(e){return"object"==typeof e&&e&&e.constructor===Object}(e)&&!Array.isArray(e)||!Dr(Ne,r)&&(r in Object.prototype||r in Function.prototype))}function De(e,r){return!(null==e||"function"!=typeof e[r]||Dr(e,r)&&Object.getPrototypeOf&&r in Object.getPrototypeOf(e)||!Dr(Ae,r)&&(r in Object.prototype||r in Function.prototype))}var Ne={length:!0,name:!0},Ae={toString:!0,valueOf:!0,toLocaleString:!0};class Me{constructor(e){this.wrappedObject=e,this[Symbol.iterator]=this.entries}keys(){return Object.keys(this.wrappedObject).filter((e=>this.has(e))).values()}get(e){return xe(this.wrappedObject,e)}set(e,r){return be(this.wrappedObject,e,r),this}has(e){return we(this.wrappedObject,e)&&e in this.wrappedObject}entries(){return Ee(this.keys(),(e=>[e,this.get(e)]))}forEach(e){for(var r of this.keys())e(this.get(r),r,this)}delete(e){we(this.wrappedObject,e)&&delete this.wrappedObject[e]}clear(){for(var e of this.keys())this.delete(e)}get size(){return Object.keys(this.wrappedObject).length}}class Ce{constructor(e,r,t){this.a=e,this.b=r,this.bKeys=t,this[Symbol.iterator]=this.entries}get(e){return this.bKeys.has(e)?this.b.get(e):this.a.get(e)}set(e,r){return this.bKeys.has(e)?this.b.set(e,r):this.a.set(e,r),this}has(e){return this.b.has(e)||this.a.has(e)}keys(){return new Set([...this.a.keys(),...this.b.keys()])[Symbol.iterator]()}entries(){return Ee(this.keys(),(e=>[e,this.get(e)]))}forEach(e){for(var r of this.keys())e(this.get(r),r,this)}delete(e){return this.bKeys.has(e)?this.b.delete(e):this.a.delete(e)}clear(){this.a.clear(),this.b.clear()}get size(){return[...this.keys()].length}}function Ee(e,r){return{next:()=>{var t=e.next();return t.done?t:{value:r(t.value),done:!1}}}}function Se(){return new Map}function Fe(e){if(!e)return Se();if(Qe(e))return e;if(Xe(e))return new Me(e);throw new Error("createMap can create maps from objects or Maps")}function Be(e){return"number"==typeof e}function qe(e){return!(!e||"object"!=typeof e||"function"!=typeof e.constructor)&&(!0===e.isBigNumber&&"object"==typeof e.constructor.prototype&&!0===e.constructor.prototype.isBigNumber||"function"==typeof e.constructor.isDecimal&&!0===e.constructor.isDecimal(e))}function Te(e){return"bigint"==typeof e}function Oe(e){return e&&"object"==typeof e&&!0===Object.getPrototypeOf(e).isComplex||!1}function ke(e){return e&&"object"==typeof e&&!0===Object.getPrototypeOf(e).isFraction||!1}function ze(e){return e&&!0===e.constructor.prototype.isUnit||!1}function Ie(e){return"string"==typeof e}var Re=Array.isArray;function je(e){return e&&!0===e.constructor.prototype.isMatrix||!1}function Ue(e){return Array.isArray(e)||je(e)}function $e(e){return e&&e.isDenseMatrix&&!0===e.constructor.prototype.isMatrix||!1}function Pe(e){return e&&e.isSparseMatrix&&!0===e.constructor.prototype.isMatrix||!1}function Le(e){return e&&!0===e.constructor.prototype.isRange||!1}function _e(e){return e&&!0===e.constructor.prototype.isIndex||!1}function Je(e){return"boolean"==typeof e}function We(e){return e&&!0===e.constructor.prototype.isResultSet||!1}function Ve(e){return e&&!0===e.constructor.prototype.isHelp||!1}function He(e){return"function"==typeof e}function Ze(e){return e instanceof Date}function Ge(e){return e instanceof RegExp}function Xe(e){return!(!e||"object"!=typeof e||e.constructor!==Object||Oe(e)||ke(e))}function Qe(e){return!!e&&(e instanceof Map||e instanceof Me||"function"==typeof e.set&&"function"==typeof e.get&&"function"==typeof e.keys&&"function"==typeof e.has)}function Ye(e){return null===e}function Ke(e){return void 0===e}function er(e){return e&&!0===e.isAccessorNode&&!0===e.constructor.prototype.isNode||!1}function rr(e){return e&&!0===e.isArrayNode&&!0===e.constructor.prototype.isNode||!1}function tr(e){return e&&!0===e.isAssignmentNode&&!0===e.constructor.prototype.isNode||!1}function nr(e){return e&&!0===e.isBlockNode&&!0===e.constructor.prototype.isNode||!1}function ir(e){return e&&!0===e.isConditionalNode&&!0===e.constructor.prototype.isNode||!1}function ar(e){return e&&!0===e.isConstantNode&&!0===e.constructor.prototype.isNode||!1}function or(e){return ar(e)||mr(e)&&1===e.args.length&&ar(e.args[0])&&"-+~".includes(e.op)}function ur(e){return e&&!0===e.isFunctionAssignmentNode&&!0===e.constructor.prototype.isNode||!1}function sr(e){return e&&!0===e.isFunctionNode&&!0===e.constructor.prototype.isNode||!1}function cr(e){return e&&!0===e.isIndexNode&&!0===e.constructor.prototype.isNode||!1}function fr(e){return e&&!0===e.isNode&&!0===e.constructor.prototype.isNode||!1}function lr(e){return e&&!0===e.isObjectNode&&!0===e.constructor.prototype.isNode||!1}function mr(e){return e&&!0===e.isOperatorNode&&!0===e.constructor.prototype.isNode||!1}function dr(e){return e&&!0===e.isParenthesisNode&&!0===e.constructor.prototype.isNode||!1}function pr(e){return e&&!0===e.isRangeNode&&!0===e.constructor.prototype.isNode||!1}function hr(e){return e&&!0===e.isRelationalNode&&!0===e.constructor.prototype.isNode||!1}function vr(e){return e&&!0===e.isSymbolNode&&!0===e.constructor.prototype.isNode||!1}function yr(e){return e&&!0===e.constructor.prototype.isChain||!1}function gr(e){var r=typeof e;return"object"===r?null===e?"null":qe(e)?"BigNumber":e.constructor&&e.constructor.name?e.constructor.name:"Object":r}function xr(e){var r=typeof e;if("number"===r||"bigint"===r||"string"===r||"boolean"===r||null==e)return e;if("function"==typeof e.clone)return e.clone();if(Array.isArray(e))return e.map((function(e){return xr(e)}));if(e instanceof Date)return new Date(e.valueOf());if(qe(e))return e;if(Xe(e))return function(e,r){var t={};for(var n in e)Dr(e,n)&&(t[n]=r(e[n]));return t}(e,xr);if("function"===r)return e;throw new TypeError("Cannot clone: unknown type of value (value: ".concat(e,")"))}function br(e,r){for(var t in r)Dr(r,t)&&(e[t]=r[t]);return e}function wr(e,r){var t,n,i;if(Array.isArray(e)){if(!Array.isArray(r))return!1;if(e.length!==r.length)return!1;for(n=0,i=e.length;n<i;n++)if(!wr(e[n],r[n]))return!1;return!0}if("function"==typeof e)return e===r;if(e instanceof Object){if(Array.isArray(r)||!(r instanceof Object))return!1;for(t in e)if(!(t in r)||!wr(e[t],r[t]))return!1;for(t in r)if(!(t in e))return!1;return!0}return e===r}function Dr(e,r){return e&&Object.hasOwnProperty.call(e,r)}var Nr=function(e){if(e)throw new Error("The global config is readonly. \nPlease create a mathjs instance if you want to change the default configuration. \nExample:\n\n import { create, all } from 'mathjs';\n const mathjs = create(all);\n mathjs.config({ number: 'BigNumber' });\n");return Object.freeze(ge)};ye(Nr,ge,{MATRIX_OPTIONS:["Matrix","Array"],NUMBER_OPTIONS:["number","BigNumber","Fraction"]});var Ar={exports:{}};Ar.exports=function(){function e(){return!0}function r(){return!1}function t(){}const n="Argument is not a typed-function.";var i=function i(){function a(e){return"object"==typeof e&&null!==e&&e.constructor===Object}const o=[{name:"number",test:function(e){return"number"==typeof e}},{name:"string",test:function(e){return"string"==typeof e}},{name:"boolean",test:function(e){return"boolean"==typeof e}},{name:"Function",test:function(e){return"function"==typeof e}},{name:"Array",test:Array.isArray},{name:"Date",test:function(e){return e instanceof Date}},{name:"RegExp",test:function(e){return e instanceof RegExp}},{name:"Object",test:a},{name:"null",test:function(e){return null===e}},{name:"undefined",test:function(e){return void 0===e}}],u={name:"any",test:e,isAny:!0};let s,c,f=0,l={createCount:0};function m(e){const r=s.get(e);if(r)return r;let t='Unknown type "'+e+'"';const n=e.toLowerCase();let i;for(i of c)if(i.toLowerCase()===n){t+='. Did you mean "'+i+'" ?';break}throw new TypeError(t)}function d(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"any";const t=r?m(r).index:c.length,n=[];for(let r=0;r<e.length;++r){if(!e[r]||"string"!=typeof e[r].name||"function"!=typeof e[r].test)throw new TypeError("Object with properties {name: string, test: function} expected");const i=e[r].name;if(s.has(i))throw new TypeError('Duplicate type name "'+i+'"');n.push(i),s.set(i,{name:i,test:e[r].test,isAny:e[r].isAny,index:t+r,conversionsTo:[]})}const i=c.slice(t);c=c.slice(0,t).concat(n).concat(i);for(let e=t+n.length;e<c.length;++e)s.get(c[e]).index=e}function p(){s=new Map,c=[],f=0,d([u],!1)}function h(e){const r=c.filter((r=>{const t=s.get(r);return!t.isAny&&t.test(e)}));return r.length?r:["any"]}function v(e){return e&&"function"==typeof e&&"_typedFunctionData"in e}function y(e,r,t){if(!v(e))throw new TypeError(n);const i=t&&t.exact,a=D(Array.isArray(r)?r.join(","):r),o=g(a);if(!i||o in e.signatures){const r=e._typedFunctionData.signatureMap.get(o);if(r)return r}const u=a.length;let s,c;if(i){let r;for(r in s=[],e.signatures)s.push(e._typedFunctionData.signatureMap.get(r))}else s=e._typedFunctionData.signatures;for(let e=0;e<u;++e){const r=a[e],t=[];let n;for(n of s){const i=C(n.params,e);if(i&&(!r.restParam||i.restParam)){if(!i.hasAny){const e=w(i);if(r.types.some((r=>!e.has(r.name))))continue}t.push(n)}}if(s=t,0===s.length)break}for(c of s)if(c.params.length<=u)return c;throw new TypeError("Signature not found (signature: "+(e.name||"unnamed")+"("+g(a,", ")+"))")}function g(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";return e.map((e=>e.name)).join(r)}function x(e){const r=0===e.indexOf("..."),t=(r?e.length>3?e.slice(3):"any":e).split("|").map((e=>m(e.trim())));let n=!1,i=r?"...":"";return{types:t.map((function(e){return n=e.isAny||n,i+=e.name+"|",{name:e.name,typeIndex:e.index,test:e.test,isAny:e.isAny,conversion:null,conversionIndex:-1}})),name:i.slice(0,-1),hasAny:n,hasConversion:!1,restParam:r}}function b(e){const r=function(e){if(0===e.length)return[];const r=e.map(m);e.length>1&&r.sort(((e,r)=>e.index-r.index));let t=r[0].conversionsTo;if(1===e.length)return t;t=t.concat([]);const n=new Set(e);for(let e=1;e<r.length;++e){let i;for(i of r[e].conversionsTo)n.has(i.from)||(t.push(i),n.add(i.from))}return t}(e.types.map((e=>e.name)));let t=e.hasAny,n=e.name;const i=r.map((function(e){const r=m(e.from);return t=r.isAny||t,n+="|"+e.from,{name:e.from,typeIndex:r.index,test:r.test,isAny:r.isAny,conversion:e,conversionIndex:e.index}}));return{types:e.types.concat(i),name:n,hasAny:t,hasConversion:i.length>0,restParam:e.restParam}}function w(e){return e.typeSet||(e.typeSet=new Set,e.types.forEach((r=>e.typeSet.add(r.name)))),e.typeSet}function D(e){const r=[];if("string"!=typeof e)throw new TypeError("Signatures must be strings");const t=e.trim();if(""===t)return r;const n=t.split(",");for(let e=0;e<n.length;++e){const t=x(n[e].trim());if(t.restParam&&e!==n.length-1)throw new SyntaxError('Unexpected rest parameter "'+n[e]+'": only allowed for the last parameter');if(0===t.types.length)return null;r.push(t)}return r}function N(e){const r=J(e);return!!r&&r.restParam}function A(r){if(r&&0!==r.types.length){if(1===r.types.length)return m(r.types[0].name).test;if(2===r.types.length){const e=m(r.types[0].name).test,t=m(r.types[1].name).test;return function(r){return e(r)||t(r)}}{const e=r.types.map((function(e){return m(e.name).test}));return function(r){for(let t=0;t<e.length;t++)if(e[t](r))return!0;return!1}}}return e}function M(e){let r,t,n;if(N(e)){r=_(e).map(A);const t=r.length,n=A(J(e)),i=function(e){for(let r=t;r<e.length;r++)if(!n(e[r]))return!1;return!0};return function(e){for(let t=0;t<r.length;t++)if(!r[t](e[t]))return!1;return i(e)&&e.length>=t+1}}return 0===e.length?function(e){return 0===e.length}:1===e.length?(t=A(e[0]),function(e){return t(e[0])&&1===e.length}):2===e.length?(t=A(e[0]),n=A(e[1]),function(e){return t(e[0])&&n(e[1])&&2===e.length}):(r=e.map(A),function(e){for(let t=0;t<r.length;t++)if(!r[t](e[t]))return!1;return e.length===r.length})}function C(e,r){return r<e.length?e[r]:N(e)?J(e):null}function E(e,r){const t=C(e,r);return t?w(t):new Set}function S(e){return null==e.conversion}function F(e,r){const t=new Set;return e.forEach((e=>{const n=E(e.params,r);let i;for(i of n)t.add(i)})),t.has("any")?["any"]:Array.from(t)}function B(e,r,t){let n,i;const a=e||"unnamed";let o,u=t;for(o=0;o<r.length;o++){const e=[];if(u.forEach((t=>{const n=A(C(t.params,o));(o<t.params.length||N(t.params))&&n(r[o])&&e.push(t)})),0===e.length){if(i=F(u,o),i.length>0){const e=h(r[o]);return n=new TypeError("Unexpected type of argument in function "+a+" (expected: "+i.join(" or ")+", actual: "+e.join(" | ")+", index: "+o+")"),n.data={category:"wrongType",fn:a,index:o,actual:e,expected:i},n}}else u=e}const s=u.map((function(e){return N(e.params)?1/0:e.params.length}));if(r.length<Math.min.apply(null,s))return i=F(u,o),n=new TypeError("Too few arguments in function "+a+" (expected: "+i.join(" or ")+", index: "+r.length+")"),n.data={category:"tooFewArgs",fn:a,index:r.length,expected:i},n;const c=Math.max.apply(null,s);if(r.length>c)return n=new TypeError("Too many arguments in function "+a+" (expected: "+c+", actual: "+r.length+")"),n.data={category:"tooManyArgs",fn:a,index:r.length,expectedLength:c},n;const f=[];for(let e=0;e<r.length;++e)f.push(h(r[e]).join("|"));return n=new TypeError('Arguments of type "'+f.join(", ")+'" do not match any of the defined signatures of function '+a+"."),n.data={category:"mismatch",actual:f},n}function q(e){let r=c.length+1;for(let t=0;t<e.types.length;t++)S(e.types[t])&&(r=Math.min(r,e.types[t].typeIndex));return r}function T(e){let r=f+1;for(let t=0;t<e.types.length;t++)S(e.types[t])||(r=Math.min(r,e.types[t].conversionIndex));return r}function O(e,r){if(e.hasAny){if(!r.hasAny)return 1}else if(r.hasAny)return-1;if(e.restParam){if(!r.restParam)return 1}else if(r.restParam)return-1;if(e.hasConversion){if(!r.hasConversion)return 1}else if(r.hasConversion)return-1;const t=q(e)-q(r);if(t<0)return-1;if(t>0)return 1;const n=T(e)-T(r);return n<0?-1:n>0?1:0}function k(e,r){const t=e.params,n=r.params,i=J(t),a=J(n),o=N(t),u=N(n);if(o&&i.hasAny){if(!u||!a.hasAny)return 1}else if(u&&a.hasAny)return-1;let s,c=0,f=0;for(s of t)s.hasAny&&++c,s.hasConversion&&++f;let l=0,m=0;for(s of n)s.hasAny&&++l,s.hasConversion&&++m;if(c!==l)return c-l;if(o&&i.hasConversion){if(!u||!a.hasConversion)return 1}else if(u&&a.hasConversion)return-1;if(f!==m)return f-m;if(o){if(!u)return 1}else if(u)return-1;const d=(t.length-n.length)*(o?-1:1);if(0!==d)return d;const p=[];let h,v=0;for(let e=0;e<t.length;++e){const r=O(t[e],n[e]);p.push(r),v+=r}if(0!==v)return v;for(h of p)if(0!==h)return h;return 0}function z(e,r){let t=r;if(e.some((e=>e.hasConversion))){const n=N(e),i=e.map(I);t=function(){const e=[],t=n?arguments.length-1:arguments.length;for(let r=0;r<t;r++)e[r]=i[r](arguments[r]);return n&&(e[t]=arguments[t].map(i[t])),r.apply(this,e)}}let n=t;if(N(e)){const r=e.length-1;n=function(){return t.apply(this,W(arguments,0,r).concat([W(arguments,r)]))}}return n}function I(e){let r,t,n,i;const a=[],o=[];switch(e.types.forEach((function(e){e.conversion&&(a.push(m(e.conversion.from).test),o.push(e.conversion.convert))})),o.length){case 0:return function(e){return e};case 1:return r=a[0],n=o[0],function(e){return r(e)?n(e):e};case 2:return r=a[0],t=a[1],n=o[0],i=o[1],function(e){return r(e)?n(e):t(e)?i(e):e};default:return function(e){for(let r=0;r<o.length;r++)if(a[r](e))return o[r](e);return e}}}function R(e){return function e(r,t,n){if(t<r.length){const i=r[t];let a=[];if(i.restParam){const e=i.types.filter(S);e.length<i.types.length&&a.push({types:e,name:"..."+e.map((e=>e.name)).join("|"),hasAny:e.some((e=>e.isAny)),hasConversion:!1,restParam:!0}),a.push(i)}else a=i.types.map((function(e){return{types:[e],name:e.name,hasAny:e.isAny,hasConversion:e.conversion,restParam:!1}}));return Array.prototype.concat.apply([],a.map((function(i){return e(r,t+1,n.concat([i]))})))}return[n]}(e,0,[])}function j(e,r){const t=Math.max(e.length,r.length);for(let n=0;n<t;n++){const t=E(e,n),i=E(r,n);let a,o=!1;for(a of i)if(t.has(a)){o=!0;break}if(!o)return!1}const n=e.length,i=r.length,a=N(e),o=N(r);return a?o?n===i:i>=n:o?n>=i:n===i}function U(e,r,t){const n=[];let i;for(i of e){let e=t[i];if("number"!=typeof e)throw new TypeError('No definition for referenced signature "'+i+'"');if(e=r[e],"function"!=typeof e)return!1;n.push(e)}return n}function $(e,r,t){const n=function(e){return e.map((e=>G(e)?H(e.referToSelf.callback):Z(e)?V(e.referTo.references,e.referTo.callback):e))}(e),i=new Array(n.length).fill(!1);let a=!0;for(;a;){a=!1;let e=!0;for(let o=0;o<n.length;++o){if(i[o])continue;const u=n[o];if(G(u))n[o]=u.referToSelf.callback(t),n[o].referToSelf=u.referToSelf,i[o]=!0,e=!1;else if(Z(u)){const t=U(u.referTo.references,n,r);t?(n[o]=u.referTo.callback.apply(this,t),n[o].referTo=u.referTo,i[o]=!0,e=!1):a=!0}}if(e&&a)throw new SyntaxError("Circular reference detected in resolving typed.referTo")}return n}function P(e,n){if(l.createCount++,0===Object.keys(n).length)throw new SyntaxError("No signatures provided");l.warnAgainstDeprecatedThis&&function(e){const r=/\bthis(\(|\.signatures\b)/;Object.keys(e).forEach((t=>{if(r.test(e[t].toString()))throw new SyntaxError("Using `this` to self-reference a function is deprecated since typed-function@3. Use typed.referTo and typed.referToSelf instead.")}))}(n);const i=[],a=[],o={},u=[];let s;for(s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;const e=D(s);if(!e)continue;i.forEach((function(r){if(j(r,e))throw new TypeError('Conflicting signatures "'+g(r)+'" and "'+g(e)+'".')})),i.push(e);const r=a.length;a.push(n[s]);const t=e.map(b);let c;for(c of R(t)){const e=g(c);u.push({params:c,name:e,fn:r}),c.every((e=>!e.hasConversion))&&(o[e]=r)}}u.sort(k);const c=$(a,o,ue);let f;for(f in o)Object.prototype.hasOwnProperty.call(o,f)&&(o[f]=c[o[f]]);const m=[],d=new Map;for(f of u)d.has(f.name)||(f.fn=c[f.fn],m.push(f),d.set(f.name,f));const p=m[0]&&m[0].params.length<=2&&!N(m[0].params),h=m[1]&&m[1].params.length<=2&&!N(m[1].params),v=m[2]&&m[2].params.length<=2&&!N(m[2].params),y=m[3]&&m[3].params.length<=2&&!N(m[3].params),x=m[4]&&m[4].params.length<=2&&!N(m[4].params),w=m[5]&&m[5].params.length<=2&&!N(m[5].params),C=p&&h&&v&&y&&x&&w;for(let e=0;e<m.length;++e)m[e].test=M(m[e].params);const E=p?A(m[0].params[0]):r,S=h?A(m[1].params[0]):r,F=v?A(m[2].params[0]):r,B=y?A(m[3].params[0]):r,q=x?A(m[4].params[0]):r,T=w?A(m[5].params[0]):r,O=p?A(m[0].params[1]):r,I=h?A(m[1].params[1]):r,U=v?A(m[2].params[1]):r,P=y?A(m[3].params[1]):r,L=x?A(m[4].params[1]):r,_=w?A(m[5].params[1]):r;for(let e=0;e<m.length;++e)m[e].implementation=z(m[e].params,m[e].fn);const J=p?m[0].implementation:t,W=h?m[1].implementation:t,V=v?m[2].implementation:t,H=y?m[3].implementation:t,Z=x?m[4].implementation:t,G=w?m[5].implementation:t,X=p?m[0].params.length:-1,Q=h?m[1].params.length:-1,Y=v?m[2].params.length:-1,K=y?m[3].params.length:-1,ee=x?m[4].params.length:-1,re=w?m[5].params.length:-1,te=C?6:0,ne=m.length,ie=m.map((e=>e.test)),ae=m.map((e=>e.implementation)),oe=function(){for(let e=te;e<ne;e++)if(ie[e](arguments))return ae[e].apply(this,arguments);return l.onMismatch(e,arguments,m)};function ue(e,r){return arguments.length===X&&E(e)&&O(r)?J.apply(this,arguments):arguments.length===Q&&S(e)&&I(r)?W.apply(this,arguments):arguments.length===Y&&F(e)&&U(r)?V.apply(this,arguments):arguments.length===K&&B(e)&&P(r)?H.apply(this,arguments):arguments.length===ee&&q(e)&&L(r)?Z.apply(this,arguments):arguments.length===re&&T(e)&&_(r)?G.apply(this,arguments):oe.apply(this,arguments)}try{Object.defineProperty(ue,"name",{value:e})}catch(e){}return ue.signatures=o,ue._typedFunctionData={signatures:m,signatureMap:d},ue}function L(e,r,t){throw B(e,r,t)}function _(e){return W(e,0,e.length-1)}function J(e){return e[e.length-1]}function W(e,r,t){return Array.prototype.slice.call(e,r,t)}function V(e,r){return{referTo:{references:e,callback:r}}}function H(e){if("function"!=typeof e)throw new TypeError("Callback function expected as first argument");return{referToSelf:{callback:e}}}function Z(e){return e&&"object"==typeof e.referTo&&Array.isArray(e.referTo.references)&&"function"==typeof e.referTo.callback}function G(e){return e&&"object"==typeof e.referToSelf&&"function"==typeof e.referToSelf.callback}function X(e,r){if(!e)return r;if(r&&r!==e){const t=new Error("Function names do not match (expected: "+e+", actual: "+r+")");throw t.data={actual:r,expected:e},t}return e}function Q(e){let r;for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(v(e[t])||"string"==typeof e[t].signature)&&(r=X(r,e[t].name));return r}function Y(e,r){let t;for(t in r)if(Object.prototype.hasOwnProperty.call(r,t)){if(t in e&&r[t]!==e[t]){const n=new Error('Signature "'+t+'" is defined twice');throw n.data={signature:t,sourceFunction:r[t],destFunction:e[t]},n}e[t]=r[t]}}p(),d(o);const K=l;function ee(e){if(!e||"string"!=typeof e.from||"string"!=typeof e.to||"function"!=typeof e.convert)throw new TypeError("Object with properties {from: string, to: string, convert: function} expected");if(e.to===e.from)throw new SyntaxError('Illegal to define conversion from "'+e.from+'" to itself.')}return l=function(e){const r="string"==typeof e;let t=r?e:"";const n={};for(let e=r?1:0;e<arguments.length;++e){const i=arguments[e];let o,u={};if("function"==typeof i?(o=i.name,"string"==typeof i.signature?u[i.signature]=i:v(i)&&(u=i.signatures)):a(i)&&(u=i,r||(o=Q(i))),0===Object.keys(u).length){const r=new TypeError("Argument to 'typed' at index "+e+" is not a (typed) function, nor an object with signatures as keys and functions as values.");throw r.data={index:e,argument:i},r}r||(t=X(t,o)),Y(n,u)}return P(t||"",n)},l.create=i,l.createCount=K.createCount,l.onMismatch=L,l.throwMismatchError=L,l.createError=B,l.clear=p,l.clearConversions=function(){let e;for(e of c)s.get(e).conversionsTo=[];f=0},l.addTypes=d,l._findType=m,l.referTo=function(){const e=_(arguments).map((e=>g(D(e)))),r=J(arguments);if("function"!=typeof r)throw new TypeError("Callback function expected as last argument");return V(e,r)},l.referToSelf=H,l.convert=function(e,r){const t=m(r);if(t.test(e))return e;const n=t.conversionsTo;if(0===n.length)throw new Error("There are no conversions to "+r+" defined.");for(let r=0;r<n.length;r++)if(m(n[r].from).test(e))return n[r].convert(e);throw new Error("Cannot convert "+e+" to "+r)},l.findSignature=y,l.find=function(e,r,t){return y(e,r,t).implementation},l.isTypedFunction=v,l.warnAgainstDeprecatedThis=!0,l.addType=function(e,r){let t="any";!1!==r&&s.has("Object")&&(t="Object"),l.addTypes([e],t)},l.addConversion=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{override:!1};ee(e);const t=m(e.to),n=t.conversionsTo.find((r=>r.from===e.from));if(n){if(!r||!r.override)throw new Error('There is already a conversion from "'+e.from+'" to "'+t.name+'"');l.removeConversion({from:n.from,to:e.to,convert:n.convert})}t.conversionsTo.push({from:e.from,convert:e.convert,index:f++})},l.addConversions=function(e,r){e.forEach((e=>l.addConversion(e,r)))},l.removeConversion=function(e){ee(e);const r=m(e.to),t=function(e,r){for(let t=0;t<e.length;t++)if(r(e[t]))return e[t]}(r.conversionsTo,(r=>r.from===e.from));if(!t)throw new Error("Attempt to remove nonexistent conversion from "+e.from+" to "+e.to);if(t.convert!==e.convert)throw new Error("Conversion to remove does not match existing conversion");const n=r.conversionsTo.indexOf(t);r.conversionsTo.splice(n,1)},l.resolve=function(e,r){if(!v(e))throw new TypeError(n);const t=e._typedFunctionData.signatures;for(let e=0;e<t.length;++e)if(t[e].test(r))return t[e];return null},l}();return i}();const Mr=Ar.exports;function Cr(e,r,t,n){function i(n){var i=function(e,r){for(var t={},n=0;n<r.length;n++){var i=r[n],a=e[i];void 0!==a&&(t[i]=a)}return t}(n,r.map(Er));return function(e,r,t){if(!r.filter((e=>!function(e){return e&&"?"===e[0]}(e))).every((e=>void 0!==t[e]))){var n=r.filter((e=>void 0===t[e]));throw new Error('Cannot create function "'.concat(e,'", ')+"some dependencies are missing: ".concat(n.map((e=>'"'.concat(e,'"'))).join(", "),"."))}}(e,r,n),t(i)}return i.isFactory=!0,i.fn=e,i.dependencies=r.slice().sort(),n&&(i.meta=n),i}function Er(e){return e&&"?"===e[0]?e.slice(1):e}function Sr(e){return"boolean"==typeof e||!!isFinite(e)&&e===Math.round(e)}function Fr(e,r){if("bigint"===r.number)try{BigInt(e)}catch(e){return r.numberFallback}return r.number}var Br=Math.sign||function(e){return e>0?1:e<0?-1:0},qr=Math.log2||function(e){return Math.log(e)/Math.LN2},Tr=Math.log10||function(e){return Math.log(e)/Math.LN10},Or=Math.log1p||function(e){return Math.log(e+1)},kr=Math.cbrt||function(e){if(0===e)return e;var r,t=e<0;return t&&(e=-e),r=isFinite(e)?(e/((r=Math.exp(Math.log(e)/3))*r)+2*r)/3:e,t?-r:r},zr=Math.expm1||function(e){return e>=2e-4||e<=-2e-4?Math.exp(e)-1:e+e*e/2+e*e*e/6};function Ir(e,r,t){var n={2:"0b",8:"0o",16:"0x"}[r],i="";if(t){if(t<1)throw new Error("size must be in greater than 0");if(!Sr(t))throw new Error("size must be an integer");if(e>2**(t-1)-1||e<-(2**(t-1)))throw new Error("Value must be in range [-2^".concat(t-1,", 2^").concat(t-1,"-1]"));if(!Sr(e))throw new Error("Value must be an integer");e<0&&(e+=2**t),i="i".concat(t)}var a="";return e<0&&(e=-e,a="-"),"".concat(a).concat(n).concat(e.toString(r)).concat(i)}function Rr(e,r){if("function"==typeof r)return r(e);if(e===1/0)return"Infinity";if(e===-1/0)return"-Infinity";if(isNaN(e))return"NaN";var{notation:t,precision:n,wordSize:i}=jr(r);switch(t){case"fixed":return $r(e,n);case"exponential":return Pr(e,n);case"engineering":return function(e,r){if(isNaN(e)||!isFinite(e))return String(e);var t=Lr(Ur(e),r),n=t.exponent,i=t.coefficients,a=n%3==0?n:n<0?n-3-n%3:n-n%3;if(Be(r))for(;r>i.length||n-a+1>i.length;)i.push(0);else for(var o=Math.abs(n-a)-(i.length-1),u=0;u<o;u++)i.push(0);for(var s=Math.abs(n-a),c=1;s>0;)c++,s--;var f=i.slice(c).join(""),l=Be(r)&&f.length||f.match(/[1-9]/)?"."+f:"",m=i.slice(0,c).join("")+l+"e"+(n>=0?"+":"")+a.toString();return t.sign+m}(e,n);case"bin":return Ir(e,2,i);case"oct":return Ir(e,8,i);case"hex":return Ir(e,16,i);case"auto":return function(e,r,t){if(isNaN(e)||!isFinite(e))return String(e);var n=Yr(null==t?void 0:t.lowerExp,-3),i=Yr(null==t?void 0:t.upperExp,5),a=Ur(e),o=r?Lr(a,r):a;if(o.exponent<n||o.exponent>=i)return Pr(e,r);var u=o.coefficients,s=o.exponent;u.length<r&&(u=u.concat(_r(r-u.length))),u=u.concat(_r(s-u.length+1+(u.length<r?r-u.length:0)));var c=s>0?s:0;return c<(u=_r(-s).concat(u)).length-1&&u.splice(c+1,0,"."),o.sign+u.join("")}(e,n,r).replace(/((\.\d*?)(0+))($|e)/,(function(){var e=arguments[2],r=arguments[4];return"."!==e?e+r:r}));default:throw new Error('Unknown notation "'+t+'". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.')}}function jr(e){var r,t,n="auto";if(void 0!==e)if(Be(e))r=e;else if(qe(e))r=e.toNumber();else{if(!Xe(e))throw new Error("Unsupported type of options, number, BigNumber, or object expected");void 0!==e.precision&&(r=Qr(e.precision,(()=>{throw new Error('Option "precision" must be a number or BigNumber')}))),void 0!==e.wordSize&&(t=Qr(e.wordSize,(()=>{throw new Error('Option "wordSize" must be a number or BigNumber')}))),e.notation&&(n=e.notation)}return{notation:n,precision:r,wordSize:t}}function Ur(e){var r=String(e).toLowerCase().match(/^(-?)(\d+\.?\d*)(e([+-]?\d+))?$/);if(!r)throw new SyntaxError("Invalid number "+e);var t=r[1],n=r[2],i=parseFloat(r[4]||"0"),a=n.indexOf(".");i+=-1!==a?a-1:n.length-1;var o=n.replace(".","").replace(/^0*/,(function(e){return i-=e.length,""})).replace(/0*$/,"").split("").map((function(e){return parseInt(e)}));return 0===o.length&&(o.push(0),i++),{sign:t,coefficients:o,exponent:i}}function $r(e,r){if(isNaN(e)||!isFinite(e))return String(e);var t=Ur(e),n="number"==typeof r?Lr(t,t.exponent+1+r):t,i=n.coefficients,a=n.exponent+1,o=a+(r||0);return i.length<o&&(i=i.concat(_r(o-i.length))),a<0&&(i=_r(1-a).concat(i),a=1),a<i.length&&i.splice(a,0,0===a?"0.":"."),n.sign+i.join("")}function Pr(e,r){if(isNaN(e)||!isFinite(e))return String(e);var t=Ur(e),n=r?Lr(t,r):t,i=n.coefficients,a=n.exponent;i.length<r&&(i=i.concat(_r(r-i.length)));var o=i.shift();return n.sign+o+(i.length>0?"."+i.join(""):"")+"e"+(a>=0?"+":"")+a}function Lr(e,r){for(var t={sign:e.sign,coefficients:e.coefficients,exponent:e.exponent},n=t.coefficients;r<=0;)n.unshift(0),t.exponent++,r++;if(n.length>r&&n.splice(r,n.length-r)[0]>=5){var i=r-1;for(n[i]++;10===n[i];)n.pop(),0===i&&(n.unshift(0),t.exponent++,i++),n[--i]++}return t}function _r(e){for(var r=[],t=0;t<e;t++)r.push(0);return r}function Jr(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e-8,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(t<=0)throw new Error("Relative tolerance must be greater than 0");if(n<0)throw new Error("Absolute tolerance must be at least 0");return!isNaN(e)&&!isNaN(r)&&(isFinite(e)&&isFinite(r)?e===r||Math.abs(e-r)<=Math.max(t*Math.max(Math.abs(e),Math.abs(r)),n):e===r)}var Wr=Math.acosh||function(e){return Math.log(Math.sqrt(e*e-1)+e)},Vr=Math.asinh||function(e){return Math.log(Math.sqrt(e*e+1)+e)},Hr=Math.atanh||function(e){return Math.log((1+e)/(1-e))/2},Zr=Math.cosh||function(e){return(Math.exp(e)+Math.exp(-e))/2},Gr=Math.sinh||function(e){return(Math.exp(e)-Math.exp(-e))/2},Xr=Math.tanh||function(e){var r=Math.exp(2*e);return(r-1)/(r+1)};function Qr(e,r){return Be(e)?e:qe(e)?e.toNumber():void r()}function Yr(e,r){return Be(e)?e:qe(e)?e.toNumber():r}var Kr=function(){return Kr=Mr.create,Mr},et=Cr("typed",["?BigNumber","?Complex","?DenseMatrix","?Fraction"],(function(e){var{BigNumber:r,Complex:t,DenseMatrix:n,Fraction:i}=e,a=Kr();return a.clear(),a.addTypes([{name:"number",test:Be},{name:"Complex",test:Oe},{name:"BigNumber",test:qe},{name:"bigint",test:Te},{name:"Fraction",test:ke},{name:"Unit",test:ze},{name:"identifier",test:e=>Ie&&/^(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDD4A-\uDD65\uDD6F-\uDD85\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC4\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDDD0-\uDDED\uDDF0\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDD4A-\uDD65\uDD6F-\uDD85\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC4\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDDD0-\uDDED\uDDF0\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])*$/.test(e)},{name:"string",test:Ie},{name:"Chain",test:yr},{name:"Array",test:Re},{name:"Matrix",test:je},{name:"DenseMatrix",test:$e},{name:"SparseMatrix",test:Pe},{name:"Range",test:Le},{name:"Index",test:_e},{name:"boolean",test:Je},{name:"ResultSet",test:We},{name:"Help",test:Ve},{name:"function",test:He},{name:"Date",test:Ze},{name:"RegExp",test:Ge},{name:"null",test:Ye},{name:"undefined",test:Ke},{name:"AccessorNode",test:er},{name:"ArrayNode",test:rr},{name:"AssignmentNode",test:tr},{name:"BlockNode",test:nr},{name:"ConditionalNode",test:ir},{name:"ConstantNode",test:ar},{name:"FunctionNode",test:sr},{name:"FunctionAssignmentNode",test:ur},{name:"IndexNode",test:cr},{name:"Node",test:fr},{name:"ObjectNode",test:lr},{name:"OperatorNode",test:mr},{name:"ParenthesisNode",test:dr},{name:"RangeNode",test:pr},{name:"RelationalNode",test:hr},{name:"SymbolNode",test:vr},{name:"Map",test:Qe},{name:"Object",test:Xe}]),a.addConversions([{from:"number",to:"BigNumber",convert:function(e){if(r||rt(e),e.toExponential().replace(/e.*$/,"").replace(/^0\.?0*|\./,"").length>15)throw new TypeError("Cannot implicitly convert a number with >15 significant digits to BigNumber (value: "+e+"). Use function bignumber(x) to convert to BigNumber.");return new r(e)}},{from:"number",to:"Complex",convert:function(e){return t||tt(e),new t(e,0)}},{from:"BigNumber",to:"Complex",convert:function(e){return t||tt(e),new t(e.toNumber(),0)}},{from:"bigint",to:"number",convert:function(e){if(e>Number.MAX_SAFE_INTEGER)throw new TypeError("Cannot implicitly convert bigint to number: value exceeds the max safe integer value (value: "+e+")");return Number(e)}},{from:"bigint",to:"BigNumber",convert:function(e){return r||rt(e),new r(e.toString())}},{from:"bigint",to:"Fraction",convert:function(e){return i||nt(e),new i(e)}},{from:"Fraction",to:"BigNumber",convert:function(){throw new TypeError("Cannot implicitly convert a Fraction to BigNumber or vice versa. Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.")}},{from:"Fraction",to:"Complex",convert:function(e){return t||tt(e),new t(e.valueOf(),0)}},{from:"number",to:"Fraction",convert:function(e){i||nt(e);var r=new i(e);if(r.valueOf()!==e)throw new TypeError("Cannot implicitly convert a number to a Fraction when there will be a loss of precision (value: "+e+"). Use function fraction(x) to convert to Fraction.");return r}},{from:"string",to:"number",convert:function(e){var r=Number(e);if(isNaN(r))throw new Error('Cannot convert "'+e+'" to a number');return r}},{from:"string",to:"BigNumber",convert:function(e){r||rt(e);try{return new r(e)}catch(r){throw new Error('Cannot convert "'+e+'" to BigNumber')}}},{from:"string",to:"bigint",convert:function(e){try{return BigInt(e)}catch(r){throw new Error('Cannot convert "'+e+'" to BigInt')}}},{from:"string",to:"Fraction",convert:function(e){i||nt(e);try{return new i(e)}catch(r){throw new Error('Cannot convert "'+e+'" to Fraction')}}},{from:"string",to:"Complex",convert:function(e){t||tt(e);try{return new t(e)}catch(r){throw new Error('Cannot convert "'+e+'" to Complex')}}},{from:"boolean",to:"number",convert:function(e){return+e}},{from:"boolean",to:"BigNumber",convert:function(e){return r||rt(e),new r(+e)}},{from:"boolean",to:"bigint",convert:function(e){return BigInt(+e)}},{from:"boolean",to:"Fraction",convert:function(e){return i||nt(e),new i(+e)}},{from:"boolean",to:"string",convert:function(e){return String(e)}},{from:"Array",to:"Matrix",convert:function(e){return n||function(){throw new Error("Cannot convert array into a Matrix: no class 'DenseMatrix' provided")}(),new n(e)}},{from:"Matrix",to:"Array",convert:function(e){return e.valueOf()}}]),a.onMismatch=(e,r,t)=>{var n=a.createError(e,r,t);if(["wrongType","mismatch"].includes(n.data.category)&&1===r.length&&Ue(r[0])&&t.some((e=>!e.params.includes(",")))){var i=new TypeError("Function '".concat(e,"' doesn't apply to matrices. To call it ")+"elementwise on a matrix 'M', try 'map(M, ".concat(e,")'."));throw i.data=n.data,i}throw n},a.onMismatch=(e,r,t)=>{var n=a.createError(e,r,t);if(["wrongType","mismatch"].includes(n.data.category)&&1===r.length&&Ue(r[0])&&t.some((e=>!e.params.includes(",")))){var i=new TypeError("Function '".concat(e,"' doesn't apply to matrices. To call it ")+"elementwise on a matrix 'M', try 'map(M, ".concat(e,")'."));throw i.data=n.data,i}throw n},a}));function rt(e){throw new Error("Cannot convert value ".concat(e," into a BigNumber: no class 'BigNumber' provided"))}function tt(e){throw new Error("Cannot convert value ".concat(e," into a Complex number: no class 'Complex' provided"))}function nt(e){throw new Error("Cannot convert value ".concat(e," into a Fraction, no class 'Fraction' provided."))}var it,at=Cr("ResultSet",[],(()=>{function e(r){if(!(this instanceof e))throw new SyntaxError("Constructor must be called with the new operator");this.entries=r||[]}return e.prototype.type="ResultSet",e.prototype.isResultSet=!0,e.prototype.valueOf=function(){return this.entries},e.prototype.toString=function(){return"["+this.entries.map(String).join(", ")+"]"},e.prototype.toJSON=function(){return{mathjs:"ResultSet",entries:this.entries}},e.fromJSON=function(r){return new e(r.entries)},e}),{isClass:!0}),ot={exports:{}};it=ot,function(e){
2
2
  /*!
3
3
  * decimal.js v10.5.0
4
4
  * An arbitrary-precision Decimal type for JavaScript.
@@ -0,0 +1,4 @@
1
+ import { Meta, StoryObj } from '@storybook/web-components';
2
+ declare const meta: Meta;
3
+ export default meta;
4
+ export declare const imageMatch: StoryObj;
@@ -0,0 +1,4 @@
1
+ import type { Meta, StoryObj } from '@storybook/web-components';
2
+ declare const meta: Meta;
3
+ export default meta;
4
+ export declare const PalEgraOptionWithAudio: StoryObj;
@@ -0,0 +1,4 @@
1
+ import { Meta, StoryObj } from '@storybook/web-components';
2
+ declare const meta: Meta;
3
+ export default meta;
4
+ export declare const palEgraArrangePictures: StoryObj;
@@ -0,0 +1,4 @@
1
+ import { Meta, StoryObj } from '@storybook/web-components';
2
+ declare const meta: Meta;
3
+ export default meta;
4
+ export declare const palEgraBuildWord: StoryObj;
@@ -0,0 +1,4 @@
1
+ import { Meta, StoryObj } from '@storybook/web-components';
2
+ declare const meta: Meta;
3
+ export default meta;
4
+ export declare const AmazingStories: StoryObj;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lido-player",
3
- "version": "0.0.2-alpha-59-dev",
3
+ "version": "0.0.2-alpha-60-dev",
4
4
  "description": "Stencil Component For Lido Player",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.js",