@yuktishaalaa/yuktai 2.0.8 → 2.0.9

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.
@@ -0,0 +1,12 @@
1
+ "use strict";var YuktAI=(()=>{var g=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var k=Object.prototype.hasOwnProperty;var T=(n,r)=>{for(var b in r)g(n,b,{get:r[b],enumerable:!0})},M=(n,r,b,u)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of S(r))!k.call(n,a)&&a!==b&&g(n,a,{get:()=>r[a],enumerable:!(u=w(r,a))||u.enumerable});return n};var E=n=>M(g({},"__esModule",{value:!0}),n);var I={};T(I,{wcagPlugin:()=>q});var d=null,m=null,f={deuteranopia:"yuktai-cb-d",protanopia:"yuktai-cb-p",tritanopia:"yuktai-cb-t"},y=new Set(["h1","h2","h3","h4","h5","h6"]),h=new Set(["input","select","textarea"]),v=new Set(["button","a","input","select","textarea","details","summary"]),C=new Set(["video","audio"]),L=new Set(["ul","ol","dl"]);var $=new Set(["span","strong","em","b","i","u","s","small","mark","del","ins","sub","sup","abbr","cite","code","kbd","samp","var","time","q"]),p={nav:"navigation",header:"banner",footer:"contentinfo",main:"main",aside:"complementary"},q={name:"yuktai-a11y",version:"1.0.0",observer:null,async execute(n){if(!n.enabled)return this.stopObserver(),"yuktai-a11y: disabled.";let r=this.applyFixes(n);return n.autoFix&&this.startObserver(n),`yuktai-a11y: ${r.fixed} fixes applied across ${r.scanned} nodes in ${r.renderTime}ms.`},scan(){let n={fixed:0,scanned:0,renderTime:0,details:[]};if(typeof document>"u")return n;let r=performance.now(),b=document.querySelectorAll("*");n.scanned=b.length;let u=(a,l,e,t)=>n.details.push({tag:a,fix:l,severity:e,element:t.outerHTML.slice(0,100)});return b.forEach(a=>{let l=a,e=l.tagName.toLowerCase();(e==="a"||e==="button")&&!l.innerText?.trim()&&!l.getAttribute("aria-label")&&u(e,"needs aria-label (empty)","critical",l),e==="img"&&!l.hasAttribute("alt")&&u(e,"needs alt text","serious",l),h.has(e)&&!l.getAttribute("aria-label")&&!l.getAttribute("aria-labelledby")&&u(e,"needs aria-label","serious",l),e==="iframe"&&!l.getAttribute("title")&&!l.getAttribute("aria-label")&&u(e,"iframe needs title","serious",l),C.has(e)&&!a.querySelector("track")&&!l.getAttribute("aria-label")&&u(e,"media needs captions/aria-label","serious",l),y.has(e)&&!l.innerText?.trim()&&!l.getAttribute("aria-label")&&u(e,"empty heading","moderate",l)}),n.fixed=n.details.length,n.renderTime=parseFloat((performance.now()-r).toFixed(2)),n},applyFixes(n){let r={fixed:0,scanned:0,renderTime:0,details:[]};if(typeof document>"u")return r;let b=performance.now(),u=document.querySelectorAll("*");r.scanned=u.length;let a=(l,e,t,x)=>{r.details.push({tag:l,fix:e,severity:t,element:x.outerHTML.slice(0,100)}),r.fixed++};if(u.forEach(l=>{let e=l,t=e.tagName.toLowerCase();if(t==="html"&&!e.getAttribute("lang")&&(e.setAttribute("lang","en"),a(t,'lang="en" added to <html>',"critical",e)),t==="head"&&!document.title&&(document.title=document.querySelector("h1")?.innerText?.trim()||"Page",a(t,`document.title set to "${document.title}"`,"serious",e)),t==="meta"){let i=e.getAttribute("name"),o=e.getAttribute("content")||"";i==="viewport"&&o.includes("user-scalable=no")&&(e.setAttribute("content",o.replace("user-scalable=no","user-scalable=yes")),a(t,"user-scalable=yes restored","serious",e)),i==="viewport"&&/maximum-scale=1(?:[^0-9]|$)/.test(o)&&(e.setAttribute("content",o.replace(/maximum-scale=1(?=[^0-9]|$)/,"maximum-scale=5")),a(t,"maximum-scale=5 restored","serious",e))}if(t==="body"&&!document.querySelector("[data-yuktai-skip]")){let i=document.createElement("a");i.setAttribute("href","#main-content"),i.setAttribute("data-yuktai-skip","true"),i.setAttribute("aria-label","Skip to main content"),i.textContent="Skip to main content",i.style.cssText="position:fixed;top:-40px;left:0;background:#0d9488;color:#fff;padding:8px 16px;z-index:99999;font-family:system-ui;font-size:14px;border-radius:0 0 4px 0;text-decoration:none;transition:top 0.2s;",i.addEventListener("focus",()=>{i.style.top="0"}),i.addEventListener("blur",()=>{i.style.top="-40px"}),e.insertBefore(i,e.firstChild),a(t,"skip-to-content link injected","minor",e);let o=document.querySelector("main,[role='main']");o&&!o.getAttribute("tabindex")&&o.setAttribute("tabindex","-1")}if(y.has(t)&&(!e.innerText?.trim()&&!e.getAttribute("aria-label")&&!e.getAttribute("aria-labelledby")&&(e.setAttribute("aria-label",`${t.toUpperCase()} section`),a(t,`aria-label="${t.toUpperCase()} section" (empty heading)`,"moderate",e)),e.hasAttribute("onclick")&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","0"),e.onkeydown||(e.onkeydown=i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),e.click())}),a(t,"tabindex=0 + keydown (clickable heading)","minor",e))),t==="p"&&e.getAttribute("dir")==="rtl"&&!e.getAttribute("lang")&&!document.documentElement.getAttribute("lang")&&(e.setAttribute("lang","ar"),a(t,'lang="ar" (rtl paragraph)',"moderate",e)),t==="img"&&(e.hasAttribute("alt")||(e.setAttribute("alt",""),e.setAttribute("aria-hidden","true"),a(t,'alt="" aria-hidden="true"',"serious",e)),e.getAttribute("role")==="presentation"&&e.getAttribute("alt")!==""&&(e.setAttribute("alt",""),a(t,'alt="" (role=presentation)',"minor",e))),t==="area"&&!e.getAttribute("alt")){let i=e.getAttribute("title")||e.getAttribute("href")||"map area";e.setAttribute("alt",i),a(t,`alt="${i}" on <area>`,"serious",e)}if(t==="svg"){if(!e.getAttribute("aria-hidden")&&!e.getAttribute("aria-label")&&!l.querySelector("title"))if(!e.getAttribute("role")||e.getAttribute("role")==="img"){let i=document.createElementNS("http://www.w3.org/2000/svg","title");i.textContent="graphic",e.prepend(i),e.setAttribute("role","img"),a(t,'role="img" + <title> injected',"moderate",e)}else e.setAttribute("aria-hidden","true"),a(t,'aria-hidden="true" (decorative svg)',"minor",e);e.getAttribute("focusable")||e.setAttribute("focusable","false")}if(t==="canvas"&&(e.getAttribute("role")||(e.setAttribute("role","img"),a(t,'role="img"',"serious",e)),e.getAttribute("aria-label")||(e.setAttribute("aria-label",e.getAttribute("title")||"canvas graphic"),a(t,"aria-label added to canvas","serious",e))),(t==="object"||t==="embed")&&!e.getAttribute("aria-label")&&!e.getAttribute("title")&&(e.setAttribute("aria-label",`embedded ${t} content`),a(t,`aria-label added to <${t}>`,"moderate",e)),t==="video"&&!l.querySelector("track")&&!e.getAttribute("aria-label")&&(e.setAttribute("aria-label",e.getAttribute("title")||"video player"),a(t,"aria-label added (no captions track)","serious",e)),t==="audio"&&!l.querySelector("track")&&!e.getAttribute("aria-label")&&(e.setAttribute("aria-label",e.getAttribute("title")||"audio player"),a(t,"aria-label added to audio","serious",e)),t==="iframe"&&!e.getAttribute("title")&&!e.getAttribute("aria-label")&&(e.setAttribute("title","embedded content"),e.setAttribute("aria-label","embedded content"),a(t,'title + aria-label="embedded content"',"serious",e)),t==="figure"&&!l.querySelector("figcaption")&&!e.getAttribute("aria-label")){let o=l.querySelector("img")?.getAttribute("alt");o&&(e.setAttribute("aria-label",o),a(t,"aria-label from inner img alt","minor",e))}if(t==="button"){if(!e.innerText?.trim()&&!e.getAttribute("aria-label")&&!e.getAttribute("aria-labelledby")){let i=e.getAttribute("title")||e.getAttribute("data-label")||"button";e.setAttribute("aria-label",i),a(t,`aria-label="${i}" (empty button)`,"critical",e)}e.hasAttribute("disabled")&&!e.getAttribute("aria-disabled")&&(e.setAttribute("aria-disabled","true"),r.fixed++)}if(t==="a"){let i=e;if(!e.innerText?.trim()&&!e.getAttribute("aria-label")&&!e.getAttribute("aria-labelledby")){let o=e.getAttribute("title")||"link";e.setAttribute("aria-label",o),a(t,`aria-label="${o}" (empty link)`,"critical",e)}if(i.target==="_blank"){i.rel?.includes("noopener")||(i.rel="noopener noreferrer",r.fixed++);let o=i.getAttribute("aria-label")||i.innerText?.trim()||"link";o.includes("opens in new window")||(i.setAttribute("aria-label",`${o} (opens in new window)`),a(t,"aria-label: new-window warning","moderate",e))}!i.href&&!i.getAttribute("role")&&!i.getAttribute("tabindex")&&(i.setAttribute("role","button"),i.setAttribute("tabindex","0"),a(t,'role="button" tabindex=0 (href-less link)',"serious",e))}if((e.hasAttribute("onclick")||typeof window<"u"&&window.getComputedStyle(e).cursor==="pointer")&&!v.has(t)&&(e.getAttribute("role")||(e.setAttribute("role","button"),a(t,'role="button" (clickable non-interactive)',"serious",e)),e.tabIndex<0&&(e.tabIndex=0,r.fixed++),e.onkeydown||(e.onkeydown=i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),e.click())})),h.has(t)){let i=e;if(!e.getAttribute("aria-label")&&!e.getAttribute("aria-labelledby")){let o=e.getAttribute("placeholder")||e.getAttribute("name")||e.getAttribute("title")||t;e.setAttribute("aria-label",o),a(t,`aria-label="${o}"`,"serious",e)}if(e.hasAttribute("required")&&!e.getAttribute("aria-required")&&(e.setAttribute("aria-required","true"),r.fixed++),e.hasAttribute("disabled")&&!e.getAttribute("aria-disabled")&&(e.setAttribute("aria-disabled","true"),r.fixed++),e.hasAttribute("readonly")&&!e.getAttribute("aria-readonly")&&(e.setAttribute("aria-readonly","true"),r.fixed++),t==="input"&&!i.autocomplete){let o=i.name||"";i.type==="email"||o.includes("email")?(i.autocomplete="email",r.fixed++):i.type==="tel"||o.includes("tel")?(i.autocomplete="tel",r.fixed++):i.type==="password"?(i.autocomplete="current-password",r.fixed++):o.includes("firstname")||o.includes("fname")?(i.autocomplete="given-name",r.fixed++):o.includes("lastname")||o.includes("lname")?(i.autocomplete="family-name",r.fixed++):o==="name"||o.includes("fullname")?(i.autocomplete="name",r.fixed++):o.includes("zip")||o.includes("postal")?(i.autocomplete="postal-code",r.fixed++):o.includes("city")?(i.autocomplete="address-level2",r.fixed++):o.includes("country")&&(i.autocomplete="country",r.fixed++)}t==="input"&&i.type==="image"&&!e.getAttribute("alt")&&(e.setAttribute("alt",e.getAttribute("value")||"submit"),a(t,"alt added to input[type=image]","serious",e)),t==="input"&&i.type==="range"&&(e.getAttribute("aria-valuemin")||e.setAttribute("aria-valuemin",i.min||"0"),e.getAttribute("aria-valuemax")||e.setAttribute("aria-valuemax",i.max||"100"),e.getAttribute("aria-valuenow")||e.setAttribute("aria-valuenow",i.value||"50"),r.fixed++)}if(t==="fieldset"&&!l.querySelector("legend")&&!e.getAttribute("aria-label")&&!e.getAttribute("aria-labelledby")&&(e.setAttribute("aria-label","form group"),a(t,'aria-label="form group" (no legend)',"moderate",e)),t==="label"){let i=e.getAttribute("for"),o=l.querySelector("input,select,textarea");!i&&!o&&!e.getAttribute("aria-label")&&a(t,"label not associated with any control","moderate",e)}if(t==="table"&&(!l.querySelector("th")&&!e.getAttribute("role")&&(e.setAttribute("role","grid"),a(t,'role="grid" (no <th>)',"serious",e)),!l.querySelector("caption")&&!e.getAttribute("aria-label")&&!e.getAttribute("summary")&&(e.setAttribute("aria-label","data table"),a(t,'aria-label="data table" (no caption)',"moderate",e))),t==="th"&&!e.getAttribute("scope")){let i=e.closest("thead")!==null;e.setAttribute("scope",i?"col":"row"),a(t,`scope="${i?"col":"row"}"`,"moderate",e)}if(L.has(t)&&(e.getAttribute("role")==="presentation"&&(l.querySelectorAll("li").forEach(i=>{i.getAttribute("role")||i.setAttribute("role","presentation")}),r.fixed++),(t==="ul"||t==="ol")&&!e.getAttribute("aria-label"))){let i=e.closest("nav");i&&(e.setAttribute("aria-label",i.getAttribute("aria-label")||"navigation list"),a(t,"aria-label from parent nav","minor",e))}if(t==="dt"&&!e.getAttribute("aria-label")){let i=e.nextElementSibling;(!i||i.tagName.toLowerCase()!=="dd")&&(e.setAttribute("aria-label",e.innerText?.trim()||"term"),a(t,"aria-label on <dt> (no following <dd>)","minor",e))}if(p[t]&&!e.getAttribute("role")&&(e.setAttribute("role",p[t]),a(t,`role="${p[t]}"`,"minor",e)),["nav","section","article","aside"].includes(t)){let i=l.parentElement?.querySelectorAll(t);if(i&&i.length>1&&!e.getAttribute("aria-label")&&!e.getAttribute("aria-labelledby")){let c=l.querySelector("h1,h2,h3,h4,h5,h6")?.textContent?.trim();c&&(e.setAttribute("aria-label",c),a(t,"aria-label from inner heading","moderate",e))}}if(t==="details"&&!l.querySelector("summary")){let i=document.createElement("summary");i.textContent=e.getAttribute("aria-label")||"More details",e.prepend(i),a(t,"<summary> injected","moderate",e)}if(t==="summary"&&!e.innerText?.trim()&&!e.getAttribute("aria-label")&&(e.setAttribute("aria-label","Toggle details"),a(t,'aria-label="Toggle details" (empty summary)',"moderate",e)),t==="dialog"){let i=e.getAttribute("role");if(i&&i!=="dialog"&&(e.setAttribute("role","dialog"),a(t,'role corrected to "dialog"',"serious",e)),!e.getAttribute("aria-label")&&!e.getAttribute("aria-labelledby")){let c=l.querySelector("h1,h2,h3,h4,h5,h6")?.textContent?.trim()||"dialog";e.setAttribute("aria-label",c),a(t,"aria-label added to dialog","serious",e)}}if(t==="abbr"&&!e.getAttribute("title")&&(e.setAttribute("title",e.innerText?.trim()||"abbreviation"),a(t,"title added to <abbr>","minor",e)),t==="time"&&!e.getAttribute("datetime")&&e.innerText?.trim()&&(e.setAttribute("datetime",e.innerText.trim()),a(t,`datetime="${e.innerText.trim()}" added`,"minor",e)),t==="mark"&&!e.getAttribute("aria-label")&&(e.setAttribute("aria-label",`highlighted: ${e.innerText?.trim()?.slice(0,60)}`),a(t,"aria-label added to <mark>","minor",e)),t==="meter"&&!e.getAttribute("aria-label")&&!e.getAttribute("aria-labelledby")&&(e.setAttribute("aria-label",e.getAttribute("title")||"meter"),a(t,"aria-label added to <meter>","moderate",e)),t==="progress"){!e.getAttribute("aria-label")&&!e.getAttribute("aria-labelledby")&&(e.setAttribute("aria-label",e.getAttribute("title")||"progress"),a(t,"aria-label added to <progress>","moderate",e));let i=e;e.getAttribute("aria-valuenow")||e.setAttribute("aria-valuenow",String(i.value)),e.getAttribute("aria-valuemax")||e.setAttribute("aria-valuemax",String(i.max||1)),r.fixed++}let s=e.getAttribute("role")||"";if(s==="tab"&&!e.getAttribute("aria-selected")&&(e.setAttribute("aria-selected","false"),r.fixed++),s==="tabpanel"&&(!e.getAttribute("aria-label")&&!e.getAttribute("aria-labelledby")&&(e.setAttribute("aria-label","tab panel"),a(t,'aria-label="tab panel"',"moderate",e)),e.getAttribute("tabindex")||(e.setAttribute("tabindex","0"),r.fixed++)),["alert","status","log","marquee"].includes(s)){if(!e.getAttribute("aria-live")){let i=s==="alert"?"assertive":"polite";e.setAttribute("aria-live",i),a(t,`aria-live="${i}" on role=${s}`,"moderate",e)}e.getAttribute("aria-atomic")||(e.setAttribute("aria-atomic","true"),r.fixed++)}s==="tooltip"&&!e.getAttribute("aria-live")&&(e.setAttribute("aria-live","polite"),r.fixed++),(s==="menu"||s==="menubar")&&!e.getAttribute("aria-label")&&!e.getAttribute("aria-labelledby")&&(e.setAttribute("aria-label","menu"),a(t,'aria-label="menu"',"moderate",e)),s==="menuitem"&&e.tabIndex<0&&(e.tabIndex=-1,r.fixed++),s==="listbox"&&!e.getAttribute("aria-label")&&!e.getAttribute("aria-labelledby")&&(e.setAttribute("aria-label","listbox"),a(t,'aria-label="listbox"',"moderate",e)),s==="option"&&!e.getAttribute("aria-selected")&&(e.setAttribute("aria-selected","false"),r.fixed++),s==="slider"&&(e.getAttribute("aria-valuemin")||e.setAttribute("aria-valuemin","0"),e.getAttribute("aria-valuemax")||e.setAttribute("aria-valuemax","100"),e.getAttribute("aria-valuenow")||e.setAttribute("aria-valuenow","50"),r.fixed++),(s==="checkbox"||s==="radio")&&!e.getAttribute("aria-checked")&&(e.setAttribute("aria-checked","false"),a(t,`aria-checked="false" on role=${s}`,"serious",e)),s==="combobox"&&(e.getAttribute("aria-expanded")||(e.setAttribute("aria-expanded","false"),a(t,'aria-expanded="false" on combobox',"serious",e)),e.getAttribute("aria-haspopup")||(e.setAttribute("aria-haspopup","listbox"),r.fixed++)),(s==="grid"||s==="treegrid")&&!e.getAttribute("aria-label")&&!e.getAttribute("aria-labelledby")&&(e.setAttribute("aria-label","data grid"),a(t,'aria-label="data grid"',"moderate",e)),s==="tree"&&!e.getAttribute("aria-label")&&!e.getAttribute("aria-labelledby")&&(e.setAttribute("aria-label","tree"),a(t,'aria-label="tree"',"moderate",e)),s==="treeitem"&&l.querySelector('[role="group"]')&&!e.getAttribute("aria-expanded")&&(e.setAttribute("aria-expanded","false"),r.fixed++),s==="spinbutton"&&(e.getAttribute("aria-valuenow")||e.setAttribute("aria-valuenow","0"),e.getAttribute("aria-valuemin")||e.setAttribute("aria-valuemin","0"),e.getAttribute("aria-valuemax")||e.setAttribute("aria-valuemax","100"),r.fixed++);let A=!["html","head","meta","script","style","link","noscript"].includes(t);if(n.highContrast&&A&&!$.has(t)&&(e.style.filter="contrast(1.15) brightness(1.05)"),n.reduceMotion&&A&&(e.style.transition="none",e.style.animation="none"),n.fontSizeMultiplier&&n.fontSizeMultiplier!==1&&A){let i=parseFloat(window.getComputedStyle(e).fontSize);!isNaN(i)&&i>0&&(e.style.fontSize=`${i*n.fontSizeMultiplier}px`)}if(n.colorBlindMode&&n.colorBlindMode!=="none"&&t==="body"){let i=n.colorBlindMode==="achromatopsia"?"grayscale(100%)":`url(#${f[n.colorBlindMode]})`;e.style.filter=i}n.keyboardHints&&(v.has(t)||e.tabIndex>=0)&&(e.style.outline="2px solid #007acc",e.style.outlineOffset="2px")}),n.colorBlindMode&&n.colorBlindMode!=="none"&&!m){let l=document.createElementNS("http://www.w3.org/2000/svg","svg");l.setAttribute("aria-hidden","true"),l.style.cssText="position:absolute;width:0;height:0;overflow:hidden;",l.innerHTML=`
2
+ <defs>
3
+ <filter id="${f.deuteranopia}">
4
+ <feColorMatrix type="matrix" values="0.625 0.375 0 0 0 0.7 0.3 0 0 0 0 0.3 0.7 0 0 0 0 0 1 0"/>
5
+ </filter>
6
+ <filter id="${f.protanopia}">
7
+ <feColorMatrix type="matrix" values="0.567 0.433 0 0 0 0.558 0.442 0 0 0 0 0.242 0.758 0 0 0 0 0 1 0"/>
8
+ </filter>
9
+ <filter id="${f.tritanopia}">
10
+ <feColorMatrix type="matrix" values="0.95 0.05 0 0 0 0 0.433 0.567 0 0 0 0.475 0.525 0 0 0 0 0 1 0"/>
11
+ </filter>
12
+ </defs>`,document.body.appendChild(l),m=l}return this.ensureLiveRegion(),r.renderTime=parseFloat((performance.now()-b).toFixed(2)),r},removeColorBlindSvg(){m?.remove(),m=null},startObserver(n){this.observer||typeof document>"u"||(this.observer=new MutationObserver(()=>this.applyFixes(n)),this.observer.observe(document.body,{childList:!0,subtree:!0,attributes:!1}))},stopObserver(){this.observer?.disconnect(),this.observer=null},ensureLiveRegion(){if(typeof document>"u"||d)return;let n=document.createElement("div");n.setAttribute("aria-live","polite"),n.setAttribute("aria-atomic","true"),n.style.cssText="position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;",document.body.appendChild(n),d=n},removeLiveRegion(){d?.remove(),d=null},announce(n){d&&(d.textContent=n)}};return E(I);})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuktishaalaa/yuktai",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "description": "Privacy-first, offline-first universal accessibility engine with WCAG auto-fix, OCR, voice, and Indic language AI support.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -9,8 +9,8 @@
9
9
  "types": "./dist/index.d.ts",
10
10
  "exports": {
11
11
  ".": {
12
- "types": "./dist/index.d.ts",
13
- "import": "./dist/index.js",
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/index.js",
14
14
  "require": "./dist/index.cjs"
15
15
  }
16
16
  },
@@ -18,33 +18,39 @@
18
18
  "access": "public",
19
19
  "registry": "https://registry.npmjs.org/"
20
20
  },
21
- "files": ["dist"],
21
+ "files": [
22
+ "dist"
23
+ ],
22
24
  "scripts": {
23
- "dev": "tsup --watch",
24
- "build": "tsup",
25
+ "dev": "tsup --watch",
26
+ "build": "tsup",
25
27
  "prepublishOnly": "npm run build"
26
28
  },
27
29
  "author": "Sandeep Miriyala",
28
30
  "license": "ISC",
29
31
  "peerDependencies": {
30
- "react": ">=18",
32
+ "react": ">=18",
31
33
  "react-dom": ">=18"
32
34
  },
33
35
  "peerDependenciesMeta": {
34
- "react": { "optional": true },
35
- "react-dom": { "optional": true }
36
+ "react": {
37
+ "optional": true
38
+ },
39
+ "react-dom": {
40
+ "optional": true
41
+ }
36
42
  },
37
43
  "dependencies": {
38
- "idb-keyval": "^6.2.2",
39
- "tesseract.js": "^7.0.0",
44
+ "idb-keyval": "^6.2.2",
45
+ "tesseract.js": "^7.0.0",
40
46
  "wasm-feature-detect": "^1.8.0"
41
47
  },
42
48
  "devDependencies": {
43
- "@types/react": "^19.0.0",
49
+ "@types/react": "^19.0.0",
44
50
  "@types/react-dom": "^19.0.0",
45
- "react": "^19.0.0",
46
- "react-dom": "^19.0.0",
47
- "tsup": "^8.5.1",
48
- "typescript": "^5.0.0"
51
+ "react": "^19.0.0",
52
+ "react-dom": "^19.0.0",
53
+ "tsup": "^8.5.1",
54
+ "typescript": "^5.0.0"
49
55
  }
50
- }
56
+ }
@@ -1,36 +0,0 @@
1
- "use strict";var YuktAI=(()=>{var Te=Object.create;var N=Object.defineProperty;var ke=Object.getOwnPropertyDescriptor;var _e=Object.getOwnPropertyNames;var Ce=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty;var Me=(t,i)=>()=>(t&&(i=t(t=0)),i);var H=(t,i)=>()=>(i||t((i={exports:{}}).exports,i),i.exports),Ie=(t,i)=>{for(var o in i)N(t,o,{get:i[o],enumerable:!0})},te=(t,i,o,s)=>{if(i&&typeof i=="object"||typeof i=="function")for(let n of _e(i))!Re.call(t,n)&&n!==o&&N(t,n,{get:()=>i[n],enumerable:!(s=ke(i,n))||s.enumerable});return t};var T=(t,i,o)=>(o=t!=null?Te(Ce(t)):{},te(i||!t||!t.__esModule?N(o,"default",{value:t,enumerable:!0}):o,t)),Pe=t=>te(N({},"__esModule",{value:!0}),t);var h,g=Me(()=>{h={env:{NODE_ENV:"production"}}});var ge=H(d=>{"use strict";g();var U=Symbol.for("react.transitional.element"),Oe=Symbol.for("react.portal"),je=Symbol.for("react.fragment"),ze=Symbol.for("react.strict_mode"),We=Symbol.for("react.profiler"),qe=Symbol.for("react.consumer"),Fe=Symbol.for("react.context"),Ye=Symbol.for("react.forward_ref"),De=Symbol.for("react.suspense"),Be=Symbol.for("react.memo"),ue=Symbol.for("react.lazy"),Ge=Symbol.for("react.activity"),ae=Symbol.iterator;function Ue(t){return t===null||typeof t!="object"?null:(t=ae&&t[ae]||t["@@iterator"],typeof t=="function"?t:null)}var de={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fe=Object.assign,ce={};function C(t,i,o){this.props=t,this.context=i,this.refs=ce,this.updater=o||de}C.prototype.isReactComponent={};C.prototype.setState=function(t,i){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,i,"setState")};C.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function be(){}be.prototype=C.prototype;function K(t,i,o){this.props=t,this.context=i,this.refs=ce,this.updater=o||de}var V=K.prototype=new be;V.constructor=K;fe(V,C.prototype);V.isPureReactComponent=!0;var oe=Array.isArray;function G(){}var m={H:null,A:null,T:null,S:null},pe=Object.prototype.hasOwnProperty;function Z(t,i,o){var s=o.ref;return{$$typeof:U,type:t,key:i,ref:s!==void 0?s:null,props:o}}function Ke(t,i){return Z(t.type,i,t.props)}function Q(t){return typeof t=="object"&&t!==null&&t.$$typeof===U}function Ve(t){var i={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(o){return i[o]})}var le=/\/+/g;function B(t,i){return typeof t=="object"&&t!==null&&t.key!=null?Ve(""+t.key):i.toString(36)}function Ze(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(G,G):(t.status="pending",t.then(function(i){t.status==="pending"&&(t.status="fulfilled",t.value=i)},function(i){t.status==="pending"&&(t.status="rejected",t.reason=i)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function _(t,i,o,s,n){var l=typeof t;(l==="undefined"||l==="boolean")&&(t=null);var e=!1;if(t===null)e=!0;else switch(l){case"bigint":case"string":case"number":e=!0;break;case"object":switch(t.$$typeof){case U:case Oe:e=!0;break;case ue:return e=t._init,_(e(t._payload),i,o,s,n)}}if(e)return n=n(t),e=s===""?"."+B(t,0):s,oe(n)?(o="",e!=null&&(o=e.replace(le,"$&/")+"/"),_(n,i,o,"",function(b){return b})):n!=null&&(Q(n)&&(n=Ke(n,o+(n.key==null||t&&t.key===n.key?"":(""+n.key).replace(le,"$&/")+"/")+e)),i.push(n)),1;e=0;var r=s===""?".":s+":";if(oe(t))for(var y=0;y<t.length;y++)s=t[y],l=r+B(s,y),e+=_(s,i,o,l,n);else if(y=Ue(t),typeof y=="function")for(t=y.call(t),y=0;!(s=t.next()).done;)s=s.value,l=r+B(s,y++),e+=_(s,i,o,l,n);else if(l==="object"){if(typeof t.then=="function")return _(Ze(t),i,o,s,n);throw i=String(t),Error("Objects are not valid as a React child (found: "+(i==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":i)+"). If you meant to render a collection of children, use an array instead.")}return e}function z(t,i,o){if(t==null)return t;var s=[],n=0;return _(t,s,"","",function(l){return i.call(o,l,n++)}),s}function Qe(t){if(t._status===-1){var i=t._result;i=i(),i.then(function(o){(t._status===0||t._status===-1)&&(t._status=1,t._result=o)},function(o){(t._status===0||t._status===-1)&&(t._status=2,t._result=o)}),t._status===-1&&(t._status=0,t._result=i)}if(t._status===1)return t._result.default;throw t._result}var se=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(i))return}else if(typeof h=="object"&&typeof h.emit=="function"){h.emit("uncaughtException",t);return}console.error(t)},Xe={map:z,forEach:function(t,i,o){z(t,function(){i.apply(this,arguments)},o)},count:function(t){var i=0;return z(t,function(){i++}),i},toArray:function(t){return z(t,function(i){return i})||[]},only:function(t){if(!Q(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};d.Activity=Ge;d.Children=Xe;d.Component=C;d.Fragment=je;d.Profiler=We;d.PureComponent=K;d.StrictMode=ze;d.Suspense=De;d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=m;d.__COMPILER_RUNTIME={__proto__:null,c:function(t){return m.H.useMemoCache(t)}};d.cache=function(t){return function(){return t.apply(null,arguments)}};d.cacheSignal=function(){return null};d.cloneElement=function(t,i,o){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var s=fe({},t.props),n=t.key;if(i!=null)for(l in i.key!==void 0&&(n=""+i.key),i)!pe.call(i,l)||l==="key"||l==="__self"||l==="__source"||l==="ref"&&i.ref===void 0||(s[l]=i[l]);var l=arguments.length-2;if(l===1)s.children=o;else if(1<l){for(var e=Array(l),r=0;r<l;r++)e[r]=arguments[r+2];s.children=e}return Z(t.type,n,s)};d.createContext=function(t){return t={$$typeof:Fe,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:qe,_context:t},t};d.createElement=function(t,i,o){var s,n={},l=null;if(i!=null)for(s in i.key!==void 0&&(l=""+i.key),i)pe.call(i,s)&&s!=="key"&&s!=="__self"&&s!=="__source"&&(n[s]=i[s]);var e=arguments.length-2;if(e===1)n.children=o;else if(1<e){for(var r=Array(e),y=0;y<e;y++)r[y]=arguments[y+2];n.children=r}if(t&&t.defaultProps)for(s in e=t.defaultProps,e)n[s]===void 0&&(n[s]=e[s]);return Z(t,l,n)};d.createRef=function(){return{current:null}};d.forwardRef=function(t){return{$$typeof:Ye,render:t}};d.isValidElement=Q;d.lazy=function(t){return{$$typeof:ue,_payload:{_status:-1,_result:t},_init:Qe}};d.memo=function(t,i){return{$$typeof:Be,type:t,compare:i===void 0?null:i}};d.startTransition=function(t){var i=m.T,o={};m.T=o;try{var s=t(),n=m.S;n!==null&&n(o,s),typeof s=="object"&&s!==null&&typeof s.then=="function"&&s.then(G,se)}catch(l){se(l)}finally{i!==null&&o.types!==null&&(i.types=o.types),m.T=i}};d.unstable_useCacheRefresh=function(){return m.H.useCacheRefresh()};d.use=function(t){return m.H.use(t)};d.useActionState=function(t,i,o){return m.H.useActionState(t,i,o)};d.useCallback=function(t,i){return m.H.useCallback(t,i)};d.useContext=function(t){return m.H.useContext(t)};d.useDebugValue=function(){};d.useDeferredValue=function(t,i){return m.H.useDeferredValue(t,i)};d.useEffect=function(t,i){return m.H.useEffect(t,i)};d.useEffectEvent=function(t){return m.H.useEffectEvent(t)};d.useId=function(){return m.H.useId()};d.useImperativeHandle=function(t,i,o){return m.H.useImperativeHandle(t,i,o)};d.useInsertionEffect=function(t,i){return m.H.useInsertionEffect(t,i)};d.useLayoutEffect=function(t,i){return m.H.useLayoutEffect(t,i)};d.useMemo=function(t,i){return m.H.useMemo(t,i)};d.useOptimistic=function(t,i){return m.H.useOptimistic(t,i)};d.useReducer=function(t,i,o){return m.H.useReducer(t,i,o)};d.useRef=function(t){return m.H.useRef(t)};d.useState=function(t){return m.H.useState(t)};d.useSyncExternalStore=function(t,i,o){return m.H.useSyncExternalStore(t,i,o)};d.useTransition=function(){return m.H.useTransition()};d.version="19.2.5"});var X=H((ct,me)=>{"use strict";g();me.exports=ge()});var Ae=H(W=>{"use strict";g();var Je=Symbol.for("react.transitional.element"),et=Symbol.for("react.fragment");function ye(t,i,o){var s=null;if(o!==void 0&&(s=""+o),i.key!==void 0&&(s=""+i.key),"key"in i){o={};for(var n in i)n!=="key"&&(o[n]=i[n])}else o=i;return i=o.ref,{$$typeof:Je,type:t,key:s,ref:i!==void 0?i:null,props:o}}W.Fragment=et;W.jsx=ye;W.jsxs=ye});var P=H((mt,xe)=>{"use strict";g();xe.exports=Ae()});var nt={};Ie(nt,{Runtime:()=>w,YuktAI:()=>rt,YuktAIWrapper:()=>Y,aiPlugin:()=>$,default:()=>Y,voicePlugin:()=>L,wcag:()=>A,wcagPlugin:()=>A});g();g();var k=null,O=null,j={deuteranopia:"yuktai-cb-d",protanopia:"yuktai-cb-p",tritanopia:"yuktai-cb-t"},ie=new Set(["h1","h2","h3","h4","h5","h6"]),re=new Set(["input","select","textarea"]),ne=new Set(["button","a","input","select","textarea","details","summary"]),Le=new Set(["video","audio"]),Ne=new Set(["ul","ol","dl"]);var He=new Set(["span","strong","em","b","i","u","s","small","mark","del","ins","sub","sup","abbr","cite","code","kbd","samp","var","time","q"]),D={nav:"navigation",header:"banner",footer:"contentinfo",main:"main",aside:"complementary"},A={name:"yuktai-a11y",version:"1.0.0",observer:null,async execute(t){if(!t.enabled)return this.stopObserver(),"yuktai-a11y: disabled.";let i=this.applyFixes(t);return t.autoFix&&this.startObserver(t),`yuktai-a11y: ${i.fixed} fixes applied across ${i.scanned} nodes in ${i.renderTime}ms.`},scan(){let t={fixed:0,scanned:0,renderTime:0,details:[]};if(typeof document>"u")return t;let i=performance.now(),o=document.querySelectorAll("*");t.scanned=o.length;let s=(n,l,e,r)=>t.details.push({tag:n,fix:l,severity:e,element:r.outerHTML.slice(0,100)});return o.forEach(n=>{let l=n,e=l.tagName.toLowerCase();(e==="a"||e==="button")&&!l.innerText?.trim()&&!l.getAttribute("aria-label")&&s(e,"needs aria-label (empty)","critical",l),e==="img"&&!l.hasAttribute("alt")&&s(e,"needs alt text","serious",l),re.has(e)&&!l.getAttribute("aria-label")&&!l.getAttribute("aria-labelledby")&&s(e,"needs aria-label","serious",l),e==="iframe"&&!l.getAttribute("title")&&!l.getAttribute("aria-label")&&s(e,"iframe needs title","serious",l),Le.has(e)&&!n.querySelector("track")&&!l.getAttribute("aria-label")&&s(e,"media needs captions/aria-label","serious",l),ie.has(e)&&!l.innerText?.trim()&&!l.getAttribute("aria-label")&&s(e,"empty heading","moderate",l)}),t.fixed=t.details.length,t.renderTime=parseFloat((performance.now()-i).toFixed(2)),t},applyFixes(t){let i={fixed:0,scanned:0,renderTime:0,details:[]};if(typeof document>"u")return i;let o=performance.now(),s=document.querySelectorAll("*");i.scanned=s.length;let n=(l,e,r,y)=>{i.details.push({tag:l,fix:e,severity:r,element:y.outerHTML.slice(0,100)}),i.fixed++};if(s.forEach(l=>{let e=l,r=e.tagName.toLowerCase();if(r==="html"&&!e.getAttribute("lang")&&(e.setAttribute("lang","en"),n(r,'lang="en" added to <html>',"critical",e)),r==="head"&&!document.title&&(document.title=document.querySelector("h1")?.innerText?.trim()||"Page",n(r,`document.title set to "${document.title}"`,"serious",e)),r==="meta"){let a=e.getAttribute("name"),u=e.getAttribute("content")||"";a==="viewport"&&u.includes("user-scalable=no")&&(e.setAttribute("content",u.replace("user-scalable=no","user-scalable=yes")),n(r,"user-scalable=yes restored","serious",e)),a==="viewport"&&/maximum-scale=1(?:[^0-9]|$)/.test(u)&&(e.setAttribute("content",u.replace(/maximum-scale=1(?=[^0-9]|$)/,"maximum-scale=5")),n(r,"maximum-scale=5 restored","serious",e))}if(r==="body"&&!document.querySelector("[data-yuktai-skip]")){let a=document.createElement("a");a.setAttribute("href","#main-content"),a.setAttribute("data-yuktai-skip","true"),a.setAttribute("aria-label","Skip to main content"),a.textContent="Skip to main content",a.style.cssText="position:fixed;top:-40px;left:0;background:#0d9488;color:#fff;padding:8px 16px;z-index:99999;font-family:system-ui;font-size:14px;border-radius:0 0 4px 0;text-decoration:none;transition:top 0.2s;",a.addEventListener("focus",()=>{a.style.top="0"}),a.addEventListener("blur",()=>{a.style.top="-40px"}),e.insertBefore(a,e.firstChild),n(r,"skip-to-content link injected","minor",e);let u=document.querySelector("main,[role='main']");u&&!u.getAttribute("tabindex")&&u.setAttribute("tabindex","-1")}if(ie.has(r)&&(!e.innerText?.trim()&&!e.getAttribute("aria-label")&&!e.getAttribute("aria-labelledby")&&(e.setAttribute("aria-label",`${r.toUpperCase()} section`),n(r,`aria-label="${r.toUpperCase()} section" (empty heading)`,"moderate",e)),e.hasAttribute("onclick")&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","0"),e.onkeydown||(e.onkeydown=a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),e.click())}),n(r,"tabindex=0 + keydown (clickable heading)","minor",e))),r==="p"&&e.getAttribute("dir")==="rtl"&&!e.getAttribute("lang")&&!document.documentElement.getAttribute("lang")&&(e.setAttribute("lang","ar"),n(r,'lang="ar" (rtl paragraph)',"moderate",e)),r==="img"&&(e.hasAttribute("alt")||(e.setAttribute("alt",""),e.setAttribute("aria-hidden","true"),n(r,'alt="" aria-hidden="true"',"serious",e)),e.getAttribute("role")==="presentation"&&e.getAttribute("alt")!==""&&(e.setAttribute("alt",""),n(r,'alt="" (role=presentation)',"minor",e))),r==="area"&&!e.getAttribute("alt")){let a=e.getAttribute("title")||e.getAttribute("href")||"map area";e.setAttribute("alt",a),n(r,`alt="${a}" on <area>`,"serious",e)}if(r==="svg"){if(!e.getAttribute("aria-hidden")&&!e.getAttribute("aria-label")&&!l.querySelector("title"))if(!e.getAttribute("role")||e.getAttribute("role")==="img"){let a=document.createElementNS("http://www.w3.org/2000/svg","title");a.textContent="graphic",e.prepend(a),e.setAttribute("role","img"),n(r,'role="img" + <title> injected',"moderate",e)}else e.setAttribute("aria-hidden","true"),n(r,'aria-hidden="true" (decorative svg)',"minor",e);e.getAttribute("focusable")||e.setAttribute("focusable","false")}if(r==="canvas"&&(e.getAttribute("role")||(e.setAttribute("role","img"),n(r,'role="img"',"serious",e)),e.getAttribute("aria-label")||(e.setAttribute("aria-label",e.getAttribute("title")||"canvas graphic"),n(r,"aria-label added to canvas","serious",e))),(r==="object"||r==="embed")&&!e.getAttribute("aria-label")&&!e.getAttribute("title")&&(e.setAttribute("aria-label",`embedded ${r} content`),n(r,`aria-label added to <${r}>`,"moderate",e)),r==="video"&&!l.querySelector("track")&&!e.getAttribute("aria-label")&&(e.setAttribute("aria-label",e.getAttribute("title")||"video player"),n(r,"aria-label added (no captions track)","serious",e)),r==="audio"&&!l.querySelector("track")&&!e.getAttribute("aria-label")&&(e.setAttribute("aria-label",e.getAttribute("title")||"audio player"),n(r,"aria-label added to audio","serious",e)),r==="iframe"&&!e.getAttribute("title")&&!e.getAttribute("aria-label")&&(e.setAttribute("title","embedded content"),e.setAttribute("aria-label","embedded content"),n(r,'title + aria-label="embedded content"',"serious",e)),r==="figure"&&!l.querySelector("figcaption")&&!e.getAttribute("aria-label")){let u=l.querySelector("img")?.getAttribute("alt");u&&(e.setAttribute("aria-label",u),n(r,"aria-label from inner img alt","minor",e))}if(r==="button"){if(!e.innerText?.trim()&&!e.getAttribute("aria-label")&&!e.getAttribute("aria-labelledby")){let a=e.getAttribute("title")||e.getAttribute("data-label")||"button";e.setAttribute("aria-label",a),n(r,`aria-label="${a}" (empty button)`,"critical",e)}e.hasAttribute("disabled")&&!e.getAttribute("aria-disabled")&&(e.setAttribute("aria-disabled","true"),i.fixed++)}if(r==="a"){let a=e;if(!e.innerText?.trim()&&!e.getAttribute("aria-label")&&!e.getAttribute("aria-labelledby")){let u=e.getAttribute("title")||"link";e.setAttribute("aria-label",u),n(r,`aria-label="${u}" (empty link)`,"critical",e)}if(a.target==="_blank"){a.rel?.includes("noopener")||(a.rel="noopener noreferrer",i.fixed++);let u=a.getAttribute("aria-label")||a.innerText?.trim()||"link";u.includes("opens in new window")||(a.setAttribute("aria-label",`${u} (opens in new window)`),n(r,"aria-label: new-window warning","moderate",e))}!a.href&&!a.getAttribute("role")&&!a.getAttribute("tabindex")&&(a.setAttribute("role","button"),a.setAttribute("tabindex","0"),n(r,'role="button" tabindex=0 (href-less link)',"serious",e))}if((e.hasAttribute("onclick")||typeof window<"u"&&window.getComputedStyle(e).cursor==="pointer")&&!ne.has(r)&&(e.getAttribute("role")||(e.setAttribute("role","button"),n(r,'role="button" (clickable non-interactive)',"serious",e)),e.tabIndex<0&&(e.tabIndex=0,i.fixed++),e.onkeydown||(e.onkeydown=a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),e.click())})),re.has(r)){let a=e;if(!e.getAttribute("aria-label")&&!e.getAttribute("aria-labelledby")){let u=e.getAttribute("placeholder")||e.getAttribute("name")||e.getAttribute("title")||r;e.setAttribute("aria-label",u),n(r,`aria-label="${u}"`,"serious",e)}if(e.hasAttribute("required")&&!e.getAttribute("aria-required")&&(e.setAttribute("aria-required","true"),i.fixed++),e.hasAttribute("disabled")&&!e.getAttribute("aria-disabled")&&(e.setAttribute("aria-disabled","true"),i.fixed++),e.hasAttribute("readonly")&&!e.getAttribute("aria-readonly")&&(e.setAttribute("aria-readonly","true"),i.fixed++),r==="input"&&!a.autocomplete){let u=a.name||"";a.type==="email"||u.includes("email")?(a.autocomplete="email",i.fixed++):a.type==="tel"||u.includes("tel")?(a.autocomplete="tel",i.fixed++):a.type==="password"?(a.autocomplete="current-password",i.fixed++):u.includes("firstname")||u.includes("fname")?(a.autocomplete="given-name",i.fixed++):u.includes("lastname")||u.includes("lname")?(a.autocomplete="family-name",i.fixed++):u==="name"||u.includes("fullname")?(a.autocomplete="name",i.fixed++):u.includes("zip")||u.includes("postal")?(a.autocomplete="postal-code",i.fixed++):u.includes("city")?(a.autocomplete="address-level2",i.fixed++):u.includes("country")&&(a.autocomplete="country",i.fixed++)}r==="input"&&a.type==="image"&&!e.getAttribute("alt")&&(e.setAttribute("alt",e.getAttribute("value")||"submit"),n(r,"alt added to input[type=image]","serious",e)),r==="input"&&a.type==="range"&&(e.getAttribute("aria-valuemin")||e.setAttribute("aria-valuemin",a.min||"0"),e.getAttribute("aria-valuemax")||e.setAttribute("aria-valuemax",a.max||"100"),e.getAttribute("aria-valuenow")||e.setAttribute("aria-valuenow",a.value||"50"),i.fixed++)}if(r==="fieldset"&&!l.querySelector("legend")&&!e.getAttribute("aria-label")&&!e.getAttribute("aria-labelledby")&&(e.setAttribute("aria-label","form group"),n(r,'aria-label="form group" (no legend)',"moderate",e)),r==="label"){let a=e.getAttribute("for"),u=l.querySelector("input,select,textarea");!a&&!u&&!e.getAttribute("aria-label")&&n(r,"label not associated with any control","moderate",e)}if(r==="table"&&(!l.querySelector("th")&&!e.getAttribute("role")&&(e.setAttribute("role","grid"),n(r,'role="grid" (no <th>)',"serious",e)),!l.querySelector("caption")&&!e.getAttribute("aria-label")&&!e.getAttribute("summary")&&(e.setAttribute("aria-label","data table"),n(r,'aria-label="data table" (no caption)',"moderate",e))),r==="th"&&!e.getAttribute("scope")){let a=e.closest("thead")!==null;e.setAttribute("scope",a?"col":"row"),n(r,`scope="${a?"col":"row"}"`,"moderate",e)}if(Ne.has(r)&&(e.getAttribute("role")==="presentation"&&(l.querySelectorAll("li").forEach(a=>{a.getAttribute("role")||a.setAttribute("role","presentation")}),i.fixed++),(r==="ul"||r==="ol")&&!e.getAttribute("aria-label"))){let a=e.closest("nav");a&&(e.setAttribute("aria-label",a.getAttribute("aria-label")||"navigation list"),n(r,"aria-label from parent nav","minor",e))}if(r==="dt"&&!e.getAttribute("aria-label")){let a=e.nextElementSibling;(!a||a.tagName.toLowerCase()!=="dd")&&(e.setAttribute("aria-label",e.innerText?.trim()||"term"),n(r,"aria-label on <dt> (no following <dd>)","minor",e))}if(D[r]&&!e.getAttribute("role")&&(e.setAttribute("role",D[r]),n(r,`role="${D[r]}"`,"minor",e)),["nav","section","article","aside"].includes(r)){let a=l.parentElement?.querySelectorAll(r);if(a&&a.length>1&&!e.getAttribute("aria-label")&&!e.getAttribute("aria-labelledby")){let S=l.querySelector("h1,h2,h3,h4,h5,h6")?.textContent?.trim();S&&(e.setAttribute("aria-label",S),n(r,"aria-label from inner heading","moderate",e))}}if(r==="details"&&!l.querySelector("summary")){let a=document.createElement("summary");a.textContent=e.getAttribute("aria-label")||"More details",e.prepend(a),n(r,"<summary> injected","moderate",e)}if(r==="summary"&&!e.innerText?.trim()&&!e.getAttribute("aria-label")&&(e.setAttribute("aria-label","Toggle details"),n(r,'aria-label="Toggle details" (empty summary)',"moderate",e)),r==="dialog"){let a=e.getAttribute("role");if(a&&a!=="dialog"&&(e.setAttribute("role","dialog"),n(r,'role corrected to "dialog"',"serious",e)),!e.getAttribute("aria-label")&&!e.getAttribute("aria-labelledby")){let S=l.querySelector("h1,h2,h3,h4,h5,h6")?.textContent?.trim()||"dialog";e.setAttribute("aria-label",S),n(r,"aria-label added to dialog","serious",e)}}if(r==="abbr"&&!e.getAttribute("title")&&(e.setAttribute("title",e.innerText?.trim()||"abbreviation"),n(r,"title added to <abbr>","minor",e)),r==="time"&&!e.getAttribute("datetime")&&e.innerText?.trim()&&(e.setAttribute("datetime",e.innerText.trim()),n(r,`datetime="${e.innerText.trim()}" added`,"minor",e)),r==="mark"&&!e.getAttribute("aria-label")&&(e.setAttribute("aria-label",`highlighted: ${e.innerText?.trim()?.slice(0,60)}`),n(r,"aria-label added to <mark>","minor",e)),r==="meter"&&!e.getAttribute("aria-label")&&!e.getAttribute("aria-labelledby")&&(e.setAttribute("aria-label",e.getAttribute("title")||"meter"),n(r,"aria-label added to <meter>","moderate",e)),r==="progress"){!e.getAttribute("aria-label")&&!e.getAttribute("aria-labelledby")&&(e.setAttribute("aria-label",e.getAttribute("title")||"progress"),n(r,"aria-label added to <progress>","moderate",e));let a=e;e.getAttribute("aria-valuenow")||e.setAttribute("aria-valuenow",String(a.value)),e.getAttribute("aria-valuemax")||e.setAttribute("aria-valuemax",String(a.max||1)),i.fixed++}let b=e.getAttribute("role")||"";if(b==="tab"&&!e.getAttribute("aria-selected")&&(e.setAttribute("aria-selected","false"),i.fixed++),b==="tabpanel"&&(!e.getAttribute("aria-label")&&!e.getAttribute("aria-labelledby")&&(e.setAttribute("aria-label","tab panel"),n(r,'aria-label="tab panel"',"moderate",e)),e.getAttribute("tabindex")||(e.setAttribute("tabindex","0"),i.fixed++)),["alert","status","log","marquee"].includes(b)){if(!e.getAttribute("aria-live")){let a=b==="alert"?"assertive":"polite";e.setAttribute("aria-live",a),n(r,`aria-live="${a}" on role=${b}`,"moderate",e)}e.getAttribute("aria-atomic")||(e.setAttribute("aria-atomic","true"),i.fixed++)}b==="tooltip"&&!e.getAttribute("aria-live")&&(e.setAttribute("aria-live","polite"),i.fixed++),(b==="menu"||b==="menubar")&&!e.getAttribute("aria-label")&&!e.getAttribute("aria-labelledby")&&(e.setAttribute("aria-label","menu"),n(r,'aria-label="menu"',"moderate",e)),b==="menuitem"&&e.tabIndex<0&&(e.tabIndex=-1,i.fixed++),b==="listbox"&&!e.getAttribute("aria-label")&&!e.getAttribute("aria-labelledby")&&(e.setAttribute("aria-label","listbox"),n(r,'aria-label="listbox"',"moderate",e)),b==="option"&&!e.getAttribute("aria-selected")&&(e.setAttribute("aria-selected","false"),i.fixed++),b==="slider"&&(e.getAttribute("aria-valuemin")||e.setAttribute("aria-valuemin","0"),e.getAttribute("aria-valuemax")||e.setAttribute("aria-valuemax","100"),e.getAttribute("aria-valuenow")||e.setAttribute("aria-valuenow","50"),i.fixed++),(b==="checkbox"||b==="radio")&&!e.getAttribute("aria-checked")&&(e.setAttribute("aria-checked","false"),n(r,`aria-checked="false" on role=${b}`,"serious",e)),b==="combobox"&&(e.getAttribute("aria-expanded")||(e.setAttribute("aria-expanded","false"),n(r,'aria-expanded="false" on combobox',"serious",e)),e.getAttribute("aria-haspopup")||(e.setAttribute("aria-haspopup","listbox"),i.fixed++)),(b==="grid"||b==="treegrid")&&!e.getAttribute("aria-label")&&!e.getAttribute("aria-labelledby")&&(e.setAttribute("aria-label","data grid"),n(r,'aria-label="data grid"',"moderate",e)),b==="tree"&&!e.getAttribute("aria-label")&&!e.getAttribute("aria-labelledby")&&(e.setAttribute("aria-label","tree"),n(r,'aria-label="tree"',"moderate",e)),b==="treeitem"&&l.querySelector('[role="group"]')&&!e.getAttribute("aria-expanded")&&(e.setAttribute("aria-expanded","false"),i.fixed++),b==="spinbutton"&&(e.getAttribute("aria-valuenow")||e.setAttribute("aria-valuenow","0"),e.getAttribute("aria-valuemin")||e.setAttribute("aria-valuemin","0"),e.getAttribute("aria-valuemax")||e.setAttribute("aria-valuemax","100"),i.fixed++);let p=!["html","head","meta","script","style","link","noscript"].includes(r);if(t.highContrast&&p&&!He.has(r)&&(e.style.filter="contrast(1.15) brightness(1.05)"),t.reduceMotion&&p&&(e.style.transition="none",e.style.animation="none"),t.fontSizeMultiplier&&t.fontSizeMultiplier!==1&&p){let a=parseFloat(window.getComputedStyle(e).fontSize);!isNaN(a)&&a>0&&(e.style.fontSize=`${a*t.fontSizeMultiplier}px`)}if(t.colorBlindMode&&t.colorBlindMode!=="none"&&r==="body"){let a=t.colorBlindMode==="achromatopsia"?"grayscale(100%)":`url(#${j[t.colorBlindMode]})`;e.style.filter=a}t.keyboardHints&&(ne.has(r)||e.tabIndex>=0)&&(e.style.outline="2px solid #007acc",e.style.outlineOffset="2px")}),t.colorBlindMode&&t.colorBlindMode!=="none"&&!O){let l=document.createElementNS("http://www.w3.org/2000/svg","svg");l.setAttribute("aria-hidden","true"),l.style.cssText="position:absolute;width:0;height:0;overflow:hidden;",l.innerHTML=`
2
- <defs>
3
- <filter id="${j.deuteranopia}">
4
- <feColorMatrix type="matrix" values="0.625 0.375 0 0 0 0.7 0.3 0 0 0 0 0.3 0.7 0 0 0 0 0 1 0"/>
5
- </filter>
6
- <filter id="${j.protanopia}">
7
- <feColorMatrix type="matrix" values="0.567 0.433 0 0 0 0.558 0.442 0 0 0 0 0.242 0.758 0 0 0 0 0 1 0"/>
8
- </filter>
9
- <filter id="${j.tritanopia}">
10
- <feColorMatrix type="matrix" values="0.95 0.05 0 0 0 0 0.433 0.567 0 0 0 0.475 0.525 0 0 0 0 0 1 0"/>
11
- </filter>
12
- </defs>`,document.body.appendChild(l),O=l}return this.ensureLiveRegion(),i.renderTime=parseFloat((performance.now()-o).toFixed(2)),i},removeColorBlindSvg(){O?.remove(),O=null},startObserver(t){this.observer||typeof document>"u"||(this.observer=new MutationObserver(()=>this.applyFixes(t)),this.observer.observe(document.body,{childList:!0,subtree:!0,attributes:!1}))},stopObserver(){this.observer?.disconnect(),this.observer=null},ensureLiveRegion(){if(typeof document>"u"||k)return;let t=document.createElement("div");t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.cssText="position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;",document.body.appendChild(t),k=t},removeLiveRegion(){k?.remove(),k=null},announce(t){k&&(k.textContent=t)}};g();g();var x=T(X(),1);g();var q=T(X(),1),f=T(P(),1),J={highContrast:!1,reduceMotion:!1,autoFix:!0,dyslexiaFont:!1,fontScale:100},R=[80,90,100,110,120,130,140,150],he=[{id:"highContrast",label:"High contrast",description:"contrast(1.15) brightness on all nodes",icon:"\u25D1"},{id:"reduceMotion",label:"Reduce motion",description:"Disables all transitions & animations",icon:"\u23F8"},{id:"autoFix",label:"Auto-fix ARIA",description:"MutationObserver on new DOM nodes",icon:"\u267F"},{id:"dyslexiaFont",label:"Dyslexia-friendly font",description:"Wider letter & word spacing",icon:"Aa"}];function tt({checked:t,onChange:i,label:o}){return(0,f.jsxs)("label",{"aria-label":o,style:{position:"relative",display:"inline-flex",width:40,height:24,cursor:"pointer",flexShrink:0},children:[(0,f.jsx)("input",{type:"checkbox",checked:t,onChange:s=>i(s.target.checked),style:{opacity:0,width:0,height:0,position:"absolute"}}),(0,f.jsx)("span",{style:{position:"absolute",inset:0,borderRadius:99,background:t?"#0d9488":"#cbd5e1",transition:"background 0.2s"}}),(0,f.jsx)("span",{style:{position:"absolute",top:3,left:t?19:3,width:18,height:18,background:"#fff",borderRadius:"50%",transition:"left 0.2s",boxShadow:"0 1px 3px rgba(0,0,0,0.2)",pointerEvents:"none"}})]})}var ee=(0,q.forwardRef)(({position:t,settings:i,report:o,isActive:s,set:n,onApply:l,onReset:e,onClose:r},y)=>(0,f.jsxs)("div",{ref:y,role:"dialog","aria-modal":"true","aria-label":"yuktai-a11y accessibility options",style:{position:"fixed",bottom:24,...t==="left"?{left:88}:{right:88},width:312,background:"#fff",border:"1px solid #e2e8f0",borderRadius:16,boxShadow:"0 8px 32px rgba(0,0,0,0.12)",zIndex:9998,overflow:"hidden",fontFamily:"system-ui,-apple-system,sans-serif"},children:[(0,f.jsxs)("div",{style:{padding:"14px 18px 12px",borderBottom:"1px solid #f1f5f9",display:"flex",alignItems:"flex-start",justifyContent:"space-between"},children:[(0,f.jsxs)("div",{children:[(0,f.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:7,marginBottom:5},children:[(0,f.jsx)("span",{style:{fontSize:10,fontWeight:700,padding:"2px 7px",borderRadius:99,background:"#f0fdfa",color:"#0d9488",letterSpacing:"0.05em",fontFamily:"monospace"},children:"@yuktishaalaa/yuktai v1.0.0"}),s&&(0,f.jsx)("span",{style:{fontSize:10,fontWeight:700,padding:"2px 7px",borderRadius:99,background:"#f0fdfa",color:"#0f766e",border:"1px solid #99f6e4"},children:"\u25CF ACTIVE"})]}),(0,f.jsx)("p",{style:{margin:"0 0 2px",fontSize:15,fontWeight:600,color:"#0f172a"},children:"Accessibility"}),(0,f.jsx)("p",{style:{margin:0,fontSize:12,color:"#64748b"},children:"Zero-config WCAG fixes \xB7 Open Source"})]}),(0,f.jsx)("button",{onClick:r,"aria-label":"Close panel",style:{background:"none",border:"none",cursor:"pointer",padding:4,color:"#94a3b8",fontSize:18,lineHeight:1,borderRadius:6},children:"\xD7"})]}),(0,f.jsx)("div",{style:{padding:"6px 0"},children:he.map((p,a)=>(0,f.jsxs)(q.default.Fragment,{children:[(0,f.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 18px",gap:12},children:[(0,f.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:10,flex:1},children:[(0,f.jsx)("span",{"aria-hidden":"true",style:{width:30,height:30,borderRadius:8,background:"#f0fdfa",color:"#0d9488",display:"flex",alignItems:"center",justifyContent:"center",fontSize:13,flexShrink:0,fontWeight:700},children:p.icon}),(0,f.jsxs)("div",{children:[(0,f.jsx)("p",{style:{margin:0,fontSize:13,fontWeight:500,color:"#0f172a"},children:p.label}),(0,f.jsx)("p",{style:{margin:0,fontSize:11,color:"#94a3b8"},children:p.description})]})]}),(0,f.jsx)(tt,{checked:i[p.id],onChange:u=>n(p.id,u),label:`Toggle ${p.label}`})]}),a<he.length-1&&(0,f.jsx)("div",{style:{height:1,background:"#f8fafc",margin:"0 18px"}})]},p.id))}),(0,f.jsxs)("div",{style:{padding:"10px 18px 14px",borderTop:"1px solid #f1f5f9"},children:[(0,f.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:10},children:[(0,f.jsx)("p",{style:{margin:0,fontSize:13,fontWeight:500,color:"#0f172a"},children:"Text size"}),(0,f.jsxs)("span",{style:{fontSize:12,fontWeight:600,color:"#0d9488",background:"#f0fdfa",padding:"2px 8px",borderRadius:99},children:[i.fontScale,"%"]})]}),(0,f.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,f.jsx)("button",{onClick:()=>{let p=R.indexOf(i.fontScale);p>0&&n("fontScale",R[p-1])},disabled:i.fontScale<=80,"aria-label":"Decrease text size",style:{width:30,height:30,borderRadius:8,border:"1px solid #e2e8f0",background:"#fff",cursor:i.fontScale<=80?"not-allowed":"pointer",fontSize:16,color:i.fontScale<=80?"#cbd5e1":"#0f172a",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:"\u2212"}),(0,f.jsx)("div",{style:{flex:1,display:"flex",gap:3},children:R.map(p=>(0,f.jsx)("button",{onClick:()=>n("fontScale",p),"aria-label":`Set text size to ${p}%`,style:{flex:1,height:6,borderRadius:99,border:"none",cursor:"pointer",padding:0,background:p<=i.fontScale?"#0d9488":"#e2e8f0",transition:"background 0.15s"}},p))}),(0,f.jsx)("button",{onClick:()=>{let p=R.indexOf(i.fontScale);p<R.length-1&&n("fontScale",R[p+1])},disabled:i.fontScale>=150,"aria-label":"Increase text size",style:{width:30,height:30,borderRadius:8,border:"1px solid #e2e8f0",background:"#fff",cursor:i.fontScale>=150?"not-allowed":"pointer",fontSize:16,color:i.fontScale>=150?"#cbd5e1":"#0f172a",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:"+"})]})]}),o&&(0,f.jsx)("div",{role:"status",style:{margin:"0 14px",padding:"8px 12px",background:"#f0fdfa",border:"1px solid #99f6e4",borderRadius:8,fontSize:12,color:"#0f766e",fontWeight:500,fontFamily:"monospace"},children:o.fixed>0?`\u2713 ${o.fixed} fixes applied \xB7 ${o.scanned} nodes \xB7 ${o.renderTime}ms`:`\u2713 0 fixes needed \xB7 ${o.scanned} nodes clean \xB7 ${o.renderTime}ms`}),(0,f.jsxs)("div",{style:{display:"flex",gap:8,padding:"12px 14px 14px"},children:[(0,f.jsx)("button",{onClick:e,style:{flex:1,padding:"8px 0",fontSize:13,fontWeight:500,borderRadius:9,border:"1px solid #e2e8f0",background:"#fff",color:"#64748b",cursor:"pointer"},children:"Reset"}),(0,f.jsx)("button",{onClick:l,style:{flex:2,padding:"8px 0",fontSize:13,fontWeight:600,borderRadius:9,border:"none",background:"#0d9488",color:"#fff",cursor:"pointer"},children:"Apply settings"})]})]}));ee.displayName="WidgetPanel";var v=T(P(),1),F=null,M=null;function Y({children:t,position:i="left"}){let[o,s]=(0,x.useState)(!1),[n,l]=(0,x.useState)(!1),[e,r]=(0,x.useState)(J),[y,b]=(0,x.useState)(null),[p,a]=(0,x.useState)(!1),u=(0,x.useRef)(null),S=(0,x.useRef)(null);(0,x.useEffect)(()=>s(!0),[]),(0,x.useEffect)(()=>{if(F)return;let c=document.createElement("style");return c.innerHTML="*:focus-visible{outline:3px solid #0d9488!important;outline-offset:2px!important;box-shadow:0 0 0 5px rgba(13,148,136,.25)!important;}",document.head.appendChild(c),F=c,()=>{F?.remove(),F=null}},[]),(0,x.useEffect)(()=>()=>{A.stopObserver(),A.removeLiveRegion(),A.removeColorBlindSvg()},[]),(0,x.useEffect)(()=>{if(!n)return;let c=E=>{u.current&&!u.current.contains(E.target)&&S.current&&!S.current.contains(E.target)&&l(!1)};return document.addEventListener("mousedown",c),()=>document.removeEventListener("mousedown",c)},[n]),(0,x.useEffect)(()=>{let c=E=>{E.key==="Escape"&&n&&(l(!1),S.current?.focus())};return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[n]);let Se=(c,E)=>r(I=>({...I,[c]:E})),Ee=(0,x.useCallback)(async()=>{let c={enabled:!0,highContrast:e.highContrast,reduceMotion:e.reduceMotion,autoFix:e.autoFix},E=await A.execute(c);if(console.log("[yuktai-a11y]",E),b(A.applyFixes(c)),document.documentElement.style.fontSize=`${e.fontScale}%`,e.dyslexiaFont){if(!M){let I=document.createElement("style");I.textContent="body,body *{font-family:'Georgia',serif!important;letter-spacing:.06em!important;word-spacing:.12em!important;line-height:1.9!important;}",document.head.appendChild(I),M=I}}else M?.remove(),M=null;a(!0),l(!1),A.announce("yuktai-a11y active.")},[e]),we=(0,x.useCallback)(async()=>{await A.execute({enabled:!1}),document.documentElement.style.fontSize="",M?.remove(),M=null,document.querySelectorAll("*").forEach(c=>{c.style.filter="",c.style.transition="",c.style.animation=""}),r(J),b(null),a(!1),A.announce("yuktai-a11y disabled.")},[]);return o?(0,v.jsxs)(v.Fragment,{children:[t,(0,v.jsxs)("button",{ref:S,onClick:()=>l(c=>!c),"aria-label":"Open yuktai-a11y accessibility options","aria-expanded":n,"aria-haspopup":"dialog",style:{position:"fixed",bottom:24,...i==="left"?{left:24}:{right:24},width:52,height:52,borderRadius:"50%",background:p?"#0f766e":"#0d9488",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 4px 14px rgba(0,0,0,0.18)",zIndex:9999,transition:"background 0.2s, transform 0.15s",outline:"none"},onMouseEnter:c=>c.currentTarget.style.transform="scale(1.08)",onMouseLeave:c=>c.currentTarget.style.transform="scale(1)",onFocus:c=>c.currentTarget.style.boxShadow="0 0 0 4px rgba(13,148,136,0.45)",onBlur:c=>c.currentTarget.style.boxShadow="0 4px 14px rgba(0,0,0,0.18)",children:[(0,v.jsx)("svg",{viewBox:"0 0 24 24",style:{width:26,height:26,fill:"#fff"},"aria-hidden":"true",children:(0,v.jsx)("path",{d:"M12 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4zm9 4.5l-5-.5-2-.2V5l-4 .5-4-.5v.8L4 6.5 3 7l1 3 4-.5v2.3L6 17h2l2-4.5L12 14l2 2.5L16 17h2l-2-4.2V9.5l4 .5 1-3z"})}),p&&(0,v.jsx)("span",{"aria-hidden":"true",style:{position:"absolute",top:4,right:4,width:10,height:10,borderRadius:"50%",background:"#5eead4",border:"2px solid #fff"}})]}),n&&(0,v.jsx)(ee,{ref:u,position:i,settings:e,report:y,isActive:p,set:Se,onApply:Ee,onReset:we,onClose:()=>l(!1)})]}):(0,v.jsx)(v.Fragment,{children:t})}g();var $={name:"ai.text",async execute(t){return`\u{1F916} YuktAI says: ${t}`}};g();var L={name:"voice.text",async execute(t){return!t||t.trim()===""?"\u{1F3A4} No speech detected":`\u{1F3A4} You said: ${t}`}};g();var w=class{plugins=new Map;register(i,o){if(!o||typeof o.execute!="function")throw new Error(`Invalid plugin: ${i}`);this.plugins.set(i,o)}use(i){return this.plugins.get(i)}async run(i,o){try{let s=this.use(i);if(!s)throw new Error(`Plugin not found: ${i}`);return await s.execute(o)}catch(s){throw console.error(`[YuktAI Runtime Error in ${i}]:`,s),s}}getPlugins(){return Array.from(this.plugins.keys())}};function it(){if(typeof globalThis>"u")return new w;if(!globalThis.__yuktai_runtime__){let t=new w;t.register(A.name,A),t.register($.name,$),t.register(L.name,L),globalThis.__yuktai_runtime__=t}return globalThis.__yuktai_runtime__}var ve=typeof window<"u"?it():new w,rt={wcagPlugin:A,list(){return ve.getPlugins()},use(t){return ve.use(t)},fix(t){return A.applyFixes({enabled:!0,autoFix:!0,...t})},scan(){return A.scan()}};return Pe(nt);})();
13
- /*! Bundled license information:
14
-
15
- react/cjs/react.production.js:
16
- (**
17
- * @license React
18
- * react.production.js
19
- *
20
- * Copyright (c) Meta Platforms, Inc. and affiliates.
21
- *
22
- * This source code is licensed under the MIT license found in the
23
- * LICENSE file in the root directory of this source tree.
24
- *)
25
-
26
- react/cjs/react-jsx-runtime.production.js:
27
- (**
28
- * @license React
29
- * react-jsx-runtime.production.js
30
- *
31
- * Copyright (c) Meta Platforms, Inc. and affiliates.
32
- *
33
- * This source code is licensed under the MIT license found in the
34
- * LICENSE file in the root directory of this source tree.
35
- *)
36
- */